@pushwoosh/rpc-v2-http-api-data 0.2.401 → 0.2.403

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.
@@ -4,6 +4,8 @@ export type appInboxPresetsService_Get = RpcMethod<GetAppInboxPresetRequest, Get
4
4
  export type appInboxPresetsService_Create = RpcMethod<CreateAppInboxPresetRequest, CreateAppInboxPresetResponse>;
5
5
  export type appInboxPresetsService_Update = RpcMethod<UpdateAppInboxPresetRequest, UpdateAppInboxPresetResponse>;
6
6
  export type appInboxPresetsService_Delete = RpcMethod<DeleteAppInboxPresetRequest, DeleteAppInboxPresetResponse>;
7
+ export type appInboxPresetsService_DeleteAppInboxPresets = RpcMethod<DeleteAppInboxPresetsRequest, DeleteAppInboxPresetsResponse>;
8
+ export type appInboxPresetsService_GetAppInboxPresetsUsage = RpcMethod<GetAppInboxPresetsUsageRequest, GetAppInboxPresetsUsageResponse>;
7
9
  export interface appInboxPresetsService {
8
10
  /** 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. */
9
11
  List: appInboxPresetsService_List;
@@ -15,6 +17,10 @@ export interface appInboxPresetsService {
15
17
  Update: appInboxPresetsService_Update;
16
18
  /** 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. */
17
19
  Delete: appInboxPresetsService_Delete;
20
+ /** Permanently deletes several App Inbox presets of an application (code XXXXX-XXXXX) in one request, up to 1000 codes, like delete_app_inbox_preset. All-or-nothing: if any code is not found in the application or is still sent by a running or paused journey, nothing is deleted; check get_app_inbox_presets_usage first. */
21
+ DeleteAppInboxPresets: appInboxPresetsService_DeleteAppInboxPresets;
22
+ /** Lists which of the given App Inbox presets of an application (code XXXXX-XXXXX), up to 1000 codes, are sent by running or paused journeys, with those journeys. Presets missing from the answer are free to delete. Use before delete_app_inbox_presets. */
23
+ GetAppInboxPresetsUsage: appInboxPresetsService_GetAppInboxPresetsUsage;
18
24
  }
19
25
  export type ListAppInboxPresetsRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
20
26
  export type ListAppInboxPresetsRequest_OrderDirection = 'ASC' | 'DESC';
@@ -118,3 +124,30 @@ export type DeleteAppInboxPresetRequest = {
118
124
  code?: string;
119
125
  };
120
126
  export type DeleteAppInboxPresetResponse = {};
127
+ export type DeleteAppInboxPresetsRequest = {
128
+ /** Application code (XXXXX-XXXXX) the presets belong to. */
129
+ application?: string;
130
+ /** Preset codes to delete. */
131
+ codes?: string[];
132
+ };
133
+ export type DeleteAppInboxPresetsResponse = {};
134
+ export type GetAppInboxPresetsUsageRequest = {
135
+ /** Application code (XXXXX-XXXXX) the presets belong to. */
136
+ application?: string;
137
+ /** Preset codes to check. */
138
+ codes?: string[];
139
+ };
140
+ export type AppInboxPresetUsage_Journey = {
141
+ uuid: string;
142
+ title: string;
143
+ };
144
+ export type AppInboxPresetUsage = {
145
+ /** Preset code. */
146
+ code: string;
147
+ /** Running or paused journeys that send the preset. */
148
+ journeys: AppInboxPresetUsage_Journey[];
149
+ };
150
+ export type GetAppInboxPresetsUsageResponse = {
151
+ /** Only the presets that are in use, sorted by preset code. */
152
+ usages: AppInboxPresetUsage[];
153
+ };
@@ -243,10 +243,15 @@ export type SmsTrafficConfiguration = {
243
243
  smsSmstrafficLogin: string;
244
244
  smsSmstrafficPassword: string;
245
245
  };
246
+ /**
247
+ * SmsTextMeCoIlConfiguration carries TextMe credentials. Auth is the token created
248
+ * in the TextMe console, or the legacy password; username and phone number are required.
249
+ */
246
250
  export type SmsTextMeCoIlConfiguration = {
247
251
  textmecoilUsername: string;
248
252
  textmecoilPassword: string;
249
253
  textmecoilPhoneNumber: string;
254
+ textmecoilConsoleToken: string;
250
255
  };
251
256
  export type SmsAbleMobileConfiguration = {
252
257
  ablemobileLogin: string;
package/data.js CHANGED
@@ -5095,6 +5095,18 @@ export const data = {
5095
5095
  "response": "pushwoosh.rpc_v2.app_inbox_presets.DeleteAppInboxPresetResponse",
5096
5096
  "method": "delete",
5097
5097
  "path": "/api/app_inbox_presets/{code}"
5098
+ },
5099
+ "DeleteAppInboxPresets": {
5100
+ "request": "pushwoosh.rpc_v2.app_inbox_presets.DeleteAppInboxPresetsRequest",
5101
+ "response": "pushwoosh.rpc_v2.app_inbox_presets.DeleteAppInboxPresetsResponse",
5102
+ "method": "post",
5103
+ "path": "/api/app_inbox_presets/delete"
5104
+ },
5105
+ "GetAppInboxPresetsUsage": {
5106
+ "request": "pushwoosh.rpc_v2.app_inbox_presets.GetAppInboxPresetsUsageRequest",
5107
+ "response": "pushwoosh.rpc_v2.app_inbox_presets.GetAppInboxPresetsUsageResponse",
5108
+ "method": "post",
5109
+ "path": "/api/app_inbox_presets/usage"
5098
5110
  }
5099
5111
  }
5100
5112
  },
