meta-cloud-api 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/types.d.ts +3082 -0
- package/dist/browser/types.d.ts.map +1 -0
- package/dist/browser/types.js +2 -0
- package/dist/browser/types.js.map +1 -0
- package/dist/index-C37I1sT7.d.ts +3292 -0
- package/dist/index-C37I1sT7.d.ts.map +1 -0
- package/dist/index.d.ts +40 -3328
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -798
- package/dist/index.js.map +1 -1
- package/dist/{enums.js → types-Ov9U2ABw.js} +122 -2
- package/dist/types-Ov9U2ABw.js.map +1 -0
- package/dist/types.d.ts +2 -0
- package/dist/{client.js → types.js} +1 -4
- package/package.json +7 -19
- package/dist/api/flow/types/common.d.ts +0 -406
- package/dist/api/flow/types/common.d.ts.map +0 -1
- package/dist/api/flow/types/common.js +0 -51
- package/dist/api/flow/types/common.js.map +0 -1
- package/dist/api/flow/types/index.d.ts +0 -1
- package/dist/api/flow/types/index.js +0 -1
- package/dist/api/media/types/common.d.ts +0 -32
- package/dist/api/media/types/common.d.ts.map +0 -1
- package/dist/api/media/types/index.d.ts +0 -1
- package/dist/api/messages/types/common.d.ts +0 -99
- package/dist/api/messages/types/common.d.ts.map +0 -1
- package/dist/api/messages/types/contact.d.ts +0 -54
- package/dist/api/messages/types/contact.d.ts.map +0 -1
- package/dist/api/messages/types/index.d.ts +0 -8
- package/dist/api/messages/types/interactive.d.ts +0 -182
- package/dist/api/messages/types/interactive.d.ts.map +0 -1
- package/dist/api/messages/types/location.d.ts +0 -16
- package/dist/api/messages/types/location.d.ts.map +0 -1
- package/dist/api/messages/types/media.d.ts +0 -55
- package/dist/api/messages/types/media.d.ts.map +0 -1
- package/dist/api/messages/types/reaction.d.ts +0 -17
- package/dist/api/messages/types/reaction.d.ts.map +0 -1
- package/dist/api/messages/types/template.d.ts +0 -72
- package/dist/api/messages/types/template.d.ts.map +0 -1
- package/dist/api/messages/types/text.d.ts +0 -17
- package/dist/api/messages/types/text.d.ts.map +0 -1
- package/dist/api/phone/types/common.d.ts +0 -83
- package/dist/api/phone/types/common.d.ts.map +0 -1
- package/dist/api/phone/types/index.d.ts +0 -1
- package/dist/api/profile/types/common.d.ts +0 -149
- package/dist/api/profile/types/common.d.ts.map +0 -1
- package/dist/api/profile/types/index.d.ts +0 -2
- package/dist/api/profile/types/upload.d.ts +0 -73
- package/dist/api/profile/types/upload.d.ts.map +0 -1
- package/dist/api/qrCode/types/common.d.ts +0 -28
- package/dist/api/qrCode/types/common.d.ts.map +0 -1
- package/dist/api/qrCode/types/index.d.ts +0 -1
- package/dist/api/template/types/common.d.ts +0 -155
- package/dist/api/template/types/common.d.ts.map +0 -1
- package/dist/api/template/types/factory.d.ts +0 -202
- package/dist/api/template/types/factory.d.ts.map +0 -1
- package/dist/api/template/types/index.d.ts +0 -2
- package/dist/api/waba/types/common.d.ts +0 -122
- package/dist/api/waba/types/common.d.ts.map +0 -1
- package/dist/api/waba/types/common.js +0 -44
- package/dist/api/waba/types/common.js.map +0 -1
- package/dist/api/waba/types/index.d.ts +0 -1
- package/dist/api/waba/types/index.js +0 -1
- package/dist/client.d.ts +0 -25
- package/dist/core/webhook/types.d.ts +0 -737
- package/dist/core/webhook/types.d.ts.map +0 -1
- package/dist/enums.d.ts +0 -668
- package/dist/enums.d.ts.map +0 -1
- package/dist/enums.js.map +0 -1
- package/dist/types/base.d.ts +0 -19
- package/dist/types/base.d.ts.map +0 -1
- package/dist/types/config.d.ts +0 -80
- package/dist/types/config.d.ts.map +0 -1
- package/dist/types/enums.d.ts +0 -668
- package/dist/types/enums.d.ts.map +0 -1
- package/dist/types/enums.js +0 -681
- package/dist/types/enums.js.map +0 -1
- package/dist/types/httpsClient.d.ts +0 -21
- package/dist/types/httpsClient.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -24
- package/dist/types/index.js +0 -5
- package/dist/types/logger.d.ts +0 -11
- package/dist/types/logger.d.ts.map +0 -1
- package/dist/types/request.d.ts +0 -52
- package/dist/types/request.d.ts.map +0 -1
- package/dist/utils/isMetaError.d.ts +0 -23
- package/dist/utils/isMetaError.d.ts.map +0 -1
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { MessageTypesEnum } from "../../../types/enums.js";
|
|
2
|
-
import { MessageRequestBody } from "./common.js";
|
|
3
|
-
|
|
4
|
-
//#region src/api/messages/types/contact.d.ts
|
|
5
|
-
type AddressesObject = {
|
|
6
|
-
street?: string;
|
|
7
|
-
city?: string;
|
|
8
|
-
state?: string;
|
|
9
|
-
zip?: string;
|
|
10
|
-
country?: string;
|
|
11
|
-
country_code?: string;
|
|
12
|
-
type?: 'HOME' | 'WORK' | string;
|
|
13
|
-
};
|
|
14
|
-
type EmailObject = {
|
|
15
|
-
email?: string;
|
|
16
|
-
type?: 'HOME' | 'WORK' | string;
|
|
17
|
-
};
|
|
18
|
-
type NameObject = {
|
|
19
|
-
formatted_name: string;
|
|
20
|
-
first_name?: string;
|
|
21
|
-
last_name?: string;
|
|
22
|
-
middle_name?: string;
|
|
23
|
-
suffix?: string;
|
|
24
|
-
prefix?: string;
|
|
25
|
-
};
|
|
26
|
-
type OrgObject = {
|
|
27
|
-
company?: string;
|
|
28
|
-
department?: string;
|
|
29
|
-
title?: string;
|
|
30
|
-
};
|
|
31
|
-
type PhoneObject = {
|
|
32
|
-
phone?: 'PHONE_NUMBER';
|
|
33
|
-
type?: 'CELL' | 'MAIN' | 'IPHONE' | 'HOME' | 'WORK' | string;
|
|
34
|
-
wa_id?: string;
|
|
35
|
-
};
|
|
36
|
-
type URLObject = {
|
|
37
|
-
url?: string;
|
|
38
|
-
type?: 'HOME' | 'WORK' | string;
|
|
39
|
-
};
|
|
40
|
-
type ContactObject = {
|
|
41
|
-
addresses?: AddressesObject[];
|
|
42
|
-
birthday?: `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
|
|
43
|
-
emails?: EmailObject[];
|
|
44
|
-
name: NameObject;
|
|
45
|
-
org?: OrgObject;
|
|
46
|
-
phones?: PhoneObject[];
|
|
47
|
-
urls?: URLObject[];
|
|
48
|
-
};
|
|
49
|
-
type ContactsMessageRequestBody = MessageRequestBody<MessageTypesEnum.Contacts> & {
|
|
50
|
-
[MessageTypesEnum.Contacts]: [ContactObject];
|
|
51
|
-
};
|
|
52
|
-
//#endregion
|
|
53
|
-
export { ContactObject };
|
|
54
|
-
//# sourceMappingURL=contact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","names":[],"sources":["../../../../src/api/messages/types/contact.ts"],"sourcesContent":[],"mappings":";;;;KAIY,eAAA;;EAAA,IAAA,CAAA,EAAA,MAAA;EAUA,KAAA,CAAA,EAAA,MAAW;EAKX,GAAA,CAAA,EAAA,MAAA;EASA,OAAA,CAAA,EAAA,MAAS;EAMT,YAAA,CAAA,EAAW,MAAA;EAMX,IAAA,CAAA,EAAA,MAAS,GAAA,MAAA,GAAA,MAAA;AAKrB,CAAA;AAAyB,KA/Bb,WAAA,GA+Ba;OACT,CAAA,EAAA,MAAA;MAEH,CAAA,EAAA,MAAA,GAAA,MAAA,GAAA,MAAA;;AAEH,KA/BE,UAAA,GA+BF;gBACG,EAAA,MAAA;YACF,CAAA,EAAA,MAAA;EAAS,SAAA,CAAA,EAAA,MAAA;EAGR,WAAA,CAAA,EAAA,MAAA;EAA0B,MAAA,CAAA,EAAA,MAAA;QAAsB,CAAA,EAAA,MAAA;;AAC1B,KA5BtB,SAAA,GA4BsB;SAA7B,CAAA,EAAA,MAAA;EAAyB,UAAA,CAAA,EAAA,MAAA;;;KAtBlB,WAAA;;;;;KAMA,SAAA;;;;KAKA,aAAA;cACI;;WAEH;QACH;QACA;WACG;SACF;;KAGC,0BAAA,GAA6B,mBAAmB,gBAAA,CAAiB;GACxE,gBAAA,CAAiB,QAAA,IAAY"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TextMessageParams, TextObject } from "./text.js";
|
|
2
|
-
import { MessageTemplateObject } from "./template.js";
|
|
3
|
-
import { AudioMediaObject, DocumentMediaObject, ImageMediaObject, StickerMediaObject, VideoMediaObject } from "./media.js";
|
|
4
|
-
import { ContactObject } from "./contact.js";
|
|
5
|
-
import { LocationObject } from "./location.js";
|
|
6
|
-
import { InteractiveObject } from "./interactive.js";
|
|
7
|
-
import { ReactionParams } from "./reaction.js";
|
|
8
|
-
import { GeneralMessageBody, MessageRequestBody, MessageRequestParams, MessagesClass, MessagesResponse, StatusParams } from "./common.js";
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { InteractiveTypesEnum, MessageTypesEnum } from "../../../types/enums.js";
|
|
2
|
-
import { MessageRequestBody } from "./common.js";
|
|
3
|
-
|
|
4
|
-
//#region src/api/messages/types/interactive.d.ts
|
|
5
|
-
type DocumentMediaObject = {
|
|
6
|
-
id?: string;
|
|
7
|
-
link?: string;
|
|
8
|
-
caption?: string;
|
|
9
|
-
filename?: string;
|
|
10
|
-
};
|
|
11
|
-
type ImageMediaObject = {
|
|
12
|
-
id?: string;
|
|
13
|
-
link?: string;
|
|
14
|
-
caption?: string;
|
|
15
|
-
};
|
|
16
|
-
type VideoMediaObject = {
|
|
17
|
-
id?: string;
|
|
18
|
-
link?: string;
|
|
19
|
-
caption?: string;
|
|
20
|
-
};
|
|
21
|
-
type ProductObject = {
|
|
22
|
-
product_retailer_id: string;
|
|
23
|
-
};
|
|
24
|
-
type SimpleTextObject = {
|
|
25
|
-
text: string;
|
|
26
|
-
};
|
|
27
|
-
type RowObject = {
|
|
28
|
-
id: string;
|
|
29
|
-
title: string;
|
|
30
|
-
description?: string;
|
|
31
|
-
};
|
|
32
|
-
type MultiProductSectionObject = {
|
|
33
|
-
product_items: ProductObject[];
|
|
34
|
-
rows?: never;
|
|
35
|
-
title?: string;
|
|
36
|
-
};
|
|
37
|
-
type ListSectionObject = {
|
|
38
|
-
product_items?: never;
|
|
39
|
-
rows: RowObject[];
|
|
40
|
-
title?: string;
|
|
41
|
-
};
|
|
42
|
-
type SectionObject = MultiProductSectionObject | ListSectionObject;
|
|
43
|
-
type ButtonObject = {
|
|
44
|
-
title: string;
|
|
45
|
-
id: string;
|
|
46
|
-
};
|
|
47
|
-
type ReplyButtonObject = {
|
|
48
|
-
type: 'reply';
|
|
49
|
-
reply: ButtonObject;
|
|
50
|
-
};
|
|
51
|
-
type ActionObject = {
|
|
52
|
-
buttons?: ReplyButtonObject[];
|
|
53
|
-
catalog_id?: string;
|
|
54
|
-
product_retailer_id?: string;
|
|
55
|
-
sections?: SectionObject[];
|
|
56
|
-
};
|
|
57
|
-
type HeaderObject = {
|
|
58
|
-
type: 'document' | 'image' | 'text' | 'video';
|
|
59
|
-
document?: DocumentMediaObject;
|
|
60
|
-
image?: ImageMediaObject;
|
|
61
|
-
text?: string;
|
|
62
|
-
video?: VideoMediaObject;
|
|
63
|
-
};
|
|
64
|
-
type ButtonInteractiveObject = {
|
|
65
|
-
type: InteractiveTypesEnum.Button;
|
|
66
|
-
body: SimpleTextObject;
|
|
67
|
-
footer?: SimpleTextObject;
|
|
68
|
-
header?: HeaderObject;
|
|
69
|
-
action: ActionObject;
|
|
70
|
-
};
|
|
71
|
-
type ListInteractiveObject = {
|
|
72
|
-
type: InteractiveTypesEnum.List;
|
|
73
|
-
body: SimpleTextObject;
|
|
74
|
-
footer?: SimpleTextObject;
|
|
75
|
-
header?: HeaderObject;
|
|
76
|
-
action: ActionObject;
|
|
77
|
-
};
|
|
78
|
-
type ProductInteractiveObject = {
|
|
79
|
-
type: InteractiveTypesEnum.Product;
|
|
80
|
-
body?: SimpleTextObject;
|
|
81
|
-
footer?: SimpleTextObject;
|
|
82
|
-
header?: HeaderObject;
|
|
83
|
-
action: ActionObject;
|
|
84
|
-
};
|
|
85
|
-
type ProductListInteractiveObject = {
|
|
86
|
-
type: InteractiveTypesEnum.ProductList;
|
|
87
|
-
body: SimpleTextObject;
|
|
88
|
-
footer?: SimpleTextObject;
|
|
89
|
-
header: HeaderObject;
|
|
90
|
-
action: ActionObject;
|
|
91
|
-
};
|
|
92
|
-
type CtaUrlParameters = {
|
|
93
|
-
display_text: string;
|
|
94
|
-
url: string;
|
|
95
|
-
};
|
|
96
|
-
type CtaUrlActionObject = {
|
|
97
|
-
name: 'cta_url';
|
|
98
|
-
parameters: CtaUrlParameters;
|
|
99
|
-
};
|
|
100
|
-
type CtaUrlInteractiveObject = {
|
|
101
|
-
type: InteractiveTypesEnum.CtaUrl;
|
|
102
|
-
body?: SimpleTextObject;
|
|
103
|
-
footer?: SimpleTextObject;
|
|
104
|
-
header?: HeaderObject;
|
|
105
|
-
action: CtaUrlActionObject;
|
|
106
|
-
};
|
|
107
|
-
type LocationRequestActionObject = {
|
|
108
|
-
name: 'send_location';
|
|
109
|
-
};
|
|
110
|
-
type LocationRequestInteractiveObject = {
|
|
111
|
-
type: InteractiveTypesEnum.LocationRequest;
|
|
112
|
-
body: SimpleTextObject;
|
|
113
|
-
footer?: SimpleTextObject;
|
|
114
|
-
header?: HeaderObject;
|
|
115
|
-
action: LocationRequestActionObject;
|
|
116
|
-
};
|
|
117
|
-
type AddressValues = {
|
|
118
|
-
name?: string;
|
|
119
|
-
phone_number?: string;
|
|
120
|
-
in_pin_code?: string;
|
|
121
|
-
house_number?: string;
|
|
122
|
-
floor_number?: string;
|
|
123
|
-
tower_number?: string;
|
|
124
|
-
building_name?: string;
|
|
125
|
-
address?: string;
|
|
126
|
-
landmark_area?: string;
|
|
127
|
-
city?: string;
|
|
128
|
-
state?: string;
|
|
129
|
-
};
|
|
130
|
-
type SavedAddress = {
|
|
131
|
-
id: string;
|
|
132
|
-
value: AddressValues;
|
|
133
|
-
};
|
|
134
|
-
type ValidationErrors = { [key in keyof AddressValues]?: string };
|
|
135
|
-
type AddressMessageParameters = {
|
|
136
|
-
country: string;
|
|
137
|
-
values?: AddressValues;
|
|
138
|
-
saved_addresses?: SavedAddress[];
|
|
139
|
-
validation_errors?: ValidationErrors;
|
|
140
|
-
};
|
|
141
|
-
type AddressMessageActionObject = {
|
|
142
|
-
name: 'address_message';
|
|
143
|
-
parameters: AddressMessageParameters;
|
|
144
|
-
};
|
|
145
|
-
type AddressMessageInteractiveObject = {
|
|
146
|
-
type: InteractiveTypesEnum.AddressMessage;
|
|
147
|
-
body: SimpleTextObject;
|
|
148
|
-
footer?: SimpleTextObject;
|
|
149
|
-
header?: HeaderObject;
|
|
150
|
-
action: AddressMessageActionObject;
|
|
151
|
-
};
|
|
152
|
-
type FlowParameters = {
|
|
153
|
-
flow_message_version: string;
|
|
154
|
-
flow_id?: string;
|
|
155
|
-
flow_name?: string;
|
|
156
|
-
flow_cta: string;
|
|
157
|
-
mode?: 'draft' | 'published';
|
|
158
|
-
flow_token: string;
|
|
159
|
-
flow_action: 'navigate' | 'data_exchange';
|
|
160
|
-
flow_action_payload?: {
|
|
161
|
-
screen?: string;
|
|
162
|
-
data?: Record<string, string>;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
type FlowActionObject = {
|
|
166
|
-
name: 'flow';
|
|
167
|
-
parameters: FlowParameters;
|
|
168
|
-
};
|
|
169
|
-
type FlowInteractiveObject = {
|
|
170
|
-
type: InteractiveTypesEnum.Flow;
|
|
171
|
-
body: SimpleTextObject;
|
|
172
|
-
footer?: SimpleTextObject;
|
|
173
|
-
header?: HeaderObject;
|
|
174
|
-
action: FlowActionObject;
|
|
175
|
-
};
|
|
176
|
-
type InteractiveObject = ButtonInteractiveObject | ListInteractiveObject | ProductInteractiveObject | ProductListInteractiveObject | CtaUrlInteractiveObject | LocationRequestInteractiveObject | AddressMessageInteractiveObject | FlowInteractiveObject;
|
|
177
|
-
type InteractiveMessageRequestBody = MessageRequestBody<MessageTypesEnum.Interactive> & {
|
|
178
|
-
[MessageTypesEnum.Interactive]: InteractiveObject;
|
|
179
|
-
};
|
|
180
|
-
//#endregion
|
|
181
|
-
export { InteractiveObject };
|
|
182
|
-
//# sourceMappingURL=interactive.d.ts.map
|
|
@@ -1 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Ec;;KA1ErB,2BAAA,GA4EK;MACG,EAAA,eAAA;;KAzER,gCAAA,GA2EO;EAAgB,IAAA,EA1ElB,oBAAA,CAAqB,eA0EH;EAGhB,IAAA,EA5EF,gBA4EmB;EAAA,MAAA,CAAA,EA3EhB,gBA2EgB;QACvB,CAAA,EA3EO,YA2EP;QACA,EA3EM,2BA2EN;;KAxED,aAAA,GA0EC;MACA,CAAA,EAAA,MAAA;cACA,CAAA,EAAA,MAAA;aACA,CAAA,EAAA,MAAA;cACA,CAAA,EAAA,MAAA;EAAqB,YAAA,CAAA,EAAA,MAAA;EAEf,YAAA,CAAA,EAAA,MAAA;EAA6B,aAAA,CAAA,EAAA,MAAA;SAAsB,CAAA,EAAA,MAAA;eAAnB,CAAA,EAAA,MAAA;MACR,CAAA,EAAA,MAAA;OAA/B,CAAA,EAAA,MAAA;CAA4B;KAnE5B,YAAA;;SAEM;;KAGN,gBAAA,mBACa;KAGb,wBAAA;;WAEQ;oBACS;sBACE;;KAGnB,0BAAA;;cAEW;;KAGX,+BAAA;QACK,oBAAA,CAAqB;QACrB;WACG;WACA;UACD;;KAGP,cAAA;;;;;;;;;;WAUU;;;KAIV,gBAAA;;cAEW;;KAGX,qBAAA;QACK,oBAAA,CAAqB;QACrB;WACG;WACA;UACD;;KAGA,iBAAA,GACN,0BACA,wBACA,2BACA,+BACA,0BACA,mCACA,kCACA;KAEM,6BAAA,GAAgC,mBAAmB,gBAAA,CAAiB;GAC3E,gBAAA,CAAiB,WAAA,GAAc"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MessageTypesEnum } from "../../../types/enums.js";
|
|
2
|
-
import { MessageRequestBody } from "./common.js";
|
|
3
|
-
|
|
4
|
-
//#region src/api/messages/types/location.d.ts
|
|
5
|
-
type LocationObject = {
|
|
6
|
-
longitude: number;
|
|
7
|
-
latitude: number;
|
|
8
|
-
name?: string;
|
|
9
|
-
address?: string;
|
|
10
|
-
};
|
|
11
|
-
type LocationMessageRequestBody = MessageRequestBody<MessageTypesEnum.Location> & {
|
|
12
|
-
[MessageTypesEnum.Location]: [LocationObject];
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
export { LocationObject };
|
|
16
|
-
//# sourceMappingURL=location.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","names":[],"sources":["../../../../src/api/messages/types/location.ts"],"sourcesContent":[],"mappings":";;;;KAIY,cAAA;;EAAA,QAAA,EAAA,MAAA;EAOA,IAAA,CAAA,EAAA,MAAA;EAA0B,OAAA,CAAA,EAAA,MAAA;;AAAG,KAA7B,0BAAA,GAA6B,kBAAA,CAAmB,gBAAA,CAAiB,QAApC,CAAA,GAAA;GACpC,gBAAA,CAAiB,QAAA,CAAY,EAAA,CAAA,cAAA,CAAA"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { MessageTypesEnum } from "../../../types/enums.js";
|
|
2
|
-
import { MessageRequestBody } from "./common.js";
|
|
3
|
-
|
|
4
|
-
//#region src/api/messages/types/media.d.ts
|
|
5
|
-
type MetaMediaObject = {
|
|
6
|
-
id: string;
|
|
7
|
-
link?: never;
|
|
8
|
-
};
|
|
9
|
-
type HostedMediaObject = {
|
|
10
|
-
id?: never;
|
|
11
|
-
link: string;
|
|
12
|
-
};
|
|
13
|
-
type AudioMediaObject = MetaMediaObject | HostedMediaObject;
|
|
14
|
-
type AudioMessageRequestBody = MessageRequestBody<MessageTypesEnum.Audio> & {
|
|
15
|
-
[MessageTypesEnum.Audio]: [AudioMediaObject];
|
|
16
|
-
};
|
|
17
|
-
type MetaDocumentMediaObject = MetaMediaObject & {
|
|
18
|
-
caption?: string;
|
|
19
|
-
filename?: string;
|
|
20
|
-
};
|
|
21
|
-
type HostedDocumentMediaObject = HostedMediaObject & {
|
|
22
|
-
caption?: string;
|
|
23
|
-
filename?: string;
|
|
24
|
-
};
|
|
25
|
-
type DocumentMediaObject = MetaDocumentMediaObject | HostedDocumentMediaObject;
|
|
26
|
-
type DocumentMessageRequestBody = MessageRequestBody<MessageTypesEnum.Document> & {
|
|
27
|
-
[MessageTypesEnum.Document]: [DocumentMediaObject];
|
|
28
|
-
};
|
|
29
|
-
type MetaImageMediaObject = MetaMediaObject & {
|
|
30
|
-
caption?: string;
|
|
31
|
-
};
|
|
32
|
-
type HostedImageMediaObject = HostedMediaObject & {
|
|
33
|
-
caption?: string;
|
|
34
|
-
};
|
|
35
|
-
type ImageMediaObject = MetaImageMediaObject | HostedImageMediaObject;
|
|
36
|
-
type ImageMessageRequestBody = MessageRequestBody<MessageTypesEnum.Image> & {
|
|
37
|
-
[MessageTypesEnum.Image]: [ImageMediaObject];
|
|
38
|
-
};
|
|
39
|
-
type MetaVideoMediaObject = MetaMediaObject & {
|
|
40
|
-
caption?: string;
|
|
41
|
-
};
|
|
42
|
-
type HostedVideoMediaObject = HostedMediaObject & {
|
|
43
|
-
caption?: string;
|
|
44
|
-
};
|
|
45
|
-
type VideoMediaObject = MetaVideoMediaObject | HostedVideoMediaObject;
|
|
46
|
-
type VideoMessageRequestBody = MessageRequestBody<MessageTypesEnum.Video> & {
|
|
47
|
-
[MessageTypesEnum.Video]: [VideoMediaObject];
|
|
48
|
-
};
|
|
49
|
-
type StickerMediaObject = MetaMediaObject | HostedMediaObject;
|
|
50
|
-
type StickerMessageRequestBody = MessageRequestBody<MessageTypesEnum.Sticker> & {
|
|
51
|
-
[MessageTypesEnum.Sticker]: [StickerMediaObject];
|
|
52
|
-
};
|
|
53
|
-
//#endregion
|
|
54
|
-
export { AudioMediaObject, DocumentMediaObject, ImageMediaObject, StickerMediaObject, VideoMediaObject };
|
|
55
|
-
//# sourceMappingURL=media.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media.d.ts","names":[],"sources":["../../../../src/api/messages/types/media.ts"],"sourcesContent":[],"mappings":";;;;KAIK,eAAA;;EAAA,IAAA,CAAA,EAAA,KAAA;AAAe,CAAA;AAWpB,KANK,iBA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e1B,gBAAA,CAAiB,KAAA,CAfA,EAAA,CAeS,gBAfT,CAAA;CAAK;AAItB,KAeO,kBAAA,GAAqB,eAfL,GAeuB,iBAfR;AAItC,KAaO,yBAAA,GAA4B,kBAbV,CAa6B,gBAAA,CAAiB,OAb7B,CAAA,GAAA;EAInC,CAUP,gBAAA,CAAiB,OAAA,CAVM,EAAA,CAUK,kBAVL,CAAA;CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MessageTypesEnum } from "../../../types/enums.js";
|
|
2
|
-
import { MessageRequestBody } from "./common.js";
|
|
3
|
-
|
|
4
|
-
//#region src/api/messages/types/reaction.d.ts
|
|
5
|
-
type ReActionObject = {
|
|
6
|
-
message_id: string;
|
|
7
|
-
emoji: string;
|
|
8
|
-
};
|
|
9
|
-
type ReactionMessageRequestBody = MessageRequestBody<MessageTypesEnum.Reaction> & ReActionObject;
|
|
10
|
-
interface ReactionParams {
|
|
11
|
-
messageId: string;
|
|
12
|
-
emoji: string;
|
|
13
|
-
to: string;
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { ReactionParams };
|
|
17
|
-
//# sourceMappingURL=reaction.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reaction.d.ts","names":[],"sources":["../../../../src/api/messages/types/reaction.ts"],"sourcesContent":[],"mappings":";;;;KAIK,cAAA;;EAAA,KAAA,EAAA,MAAA;AAKL,CAAA;AAAsC,KAA1B,0BAAA,GAA6B,kBAAH,CAAsB,gBAAA,CAAiB,QAAvC,CAAA,GAAmD,cAAnD;AAAsB,UAE3C,cAAA,CAF4D;WAApC,EAAA,MAAA;OAAgD,EAAA,MAAA;EAAc,EAAA,EAAA,MAAA;AAEvG"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { ButtonPositionEnum, ComponentTypesEnum, CurrencyCodesEnum, LanguagesEnum, MessageTypesEnum, ParametersTypesEnum, SubTypeEnum } from "../../../types/enums.js";
|
|
2
|
-
import { MessageRequestBody } from "./common.js";
|
|
3
|
-
|
|
4
|
-
//#region src/api/messages/types/template.d.ts
|
|
5
|
-
type LanguageObject = {
|
|
6
|
-
policy: 'deterministic';
|
|
7
|
-
code: LanguagesEnum;
|
|
8
|
-
};
|
|
9
|
-
type ParametersObject<T extends ParametersTypesEnum> = {
|
|
10
|
-
type: T;
|
|
11
|
-
};
|
|
12
|
-
type SimpleTextObject = {
|
|
13
|
-
text: string;
|
|
14
|
-
};
|
|
15
|
-
type TextParametersObject = ParametersObject<ParametersTypesEnum.Text> & SimpleTextObject;
|
|
16
|
-
type CouponCodeParametersObject = ParametersObject<ParametersTypesEnum.CouponCode> & {
|
|
17
|
-
coupon_code: string;
|
|
18
|
-
};
|
|
19
|
-
type CurrencyObject = {
|
|
20
|
-
fallback_value: string;
|
|
21
|
-
code: CurrencyCodesEnum;
|
|
22
|
-
amount_1000: number;
|
|
23
|
-
};
|
|
24
|
-
type CurrencyParametersObject = ParametersObject<ParametersTypesEnum.Currency> & {
|
|
25
|
-
currency: CurrencyObject;
|
|
26
|
-
};
|
|
27
|
-
type DateTimeObject = {
|
|
28
|
-
fallback_value: string;
|
|
29
|
-
};
|
|
30
|
-
type DateTimeParametersObject = ParametersObject<ParametersTypesEnum.Currency> & {
|
|
31
|
-
date_time: DateTimeObject;
|
|
32
|
-
};
|
|
33
|
-
type DocumentMediaObject = {
|
|
34
|
-
id?: string;
|
|
35
|
-
link?: string;
|
|
36
|
-
caption?: string;
|
|
37
|
-
filename?: string;
|
|
38
|
-
};
|
|
39
|
-
type ImageMediaObject = {
|
|
40
|
-
id?: string;
|
|
41
|
-
link?: string;
|
|
42
|
-
caption?: string;
|
|
43
|
-
};
|
|
44
|
-
type VideoMediaObject = {
|
|
45
|
-
id?: string;
|
|
46
|
-
link?: string;
|
|
47
|
-
caption?: string;
|
|
48
|
-
};
|
|
49
|
-
type DocumentParametersObject = ParametersObject<ParametersTypesEnum.Document> & DocumentMediaObject;
|
|
50
|
-
type ImageParametersObject = ParametersObject<ParametersTypesEnum.Image> & ImageMediaObject;
|
|
51
|
-
type VideoParametersObject = ParametersObject<ParametersTypesEnum.Video> & VideoMediaObject;
|
|
52
|
-
type ComponentObject<T extends ComponentTypesEnum> = {
|
|
53
|
-
type: T;
|
|
54
|
-
parameters: (CurrencyParametersObject | DateTimeParametersObject | DocumentParametersObject | ImageParametersObject | TextParametersObject | VideoParametersObject | CouponCodeParametersObject)[];
|
|
55
|
-
};
|
|
56
|
-
type ButtonComponentObject = ComponentObject<ComponentTypesEnum.Button> & {
|
|
57
|
-
parameters?: (TextParametersObject | PayloadParametersObject)[];
|
|
58
|
-
sub_type: SubTypeEnum;
|
|
59
|
-
index: ButtonPositionEnum;
|
|
60
|
-
};
|
|
61
|
-
type PayloadParametersObject = ParametersObject<ParametersTypesEnum.Payload> & {
|
|
62
|
-
payload: string;
|
|
63
|
-
};
|
|
64
|
-
type MessageTemplateObject<T extends ComponentTypesEnum> = {
|
|
65
|
-
name: string;
|
|
66
|
-
language: LanguageObject;
|
|
67
|
-
components?: (ComponentObject<T> | ButtonComponentObject)[];
|
|
68
|
-
};
|
|
69
|
-
type MessageTemplateRequestBody<T extends ComponentTypesEnum> = MessageRequestBody<MessageTypesEnum.Template> & MessageTemplateObject<T>;
|
|
70
|
-
//#endregion
|
|
71
|
-
export { MessageTemplateObject };
|
|
72
|
-
//# sourceMappingURL=template.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","names":[],"sources":["../../../../src/api/messages/types/template.ts"],"sourcesContent":[],"mappings":";;;;KAYK,cAAA;;EAAA,IAAA,EAEK,aAFS;AAEI,CAAA;KAGlB,gBAAgB,CAAA,UAAW,mBAAX,CAAA,GAAA;MAAW,EACtB,CADsB;;KAI3B,gBAAA,GAHM;EAGN,IAAA,EAAA,MAAA;AAAgB,CAAA;KAIhB,oBAAA,GAAuB,gBAAH,CAAoB,mBAAA,CAAoB,IAAxC,CAAA,G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WhB,0BAXgB,CAAA,EAAA;CAAA;KAerB,qBAAA,GAAwB,eAfqC,CAerB,kBAAA,CAAmB,MAfE,CAAA,GAAA;YAArC,CAAA,EAAA,CAgBX,oBAhBW,GAgBY,uBAhBZ,CAAA,EAAA;UAA8C,EAiB7D,WAjB6D;EAAgB,KAAA,EAkBhF,kBAlBgF;AAAA,CAAA;KAqBtF,uBAAA,GAA0B,gBAnBX,CAmB4B,mBAAA,CAAoB,OAnBhD,CAAA,GAAA;SAAW,EAAA,MAAA;;AAGrB,KAoBE,qBApBF,CAAA,UAoBkC,kBApBlC,CAAA,GAAA;MACA,EAAA,MAAA;UACA,EAoBI,cApBJ;YACA,CAAA,EAAA,CAoBQ,eApBR,CAoBwB,CApBxB,CAAA,GAoB6B,qBApB7B,CAAA,EAAA;;AAEA,KAqBE,0BArBF,CAAA,UAqBuC,kBArBvC,CAAA,GAqB6D,kBArB7D,CAqBgF,gBAAA,CAAiB,QArBjG,CAAA,GAsBN,qBAtBM,CAsBgB,CAtBhB,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MessageTypesEnum } from "../../../types/enums.js";
|
|
2
|
-
import { MessageRequestBody, MessageRequestParams } from "./common.js";
|
|
3
|
-
|
|
4
|
-
//#region src/api/messages/types/text.d.ts
|
|
5
|
-
type TextObject = {
|
|
6
|
-
body: string;
|
|
7
|
-
preview_url?: boolean;
|
|
8
|
-
};
|
|
9
|
-
type TextMessageRequestBody = MessageRequestBody<MessageTypesEnum.Text> & {
|
|
10
|
-
[MessageTypesEnum.Text]: [TextObject];
|
|
11
|
-
};
|
|
12
|
-
interface TextMessageParams extends MessageRequestParams<TextObject | string> {
|
|
13
|
-
previewUrl?: boolean;
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { TextMessageParams, TextObject };
|
|
17
|
-
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","names":[],"sources":["../../../../src/api/messages/types/text.ts"],"sourcesContent":[],"mappings":";;;;KAIY,UAAA;;EAAA,WAAA,CAAA,EAAU,OAAA;AAKtB,CAAA;AAAkC,KAAtB,sBAAA,GAAyB,kBAAH,CAAsB,gBAAA,CAAiB,IAAvC,CAAA,GAAA;GAC7B,gBAAA,CAAiB,IAAA,CADmD,EAAA,CAC3C,UAD2C,CAAA;;AAC3C,UAGb,iBAAA,SAA0B,oBAHb,CAGkC,UAHlC,GAAA,MAAA,CAAA,CAAA;YAAzB,CAAA,EAAA,OAAiB"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Paging, ResponseSuccess } from "../../../types/request.js";
|
|
2
|
-
|
|
3
|
-
//#region src/api/phone/types/common.d.ts
|
|
4
|
-
type QualityRating = 'GREEN' | 'YELLOW' | 'RED' | 'NA';
|
|
5
|
-
type AccountMode = 'LIVE' | 'SANDBOX';
|
|
6
|
-
type CodeVerificationStatus = 'NOT_VERIFIED' | 'VERIFIED' | 'EXPIRED' | 'PENDING' | 'DELETED' | 'MIGRATED' | 'BANNED' | 'RESTRICTED' | 'RATE_LIMITED' | 'FLAGGED' | 'CONNECTED' | 'DISCONNECTED' | 'UNKNOWN' | 'UNVERIFIED';
|
|
7
|
-
type MessagingLimitTier = 'TIER_50' | 'TIER_250' | 'TIER_1K' | 'TIER_10K' | 'TIER_100K' | 'TIER_UNLIMITED';
|
|
8
|
-
type PlatformType = 'CLOUD_API' | 'ON_PREMISE' | 'NOT_APPLICABLE';
|
|
9
|
-
type ThroughputLevel = 'STANDARD' | 'HIGH' | 'NOT_APPLICABLE';
|
|
10
|
-
type HealthStatusEntity = {
|
|
11
|
-
entity_type: string;
|
|
12
|
-
id: string;
|
|
13
|
-
can_send_message: string;
|
|
14
|
-
additional_info?: string[];
|
|
15
|
-
errors?: Array<{
|
|
16
|
-
error_code: number;
|
|
17
|
-
error_description: string;
|
|
18
|
-
possible_solution: string;
|
|
19
|
-
}>;
|
|
20
|
-
};
|
|
21
|
-
type HealthStatus = {
|
|
22
|
-
can_send_message: string;
|
|
23
|
-
entities: HealthStatusEntity[];
|
|
24
|
-
};
|
|
25
|
-
type QualityScore = {
|
|
26
|
-
score: QualityRating;
|
|
27
|
-
};
|
|
28
|
-
type Throughput = {
|
|
29
|
-
level: ThroughputLevel;
|
|
30
|
-
};
|
|
31
|
-
type PhoneNumberResponse = {
|
|
32
|
-
display_phone_number: string;
|
|
33
|
-
id: string;
|
|
34
|
-
quality_rating: QualityRating;
|
|
35
|
-
verified_name: string;
|
|
36
|
-
account_mode?: AccountMode;
|
|
37
|
-
certificate?: string;
|
|
38
|
-
code_verification_status?: CodeVerificationStatus;
|
|
39
|
-
conversational_automation?: Record<string, unknown>;
|
|
40
|
-
eligibility_for_api_business_global_search?: string;
|
|
41
|
-
health_status?: HealthStatus;
|
|
42
|
-
is_official_business_account?: boolean;
|
|
43
|
-
is_on_biz_app?: boolean;
|
|
44
|
-
is_pin_enabled?: boolean;
|
|
45
|
-
is_preverified_number?: boolean;
|
|
46
|
-
last_onboarded_time?: string;
|
|
47
|
-
messaging_limit_tier?: MessagingLimitTier;
|
|
48
|
-
name_status?: string;
|
|
49
|
-
new_certificate?: string;
|
|
50
|
-
new_name_status?: string;
|
|
51
|
-
platform_type?: PlatformType;
|
|
52
|
-
quality_score?: QualityScore;
|
|
53
|
-
search_visibility?: string;
|
|
54
|
-
status?: CodeVerificationStatus;
|
|
55
|
-
throughput?: Throughput;
|
|
56
|
-
};
|
|
57
|
-
type Cursors = {
|
|
58
|
-
before: string;
|
|
59
|
-
after: string;
|
|
60
|
-
};
|
|
61
|
-
type PhoneNumbersResponse = {
|
|
62
|
-
data: PhoneNumberResponse[];
|
|
63
|
-
paging: Paging;
|
|
64
|
-
};
|
|
65
|
-
type RequestVerificationCodeRequest = {
|
|
66
|
-
code_method: 'SMS' | 'VOICE';
|
|
67
|
-
language: string;
|
|
68
|
-
};
|
|
69
|
-
type VerifyCodeRequest = {
|
|
70
|
-
code: string;
|
|
71
|
-
};
|
|
72
|
-
type TwoStepVerificationParams = {
|
|
73
|
-
pin: string;
|
|
74
|
-
};
|
|
75
|
-
interface PhoneNumberClass {
|
|
76
|
-
getPhoneNumberById(fields?: string): Promise<PhoneNumberResponse>;
|
|
77
|
-
getPhoneNumbers(): Promise<PhoneNumbersResponse>;
|
|
78
|
-
requestVerificationCode(params: RequestVerificationCodeRequest): Promise<ResponseSuccess>;
|
|
79
|
-
verifyCode(params: VerifyCodeRequest): Promise<ResponseSuccess>;
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
export { AccountMode, CodeVerificationStatus, Cursors, HealthStatus, HealthStatusEntity, MessagingLimitTier, PhoneNumberClass, PhoneNumberResponse, PhoneNumbersResponse, PlatformType, QualityRating, QualityScore, RequestVerificationCodeRequest, Throughput, ThroughputLevel, TwoStepVerificationParams, VerifyCodeRequest };
|
|
83
|
-
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","names":[],"sources":["../../../../src/api/phone/types/common.ts"],"sourcesContent":[],"mappings":";;;KAEY,aAAA;KAEA,WAAA;AAFA,KAIA,sBAAA,GAJa,cAAA,GAAA,UAAA,GAAA,SAAA,GAAA,SAAA,GAAA,SAAA,GAAA,UAAA,GAAA,QAAA,GAAA,YAAA,GAAA,cAAA,GAAA,SAAA,GAAA,WAAA,GAAA,cAAA,GAAA,SAAA,GAAA,YAAA;AAEb,KAkBA,kBAAA,GAlBW,SAAA,GAAA,UAAA,GAAA,SAAA,GAAA,UAAA,GAAA,WAAA,GAAA,gBAAA;AAEX,KAkBA,YAAA,GAlBA,WAAsB,GAAA,YAAA,GAAA,gBAAA;AAgBtB,KAIA,eAAA,GAJkB,UAAA,GAAA,MAAA,GAAA,gBAAA;AAElB,KAIA,kBAAA,GAJY;EAEZ,WAAA,EAAA,MAAe;EAEf,EAAA,EAAA,MAAA;EAYA,gBAAY,EAAA,MAAA;EAKZ,eAAY,CA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NumbersResponse, PlatformType, QualityRating, QualityScore, RequestVerificationCodeRequest, Throughput, ThroughputLevel, TwoStepVerificationParams, VerifyCodeRequest } from "./common.js";
|