@pushwoosh/rpc-gateway-journey-data 0.27.98 → 0.27.100

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 CHANGED
@@ -167,6 +167,42 @@ export const data = {
167
167
  "method": "get",
168
168
  "path": "/api/v2/journeygateway/point-templates"
169
169
  },
170
+ "SavePointTemplate": {
171
+ "request": "pushwoosh.cj.journey.SavePointTemplateRequest",
172
+ "response": "pushwoosh.cj.journey.SavePointTemplateResponse",
173
+ "method": "post",
174
+ "path": "/api/v2/journeygateway/maintenance/point-templates"
175
+ },
176
+ "SetPointTemplateInstall": {
177
+ "request": "pushwoosh.cj.journey.SetPointTemplateInstallRequest",
178
+ "response": "pushwoosh.cj.journey.SetPointTemplateInstallResponse",
179
+ "method": "post",
180
+ "path": "/api/v2/journeygateway/maintenance/point-template-installs"
181
+ },
182
+ "ListPointTemplateCatalog": {
183
+ "request": "pushwoosh.cj.journey.ListPointTemplateCatalogRequest",
184
+ "response": "pushwoosh.cj.journey.ListPointTemplateCatalogResponse",
185
+ "method": "get",
186
+ "path": "/api/v2/journeygateway/maintenance/point-template-catalog"
187
+ },
188
+ "GetPointTemplateCatalog": {
189
+ "request": "pushwoosh.cj.journey.GetPointTemplateCatalogRequest",
190
+ "response": "pushwoosh.cj.journey.GetPointTemplateCatalogResponse",
191
+ "method": "get",
192
+ "path": "/api/v2/journeygateway/point-template-catalog"
193
+ },
194
+ "InstallPointTemplate": {
195
+ "request": "pushwoosh.cj.journey.InstallPointTemplateRequest",
196
+ "response": "pushwoosh.cj.journey.InstallPointTemplateResponse",
197
+ "method": "post",
198
+ "path": "/api/v2/journeygateway/point-template-catalog/{slug}/install"
199
+ },
200
+ "UninstallPointTemplate": {
201
+ "request": "pushwoosh.cj.journey.UninstallPointTemplateRequest",
202
+ "response": "pushwoosh.cj.journey.UninstallPointTemplateResponse",
203
+ "method": "post",
204
+ "path": "/api/v2/journeygateway/point-template-catalog/{slug}/uninstall"
205
+ },
170
206
  "GetJourneyGeneralTimeStatistics": {
171
207
  "request": "pushwoosh.cj.journey.GetJourneyGeneralTimeStatisticsRequest",
172
208
  "response": "pushwoosh.cj.journey.GetJourneyGeneralTimeStatisticsResponse",
@@ -191,6 +227,12 @@ export const data = {
191
227
  "method": "post",
192
228
  "path": "/api/v2/journeygateway/{uuid}/statistics/delivery-report"
193
229
  },
230
+ "GetJourneyWebhookCalls": {
231
+ "request": "pushwoosh.cj.journey.GetJourneyWebhookCallsRequest",
232
+ "response": "pushwoosh.cj.journey.GetJourneyWebhookCallsResponse",
233
+ "method": "post",
234
+ "path": "/api/v2/journeygateway/{uuid}/points/{point_uuid}/webhook-calls"
235
+ },
194
236
  "GetVoucherPools": {
195
237
  "request": "pushwoosh.cj.journey.GetVoucherPoolsRequest",
196
238
  "response": "pushwoosh.cj.journey.GetVoucherPoolsResponse",
@@ -5207,6 +5249,238 @@ export const data = {
5207
5249
  }
5208
5250
  }
5209
5251
  },
