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.
- package/dist/base.d.ts +19 -0
- package/dist/base.d.ts.map +1 -0
- package/dist/chunk-PECeCxCb.js +15 -0
- package/dist/config.d.ts +80 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/{base-CfDkvT1x.d.ts → enums.d.ts} +3 -142
- package/dist/enums.d.ts.map +1 -0
- package/dist/enums.js +681 -0
- package/dist/enums.js.map +1 -0
- package/dist/{index-DQkgkiB6.d.ts → httpsClient.d.ts} +3 -12
- package/dist/httpsClient.d.ts.map +1 -0
- package/dist/index.d.ts +4386 -21
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3436 -1
- package/dist/index.js.map +1 -1
- package/dist/logger.d.ts +11 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/request.d.ts +52 -0
- package/dist/request.d.ts.map +1 -0
- package/package.json +13 -22
- package/dist/WebhookProcessor-BUZFeZD_.js +0 -3
- package/dist/WebhookProcessor-BUZFeZD_.js.map +0 -1
- package/dist/WebhookProcessor-Dq2Pa2cY.d.ts +0 -718
- package/dist/WebhookProcessor-Dq2Pa2cY.d.ts.map +0 -1
- package/dist/api/encryption/index.d.ts +0 -3
- package/dist/api/encryption/index.js +0 -1
- package/dist/api/flow/index.d.ts +0 -5
- package/dist/api/flow/index.js +0 -1
- package/dist/api/index.d.ts +0 -17
- package/dist/api/index.js +0 -1
- package/dist/api/media/index.d.ts +0 -3
- package/dist/api/media/index.js +0 -1
- package/dist/api/messages/builders/index.d.ts +0 -539
- package/dist/api/messages/builders/index.d.ts.map +0 -1
- package/dist/api/messages/builders/index.js +0 -2
- package/dist/api/messages/builders/index.js.map +0 -1
- package/dist/api/messages/index.d.ts +0 -4
- package/dist/api/messages/index.js +0 -1
- package/dist/api/phone/index.d.ts +0 -3
- package/dist/api/phone/index.js +0 -1
- package/dist/api/profile/index.d.ts +0 -3
- package/dist/api/profile/index.js +0 -1
- package/dist/api/qrCode/index.d.ts +0 -3
- package/dist/api/qrCode/index.js +0 -1
- package/dist/api/registration/index.d.ts +0 -3
- package/dist/api/registration/index.js +0 -1
- package/dist/api/template/index.d.ts +0 -3
- package/dist/api/template/index.js +0 -1
- package/dist/api/twoStepVerification/index.d.ts +0 -3
- package/dist/api/twoStepVerification/index.js +0 -1
- package/dist/api/waba/index.d.ts +0 -3
- package/dist/api/waba/index.js +0 -1
- package/dist/api-8hRAOyaL.js +0 -1
- package/dist/base-CfDkvT1x.d.ts.map +0 -1
- package/dist/base-D-cXu_lA.js +0 -2
- package/dist/base-D-cXu_lA.js.map +0 -1
- package/dist/buildFieldsQueryString-Cr-jz3p0.js +0 -2
- package/dist/buildFieldsQueryString-Cr-jz3p0.js.map +0 -1
- package/dist/chunk-CTAAG5j7.js +0 -1
- package/dist/common-C6FXBDm7.js +0 -2
- package/dist/common-C6FXBDm7.js.map +0 -1
- package/dist/common-CVbsmD26.d.ts +0 -426
- package/dist/common-CVbsmD26.d.ts.map +0 -1
- package/dist/common-CvPVD1o6.d.ts +0 -406
- package/dist/common-CvPVD1o6.d.ts.map +0 -1
- package/dist/core/webhook/frameworks/express.d.ts +0 -20
- package/dist/core/webhook/frameworks/express.js +0 -1
- package/dist/core/webhook/frameworks/nextjs-app.d.ts +0 -45
- package/dist/core/webhook/frameworks/nextjs-app.d.ts.map +0 -1
- package/dist/core/webhook/frameworks/nextjs-app.js +0 -2
- package/dist/core/webhook/frameworks/nextjs-app.js.map +0 -1
- package/dist/core/webhook/frameworks/nextjs.d.ts +0 -20
- package/dist/core/webhook/frameworks/nextjs.js +0 -1
- package/dist/core/webhook/index.d.ts +0 -20
- package/dist/core/webhook/index.js +0 -1
- package/dist/core/whatsapp/index.d.ts +0 -18
- package/dist/core/whatsapp/index.js +0 -1
- package/dist/encryption-Cwc0xcVL.js +0 -2
- package/dist/encryption-Cwc0xcVL.js.map +0 -1
- package/dist/enums-CSUpFXb8.js +0 -2
- package/dist/enums-CSUpFXb8.js.map +0 -1
- package/dist/express-B6fQdflY.d.ts +0 -78
- package/dist/express-B6fQdflY.d.ts.map +0 -1
- package/dist/express-CrfNLYMM.js +0 -2
- package/dist/express-CrfNLYMM.js.map +0 -1
- package/dist/flow-CVes0Qus.js +0 -2
- package/dist/flow-CVes0Qus.js.map +0 -1
- package/dist/flowTypeGuards-Gn3-slCW.js +0 -2
- package/dist/flowTypeGuards-Gn3-slCW.js.map +0 -1
- package/dist/handler-BGqjZ0xg.js +0 -2
- package/dist/handler-BGqjZ0xg.js.map +0 -1
- package/dist/index-3KglHVAg.d.ts +0 -354
- package/dist/index-3KglHVAg.d.ts.map +0 -1
- package/dist/index-BNeg6hHx.d.ts +0 -99
- package/dist/index-BNeg6hHx.d.ts.map +0 -1
- package/dist/index-BiTq23oi.d.ts +0 -34
- package/dist/index-BiTq23oi.d.ts.map +0 -1
- package/dist/index-BmfnREgM.d.ts +0 -47
- package/dist/index-BmfnREgM.d.ts.map +0 -1
- package/dist/index-CaGffSja.d.ts +0 -24
- package/dist/index-CaGffSja.d.ts.map +0 -1
- package/dist/index-CeTmbIXi.d.ts +0 -180
- package/dist/index-CeTmbIXi.d.ts.map +0 -1
- package/dist/index-CoyByMuM.d.ts +0 -137
- package/dist/index-CoyByMuM.d.ts.map +0 -1
- package/dist/index-CwujtcvH.d.ts +0 -370
- package/dist/index-CwujtcvH.d.ts.map +0 -1
- package/dist/index-DQ7z58xp.d.ts +0 -104
- package/dist/index-DQ7z58xp.d.ts.map +0 -1
- package/dist/index-DQkgkiB6.d.ts.map +0 -1
- package/dist/index-LKrIp3Oo.d.ts +0 -1
- package/dist/index-_-06JPan.d.ts +0 -143
- package/dist/index-_-06JPan.d.ts.map +0 -1
- package/dist/index-a_YS40Iv.d.ts +0 -91
- package/dist/index-a_YS40Iv.d.ts.map +0 -1
- package/dist/index-d7TLqtYh.d.ts +0 -171
- package/dist/index-d7TLqtYh.d.ts.map +0 -1
- package/dist/isMetaError-B3AglYeY.d.ts +0 -66
- package/dist/isMetaError-B3AglYeY.d.ts.map +0 -1
- package/dist/media-Dw5OGzDD.js +0 -2
- package/dist/media-Dw5OGzDD.js.map +0 -1
- package/dist/messages-h5-NW8QO.js +0 -2
- package/dist/messages-h5-NW8QO.js.map +0 -1
- package/dist/nextjs-DxRCL4t3.js +0 -2
- package/dist/nextjs-DxRCL4t3.js.map +0 -1
- package/dist/objectToQueryString-CAHI0qTs.js +0 -2
- package/dist/objectToQueryString-CAHI0qTs.js.map +0 -1
- package/dist/phone-CZyWLyWB.js +0 -2
- package/dist/phone-CZyWLyWB.js.map +0 -1
- package/dist/profile-Bb7GDP0n.js +0 -2
- package/dist/profile-Bb7GDP0n.js.map +0 -1
- package/dist/qrCode-CeZEtX9J.js +0 -2
- package/dist/qrCode-CeZEtX9J.js.map +0 -1
- package/dist/registration-BkjhC3xw.js +0 -2
- package/dist/registration-BkjhC3xw.js.map +0 -1
- package/dist/template-Bgy-BCXJ.js +0 -2
- package/dist/template-Bgy-BCXJ.js.map +0 -1
- package/dist/twoStepVerification-DYlYF_P5.js +0 -2
- package/dist/twoStepVerification-DYlYF_P5.js.map +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.js +0 -1
- package/dist/utils/index.d.ts +0 -43
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/version-BUuqrHc6.js +0 -3
- package/dist/version-BUuqrHc6.js.map +0 -1
- package/dist/waba-SF2W3z2U.js +0 -2
- package/dist/waba-SF2W3z2U.js.map +0 -1
- package/dist/webhook-D4DQ01Xq.js +0 -2
- package/dist/webhook-D4DQ01Xq.js.map +0 -1
- package/dist/whatsapp-B85mxH5f.js +0 -10
- package/dist/whatsapp-B85mxH5f.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enums-CSUpFXb8.js","names":[],"sources":["../src/types/enums.ts"],"sourcesContent":["export enum CategoryEnum {\n Authentication = 'AUTHENTICATION',\n Marketing = 'MARKETING',\n Utility = 'UTILITY',\n}\n\nexport enum TemplateStatusEnum {\n Approved = 'APPROVED',\n Pending = 'PENDING',\n Rejected = 'REJECTED',\n}\n\nexport enum HttpMethodsEnum {\n Get = 'GET',\n Post = 'POST',\n Put = 'PUT',\n Delete = 'DELETE',\n}\n\nexport enum MessageTypesEnum {\n Audio = 'audio',\n Contacts = 'contacts',\n Document = 'document',\n Image = 'image',\n Interactive = 'interactive',\n Location = 'location',\n Reaction = 'reaction',\n Sticker = 'sticker',\n Template = 'template',\n Text = 'text',\n Video = 'video',\n Button = 'button',\n Order = 'order',\n System = 'system',\n Unknown = 'unknown',\n Statuses = 'statuses',\n '*' = '*',\n}\n\nexport enum ParametersTypesEnum {\n Action = 'ACTION',\n CouponCode = 'COUPON_CODE',\n Currency = 'CURRENCY',\n DateTime = 'DATE_TIME',\n Document = 'DOCUMENT',\n ExpirationTimeMs = 'EXPIRATION_TIME_MS',\n Image = 'IMAGE',\n LimitedTimeOffer = 'LIMITED_TIME_OFFER',\n Location = 'LOCATION',\n OrderStatus = 'ORDER_STATUS',\n Payload = 'PAYLOAD',\n Product = 'PRODUCT',\n Text = 'TEXT',\n TtlMinutes = 'TTL_MINUTES',\n Video = 'VIDEO',\n WebviewInteraction = 'WEBVIEW_INTERACTION',\n WebviewPresentation = 'WEBVIEW_PRESENTATION',\n}\n\nexport enum InteractiveTypesEnum {\n Button = 'button',\n List = 'list',\n Product = 'product',\n ProductList = 'product_list',\n CtaUrl = 'cta_url',\n LocationRequest = 'location_request_message',\n AddressMessage = 'address_message',\n Flow = 'flow',\n}\n\nexport enum ButtonPositionEnum {\n First = 1,\n Second = 2,\n Third = 3,\n Fourth = 4,\n Fifth = 5,\n}\n\nexport enum SubTypeEnum {\n Catalog = 'CATALOG',\n CopyCode = 'COPY_CODE',\n Flow = 'FLOW',\n Mpm = 'MPM',\n OrderDetails = 'ORDER_DETAILS',\n QuickReply = 'QUICK_REPLY',\n Reminder = 'REMINDER',\n Url = 'URL',\n VoiceCall = 'VOICE_CALL',\n}\n\nexport enum ComponentTypesEnum {\n Header = 'HEADER',\n Body = 'BODY',\n Button = 'BUTTON',\n Footer = 'FOOTER',\n}\n\nexport enum WabaConfigEnum {\n AppId = 'M4D_APP_ID',\n Port = 'WA_PORT',\n AppSecret = 'M4D_APP_SECRET',\n PhoneNumberId = 'WA_PHONE_NUMBER_ID',\n BusinessAcctId = 'WA_BUSINESS_ACCOUNT_ID',\n APIVersion = 'CLOUD_API_VERSION',\n AccessToken = 'CLOUD_API_ACCESS_TOKEN',\n WebhookEndpoint = 'WEBHOOK_ENDPOINT',\n WebhookVerificationToken = 'WEBHOOK_VERIFICATION_TOKEN',\n ListenerPort = 'LISTENER_PORT',\n MaxRetriesAfterWait = 'MAX_RETRIES_AFTER_WAIT',\n RequestTimeout = 'REQUEST_TIMEOUT',\n Debug = 'DEBUG',\n PrivatePem = 'FLOW_API_PRIVATE_PEM',\n Passphrase = 'FLOW_API_PASSPHRASE',\n}\n\nexport enum ConversationTypesEnum {\n BusinessInitiated = 'business_initiated',\n CustomerInitiated = 'customer_initiated',\n ReferralConversion = 'referral_conversion',\n}\n\nexport enum StatusEnum {\n Delivered = 'delivered',\n Read = 'read',\n Sent = 'sent',\n}\n\nexport enum VideoMediaTypesEnum {\n Mp4 = 'video/mp4',\n Threegp = 'video/3gp',\n}\n\nexport enum StickerMediaTypesEnum {\n Webp = 'image/webp',\n}\n\nexport enum ImageMediaTypesEnum {\n Jpeg = 'image/jpeg',\n Png = 'image/png',\n}\n\nexport enum DocumentMediaTypesEnum {\n Text = 'text/plain',\n Pdf = 'application/pdf',\n Ppt = 'application/vnd.ms-powerpoint',\n Word = 'application/msword',\n Excel = 'application/vnd.ms-excel',\n OpenDoc = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n OpenPres = 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n OpenSheet = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n}\n\nexport enum AudioMediaTypesEnum {\n Aac = 'audio/aac',\n Mp4 = 'audio/mp4',\n Mpeg = 'audio/mpeg',\n Amr = 'audio/amr',\n Ogg = 'audio/ogg',\n}\n\nexport enum WebhookTypesEnum {\n Audio = 'audio',\n Button = 'button',\n Document = 'document',\n Text = 'text',\n Image = 'image',\n Interactive = 'interactive',\n Order = 'order',\n Sticker = 'sticker',\n System = 'system',\n Unknown = 'unknown',\n Video = 'video',\n}\n\nexport enum SystemChangeTypesEnum {\n CustomerChangedNumber = 'customer_changed_number',\n CustomerIdentityChanged = 'customer_identity_changed',\n}\n\nexport enum ReferralSourceTypesEnum {\n Ad = 'ad',\n Post = 'post',\n}\n\nexport enum RequestCodeMethodsEnum {\n Sms = 'SMS',\n Voice = 'VOICE',\n}\n\nexport enum LanguagesEnum {\n Afrikaans = 'af',\n Albanian = 'sq',\n Arabic = 'ar',\n Azerbaijani = 'az',\n Bengali = 'bn',\n Bulgarian = 'bg',\n Catalan = 'ca',\n Chinese_CHN = 'zh_CN',\n Chinese_HKG = 'zh_HK',\n Chinese_TAI = 'zh_TW',\n Croatian = 'hr',\n Czech = 'cs',\n Danish = 'da',\n Dutch = 'nl',\n English = 'en',\n English_UK = 'en_GB',\n English_US = 'en_US',\n Estonian = 'et',\n Filipino = 'fil',\n Finnish = 'fi',\n French = 'fr',\n Georgian = 'ka',\n German = 'de',\n Greek = 'el',\n Gujarati = 'gu',\n Hausa = 'ha',\n Hebrew = 'he',\n Hindi = 'hi',\n Hungarian = 'hu',\n Indonesian = 'id',\n Irish = 'ga',\n Italian = 'it',\n Japanese = 'ja',\n Kannada = 'kn',\n Kazakh = 'kk',\n Kinyarwanda = 'rw_RW',\n Korean = 'ko',\n Kyrgyz_Kyrgyzstan = 'ky_KG',\n Lao = 'lo',\n Latvian = 'lv',\n Lithuanian = 'lt',\n Macedonian = 'mk',\n Malay = 'ms',\n Malayalam = 'ml',\n Marathi = 'mr',\n Norwegian = 'nb',\n Persian = 'fa',\n Polish = 'pl',\n Portuguese_BR = 'pt_BR',\n Portuguese_POR = 'pt_PT',\n Punjabi = 'pa',\n Romanian = 'ro',\n Russian = 'ru',\n Serbian = 'sr',\n Slovak = 'sk',\n Slovenian = 'sl',\n Spanish = 'es',\n Spanish_ARG = 'es_AR',\n Spanish_SPA = 'es_ES',\n Spanish_MEX = 'es_MX',\n Swahili = 'sw',\n Swedish = 'sv',\n Tamil = 'ta',\n Telugu = 'te',\n Thai = 'th',\n Turkish = 'tr',\n Ukrainian = 'uk',\n Urdu = 'ur',\n Uzbek = 'uz',\n Vietnamese = 'vi',\n Zulu = 'zu',\n}\n\nexport enum CurrencyCodesEnum {\n AFN = 'AFN',\n EUR = 'EUR',\n ALL = 'ALL',\n DZD = 'DZD',\n USD = 'USD',\n AOA = 'AOA',\n XCD = 'XCD',\n ARS = 'ARS',\n AMD = 'AMD',\n AWG = 'AWG',\n AUD = 'AUD',\n AZN = 'AZN',\n BSD = 'BSD',\n BHD = 'BHD',\n BDT = 'BDT',\n BBD = 'BBD',\n BYN = 'BYN',\n BZD = 'BZD',\n XOF = 'XOF',\n BMD = 'BMD',\n INR = 'INR',\n BTN = 'BTN',\n BOB = 'BOB',\n BOV = 'BOV',\n BAM = 'BAM',\n BWP = 'BWP',\n NOK = 'NOK',\n BRL = 'BRL',\n BND = 'BND',\n BGN = 'BGN',\n BIF = 'BIF',\n CVE = 'CVE',\n KHR = 'KHR',\n XAF = 'XAF',\n CAD = 'CAD',\n KYD = 'KYD',\n CLP = 'CLP',\n CLF = 'CLF',\n CNY = 'CNY',\n COP = 'COP',\n COU = 'COU',\n KMF = 'KMF',\n CDF = 'CDF',\n NZD = 'NZD',\n CRC = 'CRC',\n HRK = 'HRK',\n CUP = 'CUP',\n CUC = 'CUC',\n ANG = 'ANG',\n CZK = 'CZK',\n DKK = 'DKK',\n DJF = 'DJF',\n DOP = 'DOP',\n EGP = 'EGP',\n SVC = 'SVC',\n ERN = 'ERN',\n SZL = 'SZL',\n ETB = 'ETB',\n FKP = 'FKP',\n FJD = 'FJD',\n XPF = 'XPF',\n GMD = 'GMD',\n GEL = 'GEL',\n GHS = 'GHS',\n GIP = 'GIP',\n GTQ = 'GTQ',\n GBP = 'GBP',\n GNF = 'GNF',\n GYD = 'GYD',\n HTG = 'HTG',\n HNL = 'HNL',\n HKD = 'HKD',\n HUF = 'HUF',\n ISK = 'ISK',\n IDR = 'IDR',\n XDR = 'XDR',\n IRR = 'IRR',\n IQD = 'IQD',\n ILS = 'ILS',\n JMD = 'JMD',\n JPY = 'JPY',\n JOD = 'JOD',\n KZT = 'KZT',\n KES = 'KES',\n KPW = 'KPW',\n KRW = 'KRW',\n KWD = 'KWD',\n KGS = 'KGS',\n LAK = 'LAK',\n LBP = 'LBP',\n LSL = 'LSL',\n ZAR = 'ZAR',\n LRD = 'LRD',\n LYD = 'LYD',\n CHF = 'CHF',\n MOP = 'MOP',\n MKD = 'MKD',\n MGA = 'MGA',\n MWK = 'MWK',\n MYR = 'MYR',\n MVR = 'MVR',\n MRU = 'MRU',\n MUR = 'MUR',\n XUA = 'XUA',\n MXN = 'MXN',\n MXV = 'MXV',\n MDL = 'MDL',\n MNT = 'MNT',\n MAD = 'MAD',\n MZN = 'MZN',\n MMK = 'MMK',\n NAD = 'NAD',\n NPR = 'NPR',\n NIO = 'NIO',\n NGN = 'NGN',\n OMR = 'OMR',\n PKR = 'PKR',\n PAB = 'PAB',\n PGK = 'PGK',\n PYG = 'PYG',\n PEN = 'PEN',\n PHP = 'PHP',\n PLN = 'PLN',\n QAR = 'QAR',\n RON = 'RON',\n RUB = 'RUB',\n RWF = 'RWF',\n SHP = 'SHP',\n WST = 'WST',\n STN = 'STN',\n SAR = 'SAR',\n RSD = 'RSD',\n SCR = 'SCR',\n SLL = 'SLL',\n SGD = 'SGD',\n XSU = 'XSU',\n SBD = 'SBD',\n SOS = 'SOS',\n SSP = 'SSP',\n LKR = 'LKR',\n SDG = 'SDG',\n SRD = 'SRD',\n SEK = 'SEK',\n CHE = 'CHE',\n CHW = 'CHW',\n SYP = 'SYP',\n TWD = 'TWD',\n TJS = 'TJS',\n TZS = 'TZS',\n THB = 'THB',\n TOP = 'TOP',\n TTD = 'TTD',\n TND = 'TND',\n TRY = 'TRY',\n TMT = 'TMT',\n UGX = 'UGX',\n UAH = 'UAH',\n AED = 'AED',\n USN = 'USN',\n UYU = 'UYU',\n UYI = 'UYI',\n UYW = 'UYW',\n UZS = 'UZS',\n VUV = 'VUV',\n VES = 'VES',\n VND = 'VND',\n YER = 'YER',\n ZMW = 'ZMW',\n ZWL = 'ZWL',\n XBA = 'XBA',\n XBB = 'XBB',\n XBC = 'XBC',\n XBD = 'XBD',\n XTS = 'XTS',\n XXX = 'XXX',\n XAU = 'XAU',\n XPD = 'XPD',\n XPT = 'XPT',\n XAG = 'XAG',\n AFA = 'AFA',\n FIM = 'FIM',\n ALK = 'ALK',\n ADP = 'ADP',\n ESP = 'ESP',\n FRF = 'FRF',\n AOK = 'AOK',\n AON = 'AON',\n AOR = 'AOR',\n ARA = 'ARA',\n ARP = 'ARP',\n ARY = 'ARY',\n RUR = 'RUR',\n ATS = 'ATS',\n AYM = 'AYM',\n AZM = 'AZM',\n BYB = 'BYB',\n BYR = 'BYR',\n BEC = 'BEC',\n BEF = 'BEF',\n BEL = 'BEL',\n BOP = 'BOP',\n BAD = 'BAD',\n BRB = 'BRB',\n BRC = 'BRC',\n BRE = 'BRE',\n BRN = 'BRN',\n BRR = 'BRR',\n BGJ = 'BGJ',\n BGK = 'BGK',\n BGL = 'BGL',\n BUK = 'BUK',\n HRD = 'HRD',\n CYP = 'CYP',\n CSJ = 'CSJ',\n CSK = 'CSK',\n ECS = 'ECS',\n ECV = 'ECV',\n GQE = 'GQE',\n EEK = 'EEK',\n XEU = 'XEU',\n GEK = 'GEK',\n DDM = 'DDM',\n DEM = 'DEM',\n GHC = 'GHC',\n GHP = 'GHP',\n GRD = 'GRD',\n GNE = 'GNE',\n GNS = 'GNS',\n GWE = 'GWE',\n GWP = 'GWP',\n ITL = 'ITL',\n ISJ = 'ISJ',\n IEP = 'IEP',\n ILP = 'ILP',\n ILR = 'ILR',\n LAJ = 'LAJ',\n LVL = 'LVL',\n LVR = 'LVR',\n LSM = 'LSM',\n ZAL = 'ZAL',\n LTL = 'LTL',\n LTT = 'LTT',\n LUC = 'LUC',\n LUF = 'LUF',\n LUL = 'LUL',\n MGF = 'MGF',\n MVQ = 'MVQ',\n MLF = 'MLF',\n MTL = 'MTL',\n MTP = 'MTP',\n MRO = 'MRO',\n MXP = 'MXP',\n MZE = 'MZE',\n MZM = 'MZM',\n NLG = 'NLG',\n NIC = 'NIC',\n PEH = 'PEH',\n PEI = 'PEI',\n PES = 'PES',\n PLZ = 'PLZ',\n PTE = 'PTE',\n ROK = 'ROK',\n ROL = 'ROL',\n STD = 'STD',\n CSD = 'CSD',\n SKK = 'SKK',\n SIT = 'SIT',\n RHD = 'RHD',\n ESA = 'ESA',\n ESB = 'ESB',\n SDD = 'SDD',\n SDP = 'SDP',\n SRG = 'SRG',\n CHC = 'CHC',\n TJR = 'TJR',\n TPE = 'TPE',\n TRL = 'TRL',\n TMM = 'TMM',\n UGS = 'UGS',\n UGW = 'UGW',\n UAK = 'UAK',\n SUR = 'SUR',\n USS = 'USS',\n UYN = 'UYN',\n UYP = 'UYP',\n VEB = 'VEB',\n VEF = 'VEF',\n VNC = 'VNC',\n YDD = 'YDD',\n YUD = 'YUD',\n YUM = 'YUM',\n YUN = 'YUN',\n ZRN = 'ZRN',\n ZRZ = 'ZRZ',\n ZMK = 'ZMK',\n ZWC = 'ZWC',\n ZWD = 'ZWD',\n ZWN = 'ZWN',\n ZWR = 'ZWR',\n XFO = 'XFO',\n XRE = 'XRE',\n XFU = 'XFU',\n}\n\nexport enum DataLocalizationRegionEnum {\n // APAC\n AU = 'AU', // Australia\n ID = 'ID', // Indonesia\n IN = 'IN', // India\n JP = 'JP', // Japan\n SG = 'SG', // Singapore\n KR = 'KR', // South Korea\n\n // Europe\n DE = 'DE', // EU (Germany)\n CH = 'CH', // Switzerland\n GB = 'GB', // United Kingdom\n\n // LATAM\n BR = 'BR', // Brazil\n\n // MEA\n BH = 'BH', // Bahrain\n ZA = 'ZA', // South Africa\n AE = 'AE', // United Arab Emirates\n\n // NORAM\n CA = 'CA', // Canada\n}\n\n/**\n * Business category values for WhatsApp Business Profile.\n * These values map to specific strings displayed in the WhatsApp client.\n */\nexport enum BusinessVerticalEnum {\n /**\n * Alcoholic Beverages\n */\n ALCOHOL = 'ALCOHOL',\n /**\n * Clothing and Apparel\n */\n APPAREL = 'APPAREL',\n /**\n * Automotive\n */\n AUTO = 'AUTO',\n /**\n * Beauty, Spa and Salon\n */\n BEAUTY = 'BEAUTY',\n /**\n * Education\n */\n EDU = 'EDU',\n /**\n * Entertainment\n */\n ENTERTAIN = 'ENTERTAIN',\n /**\n * Event Planning and Service\n */\n EVENT_PLAN = 'EVENT_PLAN',\n /**\n * Finance and Banking\n */\n FINANCE = 'FINANCE',\n /**\n * Public Service\n */\n GOVT = 'GOVT',\n /**\n * Food and Grocery\n */\n GROCERY = 'GROCERY',\n /**\n * Medical and Health\n */\n HEALTH = 'HEALTH',\n /**\n * Hotel and Lodging\n */\n HOTEL = 'HOTEL',\n /**\n * Non-profit\n */\n NONPROFIT = 'NONPROFIT',\n /**\n * Online Gambling & Gaming\n */\n ONLINE_GAMBLING = 'ONLINE_GAMBLING',\n /**\n * Over-the-Counter Drugs\n */\n OTC_DRUGS = 'OTC_DRUGS',\n /**\n * Other\n */\n OTHER = 'OTHER',\n /**\n * Non-Online Gambling & Gaming (E.g. Brick and mortar)\n */\n PHYSICAL_GAMBLING = 'PHYSICAL_GAMBLING',\n /**\n * Professional Services\n */\n PROF_SERVICES = 'PROF_SERVICES',\n /**\n * Restaurant\n */\n RESTAURANT = 'RESTAURANT',\n /**\n * Shopping and Retail\n */\n RETAIL = 'RETAIL',\n /**\n * Travel and Transportation\n */\n TRAVEL = 'TRAVEL',\n}\n"],"mappings":"2qBAAA,I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1x.js";
|
|
2
|
-
import { WebhookProcessor } from "./WebhookProcessor-Dq2Pa2cY.js";
|
|
3
|
-
|
|
4
|
-
//#region src/core/webhook/frameworks/handler.d.ts
|
|
5
|
-
interface BaseRequest {
|
|
6
|
-
method?: string;
|
|
7
|
-
url?: string;
|
|
8
|
-
headers: Record<string, string | string[] | undefined>;
|
|
9
|
-
body?: any;
|
|
10
|
-
query?: Record<string, any> | URLSearchParams;
|
|
11
|
-
rawBody?: any;
|
|
12
|
-
}
|
|
13
|
-
interface BaseResponse<T = any> {
|
|
14
|
-
status(code: number): T;
|
|
15
|
-
json?(data: any): T | void;
|
|
16
|
-
send?(data?: any): T | void;
|
|
17
|
-
setHeader?(name: string, value: string): void;
|
|
18
|
-
}
|
|
19
|
-
interface BaseWebhookConfig extends WhatsAppConfig {}
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/core/webhook/frameworks/nextjs.d.ts
|
|
22
|
-
interface BaseApiRequest extends BaseRequest {
|
|
23
|
-
method?: string;
|
|
24
|
-
url?: string;
|
|
25
|
-
headers: Record<string, string | string[] | undefined>;
|
|
26
|
-
body?: any;
|
|
27
|
-
query: Partial<Record<string, string | string[]>>;
|
|
28
|
-
rawBody?: any;
|
|
29
|
-
}
|
|
30
|
-
interface BaseApiResponse extends BaseResponse {
|
|
31
|
-
status(code: number): any;
|
|
32
|
-
json(data: any): void | any;
|
|
33
|
-
send(data?: any): void | any;
|
|
34
|
-
setHeader(name: string, value: string): void;
|
|
35
|
-
}
|
|
36
|
-
interface NextJsWebhookConfig extends BaseWebhookConfig {}
|
|
37
|
-
declare function webhookHandler$1<TRequest extends BaseApiRequest, TResponse extends BaseApiResponse>(config: NextJsWebhookConfig): {
|
|
38
|
-
GET: (req: TRequest, res: TResponse) => Promise<any>;
|
|
39
|
-
POST: (req: TRequest, res: TResponse) => Promise<any>;
|
|
40
|
-
webhook: (req: TRequest, res: TResponse) => Promise<any>;
|
|
41
|
-
flow: (req: TRequest, res: TResponse) => Promise<any>;
|
|
42
|
-
processor: WebhookProcessor;
|
|
43
|
-
};
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region src/core/webhook/utils/generateXHub256Sig.d.ts
|
|
46
|
-
declare const generateXHub256Sig: (body: string, appSecret: string) => string;
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/core/webhook/frameworks/express.d.ts
|
|
49
|
-
interface ExpressRequest extends BaseRequest {
|
|
50
|
-
method: string;
|
|
51
|
-
url: string;
|
|
52
|
-
headers: Record<string, string | string[] | undefined>;
|
|
53
|
-
body?: any;
|
|
54
|
-
query: Record<string, any>;
|
|
55
|
-
rawBody?: any;
|
|
56
|
-
}
|
|
57
|
-
interface ExpressResponse extends BaseResponse<ExpressResponse> {
|
|
58
|
-
status(code: number): ExpressResponse;
|
|
59
|
-
json(data: any): ExpressResponse;
|
|
60
|
-
send(data?: any): ExpressResponse;
|
|
61
|
-
setHeader(name: string, value: string): void;
|
|
62
|
-
}
|
|
63
|
-
interface NextFunction {
|
|
64
|
-
(error?: any): void;
|
|
65
|
-
}
|
|
66
|
-
interface ExpressWebhookConfig extends BaseWebhookConfig {
|
|
67
|
-
path?: string;
|
|
68
|
-
}
|
|
69
|
-
declare function webhookHandler(config: ExpressWebhookConfig): {
|
|
70
|
-
GET: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => Promise<ExpressResponse>;
|
|
71
|
-
POST: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => Promise<ExpressResponse>;
|
|
72
|
-
webhook: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => Promise<any>;
|
|
73
|
-
flow: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => Promise<ExpressResponse>;
|
|
74
|
-
processor: WebhookProcessor;
|
|
75
|
-
};
|
|
76
|
-
//#endregion
|
|
77
|
-
export { BaseApiRequest, BaseApiResponse, type ExpressRequest, type ExpressResponse, type ExpressWebhookConfig, type NextFunction, type NextJsWebhookConfig, generateXHub256Sig, webhookHandler, webhookHandler$1 };
|
|
78
|
-
//# sourceMappingURL=express-B6fQdflY.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"express-B6fQdflY.d.ts","names":[],"sources":["../src/core/webhook/frameworks/handler.ts","../src/core/webhook/frameworks/nextjs.ts","../src/core/webhook/utils/generateXHub256Sig.ts","../src/core/webhook/frameworks/express.ts"],"sourcesContent":[],"mappings":";;;;UAKiB,WAAA;;EAAA,GAAA,CAAA,EAAA,MAAA;EAAW,OAAA,EAGf,MAHe,CAAA,MAAA,EAAA,MAAA,GAAA,MAAA,EAAA,GAAA,SAAA,CAAA;MAGf,CAAA,EAAA,GAAA;OAED,CAAA,EAAA,MAAA,CAAA,MAAA,EAAA,GAAA,CAAA,GAAsB,eAAtB;SAAsB,CAAA,EAAA,GAAA;;AAIjB,UAAA,YAAY,CAAA,IAAA,GAAA,CAAA,CAAA;EAAA,MAAA,CAAA,IAAA,EAAA,MAAA,CAAA,EACH,CADG;MACH,EAAA,IAAA,EAAA,GAAA,CAAA,EACJ,CADI,GAAA,IAAA;MACJ,EAAA,IAAA,CAAA,EAAA,GAAA,CAAA,EACC,CADD,GAAA,IAAA;WACC,EAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAAA,MAAA,CAAA,EAAA,IAAA;;AAKN,UAAA,iBAAA,SAA0B,cAAc,CAAA;;;UCnBxC,cAAA,SAAuB;;;EDEvB,OAAA,ECCJ,MDDe,CAAA,MAAA,EAAA,MAAA,GAAA,MAAA,EAAA,GAAA,SAAA,CAAA;EAAA,IAAA,CAAA,EAAA,GAAA;OAGf,ECAF,ODAE,CCAM,MDAN,CAAA,MAAA,EAAA,MAAA,GAAA,MAAA,EAAA,CAAA,CAAA;SAED,CAAA,EAAA,GAAA;;AAAqC,UCEhC,eAAA,SAAwB,YDFQ,CAAA;EAIhC,MAAA,CAAA,IAAA,EAAA,MAAY,CAAA,EAAA,GAAA;EAAA,IAAA,CAAA,IAAA,EAAA,GAAA,CAAA,EAAA,IAAA,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8FkE,eF9FlE,CAAA;MAEM,EAAA,CAAA,GAAA,EE6FK,cF7FL,EAAA,GAAA,EE6F0B,eF7F1B,EAAA,IAAA,EE6FiD,YF7FjD,EAAA,GE6F6D,OF7F7D,CE6F6D,eF7F7D,CAAA;SAAR,EAAA,CAAA,GAAA,EEgGgB,cFhGhB,EAAA,GAAA,EEgGqC,eFhGrC,EAAA,IAAA,EEgG4D,YFhG5D,EAAA,GEgGwE,OFhGxE,CAAA,GAAA,CAAA;MAL6B,EAAA,CAAA,GAAA,EEwGhB,cFxGgB,EAAA,GAAA,EEwGK,eFxGL,EAAA,IAAA,EEwG4B,YFxG5B,EAAA,GEwGwC,OFxGxC,CEwGwC,eFxGxC,CAAA;EAAW,SAAA,EEwG6B,gBFxG7B;AASnD,CAAA"}
|
package/dist/express-CrfNLYMM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{BaseWebhookHandler as e}from"./handler-BGqjZ0xg.js";var t=class extends e{constructor(e){super(e)}async handleGet(e,t,n){try{let{"hub.mode":n,"hub.verify_token":r,"hub.challenge":i}=e.query,a=await this.processVerification(n||null,r||null,i||null);return this.applyHeaders(a,t),t.status(a.status).send(a.body)}catch(e){return n(e),t}}async handlePost(e,t,n){try{let n=this.constructFullUrl(e.headers,e.url),r=new globalThis.Request(n,{method:e.method,headers:e.headers,body:JSON.stringify(e.body)}),i=await this.processWebhook(r);return this.applyHeaders(i,t),t.status(i.status).send(i.body)}catch(e){return n(e),t}}async handleFlow(e,t,n){try{let n=this.constructFullUrl(e.headers,e.url),r=new globalThis.Request(n,{method:e.method,headers:e.headers,body:e.method===`POST`?JSON.stringify(e.body):void 0}),i=await this.processFlow(r);return this.applyHeaders(i,t),t.status(i.status).send(i.body)}catch(e){return n(e),t}}getHandlers(){return{GET:(e,t,n)=>this.handleGet(e,t,n),POST:(e,t,n)=>this.handlePost(e,t,n),webhook:(e,t,n)=>this.autoRoute(e,t,n),flow:(e,t,n)=>this.handleFlow(e,t,n),processor:this.webhookProcessor}}};function n(e){return new t(e).getHandlers()}export{n as webhookHandler};
|
|
2
|
-
//# sourceMappingURL=express-CrfNLYMM.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"express-CrfNLYMM.js","names":[],"sources":["../src/core/webhook/frameworks/express.ts"],"sourcesContent":["import { BaseRequest, BaseResponse, BaseWebhookConfig, BaseWebhookHandler } from './handler';\n\n// Express-like interfaces to avoid direct Express dependency\nexport interface ExpressRequest extends BaseRequest {\n method: string;\n url: string;\n headers: Record<string, string | string[] | undefined>;\n body?: any;\n query: Record<string, any>;\n rawBody?: any;\n}\n\nexport interface ExpressResponse extends BaseResponse<ExpressResponse> {\n status(code: number): ExpressResponse;\n json(data: any): ExpressResponse;\n send(data?: any): ExpressResponse;\n setHeader(name: string, value: string): void;\n}\n\nexport interface NextFunction {\n (error?: any): void;\n}\n\nexport interface ExpressWebhookConfig extends BaseWebhookConfig {\n path?: string;\n}\n\n/**\n * Express-specific webhook handler extending the base handler\n */\nclass ExpressWebhookHandler extends BaseWebhookHandler<ExpressRequest, ExpressResponse> {\n constructor(config: ExpressWebhookConfig) {\n super(config);\n }\n\n protected async handleGet(req: ExpressRequest, res: ExpressResponse, next: NextFunction): Promise<ExpressResponse> {\n try {\n const { 'hub.mode': mode, 'hub.verify_token': token, 'hub.challenge': challenge } = req.query;\n\n const result = await this.processVerification(\n (mode as string) || null,\n (token as string) || null,\n (challenge as string) || null,\n );\n\n this.applyHeaders(result, res);\n return res.status(result.status).send(result.body);\n } catch (error) {\n next(error);\n return res;\n }\n }\n\n protected async handlePost(\n req: ExpressRequest,\n res: ExpressResponse,\n next: NextFunction,\n ): Promise<ExpressResponse> {\n try {\n const fullUrl = this.constructFullUrl(req.headers, req.url);\n const webRequest = new globalThis.Request(fullUrl, {\n method: req.method,\n headers: req.headers as HeadersInit,\n body: JSON.stringify(req.body),\n });\n\n const result = await this.processWebhook(webRequest);\n this.applyHeaders(result, res);\n return res.status(result.status).send(result.body);\n } catch (error) {\n next(error);\n return res;\n }\n }\n\n protected async handleFlow(\n req: ExpressRequest,\n res: ExpressResponse,\n next: NextFunction,\n ): Promise<ExpressResponse> {\n try {\n const fullUrl = this.constructFullUrl(req.headers, req.url);\n const webRequest = new globalThis.Request(fullUrl, {\n method: req.method,\n headers: req.headers as HeadersInit,\n body: req.method === 'POST' ? JSON.stringify(req.body) : undefined,\n });\n\n const result = await this.processFlow(webRequest);\n this.applyHeaders(result, res);\n return res.status(result.status).send(result.body);\n } catch (error) {\n next(error);\n return res;\n }\n }\n\n getHandlers() {\n return {\n // Method handlers for clean destructuring\n GET: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => this.handleGet(req, res, next),\n POST: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => this.handlePost(req, res, next),\n\n // Auto-routing webhook handler\n webhook: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => this.autoRoute(req, res, next),\n\n // Flow handler\n flow: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => this.handleFlow(req, res, next),\n\n // Expose processor for handler registration\n processor: this.webhookProcessor,\n };\n }\n}\n\nexport function webhookHandler(config: ExpressWebhookConfig) {\n const handler = new ExpressWebhookHandler(config);\n return handler.getHandlers();\n}\n"],"mappings":"2DA8BA,IAAM,EAAN,cAAoC,CAAoD,CACpF,YAAY,EAA8B,CACtC,MAAM,EAAO,CAGjB,MAAgB,UAAU,EAAqB,EAAsB,EAA8C,CAC/G,GAAI,CACA,GAAM,CAAE,WAAY,EAAM,mBAAoB,EAAO,gBAAiB,GAAc,EAAI,MAElF,EAAS,MAAM,KAAK,oBACrB,GAAmB,KACnB,GAAoB,KACpB,GAAwB,KAC5B,CAGD,OADA,KAAK,aAAa,EAAQ,EAAI,CACvB,EAAI,OAAO,EAAO,OAAO,CAAC,KAAK,EAAO,KAAK,OAC7C,EAAO,CAEZ,OADA,EAAK,EAAM,CACJ,GAIf,MAAgB,WACZ,EACA,EACA,EACwB,CACxB,GAAI,CAC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num as e,WabaConfigEnum as t}from"./enums-CSUpFXb8.js";import{BaseAPI as n}from"./base-D-cXu_lA.js";var r=class extends n{constructor(e,t){super(e,t)}async listFlows(n){return this.sendJson(e.Get,`/${n}/flows`,this.config[t.RequestTimeout],null)}async createFlow(n,r){let i={name:r.name,categories:r.categories,...r.endpoint_uri&&{endpoint_uri:r.endpoint_uri},...r.clone_flow_id&&{clone_flow_id:r.clone_flow_id},...r.flow_json&&{flow_json:r.flow_json},...r.publish!==void 0&&{publish:r.publish}};return this.sendJson(e.Post,`/${n}/flows`,this.config[t.RequestTimeout],JSON.stringify(i))}async getFlow(n,r,i){let a=new URLSearchParams;r&&a.append(`fields`,r),i&&a.append(`date_format`,i);let o=a.toString()?`?${a.toString()}`:``;return this.sendJson(e.Get,`/${n}${o}`,this.config[t.RequestTimeout],null)}async getFlowPreview(e,t=!1){let n=`preview.invalidate(${t})`;return this.getFlow(e,n)}async updateFlowMetadata(n,r){let i={...r.name&&{name:r.name},...r.categories&&{categories:r.categories},...r.endpoint_uri&&{endpoint_uri:r.endpoint_uri},...r.application_id&&{application_id:r.application_id}};return this.sendJson(e.Post,`/${n}`,this.config[t.RequestTimeout],JSON.stringify(i))}async deleteFlow(n){return this.sendJson(e.Delete,`/${n}`,this.config[t.RequestTimeout],null)}async listAssets(n){return this.sendJson(e.Get,`/${n}/assets`,this.config[t.RequestTimeout],null)}async updateFlowJson(n,r){let i=new FormData,a;if(r.file instanceof Buffer)a=new globalThis.Blob([r.file]),i.append(`file`,a);else if(typeof r.file==`object`&&!(r.file instanceof Blob))try{a=new globalThis.Blob([JSON.stringify(r.file,null,2)],{type:`application/json`}),i.append(`file`,a)}catch{throw Error(`Failed to stringify JSON object for Flow JSON update.`)}else if(r.file instanceof Blob)a=r.file,i.append(`file`,a);else throw Error(`Invalid file type provided for Flow JSON update. Must be a Buffer, JSON object, or Blob.`);return i.append(`asset_type`,`FLOW_JSON`),i.append(`name`,r.name||`flow.json`),this.sendFormData(e.Post,`/${n}/assets`,this.config[t.RequestTimeout],i)}async validateFlowJson(e,t){try{let n=await this.updateFlowJson(e,{file:t}),r=!n.validation_errors||n.validation_errors.length===0;return{...n,valid:r}}catch(e){throw e}}async publishFlow(n){return this.sendJson(e.Post,`/${n}/publish`,this.config[t.RequestTimeout],JSON.stringify({}))}async deprecateFlow(n){return this.sendJson(e.Post,`/${n}/deprecate`,this.config[t.RequestTimeout],JSON.stringify({}))}async migrateFlows(n,r){let i={source_waba_id:r.source_waba_id,...r.source_flow_names&&{source_flow_names:r.source_flow_names}};return this.sendJson(e.Post,`/${n}/migrate_flows`,this.config[t.RequestTimeout],JSON.stringify(i))}},i=r;export{r as FlowApi,i as flow_default};
|
|
2
|
-
//# sourceMappingURL=flow-CVes0Qus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flow-CVes0Qus.js","names":["fileContent: Blob"],"sources":["../src/api/flow/FlowApi.ts","../src/api/flow/index.ts"],"sourcesContent":["import { BaseAPI } from '../../types/base';\nimport type { WabaConfigType } from '../../types/config';\nimport { HttpMethodsEnum, WabaConfigEnum } from '../../types/enums';\nimport type { RequesterClass, ResponseSuccess } from '../../types/request';\n\nimport type * as flow from './types';\n\n/**\n * API for managing WhatsApp Flows.\n *\n * This API allows you to:\n * - List flows\n * - Create flows\n * - Get flow details and previews\n * - Update flow metadata and JSON\n * - Delete flows\n * - Publish and deprecate flows\n * - Migrate flows between WABAs\n * - Validate flow JSON\n */\nexport default class FlowApi extends BaseAPI implements flow.FlowClass {\n constructor(config: WabaConfigType, client: RequesterClass) {\n super(config, client);\n }\n\n /**\n * List Flows\n *\n * @param wabaId - The WABA ID\n * @returns Promise with the list of flows\n */\n async listFlows(wabaId: string): Promise<flow.FlowsListResponse> {\n return this.sendJson(HttpMethodsEnum.Get, `/${wabaId}/flows`, this.config[WabaConfigEnum.RequestTimeout], null);\n }\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 and validation errors if any\n */\n async createFlow(\n wabaId: string,\n data: {\n name: string;\n categories?: flow.FlowCategoryEnum[];\n endpoint_uri?: string;\n clone_flow_id?: string;\n flow_json?: string; // Flow JSON as a string\n publish?: boolean;\n },\n ): Promise<flow.CreateFlowResponse> {\n // The API expects application/json for this endpoint based on documentation examples\n // Let's ensure we send JSON, not FormData, unless specifically required by an endpoint variation.\n const payload = {\n name: data.name,\n categories: data.categories,\n ...(data.endpoint_uri && { endpoint_uri: data.endpoint_uri }),\n ...(data.clone_flow_id && { clone_flow_id: data.clone_flow_id }),\n ...(data.flow_json && { flow_json: data.flow_json }),\n ...(data.publish !== undefined && { publish: data.publish }),\n };\n\n return this.sendJson(\n HttpMethodsEnum.Post,\n `/${wabaId}/flows`,\n this.config[WabaConfigEnum.RequestTimeout],\n JSON.stringify(payload), // Send as JSON\n );\n }\n\n /**\n * Get Flow details\n *\n * @param flowId - The flow ID\n * @param fields - Optional fields to return (e.g., 'name,status,preview.invalidate(false)')\n * @param dateFormat - Optional date format\n * @returns Promise with the flow details or preview response\n */\n async getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<flow.Flow | flow.FlowPreviewResponse> {\n const params = new URLSearchParams();\n if (fields) params.append('fields', fields);\n if (dateFormat) params.append('date_format', dateFormat);\n\n const queryString = params.toString() ? `?${params.toString()}` : '';\n return this.sendJson(\n HttpMethodsEnum.Get,\n `/${flowId}${queryString}`,\n this.config[WabaConfigEnum.RequestTimeout],\n null,\n );\n }\n\n /**\n * Get Flow Preview URL\n *\n * @param flowId - The flow ID\n * @param invalidate - Optional. If true, invalidates existing preview and generates a new one. Defaults to false.\n * @returns Promise with the flow preview details\n */\n async getFlowPreview(flowId: string, invalidate: boolean = false): Promise<flow.FlowPreviewResponse> {\n const fields = `preview.invalidate(${invalidate})`;\n // Type assertion needed as getFlow can return Flow or FlowPreviewResponse\n return this.getFlow(flowId, fields) as Promise<flow.FlowPreviewResponse>;\n }\n\n /**\n * Update Flow Metadata\n *\n * @param flowId - The flow ID\n * @param data - The flow metadata to update (name, categories, endpoint_uri, application_id)\n * @returns Promise with the success status\n */\n async updateFlowMetadata(\n flowId: string,\n data: {\n name?: string;\n categories?: flow.FlowCategoryEnum[];\n endpoint_uri?: string;\n application_id?: string;\n },\n ): Promise<ResponseSuccess> {\n // The API expects application/json for this endpoint based on documentation examples\n const payload = {\n ...(data.name && { name: data.name }),\n ...(data.categories && { categories: data.categories }),\n ...(data.endpoint_uri && { endpoint_uri: data.endpoint_uri }),\n ...(data.application_id && { application_id: data.application_id }),\n };\n\n return this.sendJson(\n HttpMethodsEnum.Post,\n `/${flowId}`,\n this.config[WabaConfigEnum.RequestTimeout],\n JSON.stringify(payload), // Send as JSON\n );\n }\n\n /**\n * Delete Flow (only works if the Flow is in DRAFT status)\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n async deleteFlow(flowId: string): Promise<ResponseSuccess> {\n return this.sendJson(HttpMethodsEnum.Delete, `/${flowId}`, this.config[WabaConfigEnum.RequestTimeout], null);\n }\n\n /**\n * List Assets (e.g., get Flow JSON download URL)\n *\n * @param flowId - The flow ID\n * @returns Promise with the list of assets\n */\n async listAssets(flowId: string): Promise<flow.FlowAssetsResponse> {\n return this.sendJson(\n HttpMethodsEnum.Get,\n `/${flowId}/assets`,\n this.config[WabaConfigEnum.RequestTimeout],\n null,\n );\n }\n\n /**\n * Update Flow JSON by uploading a file, buffer, JSON object, or Blob.\n *\n * @param flowId - The flow ID\n * @param data - Object containing the file data and optional name.\n * @param data.file - The Flow JSON content as a Buffer, JSON object, or Blob.\n * @param data.name - Optional name for the asset, defaults to 'flow.json'.\n * @returns Promise with the success status and validation errors, if any.\n */\n async updateFlowJson(\n flowId: string,\n data: {\n file: Blob | Buffer | object; // JSON object, Buffer, or Blob\n name?: string; // Default to \"flow.json\"\n },\n ): Promise<flow.UpdateFlowResponse> {\n const formData = new FormData();\n let fileContent: Blob;\n\n // Handle different input types for the file\n if (data.file instanceof Buffer) {\n // Buffer\n // Create a Blob from the Buffer and cast it to the global Blob type\n fileContent = new globalThis.Blob([data.file]);\n formData.append('file', fileContent as unknown as Blob);\n } else if (typeof data.file === 'object' && !(data.file instanceof Blob)) {\n // JSON object - stringify and create Blob\n try {\n // Create a Blob from the JSON string and cast it to the global Blob type\n fileContent = new globalThis.Blob([JSON.stringify(data.file, null, 2)], { type: 'application/json' });\n formData.append('file', fileContent as unknown as Blob);\n } catch (e) {\n throw new Error('Failed to stringify JSON object for Flow JSON update.');\n }\n } else if (data.file instanceof Blob) {\n // Blob (already in correct format)\n fileContent = data.file;\n formData.append('file', fileContent as unknown as Blob);\n } else {\n throw new Error('Invalid file type provided for Flow JSON update. Must be a Buffer, JSON object, or Blob.');\n }\n\n formData.append('asset_type', 'FLOW_JSON'); // Required by API\n formData.append('name', data.name || 'flow.json'); // Required by API\n\n return this.sendFormData(\n HttpMethodsEnum.Post,\n `/${flowId}/assets`,\n this.config[WabaConfigEnum.RequestTimeout],\n formData,\n );\n }\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 file path (string), Buffer, JSON object, or Blob.\n * @returns Promise indicating if the JSON is valid and includes validation errors if any.\n */\n async validateFlowJson(\n flowId: string,\n flowJsonData: Blob | Buffer | object,\n ): Promise<flow.ValidateFlowJsonResponse> {\n try {\n const result = await this.updateFlowJson(flowId, {\n file: flowJsonData,\n });\n\n const isValid = !result.validation_errors || result.validation_errors.length === 0;\n\n const enhancedResponse = {\n ...result,\n valid: isValid,\n };\n\n return enhancedResponse;\n } catch (error) {\n throw error;\n }\n }\n\n /**\n * Publish Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n async publishFlow(flowId: string): Promise<ResponseSuccess> {\n // This endpoint expects an empty JSON body or no body\n return this.sendJson(\n HttpMethodsEnum.Post,\n `/${flowId}/publish`,\n this.config[WabaConfigEnum.RequestTimeout],\n JSON.stringify({}), // Send empty JSON object\n );\n }\n\n /**\n * Deprecate Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n async deprecateFlow(flowId: string): Promise<ResponseSuccess> {\n // This endpoint expects an empty JSON body or no body\n return this.sendJson(\n HttpMethodsEnum.Post,\n `/${flowId}/deprecate`,\n this.config[WabaConfigEnum.RequestTimeout],\n JSON.stringify({}), // Send empty JSON object\n );\n }\n\n /**\n * Migrate Flows between WABAs\n *\n * @param destinationWabaId - 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 (successes and failures)\n */\n async migrateFlows(\n destinationWabaId: string,\n data: {\n source_waba_id: string;\n source_flow_names?: string[];\n },\n ): Promise<flow.FlowMigrationResponse> {\n // API documentation suggests this endpoint might expect application/json\n // Let's double-check or assume JSON based on typical Graph API patterns unless FormData is confirmed.\n // Assuming JSON for now:\n const payload = {\n source_waba_id: data.source_waba_id,\n ...(data.source_flow_names && { source_flow_names: data.source_flow_names }),\n };\n\n return this.sendJson(\n HttpMethodsEnum.Post,\n `/${destinationWabaId}/migrate_flows`,\n this.config[WabaConfigEnum.RequestTimeout],\n JSON.stringify(payload),\n );\n }\n}\n","import FlowApi from './FlowApi';\n\nexport default FlowApi;\nexport { FlowApi };\n\nexport { FlowTypeEnum } from './types';\n\nexport type {\n CreateFlowResponse,\n Flow,\n FlowActionEnum,\n FlowAssetsResponse,\n FlowCategoryEnum,\n FlowClass,\n FlowEndpointRequest,\n FlowEndpointResponse,\n FlowMigrationResponse,\n FlowPreviewResponse,\n FlowsListResponse,\n FlowStatusEnum,\n FlowType,\n FlowValidationError,\n UpdateFlowResponse,\n ValidateFlowJsonResponse,\n} from './types';\n"],"mappings":"uHAoBA,IAAqB,EAArB,cAAqC,CAAkC,CACnE,YAAY,EAAwB,EAAwB,CACxD,MAAM,EAAQ,EAAO,CASzB,MAAM,UAAU,EAAiD,C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BAC3B,KAAK,UAAU,EAAE,CAAC,CACrB,CASL,MAAM,cAAc,EAA0C,CAE1D,OAAO,KAAK,SACR,EAAgB,KAChB,IAAI,EAAO,YACX,KAAK,OAAO,EAAe,gBAC3B,KAAK,UAAU,EAAE,CAAC,CACrB,CAUL,MAAM,aACF,EACA,EAImC,CAInC,IAAM,EAAU,CACZ,eAAgB,EAAK,eACrB,GAAI,EAAK,mBAAqB,CAAE,kBAAmB,EAAK,kBAAmB,CAC9E,CAED,OAAO,KAAK,SACR,EAAgB,KAChB,IAAI,EAAkB,gBACtB,KAAK,OAAO,EAAe,gBAC3B,KAAK,UAAU,EAAQ,CAC1B,GChTT,EAAe"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{FlowActionEnum as e}from"./common-C6FXBDm7.js";function t(e){return typeof e==`object`&&!!e}function n(e){return typeof e==`string`}const r=[e.DATA_EXCHANGE,e.INIT,e.BACK],i=[e.DATA_EXCHANGE,e.INIT];function a(i){if(!(`flow_token`in i&&n(i.flow_token)&&`action`in i))return!1;let{action:a,version:o,screen:s,data:c}=i,l=o===`3.0`,u=r.includes(a),d=s===void 0||n(s)&&s!==`SUCCESS`,f=a===e.DATA_EXCHANGE||t(c);return l&&u&&d&&f}function o(e){if(!(`flow_token`in e&&n(e.flow_token)&&`action`in e))return!1;let{action:r,screen:a,data:o}=e,s=i.includes(r),c=n(a),l=t(o)&&`error_key`in o&&n(o.error)&&`error_message`in o&&n(o.error_message);return s&&c&&l}function s(e){return`action`in e&&e.action===`ping`}export{a as isFlowDataExchangeRequest,o as isFlowErrorRequest,s as isFlowPingRequest};
|
|
2
|
-
//# sourceMappingURL=flowTypeGuards-Gn3-slCW.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flowTypeGuards-Gn3-slCW.js","names":[],"sources":["../src/utils/flowTypeGuards.ts"],"sourcesContent":["import {\n FlowActionEnum,\n FlowDataExchangeRequest,\n FlowEndpointRequest,\n FlowErrorNotificationRequest,\n FlowHealthCheckRequest,\n} from '../api/flow/types';\n\n/**\n * Helper function to check if a value is an object\n * @param value The value to check\n * @returns True if the value is a non-null object\n */\nfunction isObject(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\n/**\n * Helper function to check if a value is a string\n * @param value The value to check\n * @returns True if the value is a string\n */\nfunction isString(value: unknown): value is string {\n return typeof value === 'string';\n}\n\n// Array of allowed action types for data exchange requests\nconst DATA_EXCHANGE_ACTIONS = [FlowActionEnum.DATA_EXCHANGE, FlowActionEnum.INIT, FlowActionEnum.BACK] as const;\n\n// Array of allowed action types for error notification requests\nconst ERROR_ACTIONS = [FlowActionEnum.DATA_EXCHANGE, FlowActionEnum.INIT] as const;\n\n/**\n * Type guard to check if a request is a Data Exchange request\n * Validates the request structure according to the Flow API specifications\n *\n * @param request The Flow endpoint request to check\n * @returns True if the request is a valid Data Exchange request, false otherwise\n */\nexport function isFlowDataExchangeRequest(request: FlowEndpointRequest): request is FlowDataExchangeRequest & {\n action: (typeof DATA_EXCHANGE_ACTIONS)[number];\n screen?: string;\n flow_token: string;\n data?: Record<string, any>;\n} {\n // Check for basic required fields\n if (!('flow_token' in request && isString(request.flow_token) && 'action' in request)) {\n return false;\n }\n\n const { action, version, screen, data } = request;\n\n // Validate API version\n const hasValidVersion = version === '3.0';\n\n // Check if the action is one of the allowed actions for data exchange\n const hasValidAction = DATA_EXCHANGE_ACTIONS.includes(action as any);\n\n // Screen is optional, but when present must be a string and not 'SUCCESS'\n const hasValidScreen = typeof screen === 'undefined' || (isString(screen) && screen !== 'SUCCESS');\n\n // Data is required except for DATA_EXCHANGE action\n const hasValidData = action === FlowActionEnum.DATA_EXCHANGE || isObject(data);\n\n // All conditions must be met for a valid data exchange request\n return hasValidVersion && hasValidAction && hasValidScreen && hasValidData;\n}\n\n/**\n * Type guard to check if a request is an Error Notification request\n * Validates the request structure according to the Flow API error specifications\n *\n * @param request The Flow endpoint request to check\n * @returns True if the request is a valid Error Notification request, false otherwise\n */\nexport function isFlowErrorRequest(request: FlowEndpointRequest): request is FlowErrorNotificationRequest & {\n action: (typeof ERROR_ACTIONS)[number];\n screen: string;\n flow_token: string;\n data: {\n error: string;\n error_message: string;\n };\n} {\n // Check for basic required fields\n if (!('flow_token' in request && isString(request.flow_token) && 'action' in request)) {\n return false;\n }\n\n const { action, screen, data } = request;\n\n // Check if the action is one of the allowed actions for error notifications\n const hasValidAction = ERROR_ACTIONS.includes(action as any);\n\n // Screen is required for error notifications\n const hasValidScreen = isString(screen);\n\n // Validate error data structure\n const hasValidData =\n isObject(data) &&\n 'error_key' in data &&\n isString(data.error) &&\n 'error_message' in data &&\n isString(data.error_message);\n\n // All conditions must be met for a valid error notification request\n return hasValidAction && hasValidScreen && hasValidData;\n}\n\n/**\n * Type guard to check if a request is a Ping (health check) request\n * Simple validation for health check endpoints in the Flow API\n *\n * @param request The Flow endpoint request to check\n * @returns True if the request is a Ping request, false otherwise\n */\nexport function isFlowPingRequest(request: FlowEndpointRequest): request is FlowHealthCheckRequest {\n // A ping request only requires the 'action' field with value 'ping'\n return 'action' in request && request.action === 'ping';\n}\n"],"mappings":"sDAaA,SAAS,EAAS,EAAkD,CAChE,OAAO,OAAO,GAAU,YAAY,EAQxC,SAAS,EAAS,EAAiC,CAC/C,OAAO,OAAO,GAAU,SAI5B,MAAM,EAAwB,CAAC,EAAe,cAAe,EAAe,KAAM,EAAe,KAAK,CAGhG,EAAgB,CAAC,EAAe,cAAe,EAAe,KAAK,CASzE,SAAgB,EAA0B,EAKxC,CAEE,GAAI,EAAE,eAAgB,GAAW,EAAS,EAAQ,WAAW,EAAI,WAAY,GACzE,MAAO,GAGX,GAAM,CAAE,SAAQ,UAAS,SAAQ,QAAS,EAGpC,EAAkB,IAAY,MAG9B,EAAiB,EAAsB,SAAS,EAAc,CAG9D,EAAwB,IAAW,QAAgB,EAAS,EAAO,EAAI,IAAW,UAGlF,EAAe,IAAW,EAAe,eAAiB,EAAS,EAAK,CAG9E,OAAO,GAAmB,GAAkB,GAAkB,EAUlE,SAAgB,EAAmB,EAQjC,CAEE,GAAI,EAAE,eAAgB,GAAW,EAAS,EAAQ,WAAW,EAAI,WAAY,GACzE,MAAO,GAGX,GAAM,CAAE,SAAQ,SAAQ,QAAS,EAG3B,EAAiB,EAAc,SAAS,EAAc,CAGtD,EAAiB,EAAS,EAAO,CAGjC,EACF,EAAS,EAAK,EACd,cAAe,GACf,EAAS,EAAK,MAAM,EACpB,kBAAmB,GACnB,EAAS,EAAK,cAAc,CAGhC,OAAO,GAAkB,GAAkB,EAU/C,SAAgB,EAAkB,EAAiE,CAE/F,MAAO,WAAY,GAAW,EAAQ,SAAW"}
|
package/dist/handler-BGqjZ0xg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{WebhookProcessor as e,constructFullUrl as t}from"./WebhookProcessor-BUZFeZD_.js";var n=class{processor;constructor(t){this.processor=new e(t)}async processVerification(e,t,n){return await this.processor.processVerification(e,t,n)}async processWebhook(e){return await this.processor.processWebhook(e)}async processFlow(e){return await this.processor.processFlow(e)}constructFullUrl(e,n=``){return t(e,n)}applyHeaders(e,t){t.setHeader&&Object.entries(e.headers).forEach(([e,n])=>{t.setHeader(e,n)})}async autoRoute(e,t,...n){switch(e.method?.toUpperCase()){case`GET`:return await this.handleGet(e,t,...n);case`POST`:return await this.handlePost(e,t,...n);default:if(t.status&&t.json)return t.status(405).json({error:`Method Not Allowed`});throw Error(`Method Not Allowed`)}}get webhookProcessor(){return this.processor}};export{n as BaseWebhookHandler};
|
|
2
|
-
//# sourceMappingURL=handler-BGqjZ0xg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handler-BGqjZ0xg.js","names":[],"sources":["../src/core/webhook/frameworks/handler.ts"],"sourcesContent":["import { WhatsAppConfig } from '../../../types/config';\nimport { WebhookProcessor } from '../WebhookProcessor';\nimport { constructFullUrl } from '../utils/webhookUtils';\n\n// Generic request/response interfaces for framework abstraction\nexport interface BaseRequest {\n method?: string;\n url?: string;\n headers: Record<string, string | string[] | undefined>;\n body?: any;\n query?: Record<string, any> | URLSearchParams;\n rawBody?: any;\n}\n\nexport interface BaseResponse<T = any> {\n status(code: number): T;\n json?(data: any): T | void;\n send?(data?: any): T | void;\n setHeader?(name: string, value: string): void;\n}\n\n// Base configuration interface\nexport interface BaseWebhookConfig extends WhatsAppConfig {\n // Framework-specific configs can extend this\n}\n\n// Response result interface for consistent return types\nexport interface WebhookResult {\n status: number;\n headers: Record<string, string>;\n body: any;\n}\n\n/**\n * Abstract base class for framework-agnostic webhook handlers\n * Provides common architecture and functionality across all frameworks\n */\nexport abstract class BaseWebhookHandler<TRequest extends BaseRequest, TResponse extends BaseResponse> {\n protected processor: WebhookProcessor;\n\n constructor(config: BaseWebhookConfig) {\n this.processor = new WebhookProcessor(config);\n }\n\n /**\n * Abstract method for handling GET requests (webhook verification)\n * Each framework implements this based on their request/response patterns\n */\n protected abstract handleGet(req: TRequest, res: TResponse, ...args: any[]): Promise<any>;\n\n /**\n * Abstract method for handling POST requests (webhook processing)\n * Each framework implements this based on their request/response patterns\n */\n protected abstract handlePost(req: TRequest, res: TResponse, ...args: any[]): Promise<any>;\n\n /**\n * Abstract method for handling flow requests\n * Each framework implements this based on their request/response patterns\n */\n protected abstract handleFlow(req: TRequest, res: TResponse, ...args: any[]): Promise<any>;\n\n /**\n * Common webhook verification logic\n */\n protected async processVerification(\n mode: string | null,\n token: string | null,\n challenge: string | null,\n ): Promise<WebhookResult> {\n return await this.processor.processVerification(mode, token, challenge);\n }\n\n /**\n * Common webhook processing logic\n */\n protected async processWebhook(request: Request): Promise<WebhookResult> {\n return await this.processor.processWebhook(request);\n }\n\n /**\n * Common flow processing logic\n */\n protected async processFlow(request: Request): Promise<WebhookResult> {\n return await this.processor.processFlow(request);\n }\n\n /**\n * Helper to construct full URL from headers and path\n */\n protected constructFullUrl(headers: Record<string, string | string[] | undefined>, url: string = ''): string {\n return constructFullUrl(headers, url);\n }\n\n /**\n * Helper to apply result headers to response\n */\n protected applyHeaders(result: WebhookResult, res: TResponse): void {\n if (res.setHeader) {\n Object.entries(result.headers).forEach(([key, value]) => {\n res.setHeader!(key, value);\n });\n }\n }\n\n /**\n * Auto-routing method handler that dispatches based on request method\n */\n protected async autoRoute(req: TRequest, res: TResponse, ...args: any[]): Promise<any> {\n const method = req.method?.toUpperCase();\n\n switch (method) {\n case 'GET':\n return await this.handleGet(req, res, ...args);\n case 'POST':\n return await this.handlePost(req, res, ...args);\n default:\n if (res.status && res.json) {\n return res.status(405).json({ error: 'Method Not Allowed' });\n }\n throw new Error('Method Not Allowed');\n }\n }\n\n /**\n * Get the processor instance for handler registration\n */\n get webhookProcessor(): WebhookProcessor {\n return this.processor;\n }\n\n /**\n * Abstract method to return the clean handler object\n * Each framework implements this to return their specific handler structure\n */\n abstract getHandlers(): {\n GET: (...args: any[]) => Promise<any>;\n POST: (...args: any[]) => Promise<any>;\n webhook: (...args: any[]) => Promise<any>;\n flow: (...args: any[]) => Promise<any>;\n processor: WebhookProcessor;\n };\n}\n"],"mappings":"wFAqCA,IAAsB,EAAtB,KAAuG,CACnG,UAEA,YAAY,EAA2B,CACnC,KAAK,UAAY,IAAI,EAAiB,EAAO,CAwBjD,MAAgB,oBACZ,EACA,EACA,EACsB,CACtB,OAAO,MAAM,KAAK,UAAU,oBAAoB,EAAM,EAAO,EAAU,CAM3E,MAAgB,eAAe,EAA0C,CACrE,OAAO,MAAM,KAAK,UAAU,eAAe,EAAQ,CAMvD,MAAgB,YAAY,EAA0C,CAClE,OAAO,MAAM,KAAK,UAAU,YAAY,EAAQ,CAMpD,iBAA2B,EAAwD,EAAc,GAAY,CACzG,OAAO,EAAiB,EAAS,EAAI,CAMzC,aAAuB,EAAuB,EAAsB,CAC5D,EAAI,WACJ,OAAO,QAAQ,EAAO,QAAQ,CAAC,SAAS,CAAC,EAAK,KAAW,CACrD,EAAI,UAAW,EAAK,EAAM,EAC5B,CAOV,MAAgB,UAAU,EAAe,EAAgB,GAAG,EAA2B,CAGnF,OAFe,EAAI,QAAQ,aAAa,CAExC,CACI,IAAK,MACD,OAAO,MAAM,KAAK,UAAU,EAAK,EAAK,GAAG,EAAK,CAClD,IAAK,OACD,OAAO,MAAM,KAAK,WAAW,EAAK,EAAK,GAAG,EAAK,CACnD,QACI,GAAI,EAAI,QAAU,EAAI,KAClB,OAAO,EAAI,OAAO,IAAI,CAAC,KAAK,CAAE,MAAO,qBAAsB,CAAC,CAEhE,MAAU,MAAM,qBAAqB,EAOjD,IAAI,kBAAqC,CACrC,OAAO,KAAK"}
|
package/dist/index-3KglHVAg.d.ts
DELETED
|
@@ -1,354 +0,0 @@
|
|
|
1
|
-
import { BaseAPI, BaseClass, BusinessVerticalEnum, RequesterClass, ResponseSuccess, WabaConfigType } from "./base-CfDkvT1x.js";
|
|
2
|
-
|
|
3
|
-
//#region src/api/profile/types/upload.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Upload session information for creating upload sessions.
|
|
6
|
-
*/
|
|
7
|
-
interface UploadSession {
|
|
8
|
-
id: string;
|
|
9
|
-
video?: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Response from creating an upload session.
|
|
13
|
-
*/
|
|
14
|
-
interface UploadSessionResponse {
|
|
15
|
-
id: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Response from uploading business profile media.
|
|
19
|
-
*/
|
|
20
|
-
interface UploadBusinessProfileResponse {
|
|
21
|
-
h: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Upload handle information containing file details and handle.
|
|
25
|
-
*/
|
|
26
|
-
interface UploadHandle {
|
|
27
|
-
handle: string;
|
|
28
|
-
file_size: number;
|
|
29
|
-
upload_result: {
|
|
30
|
-
handle_type: string;
|
|
31
|
-
name: string;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Request parameters for creating upload session.
|
|
36
|
-
*/
|
|
37
|
-
interface CreateUploadSessionParams {
|
|
38
|
-
/**
|
|
39
|
-
* Length of the file to be uploaded in bytes.
|
|
40
|
-
*/
|
|
41
|
-
fileLength: number;
|
|
42
|
-
/**
|
|
43
|
-
* MIME type of the file (e.g., 'image/jpeg').
|
|
44
|
-
*/
|
|
45
|
-
fileType: string;
|
|
46
|
-
/**
|
|
47
|
-
* Name of the file with extension.
|
|
48
|
-
*/
|
|
49
|
-
fileName: string;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Request parameters for uploading media.
|
|
53
|
-
*/
|
|
54
|
-
interface UploadMediaParams {
|
|
55
|
-
/**
|
|
56
|
-
* The upload session ID from createUploadSession response.
|
|
57
|
-
*/
|
|
58
|
-
uploadId: string;
|
|
59
|
-
/**
|
|
60
|
-
* The binary data of the file (Buffer).
|
|
61
|
-
*/
|
|
62
|
-
file: Buffer;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Request parameters for getting upload handle.
|
|
66
|
-
*/
|
|
67
|
-
interface GetUploadHandleParams {
|
|
68
|
-
/**
|
|
69
|
-
* The upload session ID from createUploadSession response.
|
|
70
|
-
*/
|
|
71
|
-
uploadId: string;
|
|
72
|
-
}
|
|
73
|
-
//#endregion
|
|
74
|
-
//#region src/api/profile/types/common.d.ts
|
|
75
|
-
/**
|
|
76
|
-
* Available fields that can be requested when retrieving a business profile.
|
|
77
|
-
*/
|
|
78
|
-
type BusinessProfileField = 'about' | 'address' | 'description' | 'email' | 'profile_picture_url' | 'websites' | 'vertical';
|
|
79
|
-
type BusinessProfileFieldsParam = BusinessProfileField[] | string;
|
|
80
|
-
/**
|
|
81
|
-
* Business profile data structure containing all profile information.
|
|
82
|
-
*/
|
|
83
|
-
interface BusinessProfileData {
|
|
84
|
-
/**
|
|
85
|
-
* The business's About text. This text appears in the business's profile, beneath its profile image,
|
|
86
|
-
* phone number, and contact buttons.
|
|
87
|
-
* - String cannot be empty
|
|
88
|
-
* - Strings must be between 1 and 139 characters
|
|
89
|
-
* - Rendered emojis are supported however their unicode values are not.
|
|
90
|
-
* Emoji unicode values must be Java- or JavaScript-escape encoded
|
|
91
|
-
* - Hyperlinks can be included but will not render as clickable links
|
|
92
|
-
* - Markdown is not supported
|
|
93
|
-
*/
|
|
94
|
-
about?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Address of the business. Character limit 256.
|
|
97
|
-
*/
|
|
98
|
-
address?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Description of the business. Character limit 512.
|
|
101
|
-
*/
|
|
102
|
-
description?: string;
|
|
103
|
-
/**
|
|
104
|
-
* The contact email address (in valid email format) of the business. Character limit 128.
|
|
105
|
-
*/
|
|
106
|
-
email?: string;
|
|
107
|
-
/**
|
|
108
|
-
* The messaging service used for the request. Always set it to "whatsapp" if you are using
|
|
109
|
-
* the WhatsApp Business API.
|
|
110
|
-
*/
|
|
111
|
-
messaging_product: string;
|
|
112
|
-
/**
|
|
113
|
-
* Profile picture URL.
|
|
114
|
-
*/
|
|
115
|
-
profile_picture_url?: string;
|
|
116
|
-
/**
|
|
117
|
-
* The URLs associated with the business. For instance, a website, Facebook Page, or Instagram.
|
|
118
|
-
* - You must include the http:// or https:// portion of the URL
|
|
119
|
-
* - There is a maximum of 2 websites with a maximum of 256 characters each
|
|
120
|
-
*/
|
|
121
|
-
websites?: string[];
|
|
122
|
-
/**
|
|
123
|
-
* Business category. This can be either an empty string or one of the predefined business categories.
|
|
124
|
-
* @see BusinessVerticalEnum for all available options
|
|
125
|
-
*/
|
|
126
|
-
vertical?: BusinessVerticalEnum | string;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Response structure for business profile GET requests.
|
|
130
|
-
*/
|
|
131
|
-
interface BusinessProfileResponse {
|
|
132
|
-
data: BusinessProfileData[];
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Request structure for updating business profile.
|
|
136
|
-
*/
|
|
137
|
-
interface UpdateBusinessProfileRequest {
|
|
138
|
-
/**
|
|
139
|
-
* The messaging service used for the request. Always set it to "whatsapp" if you are using
|
|
140
|
-
* the WhatsApp Business API.
|
|
141
|
-
* @required
|
|
142
|
-
*/
|
|
143
|
-
messaging_product: string;
|
|
144
|
-
/**
|
|
145
|
-
* The business's About text. This text appears in the business's profile, beneath its profile image,
|
|
146
|
-
* phone number, and contact buttons.
|
|
147
|
-
* - String cannot be empty
|
|
148
|
-
* - Strings must be between 1 and 139 characters
|
|
149
|
-
* - Rendered emojis are supported however their unicode values are not.
|
|
150
|
-
* Emoji unicode values must be Java- or JavaScript-escape encoded
|
|
151
|
-
* - Hyperlinks can be included but will not render as clickable links
|
|
152
|
-
* - Markdown is not supported
|
|
153
|
-
*/
|
|
154
|
-
about?: string;
|
|
155
|
-
/**
|
|
156
|
-
* Address of the business. Character limit 256.
|
|
157
|
-
*/
|
|
158
|
-
address?: string;
|
|
159
|
-
/**
|
|
160
|
-
* Description of the business. Character limit 512.
|
|
161
|
-
*/
|
|
162
|
-
description?: string;
|
|
163
|
-
/**
|
|
164
|
-
* Business category. This can be either an empty string or one of the predefined business categories.
|
|
165
|
-
* @see BusinessVerticalEnum for all available options
|
|
166
|
-
*/
|
|
167
|
-
vertical?: BusinessVerticalEnum | string;
|
|
168
|
-
/**
|
|
169
|
-
* The contact email address (in valid email format) of the business. Character limit 128.
|
|
170
|
-
*/
|
|
171
|
-
email?: string;
|
|
172
|
-
/**
|
|
173
|
-
* The URLs associated with the business. For instance, a website, Facebook Page, or Instagram.
|
|
174
|
-
* - You must include the http:// or https:// portion of the URL
|
|
175
|
-
* - There is a maximum of 2 websites with a maximum of 256 characters each
|
|
176
|
-
*/
|
|
177
|
-
websites?: string[];
|
|
178
|
-
/**
|
|
179
|
-
* Handle of the profile picture. This handle is generated when you upload the binary file
|
|
180
|
-
* for the profile picture to Meta using the Resumable Upload API.
|
|
181
|
-
*/
|
|
182
|
-
profile_picture_handle?: string;
|
|
183
|
-
}
|
|
184
|
-
declare class BusinessProfileClass extends BaseClass {
|
|
185
|
-
/**
|
|
186
|
-
* Get your business profile.
|
|
187
|
-
* @param fields Specific fields to be returned in the response. If not specified, all fields will be returned.
|
|
188
|
-
*/
|
|
189
|
-
getBusinessProfile(fields?: BusinessProfileFieldsParam): Promise<BusinessProfileResponse>;
|
|
190
|
-
/**
|
|
191
|
-
* Update your business profile.
|
|
192
|
-
* @param updateRequest The request object containing the fields to update.
|
|
193
|
-
*/
|
|
194
|
-
updateBusinessProfile(updateRequest: UpdateBusinessProfileRequest): Promise<ResponseSuccess>;
|
|
195
|
-
/**
|
|
196
|
-
* Create an upload session for profile picture.
|
|
197
|
-
* @param fileLength Length of the file to be uploaded in bytes.
|
|
198
|
-
* @param fileType MIME type of the file (e.g., 'image/jpeg').
|
|
199
|
-
* @param fileName Name of the file.
|
|
200
|
-
*/
|
|
201
|
-
createUploadSession(fileLength: number, fileType: string, fileName: string): Promise<UploadSessionResponse>;
|
|
202
|
-
/**
|
|
203
|
-
* Upload media file to the upload session.
|
|
204
|
-
* @param uploadId The ID of the upload session.
|
|
205
|
-
* @param file The binary data of the file.
|
|
206
|
-
*/
|
|
207
|
-
uploadMedia(uploadId: string, file: Buffer): Promise<UploadBusinessProfileResponse>;
|
|
208
|
-
/**
|
|
209
|
-
* Get the upload handle information.
|
|
210
|
-
* @param uploadId The ID of the upload session.
|
|
211
|
-
*/
|
|
212
|
-
getUploadHandle(uploadId: string): Promise<UploadHandle>;
|
|
213
|
-
}
|
|
214
|
-
//#endregion
|
|
215
|
-
//#region src/api/profile/BusinessProfileApi.d.ts
|
|
216
|
-
/**
|
|
217
|
-
* API for managing WhatsApp Business Profiles and profile pictures.
|
|
218
|
-
*
|
|
219
|
-
* This API allows you to:
|
|
220
|
-
* - Get business profile information
|
|
221
|
-
* - Update business profile details
|
|
222
|
-
* - Upload profile pictures using a three-step process:
|
|
223
|
-
* 1. Create an upload session
|
|
224
|
-
* 2. Upload the image binary data
|
|
225
|
-
* 3. Get the upload handle to use when updating the profile
|
|
226
|
-
*/
|
|
227
|
-
declare class BusinessProfileApi extends BaseAPI implements BusinessProfileClass {
|
|
228
|
-
private readonly endpoint;
|
|
229
|
-
constructor(config: WabaConfigType, client: RequesterClass);
|
|
230
|
-
/**
|
|
231
|
-
* Get your business profile information.
|
|
232
|
-
*
|
|
233
|
-
* Use this method to retrieve details about your WhatsApp business profile, including
|
|
234
|
-
* about text, address, description, email, profile picture URL, websites, and vertical.
|
|
235
|
-
*
|
|
236
|
-
* @param fields Fields to be returned in the response. If not specified, all fields will be returned.
|
|
237
|
-
* Possible values: about, address, description, email, profile_picture_url, websites, vertical
|
|
238
|
-
* @returns The business profile information.
|
|
239
|
-
*
|
|
240
|
-
* @example
|
|
241
|
-
* // Get all business profile fields
|
|
242
|
-
* const profile = await whatsappClient.businessProfile.getBusinessProfile();
|
|
243
|
-
*
|
|
244
|
-
* // Get specific business profile fields
|
|
245
|
-
* const profile = await whatsappClient.businessProfile.getBusinessProfile('about,address,email');
|
|
246
|
-
*
|
|
247
|
-
* // Using the BusinessProfileFieldsParam type
|
|
248
|
-
* const profile = await whatsappClient.businessProfile.getBusinessProfile(['about', 'address', 'email']);
|
|
249
|
-
*/
|
|
250
|
-
getBusinessProfile(fields?: BusinessProfileFieldsParam): Promise<BusinessProfileResponse>;
|
|
251
|
-
/**
|
|
252
|
-
* Update your business profile.
|
|
253
|
-
*
|
|
254
|
-
* Use this method to update one or more fields of your WhatsApp business profile.
|
|
255
|
-
*
|
|
256
|
-
* @param updateRequest The request object containing the fields to update.
|
|
257
|
-
* - messaging_product: Required. Always set to "whatsapp".
|
|
258
|
-
* - about: Optional. Business's About text (1-139 characters).
|
|
259
|
-
* - address: Optional. Business address (max 256 characters).
|
|
260
|
-
* - description: Optional. Business description (max 512 characters).
|
|
261
|
-
* - vertical: Optional. Business category (use BusinessVerticalEnum for type safety).
|
|
262
|
-
* - email: Optional. Contact email (valid format, max 128 characters).
|
|
263
|
-
* - websites: Optional. Up to 2 URLs (max 256 characters each).
|
|
264
|
-
* - profile_picture_handle: Optional. Handle from upload process.
|
|
265
|
-
* @returns Response indicating success or failure.
|
|
266
|
-
*
|
|
267
|
-
* @example
|
|
268
|
-
* // Update business profile with multiple fields including vertical using enum
|
|
269
|
-
* await whatsappClient.businessProfile.updateBusinessProfile({
|
|
270
|
-
* messaging_product: 'whatsapp',
|
|
271
|
-
* about: 'We provide excellent service',
|
|
272
|
-
* email: 'contact@example.com',
|
|
273
|
-
* websites: ['https://example.com'],
|
|
274
|
-
* vertical: BusinessVerticalEnum.RETAIL
|
|
275
|
-
* });
|
|
276
|
-
*/
|
|
277
|
-
updateBusinessProfile(updateRequest: UpdateBusinessProfileRequest): Promise<ResponseSuccess>;
|
|
278
|
-
/**
|
|
279
|
-
* Create an upload session for a profile picture.
|
|
280
|
-
*
|
|
281
|
-
* This is the first step in the profile picture upload process.
|
|
282
|
-
*
|
|
283
|
-
* @param fileLength Length of the file to be uploaded in bytes.
|
|
284
|
-
* @param fileType MIME type of the file (e.g., 'image/jpeg').
|
|
285
|
-
* @param fileName Name of the file with extension.
|
|
286
|
-
* @returns Response containing the upload session ID needed for the next step.
|
|
287
|
-
*
|
|
288
|
-
* @example
|
|
289
|
-
* // Create upload session for profile picture
|
|
290
|
-
* const session = await whatsappClient.businessProfile.createUploadSession(
|
|
291
|
-
* fileBuffer.length,
|
|
292
|
-
* 'image/jpeg',
|
|
293
|
-
* 'profile.jpg'
|
|
294
|
-
* );
|
|
295
|
-
* const uploadSessionId = session.upload_session_id;
|
|
296
|
-
*/
|
|
297
|
-
createUploadSession(fileLength: number, fileType: string, fileName: string): Promise<UploadSessionResponse>;
|
|
298
|
-
/**
|
|
299
|
-
* Upload media file to the upload session.
|
|
300
|
-
*
|
|
301
|
-
* This is the second step in the profile picture upload process.
|
|
302
|
-
* Upload the binary content of the file to the previously created upload session.
|
|
303
|
-
*
|
|
304
|
-
* @param uploadId The upload session ID from createUploadSession response.
|
|
305
|
-
* @param file The binary data of the file (Buffer).
|
|
306
|
-
* @returns Response indicating success or failure.
|
|
307
|
-
*
|
|
308
|
-
* @example
|
|
309
|
-
* // Upload the actual file content
|
|
310
|
-
* await whatsappClient.businessProfile.uploadMedia(
|
|
311
|
-
* uploadSessionId,
|
|
312
|
-
* fileBuffer
|
|
313
|
-
* );
|
|
314
|
-
*/
|
|
315
|
-
uploadMedia(uploadId: string, file: Buffer): Promise<UploadBusinessProfileResponse>;
|
|
316
|
-
/**
|
|
317
|
-
* Get the upload handle information.
|
|
318
|
-
*
|
|
319
|
-
* This is the third step in the profile picture upload process.
|
|
320
|
-
* After uploading the file, get the handle to use when updating the profile.
|
|
321
|
-
*
|
|
322
|
-
* @param uploadId The upload session ID from createUploadSession response.
|
|
323
|
-
* @returns Response containing the upload handle information.
|
|
324
|
-
*
|
|
325
|
-
* @example
|
|
326
|
-
* // Complete profile picture update process
|
|
327
|
-
* // 1. Create upload session
|
|
328
|
-
* const session = await whatsappClient.businessProfile.createUploadSession(
|
|
329
|
-
* fileBuffer.length, 'image/jpeg', 'profile.jpg'
|
|
330
|
-
* );
|
|
331
|
-
*
|
|
332
|
-
* // 2. Upload the image data
|
|
333
|
-
* await whatsappClient.businessProfile.uploadMedia(
|
|
334
|
-
* session.upload_session_id, fileBuffer
|
|
335
|
-
* );
|
|
336
|
-
*
|
|
337
|
-
* // 3. Get the handle for the uploaded file
|
|
338
|
-
* const handleInfo = await whatsappClient.businessProfile.getUploadHandle(
|
|
339
|
-
* session.upload_session_id
|
|
340
|
-
* );
|
|
341
|
-
*
|
|
342
|
-
* // 4. Update profile with new picture and business information
|
|
343
|
-
* await whatsappClient.businessProfile.updateBusinessProfile({
|
|
344
|
-
* messaging_product: 'whatsapp',
|
|
345
|
-
* profile_picture_handle: handleInfo.handle,
|
|
346
|
-
* vertical: BusinessVerticalEnum.RESTAURANT,
|
|
347
|
-
* about: 'Delicious food served daily'
|
|
348
|
-
* });
|
|
349
|
-
*/
|
|
350
|
-
getUploadHandle(uploadId: string): Promise<UploadHandle>;
|
|
351
|
-
}
|
|
352
|
-
//#endregion
|
|
353
|
-
export { BusinessProfileApi, type BusinessProfileClass, type BusinessProfileData, type BusinessProfileField, type BusinessProfileFieldsParam, type BusinessProfileResponse, type CreateUploadSessionParams, type GetUploadHandleParams, type UpdateBusinessProfileRequest, type UploadBusinessProfileResponse, type UploadHandle, type UploadMediaParams, type UploadSession, type UploadSessionResponse };
|
|
354
|
-
//# sourceMappingURL=index-3KglHVAg.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-3KglHVAg.d.ts","names":[],"sources":["../src/api/profile/types/upload.ts","../src/api/profile/types/common.ts","../src/api/profile/BusinessProfileApi.ts"],"sourcesContent":[],"mappings":";;;;;;AAGiB,UAAA,aAAA,CAAa;EAQb,EAAA,EAAA,MAAA;EAOA,KAAA,CAAA,EAAA,OAAA;AAOjB;AAYA;AAkBA;AAcA;UA1DiB,qBAAA;;;ACHjB;AASA;AAKA;AAiDiB,UDrDA,6BAAA,CCsDP;EAMO,CAAA,EAAA,MAAA;AAiDjB;;;;AAK6D,UD3G5C,YAAA,CC2G4C;QAMpB,EAAA,MAAA;WAAuC,EAAA,MAAA;eAAR,EAAA;IAQiB,WAAA,EAAA,MAAA;IAAR,IAAA,EAAA,MAAA;;;;;;AAnB/B,UD1FjC,yBAAA,CC0FiC;EAAS;;;;EC3GtC;;;UAG2B,EAAA,MAAA;;;;UA2DD,EAAA,MAAA;;;;;AAgED,UF3F7B,iBAAA,CE2F6B;;;;UAsCD,EAAA,MAAA;;;;QFzHnC;;;;;UAMO,qBAAA;;;;;;;;AA1DjB;AAOA;AAOA;AAYiB,KC7BL,oBAAA,GD6B8B,OAAA,GAAA,SAAA,GAAA,aAAA,GAAA,OAAA,GAAA,qBAAA,GAAA,UAAA,GAAA,UAAA;AAkBzB,KCtCL,0BAAA,GAA6B,oBD8CzB,EAAA,GAAA,MAAA;AAMhB;;;UC/CiB,mBAAA;EAdL;AASZ;AAKA;AAiDA;AAOA;AAiDA;;;;;OAWyC,C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