-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontacts.ts
62 lines (42 loc) · 1.59 KB
/
contacts.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as ContactsAPI from './contacts';
import * as SMSAPI from '../sms';
import * as WhatsappAPI from '../whatsapp';
import * as IDAPI from './id';
import * as PhoneAPI from './phone';
export class Contacts extends APIResource {
id: IDAPI.ID = new IDAPI.ID(this._client);
phone: PhoneAPI.Phone = new PhoneAPI.Phone(this._client);
list(query: ContactListParams, options?: Core.RequestOptions): Core.APIPromise<unknown> {
return this._client.get('/contacts', { query, ...options });
}
}
export interface SentDmServicesContractsDataContactDto {
id?: string;
availableChannels?: string;
countryCode?: string;
createdAt?: string;
customerId?: string | null;
defaultChannel?: string;
nationalFormat?: string;
phoneNumber?: string;
smsPayloadDTO?: SMSAPI.SentDmServicesContractsDataSMSPayloadDto;
updatedAt?: string;
verified?: boolean;
whatsappPayloadDTO?: WhatsappAPI.SentDmServicesContractsDataWhatsappPayloadDto;
}
export type ContactListResponse = unknown;
export interface ContactListParams {
customerId: string;
page: number;
pageSize: number;
}
export namespace Contacts {
export import SentDmServicesContractsDataContactDto = ContactsAPI.SentDmServicesContractsDataContactDto;
export import ContactListResponse = ContactsAPI.ContactListResponse;
export import ContactListParams = ContactsAPI.ContactListParams;
export import ID = IDAPI.ID;
export import Phone = PhoneAPI.Phone;
}