meta-cloud-api 0.1.5 → 0.1.7

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 (120) hide show
  1. package/dist/api/businessProfile.d.mts +6 -6
  2. package/dist/api/businessProfile.d.ts +6 -6
  3. package/dist/api/businessProfile.js +1 -1
  4. package/dist/api/businessProfile.js.map +1 -1
  5. package/dist/api/businessProfile.mjs +1 -1
  6. package/dist/api/businessProfile.mjs.map +1 -1
  7. package/dist/api/encryption.d.mts +3 -3
  8. package/dist/api/encryption.d.ts +3 -3
  9. package/dist/api/encryption.js.map +1 -1
  10. package/dist/api/encryption.mjs.map +1 -1
  11. package/dist/api/flow.d.mts +14 -25
  12. package/dist/api/flow.d.ts +14 -25
  13. package/dist/api/flow.js +1 -1
  14. package/dist/api/flow.js.map +1 -1
  15. package/dist/api/flow.mjs +1 -1
  16. package/dist/api/flow.mjs.map +1 -1
  17. package/dist/api/index.js +1 -1
  18. package/dist/api/index.js.map +1 -1
  19. package/dist/api/index.mjs +1 -1
  20. package/dist/api/index.mjs.map +1 -1
  21. package/dist/api/media.d.mts +5 -5
  22. package/dist/api/media.d.ts +5 -5
  23. package/dist/api/media.js.map +1 -1
  24. package/dist/api/media.mjs.map +1 -1
  25. package/dist/api/messages.d.mts +21 -21
  26. package/dist/api/messages.d.ts +21 -21
  27. package/dist/api/messages.js +1 -1
  28. package/dist/api/messages.js.map +1 -1
  29. package/dist/api/messages.mjs +1 -1
  30. package/dist/api/messages.mjs.map +1 -1
  31. package/dist/api/phoneNumber.d.mts +5 -5
  32. package/dist/api/phoneNumber.d.ts +5 -5
  33. package/dist/api/phoneNumber.js +1 -1
  34. package/dist/api/phoneNumber.js.map +1 -1
  35. package/dist/api/phoneNumber.mjs.map +1 -1
  36. package/dist/api/qrCode.d.mts +6 -6
  37. package/dist/api/qrCode.d.ts +6 -6
  38. package/dist/api/qrCode.js +1 -1
  39. package/dist/api/qrCode.js.map +1 -1
  40. package/dist/api/qrCode.mjs.map +1 -1
  41. package/dist/api/registration.d.mts +3 -3
  42. package/dist/api/registration.d.ts +3 -3
  43. package/dist/api/registration.js +1 -1
  44. package/dist/api/registration.js.map +1 -1
  45. package/dist/api/registration.mjs.map +1 -1
  46. package/dist/api/template.d.mts +6 -6
  47. package/dist/api/template.d.ts +6 -6
  48. package/dist/api/template.js +1 -1
  49. package/dist/api/template.js.map +1 -1
  50. package/dist/api/template.mjs +1 -1
  51. package/dist/api/template.mjs.map +1 -1
  52. package/dist/api/twoStepVerification.d.mts +3 -3
  53. package/dist/api/twoStepVerification.d.ts +3 -3
  54. package/dist/api/twoStepVerification.js +1 -1
  55. package/dist/api/twoStepVerification.js.map +1 -1
  56. package/dist/api/twoStepVerification.mjs.map +1 -1
  57. package/dist/api/waba.d.mts +5 -5
  58. package/dist/api/waba.d.ts +5 -5
  59. package/dist/api/waba.js.map +1 -1
  60. package/dist/api/waba.mjs.map +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/index.js.map +1 -1
  63. package/dist/index.mjs +1 -1
  64. package/dist/index.mjs.map +1 -1
  65. package/dist/types/businessProfile.d.mts +6 -6
  66. package/dist/types/businessProfile.d.ts +6 -6
  67. package/dist/types/businessProfile.js +1 -1
  68. package/dist/types/businessProfile.js.map +1 -1
  69. package/dist/types/encryption.d.mts +3 -3
  70. package/dist/types/encryption.d.ts +3 -3
  71. package/dist/types/encryption.js +1 -1
  72. package/dist/types/encryption.js.map +1 -1
  73. package/dist/types/flow.d.mts +12 -12
  74. package/dist/types/flow.d.ts +12 -12
  75. package/dist/types/flow.js +1 -1
  76. package/dist/types/flow.js.map +1 -1
  77. package/dist/types/flow.mjs +1 -1
  78. package/dist/types/flow.mjs.map +1 -1
  79. package/dist/types/index.js +1 -1
  80. package/dist/types/index.js.map +1 -1
  81. package/dist/types/index.mjs +1 -1
  82. package/dist/types/index.mjs.map +1 -1
  83. package/dist/types/media.d.mts +5 -5
  84. package/dist/types/media.d.ts +5 -5
  85. package/dist/types/media.js +1 -1
  86. package/dist/types/media.js.map +1 -1
  87. package/dist/types/messages.d.mts +21 -21
  88. package/dist/types/messages.d.ts +21 -21
  89. package/dist/types/messages.js.map +1 -1
  90. package/dist/types/phoneNumber.d.mts +5 -5
  91. package/dist/types/phoneNumber.d.ts +5 -5
  92. package/dist/types/phoneNumber.js +1 -1
  93. package/dist/types/phoneNumber.js.map +1 -1
  94. package/dist/types/qrCode.d.mts +6 -6
  95. package/dist/types/qrCode.d.ts +6 -6
  96. package/dist/types/qrCode.js +1 -1
  97. package/dist/types/qrCode.js.map +1 -1
  98. package/dist/types/registration.d.mts +3 -3
  99. package/dist/types/registration.d.ts +3 -3
  100. package/dist/types/registration.js +1 -1
  101. package/dist/types/registration.js.map +1 -1
  102. package/dist/types/template.d.mts +6 -6
  103. package/dist/types/template.d.ts +6 -6
  104. package/dist/types/template.js +1 -1
  105. package/dist/types/template.js.map +1 -1
  106. package/dist/types/twoStepVerification.d.mts +2 -2
  107. package/dist/types/twoStepVerification.d.ts +2 -2
  108. package/dist/types/twoStepVerification.js +1 -1
  109. package/dist/types/twoStepVerification.js.map +1 -1
  110. package/dist/types/waba.d.mts +5 -5
  111. package/dist/types/waba.d.ts +5 -5
  112. package/dist/types/waba.js +1 -1
  113. package/dist/types/waba.js.map +1 -1
  114. package/dist/types/waba.mjs +1 -1
  115. package/dist/types/waba.mjs.map +1 -1
  116. package/dist/whatsapp.js +1 -1
  117. package/dist/whatsapp.js.map +1 -1
  118. package/dist/whatsapp.mjs +1 -1
  119. package/dist/whatsapp.mjs.map +1 -1
  120. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { k as BusinessVerticalEnum } from '../enums-D7paGoTY.mjs';
2
- import { RequesterResponseInterface, ResponseSuccess } from './request.mjs';
2
+ import { ResponseSuccess } from './request.mjs';
3
3
 
4
4
  interface BusinessProfileData {
5
5
  /**
@@ -120,30 +120,30 @@ interface BusinessProfileClass {
120
120
  * @param fields Fields to be returned in the response. If not specified, all fields will be returned.
121
121
  * Possible values: about, address, description, email, profile_picture_url, websites, vertical
122
122
  */
123
- getBusinessProfile(fields?: string): Promise<RequesterResponseInterface<BusinessProfileResponse>>;
123
+ getBusinessProfile(fields?: string): Promise<BusinessProfileResponse>;
124
124
  /**
125
125
  * Update your business profile.
126
126
  * @param updateRequest The request object containing the fields to update.
127
127
  */
128
- updateBusinessProfile(updateRequest: UpdateBusinessProfileRequest): Promise<RequesterResponseInterface<ResponseSuccess>>;
128
+ updateBusinessProfile(updateRequest: UpdateBusinessProfileRequest): Promise<ResponseSuccess>;
129
129
  /**
130
130
  * Create an upload session for profile picture.
131
131
  * @param fileLength Length of the file to be uploaded in bytes.
132
132
  * @param fileType MIME type of the file (e.g., 'image/jpeg').
133
133
  * @param fileName Name of the file.
134
134
  */
135
- createUploadSession(fileLength: number, fileType: string, fileName: string): Promise<RequesterResponseInterface<UploadSessionResponse>>;
135
+ createUploadSession(fileLength: number, fileType: string, fileName: string): Promise<UploadSessionResponse>;
136
136
  /**
137
137
  * Upload media file to the upload session.
138
138
  * @param uploadId The ID of the upload session.
139
139
  * @param file The binary data of the file.
140
140
  */
141
- uploadMedia(uploadId: string, file: Buffer): Promise<RequesterResponseInterface<UploadBusinessProfileResponse>>;
141
+ uploadMedia(uploadId: string, file: Buffer): Promise<UploadBusinessProfileResponse>;
142
142
  /**
143
143
  * Get the upload handle information.
144
144
  * @param uploadId The ID of the upload session.
145
145
  */
146
- getUploadHandle(uploadId: string): Promise<RequesterResponseInterface<UploadHandle>>;
146
+ getUploadHandle(uploadId: string): Promise<UploadHandle>;
147
147
  }
148
148
 
149
149
  export type { BusinessProfileClass, BusinessProfileData, BusinessProfileResponse, UpdateBusinessProfileRequest, UploadBusinessProfileResponse, UploadHandle, UploadSession, UploadSessionResponse };
@@ -1,5 +1,5 @@
1
1
  import { k as BusinessVerticalEnum } from '../enums-D7paGoTY.js';
2
- import { RequesterResponseInterface, ResponseSuccess } from './request.js';
2
+ import { ResponseSuccess } from './request.js';
3
3
 
4
4
  interface BusinessProfileData {
5
5
  /**
@@ -120,30 +120,30 @@ interface BusinessProfileClass {
120
120
  * @param fields Fields to be returned in the response. If not specified, all fields will be returned.
121
121
  * Possible values: about, address, description, email, profile_picture_url, websites, vertical
122
122
  */
123
- getBusinessProfile(fields?: string): Promise<RequesterResponseInterface<BusinessProfileResponse>>;
123
+ getBusinessProfile(fields?: string): Promise<BusinessProfileResponse>;
124
124
  /**
125
125
  * Update your business profile.
126
126
  * @param updateRequest The request object containing the fields to update.
127
127
  */
128
- updateBusinessProfile(updateRequest: UpdateBusinessProfileRequest): Promise<RequesterResponseInterface<ResponseSuccess>>;
128
+ updateBusinessProfile(updateRequest: UpdateBusinessProfileRequest): Promise<ResponseSuccess>;
129
129
  /**
130
130
  * Create an upload session for profile picture.
131
131
  * @param fileLength Length of the file to be uploaded in bytes.
132
132
  * @param fileType MIME type of the file (e.g., 'image/jpeg').
133
133
  * @param fileName Name of the file.
134
134
  */
135
- createUploadSession(fileLength: number, fileType: string, fileName: string): Promise<RequesterResponseInterface<UploadSessionResponse>>;
135
+ createUploadSession(fileLength: number, fileType: string, fileName: string): Promise<UploadSessionResponse>;
136
136
  /**
137
137
  * Upload media file to the upload session.
138
138
  * @param uploadId The ID of the upload session.
139
139
  * @param file The binary data of the file.
140
140
  */
141
- uploadMedia(uploadId: string, file: Buffer): Promise<RequesterResponseInterface<UploadBusinessProfileResponse>>;
141
+ uploadMedia(uploadId: string, file: Buffer): Promise<UploadBusinessProfileResponse>;
142
142
  /**
143
143
  * Get the upload handle information.
144
144
  * @param uploadId The ID of the upload session.
145
145
  */
146
- getUploadHandle(uploadId: string): Promise<RequesterResponseInterface<UploadHandle>>;
146
+ getUploadHandle(uploadId: string): Promise<UploadHandle>;
147
147
  }
148
148
 
149
149
  export type { BusinessProfileClass, BusinessProfileData, BusinessProfileResponse, UpdateBusinessProfileRequest, UploadBusinessProfileResponse, UploadHandle, UploadSession, UploadSessionResponse };
