meta-cloud-api 1.1.4 → 1.1.5

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.
Files changed (152) hide show
  1. package/dist/base.d.ts +19 -0
  2. package/dist/base.d.ts.map +1 -0
  3. package/dist/chunk-PECeCxCb.js +15 -0
  4. package/dist/config.d.ts +80 -0
  5. package/dist/config.d.ts.map +1 -0
  6. package/dist/{base-CfDkvT1x.d.ts → enums.d.ts} +3 -142
  7. package/dist/enums.d.ts.map +1 -0
  8. package/dist/enums.js +681 -0
  9. package/dist/enums.js.map +1 -0
  10. package/dist/{index-DQkgkiB6.d.ts → httpsClient.d.ts} +3 -12
  11. package/dist/httpsClient.d.ts.map +1 -0
  12. package/dist/index.d.ts +4386 -21
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +3436 -1
  15. package/dist/index.js.map +1 -1
  16. package/dist/logger.d.ts +11 -0
  17. package/dist/logger.d.ts.map +1 -0
  18. package/dist/request.d.ts +52 -0
  19. package/dist/request.d.ts.map +1 -0
  20. package/package.json +13 -22
  21. package/dist/WebhookProcessor-BUZFeZD_.js +0 -3
  22. package/dist/WebhookProcessor-BUZFeZD_.js.map +0 -1
  23. package/dist/WebhookProcessor-Dq2Pa2cY.d.ts +0 -718
  24. package/dist/WebhookProcessor-Dq2Pa2cY.d.ts.map +0 -1
  25. package/dist/api/encryption/index.d.ts +0 -3
  26. package/dist/api/encryption/index.js +0 -1
  27. package/dist/api/flow/index.d.ts +0 -5
  28. package/dist/api/flow/index.js +0 -1
  29. package/dist/api/index.d.ts +0 -17
  30. package/dist/api/index.js +0 -1
  31. package/dist/api/media/index.d.ts +0 -3
  32. package/dist/api/media/index.js +0 -1
  33. package/dist/api/messages/builders/index.d.ts +0 -539
  34. package/dist/api/messages/builders/index.d.ts.map +0 -1
  35. package/dist/api/messages/builders/index.js +0 -2
  36. package/dist/api/messages/builders/index.js.map +0 -1
  37. package/dist/api/messages/index.d.ts +0 -4
  38. package/dist/api/messages/index.js +0 -1
  39. package/dist/api/phone/index.d.ts +0 -3
  40. package/dist/api/phone/index.js +0 -1
  41. package/dist/api/profile/index.d.ts +0 -3
  42. package/dist/api/profile/index.js +0 -1
  43. package/dist/api/qrCode/index.d.ts +0 -3
  44. package/dist/api/qrCode/index.js +0 -1
  45. package/dist/api/registration/index.d.ts +0 -3
  46. package/dist/api/registration/index.js +0 -1
  47. package/dist/api/template/index.d.ts +0 -3
  48. package/dist/api/template/index.js +0 -1
  49. package/dist/api/twoStepVerification/index.d.ts +0 -3
  50. package/dist/api/twoStepVerification/index.js +0 -1
  51. package/dist/api/waba/index.d.ts +0 -3
  52. package/dist/api/waba/index.js +0 -1
  53. package/dist/api-8hRAOyaL.js +0 -1
  54. package/dist/base-CfDkvT1x.d.ts.map +0 -1
  55. package/dist/base-D-cXu_lA.js +0 -2
  56. package/dist/base-D-cXu_lA.js.map +0 -1
  57. package/dist/buildFieldsQueryString-Cr-jz3p0.js +0 -2
  58. package/dist/buildFieldsQueryString-Cr-jz3p0.js.map +0 -1
  59. package/dist/chunk-CTAAG5j7.js +0 -1
  60. package/dist/common-C6FXBDm7.js +0 -2
  61. package/dist/common-C6FXBDm7.js.map +0 -1
  62. package/dist/common-CVbsmD26.d.ts +0 -426
  63. package/dist/common-CVbsmD26.d.ts.map +0 -1
  64. package/dist/common-CvPVD1o6.d.ts +0 -406
  65. package/dist/common-CvPVD1o6.d.ts.map +0 -1
  66. package/dist/core/webhook/frameworks/express.d.ts +0 -20
  67. package/dist/core/webhook/frameworks/express.js +0 -1
  68. package/dist/core/webhook/frameworks/nextjs-app.d.ts +0 -45
  69. package/dist/core/webhook/frameworks/nextjs-app.d.ts.map +0 -1
  70. package/dist/core/webhook/frameworks/nextjs-app.js +0 -2
  71. package/dist/core/webhook/frameworks/nextjs-app.js.map +0 -1
  72. package/dist/core/webhook/frameworks/nextjs.d.ts +0 -20
  73. package/dist/core/webhook/frameworks/nextjs.js +0 -1
  74. package/dist/core/webhook/index.d.ts +0 -20
  75. package/dist/core/webhook/index.js +0 -1
  76. package/dist/core/whatsapp/index.d.ts +0 -18
  77. package/dist/core/whatsapp/index.js +0 -1
  78. package/dist/encryption-Cwc0xcVL.js +0 -2
  79. package/dist/encryption-Cwc0xcVL.js.map +0 -1
  80. package/dist/enums-CSUpFXb8.js +0 -2
  81. package/dist/enums-CSUpFXb8.js.map +0 -1
  82. package/dist/express-B6fQdflY.d.ts +0 -78
  83. package/dist/express-B6fQdflY.d.ts.map +0 -1
  84. package/dist/express-CrfNLYMM.js +0 -2
  85. package/dist/express-CrfNLYMM.js.map +0 -1
  86. package/dist/flow-CVes0Qus.js +0 -2
  87. package/dist/flow-CVes0Qus.js.map +0 -1
  88. package/dist/flowTypeGuards-Gn3-slCW.js +0 -2
  89. package/dist/flowTypeGuards-Gn3-slCW.js.map +0 -1
  90. package/dist/handler-BGqjZ0xg.js +0 -2
  91. package/dist/handler-BGqjZ0xg.js.map +0 -1
  92. package/dist/index-3KglHVAg.d.ts +0 -354
  93. package/dist/index-3KglHVAg.d.ts.map +0 -1
  94. package/dist/index-BNeg6hHx.d.ts +0 -99
  95. package/dist/index-BNeg6hHx.d.ts.map +0 -1
  96. package/dist/index-BiTq23oi.d.ts +0 -34
  97. package/dist/index-BiTq23oi.d.ts.map +0 -1
  98. package/dist/index-BmfnREgM.d.ts +0 -47
  99. package/dist/index-BmfnREgM.d.ts.map +0 -1
  100. package/dist/index-CaGffSja.d.ts +0 -24
  101. package/dist/index-CaGffSja.d.ts.map +0 -1
  102. package/dist/index-CeTmbIXi.d.ts +0 -180
  103. package/dist/index-CeTmbIXi.d.ts.map +0 -1
  104. package/dist/index-CoyByMuM.d.ts +0 -137
  105. package/dist/index-CoyByMuM.d.ts.map +0 -1
  106. package/dist/index-CwujtcvH.d.ts +0 -370
  107. package/dist/index-CwujtcvH.d.ts.map +0 -1
  108. package/dist/index-DQ7z58xp.d.ts +0 -104
  109. package/dist/index-DQ7z58xp.d.ts.map +0 -1
  110. package/dist/index-DQkgkiB6.d.ts.map +0 -1
  111. package/dist/index-LKrIp3Oo.d.ts +0 -1
  112. package/dist/index-_-06JPan.d.ts +0 -143
  113. package/dist/index-_-06JPan.d.ts.map +0 -1
  114. package/dist/index-a_YS40Iv.d.ts +0 -91
  115. package/dist/index-a_YS40Iv.d.ts.map +0 -1
  116. package/dist/index-d7TLqtYh.d.ts +0 -171
  117. package/dist/index-d7TLqtYh.d.ts.map +0 -1
  118. package/dist/isMetaError-B3AglYeY.d.ts +0 -66
  119. package/dist/isMetaError-B3AglYeY.d.ts.map +0 -1
  120. package/dist/media-Dw5OGzDD.js +0 -2
  121. package/dist/media-Dw5OGzDD.js.map +0 -1
  122. package/dist/messages-h5-NW8QO.js +0 -2
  123. package/dist/messages-h5-NW8QO.js.map +0 -1
  124. package/dist/nextjs-DxRCL4t3.js +0 -2
  125. package/dist/nextjs-DxRCL4t3.js.map +0 -1
  126. package/dist/objectToQueryString-CAHI0qTs.js +0 -2
  127. package/dist/objectToQueryString-CAHI0qTs.js.map +0 -1
  128. package/dist/phone-CZyWLyWB.js +0 -2
  129. package/dist/phone-CZyWLyWB.js.map +0 -1
  130. package/dist/profile-Bb7GDP0n.js +0 -2
  131. package/dist/profile-Bb7GDP0n.js.map +0 -1
  132. package/dist/qrCode-CeZEtX9J.js +0 -2
  133. package/dist/qrCode-CeZEtX9J.js.map +0 -1
  134. package/dist/registration-BkjhC3xw.js +0 -2
  135. package/dist/registration-BkjhC3xw.js.map +0 -1
  136. package/dist/template-Bgy-BCXJ.js +0 -2
  137. package/dist/template-Bgy-BCXJ.js.map +0 -1
  138. package/dist/twoStepVerification-DYlYF_P5.js +0 -2
  139. package/dist/twoStepVerification-DYlYF_P5.js.map +0 -1
  140. package/dist/types/index.d.ts +0 -3
  141. package/dist/types/index.js +0 -1
  142. package/dist/utils/index.d.ts +0 -43
  143. package/dist/utils/index.d.ts.map +0 -1
  144. package/dist/utils/index.js +0 -1
  145. package/dist/version-BUuqrHc6.js +0 -3
  146. package/dist/version-BUuqrHc6.js.map +0 -1
  147. package/dist/waba-SF2W3z2U.js +0 -2
  148. package/dist/waba-SF2W3z2U.js.map +0 -1
  149. package/dist/webhook-D4DQ01Xq.js +0 -2
  150. package/dist/webhook-D4DQ01Xq.js.map +0 -1
  151. package/dist/whatsapp-B85mxH5f.js +0 -10
  152. package/dist/whatsapp-B85mxH5f.js.map +0 -1
