meta-cloud-api 0.2.34 → 0.2.36
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/{BusinessProfileApi-DDkv2WQK.d.ts → BusinessProfileApi-DO28tMcf.d.ts} +3 -3
- package/dist/{EncryptionApi-CwxQlC-2.d.ts → EncryptionApi-CFuuNH2K.d.ts} +1 -1
- package/dist/{FlowApi-C5-2BGAw.d.ts → FlowApi-Mwlby1Rl.d.ts} +2 -2
- package/dist/{MediaApi-VqxndaBJ.d.ts → MediaApi-CyoByati.d.ts} +1 -1
- package/dist/{MessageApi-CHc6bn3g.d.ts → MessageApi-BU1WUNKS.d.ts} +2 -2
- package/dist/{PhoneNumberApi-C-bs6YAe.d.ts → PhoneNumberApi-C3Hmh_nZ.d.ts} +2 -2
- package/dist/{QrCodeApi-BjlyPUXV.d.ts → QrCodeApi-BPsHp3ad.d.ts} +1 -1
- package/dist/{RegistrationApi-D7Bg8BUz.d.ts → RegistrationApi-DI9NskvK.d.ts} +2 -2
- package/dist/{TemplateApi-dmZbvMkO.d.ts → TemplateApi-DXr47lZe.d.ts} +41 -6
- package/dist/{TwoStepVerificationApi-DaYWPjY_.d.ts → TwoStepVerificationApi-CICKknhN.d.ts} +1 -1
- package/dist/{WabaApi-Qyk7PXMh.d.ts → WabaApi-DZurKSzA.d.ts} +2 -2
- package/dist/WebhookHandler-q8tq2j0d.d.ts +733 -0
- package/dist/{base-BG2gtoDs.d.ts → base-GKqD_DhO.d.ts} +2 -2
- package/dist/chunk-4LWNMCXG.js +3 -0
- package/dist/chunk-4LWNMCXG.js.map +1 -0
- package/dist/chunk-FLDBNTNY.js +2 -0
- package/dist/chunk-FLDBNTNY.js.map +1 -0
- package/dist/{chunk-FFOE5YKT.js → chunk-GT3XQN7Y.js} +2 -2
- package/dist/chunk-GT3XQN7Y.js.map +1 -0
- package/dist/chunk-I222VSWK.js +2 -0
- package/dist/chunk-I222VSWK.js.map +1 -0
- package/dist/{chunk-AQTZR5SI.js → chunk-LGLRGXCE.js} +2 -2
- package/dist/{chunk-AQTZR5SI.js.map → chunk-LGLRGXCE.js.map} +1 -1
- package/dist/chunk-MTRF47KZ.js +3 -0
- package/dist/chunk-MTRF47KZ.js.map +1 -0
- package/dist/chunk-QCFJGLDQ.js +2 -0
- package/dist/chunk-QCFJGLDQ.js.map +1 -0
- package/dist/{chunk-XIIJD6SG.js → chunk-R36L2XYO.js} +2 -2
- package/dist/chunk-R36L2XYO.js.map +1 -0
- package/dist/core/webhook/index.d.ts +21 -0
- package/dist/core/webhook/index.js +2 -0
- package/dist/core/webhook/index.js.map +1 -0
- package/dist/core/whatsapp/index.d.ts +100 -0
- package/dist/core/whatsapp/index.js +2 -0
- package/dist/core/whatsapp/index.js.map +1 -0
- package/dist/{enums-Z1f7QuVx.d.ts → enums-CM95zXd_.d.ts} +19 -8
- package/dist/features/encryption/index.d.ts +4 -4
- package/dist/features/encryption/index.js +1 -1
- package/dist/features/flow/index.d.ts +4 -4
- package/dist/features/flow/index.js +1 -1
- package/dist/features/media/index.d.ts +4 -4
- package/dist/features/media/index.js +1 -1
- package/dist/features/messages/index.d.ts +4 -4
- package/dist/features/messages/index.js +1 -1
- package/dist/features/phone/index.d.ts +4 -4
- package/dist/features/phone/index.js +1 -1
- package/dist/features/profile/index.d.ts +4 -4
- package/dist/features/profile/index.js +1 -1
- package/dist/features/qrCode/index.d.ts +4 -4
- package/dist/features/qrCode/index.js +1 -1
- package/dist/features/registration/index.d.ts +4 -4
- package/dist/features/registration/index.js +1 -1
- package/dist/features/template/index.d.ts +210 -5
- package/dist/features/template/index.js +1 -1
- package/dist/features/twoStepVerification/index.d.ts +4 -4
- package/dist/features/twoStepVerification/index.js +1 -1
- package/dist/features/waba/index.d.ts +4 -4
- package/dist/features/waba/index.js +1 -1
- package/dist/index.d.ts +35 -698
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/shared/types/config.d.ts +1 -1
- package/dist/shared/types/enums.d.ts +1 -1
- package/dist/shared/types/enums.js +1 -1
- package/package.json +1 -2
- package/dist/chunk-EYGUX4EA.js +0 -2
- package/dist/chunk-EYGUX4EA.js.map +0 -1
- package/dist/chunk-FFOE5YKT.js.map +0 -1
- package/dist/chunk-XIIJD6SG.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as BaseClass, R as ResponseSuccess, B as BaseAPI, a as RequesterClass } from './base-GKqD_DhO.js';
|
|
2
2
|
import { WabaConfigType } from './shared/types/config.js';
|
|
3
|
-
import {
|
|
3
|
+
import { B as BusinessVerticalEnum } from './enums-CM95zXd_.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Upload session information for creating upload sessions.
|
|
@@ -349,4 +349,4 @@ declare class BusinessProfileApi extends BaseAPI implements BusinessProfileClass
|
|
|
349
349
|
getUploadHandle(uploadId: string): Promise<UploadHandle>;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
export { BusinessProfileApi as B, type CreateUploadSessionParams as C, type GetUploadHandleParams as G, type UpdateBusinessProfileRequest as U, BusinessProfileClass as a, type
|
|
352
|
+
export { BusinessProfileApi as B, type CreateUploadSessionParams as C, type GetUploadHandleParams as G, type UpdateBusinessProfileRequest as U, BusinessProfileClass as a, type BusinessProfileData as b, type BusinessProfileField as c, type BusinessProfileFieldsParam as d, type BusinessProfileResponse as e, type UploadBusinessProfileResponse as f, type UploadHandle as g, type UploadMediaParams as h, type UploadSession as i, type UploadSessionResponse as j };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as ResponseData, R as ResponseSuccess, B as BaseAPI, a as RequesterClass } from './base-GKqD_DhO.js';
|
|
2
2
|
import { WabaConfigType } from './shared/types/config.js';
|
|
3
3
|
|
|
4
4
|
type EncryptionPublicKeyResponse = ResponseData<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as ResponseSuccess, B as BaseAPI, a as RequesterClass } from './base-GKqD_DhO.js';
|
|
2
2
|
import { WabaConfigType } from './shared/types/config.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -504,4 +504,4 @@ declare class FlowApi extends BaseAPI implements FlowClass {
|
|
|
504
504
|
}): Promise<FlowMigrationResponse>;
|
|
505
505
|
}
|
|
506
506
|
|
|
507
|
-
export { type CreateFlowResponse as C, FlowApi as F, type UpdateFlowResponse as U, type ValidateFlowJsonResponse as V, type
|
|
507
|
+
export { type CreateFlowResponse as C, FlowApi as F, type UpdateFlowResponse as U, type ValidateFlowJsonResponse as V, type Flow as a, type FlowType as b, FlowActionEnum as c, type FlowAssetsResponse as d, FlowCategoryEnum as e, type FlowClass as f, type FlowEndpointRequest as g, type FlowEndpointResponse as h, type FlowMigrationResponse as i, type FlowPreviewResponse as j, type FlowsListResponse as k, FlowStatusEnum as l, type FlowValidationError as m, FlowTypeEnum as n, type FlowDataExchangeRequest as o, type FlowErrorNotificationRequest as p, type FlowHealthCheckRequest as q };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as ResponseSuccess, B as BaseAPI, a as RequesterClass } from './base-GKqD_DhO.js';
|
|
2
2
|
import { WabaConfigType } from './shared/types/config.js';
|
|
3
3
|
|
|
4
4
|
type MediaResponse = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as BaseClass, G as GeneralRequestBody, B as BaseAPI, a as RequesterClass } from './base-GKqD_DhO.js';
|
|
2
2
|
import { WabaConfigType } from './shared/types/config.js';
|
|
3
|
-
import {
|
|
3
|
+
import { g as InteractiveTypesEnum, d as ComponentTypesEnum, L as LanguagesEnum, P as ParametersTypesEnum, C as CurrencyCodesEnum, c as ButtonTypesEnum, b as ButtonPositionEnum, M as MessageTypesEnum } from './enums-CM95zXd_.js';
|
|
4
4
|
|
|
5
5
|
interface ReactionParams {
|
|
6
6
|
messageId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Paging,
|
|
1
|
+
import { P as Paging, R as ResponseSuccess, B as BaseAPI, a as RequesterClass } from './base-GKqD_DhO.js';
|
|
2
2
|
import { WabaConfigType } from './shared/types/config.js';
|
|
3
3
|
|
|
4
4
|
type QualityRating = 'GREEN' | 'YELLOW' | 'RED' | 'NA';
|
|
@@ -138,4 +138,4 @@ declare class PhoneNumberApi extends BaseAPI implements PhoneNumberClass {
|
|
|
138
138
|
verifyCode(request: VerifyCodeRequest): Promise<ResponseSuccess>;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
export { type AccountMode as A, type CodeVerificationStatus as C, type HealthStatus as H, type MessagingLimitTier as M, PhoneNumberApi as P, type QualityRating as Q, type RequestVerificationCodeRequest as R, type Throughput as T, type VerifyCodeRequest as V, type
|
|
141
|
+
export { type AccountMode as A, type CodeVerificationStatus as C, type HealthStatus as H, type MessagingLimitTier as M, PhoneNumberApi as P, type QualityRating as Q, type RequestVerificationCodeRequest as R, type Throughput as T, type VerifyCodeRequest as V, type Cursors as a, type HealthStatusEntity as b, type PhoneNumberClass as c, type PhoneNumberResponse as d, type PhoneNumbersResponse as e, type PlatformType as f, type QualityScore as g, type ThroughputLevel as h, type TwoStepVerificationParams as i };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as ResponseData, R as ResponseSuccess, B as BaseAPI, a as RequesterClass } from './base-GKqD_DhO.js';
|
|
2
2
|
import { WabaConfigType } from './shared/types/config.js';
|
|
3
3
|
|
|
4
4
|
type QrCodeResponse = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as ResponseSuccess, B as BaseAPI, a as RequesterClass } from './base-GKqD_DhO.js';
|
|
2
2
|
import { WabaConfigType } from './shared/types/config.js';
|
|
3
|
-
import { D as DataLocalizationRegionEnum } from './enums-
|
|
3
|
+
import { D as DataLocalizationRegionEnum } from './enums-CM95zXd_.js';
|
|
4
4
|
|
|
5
5
|
type RegistrationRequest = {
|
|
6
6
|
messaging_product: 'whatsapp';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as GeneralRequestBody,
|
|
1
|
+
import { G as GeneralRequestBody, R as ResponseSuccess, b as ResponsePagination, B as BaseAPI, a as RequesterClass } from './base-GKqD_DhO.js';
|
|
2
2
|
import { WabaConfigType } from './shared/types/config.js';
|
|
3
|
-
import { L as LanguagesEnum,
|
|
3
|
+
import { L as LanguagesEnum, a as CategoryEnum, T as TemplateStatusEnum } from './enums-CM95zXd_.js';
|
|
4
4
|
|
|
5
|
-
type TemplateFormat = 'TEXT' | 'IMAGE' | 'VIDEO' | 'DOCUMENT' | 'LOCATION';
|
|
5
|
+
type TemplateFormat = 'TEXT' | 'IMAGE' | 'VIDEO' | 'DOCUMENT' | 'LOCATION' | 'PRODUCT';
|
|
6
6
|
type PhoneNumberButton = {
|
|
7
7
|
type: 'PHONE_NUMBER';
|
|
8
8
|
text: string;
|
|
@@ -33,14 +33,32 @@ type FlowButton = {
|
|
|
33
33
|
};
|
|
34
34
|
type MPMButton = {
|
|
35
35
|
type: 'MPM';
|
|
36
|
+
action?: {
|
|
37
|
+
thumbnail_product_retailer_id: string;
|
|
38
|
+
sections: Array<{
|
|
39
|
+
title?: string;
|
|
40
|
+
product_items: Array<{
|
|
41
|
+
product_retailer_id: string;
|
|
42
|
+
}>;
|
|
43
|
+
}>;
|
|
44
|
+
};
|
|
36
45
|
};
|
|
37
46
|
type OTPButton = {
|
|
38
47
|
type: 'OTP';
|
|
39
48
|
};
|
|
40
49
|
type SPMButton = {
|
|
41
50
|
type: 'SPM';
|
|
51
|
+
action?: {
|
|
52
|
+
product_retailer_id: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
type CatalogButton = {
|
|
56
|
+
type: 'CATALOG';
|
|
57
|
+
action?: {
|
|
58
|
+
thumbnail_product_retailer_id: string;
|
|
59
|
+
};
|
|
42
60
|
};
|
|
43
|
-
type TemplateButton = PhoneNumberButton | URLButton | QuickReplyButton | CopyCodeButton | FlowButton | MPMButton | OTPButton | SPMButton;
|
|
61
|
+
type TemplateButton = PhoneNumberButton | URLButton | QuickReplyButton | CopyCodeButton | FlowButton | MPMButton | OTPButton | SPMButton | CatalogButton;
|
|
44
62
|
type TemplateHeaderExample = {
|
|
45
63
|
header_text?: string[];
|
|
46
64
|
header_text_named_params?: Array<{
|
|
@@ -70,7 +88,24 @@ type TemplateFooter = {
|
|
|
70
88
|
type: 'FOOTER';
|
|
71
89
|
text: string;
|
|
72
90
|
};
|
|
73
|
-
type
|
|
91
|
+
type TemplateButtons = {
|
|
92
|
+
type: 'BUTTONS';
|
|
93
|
+
buttons: TemplateButton[];
|
|
94
|
+
};
|
|
95
|
+
type TemplateLimitedTimeOffer = {
|
|
96
|
+
type: 'LIMITED_TIME_OFFER';
|
|
97
|
+
limited_time_offer: {
|
|
98
|
+
expiration_time_ms: number;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
type TemplateCarousel = {
|
|
102
|
+
type: 'CAROUSEL';
|
|
103
|
+
cards: Array<{
|
|
104
|
+
card_index: number;
|
|
105
|
+
components: ComponentTypes[];
|
|
106
|
+
}>;
|
|
107
|
+
};
|
|
108
|
+
type ComponentTypes = TemplateHeader | TemplateBody | TemplateFooter | TemplateButtons | TemplateLimitedTimeOffer | TemplateCarousel;
|
|
74
109
|
type TemplateRequestBody = GeneralRequestBody & {
|
|
75
110
|
name: string;
|
|
76
111
|
language: LanguagesEnum;
|
|
@@ -114,4 +149,4 @@ declare class TemplateApi extends BaseAPI implements TemplateClass {
|
|
|
114
149
|
deleteTemplate(params: TemplateDeleteParams): Promise<ResponseSuccess>;
|
|
115
150
|
}
|
|
116
151
|
|
|
117
|
-
export {
|
|
152
|
+
export { type CatalogButton as C, type FlowButton as F, type MPMButton as M, type OTPButton as O, type PhoneNumberButton as P, type QuickReplyButton as Q, type SPMButton as S, type TemplateFormat as T, type URLButton as U, type TemplateRequestBody as a, TemplateClass as b, type TemplateDeleteParams as c, type TemplateGetParams as d, type TemplateResponse as e, TemplateApi as f, type ComponentTypes as g, type CopyCodeButton as h, type TemplateBody as i, type TemplateButton as j, type TemplateButtons as k, type TemplateCarousel as l, type TemplateFooter as m, type TemplateHeader as n, type TemplateHeaderExample as o, type TemplateLimitedTimeOffer as p };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as ResponseSuccess, B as BaseAPI, a as RequesterClass } from './base-GKqD_DhO.js';
|
|
2
2
|
import { WabaConfigType } from './shared/types/config.js';
|
|
3
3
|
|
|
4
4
|
type TwoStepVerificationRequest = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as ResponseSuccess, B as BaseAPI, a as RequesterClass } from './base-GKqD_DhO.js';
|
|
2
2
|
import { WabaConfigType } from './shared/types/config.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -171,4 +171,4 @@ declare class WabaApi extends BaseAPI implements WABAClass {
|
|
|
171
171
|
unsubscribeFromWaba(): Promise<ResponseSuccess>;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
export { type UpdateWabaSubscription as U, WabaApi as W, type
|
|
174
|
+
export { type UpdateWabaSubscription as U, WabaApi as W, type WabaAccount as a, type WABAClass as b, type WabaSubscriptions as c };
|