@@ -5327,6 +5339,66 @@ export const data = {
5327
5339
  "type": "I",
5328
5340
  "fields": {}
5329
5341
  },
5342
+ "pushwoosh.rpc_v2.app_inbox_presets.DeleteAppInboxPresetsRequest": {
5343
+ "type": "I",
5344
+ "fields": {
5345
+ "application": {
5346
+ "type": "string"
5347
+ },
5348
+ "codes": {
5349
+ "type": "string",
5350
+ "array": true
5351
+ }
5352
+ }
5353
+ },
5354
+ "pushwoosh.rpc_v2.app_inbox_presets.DeleteAppInboxPresetsResponse": {
5355
+ "type": "I",
5356
+ "fields": {}
5357
+ },
5358
+ "pushwoosh.rpc_v2.app_inbox_presets.GetAppInboxPresetsUsageRequest": {
5359
+ "type": "I",
5360
+ "fields": {
5361
+ "application": {
5362
+ "type": "string"
5363
+ },
5364
+ "codes": {
5365
+ "type": "string",
5366
+ "array": true
5367
+ }
5368
+ }
5369
+ },
5370
+ "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetUsage.Journey": {
5371
+ "type": "I",
5372
+ "fields": {
5373
+ "uuid": {
5374
+ "type": "string"
5375
+ },
5376
+ "title": {
5377
+ "type": "string"
5378
+ }
5379
+ }
5380
+ },
5381
+ "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetUsage": {
5382
+ "type": "I",
5383
+ "fields": {
5384
+ "code": {
5385
+ "type": "string"
5386
+ },
5387
+ "journeys": {
5388
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetUsage.Journey",
5389
+ "array": true
5390
+ }
5391
+ }
5392
+ },
5393
+ "pushwoosh.rpc_v2.app_inbox_presets.GetAppInboxPresetsUsageResponse": {
5394
+ "type": "I",
5395
+ "fields": {
5396
+ "usages": {
5397
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetUsage",
5398
+ "array": true
5399
+ }
5400
+ }
5401
+ },
5330
5402
  "pushwoosh.rpc_v2.applications.ApplicationsService": {
5331
5403
  "type": "S",
5332
5404
  "key": "applications",
@@ -6666,6 +6738,9 @@ export const data = {
6666
6738
  },
6667
6739
  "textmecoilPhoneNumber": {
6668
6740
  "type": "string"
6741
+ },
6742
+ "textmecoilConsoleToken": {
6743
+ "type": "string"
6669
6744
  }
6670
6745
  }
6671
6746
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.401",
3
+ "version": "0.2.403",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",