@pushwoosh/rpc-gateway-journey-data 0.27.87 → 0.27.89

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
@@ -161,6 +161,12 @@ export const data = {
161
161
  "method": "get",
162
162
  "path": "/api/v2/journeygateway/account-restrictions"
163
163
  },
164
+ "GetPointTemplates": {
165
+ "request": "pushwoosh.cj.journey.GetPointTemplatesRequest",
166
+ "response": "pushwoosh.cj.journey.GetPointTemplatesResponse",
167
+ "method": "get",
168
+ "path": "/api/v2/journeygateway/point-templates"
169
+ },
164
170
  "GetJourneyGeneralTimeStatistics": {
165
171
  "request": "pushwoosh.cj.journey.GetJourneyGeneralTimeStatisticsRequest",
166
172
  "response": "pushwoosh.cj.journey.GetJourneyGeneralTimeStatisticsResponse",
@@ -4461,6 +4467,19 @@ export const data = {
4461
4467
  "responseMapping": {
4462
4468
  "type": "pushwoosh.cj.journey.WebhookResponseMapping",
4463
4469
  "array": true
4470
+ },
4471
+ "secretHeaders": {
4472
+ "type": "string",
4473
+ "array": true
4474
+ },
4475
+ "templateRef": {
4476
+ "type": "string"
4477
+ },
4478
+ "templateVersion": {
4479
+ "type": "string"
4480
+ },
4481
+ "templateConfig": {
4482
+ "type": "string"
4464
4483
  }
4465
4484
  }
4466
4485
  },
@@ -5182,6 +5201,58 @@ export const data = {
5182
5201
  },
5183
5202
  "allowCjSplitterDeviceCheck": {
5184
5203
  "type": "boolean"
5204
+ },
5205
+ "allowJourneyPointTemplates": {
5206
+ "type": "boolean"
5207
+ }
5208
+ }
5209
+ },
5210
+ "pushwoosh.cj.journey.GetPointTemplatesRequest": {
5211
+ "type": "I",
5212
+ "fields": {}
5213
+ },
5214
+ "pushwoosh.cj.journey.GetPointTemplatesResponse": {
5215
+ "type": "I",
5216
+ "fields": {
5217
+ "payload": {
5218
+ "type": "pushwoosh.cj.journey.PointTemplate",
5219
+ "array": true
5220
+ }
5221
+ }
5222
+ },
5223
+ "pushwoosh.cj.journey.PointTemplate": {
5224
+ "type": "I",
5225
+ "fields": {
5226
+ "slug": {
5227
+ "type": "string"
5228
+ },
5229
+ "version": {
5230
+ "type": "string"
5231
+ },
5232
+ "title": {
5233
+ "type": "string"
5234
+ },
5235
+ "description": {
5236
+ "type": "string"
5237
+ },
5238
+ "icon": {
5239
+ "type": "string"
5240
+ },
5241
+ "category": {
5242
+ "type": "string"
5243
+ },
5244
+ "runtime": {
5245
+ "type": "string"
5246
+ },
5247
+ "configSchema": {
5248
+ "type": "string"
5249
+ },
5250
+ "authType": {
5251
+ "type": "string"
5252
+ },
5253
+ "responseMapping": {
5254
+ "type": "pushwoosh.cj.journey.WebhookResponseMapping",
5255
+ "array": true
5185
5256
  }
5186
5257
  }
5187
5258
  },
@@ -6046,6 +6117,9 @@ export const data = {
6046
6117
  "type": "string",
6047
6118
  "mapKeyType": "string"
6048
6119
  },
6120
+ "pointUuid": {
6121
+ "type": "string"
6122
+ },
6049
6123
  "templateData": {
6050
6124
  "type": "pushwoosh.cj.journey.TestWebhookRequest.TemplateData"
6051
6125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-journey-data",
3
- "version": "0.27.87",
3
+ "version": "0.27.89",
4
4
  "description": "CJ api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -26,6 +26,7 @@ export interface Journey {
26
26
  GetTagsAutocomplete(request: TagsAutocompleteRequest): Promise<TagsAutocompleteResponse>;
27
27
  GetPlaceholders(request: GetPlaceholdersRequest): Promise<GetPlaceholdersResponse>;
28
28
  GetAccountRestrictionValues(request: GetAccountRestrictionValuesRequest): Promise<GetAccountRestrictionValuesResponse>;
29
+ GetPointTemplates(request: GetPointTemplatesRequest): Promise<GetPointTemplatesResponse>;
29
30
  GetJourneyGeneralTimeStatistics(request: GetJourneyGeneralTimeStatisticsRequest): Promise<GetJourneyGeneralTimeStatisticsResponse>;
30
31
  GetJourneyUsers(request: GetJourneyUsersRequest): Promise<GetJourneyUsersResponse>;
31
32
  GetJourneyMetrics(request: GetJourneyMetricsRequest): Promise<GetJourneyMetricsResponse>;
@@ -1621,6 +1622,10 @@ export type PointParamsWebHook = {
1621
1622
  disabled: boolean;
1622
1623
  reactivate: boolean;
1623
1624
  responseMapping: WebhookResponseMapping[];
1625
+ secretHeaders: string[];
1626
+ templateRef: string;
1627
+ templateVersion: string;
1628
+ templateConfig: string;
1624
1629
  };
1625
1630
  export type AudienceSyncAction = 'AUDIENCE_SYNC_ACTION_UNSPECIFIED' | 'AUDIENCE_SYNC_ACTION_ADD' | 'AUDIENCE_SYNC_ACTION_REMOVE';
1626
1631
  export type PointParamsAudienceSync = {
@@ -1871,6 +1876,23 @@ export type AccountRestrictionValues = {
1871
1876
  allowCjLine: boolean;
1872
1877
  allowJourneyVersioning: boolean;
1873
1878
  allowCjSplitterDeviceCheck: boolean;
1879
+ allowJourneyPointTemplates: boolean;
1880
+ };
1881
+ export type GetPointTemplatesRequest = {};
1882
+ export type GetPointTemplatesResponse = {
1883
+ payload: PointTemplate[];
1884
+ };
1885
+ export type PointTemplate = {
1886
+ slug: string;
1887
+ version: string;
1888
+ title: string;
1889
+ description: string;
1890
+ icon: string;
1891
+ category: string;
1892
+ runtime: string;
1893
+ configSchema: string;
1894
+ authType: string;
1895
+ responseMapping: WebhookResponseMapping[];
1874
1896
  };
1875
1897
  export type GetJourneyGeneralTimeStatisticsRequest = {
1876
1898
  uuid?: string;
@@ -2151,6 +2173,7 @@ export type TestWebhookRequest = {
2151
2173
  url?: string;
2152
2174
  template?: string;
2153
2175
  headers?: Record<string, string>;
2176
+ pointUuid?: string;
2154
2177
  templateData?: TestWebhookRequest_TemplateData;
2155
2178
  };
2156
2179
  export type TestWebhookResponse = {