5252
+ "pushwoosh.cj.journey.SavePointTemplateRequest": {
5253
+ "type": "I",
5254
+ "fields": {
5255
+ "slug": {
5256
+ "type": "string"
5257
+ },
5258
+ "version": {
5259
+ "type": "string"
5260
+ },
5261
+ "title": {
5262
+ "type": "string"
5263
+ },
5264
+ "description": {
5265
+ "type": "string"
5266
+ },
5267
+ "icon": {
5268
+ "type": "string"
5269
+ },
5270
+ "category": {
5271
+ "type": "string"
5272
+ },
5273
+ "author": {
5274
+ "type": "string"
5275
+ },
5276
+ "runtime": {
5277
+ "type": "string"
5278
+ },
5279
+ "configSchema": {
5280
+ "type": "string"
5281
+ },
5282
+ "request": {
5283
+ "type": "string"
5284
+ },
5285
+ "responseMapping": {
5286
+ "type": "string"
5287
+ },
5288
+ "auth": {
5289
+ "type": "string"
5290
+ },
5291
+ "allowedHosts": {
5292
+ "type": "string",
5293
+ "array": true
5294
+ },
5295
+ "status": {
5296
+ "type": "string"
5297
+ }
5298
+ }
5299
+ },
5300
+ "pushwoosh.cj.journey.SavePointTemplateResponse": {
5301
+ "type": "I",
5302
+ "fields": {
5303
+ "template": {
5304
+ "type": "pushwoosh.cj.journey.PointTemplateVersion"
5305
+ }
5306
+ }
5307
+ },
5308
+ "pushwoosh.cj.journey.PointTemplateVersion": {
5309
+ "type": "I",
5310
+ "fields": {
5311
+ "uuid": {
5312
+ "type": "string"
5313
+ },
5314
+ "slug": {
5315
+ "type": "string"
5316
+ },
5317
+ "version": {
5318
+ "type": "string"
5319
+ },
5320
+ "status": {
5321
+ "type": "string"
5322
+ },
5323
+ "publishedAt": {
5324
+ "type": "string"
5325
+ }
5326
+ }
5327
+ },
5328
+ "pushwoosh.cj.journey.SetPointTemplateInstallRequest": {
5329
+ "type": "I",
5330
+ "fields": {
5331
+ "accountId": {
5332
+ "type": "number"
5333
+ },
5334
+ "slug": {
5335
+ "type": "string"
5336
+ },
5337
+ "version": {
5338
+ "type": "string"
5339
+ },
5340
+ "enabled": {
5341
+ "type": "boolean"
5342
+ }
5343
+ }
5344
+ },
5345
+ "pushwoosh.cj.journey.SetPointTemplateInstallResponse": {
5346
+ "type": "I",
5347
+ "fields": {
5348
+ "accountId": {
5349
+ "type": "number"
5350
+ },
5351
+ "slug": {
5352
+ "type": "string"
5353
+ },
5354
+ "version": {
5355
+ "type": "string"
5356
+ },
5357
+ "templateUuid": {
5358
+ "type": "string"
5359
+ },
5360
+ "enabled": {
5361
+ "type": "boolean"
5362
+ }
5363
+ }
5364
+ },
5365
+ "pushwoosh.cj.journey.ListPointTemplateCatalogRequest": {
5366
+ "type": "I",
5367
+ "fields": {
5368
+ "accountId": {
5369
+ "type": "number"
5370
+ }
5371
+ }
5372
+ },
5373
+ "pushwoosh.cj.journey.ListPointTemplateCatalogResponse": {
5374
+ "type": "I",
5375
+ "fields": {
5376
+ "payload": {
5377
+ "type": "pushwoosh.cj.journey.PointTemplateCatalogEntry",
5378
+ "array": true
5379
+ },
5380
+ "allowJourneyPointTemplates": {
5381
+ "type": "boolean"
5382
+ }
5383
+ }
5384
+ },
5385
+ "pushwoosh.cj.journey.PointTemplateCatalogEntry": {
5386
+ "type": "I",
5387
+ "fields": {
5388
+ "slug": {
5389
+ "type": "string"
5390
+ },
5391
+ "title": {
5392
+ "type": "string"
5393
+ },
5394
+ "description": {
5395
+ "type": "string"
5396
+ },
5397
+ "icon": {
5398
+ "type": "string"
5399
+ },
5400
+ "category": {
5401
+ "type": "string"
5402
+ },
5403
+ "author": {
5404
+ "type": "string"
5405
+ },
5406
+ "authType": {
5407
+ "type": "string"
5408
+ },
5409
+ "versions": {
5410
+ "type": "pushwoosh.cj.journey.PointTemplateVersion",
5411
+ "array": true
5412
+ },
5413
+ "installedVersion": {
5414
+ "type": "string"
5415
+ },
5416
+ "installEnabled": {
5417
+ "type": "boolean"
5418
+ }
5419
+ }
5420
+ },
5421
+ "pushwoosh.cj.journey.GetPointTemplateCatalogRequest": {
5422
+ "type": "I",
5423
+ "fields": {}
5424
+ },
5425
+ "pushwoosh.cj.journey.GetPointTemplateCatalogResponse": {
5426
+ "type": "I",
5427
+ "fields": {
5428
+ "payload": {
5429
+ "type": "pushwoosh.cj.journey.PointTemplateCatalogEntry",
5430
+ "array": true
5431
+ },
5432
+ "allowJourneyPointTemplates": {
5433
+ "type": "boolean"
5434
+ },
5435
+ "canInstall": {
5436
+ "type": "boolean"
5437
+ }
5438
+ }
5439
+ },
5440
+ "pushwoosh.cj.journey.InstallPointTemplateRequest": {
5441
+ "type": "I",
5442
+ "fields": {
5443
+ "slug": {
5444
+ "type": "string"
5445
+ }
5446
+ }
5447
+ },
5448
+ "pushwoosh.cj.journey.InstallPointTemplateResponse": {
5449
+ "type": "I",
5450
+ "fields": {
5451
+ "slug": {
5452
+ "type": "string"
5453
+ },
5454
+ "version": {
5455
+ "type": "string"
5456
+ },
5457
+ "templateUuid": {
5458
+ "type": "string"
5459
+ },
5460
+ "enabled": {
5461
+ "type": "boolean"
5462
+ }
5463
+ }
5464
+ },
5465
+ "pushwoosh.cj.journey.UninstallPointTemplateRequest": {
5466
+ "type": "I",
5467
+ "fields": {
5468
+ "slug": {
5469
+ "type": "string"
5470
+ }
5471
+ }
5472
+ },
5473
+ "pushwoosh.cj.journey.UninstallPointTemplateResponse": {
5474
+ "type": "I",
5475
+ "fields": {
5476
+ "slug": {
5477
+ "type": "string"
5478
+ },
5479
+ "enabled": {
5480
+ "type": "boolean"
5481
+ }
5482
+ }
5483
+ },
5210
5484
  "pushwoosh.cj.journey.GetPointTemplatesRequest": {
5211
5485
  "type": "I",
5212
5486
  "fields": {}
@@ -5396,6 +5670,91 @@ export const data = {
5396
5670
  }
5397
5671
  }
