@pushwoosh/rpc-gateway-journey-data 0.26.390 → 0.26.392

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