Skip to content

Commit 3a1ff10

Browse files
feat(api): update via SDK Studio (#426)
1 parent 17025c6 commit 3a1ff10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: .stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 108
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/intercom%2Fintercom-61fd2f21fb0fb6a94c5e87ea423d828bf37d1dd90ca1511eda9b91d58ccb5d39.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/intercom%2Fintercom-a52cc0e4313a38d4329e6c2f40afa341d800389762fc643b9bf5b13248f8c5da.yml

Diff for: tests/api-resources/contacts/companies.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('resource companies', () => {
3030
});
3131

3232
test('list', async () => {
33-
const responsePromise = intercom.contacts.companies.list('contact_id');
33+
const responsePromise = intercom.contacts.companies.list('63a07ddf05a32042dffac965');
3434
const rawResponse = await responsePromise.asResponse();
3535
expect(rawResponse).toBeInstanceOf(Response);
3636
const response = await responsePromise;
@@ -43,15 +43,15 @@ describe('resource companies', () => {
4343
test('list: request options instead of params are passed correctly', async () => {
4444
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
4545
await expect(
46-
intercom.contacts.companies.list('contact_id', { path: '/_stainless_unknown_path' }),
46+
intercom.contacts.companies.list('63a07ddf05a32042dffac965', { path: '/_stainless_unknown_path' }),
4747
).rejects.toThrow(Intercom.NotFoundError);
4848
});
4949

5050
test('list: request options and params are passed correctly', async () => {
5151
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
5252
await expect(
5353
intercom.contacts.companies.list(
54-
'contact_id',
54+
'63a07ddf05a32042dffac965',
5555
{ 'Intercom-Version': '2.11' },
5656
{ path: '/_stainless_unknown_path' },
5757
),

0 commit comments

Comments
 (0)