@pushwoosh/rpc-v2-http-api-data 0.2.209 → 0.2.211
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/data.js +18 -0
- package/package.json +1 -1
- package/whatsapp.d.ts +8 -0
package/data.js
CHANGED
|
@@ -30673,6 +30673,12 @@ export const data = {
|
|
|
30673
30673
|
"response": "pushwoosh.rpc_v2.whatsapp.UpdateWelcomeMessageResponse",
|
|
30674
30674
|
"method": "put",
|
|
30675
30675
|
"path": "/api/whatsapp/welcome"
|
|
30676
|
+
},
|
|
30677
|
+
"DeleteWelcomeMessage": {
|
|
30678
|
+
"request": "pushwoosh.rpc_v2.whatsapp.DeleteWelcomeMessageRequest",
|
|
30679
|
+
"response": "pushwoosh.rpc_v2.whatsapp.DeleteWelcomeMessageResponse",
|
|
30680
|
+
"method": "delete",
|
|
30681
|
+
"path": "/api/whatsapp/welcome"
|
|
30676
30682
|
}
|
|
30677
30683
|
}
|
|
30678
30684
|
},
|
|
@@ -30861,6 +30867,18 @@ export const data = {
|
|
|
30861
30867
|
}
|
|
30862
30868
|
}
|
|
30863
30869
|
},
|
|
30870
|
+
"pushwoosh.rpc_v2.whatsapp.DeleteWelcomeMessageRequest": {
|
|
30871
|
+
"type": "I",
|
|
30872
|
+
"fields": {
|
|
30873
|
+
"application": {
|
|
30874
|
+
"type": "string"
|
|
30875
|
+
}
|
|
30876
|
+
}
|
|
30877
|
+
},
|
|
30878
|
+
"pushwoosh.rpc_v2.whatsapp.DeleteWelcomeMessageResponse": {
|
|
30879
|
+
"type": "I",
|
|
30880
|
+
"fields": {}
|
|
30881
|
+
},
|
|
30864
30882
|
"pushwoosh.rpc_v2.whatsapp_presets.WhatsAppPresetsService": {
|
|
30865
30883
|
"type": "S",
|
|
30866
30884
|
"key": "whatsAppPresets",
|
package/package.json
CHANGED
package/whatsapp.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type WhatsAppService_AuthResponseCode = RpcMethod<AuthResponseCodeRequest
|
|
|
5
5
|
export type WhatsAppService_FetchCatalog = RpcMethod<FetchCatalogRequest, FetchCatalogResponse>;
|
|
6
6
|
export type WhatsAppService_GetWelcomeMessage = RpcMethod<GetWelcomeMessageRequest, GetWelcomeMessageResponse>;
|
|
7
7
|
export type WhatsAppService_UpdateWelcomeMessage = RpcMethod<UpdateWelcomeMessageRequest, UpdateWelcomeMessageResponse>;
|
|
8
|
+
export type WhatsAppService_DeleteWelcomeMessage = RpcMethod<DeleteWelcomeMessageRequest, DeleteWelcomeMessageResponse>;
|
|
8
9
|
export interface WhatsAppService {
|
|
9
10
|
/** Connects a WhatsApp Business Account to an application code via Meta Cloud API, storing the WABA and phone-number IDs, subscribing the number to Pushwoosh webhooks and registering it with Meta. Use for direct Meta onboarding; use connect_whatsapp_account_twilio for Twilio-routed senders. */
|
|
10
11
|
RegisterWABA: WhatsAppService_RegisterWABA;
|
|
@@ -18,6 +19,8 @@ export interface WhatsAppService {
|
|
|
18
19
|
GetWelcomeMessage: WhatsAppService_GetWelcomeMessage;
|
|
19
20
|
/** Creates or updates the WhatsApp welcome message of an application. Sending it enables reporting: every greeting is reported under a service campaign created on the first save. */
|
|
20
21
|
UpdateWelcomeMessage: WhatsAppService_UpdateWelcomeMessage;
|
|
22
|
+
/** Deletes the WhatsApp welcome message of an application together with its text and attachments; NOT_FOUND when the application has none. The reporting campaign survives, so the statistics of the greetings already sent stay readable. */
|
|
23
|
+
DeleteWelcomeMessage: WhatsAppService_DeleteWelcomeMessage;
|
|
21
24
|
}
|
|
22
25
|
export type RegisterWABARequest = {
|
|
23
26
|
/** application code */
|
|
@@ -100,3 +103,8 @@ export type UpdateWelcomeMessageRequest = {
|
|
|
100
103
|
export type UpdateWelcomeMessageResponse = {
|
|
101
104
|
welcomeMessage: WelcomeMessage;
|
|
102
105
|
};
|
|
106
|
+
export type DeleteWelcomeMessageRequest = {
|
|
107
|
+
/** application code */
|
|
108
|
+
application?: string;
|
|
109
|
+
};
|
|
110
|
+
export type DeleteWelcomeMessageResponse = {};
|