@kontent-ai/migration-toolkit 2.1.1 → 2.2.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/dist/es2022/core/helpers/workflow-helper.d.ts +10 -0
- package/dist/es2022/core/helpers/workflow-helper.js +71 -3
- package/dist/es2022/core/helpers/workflow-helper.js.map +1 -1
- package/dist/es2022/core/models/migration.schema.d.ts +68 -68
- package/dist/es2022/core/utils/global.utils.d.ts +2 -0
- package/dist/es2022/core/utils/global.utils.js +43 -10
- package/dist/es2022/core/utils/global.utils.js.map +1 -1
- package/dist/es2022/core/utils/management-client-utils.js +1 -0
- package/dist/es2022/core/utils/management-client-utils.js.map +1 -1
- package/dist/es2022/core/utils/run.utils.js.map +1 -1
- package/dist/es2022/import/importers/language-variant-importer.js +2 -1
- package/dist/es2022/import/importers/language-variant-importer.js.map +1 -1
- package/dist/es2022/import/importers/workflow-importer.d.ts +5 -1
- package/dist/es2022/import/importers/workflow-importer.js +17 -2
- package/dist/es2022/import/importers/workflow-importer.js.map +1 -1
- package/dist/es2022/metadata.js +2 -2
- package/dist/es2022/toolkit/export.js +3 -2
- package/dist/es2022/toolkit/export.js.map +1 -1
- package/dist/es2022/toolkit/file.js +4 -2
- package/dist/es2022/toolkit/file.js.map +1 -1
- package/dist/es2022/toolkit/import.js +2 -1
- package/dist/es2022/toolkit/import.js.map +1 -1
- package/dist/es2022/toolkit/migrate.js +3 -2
- package/dist/es2022/toolkit/migrate.js.map +1 -1
- package/dist/es2022/translation/transforms/import-transforms.js +1 -1
- package/dist/es2022/translation/transforms/import-transforms.js.map +1 -1
- package/lib/core/helpers/workflow-helper.ts +106 -8
- package/lib/core/utils/global.utils.ts +46 -10
- package/lib/core/utils/management-client-utils.ts +1 -0
- package/lib/core/utils/run.utils.ts +1 -1
- package/lib/import/importers/language-variant-importer.ts +2 -1
- package/lib/import/importers/workflow-importer.ts +37 -5
- package/lib/metadata.ts +2 -2
- package/lib/toolkit/export.ts +3 -2
- package/lib/toolkit/file.ts +4 -2
- package/lib/toolkit/import.ts +2 -1
- package/lib/toolkit/migrate.ts +4 -3
- package/lib/translation/transforms/import-transforms.ts +1 -1
- package/package.json +18 -16
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { WorkflowModels } from '@kontent-ai/management-sdk';
|
|
2
|
+
interface TransitionTo {
|
|
3
|
+
readonly codename: string;
|
|
4
|
+
readonly id: string;
|
|
5
|
+
}
|
|
2
6
|
export type WorkflowStep = {
|
|
3
7
|
readonly codename: string;
|
|
4
8
|
readonly id: string;
|
|
9
|
+
readonly transitionsTo: readonly TransitionTo[];
|
|
10
|
+
};
|
|
11
|
+
export type ShortestPathResult = {
|
|
12
|
+
readonly stepCodename: string;
|
|
5
13
|
};
|
|
6
14
|
type WorkflowMatcher = {
|
|
7
15
|
readonly match: (workflow: Readonly<WorkflowModels.Workflow>, index: number) => boolean;
|
|
@@ -21,6 +29,7 @@ export declare function workflowHelper(workflows: readonly Readonly<WorkflowMode
|
|
|
21
29
|
step: WorkflowStep;
|
|
22
30
|
workflow: Readonly<WorkflowModels.Workflow>;
|
|
23
31
|
};
|
|
32
|
+
getWorkflowStepById: (workflow: Readonly<WorkflowModels.Workflow>, stepId: string) => WorkflowStep;
|
|
24
33
|
getWorkflowStep: (workflow: Readonly<WorkflowModels.Workflow>, stepMatcher: StepMatcher) => WorkflowStep;
|
|
25
34
|
getWorkflowAndStep: (data: {
|
|
26
35
|
readonly workflowMatcher: WorkflowMatcher;
|
|
@@ -34,5 +43,6 @@ export declare function workflowHelper(workflows: readonly Readonly<WorkflowMode
|
|
|
34
43
|
isArchivedStepByCodename: (stepCodename: string) => boolean;
|
|
35
44
|
isScheduledStepByCodename: (stepCodename: string) => boolean;
|
|
36
45
|
isPublishedStepById: (stepId: string) => boolean;
|
|
46
|
+
findShortestPathBetweenSteps: (workflow: WorkflowModels.Workflow, startStep: WorkflowStep, endStep: WorkflowStep) => ReadonlyArray<ShortestPathResult>;
|
|
37
47
|
};
|
|
38
48
|
export {};
|
|
@@ -1,8 +1,45 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { findRequired } from '../utils/array.utils.js';
|
|
3
3
|
export function workflowHelper(workflows) {
|
|
4
|
+
const mapContractToWorkflowSteps = (workflow, stepsContract) => {
|
|
5
|
+
const allStepsContracts = [...workflow.steps, workflow.archivedStep, workflow.publishedStep, workflow.scheduledStep];
|
|
6
|
+
return stepsContract.map((m) => {
|
|
7
|
+
return {
|
|
8
|
+
codename: m.codename,
|
|
9
|
+
id: m.id,
|
|
10
|
+
transitionsTo: m.transitions_to.map((transitionTo) => {
|
|
11
|
+
const transitionStep = allStepsContracts.find((step) => step.id === transitionTo.step.id);
|
|
12
|
+
if (!transitionStep) {
|
|
13
|
+
throw Error(`Could not find transition step with id '${transitionTo.step.id}' in workflow '${workflow.codename}'`);
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
codename: transitionStep.codename,
|
|
17
|
+
id: transitionStep.id
|
|
18
|
+
};
|
|
19
|
+
})
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
};
|
|
4
23
|
const getWorkflowStep = (workflow, stepMatcher) => {
|
|
5
|
-
|
|
24
|
+
const workflowSteps = [
|
|
25
|
+
...mapContractToWorkflowSteps(workflow, workflow.steps),
|
|
26
|
+
{
|
|
27
|
+
codename: workflow.archivedStep.codename,
|
|
28
|
+
id: workflow.archivedStep.id,
|
|
29
|
+
transitionsTo: []
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
codename: workflow.publishedStep.codename,
|
|
33
|
+
id: workflow.publishedStep.id,
|
|
34
|
+
transitionsTo: []
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
codename: workflow.scheduledStep.codename,
|
|
38
|
+
id: workflow.scheduledStep.id,
|
|
39
|
+
transitionsTo: []
|
|
40
|
+
}
|
|
41
|
+
];
|
|
42
|
+
return findRequired(workflowSteps, stepMatcher.match, stepMatcher.errorMessage);
|
|
6
43
|
};
|
|
7
44
|
const getWorkflow = (workflowMatcher) => {
|
|
8
45
|
return findRequired(workflows, workflowMatcher.match, workflowMatcher.errorMessage);
|
|
@@ -20,13 +57,24 @@ export function workflowHelper(workflows) {
|
|
|
20
57
|
return getWorkflowStep(workflow, {
|
|
21
58
|
errorMessage: [
|
|
22
59
|
`Workflow step with codename '${chalk.red(stepCodename)}' does not exist in target project`,
|
|
23
|
-
`
|
|
60
|
+
`Steps in workflow '${chalk.yellow(workflow.codename)}' are (${workflow.steps.length}): ${workflow.steps
|
|
24
61
|
.map((m) => chalk.cyan(m.codename))
|
|
25
62
|
.join(', ')}`
|
|
26
63
|
].join(', '),
|
|
27
64
|
match: (step) => step.codename.toLowerCase() === stepCodename.toLowerCase()
|
|
28
65
|
});
|
|
29
66
|
};
|
|
67
|
+
const getWorkflowStepById = (workflow, stepId) => {
|
|
68
|
+
return getWorkflowStep(workflow, {
|
|
69
|
+
errorMessage: [
|
|
70
|
+
`Workflow step with codename '${chalk.red(stepId)}' does not exist in target project`,
|
|
71
|
+
`Steps in workflow '${chalk.yellow(workflow.codename)}' are (${workflow.steps.length}): ${workflow.steps
|
|
72
|
+
.map((m) => chalk.cyan(m.id))
|
|
73
|
+
.join(', ')}`
|
|
74
|
+
].join(', '),
|
|
75
|
+
match: (step) => step.id.toLowerCase() === stepId.toLowerCase()
|
|
76
|
+
});
|
|
77
|
+
};
|
|
30
78
|
const getWorkflowAndStep = (data) => {
|
|
31
79
|
const workflow = getWorkflow(data.workflowMatcher);
|
|
32
80
|
return {
|
|
@@ -41,6 +89,24 @@ export function workflowHelper(workflows) {
|
|
|
41
89
|
step: getWorkflowStepByCodename(workflow, data.stepCodename)
|
|
42
90
|
};
|
|
43
91
|
};
|
|
92
|
+
const findShortestPathBetweenSteps = (workflow, startStep, endStep) => {
|
|
93
|
+
let deque = [{ parent: null, step: startStep }];
|
|
94
|
+
const getResult = (node) => node.parent === null ? [] : [...getResult(node.parent), { stepCodename: node.step.codename }];
|
|
95
|
+
while (deque.length !== 0) {
|
|
96
|
+
const node = deque.shift();
|
|
97
|
+
if (node.step.codename === endStep.codename) {
|
|
98
|
+
return getResult(node);
|
|
99
|
+
}
|
|
100
|
+
const newNodes = node.step.transitionsTo
|
|
101
|
+
.filter((s) => deque.find((n) => n.step.codename === s.codename) === undefined)
|
|
102
|
+
.map((t) => ({
|
|
103
|
+
parent: node,
|
|
104
|
+
step: getWorkflowStepByCodename(workflow, t.codename)
|
|
105
|
+
}));
|
|
106
|
+
deque = deque.concat(newNodes);
|
|
107
|
+
}
|
|
108
|
+
throw new Error(`Could not find the path from step (codename: ${startStep.codename}) to step (codename: ${endStep.codename}) in workflow (codename: ${workflow.codename})`);
|
|
109
|
+
};
|
|
44
110
|
const isPublishedStepByCodename = (stepCodename) => {
|
|
45
111
|
return workflows.find((workflow) => workflow.publishedStep.codename === stepCodename) ? true : false;
|
|
46
112
|
};
|
|
@@ -57,13 +123,15 @@ export function workflowHelper(workflows) {
|
|
|
57
123
|
getWorkflowByCodename,
|
|
58
124
|
getWorkflowStepByCodename,
|
|
59
125
|
getWorkflowAndStepByCodenames,
|
|
126
|
+
getWorkflowStepById,
|
|
60
127
|
getWorkflowStep,
|
|
61
128
|
getWorkflowAndStep,
|
|
62
129
|
getWorkflow,
|
|
63
130
|
isPublishedStepByCodename,
|
|
64
131
|
isArchivedStepByCodename,
|
|
65
132
|
isScheduledStepByCodename,
|
|
66
|
-
isPublishedStepById
|
|
133
|
+
isPublishedStepById,
|
|
134
|
+
findShortestPathBetweenSteps
|
|
67
135
|
};
|
|
68
136
|
}
|
|
69
137
|
//# sourceMappingURL=workflow-helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-helper.js","sourceRoot":"","sources":["../../../../lib/core/helpers/workflow-helper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;
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,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACzG,CAAC,CAAC;IAEF,MAAM,mBAAmB,GAAG,CAAC,MAAc,EAAW,EAAE;QACpD,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAC7F,CAAC,CAAC;IAEF,OAAO;QACH,qBAAqB;QACrB,yBAAyB;QACzB,6BAA6B;QAC7B,mBAAmB;QACnB,eAAe;QACf,kBAAkB;QAClB,WAAW;QACX,yBAAyB;QACzB,wBAAwB;QACxB,yBAAyB;QACzB,mBAAmB;QACnB,4BAA4B;KAC/B,CAAC;AACN,CAAC"}
|
|
@@ -150,7 +150,7 @@ export declare const MigrationElementSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
150
150
|
}>>, "many">>>;
|
|
151
151
|
mode: z.ZodOptional<z.ZodReadonly<z.ZodEnum<["autogenerated", "custom"]>>>;
|
|
152
152
|
}, "strict", z.ZodTypeAny, {
|
|
153
|
-
type: "number" | "
|
|
153
|
+
type: "number" | "asset" | "taxonomy" | "custom" | "text" | "rich_text" | "multiple_choice" | "date_time" | "modular_content" | "url_slug" | "subpages";
|
|
154
154
|
value?: string | number | Readonly<{
|
|
155
155
|
codename: string;
|
|
156
156
|
}>[] | undefined;
|
|
@@ -164,9 +164,9 @@ export declare const MigrationElementSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
164
164
|
};
|
|
165
165
|
elements: Readonly<Elements>;
|
|
166
166
|
}>[] | undefined;
|
|
167
|
-
mode?: "
|
|
167
|
+
mode?: "custom" | "autogenerated" | undefined;
|
|
168
168
|
}, {
|
|
169
|
-
type: "number" | "
|
|
169
|
+
type: "number" | "asset" | "taxonomy" | "custom" | "text" | "rich_text" | "multiple_choice" | "date_time" | "modular_content" | "url_slug" | "subpages";
|
|
170
170
|
value?: string | number | Readonly<{
|
|
171
171
|
codename: string;
|
|
172
172
|
}>[] | undefined;
|
|
@@ -180,7 +180,7 @@ export declare const MigrationElementSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
180
180
|
};
|
|
181
181
|
elements: Readonly<Elements>;
|
|
182
182
|
}>[] | undefined;
|
|
183
|
-
mode?: "
|
|
183
|
+
mode?: "custom" | "autogenerated" | undefined;
|
|
184
184
|
}>>;
|
|
185
185
|
export declare const MigrationItemVersionSchema: z.ZodReadonly<z.ZodObject<{
|
|
186
186
|
workflow_step: z.ZodReadonly<z.ZodObject<{
|
|
@@ -262,11 +262,6 @@ export declare const MigrationItemSystemSchema: z.ZodObject<{
|
|
|
262
262
|
codename: string;
|
|
263
263
|
}>>;
|
|
264
264
|
}, "strict", z.ZodTypeAny, {
|
|
265
|
-
codename: string;
|
|
266
|
-
type: Readonly<{
|
|
267
|
-
codename: string;
|
|
268
|
-
}>;
|
|
269
|
-
name: string;
|
|
270
265
|
language: Readonly<{
|
|
271
266
|
codename: string;
|
|
272
267
|
}>;
|
|
@@ -276,12 +271,12 @@ export declare const MigrationItemSystemSchema: z.ZodObject<{
|
|
|
276
271
|
workflow: Readonly<{
|
|
277
272
|
codename: string;
|
|
278
273
|
}>;
|
|
279
|
-
}, {
|
|
280
274
|
codename: string;
|
|
281
275
|
type: Readonly<{
|
|
282
276
|
codename: string;
|
|
283
277
|
}>;
|
|
284
278
|
name: string;
|
|
279
|
+
}, {
|
|
285
280
|
language: Readonly<{
|
|
286
281
|
codename: string;
|
|
287
282
|
}>;
|
|
@@ -291,6 +286,11 @@ export declare const MigrationItemSystemSchema: z.ZodObject<{
|
|
|
291
286
|
workflow: Readonly<{
|
|
292
287
|
codename: string;
|
|
293
288
|
}>;
|
|
289
|
+
codename: string;
|
|
290
|
+
type: Readonly<{
|
|
291
|
+
codename: string;
|
|
292
|
+
}>;
|
|
293
|
+
name: string;
|
|
294
294
|
}>;
|
|
295
295
|
export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
|
|
296
296
|
system: z.ZodObject<{
|
|
@@ -325,11 +325,6 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
325
325
|
codename: string;
|
|
326
326
|
}>>;
|
|
327
327
|
}, "strict", z.ZodTypeAny, {
|
|
328
|
-
codename: string;
|
|
329
|
-
type: Readonly<{
|
|
330
|
-
codename: string;
|
|
331
|
-
}>;
|
|
332
|
-
name: string;
|
|
333
328
|
language: Readonly<{
|
|
334
329
|
codename: string;
|
|
335
330
|
}>;
|
|
@@ -339,12 +334,12 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
339
334
|
workflow: Readonly<{
|
|
340
335
|
codename: string;
|
|
341
336
|
}>;
|
|
342
|
-
}, {
|
|
343
337
|
codename: string;
|
|
344
338
|
type: Readonly<{
|
|
345
339
|
codename: string;
|
|
346
340
|
}>;
|
|
347
341
|
name: string;
|
|
342
|
+
}, {
|
|
348
343
|
language: Readonly<{
|
|
349
344
|
codename: string;
|
|
350
345
|
}>;
|
|
@@ -354,6 +349,11 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
354
349
|
workflow: Readonly<{
|
|
355
350
|
codename: string;
|
|
356
351
|
}>;
|
|
352
|
+
codename: string;
|
|
353
|
+
type: Readonly<{
|
|
354
|
+
codename: string;
|
|
355
|
+
}>;
|
|
356
|
+
name: string;
|
|
357
357
|
}>;
|
|
358
358
|
versions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
359
359
|
workflow_step: z.ZodReadonly<z.ZodObject<{
|
|
@@ -405,11 +405,6 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
405
405
|
}>>, "many">>;
|
|
406
406
|
}, "strict", z.ZodTypeAny, {
|
|
407
407
|
system: {
|
|
408
|
-
codename: string;
|
|
409
|
-
type: Readonly<{
|
|
410
|
-
codename: string;
|
|
411
|
-
}>;
|
|
412
|
-
name: string;
|
|
413
408
|
language: Readonly<{
|
|
414
409
|
codename: string;
|
|
415
410
|
}>;
|
|
@@ -419,6 +414,11 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
419
414
|
workflow: Readonly<{
|
|
420
415
|
codename: string;
|
|
421
416
|
}>;
|
|
417
|
+
codename: string;
|
|
418
|
+
type: Readonly<{
|
|
419
|
+
codename: string;
|
|
420
|
+
}>;
|
|
421
|
+
name: string;
|
|
422
422
|
};
|
|
423
423
|
versions: readonly Readonly<{
|
|
424
424
|
elements: Readonly<Elements>;
|
|
@@ -434,11 +434,6 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
434
434
|
}>[];
|
|
435
435
|
}, {
|
|
436
436
|
system: {
|
|
437
|
-
codename: string;
|
|
438
|
-
type: Readonly<{
|
|
439
|
-
codename: string;
|
|
440
|
-
}>;
|
|
441
|
-
name: string;
|
|
442
437
|
language: Readonly<{
|
|
443
438
|
codename: string;
|
|
444
439
|
}>;
|
|
@@ -448,6 +443,11 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
448
443
|
workflow: Readonly<{
|
|
449
444
|
codename: string;
|
|
450
445
|
}>;
|
|
446
|
+
codename: string;
|
|
447
|
+
type: Readonly<{
|
|
448
|
+
codename: string;
|
|
449
|
+
}>;
|
|
450
|
+
name: string;
|
|
451
451
|
};
|
|
452
452
|
versions: readonly Readonly<{
|
|
453
453
|
elements: Readonly<Elements>;
|
|
@@ -815,11 +815,6 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
|
|
|
815
815
|
codename: string;
|
|
816
816
|
}>>;
|
|
817
817
|
}, "strict", z.ZodTypeAny, {
|
|
818
|
-
codename: string;
|
|
819
|
-
type: Readonly<{
|
|
820
|
-
codename: string;
|
|
821
|
-
}>;
|
|
822
|
-
name: string;
|
|
823
818
|
language: Readonly<{
|
|
824
819
|
codename: string;
|
|
825
820
|
}>;
|
|
@@ -829,12 +824,12 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
|
|
|
829
824
|
workflow: Readonly<{
|
|
830
825
|
codename: string;
|
|
831
826
|
}>;
|
|
832
|
-
}, {
|
|
833
827
|
codename: string;
|
|
834
828
|
type: Readonly<{
|
|
835
829
|
codename: string;
|
|
836
830
|
}>;
|
|
837
831
|
name: string;
|
|
832
|
+
}, {
|
|
838
833
|
language: Readonly<{
|
|
839
834
|
codename: string;
|
|
840
835
|
}>;
|
|
@@ -844,6 +839,11 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
|
|
|
844
839
|
workflow: Readonly<{
|
|
845
840
|
codename: string;
|
|
846
841
|
}>;
|
|
842
|
+
codename: string;
|
|
843
|
+
type: Readonly<{
|
|
844
|
+
codename: string;
|
|
845
|
+
}>;
|
|
846
|
+
name: string;
|
|
847
847
|
}>;
|
|
848
848
|
versions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
849
849
|
workflow_step: z.ZodReadonly<z.ZodObject<{
|
|
@@ -895,11 +895,6 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
|
|
|
895
895
|
}>>, "many">>;
|
|
896
896
|
}, "strict", z.ZodTypeAny, {
|
|
897
897
|
system: {
|
|
898
|
-
codename: string;
|
|
899
|
-
type: Readonly<{
|
|
900
|
-
codename: string;
|
|
901
|
-
}>;
|
|
902
|
-
name: string;
|
|
903
898
|
language: Readonly<{
|
|
904
899
|
codename: string;
|
|
905
900
|
}>;
|
|
@@ -909,6 +904,11 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
|
|
|
909
904
|
workflow: Readonly<{
|
|
910
905
|
codename: string;
|
|
911
906
|
}>;
|
|
907
|
+
codename: string;
|
|
908
|
+
type: Readonly<{
|
|
909
|
+
codename: string;
|
|
910
|
+
}>;
|
|
911
|
+
name: string;
|
|
912
912
|
};
|
|
913
913
|
versions: readonly Readonly<{
|
|
914
914
|
elements: Readonly<Elements>;
|
|
@@ -924,11 +924,6 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
|
|
|
924
924
|
}>[];
|
|
925
925
|
}, {
|
|
926
926
|
system: {
|
|
927
|
-
codename: string;
|
|
928
|
-
type: Readonly<{
|
|
929
|
-
codename: string;
|
|
930
|
-
}>;
|
|
931
|
-
name: string;
|
|
932
927
|
language: Readonly<{
|
|
933
928
|
codename: string;
|
|
934
929
|
}>;
|
|
@@ -938,6 +933,11 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
|
|
|
938
933
|
workflow: Readonly<{
|
|
939
934
|
codename: string;
|
|
940
935
|
}>;
|
|
936
|
+
codename: string;
|
|
937
|
+
type: Readonly<{
|
|
938
|
+
codename: string;
|
|
939
|
+
}>;
|
|
940
|
+
name: string;
|
|
941
941
|
};
|
|
942
942
|
versions: readonly Readonly<{
|
|
943
943
|
elements: Readonly<Elements>;
|
|
@@ -986,11 +986,6 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
986
986
|
codename: string;
|
|
987
987
|
}>>;
|
|
988
988
|
}, "strict", z.ZodTypeAny, {
|
|
989
|
-
codename: string;
|
|
990
|
-
type: Readonly<{
|
|
991
|
-
codename: string;
|
|
992
|
-
}>;
|
|
993
|
-
name: string;
|
|
994
989
|
language: Readonly<{
|
|
995
990
|
codename: string;
|
|
996
991
|
}>;
|
|
@@ -1000,12 +995,12 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1000
995
|
workflow: Readonly<{
|
|
1001
996
|
codename: string;
|
|
1002
997
|
}>;
|
|
1003
|
-
}, {
|
|
1004
998
|
codename: string;
|
|
1005
999
|
type: Readonly<{
|
|
1006
1000
|
codename: string;
|
|
1007
1001
|
}>;
|
|
1008
1002
|
name: string;
|
|
1003
|
+
}, {
|
|
1009
1004
|
language: Readonly<{
|
|
1010
1005
|
codename: string;
|
|
1011
1006
|
}>;
|
|
@@ -1015,6 +1010,11 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1015
1010
|
workflow: Readonly<{
|
|
1016
1011
|
codename: string;
|
|
1017
1012
|
}>;
|
|
1013
|
+
codename: string;
|
|
1014
|
+
type: Readonly<{
|
|
1015
|
+
codename: string;
|
|
1016
|
+
}>;
|
|
1017
|
+
name: string;
|
|
1018
1018
|
}>;
|
|
1019
1019
|
versions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1020
1020
|
workflow_step: z.ZodReadonly<z.ZodObject<{
|
|
@@ -1066,11 +1066,6 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1066
1066
|
}>>, "many">>;
|
|
1067
1067
|
}, "strict", z.ZodTypeAny, {
|
|
1068
1068
|
system: {
|
|
1069
|
-
codename: string;
|
|
1070
|
-
type: Readonly<{
|
|
1071
|
-
codename: string;
|
|
1072
|
-
}>;
|
|
1073
|
-
name: string;
|
|
1074
1069
|
language: Readonly<{
|
|
1075
1070
|
codename: string;
|
|
1076
1071
|
}>;
|
|
@@ -1080,6 +1075,11 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1080
1075
|
workflow: Readonly<{
|
|
1081
1076
|
codename: string;
|
|
1082
1077
|
}>;
|
|
1078
|
+
codename: string;
|
|
1079
|
+
type: Readonly<{
|
|
1080
|
+
codename: string;
|
|
1081
|
+
}>;
|
|
1082
|
+
name: string;
|
|
1083
1083
|
};
|
|
1084
1084
|
versions: readonly Readonly<{
|
|
1085
1085
|
elements: Readonly<Elements>;
|
|
@@ -1095,11 +1095,6 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1095
1095
|
}>[];
|
|
1096
1096
|
}, {
|
|
1097
1097
|
system: {
|
|
1098
|
-
codename: string;
|
|
1099
|
-
type: Readonly<{
|
|
1100
|
-
codename: string;
|
|
1101
|
-
}>;
|
|
1102
|
-
name: string;
|
|
1103
1098
|
language: Readonly<{
|
|
1104
1099
|
codename: string;
|
|
1105
1100
|
}>;
|
|
@@ -1109,6 +1104,11 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1109
1104
|
workflow: Readonly<{
|
|
1110
1105
|
codename: string;
|
|
1111
1106
|
}>;
|
|
1107
|
+
codename: string;
|
|
1108
|
+
type: Readonly<{
|
|
1109
|
+
codename: string;
|
|
1110
|
+
}>;
|
|
1111
|
+
name: string;
|
|
1112
1112
|
};
|
|
1113
1113
|
versions: readonly Readonly<{
|
|
1114
1114
|
elements: Readonly<Elements>;
|
|
@@ -1201,11 +1201,6 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1201
1201
|
}, "strict", z.ZodTypeAny, {
|
|
1202
1202
|
items: readonly Readonly<{
|
|
1203
1203
|
system: {
|
|
1204
|
-
codename: string;
|
|
1205
|
-
type: Readonly<{
|
|
1206
|
-
codename: string;
|
|
1207
|
-
}>;
|
|
1208
|
-
name: string;
|
|
1209
1204
|
language: Readonly<{
|
|
1210
1205
|
codename: string;
|
|
1211
1206
|
}>;
|
|
@@ -1215,6 +1210,11 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1215
1210
|
workflow: Readonly<{
|
|
1216
1211
|
codename: string;
|
|
1217
1212
|
}>;
|
|
1213
|
+
codename: string;
|
|
1214
|
+
type: Readonly<{
|
|
1215
|
+
codename: string;
|
|
1216
|
+
}>;
|
|
1217
|
+
name: string;
|
|
1218
1218
|
};
|
|
1219
1219
|
versions: readonly Readonly<{
|
|
1220
1220
|
elements: Readonly<Elements>;
|
|
@@ -1250,11 +1250,6 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1250
1250
|
}, {
|
|
1251
1251
|
items: readonly Readonly<{
|
|
1252
1252
|
system: {
|
|
1253
|
-
codename: string;
|
|
1254
|
-
type: Readonly<{
|
|
1255
|
-
codename: string;
|
|
1256
|
-
}>;
|
|
1257
|
-
name: string;
|
|
1258
1253
|
language: Readonly<{
|
|
1259
1254
|
codename: string;
|
|
1260
1255
|
}>;
|
|
@@ -1264,6 +1259,11 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1264
1259
|
workflow: Readonly<{
|
|
1265
1260
|
codename: string;
|
|
1266
1261
|
}>;
|
|
1262
|
+
codename: string;
|
|
1263
|
+
type: Readonly<{
|
|
1264
|
+
codename: string;
|
|
1265
|
+
}>;
|
|
1266
|
+
name: string;
|
|
1267
1267
|
};
|
|
1268
1268
|
versions: readonly Readonly<{
|
|
1269
1269
|
elements: Readonly<Elements>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ITrackingEventData } from '@kontent-ai-consulting/tools-analytics';
|
|
2
2
|
import { EnvContext } from '../models/core.models.js';
|
|
3
|
+
import { Logger } from '../models/log.models.js';
|
|
3
4
|
export type Writeable<T> = {
|
|
4
5
|
-readonly [P in keyof T]: T[P];
|
|
5
6
|
};
|
|
@@ -14,4 +15,5 @@ export declare const defaultZipFilename: string;
|
|
|
14
15
|
export declare function executeWithTrackingAsync<TResult>(data: {
|
|
15
16
|
func: () => Promise<TResult extends void ? void : Readonly<TResult>>;
|
|
16
17
|
event: Readonly<ITrackingEventData>;
|
|
18
|
+
logger?: Logger;
|
|
17
19
|
}): Promise<TResult extends void ? void : Readonly<TResult>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { format } from 'bytes';
|
|
2
1
|
import { getTrackingService } from '@kontent-ai-consulting/tools-analytics';
|
|
3
2
|
import { isBrowser, isNode, isWebWorker } from 'browser-or-node';
|
|
3
|
+
import { format } from 'bytes';
|
|
4
|
+
import { getDefaultLogger } from '../logs/loggers.js';
|
|
5
|
+
import { extractErrorData } from './error.utils.js';
|
|
4
6
|
export const isNotUndefined = (item) => item !== undefined;
|
|
5
7
|
export function formatBytes(bytes) {
|
|
6
8
|
return format(bytes);
|
|
@@ -23,21 +25,52 @@ export function getCurrentEnvironment() {
|
|
|
23
25
|
export const defaultZipFilename = 'data.zip';
|
|
24
26
|
export async function executeWithTrackingAsync(data) {
|
|
25
27
|
const trackingService = getTrackingService();
|
|
26
|
-
const
|
|
28
|
+
const logger = data.logger ?? getDefaultLogger();
|
|
29
|
+
const event = await runTrackingFuncWithErrorHadlingAsync({
|
|
30
|
+
func: async () => {
|
|
31
|
+
return await trackingService.trackEventAsync(data.event);
|
|
32
|
+
},
|
|
33
|
+
logger: logger
|
|
34
|
+
});
|
|
27
35
|
try {
|
|
28
36
|
const result = await data.func();
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
37
|
+
if (event) {
|
|
38
|
+
await runTrackingFuncWithErrorHadlingAsync({
|
|
39
|
+
func: async () => {
|
|
40
|
+
await trackingService.setEventResultAsync({
|
|
41
|
+
eventId: event.eventId,
|
|
42
|
+
result: 'success'
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
logger: logger
|
|
46
|
+
});
|
|
47
|
+
}
|
|
33
48
|
return result;
|
|
34
49
|
}
|
|
35
50
|
catch (error) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
51
|
+
if (event) {
|
|
52
|
+
await runTrackingFuncWithErrorHadlingAsync({
|
|
53
|
+
func: async () => {
|
|
54
|
+
await trackingService.setEventResultAsync({
|
|
55
|
+
eventId: event.eventId,
|
|
56
|
+
result: 'fail'
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
logger: logger
|
|
60
|
+
});
|
|
61
|
+
}
|
|
40
62
|
throw error;
|
|
41
63
|
}
|
|
42
64
|
}
|
|
65
|
+
async function runTrackingFuncWithErrorHadlingAsync(data) {
|
|
66
|
+
try {
|
|
67
|
+
return await data.func();
|
|
68
|
+
}
|
|
69
|
+
catch (trackingError) {
|
|
70
|
+
data.logger.log({
|
|
71
|
+
message: `Failed to track event. ${extractErrorData(trackingError).message}`,
|
|
72
|
+
type: 'warning'
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
43
76
|
//# sourceMappingURL=global.utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.utils.js","sourceRoot":"","sources":["../../../../lib/core/utils/global.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"global.utils.js","sourceRoot":"","sources":["../../../../lib/core/utils/global.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAIpD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAI,IAAmB,EAAa,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC;AAExF,MAAM,UAAU,WAAW,CAAC,KAAa;IACrC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EAAU;IACjC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAkC;IAC1D,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC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AE,KAAK,CAAC,OAAO;wBACtB,MAAM,EAAE,MAAM;qBACjB,CAAC,CAAC;gBACP,CAAC;gBACD,MAAM,EAAE,MAAM;aACjB,CAAC,CAAC;QACP,CAAC;QAED,MAAM,KAAK,CAAC;IAChB,CAAC;AACL,CAAC;AAED,KAAK,UAAU,oCAAoC,CAAI,IAAgD;IACnG,IAAI,CAAC;QACD,OAAO,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;IAC7B,CAAC;IAAC,OAAO,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;YACZ,OAAO,EAAE,0BAA0B,gBAAgB,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE;YAC5E,IAAI,EAAE,SAAS;SAClB,CAAC,CAAC;IACP,CAAC;AACL,CAAC"}
|
|
@@ -11,6 +11,7 @@ export function getMigrationManagementClient(config) {
|
|
|
11
11
|
retryStrategy: config.retryStrategy ?? defaultRetryStrategy,
|
|
12
12
|
httpService: defaultHttpService,
|
|
13
13
|
apiKey: config.apiKey,
|
|
14
|
+
baseUrl: config.baseUrl,
|
|
14
15
|
headers: [
|
|
15
16
|
{
|
|
16
17
|
header: coreConfig.kontentTrackingHeaderName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"management-client-utils.js","sourceRoot":"","sources":["../../../../lib/core/utils/management-client-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAUH,sBAAsB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAS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AAC;AACN,CAAC"}
|
|
1
|
+
{"version":3,"file":"management-client-utils.js","sourceRoot":"","sources":["../../../../lib/core/utils/management-client-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAUH,sBAAsB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AASrD,MAAM,UAAU,4BAA4B,CAAC,MAA8B;IACvE,OAAO,sBAAsB,CAAC;QAC1B,aAAa,EAAE,MAAM,CAAC,aAAa;QACnC,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,oBAAoB;QAC3D,WAAW,EAAE,kBAAkB;QAC/B,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,OAAO,EAAE;YACL;gBACI,MAAM,EAAE,UAAU,CAAC,yBAAyB;gBAC5C,KAAK,EAAE,UAAU,CAAC,0BAA0B;aAC/C;SACJ;KACJ,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,MAAkC,EAAE,MAAc;IACpF,MAAM,mBAAmB,GAAG,KAAK,IAA4D,EAAE;QAC3F,OAAO,CAAC,MAAM,MAAM,CAAC,sBAAsB,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;IAC5E,CAAC,CAAC;IAEF,MAAM,oBAAoB,GAAG,KAAK,EAAE,UAA0B,EAAoD,EAAE;QAChH,OAAO,MAAM,mBAAmB,CAAC;YAC7B,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,MAAM;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F,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,oBAAoB;SAC7B,CAAC,CAAC;QAEH,OAAO;YACH,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE;gBAChC,MAAM,UAAU,GAAyB;oBACrC,mBAAmB,EAAE,WAAW,CAAC,QAAQ;oBACzC,aAAa,EAAE,WAAW,CAAC,EAAE;oBAC7B,QAAQ,EAAE,sBAAsB,CAAC,WAAW,EAAE,mBAAmB,CAAC;iBACrE,CAAC;gBAEF,OAAO,UAAU,CAAC;YACtB,CAAC,CAAC;SACL,CAAC;IACN,CAAC,CAAC;IAEF,OAAO;QACH,sBAAsB;QACtB,oBAAoB;QACpB,oBAAoB;QACpB,qBAAqB;QACrB,6BAA6B;QAC7B,mBAAmB;QACnB,uBAAuB;KAC1B,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.utils.js","sourceRoot":"","sources":["../../../../lib/core/utils/run.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"run.utils.js","sourceRoot":"","sources":["../../../../lib/core/utils/run.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAInC,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAU,IAOlD;IACG,MAAM,OAAO,GAAe,KAAK,CAAC,IAAI,CAAC;SAClC,UAAU,EAAc;SACxB,IAAI,CACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,MAAM,EAChC,CAAC,IAAI,EAAE,EAAE;QACL,OAAO;YACH,OAAO,EAAE,6BAA6B,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;YAChE,IAAI,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACN,CAAC,CACJ;SACA,IAA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