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
package/dist/base.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ import { HttpMethodsEnum } from "./enums.js";
2
+ import { WabaConfigType } from "./config.js";
3
+ import { RequesterClass } from "./request.js";
4
+
5
+ //#region src/types/base.d.ts
6
+ declare class BaseClass {
7
+ constructor(config: WabaConfigType);
8
+ }
9
+ declare class BaseAPI implements BaseClass {
10
+ protected config: WabaConfigType;
11
+ protected client: RequesterClass;
12
+ constructor(config: WabaConfigType, client: RequesterClass);
13
+ protected sendJson<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any): Promise<T>;
14
+ protected sendFormData<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any): Promise<T>;
15
+ protected sendUrlEncodedForm<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any): Promise<T>;
16
+ }
17
+ //#endregion
18
+ export { BaseClass };
19
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","names":[],"sources":["../src/types/base.ts"],"sourcesContent":[],"mappings":";;;;;cAEqB,SAAA;sBACG;;AAMX,cAAA,OAAA,YAAmB,SAAX,CAAA;EAAA,UAAA,MAAA,EACC,cADD;YACC,MAAA,EACA,cADA;aACA,CAAA,MAAA,EAEE,cAFF,EAAA,MAAA,EAE0B,cAF1B;YAEE,QAAA,CAAA,CAAA,CAAA,CAAA,MAAA,EAKU,eALV,EAAA,QAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,IAAA,CAAA,EAAA,GAAA,CAAA,EAK2E,OAL3E,CAKmF,CALnF,CAAA;YAAwB,YAAA,CAAA,CAAA,CAAA,CAAA,MAAA,EASV,eATU,EAAA,QAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,IAAA,CAAA,EAAA,GAAA,CAAA,EASuD,OATvD,CAS+D,CAT/D,CAAA;YAKd,kBAAA,CAAA,CAAA,CAAA,CAAA,MAAA,EASlB,eATkB,EAAA,QAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,IAAA,CAAA,EAAA,GAAA,CAAA,EAa3B,OAb2B,CAanB,CAbmB,CAAA"}
@@ -0,0 +1,15 @@
1
+ import "node:module";
2
+
3
+ //#region rolldown:runtime
4
+ var __defProp = Object.defineProperty;
5
+ var __export = (all) => {
6
+ let target = {};
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
11
+ return target;
12
+ };
13
+
14
+ //#endregion
15
+ export { __export };
@@ -0,0 +1,80 @@
1
+ import { WabaConfigEnum } from "./enums.js";
2
+
3
+ //#region src/types/config.d.ts
4
+ type WhatsAppConfig = {
5
+ accessToken: string;
6
+ appId?: string;
7
+ appSecret?: string;
8
+ phoneNumberId?: number;
9
+ businessAcctId?: string;
10
+ apiVersion?: string;
11
+ webhookEndpoint?: string;
12
+ webhookVerificationToken?: string;
13
+ listenerPort?: number;
14
+ debug?: boolean;
15
+ maxRetriesAfterWait?: number;
16
+ requestTimeout?: number;
17
+ privatePem?: string;
18
+ passphrase?: string;
19
+ };
20
+ type WabaConfigType = {
21
+ /**
22
+ * The Meta for Developers business application Id for this registered application.
23
+ */
24
+ [WabaConfigEnum.AppId]: string;
25
+ /**
26
+ * The Meta for Developers business application secret for this registered application.
27
+ */
28
+ [WabaConfigEnum.AppSecret]: string;
29
+ /**
30
+ * The Meta for Developers phone number id used by the registered business.
31
+ */
32
+ [WabaConfigEnum.PhoneNumberId]: number;
33
+ /**
34
+ * The Meta for Developers business id for the registered business.
35
+ */
36
+ [WabaConfigEnum.BusinessAcctId]: string;
37
+ /**
38
+ * The version of the Cloud API being used. Starts with a "v" and follows the major number.
39
+ */
40
+ [WabaConfigEnum.APIVersion]: string;
41
+ /**
42
+ * The access token to make calls on behalf of the signed in Meta for Developers account or business.
43
+ */
44
+ [WabaConfigEnum.AccessToken]: string;
45
+ /**
46
+ * The endpoint path (e.g. if the value here is webhook, the webhook URL would look like http/https://{host}/webhook).
47
+ */
48
+ [WabaConfigEnum.WebhookEndpoint]: string;
49
+ /**
50
+ * The verification token that needs to match what is sent by the Cloud API webhook in order to subscribe.
51
+ */
52
+ [WabaConfigEnum.WebhookVerificationToken]: string;
53
+ /**
54
+ * The listener port for the webhook web server.
55
+ */
56
+ [WabaConfigEnum.ListenerPort]: number;
57
+ /**
58
+ * To turn on global debugging of the logger to print verbose output across the APIs.
59
+ */
60
+ [WabaConfigEnum.Debug]: boolean;
61
+ /**
62
+ * The total number of times a request should be retried after the wait period if it fails.
63
+ */
64
+ [WabaConfigEnum.MaxRetriesAfterWait]: number;
65
+ /**
66
+ * The timeout period for a request to quit and destroy the attempt in ms.
67
+ */
68
+ [WabaConfigEnum.RequestTimeout]: number;
69
+ /**
70
+ * The private key for the Meta for Developers business.
71
+ */
72
+ [WabaConfigEnum.PrivatePem]: string;
73
+ /**
74
+ * The passphrase for the Meta for Developers business.
75
+ */
76
+ [WabaConfigEnum.Passphrase]: string;
77
+ };
78
+ //#endregion
79
+ export { WabaConfigType, WhatsAppConfig };
80
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","names":[],"sources":["../src/types/config.ts"],"sourcesContent":[],"mappings":";;;KAEY,cAAA;;EAAA,KAAA,CAAA,EAAA,MAAA;EAiBA,SAAA,CAAA,EAAA,MAAc;EAAA,aAAA,CAAA,EAAA,MAAA;gBAIrB,CAAA,EAAA,MAAe;YAKf,CAAA,EAAA,MAAe;iBAKf,CAAA,EAAe,MAAA;0BAKA,CAAA,EAAA,MAAA;cAIf,CAAA,EAAA,MAAe;OAKf,CAAA,EAAA,OAAA;qBAKe,CAAA,EAAA,MAAA;gBAKf,CAAA,EAAA,MAAe;YAKf,CAAA,EAAA,MAAe;YAKf,CAAA,EAAA,MAAe;;AAUf,KA1DO,cAAA,GA0DQ;;;;GAtDf,cAAA,CAAe,KAAA;;;;GAKf,cAAA,CAAe,SAAA;;;;GAKf,cAAA,CAAe,aAAA;;;;GAKf,cAAA,CAAe,cAAA;;;;GAIf,cAAA,CAAe,UAAA;;;;GAKf,cAAA,CAAe,WAAA;;;;GAKf,cAAA,CAAe,eAAA;;;;GAKf,cAAA,CAAe,wBAAA;;;;GAKf,cAAA,CAAe,YAAA;;;;GAKf,cAAA,CAAe,KAAA;;;;GAKf,cAAA,CAAe,mBAAA;;;;GAKf,cAAA,CAAe,cAAA;;;;GAKf,cAAA,CAAe,UAAA;;;;GAKf,cAAA,CAAe,UAAA"}
@@ -1,6 +1,4 @@
1
- declare namespace enums_d_exports {
2
- export { AudioMediaTypesEnum, BusinessVerticalEnum, ButtonPositionEnum, CategoryEnum, ComponentTypesEnum, ConversationTypesEnum, CurrencyCodesEnum, DataLocalizationRegionEnum, DocumentMediaTypesEnum, HttpMethodsEnum, ImageMediaTypesEnum, InteractiveTypesEnum, LanguagesEnum, MessageTypesEnum, ParametersTypesEnum, ReferralSourceTypesEnum, RequestCodeMethodsEnum, StatusEnum, StickerMediaTypesEnum, SubTypeEnum, SystemChangeTypesEnum, TemplateStatusEnum, VideoMediaTypesEnum, WabaConfigEnum, WebhookTypesEnum };
3
- }
1
+ //#region src/types/enums.d.ts
4
2
  declare enum CategoryEnum {
5
3
  Authentication = "AUTHENTICATION",
6
4
  Marketing = "MARKETING",
@@ -666,142 +664,5 @@ declare enum BusinessVerticalEnum {
666
664
  TRAVEL = "TRAVEL",
667
665
  }
668
666
  //#endregion
669
- //#region src/types/config.d.ts
670
- type WhatsAppConfig = {
671
- accessToken: string;
672
- appId?: string;
673
- appSecret?: string;
674
- phoneNumberId?: number;
675
- businessAcctId?: string;
676
- apiVersion?: string;
677
- webhookEndpoint?: string;
678
- webhookVerificationToken?: string;
679
- listenerPort?: number;
680
- debug?: boolean;
681
- maxRetriesAfterWait?: number;
682
- requestTimeout?: number;
683
- privatePem?: string;
684
- passphrase?: string;
685
- };
686
- type WabaConfigType = {
687
- /**
688
- * The Meta for Developers business application Id for this registered application.
689
- */
690
- [WabaConfigEnum.AppId]: string;
691
- /**
692
- * The Meta for Developers business application secret for this registered application.
693
- */
694
- [WabaConfigEnum.AppSecret]: string;
695
- /**
696
- * The Meta for Developers phone number id used by the registered business.
697
- */
698
- [WabaConfigEnum.PhoneNumberId]: number;
699
- /**
700
- * The Meta for Developers business id for the registered business.
701
- */
702
- [WabaConfigEnum.BusinessAcctId]: string;
703
- /**
704
- * The version of the Cloud API being used. Starts with a "v" and follows the major number.
705
- */
706
- [WabaConfigEnum.APIVersion]: string;
707
- /**
708
- * The access token to make calls on behalf of the signed in Meta for Developers account or business.
709
- */
710
- [WabaConfigEnum.AccessToken]: string;
711
- /**
712
- * The endpoint path (e.g. if the value here is webhook, the webhook URL would look like http/https://{host}/webhook).
713
- */
714
- [WabaConfigEnum.WebhookEndpoint]: string;
715
- /**
716
- * The verification token that needs to match what is sent by the Cloud API webhook in order to subscribe.
717
- */
718
- [WabaConfigEnum.WebhookVerificationToken]: string;
719
- /**
720
- * The listener port for the webhook web server.
721
- */
722
- [WabaConfigEnum.ListenerPort]: number;
723
- /**
724
- * To turn on global debugging of the logger to print verbose output across the APIs.
725
- */
726
- [WabaConfigEnum.Debug]: boolean;
727
- /**
728
- * The total number of times a request should be retried after the wait period if it fails.
729
- */
730
- [WabaConfigEnum.MaxRetriesAfterWait]: number;
731
- /**
732
- * The timeout period for a request to quit and destroy the attempt in ms.
733
- */
734
- [WabaConfigEnum.RequestTimeout]: number;
735
- /**
736
- * The private key for the Meta for Developers business.
737
- */
738
- [WabaConfigEnum.PrivatePem]: string;
739
- /**
740
- * The passphrase for the Meta for Developers business.
741
- */
742
- [WabaConfigEnum.Passphrase]: string;
743
- };
744
- //#endregion
745
- //#region src/types/request.d.ts
746
- type GeneralRequestBody = Record<string, unknown>;
747
- interface GeneralHeaderInterface {
748
- /**
749
- * Authorization token. This is required for all HTTP requests made to the graph API.
750
- * @default 'Bearer '
751
- */
752
- Authorization: string;
753
- /**
754
- * Content type of the message being sent. This is required for all HTTP requests made to the graph API.
755
- * @default 'application/json'
756
- */
757
- 'Content-Type': string;
758
- /**
759
- * User agent field sent in all requests. This is used to gather SDK usage metrics and help
760
- * better triage support requests.
761
- * @default `WA_SDK/${ SDK_version } (Node.js ${ process.version })`
762
- */
763
- 'User-Agent': string;
764
- }
765
- interface RequesterResponseInterface<T> {
766
- json: () => Promise<T>;
767
- }
768
- interface ResponseSuccess {
769
- success: boolean;
770
- }
771
- interface ResponseData<T> {
772
- data: T;
773
- }
774
- interface ResponsePagination<T> {
775
- data: T[];
776
- paging: Paging;
777
- }
778
- interface Paging {
779
- cursors: {
780
- before: string;
781
- after: string;
782
- };
783
- next: string;
784
- }
785
- declare class RequesterClass {
786
- constructor(apiVersion: string, phoneNumberId: number, accessToken: string, businessAcctId: string, userAgent: string);
787
- sendRequest: (method: HttpMethodsEnum, path: string, timeout: number, body?: GeneralRequestBody, contentType?: string, additionalHeaders?: Record<string, string>) => Promise<RequesterResponseInterface<unknown>>;
788
- getJson<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: GeneralRequestBody, additionalHeaders?: Record<string, string>): Promise<T>;
789
- sendFormData<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, formData: FormData, additionalHeaders?: Record<string, string>): Promise<T>;
790
- sendUrlEncodedForm<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, formData: Record<string, string>, additionalHeaders?: Record<string, string>): Promise<T>;
791
- }
792
- //#endregion
793
- //#region src/types/base.d.ts
794
- declare class BaseClass {
795
- constructor(config: WabaConfigType);
796
- }
797
- declare class BaseAPI implements BaseClass {
798
- protected config: WabaConfigType;
799
- protected client: RequesterClass;
800
- constructor(config: WabaConfigType, client: RequesterClass);
801
- protected sendJson<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any): Promise<T>;
802
- protected sendFormData<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any): Promise<T>;
803
- protected sendUrlEncodedForm<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any): Promise<T>;
804
- }
805
- //#endregion
806
- export { AudioMediaTypesEnum, BaseAPI, BaseClass, BusinessVerticalEnum, ButtonPositionEnum, CategoryEnum, ComponentTypesEnum, ConversationTypesEnum, CurrencyCodesEnum, DataLocalizationRegionEnum, DocumentMediaTypesEnum, GeneralHeaderInterface, GeneralRequestBody, HttpMethodsEnum, ImageMediaTypesEnum, InteractiveTypesEnum, LanguagesEnum, MessageTypesEnum, Paging, ParametersTypesEnum, ReferralSourceTypesEnum, RequestCodeMethodsEnum, RequesterClass, RequesterResponseInterface, ResponseData, ResponsePagination, ResponseSuccess, StatusEnum, StickerMediaTypesEnum, SubTypeEnum, SystemChangeTypesEnum, TemplateStatusEnum, VideoMediaTypesEnum, WabaConfigEnum, WabaConfigType, WebhookTypesEnum, WhatsAppConfig, enums_d_exports };
807
- //# sourceMappingURL=base-CfDkvT1x.d.ts.map
667
+ export { HttpMethodsEnum, WabaConfigEnum };
668
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","names":[],"sources":["../src/types/enums.ts"],"sourcesContent":[],"mappings":";aAAY,YAAA;EAAA,cAAA,GAAY,gBAAA;EAMZ,SAAA,GAAA,WAAkB;EAMlB,OAAA,GAAA,SAAe;AAO3B;AAoBY,aAjCA,kBAAA;EAqDA,QAAA,GAAA,UAAA;EAWA,OAAA,GAAA,SAAA;EAQA,QAAA,GAAA,UAAW;AAYvB;AAOY,aArFA,eAAA;EAuGA,GAAA,GAAA,KAAA;EAMA,IAAA,GAAA,MAAU;EAMV,GAAA,GAAA,KAAA;EAKA,MAAA,GAAA,QAAA;AAIZ;AAKY,aA1HA,gBAAA;EAqIA,KAAA,GAAA,OAAA;EAQA,QAAA,GAAA,UAAgB;EAchB,QAAA,GAAA,UAAA;EAKA,KAAA,GAAA,OAAA;EAKA,WAAA,GAAA,aAAsB;EAKtB,QAAA,GAAA,UAAa;EA0Eb,QAAA,GAAA,UAAiB;EAiTjB,OAAA,GAAA,SAAA;EA8BA,QAAA,GAAA,UAAA;;;;;;;;;;aA/iBA,mBAAA;;;;;;;;;;;;;;;;;;;aAoBA,oBAAA;;;;;;;;;;aAWA,kBAAA;;;;;;;aAQA,WAAA;;;;;;;;;;;aAYA,kBAAA;;;;;;aAOA,cAAA;;;;;;;;;;;;;;;;;aAkBA,qBAAA;;;;;aAMA,UAAA;;;;;aAMA,mBAAA;;;;aAKA,qBAAA;;;aAIA,mBAAA;;;;aAKA,sBAAA;;;;;;;;;;aAWA,mBAAA;;;;;;;aAQA,gBAAA;;;;;;;;;;;;;aAcA,qBAAA;;;;aAKA,uBAAA;;;;aAKA,sBAAA;;;;aAKA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA0EA,iBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAiTA,0BAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA8BA,oBAAA"}