@@ -1,2 +1,2 @@
1
- "use strict";var n=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var l=(s,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of a(e))!p.call(s,i)&&i!==t&&n(s,i,{get:()=>e[i],enumerable:!(r=o(e,i))||r.enumerable});return s};var u=s=>l(n({},"__esModule",{value:!0}),s);var d={};module.exports=u(d);
1
+ "use strict";var n=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var p=(s,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of a(e))!l.call(s,i)&&i!==t&&n(s,i,{get:()=>e[i],enumerable:!(r=o(e,i))||r.enumerable});return s};var d=s=>p(n({},"__esModule",{value:!0}),s);var u={};module.exports=d(u);
2
2
  //# sourceMappingURL=businessProfile.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/businessProfile.ts"],"sourcesContent":["import { BusinessVerticalEnum } from './enums';\nimport { RequesterResponseInterface, ResponseSuccess } from './request';\n\nexport interface BusinessProfileData {\n /**\n * The business's About text. This text appears in the business's profile, beneath its profile image,\n * phone number, and contact buttons.\n * - String cannot be empty\n * - Strings must be between 1 and 139 characters\n * - Rendered emojis are supported however their unicode values are not.\n * Emoji unicode values must be Java- or JavaScript-escape encoded\n * - Hyperlinks can be included but will not render as clickable links\n * - Markdown is not supported\n */\n about?: string;\n /**\n * Address of the business. Character limit 256.\n */\n address?: string;\n /**\n * Description of the business. Character limit 512.\n */\n description?: string;\n /**\n * The contact email address (in valid email format) of the business. Character limit 128.\n */\n email?: string;\n /**\n * The messaging service used for the request. Always set it to \"whatsapp\" if you are using\n * the WhatsApp Business API.\n */\n messaging_product: string;\n /**\n * Profile picture URL.\n */\n profile_picture_url?: string;\n /**\n * The URLs associated with the business. For instance, a website, Facebook Page, or Instagram.\n * - You must include the http:// or https:// portion of the URL\n * - There is a maximum of 2 websites with a maximum of 256 characters each\n */\n websites?: string[];\n /**\n * Business category. This can be either an empty string or one of the predefined business categories.\n * @see BusinessVerticalEnum for all available options\n */\n vertical?: BusinessVerticalEnum | string;\n}\n\nexport interface BusinessProfileResponse {\n data: BusinessProfileData[];\n}\n\nexport interface UpdateBusinessProfileRequest {\n /**\n * The messaging service used for the request. Always set it to \"whatsapp\" if you are using\n * the WhatsApp Business API.\n * @required\n */\n messaging_product: string;\n /**\n * The business's About text. This text appears in the business's profile, beneath its profile image,\n * phone number, and contact buttons.\n * - String cannot be empty\n * - Strings must be between 1 and 139 characters\n * - Rendered emojis are supported however their unicode values are not.\n * Emoji unicode values must be Java- or JavaScript-escape encoded\n * - Hyperlinks can be included but will not render as clickable links\n * - Markdown is not supported\n */\n about?: string;\n /**\n * Address of the business. Character limit 256.\n */\n address?: string;\n /**\n * Description of the business. Character limit 512.\n */\n description?: string;\n /**\n * Business category. This can be either an empty string or one of the predefined business categories.\n * @see BusinessVerticalEnum for all available options\n */\n vertical?: BusinessVerticalEnum | string;\n /**\n * The contact email address (in valid email format) of the business. Character limit 128.\n */\n email?: string;\n /**\n * The URLs associated with the business. For instance, a website, Facebook Page, or Instagram.\n * - You must include the http:// or https:// portion of the URL\n * - There is a maximum of 2 websites with a maximum of 256 characters each\n */\n websites?: string[];\n /**\n * Handle of the profile picture. This handle is generated when you upload the binary file\n * for the profile picture to Meta using the Resumable Upload API.\n */\n profile_picture_handle?: string;\n}\n\nexport interface UploadSession {\n id: string;\n video?: boolean;\n}\n\nexport interface UploadSessionResponse {\n id: string;\n}\n\nexport interface UploadBusinessProfileResponse {\n h: string;\n}\n\nexport interface UploadHandle {\n handle: string;\n file_size: number;\n upload_result: {\n handle_type: string;\n name: string;\n };\n}\n\nexport interface BusinessProfileClass {\n /**\n * Get your business profile.\n * @param fields Fields to be returned in the response. If not specified, all fields will be returned.\n * Possible values: about, address, description, email, profile_picture_url, websites, vertical\n */\n getBusinessProfile(fields?: string): Promise<RequesterResponseInterface<BusinessProfileResponse>>;\n\n /**\n * Update your business profile.\n * @param updateRequest The request object containing the fields to update.\n */\n updateBusinessProfile(\n updateRequest: UpdateBusinessProfileRequest,\n ): Promise<RequesterResponseInterface<ResponseSuccess>>;\n\n /**\n * Create an upload session for profile picture.\n * @param fileLength Length of the file to be uploaded in bytes.\n * @param fileType MIME type of the file (e.g., 'image/jpeg').\n * @param fileName Name of the file.\n */\n createUploadSession(\n fileLength: number,\n fileType: string,\n fileName: string,\n ): Promise<RequesterResponseInterface<UploadSessionResponse>>;\n\n /**\n * Upload media file to the upload session.\n * @param uploadId The ID of the upload session.\n * @param file The binary data of the file.\n */\n uploadMedia(uploadId: string, file: Buffer): Promise<RequesterResponseInterface<UploadBusinessProfileResponse>>;\n\n /**\n * Get the upload handle information.\n * @param uploadId The ID of the upload session.\n */\n getUploadHandle(uploadId: string): Promise<RequesterResponseInterface<UploadHandle>>;\n}\n"],"mappings":"+WAAA,IAAAA,EAAA,kBAAAC,EAAAD","names":["businessProfile_exports","__toCommonJS"]}
1
+ {"version":3,"sources":["../../src/types/businessProfile.ts"],"sourcesContent":["import { BusinessVerticalEnum } from './enums';\nimport { ResponseSuccess } from './request';\n\nexport interface BusinessProfileData {\n /**\n * The business's About text. This text appears in the business's profile, beneath its profile image,\n * phone number, and contact buttons.\n * - String cannot be empty\n * - Strings must be between 1 and 139 characters\n * - Rendered emojis are supported however their unicode values are not.\n * Emoji unicode values must be Java- or JavaScript-escape encoded\n * - Hyperlinks can be included but will not render as clickable links\n * - Markdown is not supported\n */\n about?: string;\n /**\n * Address of the business. Character limit 256.\n */\n address?: string;\n /**\n * Description of the business. Character limit 512.\n */\n description?: string;\n /**\n * The contact email address (in valid email format) of the business. Character limit 128.\n */\n email?: string;\n /**\n * The messaging service used for the request. Always set it to \"whatsapp\" if you are using\n * the WhatsApp Business API.\n */\n messaging_product: string;\n /**\n * Profile picture URL.\n */\n profile_picture_url?: string;\n /**\n * The URLs associated with the business. For instance, a website, Facebook Page, or Instagram.\n * - You must include the http:// or https:// portion of the URL\n * - There is a maximum of 2 websites with a maximum of 256 characters each\n */\n websites?: string[];\n /**\n * Business category. This can be either an empty string or one of the predefined business categories.\n * @see BusinessVerticalEnum for all available options\n */\n vertical?: BusinessVerticalEnum | string;\n}\n\nexport interface BusinessProfileResponse {\n data: BusinessProfileData[];\n}\n\nexport interface UpdateBusinessProfileRequest {\n /**\n * The messaging service used for the request. Always set it to \"whatsapp\" if you are using\n * the WhatsApp Business API.\n * @required\n */\n messaging_product: string;\n /**\n * The business's About text. This text appears in the business's profile, beneath its profile image,\n * phone number, and contact buttons.\n * - String cannot be empty\n * - Strings must be between 1 and 139 characters\n * - Rendered emojis are supported however their unicode values are not.\n * Emoji unicode values must be Java- or JavaScript-escape encoded\n * - Hyperlinks can be included but will not render as clickable links\n * - Markdown is not supported\n */\n about?: string;\n /**\n * Address of the business. Character limit 256.\n */\n address?: string;\n /**\n * Description of the business. Character limit 512.\n */\n description?: string;\n /**\n * Business category. This can be either an empty string or one of the predefined business categories.\n * @see BusinessVerticalEnum for all available options\n */\n vertical?: BusinessVerticalEnum | string;\n /**\n * The contact email address (in valid email format) of the business. Character limit 128.\n */\n email?: string;\n /**\n * The URLs associated with the business. For instance, a website, Facebook Page, or Instagram.\n * - You must include the http:// or https:// portion of the URL\n * - There is a maximum of 2 websites with a maximum of 256 characters each\n */\n websites?: string[];\n /**\n * Handle of the profile picture. This handle is generated when you upload the binary file\n * for the profile picture to Meta using the Resumable Upload API.\n */\n profile_picture_handle?: string;\n}\n\nexport interface UploadSession {\n id: string;\n video?: boolean;\n}\n\nexport interface UploadSessionResponse {\n id: string;\n}\n\nexport interface UploadBusinessProfileResponse {\n h: string;\n}\n\nexport interface UploadHandle {\n handle: string;\n file_size: number;\n upload_result: {\n handle_type: string;\n name: string;\n };\n}\n\nexport interface BusinessProfileClass {\n /**\n * Get your business profile.\n * @param fields Fields to be returned in the response. If not specified, all fields will be returned.\n * Possible values: about, address, description, email, profile_picture_url, websites, vertical\n */\n getBusinessProfile(fields?: string): Promise<BusinessProfileResponse>;\n\n /**\n * Update your business profile.\n * @param updateRequest The request object containing the fields to update.\n */\n updateBusinessProfile(updateRequest: UpdateBusinessProfileRequest): Promise<ResponseSuccess>;\n\n /**\n * Create an upload session for profile picture.\n * @param fileLength Length of the file to be uploaded in bytes.\n * @param fileType MIME type of the file (e.g., 'image/jpeg').\n * @param fileName Name of the file.\n */\n createUploadSession(fileLength: number, fileType: string, fileName: string): Promise<UploadSessionResponse>;\n\n /**\n * Upload media file to the upload session.\n * @param uploadId The ID of the upload session.\n * @param file The binary data of the file.\n */\n uploadMedia(uploadId: string, file: Buffer): Promise<UploadBusinessProfileResponse>;\n\n /**\n * Get the upload handle information.\n * @param uploadId The ID of the upload session.\n */\n getUploadHandle(uploadId: string): Promise<UploadHandle>;\n}\n"],"mappings":"+WAAA,IAAAA,EAAA,kBAAAC,EAAAD","names":["businessProfile_exports","__toCommonJS"]}
@@ -1,4 +1,4 @@
1
- import { RequesterResponseInterface, ResponseData, ResponseSuccess } from './request.mjs';
1
+ import { ResponseData, ResponseSuccess } from './request.mjs';
2
2
  import '../enums-D7paGoTY.mjs';
3
3
 