5398
5672
  },
5673
+ "pushwoosh.cj.journey.GetJourneyWebhookCallsRequest": {
5674
+ "type": "I",
5675
+ "fields": {
5676
+ "uuid": {
5677
+ "type": "string"
5678
+ },
5679
+ "pointUuid": {
5680
+ "type": "string"
5681
+ },
5682
+ "timestampFrom": {
5683
+ "type": "string"
5684
+ },
5685
+ "timestampTo": {
5686
+ "type": "string"
5687
+ },
5688
+ "outcome": {
5689
+ "type": "string"
5690
+ },
5691
+ "search": {
5692
+ "type": "string"
5693
+ },
5694
+ "pageSize": {
5695
+ "type": "number"
5696
+ },
5697
+ "page": {
5698
+ "type": "number"
5699
+ }
5700
+ }
5701
+ },
5702
+ "pushwoosh.cj.journey.GetJourneyWebhookCallsResponse.Call": {
5703
+ "type": "I",
5704
+ "fields": {
5705
+ "timestamp": {
5706
+ "type": "string"
5707
+ },
5708
+ "userId": {
5709
+ "type": "string"
5710
+ },
5711
+ "hwid": {
5712
+ "type": "string"
5713
+ },
5714
+ "method": {
5715
+ "type": "string"
5716
+ },
5717
+ "url": {
5718
+ "type": "string"
5719
+ },
5720
+ "statusCode": {
5721
+ "type": "number"
5722
+ },
5723
+ "outcome": {
5724
+ "type": "string"
5725
+ },
5726
+ "durationMs": {
5727
+ "type": "number"
5728
+ },
5729
+ "requestBody": {
5730
+ "type": "string"
5731
+ },
5732
+ "responseBody": {
5733
+ "type": "string"
5734
+ },
5735
+ "error": {
5736
+ "type": "string"
5737
+ },
5738
+ "templateSlug": {
5739
+ "type": "string"
5740
+ },
5741
+ "templateVersion": {
5742
+ "type": "string"
5743
+ }
5744
+ }
5745
+ },
5746
+ "pushwoosh.cj.journey.GetJourneyWebhookCallsResponse": {
5747
+ "type": "I",
5748
+ "fields": {
5749
+ "calls": {
5750
+ "type": "pushwoosh.cj.journey.GetJourneyWebhookCallsResponse.Call",
5751
+ "array": true
5752
+ },
5753
+ "totals": {
5754
+ "type": "number"
5755
+ }
5756
+ }
5757
+ },
5399
5758
  "pushwoosh.cj.journey.Channel": {
5400
5759
  "type": "E",
5401
5760
  "values": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-journey-data",
3
- "version": "0.27.98",
3
+ "version": "0.27.100",
4
4
  "description": "CJ api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -27,10 +27,17 @@ export interface Journey {
27
27
  GetPlaceholders(request: GetPlaceholdersRequest): Promise<GetPlaceholdersResponse>;
28
28
  GetAccountRestrictionValues(request: GetAccountRestrictionValuesRequest): Promise<GetAccountRestrictionValuesResponse>;
29
29
  GetPointTemplates(request: GetPointTemplatesRequest): Promise<GetPointTemplatesResponse>;
30
+ SavePointTemplate(request: SavePointTemplateRequest): Promise<SavePointTemplateResponse>;
31
+ SetPointTemplateInstall(request: SetPointTemplateInstallRequest): Promise<SetPointTemplateInstallResponse>;
32
+ ListPointTemplateCatalog(request: ListPointTemplateCatalogRequest): Promise<ListPointTemplateCatalogResponse>;
33
+ GetPointTemplateCatalog(request: GetPointTemplateCatalogRequest): Promise<GetPointTemplateCatalogResponse>;
34
+ InstallPointTemplate(request: InstallPointTemplateRequest): Promise<InstallPointTemplateResponse>;
35
+ UninstallPointTemplate(request: UninstallPointTemplateRequest): Promise<UninstallPointTemplateResponse>;
30
36
  GetJourneyGeneralTimeStatistics(request: GetJourneyGeneralTimeStatisticsRequest): Promise<GetJourneyGeneralTimeStatisticsResponse>;
31
37
  GetJourneyUsers(request: GetJourneyUsersRequest): Promise<GetJourneyUsersResponse>;
32
38
  GetJourneyMetrics(request: GetJourneyMetricsRequest): Promise<GetJourneyMetricsResponse>;
33
39
  GetJourneyDeliveryReport(request: GetJourneyDeliveryReportRequest): Promise<GetJourneyDeliveryReportResponse>;
40
+ GetJourneyWebhookCalls(request: GetJourneyWebhookCallsRequest): Promise<GetJourneyWebhookCallsResponse>;
34
41
  GetVoucherPools(request: GetVoucherPoolsRequest): Promise<GetVoucherPoolsResponse>;
35
42
  StartJourneyV2(request: StartJourneyV2Request): Promise<StartJourneyResponse>;
36
43
  PauseJourneyV2(request: PauseJourneyV2Request): Promise<PauseJourneyResponse>;
@@ -1878,6 +1885,86 @@ export type AccountRestrictionValues = {
1878
1885
  allowCjSplitterDeviceCheck: boolean;
1879
1886
  allowJourneyPointTemplates: boolean;
1880
1887
  };
1888
+ export type SavePointTemplateRequest = {
1889
+ slug?: string;
1890
+ version?: string;
1891
+ title?: string;
1892
+ description?: string;
1893
+ icon?: string;
1894
+ category?: string;
1895
+ author?: string;
1896
+ runtime?: string;
1897
+ configSchema?: string;
1898
+ request?: string;
1899
+ responseMapping?: string;
1900
+ auth?: string;
1901
+ allowedHosts?: string[];
1902
+ status?: string;
1903
+ };
1904
+ export type SavePointTemplateResponse = {
1905
+ template: PointTemplateVersion;
1906
+ };
1907
+ export type PointTemplateVersion = {
1908
+ uuid: string;
1909
+ slug: string;
1910
+ version: string;
1911
+ status: string;
1912
+ publishedAt: string;
1913
+ };
1914
+ export type SetPointTemplateInstallRequest = {
1915
+ accountId?: number;
1916
+ slug?: string;
1917
+ version?: string;
1918
+ enabled?: boolean;
1919
+ };
1920
+ export type SetPointTemplateInstallResponse = {
1921
+ accountId: number;
1922
+ slug: string;
1923
+ version: string;
1924
+ templateUuid: string;
1925
+ enabled: boolean;
1926
+ };
1927
+ export type ListPointTemplateCatalogRequest = {
1928
+ accountId?: number;
1929
+ };
1930
+ export type ListPointTemplateCatalogResponse = {
1931
+ payload: PointTemplateCatalogEntry[];
1932
+ allowJourneyPointTemplates: boolean;
1933
+ };
1934
+ export type PointTemplateCatalogEntry = {
1935
+ slug: string;
1936
+ title: string;
1937
+ description: string;
1938
+ icon: string;
1939
+ category: string;
1940
+ author: string;
1941
+ authType: string;
1942
+ versions: PointTemplateVersion[];
1943
+ installedVersion: string;
1944
+ installEnabled: boolean;
1945
+ };
1946
+ export type GetPointTemplateCatalogRequest = {};
1947
+ export type GetPointTemplateCatalogResponse = {
1948
+ payload: PointTemplateCatalogEntry[];
1949
+ allowJourneyPointTemplates: boolean;
1950
+ canInstall: boolean;
1951
+ };
1952
+ export type InstallPointTemplateRequest = {
1953
+ slug?: string;
1954
+ };
1955
+ export type InstallPointTemplateResponse = {
1956
+ slug: string;
1957
+ version: string;
1958
+ templateUuid: string;
1959
+ enabled: boolean;
1960
+ };
1961
+ export type UninstallPointTemplateRequest = {
1962
+ slug?: string;
1963
+ };
1964
+ export type UninstallPointTemplateResponse = {
1965
+ slug: string;
1966
+ enabled: boolean;
1967
+ };
1881
1968
  export type GetPointTemplatesRequest = {};
1882
1969
  export type GetPointTemplatesResponse = {
1883
1970
  payload: PointTemplate[];
@@ -1938,6 +2025,35 @@ export type GetJourneyUsersResponse = {
1938
2025
  users: GetJourneyUsersResponse_UserPoint[];
1939
2026
  totals: number;
1940
2027
  };
2028
+ export type GetJourneyWebhookCallsRequest = {
2029
+ uuid?: string;
2030
+ pointUuid?: string;
2031
+ timestampFrom?: string;
2032
+ timestampTo?: string;
2033
+ outcome?: string;
2034
+ search?: string;
2035
+ pageSize?: number;
2036
+ page?: number;
2037
+ };
2038
+ export type GetJourneyWebhookCallsResponse_Call = {
2039
+ timestamp: string;
2040
+ userId: string;
2041
+ hwid: string;
2042
+ method: string;
2043
+ url: string;
2044
+ statusCode: number;
2045
+ outcome: string;
2046
+ durationMs: number;
2047
+ requestBody: string;
2048
+ responseBody: string;
2049
+ error: string;
2050
+ templateSlug: string;
2051
+ templateVersion: string;
2052
+ };
2053
+ export type GetJourneyWebhookCallsResponse = {
2054
+ calls: GetJourneyWebhookCallsResponse_Call[];
2055
+ totals: number;
2056
+ };
1941
2057
  export type Channel = 'CHANNEL_UNSPECIFIED' | 'PUSH' | 'EMAIL' | 'WHATSAPP' | 'SMS' | 'IN_APP' | 'LINE';
1942
2058
  export type GetJourneyMetricsRequest = {
1943
2059
  uuid?: string;