@epilot/sdk 2.18.0 → 2.18.1
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/design-runtime.json +1 -1
- package/definitions/design.json +65 -0
- 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/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 +8 -8
- package/dist/apis/design.d.cts +2 -2
- package/dist/apis/design.d.ts +2 -2
- package/dist/apis/design.js +2 -2
- 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/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/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- 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/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-7P7O46NW.cjs +14 -0
- package/dist/{chunk-UQKZYCSP.js → chunk-FDNLFLZ5.js} +2 -2
- package/dist/chunk-GAINSJUJ.js +14 -0
- package/dist/{chunk-ZL3GLE4V.cjs → chunk-NCGUD7SQ.cjs} +2 -2
- package/dist/design-FO54C6BX.js +7 -0
- package/dist/design-FO6SD3O7.cjs +7 -0
- package/dist/{design-runtime-DLMA4EHQ.js → design-runtime-HQRXWHFP.js} +1 -1
- package/dist/design-runtime-TBTG6HSN.cjs +5 -0
- package/dist/{design.d-DzSDu8cy.d.cts → design.d-CYHbiaq_.d.cts} +43 -0
- package/dist/{design.d-DzSDu8cy.d.ts → design.d-CYHbiaq_.d.ts} +43 -0
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/docs/design.md +114 -0
- package/package.json +11 -12
- package/definitions/focus-pocus-runtime.json +0 -1
- package/definitions/focus-pocus.json +0 -757
- package/dist/chunk-P4NA7NWG.js +0 -14
- package/dist/chunk-WHXYES2D.cjs +0 -14
- package/dist/design-DUFBH5ZB.js +0 -7
- package/dist/design-W3D3UPGB.cjs +0 -7
- package/dist/design-runtime-3RHYNHUV.cjs +0 -5
package/dist/index.cjs
CHANGED
|
@@ -87,7 +87,7 @@ var _chunkXNC4FWS2cjs = require('./chunk-XNC4FWS2.cjs');
|
|
|
87
87
|
var _chunkBEJ5NIRCcjs = require('./chunk-BEJ5NIRC.cjs');
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
var
|
|
90
|
+
var _chunk7P7O46NWcjs = require('./chunk-7P7O46NW.cjs');
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
var _chunkM56QQHVAcjs = require('./chunk-M56QQHVA.cjs');
|
|
@@ -158,7 +158,7 @@ var _chunkADSWGLIVcjs = require('./chunk-ADSWGLIV.cjs');
|
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
var
|
|
161
|
+
var _chunkNCGUD7SQcjs = require('./chunk-NCGUD7SQ.cjs');
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
@@ -225,7 +225,7 @@ var resolveClient = (params) => {
|
|
|
225
225
|
}
|
|
226
226
|
if (!entry.instance) {
|
|
227
227
|
const definition = entry.loader();
|
|
228
|
-
entry.instance =
|
|
228
|
+
entry.instance = _chunkNCGUD7SQcjs.createApiClient.call(void 0, {
|
|
229
229
|
definition,
|
|
230
230
|
token: state.token,
|
|
231
231
|
headers: state.globalHeaders,
|
|
@@ -258,7 +258,7 @@ var resetAllClients = (registry) => {
|
|
|
258
258
|
};
|
|
259
259
|
|
|
260
260
|
// src/apis/_registry.ts
|
|
261
|
-
var expandDef = (mod) =>
|
|
261
|
+
var expandDef = (mod) => _chunkNCGUD7SQcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
262
262
|
var registerBuiltinApis = (registry) => {
|
|
263
263
|
registerApi({
|
|
264
264
|
registry,
|
|
@@ -343,7 +343,7 @@ var registerBuiltinApis = (registry) => {
|
|
|
343
343
|
registerApi({
|
|
344
344
|
registry,
|
|
345
345
|
name: "design",
|
|
346
|
-
loader: () => expandDef(
|
|
346
|
+
loader: () => expandDef(_chunk7P7O46NWcjs.require_design_runtime.call(void 0, ))
|
|
347
347
|
});
|
|
348
348
|
registerApi({
|
|
349
349
|
registry,
|
|
@@ -601,9 +601,9 @@ var createSDK = () => {
|
|
|
601
601
|
const available = [...registry.keys()].join(", ");
|
|
602
602
|
throw new Error(`Unknown API: "${name}". Available: ${available}`);
|
|
603
603
|
}
|
|
604
|
-
return
|
|
604
|
+
return _chunkNCGUD7SQcjs.createApiHandle.call(void 0, {
|
|
605
605
|
resolveClient: () => resolveClient({ registry, name, state }),
|
|
606
|
-
createClient: () =>
|
|
606
|
+
createClient: () => _chunkNCGUD7SQcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
|
|
607
607
|
apiName: name
|
|
608
608
|
});
|
|
609
609
|
};
|
|
@@ -651,9 +651,9 @@ var createSDK = () => {
|
|
|
651
651
|
return interceptorUse;
|
|
652
652
|
}
|
|
653
653
|
case "help":
|
|
654
|
-
return (apiName) =>
|
|
654
|
+
return (apiName) => _chunkNCGUD7SQcjs.help.call(void 0, apiName);
|
|
655
655
|
case "openapi":
|
|
656
|
-
return (apiName) =>
|
|
656
|
+
return (apiName) => _chunkNCGUD7SQcjs.openapi.call(void 0, apiName);
|
|
657
657
|
case "then":
|
|
658
658
|
case "catch":
|
|
659
659
|
case "finally":
|
|
@@ -683,4 +683,4 @@ var epilot = createSDK();
|
|
|
683
683
|
|
|
684
684
|
|
|
685
685
|
|
|
686
|
-
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize =
|
|
686
|
+
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkNCGUD7SQcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkNCGUD7SQcjs.help; exports.openapi = _chunkNCGUD7SQcjs.openapi;
|
package/dist/index.d.cts
CHANGED
|
@@ -19,7 +19,7 @@ import { C as Client$c } from './customer-portal.d-JVkJjm_e.cjs';
|
|
|
19
19
|
import { C as Client$d } from './dashboard.d-CsGcA74I.cjs';
|
|
20
20
|
import { C as Client$e } from './data-governance.d-BbZ466j5.cjs';
|
|
21
21
|
import { C as Client$f } from './deduplication.d-Cueh8bDD.cjs';
|
|
22
|
-
import { C as Client$g } from './design.d-
|
|
22
|
+
import { C as Client$g } from './design.d-CYHbiaq_.cjs';
|
|
23
23
|
import { C as Client$h } from './document.d-DN37pjdx.cjs';
|
|
24
24
|
import { C as Client$i } from './email-settings.d-CR4lORuR.cjs';
|
|
25
25
|
import { C as Client$j } from './email-template.d-gtQkdaXM.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import { C as Client$c } from './customer-portal.d-JVkJjm_e.js';
|
|
|
19
19
|
import { C as Client$d } from './dashboard.d-CsGcA74I.js';
|
|
20
20
|
import { C as Client$e } from './data-governance.d-BbZ466j5.js';
|
|
21
21
|
import { C as Client$f } from './deduplication.d-Cueh8bDD.js';
|
|
22
|
-
import { C as Client$g } from './design.d-
|
|
22
|
+
import { C as Client$g } from './design.d-CYHbiaq_.js';
|
|
23
23
|
import { C as Client$h } from './document.d-DN37pjdx.js';
|
|
24
24
|
import { C as Client$i } from './email-settings.d-CR4lORuR.js';
|
|
25
25
|
import { C as Client$j } from './email-template.d-gtQkdaXM.js';
|
package/dist/index.js
CHANGED
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
} from "./chunk-5B7KMWW3.js";
|
|
88
88
|
import {
|
|
89
89
|
require_design_runtime
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-GAINSJUJ.js";
|
|
91
91
|
import {
|
|
92
92
|
require_document_runtime
|
|
93
93
|
} from "./chunk-75EI2Q64.js";
|
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
expand,
|
|
159
159
|
help,
|
|
160
160
|
openapi
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-FDNLFLZ5.js";
|
|
162
162
|
import {
|
|
163
163
|
__require
|
|
164
164
|
} from "./chunk-YPSWSI3M.js";
|
package/dist/js-yaml-DLCVPJ7G.js
CHANGED
|
File without changes
|
package/docs/design.md
CHANGED
|
@@ -30,6 +30,7 @@ const { data } = await designClient.getAllDesigns(...)
|
|
|
30
30
|
- [`getDesign`](#getdesign)
|
|
31
31
|
- [`deleteDesign`](#deletedesign)
|
|
32
32
|
- [`updateDesign`](#updatedesign)
|
|
33
|
+
- [`duplicateDesign`](#duplicatedesign)
|
|
33
34
|
- [`getThemeFromDesign`](#getthemefromdesign)
|
|
34
35
|
- [`uploadFile`](#uploadfile)
|
|
35
36
|
- [`getFiles`](#getfiles)
|
|
@@ -541,6 +542,119 @@ const { data } = await client.updateDesign(
|
|
|
541
542
|
|
|
542
543
|
---
|
|
543
544
|
|
|
545
|
+
### `duplicateDesign`
|
|
546
|
+
|
|
547
|
+
Duplicate an existing design owned by the user organization. The copy carries over the style, custom CSS and name (marked as a copy) but does NOT carry over journey/portal relations, so the new design
|
|
548
|
+
|
|
549
|
+
`POST /v1/designs/{designId}/duplicate`
|
|
550
|
+
|
|
551
|
+
```ts
|
|
552
|
+
const { data } = await client.duplicateDesign({
|
|
553
|
+
designId: 'example',
|
|
554
|
+
})
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
<details>
|
|
558
|
+
<summary>Response</summary>
|
|
559
|
+
|
|
560
|
+
```json
|
|
561
|
+
{
|
|
562
|
+
"design": {
|
|
563
|
+
"id": "string",
|
|
564
|
+
"created_at": "2021-01-30T08:30:00Z",
|
|
565
|
+
"created_by": "string",
|
|
566
|
+
"edited": true,
|
|
567
|
+
"last_modified_at": "string",
|
|
568
|
+
"brand_id": "string",
|
|
569
|
+
"brand_name": "string",
|
|
570
|
+
"user": {
|
|
571
|
+
"emailaddress": "string",
|
|
572
|
+
"fullname": "string",
|
|
573
|
+
"name": "string",
|
|
574
|
+
"userid": "string"
|
|
575
|
+
},
|
|
576
|
+
"style_name": "string",
|
|
577
|
+
"style": {
|
|
578
|
+
"logo": {},
|
|
579
|
+
"palette": {},
|
|
580
|
+
"typography": {},
|
|
581
|
+
"shape": {},
|
|
582
|
+
"consumer": {}
|
|
583
|
+
},
|
|
584
|
+
"is_default": true,
|
|
585
|
+
"_manifest": ["string"],
|
|
586
|
+
"custom_theme": "string",
|
|
587
|
+
"use_custom_theme": true,
|
|
588
|
+
"design_tokens": {
|
|
589
|
+
"coupon": "string",
|
|
590
|
+
"cashback": "string",
|
|
591
|
+
"custom_css": "string",
|
|
592
|
+
"accent_color": "string",
|
|
593
|
+
"outline_color": "string",
|
|
594
|
+
"divider_color": "string",
|
|
595
|
+
"link_color": "string",
|
|
596
|
+
"link_hover_color": "string",
|
|
597
|
+
"font_size_scale": "xs",
|
|
598
|
+
"topbar_height": 0,
|
|
599
|
+
"topbar_logo_alignment": "flex-start",
|
|
600
|
+
"logo_size": 0,
|
|
601
|
+
"input_background": "string",
|
|
602
|
+
"input_border_color": "string",
|
|
603
|
+
"input_text_color": "string",
|
|
604
|
+
"input_label_color": "string",
|
|
605
|
+
"input_border_radius": 0,
|
|
606
|
+
"input_height": 0,
|
|
607
|
+
"input_variant": "outlined",
|
|
608
|
+
"button_primary_bg": "string",
|
|
609
|
+
"button_primary_text": "string",
|
|
610
|
+
"button_primary_hover_bg": "string",
|
|
611
|
+
"button_primary_hover_text": "string",
|
|
612
|
+
"button_outlined_border": "string",
|
|
613
|
+
"button_outlined_text": "string",
|
|
614
|
+
"button_outlined_hover_bg": "string",
|
|
615
|
+
"button_outlined_hover_text": "string",
|
|
616
|
+
"button_ghost_bg": "string",
|
|
617
|
+
"button_ghost_text": "string",
|
|
618
|
+
"button_ghost_hover_bg": "string",
|
|
619
|
+
"button_ghost_hover_text": "string",
|
|
620
|
+
"button_border_radius": 0,
|
|
621
|
+
"button_height": 0,
|
|
622
|
+
"card_background": "string",
|
|
623
|
+
"card_border_color": "string",
|
|
624
|
+
"card_variant": "shadow",
|
|
625
|
+
"summary_card_background": "string",
|
|
626
|
+
"toggle_selected_bg": "string",
|
|
627
|
+
"toggle_selected_text": "string",
|
|
628
|
+
"toggle_hover_bg": "string",
|
|
629
|
+
"toggle_hover_text": "string",
|
|
630
|
+
"toggle_border_color": "string",
|
|
631
|
+
"dropdown_hover_bg": "string",
|
|
632
|
+
"dropdown_hover_text": "string",
|
|
633
|
+
"dropdown_selected_bg": "string",
|
|
634
|
+
"dropdown_selected_text": "string",
|
|
635
|
+
"switch_unchecked_color": "string",
|
|
636
|
+
"switch_unchecked_bg": "string",
|
|
637
|
+
"switch_border_radius": 0,
|
|
638
|
+
"checkbox_unchecked_color": "string",
|
|
639
|
+
"checkbox_label_color": "string",
|
|
640
|
+
"radio_unchecked_color": "string",
|
|
641
|
+
"radio_label_color": "string",
|
|
642
|
+
"datepicker_selected_bg": "string",
|
|
643
|
+
"datepicker_selected_color": "string",
|
|
644
|
+
"datepicker_border_radius": 0,
|
|
645
|
+
"chip_background": "string",
|
|
646
|
+
"chip_hover_background": "string",
|
|
647
|
+
"chip_text_color": "string",
|
|
648
|
+
"chip_hover_text_color": "string"
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
```
|
|
653
|
+
|
|
654
|
+
</details>
|
|
655
|
+
|
|
656
|
+
---
|
|
657
|
+
|
|
544
658
|
### `getThemeFromDesign`
|
|
545
659
|
|
|
546
660
|
Search for a especific design owned by user organization and parse them to a new or old theme
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/sdk",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.1",
|
|
4
4
|
"description": "JavaScript/TypeScript SDK for epilot APIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -322,16 +322,6 @@
|
|
|
322
322
|
},
|
|
323
323
|
"./workflow-definition/openapi.json": "./definitions/workflow-definition.json"
|
|
324
324
|
},
|
|
325
|
-
"scripts": {
|
|
326
|
-
"generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
|
|
327
|
-
"build": "tsup",
|
|
328
|
-
"build:watch": "tsup --watch",
|
|
329
|
-
"test": "vitest run",
|
|
330
|
-
"test:watch": "vitest",
|
|
331
|
-
"lint": "biome check src",
|
|
332
|
-
"lint:fix": "biome check src --fix",
|
|
333
|
-
"prepublishOnly": "npm run build"
|
|
334
|
-
},
|
|
335
325
|
"keywords": [
|
|
336
326
|
"epilot",
|
|
337
327
|
"sdk",
|
|
@@ -525,5 +515,14 @@
|
|
|
525
515
|
"./dist/apis/workflow-definition.d.ts"
|
|
526
516
|
]
|
|
527
517
|
}
|
|
518
|
+
},
|
|
519
|
+
"scripts": {
|
|
520
|
+
"generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
|
|
521
|
+
"build": "tsup",
|
|
522
|
+
"build:watch": "tsup --watch",
|
|
523
|
+
"test": "vitest run",
|
|
524
|
+
"test:watch": "vitest",
|
|
525
|
+
"lint": "biome check src",
|
|
526
|
+
"lint:fix": "biome check src --fix"
|
|
528
527
|
}
|
|
529
|
-
}
|
|
528
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"s":"https://focus-pocus.dev.sls.epilot.io","o":[["getHealth","get","/v1/health"],["listAchievements","get","/v1/achievements"],["getAchievement","get","/v1/achievements/{id}",[["AchievementOrChallengeId"]]],["getSuggestedChallenge","get","/v1/challenges/suggest",[["route","q"],["entity_type","q"],["category_hint","q"]]],["acceptChallenge","post","/v1/challenges/{id}/accept",[["ChallengeId"]]],["dismissChallenge","post","/v1/challenges/{id}/dismiss",[["ChallengeId"]]],["listActiveChallenges","get","/v1/challenges/active"],["postEvent","post","/v1/events",null,1]],"v":"3.0.3","cp":{"AchievementId":["id","p",true],"AchievementOrChallengeId":["id","p",true],"ChallengeId":["id","p",true],"Cursor":["cursor","q"],"Size":["size","q"]}}
|