@pushwoosh/rpc-gateway-journey-data 0.26.390 → 0.26.391
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 +278 -0
- package/package.json +1 -1
- package/pushwoosh_cj_journey.d.ts +89 -0
package/data.js
CHANGED
|
@@ -268,6 +268,24 @@ export const data = {
|
|
|
268
268
|
"method": "get",
|
|
269
269
|
"path": "/api/application/{code}/email-preset"
|
|
270
270
|
},
|
|
271
|
+
"GetLinePresetsByAppCode": {
|
|
272
|
+
"request": "pushwoosh.cj.journey.GetLinePresetsByAppCodeRequest",
|
|
273
|
+
"response": "pushwoosh.cj.journey.GetLinePresetsByAppCodeResponse",
|
|
274
|
+
"method": "get",
|
|
275
|
+
"path": "/api/application/{code}/line-preset"
|
|
276
|
+
},
|
|
277
|
+
"GetSmsPresetsByAppCode": {
|
|
278
|
+
"request": "pushwoosh.cj.journey.GetSmsPresetsByAppCodeRequest",
|
|
279
|
+
"response": "pushwoosh.cj.journey.GetSmsPresetsByAppCodeResponse",
|
|
280
|
+
"method": "get",
|
|
281
|
+
"path": "/api/application/{code}/sms-preset"
|
|
282
|
+
},
|
|
283
|
+
"GetPushPresetsByAppCode": {
|
|
284
|
+
"request": "pushwoosh.cj.journey.GetPushPresetsByAppCodeRequest",
|
|
285
|
+
"response": "pushwoosh.cj.journey.GetPushPresetsByAppCodeResponse",
|
|
286
|
+
"method": "get",
|
|
287
|
+
"path": "/api/application/{code}/preset"
|
|
288
|
+
},
|
|
271
289
|
"GetEventsByApplicationCode": {
|
|
272
290
|
"request": "pushwoosh.cj.journey.GetEventsByApplicationCodeRequest",
|
|
273
291
|
"response": "pushwoosh.cj.journey.GetEventsByApplicationCodeResponse",
|
|
@@ -297,6 +315,24 @@ export const data = {
|
|
|
297
315
|
"response": "pushwoosh.cj.journey.TestWebhookResponse",
|
|
298
316
|
"method": "post",
|
|
299
317
|
"path": "/api/v2/journeygateway/test-webhook"
|
|
318
|
+
},
|
|
319
|
+
"GetApplicationsByAccountId": {
|
|
320
|
+
"request": "pushwoosh.cj.journey.GetApplicationsByAccountIdRequest",
|
|
321
|
+
"response": "pushwoosh.cj.journey.GetApplicationsByAccountIdResponse",
|
|
322
|
+
"method": "get",
|
|
323
|
+
"path": "/api/v2/application"
|
|
324
|
+
},
|
|
325
|
+
"GetFiltersByAccountId": {
|
|
326
|
+
"request": "pushwoosh.cj.journey.GetFiltersByAccountIdRequest",
|
|
327
|
+
"response": "pushwoosh.cj.journey.GetFiltersByAccountIdResponse",
|
|
328
|
+
"method": "get",
|
|
329
|
+
"path": "/api/v2/filter"
|
|
330
|
+
},
|
|
331
|
+
"GetEventsByApplicationCodes": {
|
|
332
|
+
"request": "pushwoosh.cj.journey.GetEventsByApplicationCodesRequest",
|
|
333
|
+
"response": "pushwoosh.cj.journey.GetEventsByApplicationCodesResponse",
|
|
334
|
+
"method": "get",
|
|
335
|
+
"path": "/api/v2/events"
|
|
300
336
|
}
|
|
301
337
|
}
|
|
302
338
|
},
|
|
@@ -5175,6 +5211,248 @@ export const data = {
|
|
|
5175
5211
|
}
|
|
5176
5212
|
}
|
|
5177
5213
|
},
|
|
5214
|
+
"pushwoosh.cj.journey.GetLinePresetsByAppCodeRequest": {
|
|
5215
|
+
"type": "I",
|
|
5216
|
+
"fields": {
|
|
5217
|
+
"code": {
|
|
5218
|
+
"type": "string"
|
|
5219
|
+
}
|
|
5220
|
+
}
|
|
5221
|
+
},
|
|
5222
|
+
"pushwoosh.cj.journey.GetLinePresetsByAppCodeResponse": {
|
|
5223
|
+
"type": "I",
|
|
5224
|
+
"fields": {
|
|
5225
|
+
"payload": {
|
|
5226
|
+
"type": "pushwoosh.cj.journey.LinePresetsByAppCodePayload"
|
|
5227
|
+
}
|
|
5228
|
+
}
|
|
5229
|
+
},
|
|
5230
|
+
"pushwoosh.cj.journey.LinePresetsByAppCodePayload": {
|
|
5231
|
+
"type": "I",
|
|
5232
|
+
"fields": {
|
|
5233
|
+
"items": {
|
|
5234
|
+
"type": "pushwoosh.cj.journey.LinePresetByAppCodeItem",
|
|
5235
|
+
"array": true
|
|
5236
|
+
}
|
|
5237
|
+
}
|
|
5238
|
+
},
|
|
5239
|
+
"pushwoosh.cj.journey.LinePresetByAppCodeItem": {
|
|
5240
|
+
"type": "I",
|
|
5241
|
+
"fields": {
|
|
5242
|
+
"code": {
|
|
5243
|
+
"type": "string"
|
|
5244
|
+
},
|
|
5245
|
+
"name": {
|
|
5246
|
+
"type": "string"
|
|
5247
|
+
},
|
|
5248
|
+
"content": {
|
|
5249
|
+
"type": "string"
|
|
5250
|
+
}
|
|
5251
|
+
}
|
|
5252
|
+
},
|
|
5253
|
+
"pushwoosh.cj.journey.GetSmsPresetsByAppCodeRequest": {
|
|
5254
|
+
"type": "I",
|
|
5255
|
+
"fields": {
|
|
5256
|
+
"code": {
|
|
5257
|
+
"type": "string"
|
|
5258
|
+
}
|
|
5259
|
+
}
|
|
5260
|
+
},
|
|
5261
|
+
"pushwoosh.cj.journey.GetSmsPresetsByAppCodeResponse": {
|
|
5262
|
+
"type": "I",
|
|
5263
|
+
"fields": {
|
|
5264
|
+
"payload": {
|
|
5265
|
+
"type": "pushwoosh.cj.journey.SmsPresetsByAppCodePayload"
|
|
5266
|
+
}
|
|
5267
|
+
}
|
|
5268
|
+
},
|
|
5269
|
+
"pushwoosh.cj.journey.SmsPresetsByAppCodePayload": {
|
|
5270
|
+
"type": "I",
|
|
5271
|
+
"fields": {
|
|
5272
|
+
"items": {
|
|
5273
|
+
"type": "pushwoosh.cj.journey.SmsPresetByAppCodeItem",
|
|
5274
|
+
"array": true
|
|
5275
|
+
}
|
|
5276
|
+
}
|
|
5277
|
+
},
|
|
5278
|
+
"pushwoosh.cj.journey.SmsPresetByAppCodeItem": {
|
|
5279
|
+
"type": "I",
|
|
5280
|
+
"fields": {
|
|
5281
|
+
"code": {
|
|
5282
|
+
"type": "string"
|
|
5283
|
+
},
|
|
5284
|
+
"name": {
|
|
5285
|
+
"type": "string"
|
|
5286
|
+
},
|
|
5287
|
+
"content": {
|
|
5288
|
+
"type": "string"
|
|
5289
|
+
}
|
|
5290
|
+
}
|
|
5291
|
+
},
|
|
5292
|
+
"pushwoosh.cj.journey.GetPushPresetsByAppCodeRequest": {
|
|
5293
|
+
"type": "I",
|
|
5294
|
+
"fields": {
|
|
5295
|
+
"code": {
|
|
5296
|
+
"type": "string"
|
|
5297
|
+
},
|
|
5298
|
+
"journeyUuid": {
|
|
5299
|
+
"type": "string"
|
|
5300
|
+
}
|
|
5301
|
+
}
|
|
5302
|
+
},
|
|
5303
|
+
"pushwoosh.cj.journey.GetPushPresetsByAppCodeResponse": {
|
|
5304
|
+
"type": "I",
|
|
5305
|
+
"fields": {
|
|
5306
|
+
"payload": {
|
|
5307
|
+
"type": "pushwoosh.cj.journey.PushPresetsByAppCodePayload"
|
|
5308
|
+
}
|
|
5309
|
+
}
|
|
5310
|
+
},
|
|
5311
|
+
"pushwoosh.cj.journey.PushPresetsByAppCodePayload": {
|
|
5312
|
+
"type": "I",
|
|
5313
|
+
"fields": {
|
|
5314
|
+
"items": {
|
|
5315
|
+
"type": "pushwoosh.cj.journey.PushPresetByAppCodeItem",
|
|
5316
|
+
"array": true
|
|
5317
|
+
}
|
|
5318
|
+
}
|
|
5319
|
+
},
|
|
5320
|
+
"pushwoosh.cj.journey.PushPresetByAppCodeItem": {
|
|
5321
|
+
"type": "I",
|
|
5322
|
+
"fields": {
|
|
5323
|
+
"code": {
|
|
5324
|
+
"type": "string"
|
|
5325
|
+
},
|
|
5326
|
+
"name": {
|
|
5327
|
+
"type": "string"
|
|
5328
|
+
},
|
|
5329
|
+
"content": {
|
|
5330
|
+
"type": "string"
|
|
5331
|
+
},
|
|
5332
|
+
"title": {
|
|
5333
|
+
"type": "string"
|
|
5334
|
+
},
|
|
5335
|
+
"url": {
|
|
5336
|
+
"type": "string"
|
|
5337
|
+
},
|
|
5338
|
+
"variables": {
|
|
5339
|
+
"type": "pushwoosh.cj.journey.PushPresetVariables"
|
|
5340
|
+
}
|
|
5341
|
+
}
|
|
5342
|
+
},
|
|
5343
|
+
"pushwoosh.cj.journey.PushPresetVariables": {
|
|
5344
|
+
"type": "I",
|
|
5345
|
+
"fields": {
|
|
5346
|
+
"title": {
|
|
5347
|
+
"type": "string",
|
|
5348
|
+
"array": true
|
|
5349
|
+
},
|
|
5350
|
+
"content": {
|
|
5351
|
+
"type": "string",
|
|
5352
|
+
"array": true
|
|
5353
|
+
},
|
|
5354
|
+
"url": {
|
|
5355
|
+
"type": "string",
|
|
5356
|
+
"array": true
|
|
5357
|
+
}
|
|
5358
|
+
}
|
|
5359
|
+
},
|
|
5360
|
+
"pushwoosh.cj.journey.GetApplicationsByAccountIdRequest": {
|
|
5361
|
+
"type": "I",
|
|
5362
|
+
"fields": {}
|
|
5363
|
+
},
|
|
5364
|
+
"pushwoosh.cj.journey.GetApplicationsByAccountIdResponse": {
|
|
5365
|
+
"type": "I",
|
|
5366
|
+
"fields": {
|
|
5367
|
+
"payload": {
|
|
5368
|
+
"type": "pushwoosh.cj.journey.ApplicationItem",
|
|
5369
|
+
"array": true
|
|
5370
|
+
}
|
|
5371
|
+
}
|
|
5372
|
+
},
|
|
5373
|
+
"pushwoosh.cj.journey.ApplicationItem": {
|
|
5374
|
+
"type": "I",
|
|
5375
|
+
"fields": {
|
|
5376
|
+
"title": {
|
|
5377
|
+
"type": "string"
|
|
5378
|
+
},
|
|
5379
|
+
"code": {
|
|
5380
|
+
"type": "string"
|
|
5381
|
+
},
|
|
5382
|
+
"icon": {
|
|
5383
|
+
"type": "string"
|
|
5384
|
+
},
|
|
5385
|
+
"platforms": {
|
|
5386
|
+
"type": "pushwoosh.cj.journey.ApplicationPlatform",
|
|
5387
|
+
"array": true
|
|
5388
|
+
}
|
|
5389
|
+
}
|
|
5390
|
+
},
|
|
5391
|
+
"pushwoosh.cj.journey.ApplicationPlatform": {
|
|
5392
|
+
"type": "I",
|
|
5393
|
+
"fields": {
|
|
5394
|
+
"type": {
|
|
5395
|
+
"type": "string"
|
|
5396
|
+
},
|
|
5397
|
+
"isEnabled": {
|
|
5398
|
+
"type": "boolean"
|
|
5399
|
+
},
|
|
5400
|
+
"isConfigured": {
|
|
5401
|
+
"type": "boolean"
|
|
5402
|
+
}
|
|
5403
|
+
}
|
|
5404
|
+
},
|
|
5405
|
+
"pushwoosh.cj.journey.GetFiltersByAccountIdRequest": {
|
|
5406
|
+
"type": "I",
|
|
5407
|
+
"fields": {}
|
|
5408
|
+
},
|
|
5409
|
+
"pushwoosh.cj.journey.GetFiltersByAccountIdResponse": {
|
|
5410
|
+
"type": "I",
|
|
5411
|
+
"fields": {
|
|
5412
|
+
"payload": {
|
|
5413
|
+
"type": "pushwoosh.cj.journey.FilterItem",
|
|
5414
|
+
"array": true
|
|
5415
|
+
}
|
|
5416
|
+
}
|
|
5417
|
+
},
|
|
5418
|
+
"pushwoosh.cj.journey.FilterItem": {
|
|
5419
|
+
"type": "I",
|
|
5420
|
+
"fields": {
|
|
5421
|
+
"id": {
|
|
5422
|
+
"type": "number"
|
|
5423
|
+
},
|
|
5424
|
+
"accountId": {
|
|
5425
|
+
"type": "number"
|
|
5426
|
+
},
|
|
5427
|
+
"applicationId": {
|
|
5428
|
+
"type": "number"
|
|
5429
|
+
},
|
|
5430
|
+
"name": {
|
|
5431
|
+
"type": "string"
|
|
5432
|
+
},
|
|
5433
|
+
"code": {
|
|
5434
|
+
"type": "string"
|
|
5435
|
+
}
|
|
5436
|
+
}
|
|
5437
|
+
},
|
|
5438
|
+
"pushwoosh.cj.journey.GetEventsByApplicationCodesRequest": {
|
|
5439
|
+
"type": "I",
|
|
5440
|
+
"fields": {
|
|
5441
|
+
"applicationCodes": {
|
|
5442
|
+
"type": "string",
|
|
5443
|
+
"array": true
|
|
5444
|
+
}
|
|
5445
|
+
}
|
|
5446
|
+
},
|
|
5447
|
+
"pushwoosh.cj.journey.GetEventsByApplicationCodesResponse": {
|
|
5448
|
+
"type": "I",
|
|
5449
|
+
"fields": {
|
|
5450
|
+
"payload": {
|
|
5451
|
+
"type": "pushwoosh.cj.journey.EventsByApplicationCodePayload",
|
|
5452
|
+
"mapKeyType": "string"
|
|
5453
|
+
}
|
|
5454
|
+
}
|
|
5455
|
+
},
|
|
5178
5456
|
"pushwoosh.cj.journey_category.Category": {
|
|
5179
5457
|
"type": "S",
|
|
5180
5458
|
"key": "category",
|
package/package.json
CHANGED
|
@@ -45,11 +45,17 @@ export interface Journey {
|
|
|
45
45
|
ValidateJourneyV2(request: ValidateJourneyV2Request): Promise<ValidateJourneyResponse>;
|
|
46
46
|
GetWhatsAppPresetsByAppCode(request: GetWhatsAppPresetsByAppCodeRequest): Promise<GetWhatsAppPresetsByAppCodeResponse>;
|
|
47
47
|
GetEmailPresetsByAppCode(request: GetEmailPresetsByAppCodeRequest): Promise<GetEmailPresetsByAppCodeResponse>;
|
|
48
|
+
GetLinePresetsByAppCode(request: GetLinePresetsByAppCodeRequest): Promise<GetLinePresetsByAppCodeResponse>;
|
|
49
|
+
GetSmsPresetsByAppCode(request: GetSmsPresetsByAppCodeRequest): Promise<GetSmsPresetsByAppCodeResponse>;
|
|
50
|
+
GetPushPresetsByAppCode(request: GetPushPresetsByAppCodeRequest): Promise<GetPushPresetsByAppCodeResponse>;
|
|
48
51
|
GetEventsByApplicationCode(request: GetEventsByApplicationCodeRequest): Promise<GetEventsByApplicationCodeResponse>;
|
|
49
52
|
GetEventAttributeValues(request: GetEventAttributeValuesRequest): Promise<GetEventAttributeValuesResponse>;
|
|
50
53
|
GetRichMediaByApplicationCode(request: GetRichMediaByApplicationCodeRequest): Promise<GetRichMediaByApplicationCodeResponse>;
|
|
51
54
|
GetRichMediaByCode(request: GetRichMediaByCodeRequest): Promise<GetRichMediaByCodeResponse>;
|
|
52
55
|
TestWebhook(request: TestWebhookRequest): Promise<TestWebhookResponse>;
|
|
56
|
+
GetApplicationsByAccountId(request: GetApplicationsByAccountIdRequest): Promise<GetApplicationsByAccountIdResponse>;
|
|
57
|
+
GetFiltersByAccountId(request: GetFiltersByAccountIdRequest): Promise<GetFiltersByAccountIdResponse>;
|
|
58
|
+
GetEventsByApplicationCodes(request: GetEventsByApplicationCodesRequest): Promise<GetEventsByApplicationCodesResponse>;
|
|
53
59
|
}
|
|
54
60
|
export type GetPlaceholdersRequest = {
|
|
55
61
|
templateCode?: string;
|
|
@@ -1876,3 +1882,86 @@ export type GetRichMediaByCodeRequest = {
|
|
|
1876
1882
|
export type GetRichMediaByCodeResponse = {
|
|
1877
1883
|
payload: RichMediaItem;
|
|
1878
1884
|
};
|
|
1885
|
+
export type GetLinePresetsByAppCodeRequest = {
|
|
1886
|
+
code?: string;
|
|
1887
|
+
};
|
|
1888
|
+
export type GetLinePresetsByAppCodeResponse = {
|
|
1889
|
+
payload: LinePresetsByAppCodePayload;
|
|
1890
|
+
};
|
|
1891
|
+
export type LinePresetsByAppCodePayload = {
|
|
1892
|
+
items: LinePresetByAppCodeItem[];
|
|
1893
|
+
};
|
|
1894
|
+
export type LinePresetByAppCodeItem = {
|
|
1895
|
+
code: string;
|
|
1896
|
+
name: string;
|
|
1897
|
+
content: string;
|
|
1898
|
+
};
|
|
1899
|
+
export type GetSmsPresetsByAppCodeRequest = {
|
|
1900
|
+
code?: string;
|
|
1901
|
+
};
|
|
1902
|
+
export type GetSmsPresetsByAppCodeResponse = {
|
|
1903
|
+
payload: SmsPresetsByAppCodePayload;
|
|
1904
|
+
};
|
|
1905
|
+
export type SmsPresetsByAppCodePayload = {
|
|
1906
|
+
items: SmsPresetByAppCodeItem[];
|
|
1907
|
+
};
|
|
1908
|
+
export type SmsPresetByAppCodeItem = {
|
|
1909
|
+
code: string;
|
|
1910
|
+
name: string;
|
|
1911
|
+
content: string;
|
|
1912
|
+
};
|
|
1913
|
+
export type GetPushPresetsByAppCodeRequest = {
|
|
1914
|
+
code?: string;
|
|
1915
|
+
journeyUuid?: string;
|
|
1916
|
+
};
|
|
1917
|
+
export type GetPushPresetsByAppCodeResponse = {
|
|
1918
|
+
payload: PushPresetsByAppCodePayload;
|
|
1919
|
+
};
|
|
1920
|
+
export type PushPresetsByAppCodePayload = {
|
|
1921
|
+
items: PushPresetByAppCodeItem[];
|
|
1922
|
+
};
|
|
1923
|
+
export type PushPresetByAppCodeItem = {
|
|
1924
|
+
code: string;
|
|
1925
|
+
name: string;
|
|
1926
|
+
content: string;
|
|
1927
|
+
title: string;
|
|
1928
|
+
url: string;
|
|
1929
|
+
variables: PushPresetVariables;
|
|
1930
|
+
};
|
|
1931
|
+
export type PushPresetVariables = {
|
|
1932
|
+
title: string[];
|
|
1933
|
+
content: string[];
|
|
1934
|
+
url: string[];
|
|
1935
|
+
};
|
|
1936
|
+
export type GetApplicationsByAccountIdRequest = {};
|
|
1937
|
+
export type GetApplicationsByAccountIdResponse = {
|
|
1938
|
+
payload: ApplicationItem[];
|
|
1939
|
+
};
|
|
1940
|
+
export type ApplicationItem = {
|
|
1941
|
+
title: string;
|
|
1942
|
+
code: string;
|
|
1943
|
+
icon: string;
|
|
1944
|
+
platforms: ApplicationPlatform[];
|
|
1945
|
+
};
|
|
1946
|
+
export type ApplicationPlatform = {
|
|
1947
|
+
type: string;
|
|
1948
|
+
isEnabled: boolean;
|
|
1949
|
+
isConfigured: boolean;
|
|
1950
|
+
};
|
|
1951
|
+
export type GetFiltersByAccountIdRequest = {};
|
|
1952
|
+
export type GetFiltersByAccountIdResponse = {
|
|
1953
|
+
payload: FilterItem[];
|
|
1954
|
+
};
|
|
1955
|
+
export type FilterItem = {
|
|
1956
|
+
id: number;
|
|
1957
|
+
accountId: number;
|
|
1958
|
+
applicationId: number;
|
|
1959
|
+
name: string;
|
|
1960
|
+
code: string;
|
|
1961
|
+
};
|
|
1962
|
+
export type GetEventsByApplicationCodesRequest = {
|
|
1963
|
+
applicationCodes?: string[];
|
|
1964
|
+
};
|
|
1965
|
+
export type GetEventsByApplicationCodesResponse = {
|
|
1966
|
+
payload: Record<string, EventsByApplicationCodePayload>;
|
|
1967
|
+
};
|