@pushwoosh/rpc-v2-http-api-data 0.2.101 → 0.2.103
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 +27 -0
- package/package.json +1 -1
- package/sms_presets.d.ts +20 -3
package/data.js
CHANGED
|
@@ -24852,6 +24852,21 @@ export const data = {
|
|
|
24852
24852
|
}
|
|
24853
24853
|
}
|
|
24854
24854
|
},
|
|
24855
|
+
"pushwoosh.rpc_v2.sms_presets.SmsPresetMms": {
|
|
24856
|
+
"type": "I",
|
|
24857
|
+
"fields": {
|
|
24858
|
+
"subject": {
|
|
24859
|
+
"type": "string"
|
|
24860
|
+
},
|
|
24861
|
+
"fileUrls": {
|
|
24862
|
+
"type": "string",
|
|
24863
|
+
"array": true
|
|
24864
|
+
},
|
|
24865
|
+
"messageAt": {
|
|
24866
|
+
"type": "number"
|
|
24867
|
+
}
|
|
24868
|
+
}
|
|
24869
|
+
},
|
|
24855
24870
|
"pushwoosh.rpc_v2.sms_presets.SmsPreset": {
|
|
24856
24871
|
"type": "I",
|
|
24857
24872
|
"fields": {
|
|
@@ -24874,6 +24889,10 @@ export const data = {
|
|
|
24874
24889
|
},
|
|
24875
24890
|
"updated": {
|
|
24876
24891
|
"type": "Date"
|
|
24892
|
+
},
|
|
24893
|
+
"localizedMms": {
|
|
24894
|
+
"type": "pushwoosh.rpc_v2.sms_presets.SmsPresetMms",
|
|
24895
|
+
"mapKeyType": "string"
|
|
24877
24896
|
}
|
|
24878
24897
|
}
|
|
24879
24898
|
},
|
|
@@ -24927,6 +24946,10 @@ export const data = {
|
|
|
24927
24946
|
"localizedContent": {
|
|
24928
24947
|
"type": "string",
|
|
24929
24948
|
"mapKeyType": "string"
|
|
24949
|
+
},
|
|
24950
|
+
"localizedMms": {
|
|
24951
|
+
"type": "pushwoosh.rpc_v2.sms_presets.SmsPresetMms",
|
|
24952
|
+
"mapKeyType": "string"
|
|
24930
24953
|
}
|
|
24931
24954
|
}
|
|
24932
24955
|
},
|
|
@@ -24954,6 +24977,10 @@ export const data = {
|
|
|
24954
24977
|
"localizedContent": {
|
|
24955
24978
|
"type": "string",
|
|
24956
24979
|
"mapKeyType": "string"
|
|
24980
|
+
},
|
|
24981
|
+
"localizedMms": {
|
|
24982
|
+
"type": "pushwoosh.rpc_v2.sms_presets.SmsPresetMms",
|
|
24983
|
+
"mapKeyType": "string"
|
|
24957
24984
|
}
|
|
24958
24985
|
}
|
|
24959
24986
|
},
|
package/package.json
CHANGED
package/sms_presets.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ export type smsPresetsService_Delete = RpcMethod<DeleteSmsPresetRequest, DeleteS
|
|
|
7
7
|
export interface smsPresetsService {
|
|
8
8
|
/** Lists SMS presets (reusable SMS message templates) for an application, with paging, ordering and optional name/category filters. Use to browse presets or find an SMS preset code before fetching, updating or deleting one. */
|
|
9
9
|
List: smsPresetsService_List;
|
|
10
|
-
/** Returns a single SMS preset by its preset code, including name, categories and per-locale
|
|
10
|
+
/** Returns a single SMS preset by its preset code, including name, categories, per-locale content and the per-locale MMS part (subject and attachments). Use after list_sms_presets to inspect one template. */
|
|
11
11
|
Get: smsPresetsService_Get;
|
|
12
|
-
/** Creates a new SMS preset (reusable SMS template) in an application from a name, categories and per-locale
|
|
12
|
+
/** Creates a new SMS preset (reusable SMS template) in an application from a name, categories, per-locale content and an optional per-locale MMS part, returning the generated preset code. Additive — each call creates a distinct preset. */
|
|
13
13
|
Create: smsPresetsService_Create;
|
|
14
|
-
/** Updates an existing SMS preset identified by its preset code, overwriting name, categories and per-locale
|
|
14
|
+
/** Updates an existing SMS preset identified by its preset code, overwriting name, categories, per-locale content and the per-locale MMS part. Use to edit a template found via list_sms_presets. */
|
|
15
15
|
Update: smsPresetsService_Update;
|
|
16
16
|
/** Permanently deletes an SMS preset by its preset code. Fails if the preset is used by a running or paused journey; deletion cannot be undone. */
|
|
17
17
|
Delete: smsPresetsService_Delete;
|
|
@@ -30,6 +30,17 @@ export type ListSmsPresetsRequest = {
|
|
|
30
30
|
/** Keep only presets tagged with one of these category names. */
|
|
31
31
|
searchByCategory?: string[];
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* MMS part of one locale. Attachments are public https urls (jpg/jpeg/png/gif, at most 3) —
|
|
35
|
+
* the provider downloads them itself, so links behind auth or without an extension are rejected.
|
|
36
|
+
*/
|
|
37
|
+
export type SmsPresetMms = {
|
|
38
|
+
/** Shown above the attachments; 40 ASCII or 13 non-ASCII characters max. */
|
|
39
|
+
subject: string;
|
|
40
|
+
fileUrls: string[];
|
|
41
|
+
/** Index of the attachment the body is shown after. */
|
|
42
|
+
messageAt: number;
|
|
43
|
+
};
|
|
33
44
|
export type SmsPreset = {
|
|
34
45
|
name: string;
|
|
35
46
|
code: string;
|
|
@@ -38,6 +49,8 @@ export type SmsPreset = {
|
|
|
38
49
|
localizedContent: Record<string, string>;
|
|
39
50
|
created: Date;
|
|
40
51
|
updated: Date;
|
|
52
|
+
/** mms map {"en": {...}...}; locales absent here are sent as plain SMS */
|
|
53
|
+
localizedMms: Record<string, SmsPresetMms>;
|
|
41
54
|
};
|
|
42
55
|
export type ListSmsPresetsResponse = {
|
|
43
56
|
presets: SmsPreset[];
|
|
@@ -59,6 +72,8 @@ export type CreateSmsPresetRequest = {
|
|
|
59
72
|
categories?: string[];
|
|
60
73
|
/** content map {"en": "content"...} */
|
|
61
74
|
localizedContent?: Record<string, string>;
|
|
75
|
+
/** mms map {"en": {...}...}; omit for a plain SMS preset */
|
|
76
|
+
localizedMms?: Record<string, SmsPresetMms>;
|
|
62
77
|
};
|
|
63
78
|
export type CreateSmsPresetResponse = {
|
|
64
79
|
preset: SmsPreset;
|
|
@@ -70,6 +85,8 @@ export type UpdateSmsPresetRequest = {
|
|
|
70
85
|
categories?: string[];
|
|
71
86
|
/** content map {"en": "content"...} */
|
|
72
87
|
localizedContent?: Record<string, string>;
|
|
88
|
+
/** mms map {"en": {...}...}; send an empty map to drop the MMS part */
|
|
89
|
+
localizedMms?: Record<string, SmsPresetMms>;
|
|
73
90
|
};
|
|
74
91
|
export type UpdateSmsPresetResponse = {
|
|
75
92
|
preset: SmsPreset;
|