@pushwoosh/rpc-v2-http-api-data 0.2.482 → 0.2.484
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 +19 -0
- package/package.json +1 -1
- package/whatsapp_presets.d.ts +19 -1
package/data.js
CHANGED
|
@@ -40379,6 +40379,9 @@ export const data = {
|
|
|
40379
40379
|
},
|
|
40380
40380
|
"searchByName": {
|
|
40381
40381
|
"type": "string"
|
|
40382
|
+
},
|
|
40383
|
+
"includeProjections": {
|
|
40384
|
+
"type": "boolean"
|
|
40382
40385
|
}
|
|
40383
40386
|
}
|
|
40384
40387
|
},
|
|
@@ -40402,9 +40405,25 @@ export const data = {
|
|
|
40402
40405
|
},
|
|
40403
40406
|
"managedBy": {
|
|
40404
40407
|
"type": "string"
|
|
40408
|
+
},
|
|
40409
|
+
"presetCode": {
|
|
40410
|
+
"type": "string"
|
|
40411
|
+
},
|
|
40412
|
+
"approvalStatus": {
|
|
40413
|
+
"type": "pushwoosh.rpc_v2.whatsapp_presets.WhatsAppApprovalStatus"
|
|
40405
40414
|
}
|
|
40406
40415
|
}
|
|
40407
40416
|
},
|
|
40417
|
+
"pushwoosh.rpc_v2.whatsapp_presets.WhatsAppApprovalStatus": {
|
|
40418
|
+
"type": "E",
|
|
40419
|
+
"values": [
|
|
40420
|
+
"WHATSAPP_APPROVAL_STATUS_UNSPECIFIED",
|
|
40421
|
+
"WHATSAPP_APPROVAL_STATUS_NOT_SUBMITTED",
|
|
40422
|
+
"WHATSAPP_APPROVAL_STATUS_PENDING",
|
|
40423
|
+
"WHATSAPP_APPROVAL_STATUS_APPROVED",
|
|
40424
|
+
"WHATSAPP_APPROVAL_STATUS_REJECTED"
|
|
40425
|
+
]
|
|
40426
|
+
},
|
|
40408
40427
|
"pushwoosh.rpc_v2.whatsapp_presets.WhatsAppPresetProperties": {
|
|
40409
40428
|
"type": "I",
|
|
40410
40429
|
"fields": {
|
package/package.json
CHANGED
package/whatsapp_presets.d.ts
CHANGED
|
@@ -12,6 +12,11 @@ export type ListWhatsAppPresetsRequest = {
|
|
|
12
12
|
application?: string;
|
|
13
13
|
/** Free-text filter matched against preset name or body content (Meta name_or_content). */
|
|
14
14
|
searchByName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Also return rich message presets (chat preset projections) as their own entries, approved or not, and drop
|
|
17
|
+
* the Meta templates submitted from them. Off by default so existing pickers see only Meta templates.
|
|
18
|
+
*/
|
|
19
|
+
includeProjections?: boolean;
|
|
15
20
|
};
|
|
16
21
|
export type WhatsAppPreset = {
|
|
17
22
|
name: string;
|
|
@@ -21,7 +26,20 @@ export type WhatsAppPreset = {
|
|
|
21
26
|
updated: Date;
|
|
22
27
|
/** Code of the chat preset this template was submitted from; empty for templates made in Meta. Output only. */
|
|
23
28
|
managedBy: string;
|
|
29
|
+
/**
|
|
30
|
+
* Code of the WhatsApp preset projected from a chat preset, to send by as messaging `preset`; empty for Meta
|
|
31
|
+
* templates. Output only.
|
|
32
|
+
*/
|
|
33
|
+
presetCode: string;
|
|
34
|
+
/** Meta approval of the template the projection sends outside the 24h window. Output only, projections only. */
|
|
35
|
+
approvalStatus: WhatsAppApprovalStatus;
|
|
24
36
|
};
|
|
37
|
+
/** WhatsAppApprovalStatus is how far Meta got with a rich message preset's template. */
|
|
38
|
+
export type WhatsAppApprovalStatus = 'WHATSAPP_APPROVAL_STATUS_UNSPECIFIED'
|
|
39
|
+
/** Never submitted: the preset sends only inside the 24h window. */
|
|
40
|
+
| 'WHATSAPP_APPROVAL_STATUS_NOT_SUBMITTED' | 'WHATSAPP_APPROVAL_STATUS_PENDING'
|
|
41
|
+
/** An approved template serves the preset, even if a newer edit is still in review. */
|
|
42
|
+
| 'WHATSAPP_APPROVAL_STATUS_APPROVED' | 'WHATSAPP_APPROVAL_STATUS_REJECTED';
|
|
25
43
|
export type WhatsAppPresetProperties = {
|
|
26
44
|
contentId: string;
|
|
27
45
|
text: string;
|
|
@@ -49,7 +67,7 @@ export type ListWhatsAppPresetsResponse = {
|
|
|
49
67
|
total: number;
|
|
50
68
|
};
|
|
51
69
|
export type GetWhatsAppPresetRequest = {
|
|
52
|
-
/** Preset code
|
|
70
|
+
/** Preset code to fetch: a Meta template (format templateName:language) or a rich message preset's preset_code. */
|
|
53
71
|
code?: string;
|
|
54
72
|
/** Application code (format XXXXX-XXXXX) the preset belongs to; must have the WhatsApp platform configured. */
|
|
55
73
|
application?: string;
|