4
4
  type EncryptionPublicKeyResponse = ResponseData<{
@@ -6,8 +6,8 @@ type EncryptionPublicKeyResponse = ResponseData<{
6
6
  business_public_key_signature_status: 'VALID' | 'MISMATCH';
7
7
  }>;
8
8
  interface EncryptionClass {
9
- getEncryptionPublicKey(): Promise<RequesterResponseInterface<EncryptionPublicKeyResponse>>;
10
- setEncryptionPublicKey(businessPublicKey: string): Promise<RequesterResponseInterface<ResponseSuccess>>;
9
+ getEncryptionPublicKey(): Promise<EncryptionPublicKeyResponse>;
10
+ setEncryptionPublicKey(businessPublicKey: string): Promise<ResponseSuccess>;
11
11
  }
12
12
 
13
13
  export type { EncryptionClass, EncryptionPublicKeyResponse };
@@ -1,4 +1,4 @@
1
- import { RequesterResponseInterface, ResponseData, ResponseSuccess } from './request.js';
1
+ import { ResponseData, ResponseSuccess } from './request.js';
2
2
  import '../enums-D7paGoTY.js';
3
3
 
4
4
  type EncryptionPublicKeyResponse = ResponseData<{
@@ -6,8 +6,8 @@ type EncryptionPublicKeyResponse = ResponseData<{
6
6
  business_public_key_signature_status: 'VALID' | 'MISMATCH';
7
7
  }>;
8
8
  interface EncryptionClass {
9
- getEncryptionPublicKey(): Promise<RequesterResponseInterface<EncryptionPublicKeyResponse>>;
10
- setEncryptionPublicKey(businessPublicKey: string): Promise<RequesterResponseInterface<ResponseSuccess>>;
9
+ getEncryptionPublicKey(): Promise<EncryptionPublicKeyResponse>;
10
+ setEncryptionPublicKey(businessPublicKey: string): Promise<ResponseSuccess>;
11
11
  }
12
12
 
13
13
  export type { EncryptionClass, EncryptionPublicKeyResponse };
@@ -1,2 +1,2 @@
1
- "use strict";var i=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(s,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of o(e))!p.call(s,n)&&n!==r&&i(s,n,{get:()=>e[n],enumerable:!(t=c(e,n))||t.enumerable});return s};var y=s=>u(i({},"__esModule",{value:!0}),s);var R={};module.exports=y(R);
1
+ "use strict";var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var r=Object.prototype.hasOwnProperty;var u=(e,s,c,i)=>{if(s&&typeof s=="object"||typeof s=="function")for(let n of p(s))!r.call(e,n)&&n!==c&&t(e,n,{get:()=>s[n],enumerable:!(i=o(s,n))||i.enumerable});return e};var y=e=>u(t({},"__esModule",{value:!0}),e);var b={};module.exports=y(b);
2
2
  //# sourceMappingURL=encryption.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/encryption.ts"],"sourcesContent":["import { ResponseData, ResponseSuccess, RequesterResponseInterface } from './request';\n\nexport type EncryptionPublicKeyResponse = ResponseData<{\n business_public_key: string;\n business_public_key_signature_status: 'VALID' | 'MISMATCH';\n}>;\n\nexport interface EncryptionClass {\n getEncryptionPublicKey(): Promise<RequesterResponseInterface<EncryptionPublicKeyResponse>>;\n setEncryptionPublicKey(businessPublicKey: string): Promise<RequesterResponseInterface<ResponseSuccess>>;\n}\n"],"mappings":"+WAAA,IAAAA,EAAA,kBAAAC,EAAAD","names":["encryption_exports","__toCommonJS"]}
1
+ {"version":3,"sources":["../../src/types/encryption.ts"],"sourcesContent":["import { ResponseData, ResponseSuccess } from './request';\n\nexport type EncryptionPublicKeyResponse = ResponseData<{\n business_public_key: string;\n business_public_key_signature_status: 'VALID' | 'MISMATCH';\n}>;\n\nexport interface EncryptionClass {\n getEncryptionPublicKey(): Promise<EncryptionPublicKeyResponse>;\n setEncryptionPublicKey(businessPublicKey: string): Promise<ResponseSuccess>;\n}\n"],"mappings":"+WAAA,IAAAA,EAAA,kBAAAC,EAAAD","names":["encryption_exports","__toCommonJS"]}
@@ -1,4 +1,4 @@
1
- import { RequesterResponseInterface, ResponseSuccess } from './request.mjs';
1
+ import { ResponseSuccess } from './request.mjs';
2
2
  import '../enums-D7paGoTY.mjs';
3
3
 
4
4
  /**
@@ -167,7 +167,7 @@ interface FlowClass {
167
167
  * @param wabaId - The WABA ID
168
168
  * @returns Promise with the list of flows
169
169
  */
170
- listFlows(wabaId: string): Promise<RequesterResponseInterface<FlowsListResponse>>;
170
+ listFlows(wabaId: string): Promise<FlowsListResponse>;
171
171
  /**
172
172
  * Create Flow
173
173
  *
@@ -182,7 +182,7 @@ interface FlowClass {
182
182
  clone_flow_id?: string;
183
183
  flow_json?: string;
184
184
  publish?: boolean;
185
- }): Promise<RequesterResponseInterface<CreateFlowResponse>>;
185
+ }): Promise<CreateFlowResponse>;
186
186
  /**
187
187
  * Get Flow
188
188
  *
@@ -191,7 +191,7 @@ interface FlowClass {
191
191
  * @param dateFormat - Optional date format
192
192
  * @returns Promise with the flow details
193
193
  */
194
- getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<RequesterResponseInterface<Flow | FlowPreviewResponse>>;
194
+ getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<Flow | FlowPreviewResponse>;
195
195
  /**
196
196
  * Update Flow Metadata
197
197
  *
@@ -204,21 +204,21 @@ interface FlowClass {
204
204
  categories?: FlowCategoryEnum[];
205
205
  endpoint_uri?: string;
206
206
  application_id?: string;
207
- }): Promise<RequesterResponseInterface<ResponseSuccess>>;
207
+ }): Promise<ResponseSuccess>;
208
208
  /**
209
209
  * Delete Flow
210
210
  *
211
211
  * @param flowId - The flow ID
212
212
  * @returns Promise with the success status
213
213
  */
214
- deleteFlow(flowId: string): Promise<RequesterResponseInterface<ResponseSuccess>>;
214
+ deleteFlow(flowId: string): Promise<ResponseSuccess>;
215
215
  /**
216
216
  * List Assets (Get Flow JSON URL)
217
217
  *
218
218
  * @param flowId - The flow ID
219
219
  * @returns Promise with the list of assets
220
220
  */
221
- listAssets(flowId: string): Promise<RequesterResponseInterface<FlowAssetsResponse>>;
221
+ listAssets(flowId: string): Promise<FlowAssetsResponse>;
222
222
  /**
223
223
  * Update Flow JSON
224
224
  *
@@ -230,7 +230,7 @@ interface FlowClass {
230
230
  asset_type: 'FLOW_JSON';
231
231
  file: Blob;
232
232
  name: string;
233
- }): Promise<RequesterResponseInterface<UpdateFlowResponse>>;
233
+ }): Promise<UpdateFlowResponse>;
234
234
  /**
235
235
  * Validate Flow JSON by attempting an update without publishing.
236
236
  * This is a convenience method; the API doesn't have a dedicated validation endpoint.
@@ -239,21 +239,21 @@ interface FlowClass {
239
239
  * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.
240
240
  * @returns Promise indicating if the JSON is valid and includes validation errors if any.
241
241
  */
242
- validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<RequesterResponseInterface<ValidateFlowJsonResponse>>;
242
+ validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<ValidateFlowJsonResponse>;
243
243
  /**
244
244
  * Publish Flow
245
245
  *
246
246
  * @param flowId - The flow ID
247
247
  * @returns Promise with the success status
248
248
  */
249
- publishFlow(flowId: string): Promise<RequesterResponseInterface<ResponseSuccess>>;
249
+ publishFlow(flowId: string): Promise<ResponseSuccess>;
250
250
  /**
251
251
  * Deprecate Flow
252
252
  *
253
253
  * @param flowId - The flow ID
254
254
  * @returns Promise with the success status
255
255
  */
256
- deprecateFlow(flowId: string): Promise<RequesterResponseInterface<ResponseSuccess>>;
256
+ deprecateFlow(flowId: string): Promise<ResponseSuccess>;
257
257
  /**
258
258
  * Migrate Flows
259
259
  *
@@ -264,7 +264,7 @@ interface FlowClass {
264
264
  migrateFlows(wabaId: string, data: {
265
265
  source_waba_id: string;
266
266
  source_flow_names?: string[];
267
- }): Promise<RequesterResponseInterface<FlowMigrationResponse>>;
267
+ }): Promise<FlowMigrationResponse>;
268
268
  }
269
269
 
270
270
  export { type CreateFlowResponse, type Flow, type FlowAsset, type FlowAssetsResponse, FlowCategoryEnum, type FlowClass, type FlowMigrationFailure, type FlowMigrationResponse, type FlowMigrationResult, type FlowPreview, type FlowPreviewResponse, FlowStatusEnum, type FlowValidationError, type FlowValidationErrorPointer, type FlowsListResponse, type Pagination, type PaginationCursors, type UpdateFlowResponse, type ValidateFlowJsonResponse };
@@ -1,4 +1,4 @@
1
- import { RequesterResponseInterface, ResponseSuccess } from './request.js';
1
+ import { ResponseSuccess } from './request.js';
2
2
  import '../enums-D7paGoTY.js';
3
3
 
4
4
  /**
@@ -167,7 +167,7 @@ interface FlowClass {
167
167
  * @param wabaId - The WABA ID
168
168
  * @returns Promise with the list of flows
169
169
  */
170
- listFlows(wabaId: string): Promise<RequesterResponseInterface<FlowsListResponse>>;
170
+ listFlows(wabaId: string): Promise<FlowsListResponse>;
171
171
  /**
172
172
  * Create Flow
173
173
  *
@@ -182,7 +182,7 @@ interface FlowClass {
182
182
  clone_flow_id?: string;
183
183
  flow_json?: string;
184
184
  publish?: boolean;
185
- }): Promise<RequesterResponseInterface<CreateFlowResponse>>;
185
+ }): Promise<CreateFlowResponse>;
186
186
  /**
187
187
  * Get Flow
188
188
  *
@@ -191,7 +191,7 @@ interface FlowClass {
191
191
  * @param dateFormat - Optional date format
192
192
  * @returns Promise with the flow details
193
193
  */
194
- getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<RequesterResponseInterface<Flow | FlowPreviewResponse>>;
194
+ getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<Flow | FlowPreviewResponse>;
195
195
  /**
196
196
  * Update Flow Metadata
197
197
  *
@@ -204,21 +204,21 @@ interface FlowClass {
204
204
  categories?: FlowCategoryEnum[];
205
205
  endpoint_uri?: string;
206
206
  application_id?: string;
207
- }): Promise<RequesterResponseInterface<ResponseSuccess>>;
207
+ }): Promise<ResponseSuccess>;
208
208
  /**
209
209
  * Delete Flow
210
210
  *
211
211
  * @param flowId - The flow ID
212
212
  * @returns Promise with the success status
213
213
  */
214
- deleteFlow(flowId: string): Promise<RequesterResponseInterface<ResponseSuccess>>;
214
+ deleteFlow(flowId: string): Promise<ResponseSuccess>;
215
215
  /**
216
216
  * List Assets (Get Flow JSON URL)
217
217
  *
218
218
  * @param flowId - The flow ID
219
219
  * @returns Promise with the list of assets
220
220
  */
221
- listAssets(flowId: string): Promise<RequesterResponseInterface<FlowAssetsResponse>>;
221
+ listAssets(flowId: string): Promise<FlowAssetsResponse>;
222
222
  /**
223
223
  * Update Flow JSON
224
224
  *
@@ -230,7 +230,7 @@ interface FlowClass {
230
230
  asset_type: 'FLOW_JSON';
231
231
  file: Blob;
232
232
  name: string;
233
- }): Promise<RequesterResponseInterface<UpdateFlowResponse>>;
233
+ }): Promise<UpdateFlowResponse>;
234
234
  /**
235
235
  * Validate Flow JSON by attempting an update without publishing.
236
236
  * This is a convenience method; the API doesn't have a dedicated validation endpoint.
@@ -239,21 +239,21 @@ interface FlowClass {
239
239
  * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.
240
240
  * @returns Promise indicating if the JSON is valid and includes validation errors if any.
241
241
  */
242
- validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<RequesterResponseInterface<ValidateFlowJsonResponse>>;
242
+ validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<ValidateFlowJsonResponse>;
243
243
  /**
244
244
  * Publish Flow
245
245
  *
246
246
  * @param flowId - The flow ID
247
247
  * @returns Promise with the success status
248
248
  */
249
- publishFlow(flowId: string): Promise<RequesterResponseInterface<ResponseSuccess>>;
249
+ publishFlow(flowId: string): Promise<ResponseSuccess>;
250
250
  /**
251
251
  * Deprecate Flow
252
252
  *
253
253
  * @param flowId - The flow ID
254
254
  * @returns Promise with the success status
255
255
  */
256
- deprecateFlow(flowId: string): Promise<RequesterResponseInterface<ResponseSuccess>>;
256
+ deprecateFlow(flowId: string): Promise<ResponseSuccess>;
257
257
  /**
258
258
  * Migrate Flows
259
259
  *
@@ -264,7 +264,7 @@ interface FlowClass {
264
264
  migrateFlows(wabaId: string, data: {
265
265
  source_waba_id: string;
266
266
  source_flow_names?: string[];
267
- }): Promise<RequesterResponseInterface<FlowMigrationResponse>>;
267
+ }): Promise<FlowMigrationResponse>;
268
268
  }
269
269
 
270
270
  export { type CreateFlowResponse, type Flow, type FlowAsset, type FlowAssetsResponse, FlowCategoryEnum, type FlowClass, type FlowMigrationFailure, type FlowMigrationResponse, type FlowMigrationResult, type FlowPreview, type FlowPreviewResponse, FlowStatusEnum, type FlowValidationError, type FlowValidationErrorPointer, type FlowsListResponse, type Pagination, type PaginationCursors, type UpdateFlowResponse, type ValidateFlowJsonResponse };
@@ -1,2 +1,2 @@
1
- "use strict";var i=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var w=(s,e)=>{for(var n in e)i(s,n,{get:e[n],enumerable:!0})},R=(s,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of d(e))!g.call(s,o)&&o!==n&&i(s,o,{get:()=>e[o],enumerable:!(a=c(e,o))||a.enumerable});return s};var f=s=>R(i({},"__esModule",{value:!0}),s);var u={};w(u,{FlowCategoryEnum:()=>p,FlowStatusEnum:()=>l});module.exports=f(u);var l=(t=>(t.Draft="DRAFT",t.Published="PUBLISHED",t.Throttled="THROTTLED",t.Blocked="BLOCKED",t.Deprecated="DEPRECATED",t))(l||{}),p=(r=>(r.SignUp="SIGN_UP",r.SignIn="SIGN_IN",r.AppointmentBooking="APPOINTMENT_BOOKING",r.LeadGeneration="LEAD_GENERATION",r.ContactUs="CONTACT_US",r.CustomerSupport="CUSTOMER_SUPPORT",r.Survey="SURVEY",r.Other="OTHER",r))(p||{});0&&(module.exports={FlowCategoryEnum,FlowStatusEnum});
1
+ "use strict";var n=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var w=Object.prototype.hasOwnProperty;var c=(o,e)=>{for(var t in e)n(o,t,{get:e[t],enumerable:!0})},_=(o,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of p(e))!w.call(o,s)&&s!==t&&n(o,s,{get:()=>e[s],enumerable:!(a=g(e,s))||a.enumerable});return o};var f=o=>_(n({},"__esModule",{value:!0}),o);var F={};c(F,{FlowCategoryEnum:()=>d,FlowStatusEnum:()=>l});module.exports=f(F);var l=(i=>(i.Draft="DRAFT",i.Published="PUBLISHED",i.Throttled="THROTTLED",i.Blocked="BLOCKED",i.Deprecated="DEPRECATED",i))(l||{}),d=(r=>(r.SignUp="SIGN_UP",r.SignIn="SIGN_IN",r.AppointmentBooking="APPOINTMENT_BOOKING",r.LeadGeneration="LEAD_GENERATION",r.ContactUs="CONTACT_US",r.CustomerSupport="CUSTOMER_SUPPORT",r.Survey="SURVEY",r.Other="OTHER",r))(d||{});0&&(module.exports={FlowCategoryEnum,FlowStatusEnum});
2
2
  //# sourceMappingURL=flow.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/flow.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n * All rights reserved.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { RequesterResponseInterface, ResponseSuccess } from './request';\n\n/**\n * Enum for Flow Status\n */\nexport enum FlowStatusEnum {\n Draft = 'DRAFT',\n Published = 'PUBLISHED',\n Throttled = 'THROTTLED',\n Blocked = 'BLOCKED',\n Deprecated = 'DEPRECATED',\n}\n\n/**\n * Enum for Flow Categories\n */\nexport enum FlowCategoryEnum {\n SignUp = 'SIGN_UP',\n SignIn = 'SIGN_IN',\n AppointmentBooking = 'APPOINTMENT_BOOKING',\n LeadGeneration = 'LEAD_GENERATION',\n ContactUs = 'CONTACT_US',\n CustomerSupport = 'CUSTOMER_SUPPORT',\n Survey = 'SURVEY',\n Other = 'OTHER',\n}\n\n/**\n * Flow Validation Error Pointer\n */\nexport interface FlowValidationErrorPointer {\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n path: string;\n}\n\n/**\n * Flow Validation Error\n */\nexport interface FlowValidationError {\n error: string;\n error_type: string;\n message: string;\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n pointers: FlowValidationErrorPointer[];\n}\n\n/**\n * Flow Item\n */\nexport interface Flow {\n id: string;\n name: string;\n status: FlowStatusEnum;\n categories: FlowCategoryEnum[];\n validation_errors: FlowValidationError[];\n}\n\n/**\n * Pagination Cursors\n */\nexport interface PaginationCursors {\n before: string;\n after: string;\n}\n\n/**\n * Pagination Object\n */\nexport interface Pagination {\n cursors: PaginationCursors;\n}\n\n/**\n * Flows List Response\n */\nexport interface FlowsListResponse {\n data: Flow[];\n paging: Pagination;\n}\n\n/**\n * Flow Asset\n */\nexport interface FlowAsset {\n name: string;\n asset_type: string;\n download_url: string;\n}\n\n/**\n * Flow Assets Response\n */\nexport interface FlowAssetsResponse {\n data: FlowAsset[];\n paging: Pagination;\n}\n\n/**\n * Flow Preview\n */\nexport interface FlowPreview {\n preview_url: string;\n expires_at: string;\n}\n\n/**\n * Flow Preview Response\n */\nexport interface FlowPreviewResponse {\n preview: FlowPreview;\n id: string;\n}\n\n/**\n * Flow Migration Result\n */\nexport interface FlowMigrationResult {\n source_name: string;\n source_id: string;\n migrated_id: string;\n}\n\n/**\n * Flow Migration Failure\n */\nexport interface FlowMigrationFailure {\n source_name: string;\n error_code: string;\n error_message: string;\n}\n\n/**\n * Create Flow Response\n */\nexport interface CreateFlowResponse {\n id: string;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Update Flow Response\n */\nexport interface UpdateFlowResponse {\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Flow Migration Response\n */\nexport interface FlowMigrationResponse {\n migrated_flows: FlowMigrationResult[];\n failed_flows: FlowMigrationFailure[];\n}\n\n/**\n * Validate Flow JSON Response\n */\nexport interface ValidateFlowJsonResponse {\n valid: boolean;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\nexport interface FlowClass {\n /**\n * List Flows\n *\n * @param wabaId - The WABA ID\n * @returns Promise with the list of flows\n */\n listFlows(wabaId: string): Promise<RequesterResponseInterface<FlowsListResponse>>;\n\n /**\n * Create Flow\n *\n * @param wabaId - The WABA ID\n * @param data - The flow data including name, categories, endpoint_uri, and optional clone_flow_id\n * @returns Promise with the created flow ID\n */\n createFlow(\n wabaId: string,\n data: {\n name: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n clone_flow_id?: string;\n flow_json?: string;\n publish?: boolean;\n },\n ): Promise<RequesterResponseInterface<CreateFlowResponse>>;\n\n /**\n * Get Flow\n *\n * @param flowId - The flow ID\n * @param fields - Optional fields to return\n * @param dateFormat - Optional date format\n * @returns Promise with the flow details\n */\n getFlow(\n flowId: string,\n fields?: string,\n dateFormat?: string,\n ): Promise<RequesterResponseInterface<Flow | FlowPreviewResponse>>;\n\n /**\n * Update Flow Metadata\n *\n * @param flowId - The flow ID\n * @param data - The flow metadata to update\n * @returns Promise with the success status\n */\n updateFlowMetadata(\n flowId: string,\n data: {\n name?: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n application_id?: string;\n },\n ): Promise<RequesterResponseInterface<ResponseSuccess>>;\n\n /**\n * Delete Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deleteFlow(flowId: string): Promise<RequesterResponseInterface<ResponseSuccess>>;\n\n /**\n * List Assets (Get Flow JSON URL)\n *\n * @param flowId - The flow ID\n * @returns Promise with the list of assets\n */\n listAssets(flowId: string): Promise<RequesterResponseInterface<FlowAssetsResponse>>;\n\n /**\n * Update Flow JSON\n *\n * @param flowId - The flow ID\n * @param data - The asset data including asset_type, file, and name\n * @returns Promise with the success status and validation errors\n */\n updateFlowJson(\n flowId: string,\n data: {\n asset_type: 'FLOW_JSON';\n file: Blob;\n name: string;\n },\n ): Promise<RequesterResponseInterface<UpdateFlowResponse>>;\n\n /**\n * Validate Flow JSON by attempting an update without publishing.\n * This is a convenience method; the API doesn't have a dedicated validation endpoint.\n *\n * @param flowId - The ID of the Flow (must exist, can be in DRAFT status).\n * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.\n * @returns Promise indicating if the JSON is valid and includes validation errors if any.\n */\n validateFlowJson(\n flowId: string,\n flowJsonData: Blob | Buffer | object,\n ): Promise<RequesterResponseInterface<ValidateFlowJsonResponse>>;\n\n /**\n * Publish Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n publishFlow(flowId: string): Promise<RequesterResponseInterface<ResponseSuccess>>;\n\n /**\n * Deprecate Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deprecateFlow(flowId: string): Promise<RequesterResponseInterface<ResponseSuccess>>;\n\n /**\n * Migrate Flows\n *\n * @param wabaId - The destination WABA ID\n * @param data - The migration data including source_waba_id and optional source_flow_names\n * @returns Promise with migration results\n */\n migrateFlows(\n wabaId: string,\n data: {\n source_waba_id: string;\n source_flow_names?: string[];\n },\n ): Promise<RequesterResponseInterface<FlowMigrationResponse>>;\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,EAAA,mBAAAC,IAAA,eAAAC,EAAAJ,GAYO,IAAKG,OACRA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,UAAY,YACZA,EAAA,QAAU,UACVA,EAAA,WAAa,aALLA,OAAA,IAWAD,OACRA,EAAA,OAAS,UACTA,EAAA,OAAS,UACTA,EAAA,mBAAqB,sBACrBA,EAAA,eAAiB,kBACjBA,EAAA,UAAY,aACZA,EAAA,gBAAkB,mBAClBA,EAAA,OAAS,SACTA,EAAA,MAAQ,QARAA,OAAA","names":["flow_exports","__export","FlowCategoryEnum","FlowStatusEnum","__toCommonJS"]}
1
+ {"version":3,"sources":["../../src/types/flow.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n * All rights reserved.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { ResponseSuccess } from './request';\n\n/**\n * Enum for Flow Status\n */\nexport enum FlowStatusEnum {\n Draft = 'DRAFT',\n Published = 'PUBLISHED',\n Throttled = 'THROTTLED',\n Blocked = 'BLOCKED',\n Deprecated = 'DEPRECATED',\n}\n\n/**\n * Enum for Flow Categories\n */\nexport enum FlowCategoryEnum {\n SignUp = 'SIGN_UP',\n SignIn = 'SIGN_IN',\n AppointmentBooking = 'APPOINTMENT_BOOKING',\n LeadGeneration = 'LEAD_GENERATION',\n ContactUs = 'CONTACT_US',\n CustomerSupport = 'CUSTOMER_SUPPORT',\n Survey = 'SURVEY',\n Other = 'OTHER',\n}\n\n/**\n * Flow Validation Error Pointer\n */\nexport interface FlowValidationErrorPointer {\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n path: string;\n}\n\n/**\n * Flow Validation Error\n */\nexport interface FlowValidationError {\n error: string;\n error_type: string;\n message: string;\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n pointers: FlowValidationErrorPointer[];\n}\n\n/**\n * Flow Item\n */\nexport interface Flow {\n id: string;\n name: string;\n status: FlowStatusEnum;\n categories: FlowCategoryEnum[];\n validation_errors: FlowValidationError[];\n}\n\n/**\n * Pagination Cursors\n */\nexport interface PaginationCursors {\n before: string;\n after: string;\n}\n\n/**\n * Pagination Object\n */\nexport interface Pagination {\n cursors: PaginationCursors;\n}\n\n/**\n * Flows List Response\n */\nexport interface FlowsListResponse {\n data: Flow[];\n paging: Pagination;\n}\n\n/**\n * Flow Asset\n */\nexport interface FlowAsset {\n name: string;\n asset_type: string;\n download_url: string;\n}\n\n/**\n * Flow Assets Response\n */\nexport interface FlowAssetsResponse {\n data: FlowAsset[];\n paging: Pagination;\n}\n\n/**\n * Flow Preview\n */\nexport interface FlowPreview {\n preview_url: string;\n expires_at: string;\n}\n\n/**\n * Flow Preview Response\n */\nexport interface FlowPreviewResponse {\n preview: FlowPreview;\n id: string;\n}\n\n/**\n * Flow Migration Result\n */\nexport interface FlowMigrationResult {\n source_name: string;\n source_id: string;\n migrated_id: string;\n}\n\n/**\n * Flow Migration Failure\n */\nexport interface FlowMigrationFailure {\n source_name: string;\n error_code: string;\n error_message: string;\n}\n\n/**\n * Create Flow Response\n */\nexport interface CreateFlowResponse {\n id: string;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Update Flow Response\n */\nexport interface UpdateFlowResponse {\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Flow Migration Response\n */\nexport interface FlowMigrationResponse {\n migrated_flows: FlowMigrationResult[];\n failed_flows: FlowMigrationFailure[];\n}\n\n/**\n * Validate Flow JSON Response\n */\nexport interface ValidateFlowJsonResponse {\n valid: boolean;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\nexport interface FlowClass {\n /**\n * List Flows\n *\n * @param wabaId - The WABA ID\n * @returns Promise with the list of flows\n */\n listFlows(wabaId: string): Promise<FlowsListResponse>;\n\n /**\n * Create Flow\n *\n * @param wabaId - The WABA ID\n * @param data - The flow data including name, categories, endpoint_uri, and optional clone_flow_id\n * @returns Promise with the created flow ID\n */\n createFlow(\n wabaId: string,\n data: {\n name: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n clone_flow_id?: string;\n flow_json?: string;\n publish?: boolean;\n },\n ): Promise<CreateFlowResponse>;\n\n /**\n * Get Flow\n *\n * @param flowId - The flow ID\n * @param fields - Optional fields to return\n * @param dateFormat - Optional date format\n * @returns Promise with the flow details\n */\n getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<Flow | FlowPreviewResponse>;\n\n /**\n * Update Flow Metadata\n *\n * @param flowId - The flow ID\n * @param data - The flow metadata to update\n * @returns Promise with the success status\n */\n updateFlowMetadata(\n flowId: string,\n data: {\n name?: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n application_id?: string;\n },\n ): Promise<ResponseSuccess>;\n\n /**\n * Delete Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deleteFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * List Assets (Get Flow JSON URL)\n *\n * @param flowId - The flow ID\n * @returns Promise with the list of assets\n */\n listAssets(flowId: string): Promise<FlowAssetsResponse>;\n\n /**\n * Update Flow JSON\n *\n * @param flowId - The flow ID\n * @param data - The asset data including asset_type, file, and name\n * @returns Promise with the success status and validation errors\n */\n updateFlowJson(\n flowId: string,\n data: {\n asset_type: 'FLOW_JSON';\n file: Blob;\n name: string;\n },\n ): Promise<UpdateFlowResponse>;\n\n /**\n * Validate Flow JSON by attempting an update without publishing.\n * This is a convenience method; the API doesn't have a dedicated validation endpoint.\n *\n * @param flowId - The ID of the Flow (must exist, can be in DRAFT status).\n * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.\n * @returns Promise indicating if the JSON is valid and includes validation errors if any.\n */\n validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<ValidateFlowJsonResponse>;\n\n /**\n * Publish Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n publishFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Deprecate Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deprecateFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Migrate Flows\n *\n * @param wabaId - The destination WABA ID\n * @param data - The migration data including source_waba_id and optional source_flow_names\n * @returns Promise with migration results\n */\n migrateFlows(\n wabaId: string,\n data: {\n source_waba_id: string;\n source_flow_names?: string[];\n },\n ): Promise<FlowMigrationResponse>;\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,EAAA,mBAAAC,IAAA,eAAAC,EAAAJ,GAYO,IAAKG,OACRA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,UAAY,YACZA,EAAA,QAAU,UACVA,EAAA,WAAa,aALLA,OAAA,IAWAD,OACRA,EAAA,OAAS,UACTA,EAAA,OAAS,UACTA,EAAA,mBAAqB,sBACrBA,EAAA,eAAiB,kBACjBA,EAAA,UAAY,aACZA,EAAA,gBAAkB,mBAClBA,EAAA,OAAS,SACTA,EAAA,MAAQ,QARAA,OAAA","names":["flow_exports","__export","FlowCategoryEnum","FlowStatusEnum","__toCommonJS"]}
@@ -1,2 +1,2 @@
1
- var s=(r=>(r.Draft="DRAFT",r.Published="PUBLISHED",r.Throttled="THROTTLED",r.Blocked="BLOCKED",r.Deprecated="DEPRECATED",r))(s||{}),o=(e=>(e.SignUp="SIGN_UP",e.SignIn="SIGN_IN",e.AppointmentBooking="APPOINTMENT_BOOKING",e.LeadGeneration="LEAD_GENERATION",e.ContactUs="CONTACT_US",e.CustomerSupport="CUSTOMER_SUPPORT",e.Survey="SURVEY",e.Other="OTHER",e))(o||{});export{o as FlowCategoryEnum,s as FlowStatusEnum};
1
+ var o=(r=>(r.Draft="DRAFT",r.Published="PUBLISHED",r.Throttled="THROTTLED",r.Blocked="BLOCKED",r.Deprecated="DEPRECATED",r))(o||{}),s=(e=>(e.SignUp="SIGN_UP",e.SignIn="SIGN_IN",e.AppointmentBooking="APPOINTMENT_BOOKING",e.LeadGeneration="LEAD_GENERATION",e.ContactUs="CONTACT_US",e.CustomerSupport="CUSTOMER_SUPPORT",e.Survey="SURVEY",e.Other="OTHER",e))(s||{});export{s as FlowCategoryEnum,o as FlowStatusEnum};
2
2
  //# sourceMappingURL=flow.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/flow.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n * All rights reserved.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { RequesterResponseInterface, ResponseSuccess } from './request';\n\n/**\n * Enum for Flow Status\n */\nexport enum FlowStatusEnum {\n Draft = 'DRAFT',\n Published = 'PUBLISHED',\n Throttled = 'THROTTLED',\n Blocked = 'BLOCKED',\n Deprecated = 'DEPRECATED',\n}\n\n/**\n * Enum for Flow Categories\n */\nexport enum FlowCategoryEnum {\n SignUp = 'SIGN_UP',\n SignIn = 'SIGN_IN',\n AppointmentBooking = 'APPOINTMENT_BOOKING',\n LeadGeneration = 'LEAD_GENERATION',\n ContactUs = 'CONTACT_US',\n CustomerSupport = 'CUSTOMER_SUPPORT',\n Survey = 'SURVEY',\n Other = 'OTHER',\n}\n\n/**\n * Flow Validation Error Pointer\n */\nexport interface FlowValidationErrorPointer {\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n path: string;\n}\n\n/**\n * Flow Validation Error\n */\nexport interface FlowValidationError {\n error: string;\n error_type: string;\n message: string;\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n pointers: FlowValidationErrorPointer[];\n}\n\n/**\n * Flow Item\n */\nexport interface Flow {\n id: string;\n name: string;\n status: FlowStatusEnum;\n categories: FlowCategoryEnum[];\n validation_errors: FlowValidationError[];\n}\n\n/**\n * Pagination Cursors\n */\nexport interface PaginationCursors {\n before: string;\n after: string;\n}\n\n/**\n * Pagination Object\n */\nexport interface Pagination {\n cursors: PaginationCursors;\n}\n\n/**\n * Flows List Response\n */\nexport interface FlowsListResponse {\n data: Flow[];\n paging: Pagination;\n}\n\n/**\n * Flow Asset\n */\nexport interface FlowAsset {\n name: string;\n asset_type: string;\n download_url: string;\n}\n\n/**\n * Flow Assets Response\n */\nexport interface FlowAssetsResponse {\n data: FlowAsset[];\n paging: Pagination;\n}\n\n/**\n * Flow Preview\n */\nexport interface FlowPreview {\n preview_url: string;\n expires_at: string;\n}\n\n/**\n * Flow Preview Response\n */\nexport interface FlowPreviewResponse {\n preview: FlowPreview;\n id: string;\n}\n\n/**\n * Flow Migration Result\n */\nexport interface FlowMigrationResult {\n source_name: string;\n source_id: string;\n migrated_id: string;\n}\n\n/**\n * Flow Migration Failure\n */\nexport interface FlowMigrationFailure {\n source_name: string;\n error_code: string;\n error_message: string;\n}\n\n/**\n * Create Flow Response\n */\nexport interface CreateFlowResponse {\n id: string;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Update Flow Response\n */\nexport interface UpdateFlowResponse {\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Flow Migration Response\n */\nexport interface FlowMigrationResponse {\n migrated_flows: FlowMigrationResult[];\n failed_flows: FlowMigrationFailure[];\n}\n\n/**\n * Validate Flow JSON Response\n */\nexport interface ValidateFlowJsonResponse {\n valid: boolean;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\nexport interface FlowClass {\n /**\n * List Flows\n *\n * @param wabaId - The WABA ID\n * @returns Promise with the list of flows\n */\n listFlows(wabaId: string): Promise<RequesterResponseInterface<FlowsListResponse>>;\n\n /**\n * Create Flow\n *\n * @param wabaId - The WABA ID\n * @param data - The flow data including name, categories, endpoint_uri, and optional clone_flow_id\n * @returns Promise with the created flow ID\n */\n createFlow(\n wabaId: string,\n data: {\n name: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n clone_flow_id?: string;\n flow_json?: string;\n publish?: boolean;\n },\n ): Promise<RequesterResponseInterface<CreateFlowResponse>>;\n\n /**\n * Get Flow\n *\n * @param flowId - The flow ID\n * @param fields - Optional fields to return\n * @param dateFormat - Optional date format\n * @returns Promise with the flow details\n */\n getFlow(\n flowId: string,\n fields?: string,\n dateFormat?: string,\n ): Promise<RequesterResponseInterface<Flow | FlowPreviewResponse>>;\n\n /**\n * Update Flow Metadata\n *\n * @param flowId - The flow ID\n * @param data - The flow metadata to update\n * @returns Promise with the success status\n */\n updateFlowMetadata(\n flowId: string,\n data: {\n name?: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n application_id?: string;\n },\n ): Promise<RequesterResponseInterface<ResponseSuccess>>;\n\n /**\n * Delete Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deleteFlow(flowId: string): Promise<RequesterResponseInterface<ResponseSuccess>>;\n\n /**\n * List Assets (Get Flow JSON URL)\n *\n * @param flowId - The flow ID\n * @returns Promise with the list of assets\n */\n listAssets(flowId: string): Promise<RequesterResponseInterface<FlowAssetsResponse>>;\n\n /**\n * Update Flow JSON\n *\n * @param flowId - The flow ID\n * @param data - The asset data including asset_type, file, and name\n * @returns Promise with the success status and validation errors\n */\n updateFlowJson(\n flowId: string,\n data: {\n asset_type: 'FLOW_JSON';\n file: Blob;\n name: string;\n },\n ): Promise<RequesterResponseInterface<UpdateFlowResponse>>;\n\n /**\n * Validate Flow JSON by attempting an update without publishing.\n * This is a convenience method; the API doesn't have a dedicated validation endpoint.\n *\n * @param flowId - The ID of the Flow (must exist, can be in DRAFT status).\n * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.\n * @returns Promise indicating if the JSON is valid and includes validation errors if any.\n */\n validateFlowJson(\n flowId: string,\n flowJsonData: Blob | Buffer | object,\n ): Promise<RequesterResponseInterface<ValidateFlowJsonResponse>>;\n\n /**\n * Publish Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n publishFlow(flowId: string): Promise<RequesterResponseInterface<ResponseSuccess>>;\n\n /**\n * Deprecate Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deprecateFlow(flowId: string): Promise<RequesterResponseInterface<ResponseSuccess>>;\n\n /**\n * Migrate Flows\n *\n * @param wabaId - The destination WABA ID\n * @param data - The migration data including source_waba_id and optional source_flow_names\n * @returns Promise with migration results\n */\n migrateFlows(\n wabaId: string,\n data: {\n source_waba_id: string;\n source_flow_names?: string[];\n },\n ): Promise<RequesterResponseInterface<FlowMigrationResponse>>;\n}\n"],"mappings":"AAYO,IAAKA,OACRA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,UAAY,YACZA,EAAA,QAAU,UACVA,EAAA,WAAa,aALLA,OAAA,IAWAC,OACRA,EAAA,OAAS,UACTA,EAAA,OAAS,UACTA,EAAA,mBAAqB,sBACrBA,EAAA,eAAiB,kBACjBA,EAAA,UAAY,aACZA,EAAA,gBAAkB,mBAClBA,EAAA,OAAS,SACTA,EAAA,MAAQ,QARAA,OAAA","names":["FlowStatusEnum","FlowCategoryEnum"]}
1
+ {"version":3,"sources":["../../src/types/flow.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n * All rights reserved.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { ResponseSuccess } from './request';\n\n/**\n * Enum for Flow Status\n */\nexport enum FlowStatusEnum {\n Draft = 'DRAFT',\n Published = 'PUBLISHED',\n Throttled = 'THROTTLED',\n Blocked = 'BLOCKED',\n Deprecated = 'DEPRECATED',\n}\n\n/**\n * Enum for Flow Categories\n */\nexport enum FlowCategoryEnum {\n SignUp = 'SIGN_UP',\n SignIn = 'SIGN_IN',\n AppointmentBooking = 'APPOINTMENT_BOOKING',\n LeadGeneration = 'LEAD_GENERATION',\n ContactUs = 'CONTACT_US',\n CustomerSupport = 'CUSTOMER_SUPPORT',\n Survey = 'SURVEY',\n Other = 'OTHER',\n}\n\n/**\n * Flow Validation Error Pointer\n */\nexport interface FlowValidationErrorPointer {\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n path: string;\n}\n\n/**\n * Flow Validation Error\n */\nexport interface FlowValidationError {\n error: string;\n error_type: string;\n message: string;\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n pointers: FlowValidationErrorPointer[];\n}\n\n/**\n * Flow Item\n */\nexport interface Flow {\n id: string;\n name: string;\n status: FlowStatusEnum;\n categories: FlowCategoryEnum[];\n validation_errors: FlowValidationError[];\n}\n\n/**\n * Pagination Cursors\n */\nexport interface PaginationCursors {\n before: string;\n after: string;\n}\n\n/**\n * Pagination Object\n */\nexport interface Pagination {\n cursors: PaginationCursors;\n}\n\n/**\n * Flows List Response\n */\nexport interface FlowsListResponse {\n data: Flow[];\n paging: Pagination;\n}\n\n/**\n * Flow Asset\n */\nexport interface FlowAsset {\n name: string;\n asset_type: string;\n download_url: string;\n}\n\n/**\n * Flow Assets Response\n */\nexport interface FlowAssetsResponse {\n data: FlowAsset[];\n paging: Pagination;\n}\n\n/**\n * Flow Preview\n */\nexport interface FlowPreview {\n preview_url: string;\n expires_at: string;\n}\n\n/**\n * Flow Preview Response\n */\nexport interface FlowPreviewResponse {\n preview: FlowPreview;\n id: string;\n}\n\n/**\n * Flow Migration Result\n */\nexport interface FlowMigrationResult {\n source_name: string;\n source_id: string;\n migrated_id: string;\n}\n\n/**\n * Flow Migration Failure\n */\nexport interface FlowMigrationFailure {\n source_name: string;\n error_code: string;\n error_message: string;\n}\n\n/**\n * Create Flow Response\n */\nexport interface CreateFlowResponse {\n id: string;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Update Flow Response\n */\nexport interface UpdateFlowResponse {\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Flow Migration Response\n */\nexport interface FlowMigrationResponse {\n migrated_flows: FlowMigrationResult[];\n failed_flows: FlowMigrationFailure[];\n}\n\n/**\n * Validate Flow JSON Response\n */\nexport interface ValidateFlowJsonResponse {\n valid: boolean;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\nexport interface FlowClass {\n /**\n * List Flows\n *\n * @param wabaId - The WABA ID\n * @returns Promise with the list of flows\n */\n listFlows(wabaId: string): Promise<FlowsListResponse>;\n\n /**\n * Create Flow\n *\n * @param wabaId - The WABA ID\n * @param data - The flow data including name, categories, endpoint_uri, and optional clone_flow_id\n * @returns Promise with the created flow ID\n */\n createFlow(\n wabaId: string,\n data: {\n name: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n clone_flow_id?: string;\n flow_json?: string;\n publish?: boolean;\n },\n ): Promise<CreateFlowResponse>;\n\n /**\n * Get Flow\n *\n * @param flowId - The flow ID\n * @param fields - Optional fields to return\n * @param dateFormat - Optional date format\n * @returns Promise with the flow details\n */\n getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<Flow | FlowPreviewResponse>;\n\n /**\n * Update Flow Metadata\n *\n * @param flowId - The flow ID\n * @param data - The flow metadata to update\n * @returns Promise with the success status\n */\n updateFlowMetadata(\n flowId: string,\n data: {\n name?: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n application_id?: string;\n },\n ): Promise<ResponseSuccess>;\n\n /**\n * Delete Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deleteFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * List Assets (Get Flow JSON URL)\n *\n * @param flowId - The flow ID\n * @returns Promise with the list of assets\n */\n listAssets(flowId: string): Promise<FlowAssetsResponse>;\n\n /**\n * Update Flow JSON\n *\n * @param flowId - The flow ID\n * @param data - The asset data including asset_type, file, and name\n * @returns Promise with the success status and validation errors\n */\n updateFlowJson(\n flowId: string,\n data: {\n asset_type: 'FLOW_JSON';\n file: Blob;\n name: string;\n },\n ): Promise<UpdateFlowResponse>;\n\n /**\n * Validate Flow JSON by attempting an update without publishing.\n * This is a convenience method; the API doesn't have a dedicated validation endpoint.\n *\n * @param flowId - The ID of the Flow (must exist, can be in DRAFT status).\n * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.\n * @returns Promise indicating if the JSON is valid and includes validation errors if any.\n */\n validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<ValidateFlowJsonResponse>;\n\n /**\n * Publish Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n publishFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Deprecate Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deprecateFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Migrate Flows\n *\n * @param wabaId - The destination WABA ID\n * @param data - The migration data including source_waba_id and optional source_flow_names\n * @returns Promise with migration results\n */\n migrateFlows(\n wabaId: string,\n data: {\n source_waba_id: string;\n source_flow_names?: string[];\n },\n ): Promise<FlowMigrationResponse>;\n}\n"],"mappings":"AAYO,IAAKA,OACRA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,UAAY,YACZA,EAAA,QAAU,UACVA,EAAA,WAAa,aALLA,OAAA,IAWAC,OACRA,EAAA,OAAS,UACTA,EAAA,OAAS,UACTA,EAAA,mBAAqB,sBACrBA,EAAA,eAAiB,kBACjBA,EAAA,UAAY,aACZA,EAAA,gBAAkB,mBAClBA,EAAA,OAAS,SACTA,EAAA,MAAQ,QARAA,OAAA","names":["FlowStatusEnum","FlowCategoryEnum"]}
@@ -1,2 +1,2 @@
1
- "use strict";var O=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var E=(I,_)=>{for(var D in _)O(I,D,{get:_[D],enumerable:!0})},y=(I,_,D,A)=>{if(_&&typeof _=="object"||typeof _=="function")for(let R of r(_))!c.call(I,R)&&R!==D&&O(I,R,{get:()=>_[R],enumerable:!(A=d(_,R))||A.enumerable});return I};var m=I=>y(O({},"__esModule",{value:!0}),I);var C={};E(C,{AudioMediaTypesEnum:()=>h,BusinessVerticalEnum:()=>j,ButtonPositionEnum:()=>a,ButtonTypesEnum:()=>x,CategoryEnum:()=>B,ComponentTypesEnum:()=>M,ConversationTypesEnum:()=>H,CurrencyCodesEnum:()=>q,DataLocalizationRegionEnum:()=>Q,DocumentMediaTypesEnum:()=>b,FlowCategoryEnum:()=>e,FlowStatusEnum:()=>s,HttpMethodsEnum:()=>F,ImageMediaTypesEnum:()=>Z,InteractiveTypesEnum:()=>K,LanguagesEnum:()=>k,MessageTypesEnum:()=>T,ParametersTypesEnum:()=>f,ReferralSourceTypesEnum:()=>v,RequestCodeMethodsEnum:()=>J,StatusEnum:()=>L,StickerMediaTypesEnum:()=>X,SystemChangeTypesEnum:()=>W,TemplateStatusEnum:()=>G,VideoMediaTypesEnum:()=>Y,WabaAccountReviewStatus:()=>o,WabaAccountStatus:()=>z,WabaBusinessVerificationStatus:()=>g,WabaConfigEnum:()=>w,WabaHealthStatusCanSendMessage:()=>$,WebhookTypesEnum:()=>V});module.exports=m(C);var B=(A=>(A.Authentication="AUTHENTICATION",A.Marketing="MARKETING",A.Utility="UTILITY",A))(B||{}),G=(A=>(A.Approved="APPROVED",A.Pending="PENDING",A.Rejected="REJECTED",A))(G||{}),F=(R=>(R.Get="GET",R.Post="POST",R.Put="PUT",R.Delete="DELETE",R))(F||{}),T=(p=>(p.Audio="audio",p.Contacts="contacts",p.Document="document",p.Image="image",p.Interactive="interactive",p.Location="location",p.Reaction="sticker",p.Sticker="sticker",p.Template="template",p.Text="text",p.Video="video",p))(T||{}),f=(U=>(U.Currency="currency",U.DateTime="date_time",U.Document="document",U.Image="image",U.Text="text",U.Video="video",U.Payload="payload",U))(f||{}),K=(S=>(S.Button="button",S.List="list",S.Product="product",S.ProductList="product_list",S.CtaUrl="cta_url",S.LocationRequest="location_request_message",S.AddressMessage="address_message",S.Flow="flow",S))(K||{}),x=(D=>(D.QuickReply="quick_reply",D.URL="url",D))(x||{}),a=(A=>(A[A.First=0]="First",A[A.Second=1]="Second",A[A.Third=2]="Third",A))(a||{}),M=(R=>(R.Header="HEADER",R.Body="BODY",R.Button="BUTTON",R.Footer="FOOTER",R))(M||{}),w=(P=>(P.BaseURL="WA_BASE_URL",P.AppId="M4D_APP_ID",P.Port="WA_PORT",P.AppSecret="M4D_APP_SECRET",P.PhoneNumberId="WA_PHONE_NUMBER_ID",P.BusinessAcctId="WA_BUSINESS_ACCOUNT_ID",P.APIVersion="CLOUD_API_VERSION",P.AccessToken="CLOUD_API_ACCESS_TOKEN",P.WebhookEndpoint="WEBHOOK_ENDPOINT",P.WebhookVerificationToken="WEBHOOK_VERIFICATION_TOKEN",P.ListenerPort="LISTENER_PORT",P.MaxRetriesAfterWait="MAX_RETRIES_AFTER_WAIT",P.RequestTimeout="REQUEST_TIMEOUT",P.Debug="DEBUG",P))(w||{}),H=(A=>(A.BusinessInitiated="business_initiated",A.CustomerInitiated="customer_initiated",A.ReferralConversion="referral_conversion",A))(H||{}),L=(A=>(A.Delivered="delivered",A.Read="read",A.Sent="sent",A))(L||{}),Y=(D=>(D.Mp4="video/mp4",D.Threegp="video/3gp",D))(Y||{}),X=(_=>(_.Webp="image/webp",_))(X||{}),Z=(D=>(D.Jpeg="image/jpeg",D.Png="image/png",D))(Z||{}),b=(S=>(S.Text="text/plain",S.Pdf="application/pdf",S.Ppt="application/vnd.ms-powerpoint",S.Word="application/msword",S.Excel="application/vnd.ms-excel",S.OpenDoc="application/vnd.openxmlformats-officedocument.wordprocessingml.document",S.OpenPres="application/vnd.openxmlformats-officedocument.presentationml.presentation",S.OpenSheet="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",S))(b||{}),h=(N=>(N.Aac="audio/aac",N.Mp4="audio/mp4",N.Mpeg="audio/mpeg",N.Amr="audio/amr",N.Ogg="audio/ogg",N))(h||{}),V=(p=>(p.Audio="audio",p.Button="button",p.Document="document",p.Text="text",p.Image="image",p.Interactive="interactive",p.Order="order",p.Sticker="sticker",p.System="system",p.Unknown="unknown",p.Video="video",p))(V||{}),W=(D=>(D.CustomerChangedNumber="customer_changed_number",D.CustomerIdentityChanged="customer_identity_changed",D))(W||{}),v=(D=>(D.Ad="ad",D.Post="post",D))(v||{}),J=(D=>(D.Sms="SMS",D.Voice="VOICE",D))(J||{}),k=(i=>(i.Afrikaans="af",i.Albanian="sq",i.Arabic="ar",i.Azerbaijani="az",i.Bengali="bn",i.Bulgarian="bg",i.Catalan="ca",i.Chinese_CHN="zh_CN",i.Chinese_HKG="zh_HK",i.Chinese_TAI="zh_TW",i.Croatian="hr",i.Czech="cs",i.Danish="da",i.Dutch="nl",i.English="en",i.English_UK="en_GB",i.English_US="en_US",i.Estonian="et",i.Filipino="fil",i.Finnish="fi",i.French="fr",i.Georgian="ka",i.German="de",i.Greek="el",i.Gujarati="gu",i.Hausa="ha",i.Hebrew="he",i.Hindi="hi",i.Hungarian="hu",i.Indonesian="id",i.Irish="ga",i.Italian="it",i.Japanese="ja",i.Kannada="kn",i.Kazakh="kk",i.Kinyarwanda="rw_RW",i.Korean="ko",i.Kyrgyz_Kyrgyzstan="ky_KG",i.Lao="lo",i.Latvian="lv",i.Lithuanian="lt",i.Macedonian="mk",i.Malay="ms",i.Malayalam="ml",i.Marathi="mr",i.Norwegian="nb",i.Persian="fa",i.Polish="pl",i.Portuguese_BR="pt_BR",i.Portuguese_POR="pt_PT",i.Punjabi="pa",i.Romanian="ro",i.Russian="ru",i.Serbian="sr",i.Slovak="sk",i.Slovenian="sl",i.Spanish="es",i.Spanish_ARG="es_AR",i.Spanish_SPA="es_ES",i.Spanish_MEX="es_MX",i.Swahili="sw",i.Swedish="sv",i.Tamil="ta",i.Telugu="te",i.Thai="th",i.Turkish="tr",i.Ukrainian="uk",i.Urdu="ur",i.Uzbek="uz",i.Vietnamese="vi",i.Zulu="zu",i))(k||{}),q=(t=>(t.AFN="AFN",t.EUR="EUR",t.ALL="ALL",t.DZD="DZD",t.USD="USD",t.AOA="AOA",t.XCD="XCD",t.ARS="ARS",t.AMD="AMD",t.AWG="AWG",t.AUD="AUD",t.AZN="AZN",t.BSD="BSD",t.BHD="BHD",t.BDT="BDT",t.BBD="BBD",t.BYN="BYN",t.BZD="BZD",t.XOF="XOF",t.BMD="BMD",t.INR="INR",t.BTN="BTN",t.BOB="BOB",t.BOV="BOV",t.BAM="BAM",t.BWP="BWP",t.NOK="NOK",t.BRL="BRL",t.BND="BND",t.BGN="BGN",t.BIF="BIF",t.CVE="CVE",t.KHR="KHR",t.XAF="XAF",t.CAD="CAD",t.KYD="KYD",t.CLP="CLP",t.CLF="CLF",t.CNY="CNY",t.COP="COP",t.COU="COU",t.KMF="KMF",t.CDF="CDF",t.NZD="NZD",t.CRC="CRC",t.HRK="HRK",t.CUP="CUP",t.CUC="CUC",t.ANG="ANG",t.CZK="CZK",t.DKK="DKK",t.DJF="DJF",t.DOP="DOP",t.EGP="EGP",t.SVC="SVC",t.ERN="ERN",t.SZL="SZL",t.ETB="ETB",t.FKP="FKP",t.FJD="FJD",t.XPF="XPF",t.GMD="GMD",t.GEL="GEL",t.GHS="GHS",t.GIP="GIP",t.GTQ="GTQ",t.GBP="GBP",t.GNF="GNF",t.GYD="GYD",t.HTG="HTG",t.HNL="HNL",t.HKD="HKD",t.HUF="HUF",t.ISK="ISK",t.IDR="IDR",t.XDR="XDR",t.IRR="IRR",t.IQD="IQD",t.ILS="ILS",t.JMD="JMD",t.JPY="JPY",t.JOD="JOD",t.KZT="KZT",t.KES="KES",t.KPW="KPW",t.KRW="KRW",t.KWD="KWD",t.KGS="KGS",t.LAK="LAK",t.LBP="LBP",t.LSL="LSL",t.ZAR="ZAR",t.LRD="LRD",t.LYD="LYD",t.CHF="CHF",t.MOP="MOP",t.MKD="MKD",t.MGA="MGA",t.MWK="MWK",t.MYR="MYR",t.MVR="MVR",t.MRU="MRU",t.MUR="MUR",t.XUA="XUA",t.MXN="MXN",t.MXV="MXV",t.MDL="MDL",t.MNT="MNT",t.MAD="MAD",t.MZN="MZN",t.MMK="MMK",t.NAD="NAD",t.NPR="NPR",t.NIO="NIO",t.NGN="NGN",t.OMR="OMR",t.PKR="PKR",t.PAB="PAB",t.PGK="PGK",t.PYG="PYG",t.PEN="PEN",t.PHP="PHP",t.PLN="PLN",t.QAR="QAR",t.RON="RON",t.RUB="RUB",t.RWF="RWF",t.SHP="SHP",t.WST="WST",t.STN="STN",t.SAR="SAR",t.RSD="RSD",t.SCR="SCR",t.SLL="SLL",t.SGD="SGD",t.XSU="XSU",t.SBD="SBD",t.SOS="SOS",t.SSP="SSP",t.LKR="LKR",t.SDG="SDG",t.SRD="SRD",t.SEK="SEK",t.CHE="CHE",t.CHW="CHW",t.SYP="SYP",t.TWD="TWD",t.TJS="TJS",t.TZS="TZS",t.THB="THB",t.TOP="TOP",t.TTD="TTD",t.TND="TND",t.TRY="TRY",t.TMT="TMT",t.UGX="UGX",t.UAH="UAH",t.AED="AED",t.USN="USN",t.UYU="UYU",t.UYI="UYI",t.UYW="UYW",t.UZS="UZS",t.VUV="VUV",t.VES="VES",t.VND="VND",t.YER="YER",t.ZMW="ZMW",t.ZWL="ZWL",t.XBA="XBA",t.XBB="XBB",t.XBC="XBC",t.XBD="XBD",t.XTS="XTS",t.XXX="XXX",t.XAU="XAU",t.XPD="XPD",t.XPT="XPT",t.XAG="XAG",t.AFA="AFA",t.FIM="FIM",t.ALK="ALK",t.ADP="ADP",t.ESP="ESP",t.FRF="FRF",t.AOK="AOK",t.AON="AON",t.AOR="AOR",t.ARA="ARA",t.ARP="ARP",t.ARY="ARY",t.RUR="RUR",t.ATS="ATS",t.AYM="AYM",t.AZM="AZM",t.BYB="BYB",t.BYR="BYR",t.BEC="BEC",t.BEF="BEF",t.BEL="BEL",t.BOP="BOP",t.BAD="BAD",t.BRB="BRB",t.BRC="BRC",t.BRE="BRE",t.BRN="BRN",t.BRR="BRR",t.BGJ="BGJ",t.BGK="BGK",t.BGL="BGL",t.BUK="BUK",t.HRD="HRD",t.CYP="CYP",t.CSJ="CSJ",t.CSK="CSK",t.ECS="ECS",t.ECV="ECV",t.GQE="GQE",t.EEK="EEK",t.XEU="XEU",t.GEK="GEK",t.DDM="DDM",t.DEM="DEM",t.GHC="GHC",t.GHP="GHP",t.GRD="GRD",t.GNE="GNE",t.GNS="GNS",t.GWE="GWE",t.GWP="GWP",t.ITL="ITL",t.ISJ="ISJ",t.IEP="IEP",t.ILP="ILP",t.ILR="ILR",t.LAJ="LAJ",t.LVL="LVL",t.LVR="LVR",t.LSM="LSM",t.ZAL="ZAL",t.LTL="LTL",t.LTT="LTT",t.LUC="LUC",t.LUF="LUF",t.LUL="LUL",t.MGF="MGF",t.MVQ="MVQ",t.MLF="MLF",t.MTL="MTL",t.MTP="MTP",t.MRO="MRO",t.MXP="MXP",t.MZE="MZE",t.MZM="MZM",t.NLG="NLG",t.NIC="NIC",t.PEH="PEH",t.PEI="PEI",t.PES="PES",t.PLZ="PLZ",t.PTE="PTE",t.ROK="ROK",t.ROL="ROL",t.STD="STD",t.CSD="CSD",t.SKK="SKK",t.SIT="SIT",t.RHD="RHD",t.ESA="ESA",t.ESB="ESB",t.SDD="SDD",t.SDP="SDP",t.SRG="SRG",t.CHC="CHC",t.TJR="TJR",t.TPE="TPE",t.TRL="TRL",t.TMM="TMM",t.UGS="UGS",t.UGW="UGW",t.UAK="UAK",t.SUR="SUR",t.USS="USS",t.UYN="UYN",t.UYP="UYP",t.VEB="VEB",t.VEF="VEF",t.VNC="VNC",t.YDD="YDD",t.YUD="YUD",t.YUM="YUM",t.YUN="YUN",t.ZRN="ZRN",t.ZRZ="ZRZ",t.ZMK="ZMK",t.ZWC="ZWC",t.ZWD="ZWD",t.ZWN="ZWN",t.ZWR="ZWR",t.XFO="XFO",t.XRE="XRE",t.XFU="XFU",t))(q||{}),Q=(P=>(P.AU="AU",P.ID="ID",P.IN="IN",P.JP="JP",P.SG="SG",P.KR="KR",P.DE="DE",P.CH="CH",P.GB="GB",P.BR="BR",P.BH="BH",P.ZA="ZA",P.AE="AE",P.CA="CA",P))(Q||{}),j=(l=>(l.ALCOHOL="ALCOHOL",l.APPAREL="APPAREL",l.AUTO="AUTO",l.BEAUTY="BEAUTY",l.EDU="EDU",l.ENTERTAIN="ENTERTAIN",l.EVENT_PLAN="EVENT_PLAN",l.FINANCE="FINANCE",l.GOVT="GOVT",l.GROCERY="GROCERY",l.HEALTH="HEALTH",l.HOTEL="HOTEL",l.NONPROFIT="NONPROFIT",l.ONLINE_GAMBLING="ONLINE_GAMBLING",l.OTC_DRUGS="OTC_DRUGS",l.OTHER="OTHER",l.PHYSICAL_GAMBLING="PHYSICAL_GAMBLING",l.PROF_SERVICES="PROF_SERVICES",l.RESTAURANT="RESTAURANT",l.RETAIL="RETAIL",l.TRAVEL="TRAVEL",l))(j||{});var o=(R=>(R.Approved="APPROVED",R.Active="ACTIVE",R.Inactive="INACTIVE",R.Disabled="DISABLED",R))(o||{}),$=(A=>(A.Blocked="BLOCKED",A.Limited="LIMITED",A.Available="AVAILABLE",A))($||{}),z=(R=>(R.Approved="APPROVED",R.Active="ACTIVE",R.Inactive="INACTIVE",R.Disabled="DISABLED",R))(z||{}),g=(R=>(R.Verified="verified",R.PendingSubmission="pending_submission",R.Unverified="unverified",R.Rejected="rejected",R))(g||{});var s=(N=>(N.Draft="DRAFT",N.Published="PUBLISHED",N.Throttled="THROTTLED",N.Blocked="BLOCKED",N.Deprecated="DEPRECATED",N))(s||{}),e=(S=>(S.SignUp="SIGN_UP",S.SignIn="SIGN_IN",S.AppointmentBooking="APPOINTMENT_BOOKING",S.LeadGeneration="LEAD_GENERATION",S.ContactUs="CONTACT_US",S.CustomerSupport="CUSTOMER_SUPPORT",S.Survey="SURVEY",S.Other="OTHER",S))(e||{});0&&(module.exports={AudioMediaTypesEnum,BusinessVerticalEnum,ButtonPositionEnum,ButtonTypesEnum,CategoryEnum,ComponentTypesEnum,ConversationTypesEnum,CurrencyCodesEnum,DataLocalizationRegionEnum,DocumentMediaTypesEnum,FlowCategoryEnum,FlowStatusEnum,HttpMethodsEnum,ImageMediaTypesEnum,InteractiveTypesEnum,LanguagesEnum,MessageTypesEnum,ParametersTypesEnum,ReferralSourceTypesEnum,RequestCodeMethodsEnum,StatusEnum,StickerMediaTypesEnum,SystemChangeTypesEnum,TemplateStatusEnum,VideoMediaTypesEnum,WabaAccountReviewStatus,WabaAccountStatus,WabaBusinessVerificationStatus,WabaConfigEnum,WabaHealthStatusCanSendMessage,WebhookTypesEnum});
1
+ "use strict";var O=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var e=Object.prototype.hasOwnProperty;var E=(U,p)=>{for(var l in p)O(U,l,{get:p[l],enumerable:!0})},y=(U,p,l,A)=>{if(p&&typeof p=="object"||typeof p=="function")for(let R of r(p))!e.call(U,R)&&R!==l&&O(U,R,{get:()=>p[R],enumerable:!(A=s(p,R))||A.enumerable});return U};var m=U=>y(O({},"__esModule",{value:!0}),U);var C={};E(C,{AudioMediaTypesEnum:()=>h,BusinessVerticalEnum:()=>q,ButtonPositionEnum:()=>f,ButtonTypesEnum:()=>M,CategoryEnum:()=>B,ComponentTypesEnum:()=>w,ConversationTypesEnum:()=>a,CurrencyCodesEnum:()=>Q,DataLocalizationRegionEnum:()=>j,DocumentMediaTypesEnum:()=>b,FlowCategoryEnum:()=>c,FlowStatusEnum:()=>d,HttpMethodsEnum:()=>F,ImageMediaTypesEnum:()=>Z,InteractiveTypesEnum:()=>x,LanguagesEnum:()=>k,MessageTypesEnum:()=>T,ParametersTypesEnum:()=>K,ReferralSourceTypesEnum:()=>v,RequestCodeMethodsEnum:()=>J,StatusEnum:()=>L,StickerMediaTypesEnum:()=>X,SystemChangeTypesEnum:()=>W,TemplateStatusEnum:()=>G,VideoMediaTypesEnum:()=>Y,WabaAccountReviewStatus:()=>$,WabaAccountStatus:()=>o,WabaBusinessVerificationStatus:()=>g,WabaConfigEnum:()=>H,WabaHealthStatusCanSendMessage:()=>z,WebhookTypesEnum:()=>V});module.exports=m(C);var B=(A=>(A.Authentication="AUTHENTICATION",A.Marketing="MARKETING",A.Utility="UTILITY",A))(B||{}),G=(A=>(A.Approved="APPROVED",A.Pending="PENDING",A.Rejected="REJECTED",A))(G||{}),F=(R=>(R.Get="GET",R.Post="POST",R.Put="PUT",R.Delete="DELETE",R))(F||{}),T=(D=>(D.Audio="audio",D.Contacts="contacts",D.Document="document",D.Image="image",D.Interactive="interactive",D.Location="location",D.Reaction="sticker",D.Sticker="sticker",D.Template="template",D.Text="text",D.Video="video",D))(T||{}),K=(I=>(I.Currency="currency",I.DateTime="date_time",I.Document="document",I.Image="image",I.Text="text",I.Video="video",I.Payload="payload",I))(K||{}),x=(S=>(S.Button="button",S.List="list",S.Product="product",S.ProductList="product_list",S.CtaUrl="cta_url",S.LocationRequest="location_request_message",S.AddressMessage="address_message",S.Flow="flow",S))(x||{}),M=(l=>(l.QuickReply="quick_reply",l.URL="url",l))(M||{}),f=(A=>(A[A.First=0]="First",A[A.Second=1]="Second",A[A.Third=2]="Third",A))(f||{}),w=(R=>(R.Header="HEADER",R.Body="BODY",R.Button="BUTTON",R.Footer="FOOTER",R))(w||{}),H=(P=>(P.BaseURL="WA_BASE_URL",P.AppId="M4D_APP_ID",P.Port="WA_PORT",P.AppSecret="M4D_APP_SECRET",P.PhoneNumberId="WA_PHONE_NUMBER_ID",P.BusinessAcctId="WA_BUSINESS_ACCOUNT_ID",P.APIVersion="CLOUD_API_VERSION",P.AccessToken="CLOUD_API_ACCESS_TOKEN",P.WebhookEndpoint="WEBHOOK_ENDPOINT",P.WebhookVerificationToken="WEBHOOK_VERIFICATION_TOKEN",P.ListenerPort="LISTENER_PORT",P.MaxRetriesAfterWait="MAX_RETRIES_AFTER_WAIT",P.RequestTimeout="REQUEST_TIMEOUT",P.Debug="DEBUG",P))(H||{}),a=(A=>(A.BusinessInitiated="business_initiated",A.CustomerInitiated="customer_initiated",A.ReferralConversion="referral_conversion",A))(a||{}),L=(A=>(A.Delivered="delivered",A.Read="read",A.Sent="sent",A))(L||{}),Y=(l=>(l.Mp4="video/mp4",l.Threegp="video/3gp",l))(Y||{}),X=(p=>(p.Webp="image/webp",p))(X||{}),Z=(l=>(l.Jpeg="image/jpeg",l.Png="image/png",l))(Z||{}),b=(S=>(S.Text="text/plain",S.Pdf="application/pdf",S.Ppt="application/vnd.ms-powerpoint",S.Word="application/msword",S.Excel="application/vnd.ms-excel",S.OpenDoc="application/vnd.openxmlformats-officedocument.wordprocessingml.document",S.OpenPres="application/vnd.openxmlformats-officedocument.presentationml.presentation",S.OpenSheet="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",S))(b||{}),h=(N=>(N.Aac="audio/aac",N.Mp4="audio/mp4",N.Mpeg="audio/mpeg",N.Amr="audio/amr",N.Ogg="audio/ogg",N))(h||{}),V=(D=>(D.Audio="audio",D.Button="button",D.Document="document",D.Text="text",D.Image="image",D.Interactive="interactive",D.Order="order",D.Sticker="sticker",D.System="system",D.Unknown="unknown",D.Video="video",D))(V||{}),W=(l=>(l.CustomerChangedNumber="customer_changed_number",l.CustomerIdentityChanged="customer_identity_changed",l))(W||{}),v=(l=>(l.Ad="ad",l.Post="post",l))(v||{}),J=(l=>(l.Sms="SMS",l.Voice="VOICE",l))(J||{}),k=(i=>(i.Afrikaans="af",i.Albanian="sq",i.Arabic="ar",i.Azerbaijani="az",i.Bengali="bn",i.Bulgarian="bg",i.Catalan="ca",i.Chinese_CHN="zh_CN",i.Chinese_HKG="zh_HK",i.Chinese_TAI="zh_TW",i.Croatian="hr",i.Czech="cs",i.Danish="da",i.Dutch="nl",i.English="en",i.English_UK="en_GB",i.English_US="en_US",i.Estonian="et",i.Filipino="fil",i.Finnish="fi",i.French="fr",i.Georgian="ka",i.German="de",i.Greek="el",i.Gujarati="gu",i.Hausa="ha",i.Hebrew="he",i.Hindi="hi",i.Hungarian="hu",i.Indonesian="id",i.Irish="ga",i.Italian="it",i.Japanese="ja",i.Kannada="kn",i.Kazakh="kk",i.Kinyarwanda="rw_RW",i.Korean="ko",i.Kyrgyz_Kyrgyzstan="ky_KG",i.Lao="lo",i.Latvian="lv",i.Lithuanian="lt",i.Macedonian="mk",i.Malay="ms",i.Malayalam="ml",i.Marathi="mr",i.Norwegian="nb",i.Persian="fa",i.Polish="pl",i.Portuguese_BR="pt_BR",i.Portuguese_POR="pt_PT",i.Punjabi="pa",i.Romanian="ro",i.Russian="ru",i.Serbian="sr",i.Slovak="sk",i.Slovenian="sl",i.Spanish="es",i.Spanish_ARG="es_AR",i.Spanish_SPA="es_ES",i.Spanish_MEX="es_MX",i.Swahili="sw",i.Swedish="sv",i.Tamil="ta",i.Telugu="te",i.Thai="th",i.Turkish="tr",i.Ukrainian="uk",i.Urdu="ur",i.Uzbek="uz",i.Vietnamese="vi",i.Zulu="zu",i))(k||{}),Q=(t=>(t.AFN="AFN",t.EUR="EUR",t.ALL="ALL",t.DZD="DZD",t.USD="USD",t.AOA="AOA",t.XCD="XCD",t.ARS="ARS",t.AMD="AMD",t.AWG="AWG",t.AUD="AUD",t.AZN="AZN",t.BSD="BSD",t.BHD="BHD",t.BDT="BDT",t.BBD="BBD",t.BYN="BYN",t.BZD="BZD",t.XOF="XOF",t.BMD="BMD",t.INR="INR",t.BTN="BTN",t.BOB="BOB",t.BOV="BOV",t.BAM="BAM",t.BWP="BWP",t.NOK="NOK",t.BRL="BRL",t.BND="BND",t.BGN="BGN",t.BIF="BIF",t.CVE="CVE",t.KHR="KHR",t.XAF="XAF",t.CAD="CAD",t.KYD="KYD",t.CLP="CLP",t.CLF="CLF",t.CNY="CNY",t.COP="COP",t.COU="COU",t.KMF="KMF",t.CDF="CDF",t.NZD="NZD",t.CRC="CRC",t.HRK="HRK",t.CUP="CUP",t.CUC="CUC",t.ANG="ANG",t.CZK="CZK",t.DKK="DKK",t.DJF="DJF",t.DOP="DOP",t.EGP="EGP",t.SVC="SVC",t.ERN="ERN",t.SZL="SZL",t.ETB="ETB",t.FKP="FKP",t.FJD="FJD",t.XPF="XPF",t.GMD="GMD",t.GEL="GEL",t.GHS="GHS",t.GIP="GIP",t.GTQ="GTQ",t.GBP="GBP",t.GNF="GNF",t.GYD="GYD",t.HTG="HTG",t.HNL="HNL",t.HKD="HKD",t.HUF="HUF",t.ISK="ISK",t.IDR="IDR",t.XDR="XDR",t.IRR="IRR",t.IQD="IQD",t.ILS="ILS",t.JMD="JMD",t.JPY="JPY",t.JOD="JOD",t.KZT="KZT",t.KES="KES",t.KPW="KPW",t.KRW="KRW",t.KWD="KWD",t.KGS="KGS",t.LAK="LAK",t.LBP="LBP",t.LSL="LSL",t.ZAR="ZAR",t.LRD="LRD",t.LYD="LYD",t.CHF="CHF",t.MOP="MOP",t.MKD="MKD",t.MGA="MGA",t.MWK="MWK",t.MYR="MYR",t.MVR="MVR",t.MRU="MRU",t.MUR="MUR",t.XUA="XUA",t.MXN="MXN",t.MXV="MXV",t.MDL="MDL",t.MNT="MNT",t.MAD="MAD",t.MZN="MZN",t.MMK="MMK",t.NAD="NAD",t.NPR="NPR",t.NIO="NIO",t.NGN="NGN",t.OMR="OMR",t.PKR="PKR",t.PAB="PAB",t.PGK="PGK",t.PYG="PYG",t.PEN="PEN",t.PHP="PHP",t.PLN="PLN",t.QAR="QAR",t.RON="RON",t.RUB="RUB",t.RWF="RWF",t.SHP="SHP",t.WST="WST",t.STN="STN",t.SAR="SAR",t.RSD="RSD",t.SCR="SCR",t.SLL="SLL",t.SGD="SGD",t.XSU="XSU",t.SBD="SBD",t.SOS="SOS",t.SSP="SSP",t.LKR="LKR",t.SDG="SDG",t.SRD="SRD",t.SEK="SEK",t.CHE="CHE",t.CHW="CHW",t.SYP="SYP",t.TWD="TWD",t.TJS="TJS",t.TZS="TZS",t.THB="THB",t.TOP="TOP",t.TTD="TTD",t.TND="TND",t.TRY="TRY",t.TMT="TMT",t.UGX="UGX",t.UAH="UAH",t.AED="AED",t.USN="USN",t.UYU="UYU",t.UYI="UYI",t.UYW="UYW",t.UZS="UZS",t.VUV="VUV",t.VES="VES",t.VND="VND",t.YER="YER",t.ZMW="ZMW",t.ZWL="ZWL",t.XBA="XBA",t.XBB="XBB",t.XBC="XBC",t.XBD="XBD",t.XTS="XTS",t.XXX="XXX",t.XAU="XAU",t.XPD="XPD",t.XPT="XPT",t.XAG="XAG",t.AFA="AFA",t.FIM="FIM",t.ALK="ALK",t.ADP="ADP",t.ESP="ESP",t.FRF="FRF",t.AOK="AOK",t.AON="AON",t.AOR="AOR",t.ARA="ARA",t.ARP="ARP",t.ARY="ARY",t.RUR="RUR",t.ATS="ATS",t.AYM="AYM",t.AZM="AZM",t.BYB="BYB",t.BYR="BYR",t.BEC="BEC",t.BEF="BEF",t.BEL="BEL",t.BOP="BOP",t.BAD="BAD",t.BRB="BRB",t.BRC="BRC",t.BRE="BRE",t.BRN="BRN",t.BRR="BRR",t.BGJ="BGJ",t.BGK="BGK",t.BGL="BGL",t.BUK="BUK",t.HRD="HRD",t.CYP="CYP",t.CSJ="CSJ",t.CSK="CSK",t.ECS="ECS",t.ECV="ECV",t.GQE="GQE",t.EEK="EEK",t.XEU="XEU",t.GEK="GEK",t.DDM="DDM",t.DEM="DEM",t.GHC="GHC",t.GHP="GHP",t.GRD="GRD",t.GNE="GNE",t.GNS="GNS",t.GWE="GWE",t.GWP="GWP",t.ITL="ITL",t.ISJ="ISJ",t.IEP="IEP",t.ILP="ILP",t.ILR="ILR",t.LAJ="LAJ",t.LVL="LVL",t.LVR="LVR",t.LSM="LSM",t.ZAL="ZAL",t.LTL="LTL",t.LTT="LTT",t.LUC="LUC",t.LUF="LUF",t.LUL="LUL",t.MGF="MGF",t.MVQ="MVQ",t.MLF="MLF",t.MTL="MTL",t.MTP="MTP",t.MRO="MRO",t.MXP="MXP",t.MZE="MZE",t.MZM="MZM",t.NLG="NLG",t.NIC="NIC",t.PEH="PEH",t.PEI="PEI",t.PES="PES",t.PLZ="PLZ",t.PTE="PTE",t.ROK="ROK",t.ROL="ROL",t.STD="STD",t.CSD="CSD",t.SKK="SKK",t.SIT="SIT",t.RHD="RHD",t.ESA="ESA",t.ESB="ESB",t.SDD="SDD",t.SDP="SDP",t.SRG="SRG",t.CHC="CHC",t.TJR="TJR",t.TPE="TPE",t.TRL="TRL",t.TMM="TMM",t.UGS="UGS",t.UGW="UGW",t.UAK="UAK",t.SUR="SUR",t.USS="USS",t.UYN="UYN",t.UYP="UYP",t.VEB="VEB",t.VEF="VEF",t.VNC="VNC",t.YDD="YDD",t.YUD="YUD",t.YUM="YUM",t.YUN="YUN",t.ZRN="ZRN",t.ZRZ="ZRZ",t.ZMK="ZMK",t.ZWC="ZWC",t.ZWD="ZWD",t.ZWN="ZWN",t.ZWR="ZWR",t.XFO="XFO",t.XRE="XRE",t.XFU="XFU",t))(Q||{}),j=(P=>(P.AU="AU",P.ID="ID",P.IN="IN",P.JP="JP",P.SG="SG",P.KR="KR",P.DE="DE",P.CH="CH",P.GB="GB",P.BR="BR",P.BH="BH",P.ZA="ZA",P.AE="AE",P.CA="CA",P))(j||{}),q=(_=>(_.ALCOHOL="ALCOHOL",_.APPAREL="APPAREL",_.AUTO="AUTO",_.BEAUTY="BEAUTY",_.EDU="EDU",_.ENTERTAIN="ENTERTAIN",_.EVENT_PLAN="EVENT_PLAN",_.FINANCE="FINANCE",_.GOVT="GOVT",_.GROCERY="GROCERY",_.HEALTH="HEALTH",_.HOTEL="HOTEL",_.NONPROFIT="NONPROFIT",_.ONLINE_GAMBLING="ONLINE_GAMBLING",_.OTC_DRUGS="OTC_DRUGS",_.OTHER="OTHER",_.PHYSICAL_GAMBLING="PHYSICAL_GAMBLING",_.PROF_SERVICES="PROF_SERVICES",_.RESTAURANT="RESTAURANT",_.RETAIL="RETAIL",_.TRAVEL="TRAVEL",_))(q||{});var $=(R=>(R.Approved="APPROVED",R.Active="ACTIVE",R.Inactive="INACTIVE",R.Disabled="DISABLED",R))($||{}),z=(A=>(A.Blocked="BLOCKED",A.Limited="LIMITED",A.Available="AVAILABLE",A))(z||{}),o=(R=>(R.Approved="APPROVED",R.Active="ACTIVE",R.Inactive="INACTIVE",R.Disabled="DISABLED",R))(o||{}),g=(R=>(R.Verified="verified",R.PendingSubmission="pending_submission",R.Unverified="unverified",R.Rejected="rejected",R))(g||{});var d=(N=>(N.Draft="DRAFT",N.Published="PUBLISHED",N.Throttled="THROTTLED",N.Blocked="BLOCKED",N.Deprecated="DEPRECATED",N))(d||{}),c=(S=>(S.SignUp="SIGN_UP",S.SignIn="SIGN_IN",S.AppointmentBooking="APPOINTMENT_BOOKING",S.LeadGeneration="LEAD_GENERATION",S.ContactUs="CONTACT_US",S.CustomerSupport="CUSTOMER_SUPPORT",S.Survey="SURVEY",S.Other="OTHER",S))(c||{});0&&(module.exports={AudioMediaTypesEnum,BusinessVerticalEnum,ButtonPositionEnum,ButtonTypesEnum,CategoryEnum,ComponentTypesEnum,ConversationTypesEnum,CurrencyCodesEnum,DataLocalizationRegionEnum,DocumentMediaTypesEnum,FlowCategoryEnum,FlowStatusEnum,HttpMethodsEnum,ImageMediaTypesEnum,InteractiveTypesEnum,LanguagesEnum,MessageTypesEnum,ParametersTypesEnum,ReferralSourceTypesEnum,RequestCodeMethodsEnum,StatusEnum,StickerMediaTypesEnum,SystemChangeTypesEnum,TemplateStatusEnum,VideoMediaTypesEnum,WabaAccountReviewStatus,WabaAccountStatus,WabaBusinessVerificationStatus,WabaConfigEnum,WabaHealthStatusCanSendMessage,WebhookTypesEnum});
2
2
  //# sourceMappingURL=index.js.map