@useparagon/core 0.0.1-canary.38 → 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/event/event.interface.d.ts +1 -1
- package/dist/execution/context.constants.d.ts +0 -4
- package/dist/execution/context.constants.js +1 -6
- package/dist/execution/context.constants.js.map +1 -1
- package/dist/execution/context.d.ts +22 -3
- package/dist/execution/context.interface.d.ts +18 -6
- package/dist/execution/context.interface.js +1 -4
- package/dist/execution/context.interface.js.map +1 -1
- package/dist/execution/context.js +170 -4
- package/dist/execution/context.js.map +1 -1
- package/dist/execution/context.utils.d.ts +0 -1
- package/dist/execution/context.utils.js +25 -68
- package/dist/execution/context.utils.js.map +1 -1
- package/dist/execution/index.d.ts +0 -2
- package/dist/execution/index.js +0 -2
- package/dist/execution/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/inputs/input.constants.d.ts +1 -1
- package/dist/inputs/input.constants.js +10 -5
- package/dist/inputs/input.constants.js.map +1 -1
- package/dist/inputs/input.interface.d.ts +7 -28
- package/dist/inputs/input.interface.js +7 -17
- package/dist/inputs/input.interface.js.map +1 -1
- package/dist/inputs/input.utils.d.ts +1 -3
- package/dist/inputs/input.utils.js +25 -25
- package/dist/inputs/input.utils.js.map +1 -1
- package/dist/integration/custom.integration.d.ts +1 -5
- package/dist/integration/custom.integration.interface.d.ts +0 -43
- package/dist/integration/custom.integration.js +1 -18
- package/dist/integration/custom.integration.js.map +1 -1
- package/dist/integration/index.d.ts +0 -4
- package/dist/integration/index.js +0 -4
- package/dist/integration/index.js.map +1 -1
- package/dist/integration/integration.d.ts +2 -2
- package/dist/integration/integration.interface.d.ts +1 -6
- package/dist/integration/integration.js +3 -7
- package/dist/integration/integration.js.map +1 -1
- package/dist/operator/operators/BooleanFalse.d.ts +1 -1
- package/dist/operator/operators/BooleanFalse.js.map +1 -1
- package/dist/operator/operators/BooleanTrue.d.ts +1 -1
- package/dist/operator/operators/BooleanTrue.js.map +1 -1
- package/dist/operator/operators/DateTimeAfter.d.ts +1 -1
- package/dist/operator/operators/DateTimeAfter.js.map +1 -1
- package/dist/operator/operators/DateTimeBefore.d.ts +1 -1
- package/dist/operator/operators/DateTimeBefore.js.map +1 -1
- package/dist/operator/operators/DateTimeEquals.d.ts +1 -1
- package/dist/operator/operators/DateTimeEquals.js.map +1 -1
- package/dist/operator/operators/NumberDoesNotEqual.d.ts +1 -1
- package/dist/operator/operators/NumberDoesNotEqual.js.map +1 -1
- package/dist/operator/operators/NumberEquals.d.ts +1 -1
- package/dist/operator/operators/NumberEquals.js.map +1 -1
- package/dist/operator/operators/NumberGreaterThan.d.ts +1 -1
- package/dist/operator/operators/NumberGreaterThan.js.map +1 -1
- package/dist/operator/operators/NumberGreaterThanOrEqualTo.d.ts +1 -1
- package/dist/operator/operators/NumberGreaterThanOrEqualTo.js.map +1 -1
- package/dist/operator/operators/NumberLessThan.d.ts +1 -1
- package/dist/operator/operators/NumberLessThan.js.map +1 -1
- package/dist/operator/operators/NumberLessThanOrEqualTo.d.ts +1 -1
- package/dist/operator/operators/NumberLessThanOrEqualTo.js.map +1 -1
- package/dist/operator/operators/StringContains.d.ts +1 -1
- package/dist/operator/operators/StringContains.js.map +1 -1
- package/dist/operator/operators/StringDoesNotContain.d.ts +1 -1
- package/dist/operator/operators/StringDoesNotContain.js.map +1 -1
- package/dist/operator/operators/StringDoesNotEndWith.d.ts +1 -1
- package/dist/operator/operators/StringDoesNotEndWith.js.map +1 -1
- package/dist/operator/operators/StringDoesNotExactlyMatch.d.ts +1 -1
- package/dist/operator/operators/StringDoesNotExactlyMatch.js.map +1 -1
- package/dist/operator/operators/StringDoesNotStartWith.d.ts +1 -1
- package/dist/operator/operators/StringDoesNotStartWith.js.map +1 -1
- package/dist/operator/operators/StringEndsWith.d.ts +1 -1
- package/dist/operator/operators/StringEndsWith.js.map +1 -1
- package/dist/operator/operators/StringExactlyMatches.d.ts +1 -1
- package/dist/operator/operators/StringExactlyMatches.js.map +1 -1
- package/dist/operator/operators/StringGreaterThan.d.ts +1 -1
- package/dist/operator/operators/StringGreaterThan.js.map +1 -1
- package/dist/operator/operators/StringIsIn.d.ts +1 -1
- package/dist/operator/operators/StringIsIn.js.map +1 -1
- package/dist/operator/operators/StringIsNotIn.d.ts +1 -1
- package/dist/operator/operators/StringIsNotIn.js.map +1 -1
- package/dist/operator/operators/StringLessThan.d.ts +1 -1
- package/dist/operator/operators/StringLessThan.js.map +1 -1
- package/dist/operator/operators/StringStartsWith.d.ts +1 -1
- package/dist/operator/operators/StringStartsWith.js.map +1 -1
- package/dist/resolvers/resolver.utils.d.ts +2 -3
- package/dist/resolvers/resolver.utils.js +22 -54
- package/dist/resolvers/resolver.utils.js.map +1 -1
- package/dist/resolvers/resolvers.interface.d.ts +5 -12
- package/dist/resolvers/resolvers.interface.js.map +1 -1
- package/dist/secret/index.d.ts +0 -1
- package/dist/secret/index.js +0 -1
- package/dist/secret/index.js.map +1 -1
- package/dist/secret/secret.interface.d.ts +0 -6
- package/dist/stateMachine/stateMachine.utils.js +21 -16
- package/dist/stateMachine/stateMachine.utils.js.map +1 -1
- package/dist/steps/library/action/action.interface.d.ts +5 -3
- package/dist/steps/library/action/action.step.d.ts +2 -2
- package/dist/steps/library/action/action.step.js +6 -16
- package/dist/steps/library/action/action.step.js.map +1 -1
- package/dist/steps/library/conditional/conditional.interface.d.ts +2 -5
- package/dist/steps/library/conditional/conditional.step.d.ts +5 -6
- package/dist/steps/library/conditional/conditional.step.js +8 -13
- package/dist/steps/library/conditional/conditional.step.js.map +1 -1
- package/dist/steps/library/delay/delay.step.js +3 -6
- package/dist/steps/library/delay/delay.step.js.map +1 -1
- package/dist/steps/library/fanout/fanout.interface.d.ts +2 -2
- package/dist/steps/library/fanout/fanout.step.d.ts +3 -4
- package/dist/steps/library/fanout/fanout.step.js +4 -10
- package/dist/steps/library/fanout/fanout.step.js.map +1 -1
- package/dist/steps/library/function/function.interface.d.ts +6 -8
- package/dist/steps/library/function/function.step.d.ts +3 -4
- package/dist/steps/library/function/function.step.js +3 -13
- package/dist/steps/library/function/function.step.js.map +1 -1
- package/dist/steps/library/integrationRequest/integrationRequest.interface.d.ts +13 -28
- package/dist/steps/library/integrationRequest/integrationRequest.step.d.ts +3 -4
- package/dist/steps/library/integrationRequest/integrationRequest.step.js +14 -47
- package/dist/steps/library/integrationRequest/integrationRequest.step.js.map +1 -1
- package/dist/steps/library/request/request.interface.d.ts +12 -53
- package/dist/steps/library/request/request.interface.js +1 -7
- package/dist/steps/library/request/request.interface.js.map +1 -1
- package/dist/steps/library/request/request.step.d.ts +3 -4
- package/dist/steps/library/request/request.step.js +11 -43
- package/dist/steps/library/request/request.step.js.map +1 -1
- package/dist/steps/library/response/response.interface.d.ts +1 -6
- package/dist/steps/library/response/response.interface.js.map +1 -1
- package/dist/steps/library/response/response.step.d.ts +3 -4
- package/dist/steps/library/response/response.step.js +2 -8
- package/dist/steps/library/response/response.step.js.map +1 -1
- package/dist/steps/step.interface-base.d.ts +0 -15
- package/dist/steps/step.interface.d.ts +0 -3
- package/dist/steps/step.interface.js.map +1 -1
- package/dist/steps/step.js +9 -10
- package/dist/steps/step.js.map +1 -1
- package/dist/steps/step.utils.js +10 -27
- package/dist/steps/step.utils.js.map +1 -1
- package/dist/triggers/actionTrigger/actionTrigger.step.d.ts +2 -3
- package/dist/triggers/actionTrigger/actionTrigger.step.js +3 -14
- package/dist/triggers/actionTrigger/actionTrigger.step.js.map +1 -1
- package/dist/triggers/cron/cron.step.js +2 -7
- package/dist/triggers/cron/cron.step.js.map +1 -1
- package/dist/triggers/cron/cron.utils.js +2 -2
- package/dist/triggers/cron/cron.utils.js.map +1 -1
- package/dist/triggers/endpoint/endpoint.interface.d.ts +1 -9
- package/dist/triggers/endpoint/endpoint.step.d.ts +3 -4
- package/dist/triggers/endpoint/endpoint.step.js +4 -9
- package/dist/triggers/endpoint/endpoint.step.js.map +1 -1
- package/dist/triggers/event/event.interface.d.ts +2 -1
- package/dist/triggers/event/event.step.d.ts +3 -3
- package/dist/triggers/event/event.step.js +6 -10
- package/dist/triggers/event/event.step.js.map +1 -1
- package/dist/triggers/integrationEnabled/integrationEnabled.step.d.ts +1 -1
- package/dist/triggers/integrationEnabled/integrationEnabled.step.js +2 -3
- package/dist/triggers/integrationEnabled/integrationEnabled.step.js.map +1 -1
- package/dist/triggers/trigger.js +4 -1
- package/dist/triggers/trigger.js.map +1 -1
- package/dist/triggers/unselected/unselected.step.js +3 -5
- package/dist/triggers/unselected/unselected.step.js.map +1 -1
- package/dist/user/user.d.ts +1 -7
- package/dist/user/user.interface.d.ts +1 -8
- package/dist/user/user.js +0 -14
- package/dist/user/user.js.map +1 -1
- package/dist/utils/utils.d.ts +4 -9
- package/dist/utils/utils.js +11 -45
- package/dist/utils/utils.js.map +1 -1
- package/dist/workflow/workflow.d.ts +6 -8
- package/dist/workflow/workflow.interface.d.ts +2 -5
- package/dist/workflow/workflow.interface.js.map +1 -1
- package/dist/workflow/workflow.js +29 -40
- package/dist/workflow/workflow.js.map +1 -1
- package/package.json +19 -61
- package/dist/integration/integration.utils.d.ts +0 -5
- package/dist/integration/integration.utils.js +0 -30
- package/dist/integration/integration.utils.js.map +0 -1
- package/dist/secret/secret.utils.d.ts +0 -2
- package/dist/secret/secret.utils.js +0 -15
- package/dist/secret/secret.utils.js.map +0 -1
- package/dist/steps/library/function/libraries.d.ts +0 -98
- package/dist/steps/library/function/libraries.js +0 -3
- package/dist/steps/library/function/libraries.js.map +0 -1
- package/dist/types/generics.d.ts +0 -5
- package/dist/types/generics.js +0 -3
- package/dist/types/generics.js.map +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -5
- package/dist/types/index.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SidebarInputType = exports.DataSourceType = void 0;
|
|
4
4
|
var DataSourceType;
|
|
5
5
|
(function (DataSourceType) {
|
|
6
6
|
DataSourceType["DYNAMIC"] = "DYNAMIC_DATA_SOURCE";
|
|
@@ -10,25 +10,15 @@ var DataSourceType;
|
|
|
10
10
|
})(DataSourceType || (exports.DataSourceType = DataSourceType = {}));
|
|
11
11
|
var SidebarInputType;
|
|
12
12
|
(function (SidebarInputType) {
|
|
13
|
-
SidebarInputType["
|
|
14
|
-
SidebarInputType["Code"] = "CODE";
|
|
15
|
-
SidebarInputType["ComboInput"] = "COMBO_INPUT";
|
|
16
|
-
SidebarInputType["Conditional"] = "CONDITIONAL";
|
|
13
|
+
SidebarInputType["Enum"] = "ENUM";
|
|
17
14
|
SidebarInputType["DynamicEnum"] = "DYNAMIC_ENUM";
|
|
18
|
-
SidebarInputType["
|
|
19
|
-
SidebarInputType["
|
|
15
|
+
SidebarInputType["ValueText"] = "TEXT_NO_VARS";
|
|
16
|
+
SidebarInputType["BooleanInput"] = "BOOLEAN_INPUT";
|
|
17
|
+
SidebarInputType["Number"] = "NUMBER";
|
|
20
18
|
SidebarInputType["Email"] = "EMAIL";
|
|
21
|
-
SidebarInputType["
|
|
19
|
+
SidebarInputType["URL"] = "URL";
|
|
22
20
|
SidebarInputType["FieldMapper"] = "FIELD_MAPPER";
|
|
23
|
-
SidebarInputType["
|
|
21
|
+
SidebarInputType["ComboInput"] = "COMBO_INPUT";
|
|
24
22
|
SidebarInputType["Password"] = "PASSWORD";
|
|
25
|
-
SidebarInputType["Switch"] = "SWITCH";
|
|
26
|
-
SidebarInputType["Text"] = "TEXT";
|
|
27
|
-
SidebarInputType["TextArea"] = "TEXTAREA";
|
|
28
|
-
SidebarInputType["URL"] = "URL";
|
|
29
|
-
SidebarInputType["ValueText"] = "TEXT_NO_VARS";
|
|
30
|
-
SidebarInputType["ValueTextArea"] = "TEXTAREA_NO_VARS";
|
|
31
23
|
})(SidebarInputType || (exports.SidebarInputType = SidebarInputType = {}));
|
|
32
|
-
const createInputs = (inputs) => inputs;
|
|
33
|
-
exports.createInputs = createInputs;
|
|
34
24
|
//# sourceMappingURL=input.interface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.interface.js","sourceRoot":"","sources":["../../src/inputs/input.interface.ts"],"names":[],"mappings":";;;AAIA,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,iDAA+B,CAAA;IAC/B,yDAAuC,CAAA;IACvC,2DAAyC,CAAA;IACzC,yDAAuC,CAAA;AACzC,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AA8ED,IAAY,
|
|
1
|
+
{"version":3,"file":"input.interface.js","sourceRoot":"","sources":["../../src/inputs/input.interface.ts"],"names":[],"mappings":";;;AAIA,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,iDAA+B,CAAA;IAC/B,yDAAuC,CAAA;IACvC,2DAAyC,CAAA;IACzC,yDAAuC,CAAA;AACzC,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AA8ED,IAAY,gBAWX;AAXD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,gDAA4B,CAAA;IAC5B,8CAA0B,CAAA;IAC1B,kDAA8B,CAAA;IAC9B,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,+BAAW,CAAA;IACX,gDAA4B,CAAA;IAC5B,8CAA0B,CAAA;IAC1B,yCAAqB,CAAA;AACvB,CAAC,EAXW,gBAAgB,gCAAhB,gBAAgB,QAW3B"}
|
|
@@ -4,9 +4,7 @@ import { InputSource, SerializedInput, UserDefinedInput } from './input.interfac
|
|
|
4
4
|
export declare const getInputTypeForUI: (input: InputSource) => string;
|
|
5
5
|
export declare const getSourceKey: (source: InputSource) => string;
|
|
6
6
|
export declare const mapSourcesWithTitle: (inputSources: InputSource[]) => Record<string, InputSource>;
|
|
7
|
-
export declare const mapUserDefinedInputsWithTitle: <
|
|
8
|
-
title: string;
|
|
9
|
-
}>(inputs: T[]) => Record<string, T>;
|
|
7
|
+
export declare const mapUserDefinedInputsWithTitle: (inputs: UserDefinedInput<string>[]) => Record<string, UserDefinedInput<string>>;
|
|
10
8
|
export declare const convertSerializedInputsToUserDefinedInputs: (inputs: SerializedInput[], inputSources: InputSource[]) => UserDefinedInput<string>[];
|
|
11
9
|
export declare const convertUserDefinedInputsToSerializedInputs: (inputs: UserDefinedInput<string>[], inputSources: InputSource[]) => SerializedInput[];
|
|
12
10
|
export declare const fixDataSourceReferencesInInputSource: (source: InputConnectCredentialSource, dependencies?: StepDependencies) => InputConnectCredentialSource;
|
|
@@ -5,7 +5,10 @@ const utils_1 = require("../utils/utils");
|
|
|
5
5
|
const input_constants_1 = require("./input.constants");
|
|
6
6
|
const input_interface_1 = require("./input.interface");
|
|
7
7
|
const getInputTypeForUI = (input) => {
|
|
8
|
-
return
|
|
8
|
+
return input.title
|
|
9
|
+
.replace(/([a-z\d])([A-Z])/g, '$1_$2')
|
|
10
|
+
.toLowerCase()
|
|
11
|
+
.replace(/\s/g, '_');
|
|
9
12
|
};
|
|
10
13
|
exports.getInputTypeForUI = getInputTypeForUI;
|
|
11
14
|
const getSourceKey = (source) => {
|
|
@@ -19,7 +22,7 @@ exports.mapSourcesWithTitle = mapSourcesWithTitle;
|
|
|
19
22
|
const mapUserDefinedInputsWithTitle = (inputs) => {
|
|
20
23
|
const titleSet = new Set();
|
|
21
24
|
return (0, utils_1.indexBy)((input) => {
|
|
22
|
-
let title =
|
|
25
|
+
let title = input.title;
|
|
23
26
|
let count = 1;
|
|
24
27
|
while (titleSet.has(title)) {
|
|
25
28
|
title = `${input.title}_${count}`;
|
|
@@ -31,22 +34,21 @@ const mapUserDefinedInputsWithTitle = (inputs) => {
|
|
|
31
34
|
};
|
|
32
35
|
exports.mapUserDefinedInputsWithTitle = mapUserDefinedInputsWithTitle;
|
|
33
36
|
const convertSerializedInputsToUserDefinedInputs = (inputs, inputSources) => {
|
|
34
|
-
const
|
|
37
|
+
const sourceTypeToInputNameMap = (0, utils_1.mapValueToKeyInRecord)(input_constants_1.INPUT_NAME_TO_INPUT_TYPE_MAP);
|
|
35
38
|
const sourcesByKey = (0, utils_1.indexBy)(exports.getSourceKey, inputSources);
|
|
36
|
-
return inputs
|
|
37
|
-
.
|
|
38
|
-
if (basicTypeToInputNameMap[input.type]) {
|
|
39
|
+
return inputs.map((input) => {
|
|
40
|
+
if (input_constants_1.BASIC_INPUT_NAMES.includes(input.type)) {
|
|
39
41
|
return {
|
|
40
42
|
id: input.id,
|
|
41
43
|
title: input.title,
|
|
42
44
|
tooltip: input.tooltip || '',
|
|
43
45
|
required: input.required,
|
|
44
|
-
type:
|
|
46
|
+
type: sourceTypeToInputNameMap[input.type],
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
const source = sourcesByKey[input['sourceType']];
|
|
48
50
|
if (!source) {
|
|
49
|
-
|
|
51
|
+
throw new Error(`No source found for inputId (${input.id}).`);
|
|
50
52
|
}
|
|
51
53
|
return {
|
|
52
54
|
id: input.id,
|
|
@@ -55,8 +57,7 @@ const convertSerializedInputsToUserDefinedInputs = (inputs, inputSources) => {
|
|
|
55
57
|
required: input.required,
|
|
56
58
|
type: (0, exports.getInputTypeForUI)(source),
|
|
57
59
|
};
|
|
58
|
-
})
|
|
59
|
-
.filter((value) => Boolean(value));
|
|
60
|
+
});
|
|
60
61
|
};
|
|
61
62
|
exports.convertSerializedInputsToUserDefinedInputs = convertSerializedInputsToUserDefinedInputs;
|
|
62
63
|
const convertUserDefinedInputsToSerializedInputs = (inputs, inputSources) => {
|
|
@@ -67,13 +68,13 @@ const convertUserDefinedInputsToSerializedInputs = (inputs, inputSources) => {
|
|
|
67
68
|
throw new Error(`Input id must contain unique id key. Found duplicate input id (${input.id})`);
|
|
68
69
|
}
|
|
69
70
|
uniqueIdSet.add(input.id);
|
|
70
|
-
if (input_constants_1.
|
|
71
|
+
if (input_constants_1.BASIC_INPUT_NAMES.includes(input.type)) {
|
|
71
72
|
return {
|
|
72
73
|
id: input.id,
|
|
73
74
|
title: input.title,
|
|
74
75
|
tooltip: input.tooltip,
|
|
75
76
|
required: input.required,
|
|
76
|
-
type: input_constants_1.
|
|
77
|
+
type: input_constants_1.INPUT_NAME_TO_INPUT_TYPE_MAP[input.type],
|
|
77
78
|
};
|
|
78
79
|
}
|
|
79
80
|
const source = titleToSourceMap[input.type];
|
|
@@ -93,24 +94,23 @@ const convertUserDefinedInputsToSerializedInputs = (inputs, inputSources) => {
|
|
|
93
94
|
};
|
|
94
95
|
exports.convertUserDefinedInputsToSerializedInputs = convertUserDefinedInputsToSerializedInputs;
|
|
95
96
|
const fixDataSourceReferencesInInputSource = (source, dependencies) => {
|
|
96
|
-
|
|
97
|
+
var _a, _b, _c;
|
|
98
|
+
if (!dependencies) {
|
|
97
99
|
return source;
|
|
98
100
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
source.fieldType = 'WORKFLOW_SETTING';
|
|
107
|
-
input = dependencies.inputs.find((input) => input.id === source.inputId);
|
|
101
|
+
const inputs = source.fieldType
|
|
102
|
+
? dependencies.inputs
|
|
103
|
+
: dependencies.sharedInputs;
|
|
104
|
+
if (!inputs) {
|
|
105
|
+
throw new Error('Inputs are used but not present in project.');
|
|
108
106
|
}
|
|
107
|
+
const input = (_a = inputs.find((input) => input.id === source.inputId)) === null || _a === void 0 ? void 0 : _a[1];
|
|
109
108
|
if (!input) {
|
|
110
109
|
throw new Error(`Input with id ${source.inputId} not present in defined inputs.`);
|
|
111
110
|
}
|
|
112
111
|
const getSource = (input) => {
|
|
113
|
-
|
|
112
|
+
var _a;
|
|
113
|
+
const inputSource = ((_a = dependencies.inputSources) !== null && _a !== void 0 ? _a : []).find((source) => (0, exports.getSourceKey)(source) === input['sourceType']);
|
|
114
114
|
if (!inputSource) {
|
|
115
115
|
throw new Error(`No input source found for input with id ${input.id}`);
|
|
116
116
|
}
|
|
@@ -119,7 +119,7 @@ const fixDataSourceReferencesInInputSource = (source, dependencies) => {
|
|
|
119
119
|
switch (input.type) {
|
|
120
120
|
case input_interface_1.SidebarInputType.ComboInput: {
|
|
121
121
|
const inputSource = getSource(input);
|
|
122
|
-
const userDefinedPath = source.path
|
|
122
|
+
const userDefinedPath = (_b = source.path) === null || _b === void 0 ? void 0 : _b[0];
|
|
123
123
|
const paths = [];
|
|
124
124
|
if (userDefinedPath &&
|
|
125
125
|
userDefinedPath === (0, exports.getInputTypeForUI)(inputSource.mainInputSource)) {
|
|
@@ -138,7 +138,7 @@ const fixDataSourceReferencesInInputSource = (source, dependencies) => {
|
|
|
138
138
|
}
|
|
139
139
|
case input_interface_1.SidebarInputType.FieldMapper: {
|
|
140
140
|
const inputSource = getSource(input);
|
|
141
|
-
const userDefinedPath = source.path
|
|
141
|
+
const userDefinedPath = (_c = source.path) === null || _c === void 0 ? void 0 : _c[0];
|
|
142
142
|
const paths = [];
|
|
143
143
|
if (userDefinedPath &&
|
|
144
144
|
userDefinedPath === (0, exports.getInputTypeForUI)(inputSource.recordSource)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.utils.js","sourceRoot":"","sources":["../../src/inputs/input.utils.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"input.utils.js","sourceRoot":"","sources":["../../src/inputs/input.utils.ts"],"names":[],"mappings":";;;AAEA,0CAAgE;AAChE,uDAG2B;AAC3B,uDAO2B;AAOpB,MAAM,iBAAiB,GAAG,CAAC,KAAkB,EAAE,EAAE;IACtD,OAAO,KAAK,CAAC,KAAK;SACf,OAAO,CAAC,mBAAmB,EAAE,OAAO,CAAC;SACrC,WAAW,EAAE;SACb,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACzB,CAAC,CAAC;AALW,QAAA,iBAAiB,qBAK5B;AAOK,MAAM,YAAY,GAAG,CAAC,MAAmB,EAAU,EAAE;IAC1D,OAAO,CAAC,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CA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|
-
import { ICustomIntegration, UserDefinedConfigInput } from './custom.integration.interface';
|
|
1
|
+
import { ICustomIntegration } from './custom.integration.interface';
|
|
3
2
|
export declare class CustomIntegration implements ICustomIntegration {
|
|
4
3
|
readonly name: string;
|
|
5
4
|
constructor(name: string);
|
|
6
5
|
}
|
|
7
|
-
export declare const createConfigInputs: <T extends string = string>(inputs: Record<T, UserDefinedConfigInput>) => Record<T, SerializedInput & {
|
|
8
|
-
toString: () => string;
|
|
9
|
-
}>;
|
|
@@ -3,49 +3,6 @@ export declare enum AuthenticationScheme {
|
|
|
3
3
|
OAUTH = "oauth",
|
|
4
4
|
OAUTH_CLIENT_CREDENTIAL = "oauth_client_credential"
|
|
5
5
|
}
|
|
6
|
-
export type ICustomIntegrationConfig = {
|
|
7
|
-
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
accentColor: string;
|
|
10
|
-
} & ({
|
|
11
|
-
authenticationType: 'basic';
|
|
12
|
-
apiBaseUrl: string;
|
|
13
|
-
testEndpointPath: string;
|
|
14
|
-
authorization: {
|
|
15
|
-
type: 'bearer';
|
|
16
|
-
token: string;
|
|
17
|
-
} | {
|
|
18
|
-
type: 'basic';
|
|
19
|
-
userName: string;
|
|
20
|
-
password: string;
|
|
21
|
-
} | {
|
|
22
|
-
type: 'query_params';
|
|
23
|
-
params: Record<string, string>;
|
|
24
|
-
} | {
|
|
25
|
-
type: 'auth_header';
|
|
26
|
-
headers: Record<string, string>;
|
|
27
|
-
} | {
|
|
28
|
-
type: 'oauth-client-credential';
|
|
29
|
-
};
|
|
30
|
-
} | {
|
|
31
|
-
authenticationType: 'oauth';
|
|
32
|
-
authorizationUrl: string;
|
|
33
|
-
accessTokenUrl: string;
|
|
34
|
-
scopes: string;
|
|
35
|
-
includeClientIdAndSecrets?: boolean;
|
|
36
|
-
usePKCEInCodeExchange: boolean;
|
|
37
|
-
} | {
|
|
38
|
-
authenticationType: 'oauth_client_credential';
|
|
39
|
-
accessTokenUrl: string;
|
|
40
|
-
});
|
|
41
6
|
export interface ICustomIntegration {
|
|
42
7
|
name: string;
|
|
43
8
|
}
|
|
44
|
-
export type UserDefinedConfigInput = {
|
|
45
|
-
id: string;
|
|
46
|
-
type: 'text';
|
|
47
|
-
title: string;
|
|
48
|
-
subtitle?: string;
|
|
49
|
-
placeholder?: string;
|
|
50
|
-
suffixLabel?: string;
|
|
51
|
-
};
|
|
@@ -1,27 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const execution_1 = require("../execution");
|
|
5
|
-
const inputs_1 = require("../inputs");
|
|
3
|
+
exports.CustomIntegration = void 0;
|
|
6
4
|
class CustomIntegration {
|
|
7
|
-
name;
|
|
8
5
|
constructor(name) {
|
|
9
6
|
this.name = name;
|
|
10
7
|
}
|
|
11
8
|
}
|
|
12
9
|
exports.CustomIntegration = CustomIntegration;
|
|
13
|
-
const createConfigInputs = (inputs) => {
|
|
14
|
-
return Object.fromEntries(Object.entries(inputs).map(([key, input]) => [
|
|
15
|
-
key,
|
|
16
|
-
{
|
|
17
|
-
...input,
|
|
18
|
-
type: inputs_1.SidebarInputType.ValueText,
|
|
19
|
-
required: true,
|
|
20
|
-
toString: () => {
|
|
21
|
-
return `${execution_1.TokenizedIdentifiers.START}${execution_1.ProxyVariableSourceType.WORKFLOW_INPUT_REFERENCE}:${input.id}:${execution_1.TokenizedIdentifiers.END}`;
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
]));
|
|
25
|
-
};
|
|
26
|
-
exports.createConfigInputs = createConfigInputs;
|
|
27
10
|
//# sourceMappingURL=custom.integration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.integration.js","sourceRoot":"","sources":["../../src/integration/custom.integration.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"custom.integration.js","sourceRoot":"","sources":["../../src/integration/custom.integration.ts"],"names":[],"mappings":";;;AAKA,MAAa,iBAAiB;IAC5B,YAAqB,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;IAAG,CAAC;CACtC;AAFD,8CAEC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./custom.integration"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./custom.integration.interface"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./integration"), exports);
|
|
7
4
|
tslib_1.__exportStar(require("./integration-config.interface"), exports);
|
|
8
5
|
tslib_1.__exportStar(require("./integration.interface"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./integration.utils"), exports);
|
|
10
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integration/index.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integration/index.ts"],"names":[],"mappings":";;;AAAA,yEAA+C;AAC/C,kEAAwC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ActionStep } from '../steps/library/action';
|
|
2
2
|
import { ActionTriggerStep } from '../triggers/actionTrigger';
|
|
3
|
-
import { IIntegration,
|
|
3
|
+
import { IIntegration, MapIntentToInputOutput } from './integration.interface';
|
|
4
4
|
export declare class Integration<IntentToInputOutput extends MapIntentToInputOutput = MapIntentToInputOutput, TriggerIntentToInputOutput extends MapIntentToInputOutput = MapIntentToInputOutput> implements IIntegration<IntentToInputOutput, TriggerIntentToInputOutput> {
|
|
5
5
|
readonly name: string;
|
|
6
6
|
intents: Record<keyof IntentToInputOutput, keyof IntentToInputOutput>;
|
|
7
7
|
triggers: Record<keyof TriggerIntentToInputOutput, keyof TriggerIntentToInputOutput>;
|
|
8
8
|
constructor(name: string, intents: (keyof IntentToInputOutput)[], triggers: (keyof TriggerIntentToInputOutput)[]);
|
|
9
|
-
withIntent<I extends keyof IntentToInputOutput>(intent: I, inputs: IntentToInputOutput[I][0]
|
|
9
|
+
withIntent<I extends keyof IntentToInputOutput>(intent: I, inputs: IntentToInputOutput[I][0]): ActionStep<IntentToInputOutput[I][0], IntentToInputOutput[I][1]>;
|
|
10
10
|
withTrigger<T extends keyof TriggerIntentToInputOutput>(trigger: T, inputs: TriggerIntentToInputOutput[T][0]): ActionTriggerStep<TriggerIntentToInputOutput[T][0], TriggerIntentToInputOutput[T][1]>;
|
|
11
11
|
}
|
|
@@ -4,15 +4,10 @@ export type MapIntentToInputOutput = Record<string, [
|
|
|
4
4
|
Record<string, unknown>,
|
|
5
5
|
Record<string, unknown>
|
|
6
6
|
]>;
|
|
7
|
-
export type IntegrationOptions = {
|
|
8
|
-
description?: string;
|
|
9
|
-
continueWorkflowOnError?: boolean;
|
|
10
|
-
autoRetry?: boolean;
|
|
11
|
-
};
|
|
12
7
|
export interface IIntegration<IntentToInputOutput extends MapIntentToInputOutput = MapIntentToInputOutput, TriggerIntentToInputOutput extends MapIntentToInputOutput = MapIntentToInputOutput> {
|
|
13
8
|
name: string;
|
|
14
9
|
intents: Record<keyof IntentToInputOutput, keyof IntentToInputOutput>;
|
|
15
10
|
triggers: Record<keyof TriggerIntentToInputOutput, keyof TriggerIntentToInputOutput>;
|
|
16
|
-
withIntent<Intent extends keyof IntentToInputOutput>(intent: Intent, inputs: IntentToInputOutput[Intent][0]
|
|
11
|
+
withIntent<Intent extends keyof IntentToInputOutput>(intent: Intent, inputs: IntentToInputOutput[Intent][0]): ActionStep<IntentToInputOutput[Intent][0], IntentToInputOutput[Intent][1]>;
|
|
17
12
|
withTrigger<Trigger extends keyof TriggerIntentToInputOutput>(trigger: Trigger, inputs: TriggerIntentToInputOutput[Trigger][0]): ActionTriggerStep<TriggerIntentToInputOutput[Trigger][0], TriggerIntentToInputOutput[Trigger][1]>;
|
|
18
13
|
}
|
|
@@ -4,11 +4,10 @@ exports.Integration = void 0;
|
|
|
4
4
|
const action_1 = require("../steps/library/action");
|
|
5
5
|
const actionTrigger_1 = require("../triggers/actionTrigger");
|
|
6
6
|
class Integration {
|
|
7
|
-
name;
|
|
8
|
-
intents = {};
|
|
9
|
-
triggers = {};
|
|
10
7
|
constructor(name, intents, triggers) {
|
|
11
8
|
this.name = name;
|
|
9
|
+
this.intents = {};
|
|
10
|
+
this.triggers = {};
|
|
12
11
|
for (const intent of intents) {
|
|
13
12
|
this.intents[intent] = intent;
|
|
14
13
|
}
|
|
@@ -16,7 +15,7 @@ class Integration {
|
|
|
16
15
|
this.triggers[triggerIntent] = triggerIntent;
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
|
-
withIntent(intent, inputs
|
|
18
|
+
withIntent(intent, inputs) {
|
|
20
19
|
if (!this.intents[intent]) {
|
|
21
20
|
throw new Error(`invalid intent passed for integration ${this.name}`);
|
|
22
21
|
}
|
|
@@ -24,9 +23,6 @@ class Integration {
|
|
|
24
23
|
intent: intent,
|
|
25
24
|
actionType: this.name,
|
|
26
25
|
parameters: inputs,
|
|
27
|
-
description: options.description,
|
|
28
|
-
autoRetry: options.autoRetry,
|
|
29
|
-
continueWorkflowOnError: options.continueWorkflowOnError,
|
|
30
26
|
});
|
|
31
27
|
}
|
|
32
28
|
withTrigger(trigger, inputs) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../src/integration/integration.ts"],"names":[],"mappings":";;;AAAA,oDAAqD;AACrD,6DAA8D;
|
|
1
|
+
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../src/integration/integration.ts"],"names":[],"mappings":";;;AAAA,oDAAqD;AACrD,6DAA8D;AAM9D,MAAa,WAAW;IAuBtB,YACW,IAAY,EACrB,OAAsC,EACtC,QAA8C;QAFrC,SAAI,GAAJ,IAAI,CAAQ;QAfvB,YAAO,GACL,EAAkE,CAAC;QAKrE,aAAQ,GAGJ,EAGH,CAAC;QAUA,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;QAChC,CAAC;QACD,KAAK,MAAM,aAAa,IAAI,QAAQ,EAAE,CAAC;YACrC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,aAAa,CAAC;QAC/C,CAAC;IACH,CAAC;IAQD,UAAU,CACR,MAAS,EACT,MAAiC;QAEjC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,yCAAyC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACxE,CAAC;QAED,OAAO,IAAI,mBAAU,CACnB;YACE,MAAM,EAAE,MAAgB;YACxB,UAAU,EAAE,IAAI,CAAC,IAAI;YACrB,UAAU,EAAE,MAAM;SACnB,CACF,CAAC;IACJ,CAAC;IAQD,WAAW,CACT,OAAU,EACV,MAAwC;QAKxC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CAAC,0CAA0C,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACzE,CAAC;QAED,OAAO,IAAI,iCAAiB,CAG1B;YACA,MAAM,EAAE,OAAiB;YACzB,UAAU,EAAE,IAAI,CAAC,IAAI;YACrB,UAAU,EAAE,MAAM;SACnB,CAAC,CAAC;IACL,CAAC;CACF;AAxFD,kCAwFC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function BooleanFalse(variable: IOperatorValue): ConditionInit;
|
|
3
|
+
export default function BooleanFalse(variable: IOperatorValue<boolean>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanFalse.js","sourceRoot":"","sources":["../../../src/operator/operators/BooleanFalse.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAS7C,SAAwB,YAAY,
|
|
1
|
+
{"version":3,"file":"BooleanFalse.js","sourceRoot":"","sources":["../../../src/operator/operators/BooleanFalse.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAS7C,SAAwB,YAAY,CAClC,QAAiC;IAEjC,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,OAAO,EAChB,YAAY,CACb,CAAC;QACF,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,YAAY;YAC/B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAdD,+BAcC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function BooleanTrue(variable: IOperatorValue): ConditionInit;
|
|
3
|
+
export default function BooleanTrue(variable: IOperatorValue<boolean>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanTrue.js","sourceRoot":"","sources":["../../../src/operator/operators/BooleanTrue.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAS7C,SAAwB,WAAW,
|
|
1
|
+
{"version":3,"file":"BooleanTrue.js","sourceRoot":"","sources":["../../../src/operator/operators/BooleanTrue.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAS7C,SAAwB,WAAW,CACjC,QAAiC;IAEjC,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,OAAO,EAChB,YAAY,CACb,CAAC;QACF,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,WAAW;YAC9B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAdD,8BAcC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function DateTimeAfter(variable: IOperatorValue
|
|
3
|
+
export default function DateTimeAfter(variable: IOperatorValue<Date>, argument: IOperatorValue<Date>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeAfter.js","sourceRoot":"","sources":["../../../src/operator/operators/DateTimeAfter.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,aAAa,CACnC,
|
|
1
|
+
{"version":3,"file":"DateTimeAfter.js","sourceRoot":"","sources":["../../../src/operator/operators/DateTimeAfter.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,aAAa,CACnC,QAA8B,EAC9B,QAA8B;IAE9B,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,IAAI,EACb,YAAY,CACb,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EAAC,QAAQ,EAAE,8BAAQ,CAAC,IAAI,CAAC,CAAC;QAElE,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,aAAa;YAChC,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAlBD,gCAkBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function DateTimeBefore(variable: IOperatorValue
|
|
3
|
+
export default function DateTimeBefore(variable: IOperatorValue<Date>, argument: IOperatorValue<Date>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeBefore.js","sourceRoot":"","sources":["../../../src/operator/operators/DateTimeBefore.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,cAAc,CACpC,
|
|
1
|
+
{"version":3,"file":"DateTimeBefore.js","sourceRoot":"","sources":["../../../src/operator/operators/DateTimeBefore.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,cAAc,CACpC,QAA8B,EAC9B,QAA8B;IAE9B,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,IAAI,EACb,YAAY,CACb,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EAAC,QAAQ,EAAE,8BAAQ,CAAC,IAAI,CAAC,CAAC;QAElE,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,cAAc;YACjC,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAlBD,iCAkBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function DateTimeEquals(variable: IOperatorValue
|
|
3
|
+
export default function DateTimeEquals(variable: IOperatorValue<Date>, argument: IOperatorValue<Date>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeEquals.js","sourceRoot":"","sources":["../../../src/operator/operators/DateTimeEquals.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,cAAc,CACpC,
|
|
1
|
+
{"version":3,"file":"DateTimeEquals.js","sourceRoot":"","sources":["../../../src/operator/operators/DateTimeEquals.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,cAAc,CACpC,QAA8B,EAC9B,QAA8B;IAE9B,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,IAAI,EACb,YAAY,CACb,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,IAAI,EACb,YAAY,CACb,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,cAAc;YACjC,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAtBD,iCAsBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function NumberDoesNotEqual(variable: IOperatorValue
|
|
3
|
+
export default function NumberDoesNotEqual(variable: IOperatorValue<number>, argument: IOperatorValue<number>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberDoesNotEqual.js","sourceRoot":"","sources":["../../../src/operator/operators/NumberDoesNotEqual.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,kBAAkB,CACxC,
|
|
1
|
+
{"version":3,"file":"NumberDoesNotEqual.js","sourceRoot":"","sources":["../../../src/operator/operators/NumberDoesNotEqual.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,kBAAkB,CACxC,QAAgC,EAChC,QAAgC;IAEhC,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,kBAAkB;YACrC,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAtBD,qCAsBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function NumberEquals(variable: IOperatorValue
|
|
3
|
+
export default function NumberEquals(variable: IOperatorValue<number>, argument: IOperatorValue<number>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberEquals.js","sourceRoot":"","sources":["../../../src/operator/operators/NumberEquals.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,YAAY,CAClC,
|
|
1
|
+
{"version":3,"file":"NumberEquals.js","sourceRoot":"","sources":["../../../src/operator/operators/NumberEquals.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,YAAY,CAClC,QAAgC,EAChC,QAAgC;IAEhC,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,YAAY;YAC/B,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAtBD,+BAsBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function NumberGreaterThan(variable: IOperatorValue
|
|
3
|
+
export default function NumberGreaterThan(variable: IOperatorValue<number>, argument: IOperatorValue<number>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberGreaterThan.js","sourceRoot":"","sources":["../../../src/operator/operators/NumberGreaterThan.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,iBAAiB,CACvC,
|
|
1
|
+
{"version":3,"file":"NumberGreaterThan.js","sourceRoot":"","sources":["../../../src/operator/operators/NumberGreaterThan.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,iBAAiB,CACvC,QAAgC,EAChC,QAAgC;IAEhC,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,iBAAiB;YACpC,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAtBD,oCAsBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function NumberGreaterThanOrEqualTo(variable: IOperatorValue
|
|
3
|
+
export default function NumberGreaterThanOrEqualTo(variable: IOperatorValue<number>, argument: IOperatorValue<number>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberGreaterThanOrEqualTo.js","sourceRoot":"","sources":["../../../src/operator/operators/NumberGreaterThanOrEqualTo.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,0BAA0B,CAChD,
|
|
1
|
+
{"version":3,"file":"NumberGreaterThanOrEqualTo.js","sourceRoot":"","sources":["../../../src/operator/operators/NumberGreaterThanOrEqualTo.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,0BAA0B,CAChD,QAAgC,EAChC,QAAgC;IAEhC,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,0BAA0B;YAC7C,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAtBD,6CAsBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function NumberLessThan(variable: IOperatorValue
|
|
3
|
+
export default function NumberLessThan(variable: IOperatorValue<number>, argument: IOperatorValue<number>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberLessThan.js","sourceRoot":"","sources":["../../../src/operator/operators/NumberLessThan.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,cAAc,CACpC,
|
|
1
|
+
{"version":3,"file":"NumberLessThan.js","sourceRoot":"","sources":["../../../src/operator/operators/NumberLessThan.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,cAAc,CACpC,QAAgC,EAChC,QAAgC;IAEhC,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,cAAc;YACjC,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAtBD,iCAsBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function NumberLessThanOrEqualTo(variable: IOperatorValue
|
|
3
|
+
export default function NumberLessThanOrEqualTo(variable: IOperatorValue<number>, argument: IOperatorValue<number>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberLessThanOrEqualTo.js","sourceRoot":"","sources":["../../../src/operator/operators/NumberLessThanOrEqualTo.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,uBAAuB,CAC7C,
|
|
1
|
+
{"version":3,"file":"NumberLessThanOrEqualTo.js","sourceRoot":"","sources":["../../../src/operator/operators/NumberLessThanOrEqualTo.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,uBAAuB,CAC7C,QAAgC,EAChC,QAAgC;IAEhC,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,uBAAuB;YAC1C,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAtBD,0CAsBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function StringContains(variable: IOperatorValue
|
|
3
|
+
export default function StringContains(variable: IOperatorValue<string>, argument: IOperatorValue<string>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringContains.js","sourceRoot":"","sources":["../../../src/operator/operators/StringContains.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,cAAc,CACpC,
|
|
1
|
+
{"version":3,"file":"StringContains.js","sourceRoot":"","sources":["../../../src/operator/operators/StringContains.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,cAAc,CACpC,QAAgC,EAChC,QAAgC;IAEhC,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,cAAc;YACjC,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAtBD,iCAsBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function StringDoesNotContain(variable: IOperatorValue
|
|
3
|
+
export default function StringDoesNotContain(variable: IOperatorValue<string>, argument: IOperatorValue<string>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringDoesNotContain.js","sourceRoot":"","sources":["../../../src/operator/operators/StringDoesNotContain.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,oBAAoB,CAC1C,
|
|
1
|
+
{"version":3,"file":"StringDoesNotContain.js","sourceRoot":"","sources":["../../../src/operator/operators/StringDoesNotContain.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,oBAAoB,CAC1C,QAAgC,EAChC,QAAgC;IAEhC,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,oBAAoB;YACvC,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAtBD,uCAsBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ConditionInit } from '../../resolvers/resolvers.interface';
|
|
2
2
|
import { IOperatorValue } from '../operator.interface';
|
|
3
|
-
export default function StringDoesNotEndWith(variable: IOperatorValue
|
|
3
|
+
export default function StringDoesNotEndWith(variable: IOperatorValue<string>, argument: IOperatorValue<string>): ConditionInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringDoesNotEndWith.js","sourceRoot":"","sources":["../../../src/operator/operators/StringDoesNotEndWith.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,oBAAoB,CAC1C,
|
|
1
|
+
{"version":3,"file":"StringDoesNotEndWith.js","sourceRoot":"","sources":["../../../src/operator/operators/StringDoesNotEndWith.ts"],"names":[],"mappings":";;AAAA,mEAAiE;AACjE,6EAI6C;AAU7C,SAAwB,oBAAoB,CAC1C,QAAgC,EAChC,QAAgC;IAEhC,OAAO,CAAC,YAA+B,EAAE,EAAE;QACzC,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,gCAAe,EACtC,QAAQ,EACR,8BAAQ,CAAC,MAAM,EACf,YAAY,CACb,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,8BAAQ,CAAC,oBAAoB;YACvC,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,gBAAgB;SAC3B,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAtBD,uCAsBC"}
|