@eventcatalog/sdk 2.19.0 → 2.21.0
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/dist/index.d.mts +465 -5
- package/dist/index.d.ts +465 -5
- package/dist/index.js +623 -171
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +619 -171
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,10 +30,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
|
+
FlowBuilder: () => FlowBuilder,
|
|
33
34
|
default: () => src_default
|
|
34
35
|
});
|
|
35
36
|
module.exports = __toCommonJS(src_exports);
|
|
36
|
-
var
|
|
37
|
+
var import_node_path23 = require("path");
|
|
37
38
|
|
|
38
39
|
// src/dsl/utils.ts
|
|
39
40
|
var import_glob = require("glob");
|
|
@@ -2520,13 +2521,393 @@ var entityHasVersion = (directory) => async (id, version) => {
|
|
|
2520
2521
|
return !!file;
|
|
2521
2522
|
};
|
|
2522
2523
|
|
|
2524
|
+
// src/flows.ts
|
|
2525
|
+
var import_promises12 = __toESM(require("fs/promises"));
|
|
2526
|
+
var import_node_path19 = require("path");
|
|
2527
|
+
|
|
2528
|
+
// src/flow-builder.ts
|
|
2529
|
+
var cloneStep = (step) => ({
|
|
2530
|
+
...step,
|
|
2531
|
+
...step.message ? { message: { ...step.message } } : {},
|
|
2532
|
+
...step.service ? { service: { ...step.service } } : {},
|
|
2533
|
+
...step.flow ? { flow: { ...step.flow } } : {},
|
|
2534
|
+
...step.actor ? { actor: { ...step.actor } } : {},
|
|
2535
|
+
...step.custom ? {
|
|
2536
|
+
custom: {
|
|
2537
|
+
...step.custom,
|
|
2538
|
+
...step.custom.properties ? { properties: { ...step.custom.properties } } : {},
|
|
2539
|
+
...step.custom.menu ? { menu: step.custom.menu.map((item) => ({ ...item })) } : {}
|
|
2540
|
+
}
|
|
2541
|
+
} : {},
|
|
2542
|
+
...step.externalSystem ? { externalSystem: { ...step.externalSystem } } : {},
|
|
2543
|
+
...step.next_step !== void 0 ? { next_step: typeof step.next_step === "object" ? { ...step.next_step } : step.next_step } : {},
|
|
2544
|
+
...step.next_steps ? { next_steps: step.next_steps.map((next) => typeof next === "object" ? { ...next } : next) } : {}
|
|
2545
|
+
});
|
|
2546
|
+
var FlowBuilder = class _FlowBuilder {
|
|
2547
|
+
constructor(flow) {
|
|
2548
|
+
this.steps = /* @__PURE__ */ new Map();
|
|
2549
|
+
this.order = [];
|
|
2550
|
+
this.flowResource = { ...flow };
|
|
2551
|
+
for (const step of flow.steps || []) {
|
|
2552
|
+
this.appendStep(cloneStep(step));
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2555
|
+
/**
|
|
2556
|
+
* Create a flow builder.
|
|
2557
|
+
*
|
|
2558
|
+
* The created builder can add steps and then produce a normal `Flow` resource
|
|
2559
|
+
* with `build()`.
|
|
2560
|
+
*
|
|
2561
|
+
* @example
|
|
2562
|
+
* ```ts
|
|
2563
|
+
* const flow = FlowBuilder.create({
|
|
2564
|
+
* id: 'PaymentFlow',
|
|
2565
|
+
* name: 'Payment Flow',
|
|
2566
|
+
* version: '1.0.0',
|
|
2567
|
+
* markdown: '# Payment Flow',
|
|
2568
|
+
* }).build();
|
|
2569
|
+
* ```
|
|
2570
|
+
*/
|
|
2571
|
+
static create(flow) {
|
|
2572
|
+
return new _FlowBuilder(flow);
|
|
2573
|
+
}
|
|
2574
|
+
/**
|
|
2575
|
+
* Add a generic flow step.
|
|
2576
|
+
*
|
|
2577
|
+
* Generic steps are useful for business process stages that do not map to
|
|
2578
|
+
* another catalog resource.
|
|
2579
|
+
*
|
|
2580
|
+
* @param step - The step payload.
|
|
2581
|
+
*
|
|
2582
|
+
* @example
|
|
2583
|
+
* ```ts
|
|
2584
|
+
* FlowBuilder.create({
|
|
2585
|
+
* id: 'OrderFlow',
|
|
2586
|
+
* name: 'Order Flow',
|
|
2587
|
+
* version: '1.0.0',
|
|
2588
|
+
* markdown: '',
|
|
2589
|
+
* })
|
|
2590
|
+
* .addStep({
|
|
2591
|
+
* id: 'Calculate',
|
|
2592
|
+
* title: 'Calculate totals',
|
|
2593
|
+
* nextSteps: [{ id: 'OrderConfirmed' }],
|
|
2594
|
+
* });
|
|
2595
|
+
* ```
|
|
2596
|
+
*/
|
|
2597
|
+
addStep(step) {
|
|
2598
|
+
return this.addStepWithNext(
|
|
2599
|
+
{
|
|
2600
|
+
id: step.id,
|
|
2601
|
+
title: step.title || String(step.id),
|
|
2602
|
+
...step.summary ? { summary: step.summary } : {}
|
|
2603
|
+
},
|
|
2604
|
+
step.nextSteps
|
|
2605
|
+
);
|
|
2606
|
+
}
|
|
2607
|
+
/**
|
|
2608
|
+
* Add a message step.
|
|
2609
|
+
*
|
|
2610
|
+
* Message steps can reference an event, command, or query id.
|
|
2611
|
+
*
|
|
2612
|
+
* @param step - The message step payload.
|
|
2613
|
+
*
|
|
2614
|
+
* @example
|
|
2615
|
+
* ```ts
|
|
2616
|
+
* FlowBuilder.create({
|
|
2617
|
+
* id: 'OrderFlow',
|
|
2618
|
+
* name: 'Order Flow',
|
|
2619
|
+
* version: '1.0.0',
|
|
2620
|
+
* markdown: '',
|
|
2621
|
+
* })
|
|
2622
|
+
* .addMessageStep({
|
|
2623
|
+
* id: 'OrderConfirmed',
|
|
2624
|
+
* title: 'Order confirmed',
|
|
2625
|
+
* message: { id: 'OrderConfirmed', version: '1.0.0' },
|
|
2626
|
+
* });
|
|
2627
|
+
* ```
|
|
2628
|
+
*/
|
|
2629
|
+
addMessageStep(step) {
|
|
2630
|
+
const message = step.message || {
|
|
2631
|
+
id: String(step.id),
|
|
2632
|
+
...step.version ? { version: step.version } : {}
|
|
2633
|
+
};
|
|
2634
|
+
return this.addStepWithNext(
|
|
2635
|
+
{
|
|
2636
|
+
id: step.id,
|
|
2637
|
+
title: step.title || String(step.id),
|
|
2638
|
+
...step.summary ? { summary: step.summary } : {},
|
|
2639
|
+
message: { ...message, ...step.version && !message.version ? { version: step.version } : {} }
|
|
2640
|
+
},
|
|
2641
|
+
step.nextSteps
|
|
2642
|
+
);
|
|
2643
|
+
}
|
|
2644
|
+
/**
|
|
2645
|
+
* Add a service step.
|
|
2646
|
+
*
|
|
2647
|
+
* @param step - The service step payload.
|
|
2648
|
+
*
|
|
2649
|
+
* @example
|
|
2650
|
+
* ```ts
|
|
2651
|
+
* FlowBuilder.create({
|
|
2652
|
+
* id: 'OrderFlow',
|
|
2653
|
+
* name: 'Order Flow',
|
|
2654
|
+
* version: '1.0.0',
|
|
2655
|
+
* markdown: '',
|
|
2656
|
+
* })
|
|
2657
|
+
* .addServiceStep({
|
|
2658
|
+
* id: 'OrderService',
|
|
2659
|
+
* service: { id: 'OrderService', version: '1.0.0' },
|
|
2660
|
+
* });
|
|
2661
|
+
* ```
|
|
2662
|
+
*/
|
|
2663
|
+
addServiceStep(step) {
|
|
2664
|
+
const service = step.service || {
|
|
2665
|
+
id: String(step.id),
|
|
2666
|
+
...step.version ? { version: step.version } : {}
|
|
2667
|
+
};
|
|
2668
|
+
return this.addStepWithNext(
|
|
2669
|
+
{
|
|
2670
|
+
id: step.id,
|
|
2671
|
+
title: step.title || String(step.id),
|
|
2672
|
+
...step.summary ? { summary: step.summary } : {},
|
|
2673
|
+
service: { ...service, ...step.version && !service.version ? { version: step.version } : {} }
|
|
2674
|
+
},
|
|
2675
|
+
step.nextSteps
|
|
2676
|
+
);
|
|
2677
|
+
}
|
|
2678
|
+
/**
|
|
2679
|
+
* Add an actor step.
|
|
2680
|
+
*
|
|
2681
|
+
* @param step - The actor step payload.
|
|
2682
|
+
*
|
|
2683
|
+
* @example
|
|
2684
|
+
* ```ts
|
|
2685
|
+
* FlowBuilder.create({
|
|
2686
|
+
* id: 'OrderFlow',
|
|
2687
|
+
* name: 'Order Flow',
|
|
2688
|
+
* version: '1.0.0',
|
|
2689
|
+
* markdown: '',
|
|
2690
|
+
* })
|
|
2691
|
+
* .addActorStep({
|
|
2692
|
+
* id: 'Customer',
|
|
2693
|
+
* actor: { name: 'Customer' },
|
|
2694
|
+
* });
|
|
2695
|
+
* ```
|
|
2696
|
+
*/
|
|
2697
|
+
addActorStep(step) {
|
|
2698
|
+
const actor = step.actor || {
|
|
2699
|
+
name: step.name || step.title || String(step.id),
|
|
2700
|
+
...step.summary ? { summary: step.summary } : {}
|
|
2701
|
+
};
|
|
2702
|
+
return this.addStepWithNext(
|
|
2703
|
+
{
|
|
2704
|
+
id: step.id,
|
|
2705
|
+
title: step.title || actor.name,
|
|
2706
|
+
...step.summary ? { summary: step.summary } : {},
|
|
2707
|
+
actor
|
|
2708
|
+
},
|
|
2709
|
+
step.nextSteps
|
|
2710
|
+
);
|
|
2711
|
+
}
|
|
2712
|
+
/**
|
|
2713
|
+
* Add an external system step.
|
|
2714
|
+
*
|
|
2715
|
+
* @param step - The external system step payload.
|
|
2716
|
+
*
|
|
2717
|
+
* @example
|
|
2718
|
+
* ```ts
|
|
2719
|
+
* FlowBuilder.create({
|
|
2720
|
+
* id: 'PaymentFlow',
|
|
2721
|
+
* name: 'Payment Flow',
|
|
2722
|
+
* version: '1.0.0',
|
|
2723
|
+
* markdown: '',
|
|
2724
|
+
* })
|
|
2725
|
+
* .addExternalSystemStep({
|
|
2726
|
+
* id: 'Stripe',
|
|
2727
|
+
* externalSystem: {
|
|
2728
|
+
* name: 'Stripe',
|
|
2729
|
+
* summary: 'Payment provider',
|
|
2730
|
+
* url: 'https://stripe.com',
|
|
2731
|
+
* },
|
|
2732
|
+
* });
|
|
2733
|
+
* ```
|
|
2734
|
+
*/
|
|
2735
|
+
addExternalSystemStep(step) {
|
|
2736
|
+
const externalSystem = step.externalSystem || {
|
|
2737
|
+
name: step.name || step.title || String(step.id),
|
|
2738
|
+
...step.summary ? { summary: step.summary } : {},
|
|
2739
|
+
...step.url ? { url: step.url } : {}
|
|
2740
|
+
};
|
|
2741
|
+
return this.addStepWithNext(
|
|
2742
|
+
{
|
|
2743
|
+
id: step.id,
|
|
2744
|
+
title: step.title || externalSystem.name,
|
|
2745
|
+
...step.summary ? { summary: step.summary } : {},
|
|
2746
|
+
externalSystem
|
|
2747
|
+
},
|
|
2748
|
+
step.nextSteps
|
|
2749
|
+
);
|
|
2750
|
+
}
|
|
2751
|
+
/**
|
|
2752
|
+
* Add a sub-flow step.
|
|
2753
|
+
*
|
|
2754
|
+
* @param step - The sub-flow step payload.
|
|
2755
|
+
*
|
|
2756
|
+
* @example
|
|
2757
|
+
* ```ts
|
|
2758
|
+
* FlowBuilder.create({
|
|
2759
|
+
* id: 'OrderFlow',
|
|
2760
|
+
* name: 'Order Flow',
|
|
2761
|
+
* version: '1.0.0',
|
|
2762
|
+
* markdown: '',
|
|
2763
|
+
* })
|
|
2764
|
+
* .addFlowStep({
|
|
2765
|
+
* id: 'PaymentFlow',
|
|
2766
|
+
* flow: { id: 'PaymentFlow', version: '1.0.0' },
|
|
2767
|
+
* });
|
|
2768
|
+
* ```
|
|
2769
|
+
*/
|
|
2770
|
+
addFlowStep(step) {
|
|
2771
|
+
const flow = step.flow || {
|
|
2772
|
+
id: String(step.id),
|
|
2773
|
+
...step.version ? { version: step.version } : {}
|
|
2774
|
+
};
|
|
2775
|
+
return this.addStepWithNext(
|
|
2776
|
+
{
|
|
2777
|
+
id: step.id,
|
|
2778
|
+
title: step.title || String(step.id),
|
|
2779
|
+
...step.summary ? { summary: step.summary } : {},
|
|
2780
|
+
flow: { ...flow, ...step.version && !flow.version ? { version: step.version } : {} }
|
|
2781
|
+
},
|
|
2782
|
+
step.nextSteps
|
|
2783
|
+
);
|
|
2784
|
+
}
|
|
2785
|
+
/**
|
|
2786
|
+
* Add a custom flow step.
|
|
2787
|
+
*
|
|
2788
|
+
* @param step - The custom step payload.
|
|
2789
|
+
*
|
|
2790
|
+
* @example
|
|
2791
|
+
* ```ts
|
|
2792
|
+
* FlowBuilder.create({
|
|
2793
|
+
* id: 'PaymentFlow',
|
|
2794
|
+
* name: 'Payment Flow',
|
|
2795
|
+
* version: '1.0.0',
|
|
2796
|
+
* markdown: '',
|
|
2797
|
+
* })
|
|
2798
|
+
* .addCustomStep({
|
|
2799
|
+
* id: 'ManualReview',
|
|
2800
|
+
* custom: {
|
|
2801
|
+
* title: 'Manual review',
|
|
2802
|
+
* type: 'manual',
|
|
2803
|
+
* },
|
|
2804
|
+
* });
|
|
2805
|
+
* ```
|
|
2806
|
+
*/
|
|
2807
|
+
addCustomStep(step) {
|
|
2808
|
+
const custom = step.custom || {
|
|
2809
|
+
title: step.title || String(step.id),
|
|
2810
|
+
...step.icon ? { icon: step.icon } : {},
|
|
2811
|
+
...step.type ? { type: step.type } : {},
|
|
2812
|
+
...step.summary ? { summary: step.summary } : {},
|
|
2813
|
+
...step.url ? { url: step.url } : {},
|
|
2814
|
+
...step.color ? { color: step.color } : {},
|
|
2815
|
+
...step.properties ? { properties: step.properties } : {},
|
|
2816
|
+
...step.height ? { height: step.height } : {},
|
|
2817
|
+
...step.menu ? { menu: step.menu } : {}
|
|
2818
|
+
};
|
|
2819
|
+
return this.addStepWithNext(
|
|
2820
|
+
{
|
|
2821
|
+
id: step.id,
|
|
2822
|
+
title: step.title || custom.title,
|
|
2823
|
+
...step.summary ? { summary: step.summary } : {},
|
|
2824
|
+
custom
|
|
2825
|
+
},
|
|
2826
|
+
step.nextSteps
|
|
2827
|
+
);
|
|
2828
|
+
}
|
|
2829
|
+
/**
|
|
2830
|
+
* Build the EventCatalog flow resource.
|
|
2831
|
+
*
|
|
2832
|
+
* @returns A `Flow` resource that can be written with `writeFlow`.
|
|
2833
|
+
*/
|
|
2834
|
+
build() {
|
|
2835
|
+
this.validateNextSteps();
|
|
2836
|
+
const { steps: _steps, ...flow } = this.flowResource;
|
|
2837
|
+
return {
|
|
2838
|
+
...flow,
|
|
2839
|
+
steps: this.order.map((id) => cloneStep(this.steps.get(id)))
|
|
2840
|
+
};
|
|
2841
|
+
}
|
|
2842
|
+
addStepWithNext(step, nextSteps) {
|
|
2843
|
+
const normalizedNextSteps = nextSteps?.map((next) => typeof next === "object" ? { ...next } : { id: next }) || [];
|
|
2844
|
+
if (normalizedNextSteps.length === 1) {
|
|
2845
|
+
step.next_step = normalizedNextSteps[0];
|
|
2846
|
+
} else if (normalizedNextSteps.length > 1) {
|
|
2847
|
+
step.next_steps = normalizedNextSteps;
|
|
2848
|
+
}
|
|
2849
|
+
this.appendStep(step);
|
|
2850
|
+
return this;
|
|
2851
|
+
}
|
|
2852
|
+
appendStep(step) {
|
|
2853
|
+
if (this.steps.has(step.id)) {
|
|
2854
|
+
throw new Error(`Flow step with id "${step.id}" already exists`);
|
|
2855
|
+
}
|
|
2856
|
+
this.steps.set(step.id, step);
|
|
2857
|
+
this.order.push(step.id);
|
|
2858
|
+
}
|
|
2859
|
+
validateNextSteps() {
|
|
2860
|
+
for (const step of this.steps.values()) {
|
|
2861
|
+
const nextSteps = step.next_step !== void 0 ? [step.next_step] : step.next_steps || [];
|
|
2862
|
+
for (const next of nextSteps) {
|
|
2863
|
+
const nextStepId = typeof next === "object" && next ? next.id : next;
|
|
2864
|
+
if (!this.steps.has(nextStepId)) {
|
|
2865
|
+
throw new Error(`Flow step "${step.id}" references missing next step "${nextStepId}"`);
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
};
|
|
2871
|
+
|
|
2523
2872
|
// src/flows.ts
|
|
2524
2873
|
var getFlow = (directory) => async (id, version) => getResource(directory, id, version, { type: "flow" });
|
|
2525
2874
|
var getFlows = (directory) => async (options) => getResources(directory, { type: "flows", latestOnly: options?.latestOnly });
|
|
2875
|
+
var writeFlow = (directory) => async (flow, options = {
|
|
2876
|
+
path: "",
|
|
2877
|
+
override: false,
|
|
2878
|
+
format: "mdx"
|
|
2879
|
+
}) => writeResource(directory, { ...flow }, { ...options, type: "flow" });
|
|
2880
|
+
var writeVersionedFlow = (directory) => async (flow) => {
|
|
2881
|
+
const path8 = getVersionedDirectory(flow.id, flow.version);
|
|
2882
|
+
return await writeFlow(directory)({ ...flow }, { path: path8 });
|
|
2883
|
+
};
|
|
2884
|
+
var writeFlowToDomain = (directory) => async (flow, domain, options = { path: "", format: "mdx", override: false }) => {
|
|
2885
|
+
let pathForFlow = domain.version && domain.version !== "latest" ? `/${domain.id}/versioned/${domain.version}/flows` : `/${domain.id}/flows`;
|
|
2886
|
+
pathForFlow = (0, import_node_path19.join)(pathForFlow, flow.id);
|
|
2887
|
+
await writeResource(directory, { ...flow }, { ...options, path: pathForFlow, type: "flow" });
|
|
2888
|
+
};
|
|
2889
|
+
var writeFlowToService = (directory) => async (flow, service, options = { path: "", format: "mdx", override: false }) => {
|
|
2890
|
+
let pathForFlow = service.version && service.version !== "latest" ? `/${service.id}/versioned/${service.version}/flows` : `/${service.id}/flows`;
|
|
2891
|
+
pathForFlow = (0, import_node_path19.join)(pathForFlow, flow.id);
|
|
2892
|
+
await writeResource(directory, { ...flow }, { ...options, path: pathForFlow, type: "flow" });
|
|
2893
|
+
};
|
|
2894
|
+
var rmFlow = (directory) => async (path8) => {
|
|
2895
|
+
await import_promises12.default.rm((0, import_node_path19.join)(directory, path8), { recursive: true });
|
|
2896
|
+
invalidateFileCache();
|
|
2897
|
+
};
|
|
2898
|
+
var rmFlowById = (directory) => async (id, version, persistFiles) => {
|
|
2899
|
+
await rmResourceById(directory, id, version, { type: "flow", persistFiles });
|
|
2900
|
+
};
|
|
2901
|
+
var versionFlow = (directory) => async (id) => versionResource(directory, id);
|
|
2902
|
+
var flowHasVersion = (directory) => async (id, version) => {
|
|
2903
|
+
const file = await findFileById(directory, id, version);
|
|
2904
|
+
return !!file;
|
|
2905
|
+
};
|
|
2906
|
+
var addFileToFlow = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version, { type: "flow" });
|
|
2526
2907
|
|
|
2527
2908
|
// src/containers.ts
|
|
2528
|
-
var
|
|
2529
|
-
var
|
|
2909
|
+
var import_promises13 = __toESM(require("fs/promises"));
|
|
2910
|
+
var import_node_path20 = require("path");
|
|
2530
2911
|
var getContainer = (directory) => async (id, version) => getResource(directory, id, version, { type: "container" });
|
|
2531
2912
|
var getContainers = (directory) => async (options) => getResources(directory, { type: "containers", latestOnly: options?.latestOnly });
|
|
2532
2913
|
var writeContainer = (directory) => async (data, options = {
|
|
@@ -2536,7 +2917,7 @@ var writeContainer = (directory) => async (data, options = {
|
|
|
2536
2917
|
}) => writeResource(directory, { ...data }, { ...options, type: "container" });
|
|
2537
2918
|
var versionContainer = (directory) => async (id) => versionResource(directory, id);
|
|
2538
2919
|
var rmContainer = (directory) => async (path8) => {
|
|
2539
|
-
await
|
|
2920
|
+
await import_promises13.default.rm((0, import_node_path20.join)(directory, path8), { recursive: true });
|
|
2540
2921
|
invalidateFileCache();
|
|
2541
2922
|
};
|
|
2542
2923
|
var rmContainerById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -2553,7 +2934,7 @@ var writeContainerToService = (directory) => async (container, service, options
|
|
|
2553
2934
|
throw new Error("Service not found");
|
|
2554
2935
|
}
|
|
2555
2936
|
let pathForContainer = service.version && service.version !== "latest" ? `${resourcePath.directory}/versioned/${service.version}/containers` : `${resourcePath.directory}/containers`;
|
|
2556
|
-
pathForContainer = (0,
|
|
2937
|
+
pathForContainer = (0, import_node_path20.join)(pathForContainer, container.id);
|
|
2557
2938
|
await writeResource(directory, { ...container }, { ...options, path: pathForContainer, type: "container" });
|
|
2558
2939
|
};
|
|
2559
2940
|
|
|
@@ -2569,8 +2950,8 @@ var addFileToDataStore = addFileToContainer;
|
|
|
2569
2950
|
var writeDataStoreToService = writeContainerToService;
|
|
2570
2951
|
|
|
2571
2952
|
// src/data-products.ts
|
|
2572
|
-
var
|
|
2573
|
-
var
|
|
2953
|
+
var import_promises14 = __toESM(require("fs/promises"));
|
|
2954
|
+
var import_node_path21 = require("path");
|
|
2574
2955
|
var getDataProduct = (directory) => async (id, version) => getResource(directory, id, version, { type: "data-product" });
|
|
2575
2956
|
var getDataProducts = (directory) => async (options) => getResources(directory, { type: "data-products", latestOnly: options?.latestOnly });
|
|
2576
2957
|
var writeDataProduct = (directory) => async (dataProduct, options = {
|
|
@@ -2580,11 +2961,11 @@ var writeDataProduct = (directory) => async (dataProduct, options = {
|
|
|
2580
2961
|
}) => writeResource(directory, { ...dataProduct }, { ...options, type: "data-product" });
|
|
2581
2962
|
var writeDataProductToDomain = (directory) => async (dataProduct, domain, options = { path: "", format: "mdx", override: false }) => {
|
|
2582
2963
|
let pathForDataProduct = domain.version && domain.version !== "latest" ? `/${domain.id}/versioned/${domain.version}/data-products` : `/${domain.id}/data-products`;
|
|
2583
|
-
pathForDataProduct = (0,
|
|
2964
|
+
pathForDataProduct = (0, import_node_path21.join)(pathForDataProduct, dataProduct.id);
|
|
2584
2965
|
await writeResource(directory, { ...dataProduct }, { ...options, path: pathForDataProduct, type: "data-product" });
|
|
2585
2966
|
};
|
|
2586
2967
|
var rmDataProduct = (directory) => async (path8) => {
|
|
2587
|
-
await
|
|
2968
|
+
await import_promises14.default.rm((0, import_node_path21.join)(directory, path8), { recursive: true });
|
|
2588
2969
|
invalidateFileCache();
|
|
2589
2970
|
};
|
|
2590
2971
|
var rmDataProductById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -2598,8 +2979,8 @@ var dataProductHasVersion = (directory) => async (id, version) => {
|
|
|
2598
2979
|
var addFileToDataProduct = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version);
|
|
2599
2980
|
|
|
2600
2981
|
// src/diagrams.ts
|
|
2601
|
-
var
|
|
2602
|
-
var
|
|
2982
|
+
var import_promises15 = __toESM(require("fs/promises"));
|
|
2983
|
+
var import_node_path22 = require("path");
|
|
2603
2984
|
var getDiagram = (directory) => async (id, version) => getResource(directory, id, version, { type: "diagram" });
|
|
2604
2985
|
var getDiagrams = (directory) => async (options) => getResources(directory, { type: "diagrams", latestOnly: options?.latestOnly });
|
|
2605
2986
|
var writeDiagram = (directory) => async (diagram, options = {
|
|
@@ -2608,7 +2989,7 @@ var writeDiagram = (directory) => async (diagram, options = {
|
|
|
2608
2989
|
format: "mdx"
|
|
2609
2990
|
}) => writeResource(directory, { ...diagram }, { ...options, type: "diagram" });
|
|
2610
2991
|
var rmDiagram = (directory) => async (path8) => {
|
|
2611
|
-
await
|
|
2992
|
+
await import_promises15.default.rm((0, import_node_path22.join)(directory, path8), { recursive: true });
|
|
2612
2993
|
invalidateFileCache();
|
|
2613
2994
|
};
|
|
2614
2995
|
var rmDiagramById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -2630,13 +3011,13 @@ var src_default = (path8) => {
|
|
|
2630
3011
|
* @param version - Optional id of the version to get (supports semver)
|
|
2631
3012
|
* @returns Event|Undefined
|
|
2632
3013
|
*/
|
|
2633
|
-
getEvent: getEvent((0,
|
|
3014
|
+
getEvent: getEvent((0, import_node_path23.join)(path8)),
|
|
2634
3015
|
/**
|
|
2635
3016
|
* Returns all events from EventCatalog
|
|
2636
3017
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2637
3018
|
* @returns Event[]|Undefined
|
|
2638
3019
|
*/
|
|
2639
|
-
getEvents: getEvents((0,
|
|
3020
|
+
getEvents: getEvents((0, import_node_path23.join)(path8)),
|
|
2640
3021
|
/**
|
|
2641
3022
|
* Adds an event to EventCatalog
|
|
2642
3023
|
*
|
|
@@ -2644,7 +3025,7 @@ var src_default = (path8) => {
|
|
|
2644
3025
|
* @param options - Optional options to write the event
|
|
2645
3026
|
*
|
|
2646
3027
|
*/
|
|
2647
|
-
writeEvent: writeEvent((0,
|
|
3028
|
+
writeEvent: writeEvent((0, import_node_path23.join)(path8, "events")),
|
|
2648
3029
|
/**
|
|
2649
3030
|
* Adds an event to a service in EventCatalog
|
|
2650
3031
|
*
|
|
@@ -2653,26 +3034,26 @@ var src_default = (path8) => {
|
|
|
2653
3034
|
* @param options - Optional options to write the event
|
|
2654
3035
|
*
|
|
2655
3036
|
*/
|
|
2656
|
-
writeEventToService: writeEventToService((0,
|
|
3037
|
+
writeEventToService: writeEventToService((0, import_node_path23.join)(path8)),
|
|
2657
3038
|
/**
|
|
2658
3039
|
* Remove an event to EventCatalog (modeled on the standard POSIX rm utility)
|
|
2659
3040
|
*
|
|
2660
3041
|
* @param path - The path to your event, e.g. `/Inventory/InventoryAdjusted`
|
|
2661
3042
|
*
|
|
2662
3043
|
*/
|
|
2663
|
-
rmEvent: rmEvent((0,
|
|
3044
|
+
rmEvent: rmEvent((0, import_node_path23.join)(path8, "events")),
|
|
2664
3045
|
/**
|
|
2665
3046
|
* Remove an event by an Event id
|
|
2666
3047
|
*
|
|
2667
3048
|
* @param id - The id of the event you want to remove
|
|
2668
3049
|
*
|
|
2669
3050
|
*/
|
|
2670
|
-
rmEventById: rmEventById((0,
|
|
3051
|
+
rmEventById: rmEventById((0, import_node_path23.join)(path8)),
|
|
2671
3052
|
/**
|
|
2672
3053
|
* Moves a given event id to the version directory
|
|
2673
3054
|
* @param directory
|
|
2674
3055
|
*/
|
|
2675
|
-
versionEvent: versionEvent((0,
|
|
3056
|
+
versionEvent: versionEvent((0, import_node_path23.join)(path8)),
|
|
2676
3057
|
/**
|
|
2677
3058
|
* Adds a file to the given event
|
|
2678
3059
|
* @param id - The id of the event to add the file to
|
|
@@ -2680,7 +3061,7 @@ var src_default = (path8) => {
|
|
|
2680
3061
|
* @param version - Optional version of the event to add the file to
|
|
2681
3062
|
* @returns
|
|
2682
3063
|
*/
|
|
2683
|
-
addFileToEvent: addFileToEvent((0,
|
|
3064
|
+
addFileToEvent: addFileToEvent((0, import_node_path23.join)(path8)),
|
|
2684
3065
|
/**
|
|
2685
3066
|
* Adds a schema to the given event
|
|
2686
3067
|
* @param id - The id of the event to add the schema to
|
|
@@ -2688,17 +3069,17 @@ var src_default = (path8) => {
|
|
|
2688
3069
|
* @param version - Optional version of the event to add the schema to
|
|
2689
3070
|
* @returns
|
|
2690
3071
|
*/
|
|
2691
|
-
addSchemaToEvent: addSchemaToEvent((0,
|
|
3072
|
+
addSchemaToEvent: addSchemaToEvent((0, import_node_path23.join)(path8)),
|
|
2692
3073
|
/**
|
|
2693
3074
|
* Check to see if an event version exists
|
|
2694
3075
|
* @param id - The id of the event
|
|
2695
3076
|
* @param version - The version of the event (supports semver)
|
|
2696
3077
|
* @returns
|
|
2697
3078
|
*/
|
|
2698
|
-
eventHasVersion: eventHasVersion((0,
|
|
2699
|
-
addExampleToEvent: addExampleToEvent((0,
|
|
2700
|
-
getExamplesFromEvent: getExamplesFromEvent((0,
|
|
2701
|
-
removeExampleFromEvent: removeExampleFromEvent((0,
|
|
3079
|
+
eventHasVersion: eventHasVersion((0, import_node_path23.join)(path8)),
|
|
3080
|
+
addExampleToEvent: addExampleToEvent((0, import_node_path23.join)(path8)),
|
|
3081
|
+
getExamplesFromEvent: getExamplesFromEvent((0, import_node_path23.join)(path8)),
|
|
3082
|
+
removeExampleFromEvent: removeExampleFromEvent((0, import_node_path23.join)(path8)),
|
|
2702
3083
|
/**
|
|
2703
3084
|
* ================================
|
|
2704
3085
|
* Commands
|
|
@@ -2710,13 +3091,13 @@ var src_default = (path8) => {
|
|
|
2710
3091
|
* @param version - Optional id of the version to get (supports semver)
|
|
2711
3092
|
* @returns Command|Undefined
|
|
2712
3093
|
*/
|
|
2713
|
-
getCommand: getCommand((0,
|
|
3094
|
+
getCommand: getCommand((0, import_node_path23.join)(path8)),
|
|
2714
3095
|
/**
|
|
2715
3096
|
* Returns all commands from EventCatalog
|
|
2716
3097
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2717
3098
|
* @returns Command[]|Undefined
|
|
2718
3099
|
*/
|
|
2719
|
-
getCommands: getCommands((0,
|
|
3100
|
+
getCommands: getCommands((0, import_node_path23.join)(path8)),
|
|
2720
3101
|
/**
|
|
2721
3102
|
* Adds an command to EventCatalog
|
|
2722
3103
|
*
|
|
@@ -2724,7 +3105,7 @@ var src_default = (path8) => {
|
|
|
2724
3105
|
* @param options - Optional options to write the command
|
|
2725
3106
|
*
|
|
2726
3107
|
*/
|
|
2727
|
-
writeCommand: writeCommand((0,
|
|
3108
|
+
writeCommand: writeCommand((0, import_node_path23.join)(path8, "commands")),
|
|
2728
3109
|
/**
|
|
2729
3110
|
* Adds a command to a service in EventCatalog
|
|
2730
3111
|
*
|
|
@@ -2733,26 +3114,26 @@ var src_default = (path8) => {
|
|
|
2733
3114
|
* @param options - Optional options to write the command
|
|
2734
3115
|
*
|
|
2735
3116
|
*/
|
|
2736
|
-
writeCommandToService: writeCommandToService((0,
|
|
3117
|
+
writeCommandToService: writeCommandToService((0, import_node_path23.join)(path8)),
|
|
2737
3118
|
/**
|
|
2738
3119
|
* Remove an command to EventCatalog (modeled on the standard POSIX rm utility)
|
|
2739
3120
|
*
|
|
2740
3121
|
* @param path - The path to your command, e.g. `/Inventory/InventoryAdjusted`
|
|
2741
3122
|
*
|
|
2742
3123
|
*/
|
|
2743
|
-
rmCommand: rmCommand((0,
|
|
3124
|
+
rmCommand: rmCommand((0, import_node_path23.join)(path8, "commands")),
|
|
2744
3125
|
/**
|
|
2745
3126
|
* Remove an command by an Event id
|
|
2746
3127
|
*
|
|
2747
3128
|
* @param id - The id of the command you want to remove
|
|
2748
3129
|
*
|
|
2749
3130
|
*/
|
|
2750
|
-
rmCommandById: rmCommandById((0,
|
|
3131
|
+
rmCommandById: rmCommandById((0, import_node_path23.join)(path8)),
|
|
2751
3132
|
/**
|
|
2752
3133
|
* Moves a given command id to the version directory
|
|
2753
3134
|
* @param directory
|
|
2754
3135
|
*/
|
|
2755
|
-
versionCommand: versionCommand((0,
|
|
3136
|
+
versionCommand: versionCommand((0, import_node_path23.join)(path8)),
|
|
2756
3137
|
/**
|
|
2757
3138
|
* Adds a file to the given command
|
|
2758
3139
|
* @param id - The id of the command to add the file to
|
|
@@ -2760,7 +3141,7 @@ var src_default = (path8) => {
|
|
|
2760
3141
|
* @param version - Optional version of the command to add the file to
|
|
2761
3142
|
* @returns
|
|
2762
3143
|
*/
|
|
2763
|
-
addFileToCommand: addFileToCommand((0,
|
|
3144
|
+
addFileToCommand: addFileToCommand((0, import_node_path23.join)(path8)),
|
|
2764
3145
|
/**
|
|
2765
3146
|
* Adds a schema to the given command
|
|
2766
3147
|
* @param id - The id of the command to add the schema to
|
|
@@ -2768,17 +3149,17 @@ var src_default = (path8) => {
|
|
|
2768
3149
|
* @param version - Optional version of the command to add the schema to
|
|
2769
3150
|
* @returns
|
|
2770
3151
|
*/
|
|
2771
|
-
addSchemaToCommand: addSchemaToCommand((0,
|
|
3152
|
+
addSchemaToCommand: addSchemaToCommand((0, import_node_path23.join)(path8)),
|
|
2772
3153
|
/**
|
|
2773
3154
|
* Check to see if a command version exists
|
|
2774
3155
|
* @param id - The id of the command
|
|
2775
3156
|
* @param version - The version of the command (supports semver)
|
|
2776
3157
|
* @returns
|
|
2777
3158
|
*/
|
|
2778
|
-
commandHasVersion: commandHasVersion((0,
|
|
2779
|
-
addExampleToCommand: addExampleToCommand((0,
|
|
2780
|
-
getExamplesFromCommand: getExamplesFromCommand((0,
|
|
2781
|
-
removeExampleFromCommand: removeExampleFromCommand((0,
|
|
3159
|
+
commandHasVersion: commandHasVersion((0, import_node_path23.join)(path8)),
|
|
3160
|
+
addExampleToCommand: addExampleToCommand((0, import_node_path23.join)(path8)),
|
|
3161
|
+
getExamplesFromCommand: getExamplesFromCommand((0, import_node_path23.join)(path8)),
|
|
3162
|
+
removeExampleFromCommand: removeExampleFromCommand((0, import_node_path23.join)(path8)),
|
|
2782
3163
|
/**
|
|
2783
3164
|
* ================================
|
|
2784
3165
|
* Queries
|
|
@@ -2790,13 +3171,13 @@ var src_default = (path8) => {
|
|
|
2790
3171
|
* @param version - Optional id of the version to get (supports semver)
|
|
2791
3172
|
* @returns Query|Undefined
|
|
2792
3173
|
*/
|
|
2793
|
-
getQuery: getQuery((0,
|
|
3174
|
+
getQuery: getQuery((0, import_node_path23.join)(path8)),
|
|
2794
3175
|
/**
|
|
2795
3176
|
* Returns all queries from EventCatalog
|
|
2796
3177
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2797
3178
|
* @returns Query[]|Undefined
|
|
2798
3179
|
*/
|
|
2799
|
-
getQueries: getQueries((0,
|
|
3180
|
+
getQueries: getQueries((0, import_node_path23.join)(path8)),
|
|
2800
3181
|
/**
|
|
2801
3182
|
* Adds a query to EventCatalog
|
|
2802
3183
|
*
|
|
@@ -2804,7 +3185,7 @@ var src_default = (path8) => {
|
|
|
2804
3185
|
* @param options - Optional options to write the event
|
|
2805
3186
|
*
|
|
2806
3187
|
*/
|
|
2807
|
-
writeQuery: writeQuery((0,
|
|
3188
|
+
writeQuery: writeQuery((0, import_node_path23.join)(path8, "queries")),
|
|
2808
3189
|
/**
|
|
2809
3190
|
* Adds a query to a service in EventCatalog
|
|
2810
3191
|
*
|
|
@@ -2813,26 +3194,26 @@ var src_default = (path8) => {
|
|
|
2813
3194
|
* @param options - Optional options to write the query
|
|
2814
3195
|
*
|
|
2815
3196
|
*/
|
|
2816
|
-
writeQueryToService: writeQueryToService((0,
|
|
3197
|
+
writeQueryToService: writeQueryToService((0, import_node_path23.join)(path8)),
|
|
2817
3198
|
/**
|
|
2818
3199
|
* Remove an query to EventCatalog (modeled on the standard POSIX rm utility)
|
|
2819
3200
|
*
|
|
2820
3201
|
* @param path - The path to your query, e.g. `/Orders/GetOrder`
|
|
2821
3202
|
*
|
|
2822
3203
|
*/
|
|
2823
|
-
rmQuery: rmQuery((0,
|
|
3204
|
+
rmQuery: rmQuery((0, import_node_path23.join)(path8, "queries")),
|
|
2824
3205
|
/**
|
|
2825
3206
|
* Remove a query by a Query id
|
|
2826
3207
|
*
|
|
2827
3208
|
* @param id - The id of the query you want to remove
|
|
2828
3209
|
*
|
|
2829
3210
|
*/
|
|
2830
|
-
rmQueryById: rmQueryById((0,
|
|
3211
|
+
rmQueryById: rmQueryById((0, import_node_path23.join)(path8)),
|
|
2831
3212
|
/**
|
|
2832
3213
|
* Moves a given query id to the version directory
|
|
2833
3214
|
* @param directory
|
|
2834
3215
|
*/
|
|
2835
|
-
versionQuery: versionQuery((0,
|
|
3216
|
+
versionQuery: versionQuery((0, import_node_path23.join)(path8)),
|
|
2836
3217
|
/**
|
|
2837
3218
|
* Adds a file to the given query
|
|
2838
3219
|
* @param id - The id of the query to add the file to
|
|
@@ -2840,7 +3221,7 @@ var src_default = (path8) => {
|
|
|
2840
3221
|
* @param version - Optional version of the query to add the file to
|
|
2841
3222
|
* @returns
|
|
2842
3223
|
*/
|
|
2843
|
-
addFileToQuery: addFileToQuery((0,
|
|
3224
|
+
addFileToQuery: addFileToQuery((0, import_node_path23.join)(path8)),
|
|
2844
3225
|
/**
|
|
2845
3226
|
* Adds a schema to the given query
|
|
2846
3227
|
* @param id - The id of the query to add the schema to
|
|
@@ -2848,17 +3229,17 @@ var src_default = (path8) => {
|
|
|
2848
3229
|
* @param version - Optional version of the query to add the schema to
|
|
2849
3230
|
* @returns
|
|
2850
3231
|
*/
|
|
2851
|
-
addSchemaToQuery: addSchemaToQuery((0,
|
|
3232
|
+
addSchemaToQuery: addSchemaToQuery((0, import_node_path23.join)(path8)),
|
|
2852
3233
|
/**
|
|
2853
3234
|
* Check to see if an query version exists
|
|
2854
3235
|
* @param id - The id of the query
|
|
2855
3236
|
* @param version - The version of the query (supports semver)
|
|
2856
3237
|
* @returns
|
|
2857
3238
|
*/
|
|
2858
|
-
queryHasVersion: queryHasVersion((0,
|
|
2859
|
-
addExampleToQuery: addExampleToQuery((0,
|
|
2860
|
-
getExamplesFromQuery: getExamplesFromQuery((0,
|
|
2861
|
-
removeExampleFromQuery: removeExampleFromQuery((0,
|
|
3239
|
+
queryHasVersion: queryHasVersion((0, import_node_path23.join)(path8)),
|
|
3240
|
+
addExampleToQuery: addExampleToQuery((0, import_node_path23.join)(path8)),
|
|
3241
|
+
getExamplesFromQuery: getExamplesFromQuery((0, import_node_path23.join)(path8)),
|
|
3242
|
+
removeExampleFromQuery: removeExampleFromQuery((0, import_node_path23.join)(path8)),
|
|
2862
3243
|
/**
|
|
2863
3244
|
* ================================
|
|
2864
3245
|
* Channels
|
|
@@ -2870,13 +3251,13 @@ var src_default = (path8) => {
|
|
|
2870
3251
|
* @param version - Optional id of the version to get (supports semver)
|
|
2871
3252
|
* @returns Channel|Undefined
|
|
2872
3253
|
*/
|
|
2873
|
-
getChannel: getChannel((0,
|
|
3254
|
+
getChannel: getChannel((0, import_node_path23.join)(path8)),
|
|
2874
3255
|
/**
|
|
2875
3256
|
* Returns all channels from EventCatalog
|
|
2876
3257
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2877
3258
|
* @returns Channel[]|Undefined
|
|
2878
3259
|
*/
|
|
2879
|
-
getChannels: getChannels((0,
|
|
3260
|
+
getChannels: getChannels((0, import_node_path23.join)(path8)),
|
|
2880
3261
|
/**
|
|
2881
3262
|
* Adds an channel to EventCatalog
|
|
2882
3263
|
*
|
|
@@ -2884,33 +3265,33 @@ var src_default = (path8) => {
|
|
|
2884
3265
|
* @param options - Optional options to write the channel
|
|
2885
3266
|
*
|
|
2886
3267
|
*/
|
|
2887
|
-
writeChannel: writeChannel((0,
|
|
3268
|
+
writeChannel: writeChannel((0, import_node_path23.join)(path8, "channels")),
|
|
2888
3269
|
/**
|
|
2889
3270
|
* Remove an channel to EventCatalog (modeled on the standard POSIX rm utility)
|
|
2890
3271
|
*
|
|
2891
3272
|
* @param path - The path to your channel, e.g. `/Inventory/InventoryAdjusted`
|
|
2892
3273
|
*
|
|
2893
3274
|
*/
|
|
2894
|
-
rmChannel: rmChannel((0,
|
|
3275
|
+
rmChannel: rmChannel((0, import_node_path23.join)(path8, "channels")),
|
|
2895
3276
|
/**
|
|
2896
3277
|
* Remove an channel by an Event id
|
|
2897
3278
|
*
|
|
2898
3279
|
* @param id - The id of the channel you want to remove
|
|
2899
3280
|
*
|
|
2900
3281
|
*/
|
|
2901
|
-
rmChannelById: rmChannelById((0,
|
|
3282
|
+
rmChannelById: rmChannelById((0, import_node_path23.join)(path8)),
|
|
2902
3283
|
/**
|
|
2903
3284
|
* Moves a given channel id to the version directory
|
|
2904
3285
|
* @param directory
|
|
2905
3286
|
*/
|
|
2906
|
-
versionChannel: versionChannel((0,
|
|
3287
|
+
versionChannel: versionChannel((0, import_node_path23.join)(path8)),
|
|
2907
3288
|
/**
|
|
2908
3289
|
* Check to see if a channel version exists
|
|
2909
3290
|
* @param id - The id of the channel
|
|
2910
3291
|
* @param version - The version of the channel (supports semver)
|
|
2911
3292
|
* @returns
|
|
2912
3293
|
*/
|
|
2913
|
-
channelHasVersion: channelHasVersion((0,
|
|
3294
|
+
channelHasVersion: channelHasVersion((0, import_node_path23.join)(path8)),
|
|
2914
3295
|
/**
|
|
2915
3296
|
* Add a channel to an event
|
|
2916
3297
|
*
|
|
@@ -2927,7 +3308,7 @@ var src_default = (path8) => {
|
|
|
2927
3308
|
*
|
|
2928
3309
|
* ```
|
|
2929
3310
|
*/
|
|
2930
|
-
addEventToChannel: addMessageToChannel((0,
|
|
3311
|
+
addEventToChannel: addMessageToChannel((0, import_node_path23.join)(path8), "events"),
|
|
2931
3312
|
/**
|
|
2932
3313
|
* Add a channel to an command
|
|
2933
3314
|
*
|
|
@@ -2944,7 +3325,7 @@ var src_default = (path8) => {
|
|
|
2944
3325
|
*
|
|
2945
3326
|
* ```
|
|
2946
3327
|
*/
|
|
2947
|
-
addCommandToChannel: addMessageToChannel((0,
|
|
3328
|
+
addCommandToChannel: addMessageToChannel((0, import_node_path23.join)(path8), "commands"),
|
|
2948
3329
|
/**
|
|
2949
3330
|
* Add a channel to an query
|
|
2950
3331
|
*
|
|
@@ -2961,7 +3342,7 @@ var src_default = (path8) => {
|
|
|
2961
3342
|
*
|
|
2962
3343
|
* ```
|
|
2963
3344
|
*/
|
|
2964
|
-
addQueryToChannel: addMessageToChannel((0,
|
|
3345
|
+
addQueryToChannel: addMessageToChannel((0, import_node_path23.join)(path8), "queries"),
|
|
2965
3346
|
/**
|
|
2966
3347
|
* ================================
|
|
2967
3348
|
* SERVICES
|
|
@@ -2974,14 +3355,14 @@ var src_default = (path8) => {
|
|
|
2974
3355
|
* @param options - Optional options to write the event
|
|
2975
3356
|
*
|
|
2976
3357
|
*/
|
|
2977
|
-
writeService: writeService((0,
|
|
3358
|
+
writeService: writeService((0, import_node_path23.join)(path8, "services")),
|
|
2978
3359
|
/**
|
|
2979
3360
|
* Adds a versioned service to EventCatalog
|
|
2980
3361
|
*
|
|
2981
3362
|
* @param service - The service to write
|
|
2982
3363
|
*
|
|
2983
3364
|
*/
|
|
2984
|
-
writeVersionedService: writeVersionedService((0,
|
|
3365
|
+
writeVersionedService: writeVersionedService((0, import_node_path23.join)(path8, "services")),
|
|
2985
3366
|
/**
|
|
2986
3367
|
* Adds a service to a domain in EventCatalog
|
|
2987
3368
|
*
|
|
@@ -2990,45 +3371,45 @@ var src_default = (path8) => {
|
|
|
2990
3371
|
* @param options - Optional options to write the event
|
|
2991
3372
|
*
|
|
2992
3373
|
*/
|
|
2993
|
-
writeServiceToDomain: writeServiceToDomain((0,
|
|
3374
|
+
writeServiceToDomain: writeServiceToDomain((0, import_node_path23.join)(path8, "domains")),
|
|
2994
3375
|
/**
|
|
2995
3376
|
* Returns a service from EventCatalog
|
|
2996
3377
|
* @param id - The id of the service to retrieve
|
|
2997
3378
|
* @param version - Optional id of the version to get (supports semver)
|
|
2998
3379
|
* @returns Service|Undefined
|
|
2999
3380
|
*/
|
|
3000
|
-
getService: getService((0,
|
|
3381
|
+
getService: getService((0, import_node_path23.join)(path8)),
|
|
3001
3382
|
/**
|
|
3002
3383
|
* Returns a service from EventCatalog by it's path.
|
|
3003
3384
|
* @param path - The path to the service to retrieve
|
|
3004
3385
|
* @returns Service|Undefined
|
|
3005
3386
|
*/
|
|
3006
|
-
getServiceByPath: getServiceByPath((0,
|
|
3387
|
+
getServiceByPath: getServiceByPath((0, import_node_path23.join)(path8)),
|
|
3007
3388
|
/**
|
|
3008
3389
|
* Returns all services from EventCatalog
|
|
3009
3390
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3010
3391
|
* @returns Service[]|Undefined
|
|
3011
3392
|
*/
|
|
3012
|
-
getServices: getServices((0,
|
|
3393
|
+
getServices: getServices((0, import_node_path23.join)(path8)),
|
|
3013
3394
|
/**
|
|
3014
3395
|
* Moves a given service id to the version directory
|
|
3015
3396
|
* @param directory
|
|
3016
3397
|
*/
|
|
3017
|
-
versionService: versionService((0,
|
|
3398
|
+
versionService: versionService((0, import_node_path23.join)(path8)),
|
|
3018
3399
|
/**
|
|
3019
3400
|
* Remove a service from EventCatalog (modeled on the standard POSIX rm utility)
|
|
3020
3401
|
*
|
|
3021
3402
|
* @param path - The path to your service, e.g. `/InventoryService`
|
|
3022
3403
|
*
|
|
3023
3404
|
*/
|
|
3024
|
-
rmService: rmService((0,
|
|
3405
|
+
rmService: rmService((0, import_node_path23.join)(path8, "services")),
|
|
3025
3406
|
/**
|
|
3026
3407
|
* Remove an service by an service id
|
|
3027
3408
|
*
|
|
3028
3409
|
* @param id - The id of the service you want to remove
|
|
3029
3410
|
*
|
|
3030
3411
|
*/
|
|
3031
|
-
rmServiceById: rmServiceById((0,
|
|
3412
|
+
rmServiceById: rmServiceById((0, import_node_path23.join)(path8)),
|
|
3032
3413
|
/**
|
|
3033
3414
|
* Adds a file to the given service
|
|
3034
3415
|
* @param id - The id of the service to add the file to
|
|
@@ -3036,21 +3417,21 @@ var src_default = (path8) => {
|
|
|
3036
3417
|
* @param version - Optional version of the service to add the file to
|
|
3037
3418
|
* @returns
|
|
3038
3419
|
*/
|
|
3039
|
-
addFileToService: addFileToService((0,
|
|
3420
|
+
addFileToService: addFileToService((0, import_node_path23.join)(path8)),
|
|
3040
3421
|
/**
|
|
3041
3422
|
* Returns the specifications for a given service
|
|
3042
3423
|
* @param id - The id of the service to retrieve the specifications for
|
|
3043
3424
|
* @param version - Optional version of the service
|
|
3044
3425
|
* @returns
|
|
3045
3426
|
*/
|
|
3046
|
-
getSpecificationFilesForService: getSpecificationFilesForService((0,
|
|
3427
|
+
getSpecificationFilesForService: getSpecificationFilesForService((0, import_node_path23.join)(path8)),
|
|
3047
3428
|
/**
|
|
3048
3429
|
* Check to see if a service version exists
|
|
3049
3430
|
* @param id - The id of the service
|
|
3050
3431
|
* @param version - The version of the service (supports semver)
|
|
3051
3432
|
* @returns
|
|
3052
3433
|
*/
|
|
3053
|
-
serviceHasVersion: serviceHasVersion((0,
|
|
3434
|
+
serviceHasVersion: serviceHasVersion((0, import_node_path23.join)(path8)),
|
|
3054
3435
|
/**
|
|
3055
3436
|
* Add an event to a service by it's id.
|
|
3056
3437
|
*
|
|
@@ -3070,7 +3451,7 @@ var src_default = (path8) => {
|
|
|
3070
3451
|
*
|
|
3071
3452
|
* ```
|
|
3072
3453
|
*/
|
|
3073
|
-
addEventToService: addMessageToService((0,
|
|
3454
|
+
addEventToService: addMessageToService((0, import_node_path23.join)(path8)),
|
|
3074
3455
|
/**
|
|
3075
3456
|
* Add a data store to a service by it's id.
|
|
3076
3457
|
*
|
|
@@ -3087,7 +3468,7 @@ var src_default = (path8) => {
|
|
|
3087
3468
|
*
|
|
3088
3469
|
* ```
|
|
3089
3470
|
*/
|
|
3090
|
-
addDataStoreToService: addDataStoreToService((0,
|
|
3471
|
+
addDataStoreToService: addDataStoreToService((0, import_node_path23.join)(path8)),
|
|
3091
3472
|
/**
|
|
3092
3473
|
* Add a command to a service by it's id.
|
|
3093
3474
|
*
|
|
@@ -3107,7 +3488,7 @@ var src_default = (path8) => {
|
|
|
3107
3488
|
*
|
|
3108
3489
|
* ```
|
|
3109
3490
|
*/
|
|
3110
|
-
addCommandToService: addMessageToService((0,
|
|
3491
|
+
addCommandToService: addMessageToService((0, import_node_path23.join)(path8)),
|
|
3111
3492
|
/**
|
|
3112
3493
|
* Add a query to a service by it's id.
|
|
3113
3494
|
*
|
|
@@ -3127,7 +3508,7 @@ var src_default = (path8) => {
|
|
|
3127
3508
|
*
|
|
3128
3509
|
* ```
|
|
3129
3510
|
*/
|
|
3130
|
-
addQueryToService: addMessageToService((0,
|
|
3511
|
+
addQueryToService: addMessageToService((0, import_node_path23.join)(path8)),
|
|
3131
3512
|
/**
|
|
3132
3513
|
* Add an entity to a service by its id.
|
|
3133
3514
|
*
|
|
@@ -3145,7 +3526,7 @@ var src_default = (path8) => {
|
|
|
3145
3526
|
*
|
|
3146
3527
|
* ```
|
|
3147
3528
|
*/
|
|
3148
|
-
addEntityToService: addEntityToService((0,
|
|
3529
|
+
addEntityToService: addEntityToService((0, import_node_path23.join)(path8)),
|
|
3149
3530
|
/**
|
|
3150
3531
|
* Check to see if a service exists by it's path.
|
|
3151
3532
|
*
|
|
@@ -3162,13 +3543,13 @@ var src_default = (path8) => {
|
|
|
3162
3543
|
* @param path - The path to the service to check
|
|
3163
3544
|
* @returns boolean
|
|
3164
3545
|
*/
|
|
3165
|
-
isService: isService((0,
|
|
3546
|
+
isService: isService((0, import_node_path23.join)(path8)),
|
|
3166
3547
|
/**
|
|
3167
3548
|
* Converts a file to a service.
|
|
3168
3549
|
* @param file - The file to convert to a service.
|
|
3169
3550
|
* @returns The service.
|
|
3170
3551
|
*/
|
|
3171
|
-
toService: toService((0,
|
|
3552
|
+
toService: toService((0, import_node_path23.join)(path8)),
|
|
3172
3553
|
/**
|
|
3173
3554
|
* ================================
|
|
3174
3555
|
* Domains
|
|
@@ -3181,39 +3562,39 @@ var src_default = (path8) => {
|
|
|
3181
3562
|
* @param options - Optional options to write the event
|
|
3182
3563
|
*
|
|
3183
3564
|
*/
|
|
3184
|
-
writeDomain: writeDomain((0,
|
|
3565
|
+
writeDomain: writeDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3185
3566
|
/**
|
|
3186
3567
|
* Returns a domain from EventCatalog
|
|
3187
3568
|
* @param id - The id of the domain to retrieve
|
|
3188
3569
|
* @param version - Optional id of the version to get (supports semver)
|
|
3189
3570
|
* @returns Domain|Undefined
|
|
3190
3571
|
*/
|
|
3191
|
-
getDomain: getDomain((0,
|
|
3572
|
+
getDomain: getDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3192
3573
|
/**
|
|
3193
3574
|
* Returns all domains from EventCatalog
|
|
3194
3575
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3195
3576
|
* @returns Domain[]|Undefined
|
|
3196
3577
|
*/
|
|
3197
|
-
getDomains: getDomains((0,
|
|
3578
|
+
getDomains: getDomains((0, import_node_path23.join)(path8)),
|
|
3198
3579
|
/**
|
|
3199
3580
|
* Moves a given domain id to the version directory
|
|
3200
3581
|
* @param directory
|
|
3201
3582
|
*/
|
|
3202
|
-
versionDomain: versionDomain((0,
|
|
3583
|
+
versionDomain: versionDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3203
3584
|
/**
|
|
3204
3585
|
* Remove a domain from EventCatalog (modeled on the standard POSIX rm utility)
|
|
3205
3586
|
*
|
|
3206
3587
|
* @param path - The path to your domain, e.g. `/Payment`
|
|
3207
3588
|
*
|
|
3208
3589
|
*/
|
|
3209
|
-
rmDomain: rmDomain((0,
|
|
3590
|
+
rmDomain: rmDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3210
3591
|
/**
|
|
3211
3592
|
* Remove an service by an domain id
|
|
3212
3593
|
*
|
|
3213
3594
|
* @param id - The id of the domain you want to remove
|
|
3214
3595
|
*
|
|
3215
3596
|
*/
|
|
3216
|
-
rmDomainById: rmDomainById((0,
|
|
3597
|
+
rmDomainById: rmDomainById((0, import_node_path23.join)(path8, "domains")),
|
|
3217
3598
|
/**
|
|
3218
3599
|
* Adds a file to the given domain
|
|
3219
3600
|
* @param id - The id of the domain to add the file to
|
|
@@ -3221,28 +3602,28 @@ var src_default = (path8) => {
|
|
|
3221
3602
|
* @param version - Optional version of the domain to add the file to
|
|
3222
3603
|
* @returns
|
|
3223
3604
|
*/
|
|
3224
|
-
addFileToDomain: addFileToDomain((0,
|
|
3605
|
+
addFileToDomain: addFileToDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3225
3606
|
/**
|
|
3226
3607
|
* Adds an ubiquitous language dictionary to a domain
|
|
3227
3608
|
* @param id - The id of the domain to add the ubiquitous language to
|
|
3228
3609
|
* @param ubiquitousLanguageDictionary - The ubiquitous language dictionary to add
|
|
3229
3610
|
* @param version - Optional version of the domain to add the ubiquitous language to
|
|
3230
3611
|
*/
|
|
3231
|
-
addUbiquitousLanguageToDomain: addUbiquitousLanguageToDomain((0,
|
|
3612
|
+
addUbiquitousLanguageToDomain: addUbiquitousLanguageToDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3232
3613
|
/**
|
|
3233
3614
|
* Get the ubiquitous language dictionary from a domain
|
|
3234
3615
|
* @param id - The id of the domain to get the ubiquitous language from
|
|
3235
3616
|
* @param version - Optional version of the domain to get the ubiquitous language from
|
|
3236
3617
|
* @returns
|
|
3237
3618
|
*/
|
|
3238
|
-
getUbiquitousLanguageFromDomain: getUbiquitousLanguageFromDomain((0,
|
|
3619
|
+
getUbiquitousLanguageFromDomain: getUbiquitousLanguageFromDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3239
3620
|
/**
|
|
3240
3621
|
* Check to see if a domain version exists
|
|
3241
3622
|
* @param id - The id of the domain
|
|
3242
3623
|
* @param version - The version of the domain (supports semver)
|
|
3243
3624
|
* @returns
|
|
3244
3625
|
*/
|
|
3245
|
-
domainHasVersion: domainHasVersion((0,
|
|
3626
|
+
domainHasVersion: domainHasVersion((0, import_node_path23.join)(path8)),
|
|
3246
3627
|
/**
|
|
3247
3628
|
* Adds a given service to a domain
|
|
3248
3629
|
* @param id - The id of the domain
|
|
@@ -3250,7 +3631,7 @@ var src_default = (path8) => {
|
|
|
3250
3631
|
* @param version - (Optional) The version of the domain to add the service to
|
|
3251
3632
|
* @returns
|
|
3252
3633
|
*/
|
|
3253
|
-
addServiceToDomain: addServiceToDomain((0,
|
|
3634
|
+
addServiceToDomain: addServiceToDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3254
3635
|
/**
|
|
3255
3636
|
* Adds a given subdomain to a domain
|
|
3256
3637
|
* @param id - The id of the domain
|
|
@@ -3258,7 +3639,7 @@ var src_default = (path8) => {
|
|
|
3258
3639
|
* @param version - (Optional) The version of the domain to add the subdomain to
|
|
3259
3640
|
* @returns
|
|
3260
3641
|
*/
|
|
3261
|
-
addSubDomainToDomain: addSubDomainToDomain((0,
|
|
3642
|
+
addSubDomainToDomain: addSubDomainToDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3262
3643
|
/**
|
|
3263
3644
|
* Adds an entity to a domain
|
|
3264
3645
|
* @param id - The id of the domain
|
|
@@ -3266,7 +3647,7 @@ var src_default = (path8) => {
|
|
|
3266
3647
|
* @param version - (Optional) The version of the domain to add the entity to
|
|
3267
3648
|
* @returns
|
|
3268
3649
|
*/
|
|
3269
|
-
addEntityToDomain: addEntityToDomain((0,
|
|
3650
|
+
addEntityToDomain: addEntityToDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3270
3651
|
/**
|
|
3271
3652
|
* Add an event to a domain by its id.
|
|
3272
3653
|
*
|
|
@@ -3284,7 +3665,7 @@ var src_default = (path8) => {
|
|
|
3284
3665
|
*
|
|
3285
3666
|
* ```
|
|
3286
3667
|
*/
|
|
3287
|
-
addEventToDomain: addMessageToDomain((0,
|
|
3668
|
+
addEventToDomain: addMessageToDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3288
3669
|
/**
|
|
3289
3670
|
* Add a command to a domain by its id.
|
|
3290
3671
|
*
|
|
@@ -3302,7 +3683,7 @@ var src_default = (path8) => {
|
|
|
3302
3683
|
*
|
|
3303
3684
|
* ```
|
|
3304
3685
|
*/
|
|
3305
|
-
addCommandToDomain: addMessageToDomain((0,
|
|
3686
|
+
addCommandToDomain: addMessageToDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3306
3687
|
/**
|
|
3307
3688
|
* Add a query to a domain by its id.
|
|
3308
3689
|
*
|
|
@@ -3320,7 +3701,7 @@ var src_default = (path8) => {
|
|
|
3320
3701
|
*
|
|
3321
3702
|
* ```
|
|
3322
3703
|
*/
|
|
3323
|
-
addQueryToDomain: addMessageToDomain((0,
|
|
3704
|
+
addQueryToDomain: addMessageToDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3324
3705
|
/**
|
|
3325
3706
|
* ================================
|
|
3326
3707
|
* Teams
|
|
@@ -3333,25 +3714,25 @@ var src_default = (path8) => {
|
|
|
3333
3714
|
* @param options - Optional options to write the team
|
|
3334
3715
|
*
|
|
3335
3716
|
*/
|
|
3336
|
-
writeTeam: writeTeam((0,
|
|
3717
|
+
writeTeam: writeTeam((0, import_node_path23.join)(path8, "teams")),
|
|
3337
3718
|
/**
|
|
3338
3719
|
* Returns a team from EventCatalog
|
|
3339
3720
|
* @param id - The id of the team to retrieve
|
|
3340
3721
|
* @returns Team|Undefined
|
|
3341
3722
|
*/
|
|
3342
|
-
getTeam: getTeam((0,
|
|
3723
|
+
getTeam: getTeam((0, import_node_path23.join)(path8, "teams")),
|
|
3343
3724
|
/**
|
|
3344
3725
|
* Returns all teams from EventCatalog
|
|
3345
3726
|
* @returns Team[]|Undefined
|
|
3346
3727
|
*/
|
|
3347
|
-
getTeams: getTeams((0,
|
|
3728
|
+
getTeams: getTeams((0, import_node_path23.join)(path8, "teams")),
|
|
3348
3729
|
/**
|
|
3349
3730
|
* Remove a team by the team id
|
|
3350
3731
|
*
|
|
3351
3732
|
* @param id - The id of the team you want to remove
|
|
3352
3733
|
*
|
|
3353
3734
|
*/
|
|
3354
|
-
rmTeamById: rmTeamById((0,
|
|
3735
|
+
rmTeamById: rmTeamById((0, import_node_path23.join)(path8, "teams")),
|
|
3355
3736
|
/**
|
|
3356
3737
|
* ================================
|
|
3357
3738
|
* Users
|
|
@@ -3364,25 +3745,25 @@ var src_default = (path8) => {
|
|
|
3364
3745
|
* @param options - Optional options to write the user
|
|
3365
3746
|
*
|
|
3366
3747
|
*/
|
|
3367
|
-
writeUser: writeUser((0,
|
|
3748
|
+
writeUser: writeUser((0, import_node_path23.join)(path8, "users")),
|
|
3368
3749
|
/**
|
|
3369
3750
|
* Returns a user from EventCatalog
|
|
3370
3751
|
* @param id - The id of the user to retrieve
|
|
3371
3752
|
* @returns User|Undefined
|
|
3372
3753
|
*/
|
|
3373
|
-
getUser: getUser((0,
|
|
3754
|
+
getUser: getUser((0, import_node_path23.join)(path8, "users")),
|
|
3374
3755
|
/**
|
|
3375
3756
|
* Returns all user from EventCatalog
|
|
3376
3757
|
* @returns User[]|Undefined
|
|
3377
3758
|
*/
|
|
3378
|
-
getUsers: getUsers((0,
|
|
3759
|
+
getUsers: getUsers((0, import_node_path23.join)(path8)),
|
|
3379
3760
|
/**
|
|
3380
3761
|
* Remove a user by the user id
|
|
3381
3762
|
*
|
|
3382
3763
|
* @param id - The id of the user you want to remove
|
|
3383
3764
|
*
|
|
3384
3765
|
*/
|
|
3385
|
-
rmUserById: rmUserById((0,
|
|
3766
|
+
rmUserById: rmUserById((0, import_node_path23.join)(path8, "users")),
|
|
3386
3767
|
/**
|
|
3387
3768
|
* ================================
|
|
3388
3769
|
* Custom Docs
|
|
@@ -3393,32 +3774,32 @@ var src_default = (path8) => {
|
|
|
3393
3774
|
* @param path - The path to the custom doc to retrieve
|
|
3394
3775
|
* @returns CustomDoc|Undefined
|
|
3395
3776
|
*/
|
|
3396
|
-
getCustomDoc: getCustomDoc((0,
|
|
3777
|
+
getCustomDoc: getCustomDoc((0, import_node_path23.join)(path8, "docs")),
|
|
3397
3778
|
/**
|
|
3398
3779
|
* Returns all custom docs from EventCatalog
|
|
3399
3780
|
* @param options - Optional options to get custom docs from a specific path
|
|
3400
3781
|
* @returns CustomDoc[]|Undefined
|
|
3401
3782
|
*/
|
|
3402
|
-
getCustomDocs: getCustomDocs((0,
|
|
3783
|
+
getCustomDocs: getCustomDocs((0, import_node_path23.join)(path8, "docs")),
|
|
3403
3784
|
/**
|
|
3404
3785
|
* Writes a custom doc to EventCatalog
|
|
3405
3786
|
* @param customDoc - The custom doc to write
|
|
3406
3787
|
* @param options - Optional options to write the custom doc
|
|
3407
3788
|
*
|
|
3408
3789
|
*/
|
|
3409
|
-
writeCustomDoc: writeCustomDoc((0,
|
|
3790
|
+
writeCustomDoc: writeCustomDoc((0, import_node_path23.join)(path8, "docs")),
|
|
3410
3791
|
/**
|
|
3411
3792
|
* Removes a custom doc from EventCatalog
|
|
3412
3793
|
* @param path - The path to the custom doc to remove
|
|
3413
3794
|
*
|
|
3414
3795
|
*/
|
|
3415
|
-
rmCustomDoc: rmCustomDoc((0,
|
|
3796
|
+
rmCustomDoc: rmCustomDoc((0, import_node_path23.join)(path8, "docs")),
|
|
3416
3797
|
/**
|
|
3417
3798
|
* Dumps the catalog to a JSON file.
|
|
3418
3799
|
* @param directory - The directory to dump the catalog to
|
|
3419
3800
|
* @returns A JSON file with the catalog
|
|
3420
3801
|
*/
|
|
3421
|
-
dumpCatalog: dumpCatalog((0,
|
|
3802
|
+
dumpCatalog: dumpCatalog((0, import_node_path23.join)(path8)),
|
|
3422
3803
|
/**
|
|
3423
3804
|
* Returns the event catalog configuration file.
|
|
3424
3805
|
* The event catalog configuration file is the file that contains the configuration for the event catalog.
|
|
@@ -3426,7 +3807,7 @@ var src_default = (path8) => {
|
|
|
3426
3807
|
* @param directory - The directory of the catalog.
|
|
3427
3808
|
* @returns A JSON object with the configuration for the event catalog.
|
|
3428
3809
|
*/
|
|
3429
|
-
getEventCatalogConfigurationFile: getEventCatalogConfigurationFile((0,
|
|
3810
|
+
getEventCatalogConfigurationFile: getEventCatalogConfigurationFile((0, import_node_path23.join)(path8)),
|
|
3430
3811
|
/**
|
|
3431
3812
|
* ================================
|
|
3432
3813
|
* Changelogs
|
|
@@ -3440,7 +3821,7 @@ var src_default = (path8) => {
|
|
|
3440
3821
|
* @param options - Optional options (version, format)
|
|
3441
3822
|
*
|
|
3442
3823
|
*/
|
|
3443
|
-
writeChangelog: writeChangelog((0,
|
|
3824
|
+
writeChangelog: writeChangelog((0, import_node_path23.join)(path8)),
|
|
3444
3825
|
/**
|
|
3445
3826
|
* Appends a changelog entry to an existing changelog for a resource.
|
|
3446
3827
|
* If no changelog exists, one is created.
|
|
@@ -3450,7 +3831,7 @@ var src_default = (path8) => {
|
|
|
3450
3831
|
* @param options - Optional options (version, format)
|
|
3451
3832
|
*
|
|
3452
3833
|
*/
|
|
3453
|
-
appendChangelog: appendChangelog((0,
|
|
3834
|
+
appendChangelog: appendChangelog((0, import_node_path23.join)(path8)),
|
|
3454
3835
|
/**
|
|
3455
3836
|
* Returns the changelog for a resource in EventCatalog
|
|
3456
3837
|
*
|
|
@@ -3458,7 +3839,7 @@ var src_default = (path8) => {
|
|
|
3458
3839
|
* @param options - Optional options (version)
|
|
3459
3840
|
* @returns Changelog|Undefined
|
|
3460
3841
|
*/
|
|
3461
|
-
getChangelog: getChangelog((0,
|
|
3842
|
+
getChangelog: getChangelog((0, import_node_path23.join)(path8)),
|
|
3462
3843
|
/**
|
|
3463
3844
|
* Removes the changelog for a resource in EventCatalog
|
|
3464
3845
|
*
|
|
@@ -3466,7 +3847,7 @@ var src_default = (path8) => {
|
|
|
3466
3847
|
* @param options - Optional options (version)
|
|
3467
3848
|
*
|
|
3468
3849
|
*/
|
|
3469
|
-
rmChangelog: rmChangelog((0,
|
|
3850
|
+
rmChangelog: rmChangelog((0, import_node_path23.join)(path8)),
|
|
3470
3851
|
/**
|
|
3471
3852
|
* ================================
|
|
3472
3853
|
* Resources Utils
|
|
@@ -3491,26 +3872,26 @@ var src_default = (path8) => {
|
|
|
3491
3872
|
* @param path - The path to the message to retrieve
|
|
3492
3873
|
* @returns Message|Undefined
|
|
3493
3874
|
*/
|
|
3494
|
-
getMessageBySchemaPath: getMessageBySchemaPath((0,
|
|
3875
|
+
getMessageBySchemaPath: getMessageBySchemaPath((0, import_node_path23.join)(path8)),
|
|
3495
3876
|
/**
|
|
3496
3877
|
* Returns the producers and consumers (services) for a given message
|
|
3497
3878
|
* @param id - The id of the message to get the producers and consumers for
|
|
3498
3879
|
* @param version - Optional version of the message
|
|
3499
3880
|
* @returns { producers: Service[], consumers: Service[] }
|
|
3500
3881
|
*/
|
|
3501
|
-
getProducersAndConsumersForMessage: getProducersAndConsumersForMessage((0,
|
|
3882
|
+
getProducersAndConsumersForMessage: getProducersAndConsumersForMessage((0, import_node_path23.join)(path8)),
|
|
3502
3883
|
/**
|
|
3503
3884
|
* Returns the consumers of a given schema path
|
|
3504
3885
|
* @param path - The path to the schema to get the consumers for
|
|
3505
3886
|
* @returns Service[]
|
|
3506
3887
|
*/
|
|
3507
|
-
getConsumersOfSchema: getConsumersOfSchema((0,
|
|
3888
|
+
getConsumersOfSchema: getConsumersOfSchema((0, import_node_path23.join)(path8)),
|
|
3508
3889
|
/**
|
|
3509
3890
|
* Returns the producers of a given schema path
|
|
3510
3891
|
* @param path - The path to the schema to get the producers for
|
|
3511
3892
|
* @returns Service[]
|
|
3512
3893
|
*/
|
|
3513
|
-
getProducersOfSchema: getProducersOfSchema((0,
|
|
3894
|
+
getProducersOfSchema: getProducersOfSchema((0, import_node_path23.join)(path8)),
|
|
3514
3895
|
/**
|
|
3515
3896
|
* Returns the schema for a given message (event, command or query) by its id and version.
|
|
3516
3897
|
* If no version is given, the latest version is used.
|
|
@@ -3518,14 +3899,14 @@ var src_default = (path8) => {
|
|
|
3518
3899
|
* @param version - Optional version of the message
|
|
3519
3900
|
* @returns { schema: string, fileName: string } | undefined
|
|
3520
3901
|
*/
|
|
3521
|
-
getSchemaForMessage: getSchemaForMessage((0,
|
|
3902
|
+
getSchemaForMessage: getSchemaForMessage((0, import_node_path23.join)(path8)),
|
|
3522
3903
|
/**
|
|
3523
3904
|
* Returns the owners for a given resource (e.g domain, service, event, command, query, etc.)
|
|
3524
3905
|
* @param id - The id of the resource to get the owners for
|
|
3525
3906
|
* @param version - Optional version of the resource
|
|
3526
3907
|
* @returns { owners: User[] }
|
|
3527
3908
|
*/
|
|
3528
|
-
getOwnersForResource: getOwnersForResource((0,
|
|
3909
|
+
getOwnersForResource: getOwnersForResource((0, import_node_path23.join)(path8)),
|
|
3529
3910
|
/**
|
|
3530
3911
|
* ================================
|
|
3531
3912
|
* Entities
|
|
@@ -3537,13 +3918,13 @@ var src_default = (path8) => {
|
|
|
3537
3918
|
* @param version - Optional id of the version to get (supports semver)
|
|
3538
3919
|
* @returns Entity|Undefined
|
|
3539
3920
|
*/
|
|
3540
|
-
getEntity: getEntity((0,
|
|
3921
|
+
getEntity: getEntity((0, import_node_path23.join)(path8)),
|
|
3541
3922
|
/**
|
|
3542
3923
|
* Returns all entities from EventCatalog
|
|
3543
3924
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3544
3925
|
* @returns Entity[]|Undefined
|
|
3545
3926
|
*/
|
|
3546
|
-
getEntities: getEntities((0,
|
|
3927
|
+
getEntities: getEntities((0, import_node_path23.join)(path8)),
|
|
3547
3928
|
/**
|
|
3548
3929
|
* Adds an entity to EventCatalog
|
|
3549
3930
|
*
|
|
@@ -3551,33 +3932,33 @@ var src_default = (path8) => {
|
|
|
3551
3932
|
* @param options - Optional options to write the entity
|
|
3552
3933
|
*
|
|
3553
3934
|
*/
|
|
3554
|
-
writeEntity: writeEntity((0,
|
|
3935
|
+
writeEntity: writeEntity((0, import_node_path23.join)(path8, "entities")),
|
|
3555
3936
|
/**
|
|
3556
3937
|
* Remove an entity from EventCatalog (modeled on the standard POSIX rm utility)
|
|
3557
3938
|
*
|
|
3558
3939
|
* @param path - The path to your entity, e.g. `/User`
|
|
3559
3940
|
*
|
|
3560
3941
|
*/
|
|
3561
|
-
rmEntity: rmEntity((0,
|
|
3942
|
+
rmEntity: rmEntity((0, import_node_path23.join)(path8, "entities")),
|
|
3562
3943
|
/**
|
|
3563
3944
|
* Remove an entity by an entity id
|
|
3564
3945
|
*
|
|
3565
3946
|
* @param id - The id of the entity you want to remove
|
|
3566
3947
|
*
|
|
3567
3948
|
*/
|
|
3568
|
-
rmEntityById: rmEntityById((0,
|
|
3949
|
+
rmEntityById: rmEntityById((0, import_node_path23.join)(path8)),
|
|
3569
3950
|
/**
|
|
3570
3951
|
* Moves a given entity id to the version directory
|
|
3571
3952
|
* @param id - The id of the entity to version
|
|
3572
3953
|
*/
|
|
3573
|
-
versionEntity: versionEntity((0,
|
|
3954
|
+
versionEntity: versionEntity((0, import_node_path23.join)(path8)),
|
|
3574
3955
|
/**
|
|
3575
3956
|
* Check to see if an entity version exists
|
|
3576
3957
|
* @param id - The id of the entity
|
|
3577
3958
|
* @param version - The version of the entity (supports semver)
|
|
3578
3959
|
* @returns
|
|
3579
3960
|
*/
|
|
3580
|
-
entityHasVersion: entityHasVersion((0,
|
|
3961
|
+
entityHasVersion: entityHasVersion((0, import_node_path23.join)(path8)),
|
|
3581
3962
|
/**
|
|
3582
3963
|
* ================================
|
|
3583
3964
|
* Flows
|
|
@@ -3590,7 +3971,7 @@ var src_default = (path8) => {
|
|
|
3590
3971
|
* @param version - Optional version of the flow
|
|
3591
3972
|
* @returns Flow
|
|
3592
3973
|
*/
|
|
3593
|
-
getFlow: getFlow((0,
|
|
3974
|
+
getFlow: getFlow((0, import_node_path23.join)(path8)),
|
|
3594
3975
|
/**
|
|
3595
3976
|
* Returns all flows from EventCatalog
|
|
3596
3977
|
*
|
|
@@ -3598,7 +3979,74 @@ var src_default = (path8) => {
|
|
|
3598
3979
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3599
3980
|
* @returns Flow[]|Undefined
|
|
3600
3981
|
*/
|
|
3601
|
-
getFlows: getFlows((0,
|
|
3982
|
+
getFlows: getFlows((0, import_node_path23.join)(path8)),
|
|
3983
|
+
/**
|
|
3984
|
+
* Adds a flow to EventCatalog
|
|
3985
|
+
*
|
|
3986
|
+
* @param flow - The flow to write
|
|
3987
|
+
* @param options - Optional options to write the flow
|
|
3988
|
+
*
|
|
3989
|
+
*/
|
|
3990
|
+
writeFlow: writeFlow((0, import_node_path23.join)(path8, "flows")),
|
|
3991
|
+
/**
|
|
3992
|
+
* Adds a versioned flow to EventCatalog
|
|
3993
|
+
*
|
|
3994
|
+
* @param flow - The flow to write
|
|
3995
|
+
*
|
|
3996
|
+
*/
|
|
3997
|
+
writeVersionedFlow: writeVersionedFlow((0, import_node_path23.join)(path8, "flows")),
|
|
3998
|
+
/**
|
|
3999
|
+
* Adds a flow to a domain in EventCatalog
|
|
4000
|
+
*
|
|
4001
|
+
* @param flow - The flow to write to the domain
|
|
4002
|
+
* @param domain - The domain and its id to write the flow to
|
|
4003
|
+
* @param options - Optional options to write the flow
|
|
4004
|
+
*
|
|
4005
|
+
*/
|
|
4006
|
+
writeFlowToDomain: writeFlowToDomain((0, import_node_path23.join)(path8, "domains")),
|
|
4007
|
+
/**
|
|
4008
|
+
* Adds a flow to a service in EventCatalog
|
|
4009
|
+
*
|
|
4010
|
+
* @param flow - The flow to write to the service
|
|
4011
|
+
* @param service - The service and its id to write the flow to
|
|
4012
|
+
* @param options - Optional options to write the flow
|
|
4013
|
+
*
|
|
4014
|
+
*/
|
|
4015
|
+
writeFlowToService: writeFlowToService((0, import_node_path23.join)(path8, "services")),
|
|
4016
|
+
/**
|
|
4017
|
+
* Remove a flow from EventCatalog (modeled on the standard POSIX rm utility)
|
|
4018
|
+
*
|
|
4019
|
+
* @param path - The path to your flow, e.g. `/PaymentFlow`
|
|
4020
|
+
*
|
|
4021
|
+
*/
|
|
4022
|
+
rmFlow: rmFlow((0, import_node_path23.join)(path8, "flows")),
|
|
4023
|
+
/**
|
|
4024
|
+
* Remove a flow by a flow id
|
|
4025
|
+
*
|
|
4026
|
+
* @param id - The id of the flow you want to remove
|
|
4027
|
+
*
|
|
4028
|
+
*/
|
|
4029
|
+
rmFlowById: rmFlowById((0, import_node_path23.join)(path8)),
|
|
4030
|
+
/**
|
|
4031
|
+
* Moves a given flow id to the version directory
|
|
4032
|
+
* @param id - The id of the flow to version
|
|
4033
|
+
*/
|
|
4034
|
+
versionFlow: versionFlow((0, import_node_path23.join)(path8)),
|
|
4035
|
+
/**
|
|
4036
|
+
* Check to see if a flow version exists
|
|
4037
|
+
* @param id - The id of the flow
|
|
4038
|
+
* @param version - The version of the flow (supports semver)
|
|
4039
|
+
* @returns
|
|
4040
|
+
*/
|
|
4041
|
+
flowHasVersion: flowHasVersion((0, import_node_path23.join)(path8)),
|
|
4042
|
+
/**
|
|
4043
|
+
* Adds a file to the given flow
|
|
4044
|
+
* @param id - The id of the flow to add the file to
|
|
4045
|
+
* @param file - File contents to add including the content and the file name
|
|
4046
|
+
* @param version - Optional version of the flow to add the file to
|
|
4047
|
+
* @returns
|
|
4048
|
+
*/
|
|
4049
|
+
addFileToFlow: addFileToFlow((0, import_node_path23.join)(path8)),
|
|
3602
4050
|
/**
|
|
3603
4051
|
* ================================
|
|
3604
4052
|
* Data Stores
|
|
@@ -3610,42 +4058,42 @@ var src_default = (path8) => {
|
|
|
3610
4058
|
* @param options - Optional options to write the data store
|
|
3611
4059
|
*
|
|
3612
4060
|
*/
|
|
3613
|
-
writeDataStore: writeDataStore((0,
|
|
4061
|
+
writeDataStore: writeDataStore((0, import_node_path23.join)(path8, "containers")),
|
|
3614
4062
|
/**
|
|
3615
4063
|
* Returns a data store from EventCatalog
|
|
3616
4064
|
* @param id - The id of the data store to retrieve
|
|
3617
4065
|
* @param version - Optional id of the version to get (supports semver)
|
|
3618
4066
|
* @returns Container|Undefined
|
|
3619
4067
|
*/
|
|
3620
|
-
getDataStore: getDataStore((0,
|
|
4068
|
+
getDataStore: getDataStore((0, import_node_path23.join)(path8)),
|
|
3621
4069
|
/**
|
|
3622
4070
|
* Returns all data stores from EventCatalog
|
|
3623
4071
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3624
4072
|
* @returns Container[]|Undefined
|
|
3625
4073
|
*/
|
|
3626
|
-
getDataStores: getDataStores((0,
|
|
4074
|
+
getDataStores: getDataStores((0, import_node_path23.join)(path8)),
|
|
3627
4075
|
/**
|
|
3628
4076
|
* Version a data store by its id
|
|
3629
4077
|
* @param id - The id of the data store to version
|
|
3630
4078
|
*/
|
|
3631
|
-
versionDataStore: versionDataStore((0,
|
|
4079
|
+
versionDataStore: versionDataStore((0, import_node_path23.join)(path8, "containers")),
|
|
3632
4080
|
/**
|
|
3633
4081
|
* Remove a data store by its path
|
|
3634
4082
|
* @param path - The path to the data store to remove
|
|
3635
4083
|
*/
|
|
3636
|
-
rmDataStore: rmDataStore((0,
|
|
4084
|
+
rmDataStore: rmDataStore((0, import_node_path23.join)(path8, "containers")),
|
|
3637
4085
|
/**
|
|
3638
4086
|
* Remove a data store by its id
|
|
3639
4087
|
* @param id - The id of the data store to remove
|
|
3640
4088
|
*/
|
|
3641
|
-
rmDataStoreById: rmDataStoreById((0,
|
|
4089
|
+
rmDataStoreById: rmDataStoreById((0, import_node_path23.join)(path8)),
|
|
3642
4090
|
/**
|
|
3643
4091
|
* Check to see if a data store version exists
|
|
3644
4092
|
* @param id - The id of the data store
|
|
3645
4093
|
* @param version - The version of the data store (supports semver)
|
|
3646
4094
|
* @returns
|
|
3647
4095
|
*/
|
|
3648
|
-
dataStoreHasVersion: dataStoreHasVersion((0,
|
|
4096
|
+
dataStoreHasVersion: dataStoreHasVersion((0, import_node_path23.join)(path8)),
|
|
3649
4097
|
/**
|
|
3650
4098
|
* Adds a file to a data store by its id
|
|
3651
4099
|
* @param id - The id of the data store to add the file to
|
|
@@ -3653,14 +4101,14 @@ var src_default = (path8) => {
|
|
|
3653
4101
|
* @param version - Optional version of the data store to add the file to
|
|
3654
4102
|
* @returns
|
|
3655
4103
|
*/
|
|
3656
|
-
addFileToDataStore: addFileToDataStore((0,
|
|
4104
|
+
addFileToDataStore: addFileToDataStore((0, import_node_path23.join)(path8)),
|
|
3657
4105
|
/**
|
|
3658
4106
|
* Writes a data store to a service by its id
|
|
3659
4107
|
* @param dataStore - The data store to write
|
|
3660
4108
|
* @param service - The service to write the data store to
|
|
3661
4109
|
* @returns
|
|
3662
4110
|
*/
|
|
3663
|
-
writeDataStoreToService: writeDataStoreToService((0,
|
|
4111
|
+
writeDataStoreToService: writeDataStoreToService((0, import_node_path23.join)(path8)),
|
|
3664
4112
|
/**
|
|
3665
4113
|
* ================================
|
|
3666
4114
|
* Data Products
|
|
@@ -3672,7 +4120,7 @@ var src_default = (path8) => {
|
|
|
3672
4120
|
* @param options - Optional options to write the data product
|
|
3673
4121
|
*
|
|
3674
4122
|
*/
|
|
3675
|
-
writeDataProduct: writeDataProduct((0,
|
|
4123
|
+
writeDataProduct: writeDataProduct((0, import_node_path23.join)(path8, "data-products")),
|
|
3676
4124
|
/**
|
|
3677
4125
|
* Writes a data product to a domain in EventCatalog
|
|
3678
4126
|
* @param dataProduct - The data product to write
|
|
@@ -3680,43 +4128,43 @@ var src_default = (path8) => {
|
|
|
3680
4128
|
* @param options - Optional options to write the data product
|
|
3681
4129
|
*
|
|
3682
4130
|
*/
|
|
3683
|
-
writeDataProductToDomain: writeDataProductToDomain((0,
|
|
4131
|
+
writeDataProductToDomain: writeDataProductToDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3684
4132
|
/**
|
|
3685
4133
|
* Returns a data product from EventCatalog
|
|
3686
4134
|
* @param id - The id of the data product to retrieve
|
|
3687
4135
|
* @param version - Optional id of the version to get (supports semver)
|
|
3688
4136
|
* @returns DataProduct|Undefined
|
|
3689
4137
|
*/
|
|
3690
|
-
getDataProduct: getDataProduct((0,
|
|
4138
|
+
getDataProduct: getDataProduct((0, import_node_path23.join)(path8)),
|
|
3691
4139
|
/**
|
|
3692
4140
|
* Returns all data products from EventCatalog
|
|
3693
4141
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3694
4142
|
* @returns DataProduct[]|Undefined
|
|
3695
4143
|
*/
|
|
3696
|
-
getDataProducts: getDataProducts((0,
|
|
4144
|
+
getDataProducts: getDataProducts((0, import_node_path23.join)(path8)),
|
|
3697
4145
|
/**
|
|
3698
4146
|
* Version a data product by its id
|
|
3699
4147
|
* @param id - The id of the data product to version
|
|
3700
4148
|
*/
|
|
3701
|
-
versionDataProduct: versionDataProduct((0,
|
|
4149
|
+
versionDataProduct: versionDataProduct((0, import_node_path23.join)(path8)),
|
|
3702
4150
|
/**
|
|
3703
4151
|
* Remove a data product by its path
|
|
3704
4152
|
* @param path - The path to the data product to remove
|
|
3705
4153
|
*/
|
|
3706
|
-
rmDataProduct: rmDataProduct((0,
|
|
4154
|
+
rmDataProduct: rmDataProduct((0, import_node_path23.join)(path8, "data-products")),
|
|
3707
4155
|
/**
|
|
3708
4156
|
* Remove a data product by its id
|
|
3709
4157
|
* @param id - The id of the data product to remove
|
|
3710
4158
|
* @param version - Optional version of the data product to remove
|
|
3711
4159
|
*/
|
|
3712
|
-
rmDataProductById: rmDataProductById((0,
|
|
4160
|
+
rmDataProductById: rmDataProductById((0, import_node_path23.join)(path8)),
|
|
3713
4161
|
/**
|
|
3714
4162
|
* Check to see if a data product version exists
|
|
3715
4163
|
* @param id - The id of the data product
|
|
3716
4164
|
* @param version - The version of the data product (supports semver)
|
|
3717
4165
|
* @returns
|
|
3718
4166
|
*/
|
|
3719
|
-
dataProductHasVersion: dataProductHasVersion((0,
|
|
4167
|
+
dataProductHasVersion: dataProductHasVersion((0, import_node_path23.join)(path8)),
|
|
3720
4168
|
/**
|
|
3721
4169
|
* Adds a file to a data product by its id
|
|
3722
4170
|
* @param id - The id of the data product to add the file to
|
|
@@ -3724,7 +4172,7 @@ var src_default = (path8) => {
|
|
|
3724
4172
|
* @param version - Optional version of the data product to add the file to
|
|
3725
4173
|
* @returns
|
|
3726
4174
|
*/
|
|
3727
|
-
addFileToDataProduct: addFileToDataProduct((0,
|
|
4175
|
+
addFileToDataProduct: addFileToDataProduct((0, import_node_path23.join)(path8)),
|
|
3728
4176
|
/**
|
|
3729
4177
|
* Adds a data product to a domain
|
|
3730
4178
|
* @param id - The id of the domain
|
|
@@ -3732,7 +4180,7 @@ var src_default = (path8) => {
|
|
|
3732
4180
|
* @param version - (Optional) The version of the domain to add the data product to
|
|
3733
4181
|
* @returns
|
|
3734
4182
|
*/
|
|
3735
|
-
addDataProductToDomain: addDataProductToDomain((0,
|
|
4183
|
+
addDataProductToDomain: addDataProductToDomain((0, import_node_path23.join)(path8, "domains")),
|
|
3736
4184
|
/**
|
|
3737
4185
|
* ================================
|
|
3738
4186
|
* Diagrams
|
|
@@ -3744,13 +4192,13 @@ var src_default = (path8) => {
|
|
|
3744
4192
|
* @param version - Optional id of the version to get (supports semver)
|
|
3745
4193
|
* @returns Diagram|Undefined
|
|
3746
4194
|
*/
|
|
3747
|
-
getDiagram: getDiagram((0,
|
|
4195
|
+
getDiagram: getDiagram((0, import_node_path23.join)(path8)),
|
|
3748
4196
|
/**
|
|
3749
4197
|
* Returns all diagrams from EventCatalog
|
|
3750
4198
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3751
4199
|
* @returns Diagram[]|Undefined
|
|
3752
4200
|
*/
|
|
3753
|
-
getDiagrams: getDiagrams((0,
|
|
4201
|
+
getDiagrams: getDiagrams((0, import_node_path23.join)(path8)),
|
|
3754
4202
|
/**
|
|
3755
4203
|
* Adds a diagram to EventCatalog
|
|
3756
4204
|
*
|
|
@@ -3758,33 +4206,33 @@ var src_default = (path8) => {
|
|
|
3758
4206
|
* @param options - Optional options to write the diagram
|
|
3759
4207
|
*
|
|
3760
4208
|
*/
|
|
3761
|
-
writeDiagram: writeDiagram((0,
|
|
4209
|
+
writeDiagram: writeDiagram((0, import_node_path23.join)(path8, "diagrams")),
|
|
3762
4210
|
/**
|
|
3763
4211
|
* Remove a diagram from EventCatalog (modeled on the standard POSIX rm utility)
|
|
3764
4212
|
*
|
|
3765
4213
|
* @param path - The path to your diagram, e.g. `/ArchitectureDiagram`
|
|
3766
4214
|
*
|
|
3767
4215
|
*/
|
|
3768
|
-
rmDiagram: rmDiagram((0,
|
|
4216
|
+
rmDiagram: rmDiagram((0, import_node_path23.join)(path8, "diagrams")),
|
|
3769
4217
|
/**
|
|
3770
4218
|
* Remove a diagram by a diagram id
|
|
3771
4219
|
*
|
|
3772
4220
|
* @param id - The id of the diagram you want to remove
|
|
3773
4221
|
*
|
|
3774
4222
|
*/
|
|
3775
|
-
rmDiagramById: rmDiagramById((0,
|
|
4223
|
+
rmDiagramById: rmDiagramById((0, import_node_path23.join)(path8)),
|
|
3776
4224
|
/**
|
|
3777
4225
|
* Moves a given diagram id to the version directory
|
|
3778
4226
|
* @param id - The id of the diagram to version
|
|
3779
4227
|
*/
|
|
3780
|
-
versionDiagram: versionDiagram((0,
|
|
4228
|
+
versionDiagram: versionDiagram((0, import_node_path23.join)(path8)),
|
|
3781
4229
|
/**
|
|
3782
4230
|
* Check to see if a diagram version exists
|
|
3783
4231
|
* @param id - The id of the diagram
|
|
3784
4232
|
* @param version - The version of the diagram (supports semver)
|
|
3785
4233
|
* @returns
|
|
3786
4234
|
*/
|
|
3787
|
-
diagramHasVersion: diagramHasVersion((0,
|
|
4235
|
+
diagramHasVersion: diagramHasVersion((0, import_node_path23.join)(path8)),
|
|
3788
4236
|
/**
|
|
3789
4237
|
* Adds a file to the given diagram
|
|
3790
4238
|
* @param id - The id of the diagram to add the file to
|
|
@@ -3792,7 +4240,7 @@ var src_default = (path8) => {
|
|
|
3792
4240
|
* @param version - Optional version of the diagram to add the file to
|
|
3793
4241
|
* @returns
|
|
3794
4242
|
*/
|
|
3795
|
-
addFileToDiagram: addFileToDiagram((0,
|
|
4243
|
+
addFileToDiagram: addFileToDiagram((0, import_node_path23.join)(path8)),
|
|
3796
4244
|
/**
|
|
3797
4245
|
* ================================
|
|
3798
4246
|
* DSL
|
|
@@ -3811,22 +4259,26 @@ var src_default = (path8) => {
|
|
|
3811
4259
|
* const dsl = await sdk.toDSL(services, { type: 'service', hydrate: true });
|
|
3812
4260
|
* ```
|
|
3813
4261
|
*/
|
|
3814
|
-
createSnapshot: createSnapshot((0,
|
|
3815
|
-
diffSnapshots: diffSnapshots((0,
|
|
3816
|
-
listSnapshots: listSnapshots((0,
|
|
3817
|
-
toDSL: toDSL((0,
|
|
3818
|
-
getEvent: getEvent((0,
|
|
3819
|
-
getCommand: getCommand((0,
|
|
3820
|
-
getQuery: getQuery((0,
|
|
3821
|
-
getService: getService((0,
|
|
3822
|
-
getServices: getServices((0,
|
|
3823
|
-
getDomain: getDomain((0,
|
|
3824
|
-
getChannel: getChannel((0,
|
|
3825
|
-
getChannels: getChannels((0,
|
|
3826
|
-
getContainer: getDataStore((0,
|
|
3827
|
-
getTeam: getTeam((0,
|
|
3828
|
-
getUser: getUser((0,
|
|
4262
|
+
createSnapshot: createSnapshot((0, import_node_path23.join)(path8)),
|
|
4263
|
+
diffSnapshots: diffSnapshots((0, import_node_path23.join)(path8)),
|
|
4264
|
+
listSnapshots: listSnapshots((0, import_node_path23.join)(path8)),
|
|
4265
|
+
toDSL: toDSL((0, import_node_path23.join)(path8), {
|
|
4266
|
+
getEvent: getEvent((0, import_node_path23.join)(path8)),
|
|
4267
|
+
getCommand: getCommand((0, import_node_path23.join)(path8)),
|
|
4268
|
+
getQuery: getQuery((0, import_node_path23.join)(path8)),
|
|
4269
|
+
getService: getService((0, import_node_path23.join)(path8)),
|
|
4270
|
+
getServices: getServices((0, import_node_path23.join)(path8)),
|
|
4271
|
+
getDomain: getDomain((0, import_node_path23.join)(path8, "domains")),
|
|
4272
|
+
getChannel: getChannel((0, import_node_path23.join)(path8)),
|
|
4273
|
+
getChannels: getChannels((0, import_node_path23.join)(path8)),
|
|
4274
|
+
getContainer: getDataStore((0, import_node_path23.join)(path8)),
|
|
4275
|
+
getTeam: getTeam((0, import_node_path23.join)(path8, "teams")),
|
|
4276
|
+
getUser: getUser((0, import_node_path23.join)(path8, "users"))
|
|
3829
4277
|
})
|
|
3830
4278
|
};
|
|
3831
4279
|
};
|
|
4280
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
4281
|
+
0 && (module.exports = {
|
|
4282
|
+
FlowBuilder
|
|
4283
|
+
});
|
|
3832
4284
|
//# sourceMappingURL=index.js.map
|