@pushwoosh/rpc-v2-http-api-data 0.2.211 → 0.2.213
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/app_inbox_presets.d.ts +33 -0
- package/applications_configurations.d.ts +13 -1
- package/data.js +16 -1
- package/package.json +1 -1
package/app_inbox_presets.d.ts
CHANGED
|
@@ -5,48 +5,72 @@ export type appInboxPresetsService_Create = RpcMethod<CreateAppInboxPresetReques
|
|
|
5
5
|
export type appInboxPresetsService_Update = RpcMethod<UpdateAppInboxPresetRequest, UpdateAppInboxPresetResponse>;
|
|
6
6
|
export type appInboxPresetsService_Delete = RpcMethod<DeleteAppInboxPresetRequest, DeleteAppInboxPresetResponse>;
|
|
7
7
|
export interface appInboxPresetsService {
|
|
8
|
+
/** Lists one application's App Inbox presets (inbox message templates) with paging, search over name and code, category filter and ordering. Use to browse presets or to find a preset code. */
|
|
8
9
|
List: appInboxPresetsService_List;
|
|
10
|
+
/** Returns a single App Inbox preset by its preset code: name, categories and the per-locale content. Use after list_app_inbox_presets to inspect one preset. */
|
|
9
11
|
Get: appInboxPresetsService_Get;
|
|
12
|
+
/** Creates an App Inbox preset under an application from per-locale content; each call yields a fresh preset code. Category names the application does not have yet are created with it. */
|
|
10
13
|
Create: appInboxPresetsService_Create;
|
|
14
|
+
/** Updates an App Inbox preset by preset code: name, categories and localized content are replaced when given, omitted fields keep their current value. */
|
|
11
15
|
Update: appInboxPresetsService_Update;
|
|
16
|
+
/** Permanently deletes an App Inbox preset by preset code. Refused while a running or paused journey still sends the preset; irreversible once it goes through. */
|
|
12
17
|
Delete: appInboxPresetsService_Delete;
|
|
13
18
|
}
|
|
14
19
|
export type ListAppInboxPresetsRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
|
|
15
20
|
export type ListAppInboxPresetsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
16
21
|
export type ListAppInboxPresetsRequest = {
|
|
22
|
+
/** Application code (format XXXXX-XXXXX) whose presets to list; required. */
|
|
17
23
|
application?: string;
|
|
18
24
|
orderBy?: ListAppInboxPresetsRequest_OrderBy;
|
|
19
25
|
orderDirection?: ListAppInboxPresetsRequest_OrderDirection;
|
|
20
26
|
page?: number;
|
|
27
|
+
/** Presets per page; 100 when omitted. */
|
|
21
28
|
perPage?: number;
|
|
29
|
+
/** Free-text search over preset name and preset code. */
|
|
22
30
|
searchByName?: string;
|
|
31
|
+
/** Restrict the list to presets carrying these category names. */
|
|
23
32
|
searchByCategory?: string[];
|
|
24
33
|
};
|
|
25
34
|
export type AppInboxPresetOpenAction = {
|
|
35
|
+
/** What opens when the message is tapped: "url", "deep_link" or "rich_media". Empty means no action; only the field belonging to the chosen type is read. */
|
|
26
36
|
type: string;
|
|
37
|
+
/** Target URL for type "url". */
|
|
27
38
|
url: string;
|
|
39
|
+
/** Deeplink code for type "deep_link". */
|
|
28
40
|
deepLinkCode: string;
|
|
41
|
+
/** Deeplink parameters for type "deep_link". */
|
|
29
42
|
deepLinkParams: Record<string, string>;
|
|
43
|
+
/** Rich Media code for type "rich_media". */
|
|
30
44
|
richMediaCode: string;
|
|
31
45
|
};
|
|
32
46
|
export type AppInboxPresetCarouselSlide = {
|
|
47
|
+
/** Absolute https URL of the slide image; required. */
|
|
33
48
|
imageUrl: string;
|
|
34
49
|
caption: string;
|
|
35
50
|
};
|
|
36
51
|
export type AppInboxPresetLocale = {
|
|
52
|
+
/** Message title; required for every layout except "banner". */
|
|
37
53
|
title: string;
|
|
54
|
+
/** Message body; required for every layout except "banner". */
|
|
38
55
|
body: string;
|
|
56
|
+
/** Absolute https icon URL; required for the "classic" layout. */
|
|
39
57
|
iconUrl: string;
|
|
58
|
+
/** Absolute https image URL; required for the "captioned" and "banner" layouts. */
|
|
40
59
|
bannerUrl: string;
|
|
41
60
|
openAction: AppInboxPresetOpenAction;
|
|
61
|
+
/** Arbitrary key-value payload delivered to the app along with the message. */
|
|
42
62
|
customData: object;
|
|
63
|
+
/** Layout of the inbox message: "classic" (the default when empty), "captioned", "banner" or "carousel". Each layout makes different fields of this message required. */
|
|
43
64
|
layoutType: string;
|
|
65
|
+
/** Slides of the "carousel" layout: 1 to 10 of them, required for it, ignored otherwise. */
|
|
44
66
|
carousel: AppInboxPresetCarouselSlide[];
|
|
45
67
|
};
|
|
46
68
|
export type AppInboxPreset = {
|
|
47
69
|
name: string;
|
|
70
|
+
/** Preset code, the identifier the other App Inbox tools take. */
|
|
48
71
|
code: string;
|
|
49
72
|
categories: string[];
|
|
73
|
+
/** Content per language code, e.g. "en". */
|
|
50
74
|
localizedContent: Record<string, AppInboxPresetLocale>;
|
|
51
75
|
created: Date;
|
|
52
76
|
updated: Date;
|
|
@@ -58,30 +82,39 @@ export type ListAppInboxPresetsResponse = {
|
|
|
58
82
|
total: number;
|
|
59
83
|
};
|
|
60
84
|
export type GetAppInboxPresetRequest = {
|
|
85
|
+
/** Preset code of the preset to fetch. */
|
|
61
86
|
code?: string;
|
|
62
87
|
};
|
|
63
88
|
export type GetAppInboxPresetResponse = {
|
|
64
89
|
preset: AppInboxPreset;
|
|
65
90
|
};
|
|
66
91
|
export type CreateAppInboxPresetRequest = {
|
|
92
|
+
/** Application code (format XXXXX-XXXXX) to create the preset under; required. */
|
|
67
93
|
application?: string;
|
|
68
94
|
name?: string;
|
|
95
|
+
/** Category names to tag the preset with; unknown ones are created on the application. */
|
|
69
96
|
categories?: string[];
|
|
97
|
+
/** Content per language code, e.g. "en". */
|
|
70
98
|
localizedContent?: Record<string, AppInboxPresetLocale>;
|
|
71
99
|
};
|
|
72
100
|
export type CreateAppInboxPresetResponse = {
|
|
73
101
|
preset: AppInboxPreset;
|
|
74
102
|
};
|
|
75
103
|
export type UpdateAppInboxPresetRequest = {
|
|
104
|
+
/** Preset code of the preset to update. */
|
|
76
105
|
code?: string;
|
|
106
|
+
/** New preset name; omit to leave unchanged. */
|
|
77
107
|
name?: string;
|
|
108
|
+
/** Replacement category list; omit to leave unchanged. */
|
|
78
109
|
categories?: string[];
|
|
110
|
+
/** Replacement content per language code; omit to leave unchanged. */
|
|
79
111
|
localizedContent?: Record<string, AppInboxPresetLocale>;
|
|
80
112
|
};
|
|
81
113
|
export type UpdateAppInboxPresetResponse = {
|
|
82
114
|
preset: AppInboxPreset;
|
|
83
115
|
};
|
|
84
116
|
export type DeleteAppInboxPresetRequest = {
|
|
117
|
+
/** Preset code of the preset to delete. */
|
|
85
118
|
code?: string;
|
|
86
119
|
};
|
|
87
120
|
export type DeleteAppInboxPresetResponse = {};
|
|
@@ -164,7 +164,11 @@ export type SmsConfiguration_provider_mstat = {
|
|
|
164
164
|
type: 'mstat';
|
|
165
165
|
data: SmsMStatConfiguration;
|
|
166
166
|
};
|
|
167
|
-
export type
|
|
167
|
+
export type SmsConfiguration_provider_smsapiro = {
|
|
168
|
+
type: 'smsapiro';
|
|
169
|
+
data: SmsApiRoConfiguration;
|
|
170
|
+
};
|
|
171
|
+
export type SmsConfiguration_provider = SmsConfiguration_provider_twilio | SmsConfiguration_provider_amazon | SmsConfiguration_provider_smsGlobal | SmsConfiguration_provider_smsala | SmsConfiguration_provider_capitolemobile | SmsConfiguration_provider_mobipace | SmsConfiguration_provider_smscenter | SmsConfiguration_provider_smstraffic | SmsConfiguration_provider_textmecoil | SmsConfiguration_provider_ablemobile | SmsConfiguration_provider_mstat | SmsConfiguration_provider_smsapiro;
|
|
168
172
|
/**
|
|
169
173
|
* SmsConfiguration carries per-application SMS provider credentials. Exactly
|
|
170
174
|
* one provider must be set; the chosen oneof field selects which gateway
|
|
@@ -239,6 +243,14 @@ export type SmsMStatConfiguration = {
|
|
|
239
243
|
mstatAccountId: string;
|
|
240
244
|
mstatSender: string;
|
|
241
245
|
};
|
|
246
|
+
/**
|
|
247
|
+
* SmsApiRoConfiguration carries SMSAPI.ro (LINK Mobility) credentials. Auth is
|
|
248
|
+
* an OAuth bearer token; sender_id is the verified sender name or short code.
|
|
249
|
+
*/
|
|
250
|
+
export type SmsApiRoConfiguration = {
|
|
251
|
+
smsapiRoApiToken: string;
|
|
252
|
+
smsapiRoSenderId: string;
|
|
253
|
+
};
|
|
242
254
|
export type ConfigurationRequest_kind_androidConfiguration = {
|
|
243
255
|
type: 'androidConfiguration';
|
|
244
256
|
data: AndroidConfiguration;
|
package/data.js
CHANGED
|
@@ -6297,6 +6297,9 @@ export const data = {
|
|
|
6297
6297
|
},
|
|
6298
6298
|
"mstat": {
|
|
6299
6299
|
"type": "pushwoosh.rpc_v2.applications_configurations.SmsMStatConfiguration"
|
|
6300
|
+
},
|
|
6301
|
+
"smsapiro": {
|
|
6302
|
+
"type": "pushwoosh.rpc_v2.applications_configurations.SmsApiRoConfiguration"
|
|
6300
6303
|
}
|
|
6301
6304
|
},
|
|
6302
6305
|
"oneofs": {
|
|
@@ -6312,7 +6315,8 @@ export const data = {
|
|
|
6312
6315
|
"smstraffic",
|
|
6313
6316
|
"textmecoil",
|
|
6314
6317
|
"ablemobile",
|
|
6315
|
-
"mstat"
|
|
6318
|
+
"mstat",
|
|
6319
|
+
"smsapiro"
|
|
6316
6320
|
]
|
|
6317
6321
|
}
|
|
6318
6322
|
}
|
|
@@ -6483,6 +6487,17 @@ export const data = {
|
|
|
6483
6487
|
}
|
|
6484
6488
|
}
|
|
6485
6489
|
},
|
|
6490
|
+
"pushwoosh.rpc_v2.applications_configurations.SmsApiRoConfiguration": {
|
|
6491
|
+
"type": "I",
|
|
6492
|
+
"fields": {
|
|
6493
|
+
"smsapiRoApiToken": {
|
|
6494
|
+
"type": "string"
|
|
6495
|
+
},
|
|
6496
|
+
"smsapiRoSenderId": {
|
|
6497
|
+
"type": "string"
|
|
6498
|
+
}
|
|
6499
|
+
}
|
|
6500
|
+
},
|
|
6486
6501
|
"pushwoosh.rpc_v2.applications_configurations.ConfigurationRequest": {
|
|
6487
6502
|
"type": "I",
|
|
6488
6503
|
"fields": {
|