@@ -1,406 +0,0 @@
1
- import { ResponseSuccess } from "./base-CfDkvT1x.js";
2
- import { IncomingHttpHeaders, IncomingMessage } from "http";
3
-
4
- //#region src/api/flow/types/common.d.ts
5
-
6
- /**
7
- * Enum for Flow Status
8
- */
9
- declare enum FlowStatusEnum {
10
- Draft = "DRAFT",
11
- Published = "PUBLISHED",
12
- Throttled = "THROTTLED",
13
- Blocked = "BLOCKED",
14
- Deprecated = "DEPRECATED",
15
- }
16
- /**
17
- * Enum for Flow Categories
18
- */
19
- declare enum FlowCategoryEnum {
20
- SignUp = "SIGN_UP",
21
- SignIn = "SIGN_IN",
22
- AppointmentBooking = "APPOINTMENT_BOOKING",
23
- LeadGeneration = "LEAD_GENERATION",
24
- ContactUs = "CONTACT_US",
25
- CustomerSupport = "CUSTOMER_SUPPORT",
26
- Survey = "SURVEY",
27
- Other = "OTHER",
28
- }
29
- declare enum FlowActionEnum {
30
- INIT = "INIT",
31
- BACK = "BACK",
32
- DATA_EXCHANGE = "data_exchange",
33
- }
34
- /**
35
- * Enum for Flow Types in webhook handlers
36
- * Used to register handlers for specific flow events
37
- */
38
- declare enum FlowTypeEnum {
39
- /** Health check/ping requests */
40
- Ping = "ping",
41
- /** Data exchange requests */
42
- Change = "data_exchange",
43
- /** Error notification requests */
44
- Error = "error",
45
- /** Match all flow action types */
46
- All = "*",
47
- }
48
- type FlowType = (typeof FlowTypeEnum)[keyof typeof FlowTypeEnum];
49
- /**
50
- * Flow Validation Error Pointer
51
- */
52
- interface FlowValidationErrorPointer {
53
- line_start: number;
54
- line_end: number;
55
- column_start: number;
56
- column_end: number;
57
- path: string;
58
- }
59
- /**
60
- * Flow Validation Error
61
- */
62
- interface FlowValidationError {
63
- error: string;
64
- error_type: string;
65
- message: string;
66
- line_start: number;
67
- line_end: number;
68
- column_start: number;
69
- column_end: number;
70
- pointers: FlowValidationErrorPointer[];
71
- }
72
- /**
73
- * Flow Item
74
- */
75
- interface Flow {
76
- id: string;
77
- name: string;
78
- status: FlowStatusEnum;
79
- categories: FlowCategoryEnum[];
80
- validation_errors: FlowValidationError[];
81
- }
82
- /**
83
- * Pagination Cursors
84
- */
85
- interface PaginationCursors {
86
- before: string;
87
- after: string;
88
- }
89
- /**
90
- * Pagination Object
91
- */
92
- interface Pagination {
93
- cursors: PaginationCursors;
94
- }
95
- /**
96
- * Flows List Response
97
- */
98
- interface FlowsListResponse {
99
- data: Flow[];
100
- paging: Pagination;
101
- }
102
- /**
103
- * Flow Asset
104
- */
105
- interface FlowAsset {
106
- name: string;
107
- asset_type: string;
108
- download_url: string;
109
- }
110
- /**
111
- * Flow Assets Response
112
- */
113
- interface FlowAssetsResponse {
114
- data: FlowAsset[];
115
- paging: Pagination;
116
- }
117
- /**
118
- * Flow Preview
119
- */
120
- interface FlowPreview {
121
- preview_url: string;
122
- expires_at: string;
123
- }
124
- /**
125
- * Flow Preview Response
126
- */
127
- interface FlowPreviewResponse {
128
- preview: FlowPreview;
129
- id: string;
130
- }
131
- /**
132
- * Flow Migration Result
133
- */
134
- interface FlowMigrationResult {
135
- source_name: string;
136
- source_id: string;
137
- migrated_id: string;
138
- }
139
- /**
140
- * Flow Migration Failure
141
- */
142
- interface FlowMigrationFailure {
143
- source_name: string;
144
- error_code: string;
145
- error_message: string;
146
- }
147
- /**
148
- * Create Flow Response
149
- */
150
- interface CreateFlowResponse {
151
- id: string;
152
- success: boolean;
153
- validation_errors?: FlowValidationError[];
154
- }
155
- /**
156
- * Update Flow Response
157
- */
158
- interface UpdateFlowResponse {
159
- success: boolean;
160
- validation_errors?: FlowValidationError[];
161
- }
162
- /**
163
- * Flow Migration Response
164
- */
165
- interface FlowMigrationResponse {
166
- migrated_flows: FlowMigrationResult[];
167
- failed_flows: FlowMigrationFailure[];
168
- }
169
- /**
170
- * Validate Flow JSON Response
171
- */
172
- interface ValidateFlowJsonResponse {
173
- valid: boolean;
174
- success: boolean;
175
- validation_errors?: FlowValidationError[];
176
- }
177
- /**
178
- * WhatsApp Flow Endpoint - Encrypted Request Payload
179
- * Represents the raw encrypted data received from WhatsApp
180
- */
181
- interface FlowEncryptedRequestPayload {
182
- encrypted_aes_key: string;
183
- encrypted_flow_data: string;
184
- initial_vector: string;
185
- }
186
- /**
187
- * WhatsApp Flow Endpoint - Decrypted Request Response
188
- * Represents the successfully decrypted data and encryption keys
189
- */
190
- interface FlowDecryptedRequestResponse {
191
- decryptedBody: any;
192
- aesKeyBuffer: Buffer;
193
- initialVectorBuffer: Buffer;
194
- }
195
- /**
196
- * WhatsApp Flow Endpoint - HTTP Request with Body
197
- * Represents an HTTP request with the encrypted payload
198
- */
199
- interface FlowHttpRequest extends IncomingMessage {
200
- body: FlowEncryptedRequestPayload;
201
- headers: IncomingHttpHeaders;
202
- }
203
- /**
204
- * WhatsApp Flow Endpoint - Health Check Request
205
- * Represents the structure of a health check request
206
- */
207
- interface FlowHealthCheckRequest {
208
- action: 'ping';
209
- version: '3.0';
210
- }
211
- /**
212
- * WhatsApp Flow Endpoint - Health Check Response
213
- * The expected response structure for health check requests
214
- */
215
- interface FlowHealthCheckResponse {
216
- data: {
217
- status: 'active';
218
- };
219
- }
220
- /**
221
- * WhatsApp Flow Endpoint - Data Exchange Request
222
- * Represents the structure of a data exchange request
223
- */
224
- interface FlowDataExchangeRequest {
225
- version: '3.0';
226
- action: FlowActionEnum;
227
- screen: string;
228
- flow_token: string;
229
- data?: Record<string, any> & {
230
- error_message?: string;
231
- };
232
- }
233
- /**
234
- * WhatsApp Flow Endpoint - Data Exchange Response
235
- * The expected response structure for data exchange requests
236
- */
237
- interface FlowDataExchangeResponse {
238
- screen?: string;
239
- data?: Record<string, any | {
240
- error_message?: string;
241
- }>;
242
- }
243
- /**
244
- * WhatsApp Flow Endpoint - Success Screen Response
245
- * The expected response structure for success screen requests
246
- */
247
- interface FlowSuccessScreenResponse {
248
- screen: 'SUCCESS';
249
- data: {
250
- extension_message_response?: {
251
- params?: {
252
- flow_token: string;
253
- [key: string]: string;
254
- };
255
- };
256
- };
257
- }
258
- /**
259
- * WhatsApp Flow Endpoint - Error Notification Request
260
- * Represents the structure of an error notification request
261
- */
262
- interface FlowErrorNotificationRequest {
263
- version: '3.0';
264
- action: Exclude<FlowActionEnum, FlowActionEnum.BACK>;
265
- screen: string;
266
- flow_token: string;
267
- data: {
268
- error: string;
269
- error_message: string;
270
- };
271
- }
272
- /**
273
- * WhatsApp Flow Endpoint - Error Notification Response
274
- * The expected response structure for error notification requests
275
- */
276
- interface FlowErrorNotificationResponse {
277
- acknowledged: boolean;
278
- }
279
- /**
280
- * WhatsApp Flow Endpoint - Comprehensive Request Object
281
- * A combined type that includes all possible fields from different request types
282
- * with all fields being optional for flexibility
283
- */
284
- interface FlowEndpointRequest {
285
- version?: '3.0';
286
- action?: 'ping' | FlowActionEnum;
287
- screen?: string;
288
- flow_token?: string;
289
- data?: Record<string, any> & {
290
- error_key?: string;
291
- error_message?: string;
292
- };
293
- }
294
- /**
295
- * WhatsApp Flow Endpoint - Response
296
- * Union type for all possible response types from a Flow endpoint
297
- */
298
- type FlowEndpointResponse = FlowHealthCheckResponse | FlowDataExchangeResponse | FlowErrorNotificationResponse | FlowSuccessScreenResponse;
299
- interface FlowClass {
300
- /**
301
- * List Flows
302
- *
303
- * @param wabaId - The WABA ID
304
- * @returns Promise with the list of flows
305
- */
306
- listFlows(wabaId: string): Promise<FlowsListResponse>;
307
- /**
308
- * Create Flow
309
- *
310
- * @param wabaId - The WABA ID
311
- * @param data - The flow data including name, categories, endpoint_uri, and optional clone_flow_id
312
- * @returns Promise with the created flow ID
313
- */
314
- createFlow(wabaId: string, data: {
315
- name: string;
316
- categories?: FlowCategoryEnum[];
317
- endpoint_uri?: string;
318
- clone_flow_id?: string;
319
- flow_json?: string;
320
- publish?: boolean;
321
- }): Promise<CreateFlowResponse>;
322
- /**
323
- * Get Flow
324
- *
325
- * @param flowId - The flow ID
326
- * @param fields - Optional fields to return
327
- * @param dateFormat - Optional date format
328
- * @returns Promise with the flow details
329
- */
330
- getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<Flow | FlowPreviewResponse>;
331
- /**
332
- * Update Flow Metadata
333
- *
334
- * @param flowId - The flow ID
335
- * @param data - The flow metadata to update
336
- * @returns Promise with the success status
337
- */
338
- updateFlowMetadata(flowId: string, data: {
339
- name?: string;
340
- categories?: FlowCategoryEnum[];
341
- endpoint_uri?: string;
342
- application_id?: string;
343
- }): Promise<ResponseSuccess>;
344
- /**
345
- * Delete Flow
346
- *
347
- * @param flowId - The flow ID
348
- * @returns Promise with the success status
349
- */
350
- deleteFlow(flowId: string): Promise<ResponseSuccess>;
351
- /**
352
- * List Assets (Get Flow JSON URL)
353
- *
354
- * @param flowId - The flow ID
355
- * @returns Promise with the list of assets
356
- */
357
- listAssets(flowId: string): Promise<FlowAssetsResponse>;
358
- /**
359
- * Update Flow JSON
360
- *
361
- * @param flowId - The flow ID
362
- * @param data - The asset data including asset_type, file, and name
363
- * @returns Promise with the success status and validation errors
364
- */
365
- updateFlowJson(flowId: string, data: {
366
- file: Blob | Buffer | object;
367
- name?: string;
368
- }): Promise<UpdateFlowResponse>;
369
- /**
370
- * Validate Flow JSON by attempting an update without publishing.
371
- * This is a convenience method; the API doesn't have a dedicated validation endpoint.
372
- *
373
- * @param flowId - The ID of the Flow (must exist, can be in DRAFT status).
374
- * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.
375
- * @returns Promise indicating if the JSON is valid and includes validation errors if any.
376
- */
377
- validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<ValidateFlowJsonResponse>;
378
- /**
379
- * Publish Flow
380
- *
381
- * @param flowId - The flow ID
382
- * @returns Promise with the success status
383
- */
384
- publishFlow(flowId: string): Promise<ResponseSuccess>;
385
- /**
386
- * Deprecate Flow
387
- *
388
- * @param flowId - The flow ID
389
- * @returns Promise with the success status
390
- */
391
- deprecateFlow(flowId: string): Promise<ResponseSuccess>;
392
- /**
393
- * Migrate Flows
394
- *
395
- * @param wabaId - The destination WABA ID
396
- * @param data - The migration data including source_waba_id and optional source_flow_names
397
- * @returns Promise with migration results
398
- */
399
- migrateFlows(wabaId: string, data: {
400
- source_waba_id: string;
401
- source_flow_names?: string[];
402
- }): Promise<FlowMigrationResponse>;
403
- }
404
- //#endregion
405
- export { CreateFlowResponse, Flow, FlowActionEnum, FlowAsset, FlowAssetsResponse, FlowCategoryEnum, FlowClass, FlowDataExchangeRequest, FlowDataExchangeResponse, FlowDecryptedRequestResponse, FlowEncryptedRequestPayload, FlowEndpointRequest, FlowEndpointResponse, FlowErrorNotificationRequest, FlowErrorNotificationResponse, FlowHealthCheckRequest, FlowHealthCheckResponse, FlowHttpRequest, FlowMigrationFailure, FlowMigrationResponse, FlowMigrationResult, FlowPreview, FlowPreviewResponse, FlowStatusEnum, FlowSuccessScreenResponse, FlowType, FlowTypeEnum, FlowValidationError, FlowValidationErrorPointer, FlowsListResponse, Pagination, PaginationCursors, UpdateFlowResponse, ValidateFlowJsonResponse };
406
- //# sourceMappingURL=common-CvPVD1o6.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common-CvPVD1o6.d.ts","names":[],"sources":["../src/api/flow/types/common.ts"],"sourcesContent":[],"mappings":";;;;;;;AAMA;AAWY,aAXA,cAAA;EAsBA,KAAA,GAAA,OAAA;EAUA,SAAA,GAAA,WAAY;EAWZ,SAAA,GAAQ,WAAA;EAAA,OAAA,GAAA,SAAA;YAAW,GAAA,YAAA;;;AAK/B;AAWA;AAciB,aA9DL,gBAAA;EA8DS,MAAA,GAAA,SAAA;QAGT,GAAA,SAAA;oBACI,GAAA,qBAAA;gBAC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6.js";
4
- import "../../../common-CvPVD1o6.js";
5
- import "../../../index-CoyByMuM.js";
6
- import "../../../index-a_YS40Iv.js";
7
- import "../../../common-CVbsmD26.js";
8
- import "../../../index-d7TLqtYh.js";
9
- import "../../../index-_-06JPan.js";
10
- import "../../../index-3KglHVAg.js";
11
- import "../../../index-BNeg6hHx.js";
12
- import "../../../index-BmfnREgM.js";
13
- import "../../../index-CwujtcvH.js";
14
- import "../../../index-BiTq23oi.js";
15
- import "../../../index-CeTmbIXi.js";
16
- import "../../../index-LKrIp3Oo.js";
17
- import "../../../index-DQ7z58xp.js";
18
- import "../../../WebhookProcessor-Dq2Pa2cY.js";
19
- import { ExpressRequest, ExpressResponse, ExpressWebhookConfig, NextFunction, webhookHandler } from "../../../express-B6fQdflY.js";
20
- export { ExpressRequest, ExpressResponse, ExpressWebhookConfig, NextFunction, webhookHandler };
@@ -1 +0,0 @@
1
- import"../../../enums-CSUpFXb8.js";import"../../../version-BUuqrHc6.js";import"../../../whatsapp-B85mxH5f.js";import"../../../base-D-cXu_lA.js";import"../../../encryption-Cwc0xcVL.js";import"../../../flow-CVes0Qus.js";import"../../../common-C6FXBDm7.js";import"../../../media-Dw5OGzDD.js";import"../../../messages-h5-NW8QO.js";import"../../../objectToQueryString-CAHI0qTs.js";import"../../../phone-CZyWLyWB.js";import"../../../buildFieldsQueryString-Cr-jz3p0.js";import"../../../profile-Bb7GDP0n.js";import"../../../qrCode-CeZEtX9J.js";import"../../../registration-BkjhC3xw.js";import"../../../template-Bgy-BCXJ.js";import"../../../twoStepVerification-DYlYF_P5.js";import"../../../waba-SF2W3z2U.js";import"../../../api-8hRAOyaL.js";import"../../../flowTypeGuards-Gn3-slCW.js";import"../../../WebhookProcessor-BUZFeZD_.js";import"../../../handler-BGqjZ0xg.js";import{webhookHandler as e}from"../../../express-CrfNLYMM.js";export{e as webhookHandler};
@@ -1,45 +0,0 @@
1
- import { WhatsAppConfig } from "../../../base-CfDkvT1x.js";
2
- import "../../../index-CaGffSja.js";
3
- import "../../../index-DQkgkiB6.js";
4
- import "../../../common-CvPVD1o6.js";
5
- import "../../../index-CoyByMuM.js";
6
- import "../../../index-a_YS40Iv.js";
7
- import "../../../common-CVbsmD26.js";
8
- import "../../../index-d7TLqtYh.js";
9
- import "../../../index-_-06JPan.js";
10
- import "../../../index-3KglHVAg.js";
11
- import "../../../index-BNeg6hHx.js";
12
- import "../../../index-BmfnREgM.js";
13
- import "../../../index-CwujtcvH.js";
14
- import "../../../index-BiTq23oi.js";
15
- import "../../../index-CeTmbIXi.js";
16
- import "../../../index-LKrIp3Oo.js";
17
- import "../../../index-DQ7z58xp.js";
18
- import { WebhookProcessor } from "../../../WebhookProcessor-Dq2Pa2cY.js";
19
-
20
- //#region src/core/webhook/frameworks/nextjs-app.d.ts
21
- interface NextRequest extends Request {
22
- nextUrl: {
23
- searchParams: URLSearchParams;
24
- };
25
- }
26
- interface NextResponse {
27
- json(data: any): NextResponse;
28
- }
29
- interface NextJsAppWebhookConfig extends WhatsAppConfig {}
30
- declare function webhookHandler(config: NextJsAppWebhookConfig): {
31
- GET: (request: NextRequest) => Promise<Response>;
32
- POST: (request: NextRequest) => Promise<Response>;
33
- webhook: {
34
- GET: (request: NextRequest) => Promise<Response>;
35
- POST: (request: NextRequest) => Promise<Response>;
36
- };
37
- flow: {
38
- GET: (request: NextRequest) => Promise<Response>;
39
- POST: (request: NextRequest) => Promise<Response>;
40
- };
41
- processor: WebhookProcessor;
42
- };
43
- //#endregion
44
- export { NextJsAppWebhookConfig, NextRequest, NextResponse, webhookHandler };
45
- //# sourceMappingURL=nextjs-app.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nextjs-app.d.ts","names":[],"sources":["../../../../src/core/webhook/frameworks/nextjs-app.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;UAIiB,WAAA,SAAoB;;kBAEf;;;UAIL,YAAA;mBACI;;UAGJ,sBAAA,SAA+B;iBAIhC,cAAA,SAAuB;iBAKV,gBAAW,QAAA;kBAoBV,gBAAW,QAAA;;mBAiBR,gBAAW,QAAA;oBAkBV,gBAAW,QAAA;;;IA1E5B,GAAA,EAAA,CAAA,OAAY,EA0FI,WA1FJ,EAAA,GA0Fe,OA1Ff,CA0Fe,QA1Ff,CAAA;IAAA,IAAA,EAAA,CAAA,OAAA,EAwGK,WAxGL,EAAA,GAwGgB,OAxGhB,CAwGgB,QAxGhB,CAAA;;WAAQ,kBAAA;CAAO"}
@@ -1,2 +0,0 @@
1
- import"../../../enums-CSUpFXb8.js";import"../../../version-BUuqrHc6.js";import"../../../whatsapp-B85mxH5f.js";import"../../../base-D-cXu_lA.js";import"../../../encryption-Cwc0xcVL.js";import"../../../flow-CVes0Qus.js";import"../../../common-C6FXBDm7.js";import"../../../media-Dw5OGzDD.js";import"../../../messages-h5-NW8QO.js";import"../../../objectToQueryString-CAHI0qTs.js";import"../../../phone-CZyWLyWB.js";import"../../../buildFieldsQueryString-Cr-jz3p0.js";import"../../../profile-Bb7GDP0n.js";import"../../../qrCode-CeZEtX9J.js";import"../../../registration-BkjhC3xw.js";import"../../../template-Bgy-BCXJ.js";import"../../../twoStepVerification-DYlYF_P5.js";import"../../../waba-SF2W3z2U.js";import"../../../api-8hRAOyaL.js";import"../../../flowTypeGuards-Gn3-slCW.js";import{WebhookProcessor as e}from"../../../WebhookProcessor-BUZFeZD_.js";function t(t){let n=new e(t);return{GET:async e=>{try{let{searchParams:t}=new URL(e.url),r=t.get(`hub.mode`),i=t.get(`hub.verify_token`),a=t.get(`hub.challenge`),o=await n.processVerification(r,i,a);return new Response(o.body,{status:o.status,headers:o.headers})}catch(e){return console.error(`Webhook verification error:`,e),new Response(`Internal Server Error`,{status:500})}},POST:async e=>{try{let t=await n.processWebhook(e);return new Response(t.body,{status:t.status,headers:t.headers})}catch(e){return console.error(`Webhook processing error:`,e),new Response(`Internal Server Error`,{status:500})}},webhook:{GET:async e=>{try{let{searchParams:t}=new URL(e.url),r=t.get(`hub.mode`),i=t.get(`hub.verify_token`),a=t.get(`hub.challenge`),o=await n.processVerification(r,i,a);return new Response(o.body,{status:o.status,headers:o.headers})}catch(e){return console.error(`Webhook verification error:`,e),new Response(`Internal Server Error`,{status:500})}},POST:async e=>{try{let t=await n.processWebhook(e);return new Response(t.body,{status:t.status,headers:t.headers})}catch(e){return console.error(`Webhook processing error:`,e),new Response(`Internal Server Error`,{status:500})}}},flow:{GET:async e=>{try{let t=await n.processFlow(e);return Response.json(t.body,{status:t.status,headers:t.headers})}catch(e){return console.error(`Flow GET error:`,e),new Response(`Internal Server Error`,{status:500})}},POST:async e=>{try{let t=await n.processFlow(e);return Response.json(t.body,{status:t.status,headers:t.headers})}catch(e){return console.error(`Flow POST error:`,e),new Response(`Internal Server Error`,{status:500})}}},processor:n}}export{t as webhookHandler};
2
- //# sourceMappingURL=nextjs-app.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nextjs-app.js","names":[],"sources":["../../../../src/core/webhook/frameworks/nextjs-app.ts"],"sourcesContent":["import { WhatsAppConfig } from '../../../types/config';\nimport { WebhookProcessor } from '../WebhookProcessor';\n\n// Define Next.js types locally to avoid requiring Next.js as a dependency\nexport interface NextRequest extends Request {\n nextUrl: {\n searchParams: URLSearchParams;\n };\n}\n\nexport interface NextResponse {\n json(data: any): NextResponse;\n}\n\nexport interface NextJsAppWebhookConfig extends WhatsAppConfig {\n // App Router specific config (currently none, but interface reserved for future use)\n}\n\nexport function webhookHandler(config: NextJsAppWebhookConfig) {\n const processor = new WebhookProcessor(config);\n\n return {\n // Clean GET/POST handlers following whatsapp-api-js methodology\n GET: async (request: NextRequest) => {\n try {\n const { searchParams } = new URL(request.url);\n const mode = searchParams.get('hub.mode');\n const token = searchParams.get('hub.verify_token');\n const challenge = searchParams.get('hub.challenge');\n\n const result = await processor.processVerification(mode, token, challenge);\n\n // Return plain text response for webhook verification\n return new Response(result.body, {\n status: result.status,\n headers: result.headers,\n });\n } catch (error) {\n console.error('Webhook verification error:', error);\n return new Response('Internal Server Error', { status: 500 });\n }\n },\n\n POST: async (request: NextRequest) => {\n try {\n const result = await processor.processWebhook(request);\n\n // Return JSON response for webhook processing\n return new Response(result.body, {\n status: result.status,\n headers: result.headers,\n });\n } catch (error) {\n console.error('Webhook processing error:', error);\n return new Response('Internal Server Error', { status: 500 });\n }\n },\n\n // Legacy webhook object for backward compatibility\n webhook: {\n GET: async (request: NextRequest) => {\n try {\n const { searchParams } = new URL(request.url);\n const mode = searchParams.get('hub.mode');\n const token = searchParams.get('hub.verify_token');\n const challenge = searchParams.get('hub.challenge');\n\n const result = await processor.processVerification(mode, token, challenge);\n return new Response(result.body, {\n status: result.status,\n headers: result.headers,\n });\n } catch (error) {\n console.error('Webhook verification error:', error);\n return new Response('Internal Server Error', { status: 500 });\n }\n },\n\n POST: async (request: NextRequest) => {\n try {\n const result = await processor.processWebhook(request);\n return new Response(result.body, {\n status: result.status,\n headers: result.headers,\n });\n } catch (error) {\n console.error('Webhook processing error:', error);\n return new Response('Internal Server Error', { status: 500 });\n }\n },\n },\n\n // Flow handler for App Router\n flow: {\n GET: async (request: NextRequest) => {\n try {\n const result = await processor.processFlow(request);\n\n return Response.json(result.body, {\n status: result.status,\n headers: result.headers,\n });\n } catch (error) {\n console.error('Flow GET error:', error);\n return new Response('Internal Server Error', { status: 500 });\n }\n },\n\n POST: async (request: NextRequest) => {\n try {\n const result = await processor.processFlow(request);\n\n return Response.json(result.body, {\n status: result.status,\n headers: result.headers,\n });\n } catch (error) {\n console.error('Flow POST error:', error);\n return new Response('Internal Server Error', { status: 500 });\n }\n },\n },\n\n // Expose processor for handler registration\n processor,\n };\n}\n"],"mappings":"i1BAkBA,SAAgB,EAAe,EAAgC,CAC3D,IAAM,EAAY,IAAI,EAAiB,EAAO,CAE9C,MAAO,CAEH,IAAK,KAAO,IAAyB,CACjC,GAAI,CACA,GAAM,CAAE,gBAAiB,IAAI,IAAI,EAAQ,IAAI,CACvC,EAAO,EAAa,IAAI,WAAW,CACnC,EAAQ,EAA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SAAS,wBAAyB,CAAE,OAAQ,IAAK,CAAC,GAGxE,CAGD,KAAM,CACF,IAAK,KAAO,IAAyB,CACjC,GAAI,CACA,IAAM,EAAS,MAAM,EAAU,YAAY,EAAQ,CAEnD,OAAO,SAAS,KAAK,EAAO,KAAM,CAC9B,OAAQ,EAAO,OACf,QAAS,EAAO,QACnB,CAAC,OACG,EAAO,CAEZ,OADA,QAAQ,MAAM,kBAAmB,EAAM,CAChC,IAAI,SAAS,wBAAyB,CAAE,OAAQ,IAAK,CAAC,GAIrE,KAAM,KAAO,IAAyB,CAClC,GAAI,CACA,IAAM,EAAS,MAAM,EAAU,YAAY,EAAQ,CAEnD,OAAO,SAAS,KAAK,EAAO,KAAM,CAC9B,OAAQ,EAAO,OACf,QAAS,EAAO,QACnB,CAAC,OACG,EAAO,CAEZ,OADA,QAAQ,MAAM,mBAAoB,EAAM,CACjC,IAAI,SAAS,wBAAyB,CAAE,OAAQ,IAAK,CAAC,GAGxE,CAGD,YACH"}
@@ -1,20 +0,0 @@
1
- import "../../../base-CfDkvT1x.js";
2
- import "../../../index-CaGffSja.js";
3
- import "../../../index-DQkgkiB6.js";
4
- import "../../../common-CvPVD1o6.js";
5
- import "../../../index-CoyByMuM.js";
6
- import "../../../index-a_YS40Iv.js";
7
- import "../../../common-CVbsmD26.js";
8
- import "../../../index-d7TLqtYh.js";
9
- import "../../../index-_-06JPan.js";
10
- import "../../../index-3KglHVAg.js";
11
- import "../../../index-BNeg6hHx.js";
12
- import "../../../index-BmfnREgM.js";
13
- import "../../../index-CwujtcvH.js";
14
- import "../../../index-BiTq23oi.js";
15
- import "../../../index-CeTmbIXi.js";
16
- import "../../../index-LKrIp3Oo.js";
17
- import "../../../index-DQ7z58xp.js";
18
- import "../../../WebhookProcessor-Dq2Pa2cY.js";
19
- import { BaseApiRequest, BaseApiResponse, NextJsWebhookConfig, webhookHandler$1 as webhookHandler } from "../../../express-B6fQdflY.js";
20
- export { BaseApiRequest, BaseApiResponse, NextJsWebhookConfig, webhookHandler };
@@ -1 +0,0 @@
1
- import"../../../enums-CSUpFXb8.js";import"../../../version-BUuqrHc6.js";import"../../../whatsapp-B85mxH5f.js";import"../../../base-D-cXu_lA.js";import"../../../encryption-Cwc0xcVL.js";import"../../../flow-CVes0Qus.js";import"../../../common-C6FXBDm7.js";import"../../../media-Dw5OGzDD.js";import"../../../messages-h5-NW8QO.js";import"../../../objectToQueryString-CAHI0qTs.js";import"../../../phone-CZyWLyWB.js";import"../../../buildFieldsQueryString-Cr-jz3p0.js";import"../../../profile-Bb7GDP0n.js";import"../../../qrCode-CeZEtX9J.js";import"../../../registration-BkjhC3xw.js";import"../../../template-Bgy-BCXJ.js";import"../../../twoStepVerification-DYlYF_P5.js";import"../../../waba-SF2W3z2U.js";import"../../../api-8hRAOyaL.js";import"../../../flowTypeGuards-Gn3-slCW.js";import"../../../WebhookProcessor-BUZFeZD_.js";import"../../../handler-BGqjZ0xg.js";import{webhookHandler as e}from"../../../nextjs-DxRCL4t3.js";export{e as webhookHandler};
@@ -1,20 +0,0 @@
1
- import "../../base-CfDkvT1x.js";
2
- import "../../index-CaGffSja.js";
3
- import "../../index-DQkgkiB6.js";
4
- import "../../common-CvPVD1o6.js";
5
- import "../../index-CoyByMuM.js";
6
- import "../../index-a_YS40Iv.js";
7
- import "../../common-CVbsmD26.js";
8
- import "../../index-d7TLqtYh.js";
9
- import "../../index-_-06JPan.js";
10
- import "../../index-3KglHVAg.js";
11
- import "../../index-BNeg6hHx.js";
12
- import "../../index-BmfnREgM.js";
13
- import "../../index-CwujtcvH.js";
14
- import "../../index-BiTq23oi.js";
15
- import "../../index-CeTmbIXi.js";
16
- import "../../index-LKrIp3Oo.js";
17
- import "../../index-DQ7z58xp.js";
18
- import { FlowHandler, MessageHandler, MessageStatus, WebhookContact, WebhookEvent, WebhookMessage, WebhookProcessor, WebhookResponse, constructFullUrl, processFlowRequest, processWebhookMessages } from "../../WebhookProcessor-Dq2Pa2cY.js";
19
- import { ExpressRequest, ExpressResponse, ExpressWebhookConfig, NextFunction, NextJsWebhookConfig, generateXHub256Sig, webhookHandler, webhookHandler$1 } from "../../express-B6fQdflY.js";
20
- export { ExpressRequest, ExpressResponse, webhookHandler as ExpressWebhook, ExpressWebhookConfig, FlowHandler, MessageHandler, MessageStatus, NextFunction, webhookHandler$1 as NextJsWebhook, NextJsWebhookConfig, WebhookContact, WebhookEvent, WebhookMessage, WebhookProcessor, WebhookResponse, constructFullUrl, generateXHub256Sig, processFlowRequest, processWebhookMessages };
@@ -1 +0,0 @@
1
- import"../../enums-CSUpFXb8.js";import"../../version-BUuqrHc6.js";import"../../whatsapp-B85mxH5f.js";import"../../base-D-cXu_lA.js";import"../../encryption-Cwc0xcVL.js";import"../../flow-CVes0Qus.js";import"../../common-C6FXBDm7.js";import"../../media-Dw5OGzDD.js";import"../../messages-h5-NW8QO.js";import"../../objectToQueryString-CAHI0qTs.js";import"../../phone-CZyWLyWB.js";import"../../buildFieldsQueryString-Cr-jz3p0.js";import"../../profile-Bb7GDP0n.js";import"../../qrCode-CeZEtX9J.js";import"../../registration-BkjhC3xw.js";import"../../template-Bgy-BCXJ.js";import"../../twoStepVerification-DYlYF_P5.js";import"../../waba-SF2W3z2U.js";import"../../api-8hRAOyaL.js";import"../../flowTypeGuards-Gn3-slCW.js";import{WebhookProcessor as e,constructFullUrl as t,processFlowRequest as n,processWebhookMessages as r}from"../../WebhookProcessor-BUZFeZD_.js";import"../../handler-BGqjZ0xg.js";import{webhookHandler as i}from"../../express-CrfNLYMM.js";import{webhookHandler as a}from"../../nextjs-DxRCL4t3.js";import{generateXHub256Sig as o}from"../../webhook-D4DQ01Xq.js";export{i as ExpressWebhook,a as NextJsWebhook,e as WebhookProcessor,t as constructFullUrl,o as generateXHub256Sig,n as processFlowRequest,r as processWebhookMessages};
@@ -1,18 +0,0 @@
1
- import "../../base-CfDkvT1x.js";
2
- import "../../index-CaGffSja.js";
3
- import "../../index-DQkgkiB6.js";
4
- import "../../common-CvPVD1o6.js";
5
- import "../../index-CoyByMuM.js";
6
- import "../../index-a_YS40Iv.js";
7
- import "../../common-CVbsmD26.js";
8
- import "../../index-d7TLqtYh.js";
9
- import "../../index-_-06JPan.js";
10
- import "../../index-3KglHVAg.js";
11
- import "../../index-BNeg6hHx.js";
12
- import "../../index-BmfnREgM.js";
13
- import "../../index-CwujtcvH.js";
14
- import "../../index-BiTq23oi.js";
15
- import "../../index-CeTmbIXi.js";
16
- import "../../index-LKrIp3Oo.js";
17
- import { WhatsApp, WhatsAppClass } from "../../index-DQ7z58xp.js";
18
- export { WhatsApp, WhatsAppClass };
@@ -1 +0,0 @@
1
- import"../../enums-CSUpFXb8.js";import"../../version-BUuqrHc6.js";import{WhatsApp as e}from"../../whatsapp-B85mxH5f.js";import"../../base-D-cXu_lA.js";import"../../encryption-Cwc0xcVL.js";import"../../flow-CVes0Qus.js";import"../../common-C6FXBDm7.js";import"../../media-Dw5OGzDD.js";import"../../messages-h5-NW8QO.js";import"../../objectToQueryString-CAHI0qTs.js";import"../../phone-CZyWLyWB.js";import"../../buildFieldsQueryString-Cr-jz3p0.js";import"../../profile-Bb7GDP0n.js";import"../../qrCode-CeZEtX9J.js";import"../../registration-BkjhC3xw.js";import"../../template-Bgy-BCXJ.js";import"../../twoStepVerification-DYlYF_P5.js";import"../../waba-SF2W3z2U.js";import"../../api-8hRAOyaL.js";export{e as WhatsApp};
@@ -1,2 +0,0 @@
1
- import{HttpMethodsEnum as e,WabaConfigEnum as t}from"./enums-CSUpFXb8.js";import{BaseAPI as n}from"./base-D-cXu_lA.js";var r=class extends n{endpoint=`whatsapp_business_encryption`;constructor(e,t){super(e,t)}async getEncryptionPublicKey(){return this.sendJson(e.Get,`${this.config[t.PhoneNumberId]}/${this.endpoint}`,this.config[t.RequestTimeout],null)}async setEncryptionPublicKey(n){let r=new FormData;return r.append(`business_public_key`,n),this.sendJson(e.Post,`${this.config[t.PhoneNumberId]}/${this.endpoint}`,this.config[t.RequestTimeout],r)}},i=r;export{r as EncryptionApi,i as encryption_default};
2
- //# sourceMappingURL=encryption-Cwc0xcVL.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"encryption-Cwc0xcVL.js","names":[],"sources":["../src/api/encryption/EncryptionApi.ts","../src/api/encryption/index.ts"],"sourcesContent":["import { BaseAPI } from '../../types/base';\nimport type { WabaConfigType } from '../../types/config';\nimport { HttpMethodsEnum, WabaConfigEnum } from '../../types/enums';\nimport type { RequesterClass, ResponseSuccess } from '../../types/request';\nimport type { EncryptionClass, EncryptionPublicKeyResponse } from './types';\n\nexport default class EncryptionApi extends BaseAPI implements EncryptionClass {\n private readonly endpoint = 'whatsapp_business_encryption';\n\n constructor(config: WabaConfigType, client: RequesterClass) {\n super(config, client);\n }\n\n async getEncryptionPublicKey(): Promise<EncryptionPublicKeyResponse> {\n return this.sendJson(\n HttpMethodsEnum.Get,\n `${this.config[WabaConfigEnum.PhoneNumberId]}/${this.endpoint}`,\n this.config[WabaConfigEnum.RequestTimeout],\n null,\n );\n }\n\n async setEncryptionPublicKey(businessPublicKey: string): Promise<ResponseSuccess> {\n const formData = new FormData();\n formData.append('business_public_key', businessPublicKey);\n\n return this.sendJson(\n HttpMethodsEnum.Post,\n `${this.config[WabaConfigEnum.PhoneNumberId]}/${this.endpoint}`,\n this.config[WabaConfigEnum.RequestTimeout],\n formData,\n );\n }\n}\n","import EncryptionApi from './EncryptionApi';\nexport default EncryptionApi;\nexport { EncryptionApi };\nexport type { EncryptionClass, EncryptionPublicKeyResponse } from './types';\n"],"mappings":"uHAMA,IAAqB,EAArB,cAA2C,CAAmC,CAC1E,SAA4B,+BAE5B,YAAY,EAAwB,EAAwB,CACxD,MAAM,EAAQ,EAAO,CAGzB,MAAM,wBAA+D,CACjE,OAAO,KAAK,SACR,EAAgB,IAChB,GAAG,KAAK,OAAO,EAAe,eAAe,GAAG,KAAK,WACrD,KAAK,OAAO,EAAe,gBAC3B,KACH,CAGL,MAAM,uBAAuB,EAAqD,CAC9E,IAAM,EAAW,IAAI,SAGrB,OAFA,EAAS,OAAO,sBAAuB,EAAkB,CAElD,KAAK,SACR,EAAgB,KAChB,GAAG,KAAK,OAAO,EAAe,eAAe,GAAG,KAAK,WACrD,KAAK,OAAO,EAAe,gBAC3B,EACH,GC9BT,EAAe"}
@@ -1,2 +0,0 @@
1
- import{__export as e}from"./chunk-CTAAG5j7.js";var t=e({AudioMediaTypesEnum:()=>v,BusinessVerticalEnum:()=>E,ButtonPositionEnum:()=>c,CategoryEnum:()=>n,ComponentTypesEnum:()=>u,ConversationTypesEnum:()=>f,CurrencyCodesEnum:()=>w,DataLocalizationRegionEnum:()=>T,DocumentMediaTypesEnum:()=>_,HttpMethodsEnum:()=>i,ImageMediaTypesEnum:()=>g,InteractiveTypesEnum:()=>s,LanguagesEnum:()=>C,MessageTypesEnum:()=>a,ParametersTypesEnum:()=>o,ReferralSourceTypesEnum:()=>x,RequestCodeMethodsEnum:()=>S,StatusEnum:()=>p,StickerMediaTypesEnum:()=>h,SubTypeEnum:()=>l,SystemChangeTypesEnum:()=>b,TemplateStatusEnum:()=>r,VideoMediaTypesEnum:()=>m,WabaConfigEnum:()=>d,WebhookTypesEnum:()=>y});let n=function(e){return e.Authentication=`AUTHENTICATION`,e.Marketing=`MARKETING`,e.Utility=`UTILITY`,e}({}),r=function(e){return e.Approved=`APPROVED`,e.Pending=`PENDING`,e.Rejected=`REJECTED`,e}({}),i=function(e){return e.Get=`GET`,e.Post=`POST`,e.Put=`PUT`,e.Delete=`DELETE`,e}({}),a=function(e){return e.Audio=`audio`,e.Contacts=`contacts`,e.Document=`document`,e.Image=`image`,e.Interactive=`interactive`,e.Location=`location`,e.Reaction=`reaction`,e.Sticker=`sticker`,e.Template=`template`,e.Text=`text`,e.Video=`video`,e.Button=`button`,e.Order=`order`,e.System=`system`,e.Unknown=`unknown`,e.Statuses=`statuses`,e[`*`]=`*`,e}({}),o=function(e){return e.Action=`ACTION`,e.CouponCode=`COUPON_CODE`,e.Currency=`CURRENCY`,e.DateTime=`DATE_TIME`,e.Document=`DOCUMENT`,e.ExpirationTimeMs=`EXPIRATION_TIME_MS`,e.Image=`IMAGE`,e.LimitedTimeOffer=`LIMITED_TIME_OFFER`,e.Location=`LOCATION`,e.OrderStatus=`ORDER_STATUS`,e.Payload=`PAYLOAD`,e.Product=`PRODUCT`,e.Text=`TEXT`,e.TtlMinutes=`TTL_MINUTES`,e.Video=`VIDEO`,e.WebviewInteraction=`WEBVIEW_INTERACTION`,e.WebviewPresentation=`WEBVIEW_PRESENTATION`,e}({}),s=function(e){return e.Button=`button`,e.List=`list`,e.Product=`product`,e.ProductList=`product_list`,e.CtaUrl=`cta_url`,e.LocationRequest=`location_request_message`,e.AddressMessage=`address_message`,e.Flow=`flow`,e}({}),c=function(e){return e[e.First=1]=`First`,e[e.Second=2]=`Second`,e[e.Third=3]=`Third`,e[e.Fourth=4]=`Fourth`,e[e.Fifth=5]=`Fifth`,e}({}),l=function(e){return e.Catalog=`CATALOG`,e.CopyCode=`COPY_CODE`,e.Flow=`FLOW`,e.Mpm=`MPM`,e.OrderDetails=`ORDER_DETAILS`,e.QuickReply=`QUICK_REPLY`,e.Reminder=`REMINDER`,e.Url=`URL`,e.VoiceCall=`VOICE_CALL`,e}({}),u=function(e){return e.Header=`HEADER`,e.Body=`BODY`,e.Button=`BUTTON`,e.Footer=`FOOTER`,e}({}),d=function(e){return e.AppId=`M4D_APP_ID`,e.Port=`WA_PORT`,e.AppSecret=`M4D_APP_SECRET`,e.PhoneNumberId=`WA_PHONE_NUMBER_ID`,e.BusinessAcctId=`WA_BUSINESS_ACCOUNT_ID`,e.APIVersion=`CLOUD_API_VERSION`,e.AccessToken=`CLOUD_API_ACCESS_TOKEN`,e.WebhookEndpoint=`WEBHOOK_ENDPOINT`,e.WebhookVerificationToken=`WEBHOOK_VERIFICATION_TOKEN`,e.ListenerPort=`LISTENER_PORT`,e.MaxRetriesAfterWait=`MAX_RETRIES_AFTER_WAIT`,e.RequestTimeout=`REQUEST_TIMEOUT`,e.Debug=`DEBUG`,e.PrivatePem=`FLOW_API_PRIVATE_PEM`,e.Passphrase=`FLOW_API_PASSPHRASE`,e}({}),f=function(e){return e.BusinessInitiated=`business_initiated`,e.CustomerInitiated=`customer_initiated`,e.ReferralConversion=`referral_conversion`,e}({}),p=function(e){return e.Delivered=`delivered`,e.Read=`read`,e.Sent=`sent`,e}({}),m=function(e){return e.Mp4=`video/mp4`,e.Threegp=`video/3gp`,e}({}),h=function(e){return e.Webp=`image/webp`,e}({}),g=function(e){return e.Jpeg=`image/jpeg`,e.Png=`image/png`,e}({}),_=function(e){return e.Text=`text/plain`,e.Pdf=`application/pdf`,e.Ppt=`application/vnd.ms-powerpoint`,e.Word=`application/msword`,e.Excel=`application/vnd.ms-excel`,e.OpenDoc=`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,e.OpenPres=`application/vnd.openxmlformats-officedocument.presentationml.presentation`,e.OpenSheet=`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,e}({}),v=function(e){return e.Aac=`audio/aac`,e.Mp4=`audio/mp4`,e.Mpeg=`audio/mpeg`,e.Amr=`audio/amr`,e.Ogg=`audio/ogg`,e}({}),y=function(e){return e.Audio=`audio`,e.Button=`button`,e.Document=`document`,e.Text=`text`,e.Image=`image`,e.Interactive=`interactive`,e.Order=`order`,e.Sticker=`sticker`,e.System=`system`,e.Unknown=`unknown`,e.Video=`video`,e}({}),b=function(e){return e.CustomerChangedNumber=`customer_changed_number`,e.CustomerIdentityChanged=`customer_identity_changed`,e}({}),x=function(e){return e.Ad=`ad`,e.Post=`post`,e}({}),S=function(e){return e.Sms=`SMS`,e.Voice=`VOICE`,e}({}),C=function(e){return e.Afrikaans=`af`,e.Albanian=`sq`,e.Arabic=`ar`,e.Azerbaijani=`az`,e.Bengali=`bn`,e.Bulgarian=`bg`,e.Catalan=`ca`,e.Chinese_CHN=`zh_CN`,e.Chinese_HKG=`zh_HK`,e.Chinese_TAI=`zh_TW`,e.Croatian=`hr`,e.Czech=`cs`,e.Danish=`da`,e.Dutch=`nl`,e.English=`en`,e.English_UK=`en_GB`,e.English_US=`en_US`,e.Estonian=`et`,e.Filipino=`fil`,e.Finnish=`fi`,e.French=`fr`,e.Georgian=`ka`,e.German=`de`,e.Greek=`el`,e.Gujarati=`gu`,e.Hausa=`ha`,e.Hebrew=`he`,e.Hindi=`hi`,e.Hungarian=`hu`,e.Indonesian=`id`,e.Irish=`ga`,e.Italian=`it`,e.Japanese=`ja`,e.Kannada=`kn`,e.Kazakh=`kk`,e.Kinyarwanda=`rw_RW`,e.Korean=`ko`,e.Kyrgyz_Kyrgyzstan=`ky_KG`,e.Lao=`lo`,e.Latvian=`lv`,e.Lithuanian=`lt`,e.Macedonian=`mk`,e.Malay=`ms`,e.Malayalam=`ml`,e.Marathi=`mr`,e.Norwegian=`nb`,e.Persian=`fa`,e.Polish=`pl`,e.Portuguese_BR=`pt_BR`,e.Portuguese_POR=`pt_PT`,e.Punjabi=`pa`,e.Romanian=`ro`,e.Russian=`ru`,e.Serbian=`sr`,e.Slovak=`sk`,e.Slovenian=`sl`,e.Spanish=`es`,e.Spanish_ARG=`es_AR`,e.Spanish_SPA=`es_ES`,e.Spanish_MEX=`es_MX`,e.Swahili=`sw`,e.Swedish=`sv`,e.Tamil=`ta`,e.Telugu=`te`,e.Thai=`th`,e.Turkish=`tr`,e.Ukrainian=`uk`,e.Urdu=`ur`,e.Uzbek=`uz`,e.Vietnamese=`vi`,e.Zulu=`zu`,e}({}),w=function(e){return e.AFN=`AFN`,e.EUR=`EUR`,e.ALL=`ALL`,e.DZD=`DZD`,e.USD=`USD`,e.AOA=`AOA`,e.XCD=`XCD`,e.ARS=`ARS`,e.AMD=`AMD`,e.AWG=`AWG`,e.AUD=`AUD`,e.AZN=`AZN`,e.BSD=`BSD`,e.BHD=`BHD`,e.BDT=`BDT`,e.BBD=`BBD`,e.BYN=`BYN`,e.BZD=`BZD`,e.XOF=`XOF`,e.BMD=`BMD`,e.INR=`INR`,e.BTN=`BTN`,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e.UGW=`UGW`,e.UAK=`UAK`,e.SUR=`SUR`,e.USS=`USS`,e.UYN=`UYN`,e.UYP=`UYP`,e.VEB=`VEB`,e.VEF=`VEF`,e.VNC=`VNC`,e.YDD=`YDD`,e.YUD=`YUD`,e.YUM=`YUM`,e.YUN=`YUN`,e.ZRN=`ZRN`,e.ZRZ=`ZRZ`,e.ZMK=`ZMK`,e.ZWC=`ZWC`,e.ZWD=`ZWD`,e.ZWN=`ZWN`,e.ZWR=`ZWR`,e.XFO=`XFO`,e.XRE=`XRE`,e.XFU=`XFU`,e}({}),T=function(e){return e.AU=`AU`,e.ID=`ID`,e.IN=`IN`,e.JP=`JP`,e.SG=`SG`,e.KR=`KR`,e.DE=`DE`,e.CH=`CH`,e.GB=`GB`,e.BR=`BR`,e.BH=`BH`,e.ZA=`ZA`,e.AE=`AE`,e.CA=`CA`,e}({}),E=function(e){return e.ALCOHOL=`ALCOHOL`,e.APPAREL=`APPAREL`,e.AUTO=`AUTO`,e.BEAUTY=`BEAUTY`,e.EDU=`EDU`,e.ENTERTAIN=`ENTERTAIN`,e.EVENT_PLAN=`EVENT_PLAN`,e.FINANCE=`FINANCE`,e.GOVT=`GOVT`,e.GROCERY=`GROCERY`,e.HEALTH=`HEALTH`,e.HOTEL=`HOTEL`,e.NONPROFIT=`NONPROFIT`,e.ONLINE_GAMBLING=`ONLINE_GAMBLING`,e.OTC_DRUGS=`OTC_DRUGS`,e.OTHER=`OTHER`,e.PHYSICAL_GAMBLING=`PHYSICAL_GAMBLING`,e.PROF_SERVICES=`PROF_SERVICES`,e.RESTAURANT=`RESTAURANT`,e.RETAIL=`RETAIL`,e.TRAVEL=`TRAVEL`,e}({});export{v as AudioMediaTypesEnum,E as BusinessVerticalEnum,c as ButtonPositionEnum,n as CategoryEnum,u as ComponentTypesEnum,f as ConversationTypesEnum,w as CurrencyCodesEnum,T as DataLocalizationRegionEnum,_ as DocumentMediaTypesEnum,i as HttpMethodsEnum,g as ImageMediaTypesEnum,s as InteractiveTypesEnum,C as LanguagesEnum,a as MessageTypesEnum,o as ParametersTypesEnum,x as ReferralSourceTypesEnum,S as RequestCodeMethodsEnum,p as StatusEnum,h as StickerMediaTypesEnum,l as SubTypeEnum,b as SystemChangeTypesEnum,r as TemplateStatusEnum,m as VideoMediaTypesEnum,d as WabaConfigEnum,y as WebhookTypesEnum,t as enums_exports};
2
- //# sourceMappingURL=enums-CSUpFXb8.js.map