@useparagon/cli 0.0.1-canary.39 → 0.0.1-canary.4
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/apis/api.types.d.ts +8 -71
- package/dist/apis/auth.api.js +7 -5
- package/dist/apis/auth.api.js.map +1 -1
- package/dist/apis/base.api.d.ts +0 -3
- package/dist/apis/base.api.js +52 -51
- package/dist/apis/base.api.js.map +1 -1
- package/dist/apis/event.api.d.ts +2 -0
- package/dist/apis/event.api.js +10 -0
- package/dist/apis/event.api.js.map +1 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/apis/index.js.map +1 -1
- package/dist/apis/integration.api.d.ts +3 -3
- package/dist/apis/integration.api.js +10 -18
- package/dist/apis/integration.api.js.map +1 -1
- package/dist/apis/project.api.d.ts +1 -1
- package/dist/apis/project.api.js +17 -40
- package/dist/apis/project.api.js.map +1 -1
- package/dist/apis/workflow.api.d.ts +2 -0
- package/dist/apis/workflow.api.js +10 -0
- package/dist/apis/workflow.api.js.map +1 -0
- package/dist/codegen/codegen.types.d.ts +4 -12
- package/dist/codegen/codegen.utils.d.ts +1 -2
- package/dist/codegen/codegen.utils.js +28 -63
- package/dist/codegen/codegen.utils.js.map +1 -1
- package/dist/codegen/codegens/condition.codegen.js +35 -38
- package/dist/codegen/codegens/condition.codegen.js.map +1 -1
- package/dist/codegen/codegens/event.codegen.js +3 -4
- package/dist/codegen/codegens/event.codegen.js.map +1 -1
- package/dist/codegen/codegens/integration.codegen.d.ts +3 -3
- package/dist/codegen/codegens/integration.codegen.js +32 -138
- package/dist/codegen/codegens/integration.codegen.js.map +1 -1
- package/dist/codegen/codegens/source.codegen.d.ts +1 -3
- package/dist/codegen/codegens/source.codegen.js +31 -120
- package/dist/codegen/codegens/source.codegen.js.map +1 -1
- package/dist/codegen/codegens/workflow.codegen.js +111 -253
- package/dist/codegen/codegens/workflow.codegen.js.map +1 -1
- package/dist/commands/auth/login/login.action.js +31 -28
- package/dist/commands/auth/login/login.action.js.map +1 -1
- package/dist/commands/auth/login/login.command.js +4 -5
- package/dist/commands/auth/login/login.command.js.map +1 -1
- package/dist/commands/auth/login/login.utils.js +19 -26
- package/dist/commands/auth/login/login.utils.js.map +1 -1
- package/dist/commands/auth/logout/logout.action.js +5 -3
- package/dist/commands/auth/logout/logout.action.js.map +1 -1
- package/dist/commands/auth/logout/logout.command.js +3 -3
- package/dist/commands/auth/logout/logout.command.js.map +1 -1
- package/dist/commands/auth/me/me.action.js +6 -10
- package/dist/commands/auth/me/me.action.js.map +1 -1
- package/dist/commands/auth/me/me.command.js +3 -3
- package/dist/commands/auth/me/me.command.js.map +1 -1
- package/dist/commands/build/build.action.js +27 -27
- package/dist/commands/build/build.action.js.map +1 -1
- package/dist/commands/build/build.command.js +5 -9
- package/dist/commands/build/build.command.js.map +1 -1
- package/dist/commands/build/build.types.d.ts +0 -1
- package/dist/commands/build/build.utils.d.ts +1 -1
- package/dist/commands/build/build.utils.js +9 -11
- package/dist/commands/build/build.utils.js.map +1 -1
- package/dist/commands/command.loader.js +8 -10
- package/dist/commands/command.loader.js.map +1 -1
- package/dist/commands/init/init.action.d.ts +1 -1
- package/dist/commands/init/init.action.js +68 -93
- package/dist/commands/init/init.action.js.map +1 -1
- package/dist/commands/init/init.command.js +8 -14
- package/dist/commands/init/init.command.js.map +1 -1
- package/dist/commands/init/init.constants.js +23 -0
- package/dist/commands/init/init.constants.js.map +1 -0
- package/dist/commands/init/init.types.d.ts +0 -1
- package/dist/commands/init/init.utils.d.ts +11 -0
- package/dist/commands/init/init.utils.js +50 -0
- package/dist/commands/init/init.utils.js.map +1 -0
- package/dist/commands/push/push.action.js +11 -9
- package/dist/commands/push/push.action.js.map +1 -1
- package/dist/commands/push/push.command.js +4 -4
- package/dist/commands/push/push.command.js.map +1 -1
- package/dist/compiler/compiler.types.d.ts +2 -3
- package/dist/compiler/compiler.utils.d.ts +1 -1
- package/dist/compiler/compiler.utils.js +4 -8
- package/dist/compiler/compiler.utils.js.map +1 -1
- package/dist/compiler/compilers/events.compiler.js +28 -24
- package/dist/compiler/compilers/events.compiler.js.map +1 -1
- package/dist/compiler/compilers/integrations.compiler.js +52 -148
- package/dist/compiler/compilers/integrations.compiler.js.map +1 -1
- package/dist/compiler/compilers/persona.compiler.js +11 -4
- package/dist/compiler/compilers/persona.compiler.js.map +1 -1
- package/dist/compiler/compilers/project.compiler.d.ts +0 -1
- package/dist/compiler/compilers/project.compiler.js +23 -49
- package/dist/compiler/compilers/project.compiler.js.map +1 -1
- package/dist/compiler/compilers/workflows.compiler.js +33 -46
- package/dist/compiler/compilers/workflows.compiler.js.map +1 -1
- package/dist/compiler/ts.compiler.d.ts +3 -1
- package/dist/compiler/ts.compiler.js +18 -18
- package/dist/compiler/ts.compiler.js.map +1 -1
- package/dist/config/config.constants.d.ts +0 -1
- package/dist/config/config.constants.js +1 -2
- package/dist/config/config.constants.js.map +1 -1
- package/dist/config/config.types.d.ts +0 -4
- package/dist/config/config.utils.d.ts +3 -4
- package/dist/config/config.utils.js +37 -65
- package/dist/config/config.utils.js.map +1 -1
- package/dist/helpers/constants.d.ts +0 -1
- package/dist/helpers/constants.js +1 -2
- package/dist/helpers/constants.js.map +1 -1
- package/dist/helpers/file.d.ts +1 -3
- package/dist/helpers/file.js +15 -44
- package/dist/helpers/file.js.map +1 -1
- package/dist/helpers/strings.d.ts +0 -1
- package/dist/helpers/strings.js +1 -34
- package/dist/helpers/strings.js.map +1 -1
- package/dist/index.js +0 -10
- package/dist/index.js.map +1 -1
- package/dist/logger/logger.js +1 -5
- package/dist/logger/logger.js.map +1 -1
- package/dist/templates/configurations/typescript/tsconfig.json +2 -3
- package/dist/templates/javascript/src/events/hello-world.js +13 -0
- package/dist/templates/javascript/src/integrations/slack/config.js +11 -0
- package/dist/templates/javascript/src/integrations/slack/workflows/example-workflow.js +30 -0
- package/dist/templates/typescript/src/events/hello-world.ts +21 -0
- package/dist/templates/typescript/src/integrations/slack/config.ts +18 -0
- package/dist/templates/typescript/src/integrations/slack/workflows/example-workflow.ts +30 -0
- package/dist/templates/typescript/tsconfig.json +31 -0
- package/package.json +16 -20
- package/dist/codegen/codegens/intent.codegen.d.ts +0 -5
- package/dist/codegen/codegens/intent.codegen.js +0 -179
- package/dist/codegen/codegens/intent.codegen.js.map +0 -1
- package/dist/commands/install/index.d.ts +0 -1
- package/dist/commands/install/index.js +0 -5
- package/dist/commands/install/index.js.map +0 -1
- package/dist/commands/install/install.action.d.ts +0 -5
- package/dist/commands/install/install.action.js +0 -15
- package/dist/commands/install/install.action.js.map +0 -1
- package/dist/commands/install/install.command.d.ts +0 -8
- package/dist/commands/install/install.command.js +0 -24
- package/dist/commands/install/install.command.js.map +0 -1
- package/dist/commands/install/install.constants.js +0 -68
- package/dist/commands/install/install.constants.js.map +0 -1
- package/dist/commands/install/install.types.d.ts +0 -7
- package/dist/commands/install/install.types.js +0 -3
- package/dist/commands/install/install.types.js.map +0 -1
- package/dist/commands/install/install.utils.d.ts +0 -8
- package/dist/commands/install/install.utils.js +0 -130
- package/dist/commands/install/install.utils.js.map +0 -1
- package/dist/commands/new/index.d.ts +0 -1
- package/dist/commands/new/index.js +0 -5
- package/dist/commands/new/index.js.map +0 -1
- package/dist/commands/new/integration/index.d.ts +0 -1
- package/dist/commands/new/integration/index.js +0 -5
- package/dist/commands/new/integration/index.js.map +0 -1
- package/dist/commands/new/integration/integration.action.d.ts +0 -5
- package/dist/commands/new/integration/integration.action.js +0 -52
- package/dist/commands/new/integration/integration.action.js.map +0 -1
- package/dist/commands/new/integration/integration.command.d.ts +0 -8
- package/dist/commands/new/integration/integration.command.js +0 -26
- package/dist/commands/new/integration/integration.command.js.map +0 -1
- package/dist/commands/new/integration/integration.types.d.ts +0 -1
- package/dist/commands/new/integration/integration.types.js +0 -3
- package/dist/commands/new/integration/integration.types.js.map +0 -1
- package/dist/commands/new/new.command.d.ts +0 -5
- package/dist/commands/new/new.command.js +0 -16
- package/dist/commands/new/new.command.js.map +0 -1
- package/dist/commands/new/new.utils.d.ts +0 -1
- package/dist/commands/new/new.utils.js +0 -18
- package/dist/commands/new/new.utils.js.map +0 -1
- package/dist/commands/new/workflow/index.d.ts +0 -1
- package/dist/commands/new/workflow/index.js +0 -5
- package/dist/commands/new/workflow/index.js.map +0 -1
- package/dist/commands/new/workflow/workflow.action.d.ts +0 -5
- package/dist/commands/new/workflow/workflow.action.js +0 -94
- package/dist/commands/new/workflow/workflow.action.js.map +0 -1
- package/dist/commands/new/workflow/workflow.command.d.ts +0 -8
- package/dist/commands/new/workflow/workflow.command.js +0 -25
- package/dist/commands/new/workflow/workflow.command.js.map +0 -1
- package/dist/commands/new/workflow/workflow.types.d.ts +0 -3
- package/dist/commands/new/workflow/workflow.types.js +0 -3
- package/dist/commands/new/workflow/workflow.types.js.map +0 -1
- package/dist/helpers/sets.d.ts +0 -1
- package/dist/helpers/sets.js +0 -10
- package/dist/helpers/sets.js.map +0 -1
- /package/dist/commands/{install/install.constants.d.ts → init/init.constants.d.ts} +0 -0
|
@@ -5,40 +5,29 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const core_1 = require("@useparagon/core");
|
|
6
6
|
const inputs_1 = require("@useparagon/core/inputs");
|
|
7
7
|
const steps_1 = require("@useparagon/core/steps");
|
|
8
|
-
const request_1 = require("@useparagon/core/steps/library/request");
|
|
9
8
|
const cron_1 = require("@useparagon/core/triggers/cron");
|
|
10
9
|
const utils_1 = require("@useparagon/core/utils");
|
|
11
10
|
const json_1 = require("../../helpers/json");
|
|
12
|
-
const sets_1 = require("../../helpers/sets");
|
|
13
|
-
const strings_1 = require("../../helpers/strings");
|
|
14
11
|
const logger_1 = tslib_1.__importDefault(require("../../logger"));
|
|
15
|
-
const codegen_utils_1 = require("../codegen.utils");
|
|
16
12
|
const source_codegen_1 = require("./source.codegen");
|
|
17
13
|
const workflowToCode = (workflowBuild, dependencies) => {
|
|
18
14
|
const { id: workflowId, name: workflowName, steps } = workflowBuild;
|
|
19
|
-
const {
|
|
15
|
+
const { events, workflowMeta, inputSources, sharedInputs } = dependencies;
|
|
20
16
|
const triggerStep = (0, steps_1.getTriggerStep)(steps);
|
|
21
17
|
if (!triggerStep) {
|
|
22
18
|
logger_1.default.fatal(`Workflow ${workflowName} with no start step id.`);
|
|
23
19
|
}
|
|
24
20
|
const startStepId = triggerStep.id;
|
|
25
21
|
const stepIdToVariableMap = (0, steps_1.mapStepIdToVariableName)(steps);
|
|
26
|
-
const stepIdToStepMap = (0, utils_1.indexBy)('id', steps);
|
|
27
22
|
const stepDependencies = {
|
|
28
23
|
stepIdToVariableMap,
|
|
29
|
-
|
|
24
|
+
events,
|
|
30
25
|
inputs: workflowMeta.inputs,
|
|
31
26
|
sharedInputs,
|
|
32
27
|
inputSources,
|
|
33
|
-
stepIdToStepMap,
|
|
34
|
-
secrets,
|
|
35
|
-
upstreamStepIds: new Set(),
|
|
36
|
-
integration,
|
|
37
28
|
};
|
|
38
|
-
const integratonInterfaceName = (0, utils_1.toPascalCase)(`I ${integration.name}Integration`);
|
|
39
|
-
const isCustomIntegration = integration.name.startsWith('custom');
|
|
40
29
|
const imports = [
|
|
41
|
-
'import { IContext } from "@useparagon/core/execution";',
|
|
30
|
+
'import { IContext , IPermissionContext} from "@useparagon/core/execution";',
|
|
42
31
|
`import { ${[
|
|
43
32
|
'Workflow',
|
|
44
33
|
'CronStep',
|
|
@@ -53,91 +42,88 @@ const workflowToCode = (workflowBuild, dependencies) => {
|
|
|
53
42
|
'UnselectedStep',
|
|
54
43
|
'EndpointStep',
|
|
55
44
|
'IntegrationRequestStep',
|
|
56
|
-
'ICustomIntegration',
|
|
57
45
|
].join(',')} } from "@useparagon/core";`,
|
|
58
46
|
`import { IPersona } from '@useparagon/core/persona';`,
|
|
59
47
|
'import * as Operators from "@useparagon/core/operator";',
|
|
60
48
|
`import { ConditionalInput } from '@useparagon/core/steps/library/conditional';`,
|
|
61
|
-
`import {
|
|
62
|
-
isCustomIntegration
|
|
63
|
-
? `import {
|
|
64
|
-
DefaultInputToResultMap,
|
|
65
|
-
createInputs,
|
|
66
|
-
} from '@useparagon/core/inputs';`
|
|
67
|
-
: `import { createInputs, InputResultMap, ${integratonInterfaceName} } from '@useparagon/types/${integration.name}';`,
|
|
68
|
-
``,
|
|
49
|
+
`import { IIntegration } from '@useparagon/core/integration';`,
|
|
69
50
|
`import personaMeta from '../../../persona.meta';`,
|
|
70
|
-
`import sharedInputs from '../inputs
|
|
51
|
+
`import sharedInputs from '../inputs`,
|
|
52
|
+
`import { createInputs, InputResultMap } from '../types';`,
|
|
71
53
|
];
|
|
72
54
|
const stepCode = getStepCodeParts(startStepId, (0, utils_1.indexBy)('id', steps), stepDependencies);
|
|
73
55
|
const sourceCode = `
|
|
74
56
|
${[...imports, ...stepCode.imports].join('\n')}
|
|
75
57
|
|
|
76
58
|
/**
|
|
77
|
-
*
|
|
59
|
+
* define inputs here which can be used in this workflow only
|
|
78
60
|
*/
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
61
|
+
const inputs = createInputs(${(0, json_1.stringifyObject)((0, inputs_1.mapUserDefinedInputsWithTitle)((0, inputs_1.convertSerializedInputsToUserDefinedInputs)(workflowMeta.inputs, inputSources)))});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* ${workflowName} Workflow impolementation
|
|
65
|
+
*/
|
|
66
|
+
export default class extends Workflow<any, IPersona<typeof personaMeta>, InputResultMap> {
|
|
84
67
|
/**
|
|
85
|
-
*
|
|
68
|
+
* This property is maintained by Paragon. Do not edit this property.
|
|
86
69
|
*/
|
|
87
|
-
|
|
88
|
-
integration: ${isCustomIntegration ? 'ICustomIntegration' : integratonInterfaceName},
|
|
89
|
-
context: IContext<${isCustomIntegration ? 'DefaultInputToResultMap' : 'InputResultMap'}>,
|
|
90
|
-
connectUser: IConnectUser<IPersona<typeof personaMeta>>
|
|
91
|
-
) {
|
|
92
|
-
${stepCode.varDeclarations.join('\n')}
|
|
93
|
-
|
|
94
|
-
${stepCode.stepChains}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Pass all steps used in the workflow to the \`.register()\`
|
|
98
|
-
* function. The keys used in this function must remain stable.
|
|
99
|
-
*/
|
|
100
|
-
return this.register({ ${Object.values(stepIdToVariableMap).join(', ')} });
|
|
101
|
-
}
|
|
70
|
+
readonly id: string = '${workflowId}';
|
|
102
71
|
|
|
103
72
|
/**
|
|
104
|
-
*
|
|
73
|
+
* name shown in workflow editor
|
|
105
74
|
*/
|
|
106
|
-
name: string = ${
|
|
75
|
+
name: string = '${workflowName}';
|
|
107
76
|
|
|
108
77
|
/**
|
|
109
|
-
*
|
|
78
|
+
* description shown in connect portal for workflow
|
|
110
79
|
*/
|
|
111
|
-
description: string = ${
|
|
112
|
-
'Add a user-facing description of this workflow'
|
|
80
|
+
description: string = '${workflowMeta.infoText ||
|
|
81
|
+
'Add a user-facing description of this workflow'}';
|
|
113
82
|
|
|
114
83
|
/**
|
|
115
|
-
*
|
|
116
|
-
* Settings, see ../config.ts.
|
|
117
|
-
* https://docs.useparagon.com/connect-portal/workflow-user-settings
|
|
84
|
+
* inputs used in workflows
|
|
118
85
|
*/
|
|
119
|
-
inputs =
|
|
86
|
+
inputs = inputs;
|
|
120
87
|
|
|
121
88
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
* https://docs.useparagon.com/connect-portal/displaying-workflows#default-to-enabled
|
|
89
|
+
* if set to true , workflow will be automatically be enable
|
|
90
|
+
* after integration connect
|
|
125
91
|
*/
|
|
126
92
|
defaultEnabled: boolean = ${workflowMeta.defaultEnabled || false};
|
|
127
93
|
|
|
128
94
|
/**
|
|
129
|
-
*
|
|
130
|
-
* Connect Portal.
|
|
131
|
-
* https://docs.useparagon.com/connect-portal/displaying-workflows#hide-workflow-from-portal-for-all-users
|
|
95
|
+
* if true , workflow will be hidden from connect portal
|
|
132
96
|
*/
|
|
133
97
|
hidden: boolean = ${workflowMeta.hidden || false};
|
|
134
98
|
|
|
135
99
|
/**
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
100
|
+
* defines the workflow
|
|
101
|
+
* @param integration
|
|
102
|
+
* @param context
|
|
103
|
+
* @param user
|
|
104
|
+
*/
|
|
105
|
+
define(integration: IIntegration, context: IContext<IPersona<typeof personaMeta>,InputResultMap>) {
|
|
106
|
+
/**
|
|
107
|
+
* declare all steps here
|
|
108
|
+
*/
|
|
109
|
+
${stepCode.varDeclarations.join('\n')}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* chain steps correctly here
|
|
113
|
+
*/
|
|
114
|
+
${stepCode.stepChains}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* pass all steps here so that paragon can keep track of changes
|
|
118
|
+
*/
|
|
119
|
+
return this.register({ ${Object.values(stepIdToVariableMap).join(', ')} });
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* define permissions for workflow
|
|
124
|
+
* @param context
|
|
139
125
|
*/
|
|
140
|
-
definePermissions(
|
|
126
|
+
definePermissions(${workflowMeta.permissions ? 'context' : '_context'} : IPermissionContext<IPersona<typeof personaMeta>>): ConditionalInput | undefined {
|
|
141
127
|
return ${workflowMeta.permissions
|
|
142
128
|
? (0, source_codegen_1.convertSourceToCode)({
|
|
143
129
|
type: 'CONDITION',
|
|
@@ -145,11 +131,6 @@ const workflowToCode = (workflowBuild, dependencies) => {
|
|
|
145
131
|
}, stepDependencies)
|
|
146
132
|
: 'undefined'}
|
|
147
133
|
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* This property is maintained by Paragon. Do not edit this property.
|
|
151
|
-
*/
|
|
152
|
-
readonly id: string = '${workflowId}';
|
|
153
134
|
}
|
|
154
135
|
`;
|
|
155
136
|
return sourceCode;
|
|
@@ -158,17 +139,13 @@ exports.workflowToCode = workflowToCode;
|
|
|
158
139
|
const getStepCodeParts = (startStepId, stepMap, dependencies) => {
|
|
159
140
|
const imports = [];
|
|
160
141
|
const varDeclarations = [];
|
|
161
|
-
const { stepIdToVariableMap
|
|
142
|
+
const { stepIdToVariableMap } = dependencies;
|
|
162
143
|
let stepChains = '';
|
|
163
144
|
let currentStep = stepMap[startStepId];
|
|
164
145
|
const variableChains = [];
|
|
165
146
|
while (currentStep != undefined) {
|
|
166
|
-
upstreamStepIds.add(currentStep.id);
|
|
167
147
|
const variableName = stepIdToVariableMap[currentStep.id];
|
|
168
|
-
const stepCode = getStepCodePart(currentStep, stepMap,
|
|
169
|
-
...dependencies,
|
|
170
|
-
upstreamStepIds,
|
|
171
|
-
});
|
|
148
|
+
const stepCode = getStepCodePart(currentStep, stepMap, dependencies);
|
|
172
149
|
imports.push(...stepCode.imports);
|
|
173
150
|
varDeclarations.push(...stepCode.varDeclarations);
|
|
174
151
|
if (stepCode.stepChains.trim()) {
|
|
@@ -204,57 +181,22 @@ const getStepCodeParts = (startStepId, stepMap, dependencies) => {
|
|
|
204
181
|
stepChains,
|
|
205
182
|
};
|
|
206
183
|
};
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
const intents = step.type === core_1.StepType.ACTION
|
|
212
|
-
? integration.dependencies.intents
|
|
213
|
-
: integration.dependencies.triggers;
|
|
214
|
-
const intent = intents.find((intent) => intent.name === step.parameters.intent);
|
|
215
|
-
if (!intent || !intent.inputs) {
|
|
216
|
-
return step;
|
|
217
|
-
}
|
|
218
|
-
const inputs = (0, codegen_utils_1.getInputsForIntent)(intent);
|
|
219
|
-
const inputIds = new Set(Object.keys((0, utils_1.indexBy)('id', inputs)));
|
|
220
|
-
return {
|
|
221
|
-
...step,
|
|
222
|
-
parameters: {
|
|
223
|
-
...step.parameters,
|
|
224
|
-
actionParameters: step.parameters.actionParameters.filter((param) => inputIds.has(param.key)),
|
|
225
|
-
},
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
const getStepCodePart = (step, stepMap, stepDependencies) => {
|
|
229
|
-
const { stepIdToVariableMap, upstreamStepIds } = stepDependencies;
|
|
184
|
+
const getStepCodePart = (step, stepMap, dependencies) => {
|
|
185
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
186
|
+
const { stepIdToVariableMap } = dependencies;
|
|
230
187
|
const varDeclarations = [];
|
|
231
188
|
const imports = [];
|
|
232
189
|
const variableName = stepIdToVariableMap[step.id];
|
|
233
|
-
const dependencies = {
|
|
234
|
-
...stepDependencies,
|
|
235
|
-
currentStepId: step.id,
|
|
236
|
-
upstreamStepIds: new Set(upstreamStepIds),
|
|
237
|
-
};
|
|
238
190
|
let stepChains = '';
|
|
239
191
|
switch (step.type) {
|
|
240
192
|
case core_1.StepType.ACTION:
|
|
241
|
-
const sanitizedStep = sanitizeStep(step, dependencies.integration);
|
|
242
193
|
varDeclarations.push(`
|
|
243
|
-
const ${variableName} = integration.withIntent(${
|
|
244
|
-
? `integration.intents.${sanitizedStep.parameters.intent}`
|
|
245
|
-
: 'undefined'},${(0, source_codegen_1.covertKeyedSourceParamsToCode)(sanitizedStep.parameters.actionParameters, dependencies)},{
|
|
246
|
-
autoRetry: ${Boolean(sanitizedStep.parameters.retryOnFailure)},
|
|
247
|
-
continueWorkflowOnError: ${Boolean(sanitizedStep.parameters.ignoreFailure)},
|
|
248
|
-
description: ${(0, strings_1.sanitizeString)(sanitizedStep.description || '')},
|
|
249
|
-
});
|
|
194
|
+
const ${variableName} = integration.withIntent('${step.parameters.intent}',${(0, source_codegen_1.covertKeyedSourceParamsToCode)(step.parameters.actionParameters, dependencies)});
|
|
250
195
|
`);
|
|
251
196
|
break;
|
|
252
197
|
case core_1.StepType.ACTION_TRIGGER:
|
|
253
|
-
const sanitizedTriggerStep = sanitizeStep(step, dependencies.integration);
|
|
254
198
|
varDeclarations.push(`
|
|
255
|
-
const ${variableName} = integration.withTrigger(${
|
|
256
|
-
? `integration.triggers.${sanitizedTriggerStep.parameters.intent}`
|
|
257
|
-
: 'undefined'},${(0, source_codegen_1.covertKeyedSourceParamsToCode)(sanitizedTriggerStep.parameters.actionParameters, dependencies)});
|
|
199
|
+
const ${variableName} = integration.withTrigger('${step.parameters.intent}',${(0, source_codegen_1.covertKeyedSourceParamsToCode)(step.parameters.actionParameters, dependencies)});
|
|
258
200
|
`);
|
|
259
201
|
break;
|
|
260
202
|
case core_1.StepType.CRON:
|
|
@@ -264,35 +206,17 @@ const getStepCodePart = (step, stepMap, stepDependencies) => {
|
|
|
264
206
|
`);
|
|
265
207
|
break;
|
|
266
208
|
case core_1.StepType.CUSTOM_INTEGRATION_REQUEST:
|
|
267
|
-
const requestBodyType = step.parameters.bodyType
|
|
268
|
-
const paginationOptions = step.parameters.paginationOptions;
|
|
209
|
+
const requestBodyType = (_a = step.parameters.bodyType) !== null && _a !== void 0 ? _a : 'json';
|
|
269
210
|
varDeclarations.push(`
|
|
270
211
|
const ${variableName} = new IntegrationRequestStep({
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
${
|
|
279
|
-
? ''
|
|
280
|
-
: `body: ${['xml', 'raw'].includes(requestBodyType)
|
|
281
|
-
? (0, source_codegen_1.convertSourceToCode)(step.parameters.rawBody || source_codegen_1.EMPTY_TOKENIZED_SOURCE, dependencies)
|
|
282
|
-
: (0, source_codegen_1.covertKeyedSourceParamsToCode)(step.parameters.body, dependencies)},
|
|
283
|
-
bodyType: "${requestBodyType}"
|
|
284
|
-
,`}
|
|
285
|
-
${paginationOptions?.enabled
|
|
286
|
-
? `pagination: (currentStep)=>({
|
|
287
|
-
pageToken: ${(0, source_codegen_1.convertSourceToCode)(paginationOptions.pageToken || source_codegen_1.EMPTY_TOKENIZED_SOURCE, dependencies)},
|
|
288
|
-
outputPath: ${(0, source_codegen_1.convertSourceToCode)(paginationOptions.output || source_codegen_1.EMPTY_TOKENIZED_SOURCE, dependencies)},
|
|
289
|
-
stopCondition: ${(0, source_codegen_1.convertSourceToCode)({
|
|
290
|
-
type: 'CONDITION',
|
|
291
|
-
condition: paginationOptions.stopCondition || source_codegen_1.EMPTY_OR_CONDITIONS,
|
|
292
|
-
}, dependencies)},
|
|
293
|
-
})
|
|
294
|
-
`
|
|
295
|
-
: ''}
|
|
212
|
+
path: ${(0, source_codegen_1.convertSourceToCode)(step.parameters.url, dependencies)},
|
|
213
|
+
params:${(0, source_codegen_1.covertKeyedSourceParamsToCode)(step.parameters.params, dependencies)},
|
|
214
|
+
headers:${(0, source_codegen_1.covertKeyedSourceParamsToCode)(step.parameters.params, dependencies)},
|
|
215
|
+
body:${['xml', 'raw'].includes(requestBodyType)
|
|
216
|
+
? (0, source_codegen_1.convertSourceToCode)(step.parameters.rawBody || source_codegen_1.EMPTY_TOKENIZED_SOURCE, dependencies)
|
|
217
|
+
: (0, source_codegen_1.covertKeyedSourceParamsToCode)(step.parameters.body, dependencies)},
|
|
218
|
+
description:"${step.description || ''}",
|
|
219
|
+
${((_b = step.parameters.paginations) === null || _b === void 0 ? void 0 : _b.enabled) ? `` : ''}
|
|
296
220
|
});
|
|
297
221
|
`);
|
|
298
222
|
break;
|
|
@@ -301,32 +225,26 @@ const getStepCodePart = (step, stepMap, stepDependencies) => {
|
|
|
301
225
|
const ${variableName} = new DelayStep({
|
|
302
226
|
unit: '${step.parameters.unit}',
|
|
303
227
|
value: ${(0, source_codegen_1.convertSourceToCode)(step.parameters.value, dependencies)},
|
|
304
|
-
description:
|
|
228
|
+
description:"${step.description || ''}"
|
|
305
229
|
});
|
|
306
230
|
`);
|
|
307
231
|
break;
|
|
308
232
|
case core_1.StepType.ENDPOINT:
|
|
309
233
|
varDeclarations.push(`
|
|
310
234
|
const ${variableName} = new EndpointStep({
|
|
311
|
-
allowArbitraryPayload: ${step.parameters.allowArbitraryPayload},
|
|
235
|
+
allowArbitraryPayload : ${step.parameters.allowArbitraryPayload},
|
|
312
236
|
${step.parameters.allowArbitraryPayload
|
|
313
237
|
? ''
|
|
314
238
|
: `
|
|
315
|
-
paramValidations
|
|
316
|
-
headerValidations
|
|
317
|
-
bodyValidations
|
|
239
|
+
paramValidations:${(0, json_1.stringifyObject)(step.parameters.paramValidations)},
|
|
240
|
+
headerValidations:${(0, json_1.stringifyObject)(step.parameters.headerValidations)},
|
|
241
|
+
bodyValidations:${(0, json_1.stringifyObject)(step.parameters.bodyValidations)}
|
|
318
242
|
`}
|
|
319
243
|
});
|
|
320
244
|
`);
|
|
321
245
|
break;
|
|
322
246
|
case core_1.StepType.EVENT:
|
|
323
|
-
|
|
324
|
-
varDeclarations.push(`
|
|
325
|
-
const ${variableName} = new EventStep();
|
|
326
|
-
`);
|
|
327
|
-
break;
|
|
328
|
-
}
|
|
329
|
-
const eventName = dependencies.eventIdToNameMap[step.parameters.eventId];
|
|
247
|
+
const eventName = dependencies.events[step.parameters.eventId].name;
|
|
330
248
|
imports.push(...[`import event from '../../../events/${eventName}';`]);
|
|
331
249
|
varDeclarations.push(`
|
|
332
250
|
const ${variableName} = new EventStep(event);
|
|
@@ -336,86 +254,69 @@ const getStepCodePart = (step, stepMap, stepDependencies) => {
|
|
|
336
254
|
const paramsCode = (0, source_codegen_1.covertKeyedSourceParamsToCode)(step.parameters.parameters, dependencies);
|
|
337
255
|
varDeclarations.push(`
|
|
338
256
|
const ${variableName} = new FunctionStep({
|
|
339
|
-
autoRetry: ${Boolean(step.parameters.retryOnFailure)},
|
|
340
|
-
description: ${(0, strings_1.sanitizeString)(step.description || '')},
|
|
341
257
|
code: ${step.parameters.code},
|
|
342
258
|
parameters: ${paramsCode},
|
|
259
|
+
description:"${step.description || ''}",
|
|
343
260
|
});
|
|
344
261
|
`);
|
|
345
262
|
break;
|
|
346
263
|
case core_1.StepType.IFELSE:
|
|
347
|
-
const
|
|
348
|
-
|
|
349
|
-
varDeclarations.push(`
|
|
350
|
-
const ${variableName} = new ConditionalStep({
|
|
351
|
-
if: ${!ifCondition
|
|
352
|
-
? 'undefined'
|
|
353
|
-
: (0, source_codegen_1.convertSourceToCode)({
|
|
354
|
-
type: 'CONDITION',
|
|
355
|
-
condition: ifCondition,
|
|
356
|
-
}, dependencies)},
|
|
357
|
-
description: ${(0, strings_1.sanitizeString)(step.description || '')},
|
|
358
|
-
});
|
|
359
|
-
`);
|
|
360
|
-
const ifStepId = step.parameters.choices.find((choice) => choice.label === 'Yes')?.next;
|
|
361
|
-
const elseStepId = step.parameters.choices.find((choice) => choice.label === 'No')?.next;
|
|
264
|
+
const ifStepId = (_c = step.parameters.choices.find((choice) => choice.label === 'Yes')) === null || _c === void 0 ? void 0 : _c.next;
|
|
265
|
+
const elseStepId = (_d = step.parameters.choices.find((choice) => choice.label === 'No')) === null || _d === void 0 ? void 0 : _d.next;
|
|
362
266
|
if (ifStepId) {
|
|
363
|
-
const
|
|
364
|
-
const { imports: nextIterateImports, varDeclarations: nextIterateVarDeclartions, stepChains: nextIterationStepChains, } = getStepCodeParts(ifStepId, stepMap, {
|
|
365
|
-
...dependencies,
|
|
366
|
-
upstreamStepIds: upstreamStepIdsForIfPath,
|
|
367
|
-
});
|
|
368
|
-
(0, sets_1.addManyToSet)(dependencies.upstreamStepIds, upstreamStepIdsForIfPath);
|
|
267
|
+
const { imports: nextIterateImports, varDeclarations: nextIterateVarDeclartions, stepChains: nextIterationStepChains, } = getStepCodeParts(ifStepId, stepMap, dependencies);
|
|
369
268
|
imports.push(...nextIterateImports);
|
|
370
269
|
varDeclarations.push(...nextIterateVarDeclartions);
|
|
371
270
|
stepChains += `whenTrue(${nextIterationStepChains})`;
|
|
372
271
|
}
|
|
373
272
|
if (elseStepId) {
|
|
374
|
-
const
|
|
375
|
-
const { imports: nextIterateImports, varDeclarations: nextIterateVarDeclartions, stepChains: nextIterationStepChains, } = getStepCodeParts(elseStepId, stepMap, {
|
|
376
|
-
...dependencies,
|
|
377
|
-
upstreamStepIds: upstreamStepIdsForElsePath,
|
|
378
|
-
});
|
|
379
|
-
(0, sets_1.addManyToSet)(dependencies.upstreamStepIds, upstreamStepIdsForElsePath);
|
|
273
|
+
const { imports: nextIterateImports, varDeclarations: nextIterateVarDeclartions, stepChains: nextIterationStepChains, } = getStepCodeParts(elseStepId, stepMap, dependencies);
|
|
380
274
|
imports.push(...nextIterateImports);
|
|
381
275
|
varDeclarations.push(...nextIterateVarDeclartions);
|
|
382
276
|
stepChains += ifStepId
|
|
383
277
|
? `.whenFalse(${nextIterationStepChains})`
|
|
384
278
|
: `whenFalse(${nextIterationStepChains})`;
|
|
385
279
|
}
|
|
280
|
+
const ifCondition = (_e = step.parameters.choices.find((choice) => choice.label === 'Yes')) === null || _e === void 0 ? void 0 : _e.conditionWrapper;
|
|
281
|
+
varDeclarations.push(`
|
|
282
|
+
const ${variableName} = new ConditionalStep({
|
|
283
|
+
if : ${!ifCondition
|
|
284
|
+
? 'undefined'
|
|
285
|
+
: (0, source_codegen_1.convertSourceToCode)({
|
|
286
|
+
type: 'CONDITION',
|
|
287
|
+
condition: ifCondition,
|
|
288
|
+
}, dependencies)},
|
|
289
|
+
description:"${step.description || ''}",
|
|
290
|
+
});
|
|
291
|
+
`);
|
|
386
292
|
break;
|
|
387
293
|
case core_1.StepType.INTEGRATION_ENABLED:
|
|
388
294
|
varDeclarations.push(`
|
|
389
|
-
const ${variableName} = new IntegrationEnabledStep();
|
|
295
|
+
const ${variableName} = new IntegrationEnabledStep({});
|
|
390
296
|
`);
|
|
391
297
|
break;
|
|
392
298
|
case core_1.StepType.MAP:
|
|
393
299
|
let nextStepId = step.parameters.nextToIterate;
|
|
394
|
-
varDeclarations.push(`
|
|
395
|
-
const ${variableName} = new FanOutStep({
|
|
396
|
-
description: ${(0, strings_1.sanitizeString)(step.description || '')},
|
|
397
|
-
iterator: ${(0, source_codegen_1.convertSourceToCode)(step.parameters.iterator, dependencies)},
|
|
398
|
-
});
|
|
399
|
-
`);
|
|
400
300
|
if (nextStepId) {
|
|
401
|
-
const
|
|
402
|
-
const { imports: nextIterateImports, varDeclarations: nextIterateVarDeclartions, stepChains: nextIterationStepChains, } = getStepCodeParts(nextStepId, stepMap, {
|
|
403
|
-
...dependencies,
|
|
404
|
-
upstreamStepIds: upstreamStepIdsForMapPath,
|
|
405
|
-
});
|
|
406
|
-
(0, sets_1.addManyToSet)(dependencies.upstreamStepIds, upstreamStepIdsForMapPath);
|
|
301
|
+
const { imports: nextIterateImports, varDeclarations: nextIterateVarDeclartions, stepChains: nextIterationStepChains, } = getStepCodeParts(nextStepId, stepMap, dependencies);
|
|
407
302
|
imports.push(...nextIterateImports);
|
|
408
303
|
varDeclarations.push(...nextIterateVarDeclartions);
|
|
409
304
|
stepChains = `branch(${nextIterationStepChains})`;
|
|
410
305
|
}
|
|
306
|
+
varDeclarations.push(`
|
|
307
|
+
const ${variableName} = new FanOutStep({
|
|
308
|
+
description:"${step.description || ''}",
|
|
309
|
+
iterator : ${(0, source_codegen_1.convertSourceToCode)(step.parameters.iterator, dependencies)},
|
|
310
|
+
});
|
|
311
|
+
`);
|
|
411
312
|
break;
|
|
412
313
|
case core_1.StepType.RESPONSE:
|
|
413
|
-
const responseType = step.parameters.responseType
|
|
314
|
+
const responseType = (_f = step.parameters.responseType) !== null && _f !== void 0 ? _f : 'JSON';
|
|
414
315
|
varDeclarations.push(`
|
|
415
316
|
const ${variableName} = new ResponseStep({
|
|
416
|
-
description:
|
|
417
|
-
statusCode
|
|
418
|
-
responseType:
|
|
317
|
+
description:"${step.description || ''}",
|
|
318
|
+
statusCode:${step.parameters.statusCode},
|
|
319
|
+
responseType:"${responseType}",
|
|
419
320
|
body: ${responseType === 'FILE'
|
|
420
321
|
? step.parameters.bodyFile
|
|
421
322
|
? (0, source_codegen_1.convertSourceToCode)(step.parameters.bodyFile || source_codegen_1.EMPTY_TOKENIZED_SOURCE, dependencies)
|
|
@@ -425,62 +326,20 @@ const getStepCodePart = (step, stepMap, stepDependencies) => {
|
|
|
425
326
|
`);
|
|
426
327
|
break;
|
|
427
328
|
case core_1.StepType.REQUEST:
|
|
428
|
-
const bodyType = step.parameters.bodyType
|
|
429
|
-
const requestAuthorization = step.parameters.authorization;
|
|
430
|
-
let authorizationCode = '';
|
|
431
|
-
switch (requestAuthorization?.type) {
|
|
432
|
-
case request_1.RequestAuthorizationType.BASIC:
|
|
433
|
-
authorizationCode = `authorization: {
|
|
434
|
-
type: "${request_1.RequestAuthorizationType.BASIC}",
|
|
435
|
-
username: ${(0, source_codegen_1.convertSourceToCode)(requestAuthorization.username, dependencies)},
|
|
436
|
-
password: ${(0, source_codegen_1.convertSourceToCode)(requestAuthorization.password, dependencies)}
|
|
437
|
-
},`;
|
|
438
|
-
break;
|
|
439
|
-
case request_1.RequestAuthorizationType.BEARER_TOKEN:
|
|
440
|
-
authorizationCode = `authorization: {
|
|
441
|
-
type: "${request_1.RequestAuthorizationType.BEARER_TOKEN}",
|
|
442
|
-
token: ${(0, source_codegen_1.convertSourceToCode)(requestAuthorization.token, dependencies)}
|
|
443
|
-
},`;
|
|
444
|
-
break;
|
|
445
|
-
case request_1.RequestAuthorizationType.CLIENT_CREDENTIAL:
|
|
446
|
-
authorizationCode = `authorization: {
|
|
447
|
-
type: "${request_1.RequestAuthorizationType.CLIENT_CREDENTIAL}",
|
|
448
|
-
tokenUrl: ${(0, source_codegen_1.convertSourceToCode)(requestAuthorization.oauthUrl, dependencies)},
|
|
449
|
-
clientId: ${(0, source_codegen_1.convertSourceToCode)(requestAuthorization.clientId, dependencies)},
|
|
450
|
-
clientSecret: ${(0, source_codegen_1.convertSourceToCode)(requestAuthorization.clientSecret, dependencies)},
|
|
451
|
-
requestType: "${requestAuthorization.requestType}",
|
|
452
|
-
audience: ${(0, source_codegen_1.convertSourceToCode)(requestAuthorization.audience, dependencies)},
|
|
453
|
-
scopes: ${(0, source_codegen_1.convertSourceToCode)(requestAuthorization.scopes, dependencies)}
|
|
454
|
-
},`;
|
|
455
|
-
break;
|
|
456
|
-
case request_1.RequestAuthorizationType.QUERY_PARAMS:
|
|
457
|
-
authorizationCode = `authorization:{
|
|
458
|
-
type: "${request_1.RequestAuthorizationType.QUERY_PARAMS}"
|
|
459
|
-
},`;
|
|
460
|
-
break;
|
|
461
|
-
case request_1.RequestAuthorizationType.AUTH_HEADER:
|
|
462
|
-
authorizationCode = `authorization:{
|
|
463
|
-
type: "${request_1.RequestAuthorizationType.AUTH_HEADER}"
|
|
464
|
-
},`;
|
|
465
|
-
break;
|
|
466
|
-
default:
|
|
467
|
-
break;
|
|
468
|
-
}
|
|
329
|
+
const bodyType = (_g = step.parameters.bodyType) !== null && _g !== void 0 ? _g : 'json';
|
|
469
330
|
varDeclarations.push(`
|
|
470
331
|
const ${variableName} = new RequestStep({
|
|
471
|
-
|
|
472
|
-
continueWorkflowOnError: ${Boolean(step.parameters.ignoreFailure)},
|
|
473
|
-
description: ${(0, strings_1.sanitizeString)(step.description || '')},
|
|
332
|
+
description:"${step.description || ''}",
|
|
474
333
|
url: ${(0, source_codegen_1.convertSourceToCode)(step.parameters.url, dependencies)},
|
|
475
|
-
method:
|
|
476
|
-
params
|
|
477
|
-
headers
|
|
478
|
-
${
|
|
334
|
+
method:"${step.parameters.httpMethod}",
|
|
335
|
+
params:${(0, source_codegen_1.covertKeyedSourceParamsToCode)(step.parameters.params, dependencies)},
|
|
336
|
+
headers:${(0, source_codegen_1.covertKeyedSourceParamsToCode)(step.parameters.params, dependencies)},
|
|
337
|
+
${step.parameters.httpMethod === 'GET'
|
|
479
338
|
? ''
|
|
480
|
-
: `
|
|
339
|
+
: `
|
|
340
|
+
body:${['xml', 'raw'].includes(bodyType)
|
|
481
341
|
? (0, source_codegen_1.convertSourceToCode)(step.parameters.rawBody || source_codegen_1.EMPTY_TOKENIZED_SOURCE, dependencies)
|
|
482
|
-
: (0, source_codegen_1.covertKeyedSourceParamsToCode)(step.parameters.body, dependencies)}
|
|
483
|
-
bodyType: "${bodyType}"`}
|
|
342
|
+
: (0, source_codegen_1.covertKeyedSourceParamsToCode)(step.parameters.body, dependencies)}`}
|
|
484
343
|
});
|
|
485
344
|
`);
|
|
486
345
|
break;
|
|
@@ -492,7 +351,6 @@ const getStepCodePart = (step, stepMap, stepDependencies) => {
|
|
|
492
351
|
default:
|
|
493
352
|
logger_1.default.fatal(`Invalid step type "${step['type']}`);
|
|
494
353
|
}
|
|
495
|
-
(0, sets_1.addManyToSet)(upstreamStepIds, dependencies.upstreamStepIds);
|
|
496
354
|
return {
|
|
497
355
|
imports,
|
|
498
356
|
varDeclarations,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.codegen.js","sourceRoot":"","sources":["../../../src/codegen/codegens/workflow.codegen.ts"],"names":[],"mappings":";;;;AAAA,2CAAuE;AACvE,oDAGiC;AAEjC,kDAGgC;AAEhC,oEAGgD;AAChD,yDAAgE;AAChE,kDAA+D;AAO/D,6CAAqD;AACrD,6CAAkD;AAClD,mDAAuD;AACvD,kEAAkC;AAElC,oDAAsD;AACtD,qDAK0B;AAanB,MAAM,cAAc,GAAG,CAC5B,aAA4B,EAC5B,YAAkC,EAC1B,EAAE;IACV,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,aAAa,CAAC;IACpE,MAAM,EACJ,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,OAAO,GACR,GAAG,YAAY,CAAC;IAEjB,MAAM,WAAW,GAAsB,IAAA,sBAAc,EAAC,KAAK,CAAC,CAAC;IAE7D,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,gBAAM,CAAC,KAAK,CAAC,YAAY,YAAY,yBAAyB,CAAC,CAAC;IAClE,CAAC;IAED,MAAM,WAAW,GAAW,WAAW,CAAC,EAAE,CAAC;IAE3C,MAAM,mBAAmB,GACvB,IAAA,+BAAuB,EAAC,KAAK,CAAC,CAAC;IAEjC,MAAM,eAAe,GAA0B,IAAA,eAAO,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEpE,MAAM,gBAAgB,GAAqB;QACzC,mBAAmB;QACnB,gBAAgB;QAChB,MAAM,EAA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