-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhatsapp.ts
53 lines (35 loc) · 1.15 KB
/
whatsapp.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
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
import * as WhatsappAPI from './whatsapp';
export class Whatsapp extends APIResource {
list(
query: WhatsappListParams,
options?: Core.RequestOptions,
): Core.APIPromise<SentDmServicesContractsDataWhatsappPayloadDto> {
return this._client.get('/whatsapp', { query, ...options });
}
}
export interface SentDmServicesContractsDataWhatsappPayloadDto {
id?: string;
countryCode?: string;
createdAt?: string;
invalidRecord?: boolean;
isBusiness?: boolean;
numberType?: string;
payload?: string;
phoneNumber?: string;
profilePicture?: string;
sentId?: string | null;
updatedAt?: string;
whatsappId?: string;
}
export interface WhatsappListParams {
phoneNumber: string;
retrieveIfDoesNotExists: boolean;
sentId?: string | null;
}
export namespace Whatsapp {
export import SentDmServicesContractsDataWhatsappPayloadDto = WhatsappAPI.SentDmServicesContractsDataWhatsappPayloadDto;
export import WhatsappListParams = WhatsappAPI.WhatsappListParams;
}