@epilot/sdk 2.20.78 → 2.20.79
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/definitions/integration-toolkit.json +251 -63
- package/definitions/journey-runtime.json +1 -1
- package/definitions/journey.json +399 -13
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/chat.cjs +6 -6
- package/dist/apis/chat.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/external-values.cjs +6 -6
- package/dist/apis/external-values.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/identity.cjs +6 -6
- package/dist/apis/identity.js +1 -1
- package/dist/apis/integration-toolkit.cjs +14 -10
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +9 -5
- package/dist/apis/journey.cjs +8 -8
- package/dist/apis/journey.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- package/dist/apis/journey.js +2 -2
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/phone-integration.cjs +6 -6
- package/dist/apis/phone-integration.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-M5Z7JYJ3.cjs → chunk-4G44P2X4.cjs} +3 -3
- package/dist/{chunk-ZREXF3XS.js → chunk-5Z7XQQT2.js} +3 -3
- package/dist/{chunk-I3ZZES76.js → chunk-NQBHADQX.js} +1 -1
- package/dist/{chunk-QYHNZLHS.cjs → chunk-PK5IH3WQ.cjs} +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/integration-toolkit-3XNG4PL5.cjs +7 -0
- package/dist/integration-toolkit-VLTS5HKV.js +7 -0
- package/dist/{integration-toolkit.d-l5cgwHLa.d.cts → integration-toolkit.d-BGF0LVB7.d.cts} +587 -85
- package/dist/{integration-toolkit.d-l5cgwHLa.d.ts → integration-toolkit.d-BGF0LVB7.d.ts} +587 -85
- package/dist/journey-LAEXXNCD.js +7 -0
- package/dist/journey-RKBZQRPL.cjs +7 -0
- package/dist/{journey-runtime-KZUPV4XH.cjs → journey-runtime-2N77HRB6.cjs} +2 -2
- package/dist/{journey-runtime-AQH7EG4C.js → journey-runtime-YJ5G4IG2.js} +1 -1
- package/dist/{journey.d-CMtM6U3Y.d.cts → journey.d-5GpTnSld.d.cts} +261 -80
- package/dist/{journey.d-CMtM6U3Y.d.ts → journey.d-5GpTnSld.d.ts} +261 -80
- package/docs/integration-toolkit.md +88 -270
- package/docs/journey.md +217 -38
- package/package.json +1 -1
- package/dist/integration-toolkit-FI32O7II.cjs +0 -7
- package/dist/integration-toolkit-MHULDW3E.js +0 -7
- package/dist/journey-JDIVUY7T.cjs +0 -7
- package/dist/journey-PBOMOJ5G.js +0 -7
package/docs/journey.md
CHANGED
|
@@ -36,6 +36,7 @@ const { data } = await journeyClient.getJourneysByOrgId(...)
|
|
|
36
36
|
- [`getJourneyEnvironment`](#getjourneyenvironment)
|
|
37
37
|
- [`resolveJourneyExternalValues`](#resolvejourneyexternalvalues)
|
|
38
38
|
- [`getJourneyEnvironmentVariables`](#getjourneyenvironmentvariables)
|
|
39
|
+
- [`getJourneyTemplateVariables`](#getjourneytemplatevariables)
|
|
39
40
|
- [`getJourneyProducts`](#getjourneyproducts)
|
|
40
41
|
- [`createJourney`](#createjourney)
|
|
41
42
|
- [`updateJourney`](#updatejourney)
|
|
@@ -62,6 +63,11 @@ const { data } = await journeyClient.getJourneysByOrgId(...)
|
|
|
62
63
|
- [`JourneyExternalValuesRequest`](#journeyexternalvaluesrequest)
|
|
63
64
|
- [`JourneyExternalValuesResponse`](#journeyexternalvaluesresponse)
|
|
64
65
|
- [`ExternalValueError`](#externalvalueerror)
|
|
66
|
+
- [`JourneyTemplatingContext`](#journeytemplatingcontext)
|
|
67
|
+
- [`JourneyTemplateVariablesResponse`](#journeytemplatevariablesresponse)
|
|
68
|
+
- [`JourneyTemplating`](#journeytemplating)
|
|
69
|
+
- [`JourneyTemplatingLink`](#journeytemplatinglink)
|
|
70
|
+
- [`JourneyTemplatingTranslatable`](#journeytemplatingtranslatable)
|
|
65
71
|
- [`JourneyEnvironmentVariablesResponse`](#journeyenvironmentvariablesresponse)
|
|
66
72
|
- [`GetJourneysResponse`](#getjourneysresponse)
|
|
67
73
|
- [`JourneyResponse`](#journeyresponse)
|
|
@@ -241,7 +247,12 @@ const { data } = await client.getJourney({
|
|
|
241
247
|
},
|
|
242
248
|
"thirdPartyCookies": true,
|
|
243
249
|
"betaFeatures": {
|
|
244
|
-
"modernProducts": true
|
|
250
|
+
"modernProducts": true,
|
|
251
|
+
"modernLauncher": true
|
|
252
|
+
},
|
|
253
|
+
"offline": {
|
|
254
|
+
"enabled": true,
|
|
255
|
+
"packTtlHours": 24
|
|
245
256
|
}
|
|
246
257
|
},
|
|
247
258
|
"validationRules": {
|
|
@@ -253,7 +264,6 @@ const { data } = await client.getJourney({
|
|
|
253
264
|
}
|
|
254
265
|
},
|
|
255
266
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
256
|
-
"blueprint_customization": {},
|
|
257
267
|
"createdBy": "string",
|
|
258
268
|
"updatedBy": "string",
|
|
259
269
|
"__lastModifiedAt": "string",
|
|
@@ -263,6 +273,12 @@ const { data } = await client.getJourney({
|
|
|
263
273
|
"version": 0,
|
|
264
274
|
"revisions": 0,
|
|
265
275
|
"featureFlags": {},
|
|
276
|
+
"templating": {
|
|
277
|
+
"customVariables": [
|
|
278
|
+
{}
|
|
279
|
+
],
|
|
280
|
+
"env": {}
|
|
281
|
+
},
|
|
266
282
|
"revision_id": "42"
|
|
267
283
|
}
|
|
268
284
|
```
|
|
@@ -398,7 +414,12 @@ const { data } = await client.createJourneyRevision(
|
|
|
398
414
|
},
|
|
399
415
|
thirdPartyCookies: true,
|
|
400
416
|
betaFeatures: {
|
|
401
|
-
modernProducts: true
|
|
417
|
+
modernProducts: true,
|
|
418
|
+
modernLauncher: true
|
|
419
|
+
},
|
|
420
|
+
offline: {
|
|
421
|
+
enabled: true,
|
|
422
|
+
packTtlHours: 24
|
|
402
423
|
}
|
|
403
424
|
},
|
|
404
425
|
validationRules: {
|
|
@@ -410,7 +431,6 @@ const { data } = await client.createJourneyRevision(
|
|
|
410
431
|
}
|
|
411
432
|
},
|
|
412
433
|
_manifest: ['123e4567-e89b-12d3-a456-426614174000'],
|
|
413
|
-
blueprint_customization: {},
|
|
414
434
|
createdBy: 'string',
|
|
415
435
|
updatedBy: 'string',
|
|
416
436
|
__lastModifiedAt: 'string',
|
|
@@ -565,7 +585,8 @@ const { data } = await client.getJourneyRevision({
|
|
|
565
585
|
"isActive": true,
|
|
566
586
|
"savingProgress": {},
|
|
567
587
|
"thirdPartyCookies": true,
|
|
568
|
-
"betaFeatures": {}
|
|
588
|
+
"betaFeatures": {},
|
|
589
|
+
"offline": {}
|
|
569
590
|
},
|
|
570
591
|
"validationRules": {
|
|
571
592
|
"block1": "rule123",
|
|
@@ -573,7 +594,6 @@ const { data } = await client.getJourneyRevision({
|
|
|
573
594
|
"block3": {}
|
|
574
595
|
},
|
|
575
596
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
576
|
-
"blueprint_customization": {},
|
|
577
597
|
"createdBy": "string",
|
|
578
598
|
"updatedBy": "string",
|
|
579
599
|
"__lastModifiedAt": "string",
|
|
@@ -582,7 +602,11 @@ const { data } = await client.getJourneyRevision({
|
|
|
582
602
|
"deletedAt": "string",
|
|
583
603
|
"version": 0,
|
|
584
604
|
"revisions": 0,
|
|
585
|
-
"featureFlags": {}
|
|
605
|
+
"featureFlags": {},
|
|
606
|
+
"templating": {
|
|
607
|
+
"customVariables": [],
|
|
608
|
+
"env": {}
|
|
609
|
+
}
|
|
586
610
|
}
|
|
587
611
|
}
|
|
588
612
|
```
|
|
@@ -791,6 +815,42 @@ const { data } = await client.getJourneyEnvironmentVariables()
|
|
|
791
815
|
|
|
792
816
|
---
|
|
793
817
|
|
|
818
|
+
### `getJourneyTemplateVariables`
|
|
819
|
+
|
|
820
|
+
List what a journey template can reference beyond the entity's own attributes: the organization's Custom Variables and its scalar environment variables (`String`, `Text`, `Number`, `Boolean`). Names o
|
|
821
|
+
|
|
822
|
+
`GET /v1/journey/template-variables`
|
|
823
|
+
|
|
824
|
+
```ts
|
|
825
|
+
const { data } = await client.getJourneyTemplateVariables()
|
|
826
|
+
```
|
|
827
|
+
|
|
828
|
+
<details>
|
|
829
|
+
<summary>Response</summary>
|
|
830
|
+
|
|
831
|
+
```json
|
|
832
|
+
{
|
|
833
|
+
"customVariables": [
|
|
834
|
+
{
|
|
835
|
+
"key": "string",
|
|
836
|
+
"name": "string"
|
|
837
|
+
}
|
|
838
|
+
],
|
|
839
|
+
"environment": [
|
|
840
|
+
{
|
|
841
|
+
"key": "string",
|
|
842
|
+
"type": "String",
|
|
843
|
+
"description": "string",
|
|
844
|
+
"group": "string"
|
|
845
|
+
}
|
|
846
|
+
]
|
|
847
|
+
}
|
|
848
|
+
```
|
|
849
|
+
|
|
850
|
+
</details>
|
|
851
|
+
|
|
852
|
+
---
|
|
853
|
+
|
|
794
854
|
### `getJourneyProducts`
|
|
795
855
|
|
|
796
856
|
Get products available in the journey by id. requires public journey token to be passed.
|
|
@@ -954,7 +1014,12 @@ const { data } = await client.createJourney(
|
|
|
954
1014
|
},
|
|
955
1015
|
thirdPartyCookies: true,
|
|
956
1016
|
betaFeatures: {
|
|
957
|
-
modernProducts: true
|
|
1017
|
+
modernProducts: true,
|
|
1018
|
+
modernLauncher: true
|
|
1019
|
+
},
|
|
1020
|
+
offline: {
|
|
1021
|
+
enabled: true,
|
|
1022
|
+
packTtlHours: 24
|
|
958
1023
|
}
|
|
959
1024
|
},
|
|
960
1025
|
validationRules: {
|
|
@@ -966,7 +1031,6 @@ const { data } = await client.createJourney(
|
|
|
966
1031
|
}
|
|
967
1032
|
},
|
|
968
1033
|
_manifest: ['123e4567-e89b-12d3-a456-426614174000'],
|
|
969
|
-
blueprint_customization: {},
|
|
970
1034
|
createdBy: 'string',
|
|
971
1035
|
updatedBy: 'string',
|
|
972
1036
|
__lastModifiedAt: 'string'
|
|
@@ -1080,7 +1144,12 @@ const { data } = await client.createJourney(
|
|
|
1080
1144
|
},
|
|
1081
1145
|
"thirdPartyCookies": true,
|
|
1082
1146
|
"betaFeatures": {
|
|
1083
|
-
"modernProducts": true
|
|
1147
|
+
"modernProducts": true,
|
|
1148
|
+
"modernLauncher": true
|
|
1149
|
+
},
|
|
1150
|
+
"offline": {
|
|
1151
|
+
"enabled": true,
|
|
1152
|
+
"packTtlHours": 24
|
|
1084
1153
|
}
|
|
1085
1154
|
},
|
|
1086
1155
|
"validationRules": {
|
|
@@ -1092,7 +1161,6 @@ const { data } = await client.createJourney(
|
|
|
1092
1161
|
}
|
|
1093
1162
|
},
|
|
1094
1163
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
1095
|
-
"blueprint_customization": {},
|
|
1096
1164
|
"createdBy": "string",
|
|
1097
1165
|
"updatedBy": "string",
|
|
1098
1166
|
"__lastModifiedAt": "string",
|
|
@@ -1101,7 +1169,13 @@ const { data } = await client.createJourney(
|
|
|
1101
1169
|
"deletedAt": "string",
|
|
1102
1170
|
"version": 0,
|
|
1103
1171
|
"revisions": 0,
|
|
1104
|
-
"featureFlags": {}
|
|
1172
|
+
"featureFlags": {},
|
|
1173
|
+
"templating": {
|
|
1174
|
+
"customVariables": [
|
|
1175
|
+
{}
|
|
1176
|
+
],
|
|
1177
|
+
"env": {}
|
|
1178
|
+
}
|
|
1105
1179
|
}
|
|
1106
1180
|
```
|
|
1107
1181
|
|
|
@@ -1220,7 +1294,12 @@ const { data } = await client.updateJourney(
|
|
|
1220
1294
|
},
|
|
1221
1295
|
thirdPartyCookies: true,
|
|
1222
1296
|
betaFeatures: {
|
|
1223
|
-
modernProducts: true
|
|
1297
|
+
modernProducts: true,
|
|
1298
|
+
modernLauncher: true
|
|
1299
|
+
},
|
|
1300
|
+
offline: {
|
|
1301
|
+
enabled: true,
|
|
1302
|
+
packTtlHours: 24
|
|
1224
1303
|
}
|
|
1225
1304
|
},
|
|
1226
1305
|
validationRules: {
|
|
@@ -1232,7 +1311,6 @@ const { data } = await client.updateJourney(
|
|
|
1232
1311
|
}
|
|
1233
1312
|
},
|
|
1234
1313
|
_manifest: ['123e4567-e89b-12d3-a456-426614174000'],
|
|
1235
|
-
blueprint_customization: {},
|
|
1236
1314
|
createdBy: 'string',
|
|
1237
1315
|
updatedBy: 'string',
|
|
1238
1316
|
__lastModifiedAt: 'string'
|
|
@@ -1321,7 +1399,8 @@ const { data } = await client.patchUpdateJourney(
|
|
|
1321
1399
|
"isActive": true,
|
|
1322
1400
|
"savingProgress": {},
|
|
1323
1401
|
"thirdPartyCookies": true,
|
|
1324
|
-
"betaFeatures": {}
|
|
1402
|
+
"betaFeatures": {},
|
|
1403
|
+
"offline": {}
|
|
1325
1404
|
},
|
|
1326
1405
|
"validationRules": {
|
|
1327
1406
|
"block1": "rule123",
|
|
@@ -1329,7 +1408,6 @@ const { data } = await client.patchUpdateJourney(
|
|
|
1329
1408
|
"block3": {}
|
|
1330
1409
|
},
|
|
1331
1410
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
1332
|
-
"blueprint_customization": {},
|
|
1333
1411
|
"createdBy": "string",
|
|
1334
1412
|
"updatedBy": "string",
|
|
1335
1413
|
"__lastModifiedAt": "string",
|
|
@@ -1338,7 +1416,11 @@ const { data } = await client.patchUpdateJourney(
|
|
|
1338
1416
|
"deletedAt": "string",
|
|
1339
1417
|
"version": 0,
|
|
1340
1418
|
"revisions": 0,
|
|
1341
|
-
"featureFlags": {}
|
|
1419
|
+
"featureFlags": {},
|
|
1420
|
+
"templating": {
|
|
1421
|
+
"customVariables": [],
|
|
1422
|
+
"env": {}
|
|
1423
|
+
}
|
|
1342
1424
|
}
|
|
1343
1425
|
}
|
|
1344
1426
|
```
|
|
@@ -1580,7 +1662,12 @@ const { data } = await client.createJourneyV2(
|
|
|
1580
1662
|
supportedRevision: 0
|
|
1581
1663
|
},
|
|
1582
1664
|
betaFeatures: {
|
|
1583
|
-
modernProducts: true
|
|
1665
|
+
modernProducts: true,
|
|
1666
|
+
modernLauncher: true
|
|
1667
|
+
},
|
|
1668
|
+
offline: {
|
|
1669
|
+
enabled: true,
|
|
1670
|
+
packTtlHours: 24
|
|
1584
1671
|
}
|
|
1585
1672
|
},
|
|
1586
1673
|
validationRules: {
|
|
@@ -1591,8 +1678,7 @@ const { data } = await client.createJourneyV2(
|
|
|
1591
1678
|
field2: ['rule102', 'rule103']
|
|
1592
1679
|
}
|
|
1593
1680
|
},
|
|
1594
|
-
_manifest: ['123e4567-e89b-12d3-a456-426614174000']
|
|
1595
|
-
blueprint_customization: {}
|
|
1681
|
+
_manifest: ['123e4567-e89b-12d3-a456-426614174000']
|
|
1596
1682
|
},
|
|
1597
1683
|
)
|
|
1598
1684
|
```
|
|
@@ -1698,7 +1784,12 @@ const { data } = await client.createJourneyV2(
|
|
|
1698
1784
|
"supportedRevision": 0
|
|
1699
1785
|
},
|
|
1700
1786
|
"betaFeatures": {
|
|
1701
|
-
"modernProducts": true
|
|
1787
|
+
"modernProducts": true,
|
|
1788
|
+
"modernLauncher": true
|
|
1789
|
+
},
|
|
1790
|
+
"offline": {
|
|
1791
|
+
"enabled": true,
|
|
1792
|
+
"packTtlHours": 24
|
|
1702
1793
|
}
|
|
1703
1794
|
},
|
|
1704
1795
|
"validationRules": {
|
|
@@ -1709,8 +1800,7 @@ const { data } = await client.createJourneyV2(
|
|
|
1709
1800
|
"field2": ["rule102", "rule103"]
|
|
1710
1801
|
}
|
|
1711
1802
|
},
|
|
1712
|
-
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
1713
|
-
"blueprint_customization": {}
|
|
1803
|
+
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
1714
1804
|
}
|
|
1715
1805
|
```
|
|
1716
1806
|
|
|
@@ -1824,7 +1914,12 @@ const { data } = await client.updateJourneyV2(
|
|
|
1824
1914
|
supportedRevision: 0
|
|
1825
1915
|
},
|
|
1826
1916
|
betaFeatures: {
|
|
1827
|
-
modernProducts: true
|
|
1917
|
+
modernProducts: true,
|
|
1918
|
+
modernLauncher: true
|
|
1919
|
+
},
|
|
1920
|
+
offline: {
|
|
1921
|
+
enabled: true,
|
|
1922
|
+
packTtlHours: 24
|
|
1828
1923
|
}
|
|
1829
1924
|
},
|
|
1830
1925
|
validationRules: {
|
|
@@ -1835,8 +1930,7 @@ const { data } = await client.updateJourneyV2(
|
|
|
1835
1930
|
field2: ['rule102', 'rule103']
|
|
1836
1931
|
}
|
|
1837
1932
|
},
|
|
1838
|
-
_manifest: ['123e4567-e89b-12d3-a456-426614174000']
|
|
1839
|
-
blueprint_customization: {}
|
|
1933
|
+
_manifest: ['123e4567-e89b-12d3-a456-426614174000']
|
|
1840
1934
|
},
|
|
1841
1935
|
)
|
|
1842
1936
|
```
|
|
@@ -1942,7 +2036,12 @@ const { data } = await client.updateJourneyV2(
|
|
|
1942
2036
|
"supportedRevision": 0
|
|
1943
2037
|
},
|
|
1944
2038
|
"betaFeatures": {
|
|
1945
|
-
"modernProducts": true
|
|
2039
|
+
"modernProducts": true,
|
|
2040
|
+
"modernLauncher": true
|
|
2041
|
+
},
|
|
2042
|
+
"offline": {
|
|
2043
|
+
"enabled": true,
|
|
2044
|
+
"packTtlHours": 24
|
|
1946
2045
|
}
|
|
1947
2046
|
},
|
|
1948
2047
|
"validationRules": {
|
|
@@ -1953,8 +2052,7 @@ const { data } = await client.updateJourneyV2(
|
|
|
1953
2052
|
"field2": ["rule102", "rule103"]
|
|
1954
2053
|
}
|
|
1955
2054
|
},
|
|
1956
|
-
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
1957
|
-
"blueprint_customization": {}
|
|
2055
|
+
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
1958
2056
|
}
|
|
1959
2057
|
```
|
|
1960
2058
|
|
|
@@ -2079,7 +2177,12 @@ const { data } = await client.patchUpdateJourneyV2(
|
|
|
2079
2177
|
"supportedRevision": 0
|
|
2080
2178
|
},
|
|
2081
2179
|
"betaFeatures": {
|
|
2082
|
-
"modernProducts": true
|
|
2180
|
+
"modernProducts": true,
|
|
2181
|
+
"modernLauncher": true
|
|
2182
|
+
},
|
|
2183
|
+
"offline": {
|
|
2184
|
+
"enabled": true,
|
|
2185
|
+
"packTtlHours": 24
|
|
2083
2186
|
}
|
|
2084
2187
|
},
|
|
2085
2188
|
"validationRules": {
|
|
@@ -2090,8 +2193,7 @@ const { data } = await client.patchUpdateJourneyV2(
|
|
|
2090
2193
|
"field2": ["rule102", "rule103"]
|
|
2091
2194
|
}
|
|
2092
2195
|
},
|
|
2093
|
-
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
2094
|
-
"blueprint_customization": {}
|
|
2196
|
+
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
2095
2197
|
}
|
|
2096
2198
|
```
|
|
2097
2199
|
|
|
@@ -2213,7 +2315,12 @@ const { data } = await client.getJourneyV2({
|
|
|
2213
2315
|
"supportedRevision": 0
|
|
2214
2316
|
},
|
|
2215
2317
|
"betaFeatures": {
|
|
2216
|
-
"modernProducts": true
|
|
2318
|
+
"modernProducts": true,
|
|
2319
|
+
"modernLauncher": true
|
|
2320
|
+
},
|
|
2321
|
+
"offline": {
|
|
2322
|
+
"enabled": true,
|
|
2323
|
+
"packTtlHours": 24
|
|
2217
2324
|
}
|
|
2218
2325
|
},
|
|
2219
2326
|
"validationRules": {
|
|
@@ -2224,8 +2331,7 @@ const { data } = await client.getJourneyV2({
|
|
|
2224
2331
|
"field2": ["rule102", "rule103"]
|
|
2225
2332
|
}
|
|
2226
2333
|
},
|
|
2227
|
-
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
2228
|
-
"blueprint_customization": {}
|
|
2334
|
+
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
2229
2335
|
}
|
|
2230
2336
|
```
|
|
2231
2337
|
|
|
@@ -2266,7 +2372,8 @@ const { data } = await client.getSettingsForJourney({
|
|
|
2266
2372
|
{
|
|
2267
2373
|
"organizationId": "739224",
|
|
2268
2374
|
"canary": true,
|
|
2269
|
-
"thirdPartyCookies": true
|
|
2375
|
+
"thirdPartyCookies": true,
|
|
2376
|
+
"offline": true
|
|
2270
2377
|
}
|
|
2271
2378
|
```
|
|
2272
2379
|
|
|
@@ -2453,6 +2560,77 @@ type ExternalValueError = {
|
|
|
2453
2560
|
}
|
|
2454
2561
|
```
|
|
2455
2562
|
|
|
2563
|
+
### `JourneyTemplatingContext`
|
|
2564
|
+
|
|
2565
|
+
What the journey's Handlebars templates need from the organization, derived from the served configuration only. Present when the journey contains templates and templating is enabled for the organization. Read-only: like `featureFlags`, it is dropped from any write, so a client that sends the configu
|
|
2566
|
+
|
|
2567
|
+
```ts
|
|
2568
|
+
type JourneyTemplatingContext = {
|
|
2569
|
+
templating?: {
|
|
2570
|
+
customVariables: Array<{
|
|
2571
|
+
key: { ... }
|
|
2572
|
+
template: { ... }
|
|
2573
|
+
}>
|
|
2574
|
+
env: Record<string, string | number | boolean | {
|
|
2575
|
+
url: { ... }
|
|
2576
|
+
label: { ... }
|
|
2577
|
+
description?: { ... }
|
|
2578
|
+
}>
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
```
|
|
2582
|
+
|
|
2583
|
+
### `JourneyTemplateVariablesResponse`
|
|
2584
|
+
|
|
2585
|
+
```ts
|
|
2586
|
+
type JourneyTemplateVariablesResponse = {
|
|
2587
|
+
customVariables: Array<{
|
|
2588
|
+
key: string
|
|
2589
|
+
name: string
|
|
2590
|
+
}>
|
|
2591
|
+
environment: Array<{
|
|
2592
|
+
key: string
|
|
2593
|
+
type: "String" | "Text" | "Number" | "Boolean" | "Link"
|
|
2594
|
+
description?: string
|
|
2595
|
+
group?: string
|
|
2596
|
+
}>
|
|
2597
|
+
}
|
|
2598
|
+
```
|
|
2599
|
+
|
|
2600
|
+
### `JourneyTemplating`
|
|
2601
|
+
|
|
2602
|
+
```ts
|
|
2603
|
+
type JourneyTemplating = {
|
|
2604
|
+
customVariables: Array<{
|
|
2605
|
+
key: string
|
|
2606
|
+
template: string
|
|
2607
|
+
}>
|
|
2608
|
+
env: Record<string, string | number | boolean | {
|
|
2609
|
+
url: string
|
|
2610
|
+
label: string | Record<string, string>
|
|
2611
|
+
description?: string | Record<string, string>
|
|
2612
|
+
}>
|
|
2613
|
+
}
|
|
2614
|
+
```
|
|
2615
|
+
|
|
2616
|
+
### `JourneyTemplatingLink`
|
|
2617
|
+
|
|
2618
|
+
A Link variable; label and description are a string or per-language strings, resolved by the runtime
|
|
2619
|
+
|
|
2620
|
+
```ts
|
|
2621
|
+
type JourneyTemplatingLink = {
|
|
2622
|
+
url: string
|
|
2623
|
+
label: string | Record<string, string>
|
|
2624
|
+
description?: string | Record<string, string>
|
|
2625
|
+
}
|
|
2626
|
+
```
|
|
2627
|
+
|
|
2628
|
+
### `JourneyTemplatingTranslatable`
|
|
2629
|
+
|
|
2630
|
+
```ts
|
|
2631
|
+
type JourneyTemplatingTranslatable = string | Record<string, string>
|
|
2632
|
+
```
|
|
2633
|
+
|
|
2456
2634
|
### `JourneyEnvironmentVariablesResponse`
|
|
2457
2635
|
|
|
2458
2636
|
```ts
|
|
@@ -2575,10 +2753,10 @@ type JourneyResponse = {
|
|
|
2575
2753
|
savingProgress?: { ... }
|
|
2576
2754
|
thirdPartyCookies?: { ... }
|
|
2577
2755
|
betaFeatures?: { ... }
|
|
2756
|
+
offline?: { ... }
|
|
2578
2757
|
}
|
|
2579
2758
|
validationRules?: Record<string, string | string[] | Record<string, string | string[]>>
|
|
2580
2759
|
_manifest?: string // uuid[]
|
|
2581
|
-
blueprint_customization?: Record<string, unknown>
|
|
2582
2760
|
createdBy?: string
|
|
2583
2761
|
updatedBy?: string
|
|
2584
2762
|
__lastModifiedAt?: string
|
|
@@ -3277,8 +3455,8 @@ type JourneyRevision = {
|
|
|
3277
3455
|
savingProgress?: { ... }
|
|
3278
3456
|
thirdPartyCookies?: { ... }
|
|
3279
3457
|
betaFeatures?: { ... }
|
|
3458
|
+
offline?: { ... }
|
|
3280
3459
|
}
|
|
3281
|
-
validationRules?: Record<string, string | string[] | Record<string, string | string[]>>
|
|
3282
3460
|
// ...
|
|
3283
3461
|
}
|
|
3284
3462
|
```
|
|
@@ -3459,6 +3637,7 @@ type GetSettingsForJourney = {
|
|
|
3459
3637
|
organizationId?: string
|
|
3460
3638
|
canary?: boolean
|
|
3461
3639
|
thirdPartyCookies?: boolean
|
|
3640
|
+
offline?: boolean
|
|
3462
3641
|
}
|
|
3463
3642
|
```
|
|
3464
3643
|
|