@lowdefy/operators-js 4.5.1 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/operators/build/env.js +2 -1
- package/dist/operators/build/env.schema.js +61 -0
- package/dist/operators/client/_index.js +2 -1
- package/dist/operators/client/actions.js +2 -1
- package/dist/operators/client/actions.schema.js +61 -0
- package/dist/operators/client/api.js +4 -3
- package/dist/operators/client/api.schema.js +21 -0
- package/dist/operators/client/base64.js +2 -1
- package/dist/operators/client/base64.schema.js +21 -0
- package/dist/operators/client/event.js +2 -1
- package/dist/operators/client/event.schema.js +61 -0
- package/dist/operators/client/event_log.js +2 -1
- package/dist/operators/client/event_log.schema.js +61 -0
- package/dist/operators/client/global.js +2 -1
- package/dist/operators/client/global.schema.js +61 -0
- package/dist/operators/client/index.schema.js +22 -0
- package/dist/operators/client/input.js +2 -1
- package/dist/operators/client/input.schema.js +61 -0
- package/dist/operators/client/js.js +9 -3
- package/dist/operators/client/js.schema.js +21 -0
- package/dist/operators/client/location.js +4 -3
- package/dist/operators/client/location.schema.js +35 -0
- package/dist/operators/client/media.js +3 -2
- package/dist/operators/client/media.schema.js +59 -0
- package/dist/operators/client/menu.js +2 -1
- package/dist/operators/client/menu.schema.js +54 -0
- package/dist/operators/client/request.js +4 -3
- package/dist/operators/client/request.schema.js +21 -0
- package/dist/operators/client/request_details.js +2 -1
- package/dist/operators/client/request_details.schema.js +61 -0
- package/dist/operators/client/url_query.js +3 -2
- package/dist/operators/client/url_query.schema.js +61 -0
- package/dist/operators/server/base64.js +2 -1
- package/dist/operators/server/base64.schema.js +21 -0
- package/dist/operators/server/hash.js +2 -1
- package/dist/operators/server/hash.schema.js +21 -0
- package/dist/operators/server/item.js +2 -1
- package/dist/operators/server/item.schema.js +61 -0
- package/dist/operators/server/js.js +8 -2
- package/dist/operators/server/js.schema.js +21 -0
- package/dist/operators/server/payload.js +2 -1
- package/dist/operators/server/payload.schema.js +61 -0
- package/dist/operators/server/secret.js +3 -2
- package/dist/operators/server/secret.schema.js +50 -0
- package/dist/operators/server/step.js +2 -1
- package/dist/operators/server/step.schema.js +61 -0
- package/dist/operators/shared/and.js +4 -3
- package/dist/operators/shared/and.schema.js +21 -0
- package/dist/operators/shared/args.js +2 -1
- package/dist/operators/shared/args.schema.js +61 -0
- package/dist/operators/shared/array.js +2 -1
- package/dist/operators/shared/array.schema.js +20 -0
- package/dist/operators/shared/date.js +59 -28
- package/dist/operators/shared/date.schema.js +20 -0
- package/dist/operators/shared/divide.js +7 -6
- package/dist/operators/shared/divide.schema.js +26 -0
- package/dist/operators/shared/eq.js +5 -4
- package/dist/operators/shared/eq.schema.js +23 -0
- package/dist/operators/shared/function.js +3 -2
- package/dist/operators/shared/function.schema.js +20 -0
- package/dist/operators/shared/get.js +4 -3
- package/dist/operators/shared/get.schema.js +40 -0
- package/dist/operators/shared/gt.js +5 -4
- package/dist/operators/shared/gt.schema.js +23 -0
- package/dist/operators/shared/gte.js +5 -4
- package/dist/operators/shared/gte.schema.js +23 -0
- package/dist/operators/shared/if.js +4 -3
- package/dist/operators/shared/if.schema.js +36 -0
- package/dist/operators/shared/if_none.js +5 -4
- package/dist/operators/shared/if_none.schema.js +23 -0
- package/dist/operators/shared/intl.js +2 -1
- package/dist/operators/shared/intl.schema.js +20 -0
- package/dist/operators/shared/json.js +2 -1
- package/dist/operators/shared/json.schema.js +20 -0
- package/dist/operators/shared/log.js +2 -1
- package/dist/operators/shared/log.schema.js +20 -0
- package/dist/operators/shared/lt.js +5 -4
- package/dist/operators/shared/lt.schema.js +23 -0
- package/dist/operators/shared/lte.js +5 -4
- package/dist/operators/shared/lte.schema.js +23 -0
- package/dist/operators/shared/math.js +5 -2
- package/dist/operators/shared/math.schema.js +20 -0
- package/dist/operators/shared/ne.js +5 -4
- package/dist/operators/shared/ne.schema.js +23 -0
- package/dist/operators/shared/not.js +2 -1
- package/dist/operators/shared/not.schema.js +21 -0
- package/dist/operators/shared/number.js +2 -1
- package/dist/operators/shared/number.schema.js +20 -0
- package/dist/operators/shared/object.js +2 -1
- package/dist/operators/shared/object.schema.js +20 -0
- package/dist/operators/shared/operator.js +6 -5
- package/dist/operators/shared/operator.schema.js +33 -0
- package/dist/operators/shared/or.js +4 -3
- package/dist/operators/shared/or.schema.js +21 -0
- package/dist/operators/shared/product.js +4 -3
- package/dist/operators/shared/product.schema.js +24 -0
- package/dist/operators/shared/random.js +14 -18
- package/dist/operators/shared/random.schema.js +60 -0
- package/dist/operators/shared/regex.js +8 -6
- package/dist/operators/shared/regex.schema.js +50 -0
- package/dist/operators/shared/state.js +2 -1
- package/dist/operators/shared/state.schema.js +61 -0
- package/dist/operators/shared/string.js +2 -1
- package/dist/operators/shared/string.schema.js +20 -0
- package/dist/operators/shared/subtract.js +6 -5
- package/dist/operators/shared/subtract.schema.js +26 -0
- package/dist/operators/shared/sum.js +4 -3
- package/dist/operators/shared/sum.schema.js +24 -0
- package/dist/operators/shared/switch.js +5 -4
- package/dist/operators/shared/switch.schema.js +49 -0
- package/dist/operators/shared/type.js +4 -3
- package/dist/operators/shared/type.schema.js +71 -0
- package/dist/operators/shared/uri.js +2 -1
- package/dist/operators/shared/uri.schema.js +21 -0
- package/dist/operators/shared/user.js +2 -1
- package/dist/operators/shared/user.schema.js +61 -0
- package/dist/operatorsBuild.js +1 -1
- package/dist/operatorsClient.js +1 -1
- package/dist/operatorsServer.js +1 -1
- package/dist/schemas.js +74 -0
- package/dist/types.js +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
type: 'array',
|
|
19
|
+
minItems: 2,
|
|
20
|
+
maxItems: 2,
|
|
21
|
+
description: 'Array of two values to compare for strict equality.'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
operatorPrefix: `_${operatorPrefix}`
|
|
25
25
|
});
|
|
26
26
|
if (errors.length > 0) {
|
|
27
|
-
throw
|
|
27
|
+
throw errors[0];
|
|
28
28
|
}
|
|
29
29
|
return output;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
+
_function.dynamic = true;
|
|
32
33
|
export default _function;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
description: 'Operator expression to evaluate lazily. The result is a callable function.'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
import { getFromObject } from '@lowdefy/operators';
|
|
17
17
|
function _get({ arrayIndices, location, params }) {
|
|
18
18
|
if (!type.isObject(params)) {
|
|
19
|
-
throw new Error(`
|
|
19
|
+
throw new Error(`_get takes an object as params.`);
|
|
20
20
|
}
|
|
21
21
|
if (params.from === null) return get(params, 'default', {
|
|
22
22
|
default: null,
|
|
23
23
|
copy: true
|
|
24
24
|
});
|
|
25
25
|
if (!type.isObject(params.from) && !type.isArray(params.from)) {
|
|
26
|
-
throw new Error(`
|
|
26
|
+
throw new Error(`_get.from is not an object or array.`);
|
|
27
27
|
}
|
|
28
28
|
return getFromObject({
|
|
29
29
|
arrayIndices,
|
|
@@ -33,4 +33,5 @@ function _get({ arrayIndices, location, params }) {
|
|
|
33
33
|
params
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
+
_get.dynamic = false;
|
|
36
37
|
export default _get;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
required: [
|
|
20
|
+
'from'
|
|
21
|
+
],
|
|
22
|
+
properties: {
|
|
23
|
+
from: {
|
|
24
|
+
description: 'Object or array to get value from.'
|
|
25
|
+
},
|
|
26
|
+
key: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'Dot-notation path to the value.'
|
|
29
|
+
},
|
|
30
|
+
default: {
|
|
31
|
+
description: 'Default value if key does not exist.'
|
|
32
|
+
},
|
|
33
|
+
all: {
|
|
34
|
+
type: 'boolean',
|
|
35
|
+
description: 'Return all matching values.'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
additionalProperties: false
|
|
39
|
+
}
|
|
40
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import { type } from '@lowdefy/helpers';
|
|
16
|
-
function _gt({ params
|
|
16
|
+
function _gt({ params }) {
|
|
17
17
|
if (!type.isArray(params)) {
|
|
18
|
-
throw new Error(`
|
|
18
|
+
throw new Error(`_gt takes an array type as input.`);
|
|
19
19
|
}
|
|
20
20
|
if (params.length !== 2) {
|
|
21
|
-
throw new Error(`
|
|
21
|
+
throw new Error(`_gt takes an array of length 2 as input.`);
|
|
22
22
|
}
|
|
23
23
|
return params[0] > params[1];
|
|
24
24
|
}
|
|
25
|
+
_gt.dynamic = false;
|
|
25
26
|
export default _gt;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
type: 'array',
|
|
19
|
+
minItems: 2,
|
|
20
|
+
maxItems: 2,
|
|
21
|
+
description: 'Array of two values. Returns true if the first is greater than the second.'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import { type } from '@lowdefy/helpers';
|
|
16
|
-
function _gte({ params
|
|
16
|
+
function _gte({ params }) {
|
|
17
17
|
if (!type.isArray(params)) {
|
|
18
|
-
throw new Error(`
|
|
18
|
+
throw new Error(`_gte takes an array type as input.`);
|
|
19
19
|
}
|
|
20
20
|
if (params.length !== 2) {
|
|
21
|
-
throw new Error(`
|
|
21
|
+
throw new Error(`_gte takes an array of length 2 as input.`);
|
|
22
22
|
}
|
|
23
23
|
return params[0] >= params[1];
|
|
24
24
|
}
|
|
25
|
+
_gte.dynamic = false;
|
|
25
26
|
export default _gte;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
type: 'array',
|
|
19
|
+
minItems: 2,
|
|
20
|
+
maxItems: 2,
|
|
21
|
+
description: 'Array of two values. Returns true if the first is greater than or equal to the second.'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -12,13 +12,14 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ function _if({
|
|
15
|
+
*/ function _if({ params }) {
|
|
16
16
|
if (params.test === true) {
|
|
17
17
|
return params.then;
|
|
18
18
|
}
|
|
19
19
|
if (params.test === false) {
|
|
20
20
|
return params.else;
|
|
21
21
|
}
|
|
22
|
-
throw new Error(`
|
|
22
|
+
throw new Error(`_if takes a boolean type for parameter test.`);
|
|
23
23
|
}
|
|
24
|
+
_if.dynamic = false;
|
|
24
25
|
export default _if;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
required: [
|
|
20
|
+
'test'
|
|
21
|
+
],
|
|
22
|
+
properties: {
|
|
23
|
+
test: {
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
description: 'Boolean condition to evaluate.'
|
|
26
|
+
},
|
|
27
|
+
then: {
|
|
28
|
+
description: 'Value returned when test is true.'
|
|
29
|
+
},
|
|
30
|
+
else: {
|
|
31
|
+
description: 'Value returned when test is false.'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
additionalProperties: false
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -13,16 +13,17 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import { type } from '@lowdefy/helpers';
|
|
16
|
-
function _if_none({ params
|
|
16
|
+
function _if_none({ params }) {
|
|
17
17
|
if (!type.isArray(params)) {
|
|
18
|
-
throw new Error(`
|
|
18
|
+
throw new Error(`_if_none takes an array type as input.`);
|
|
19
19
|
}
|
|
20
20
|
if (params.length !== 2) {
|
|
21
|
-
throw new Error(`
|
|
21
|
+
throw new Error(`_if_none takes an array of length 2 as input.`);
|
|
22
22
|
}
|
|
23
23
|
if (type.isNone(params[0])) {
|
|
24
24
|
return params[1];
|
|
25
25
|
}
|
|
26
26
|
return params[0];
|
|
27
27
|
}
|
|
28
|
+
_if_none.dynamic = false;
|
|
28
29
|
export default _if_none;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
type: 'array',
|
|
19
|
+
minItems: 2,
|
|
20
|
+
maxItems: 2,
|
|
21
|
+
description: 'Array of [value, default]. Returns default if value is null or undefined.'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -91,4 +91,5 @@ function intl({ params, location, methodName }) {
|
|
|
91
91
|
params
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
+
intl.dynamic = false;
|
|
94
95
|
export default intl;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
description: 'Intl method params. Accepts array positional args or object with named args (on, options, locale).'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -57,4 +57,5 @@ function _json({ params, location, methodName }) {
|
|
|
57
57
|
params
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
+
_json.dynamic = false;
|
|
60
61
|
export default _json;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
description: 'JSON method params. For parse: a JSON string. For stringify: array/object with named args (on, options).'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -17,4 +17,5 @@
|
|
|
17
17
|
console.log(params);
|
|
18
18
|
return params;
|
|
19
19
|
}
|
|
20
|
+
_log.dynamic = true;
|
|
20
21
|
export default _log;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
description: 'Value to log to the console. The value is returned unchanged.'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import { type } from '@lowdefy/helpers';
|
|
16
|
-
function _lt({ params
|
|
16
|
+
function _lt({ params }) {
|
|
17
17
|
if (!type.isArray(params)) {
|
|
18
|
-
throw new Error(`
|
|
18
|
+
throw new Error(`_lt takes an array type as input.`);
|
|
19
19
|
}
|
|
20
20
|
if (params.length !== 2) {
|
|
21
|
-
throw new Error(`
|
|
21
|
+
throw new Error(`_lt takes an array of length 2 as input.`);
|
|
22
22
|
}
|
|
23
23
|
return params[0] < params[1];
|
|
24
24
|
}
|
|
25
|
+
_lt.dynamic = false;
|
|
25
26
|
export default _lt;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
type: 'array',
|
|
19
|
+
minItems: 2,
|
|
20
|
+
maxItems: 2,
|
|
21
|
+
description: 'Array of two values. Returns true if the first is less than the second.'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import { type } from '@lowdefy/helpers';
|
|
16
|
-
function _lte({ params
|
|
16
|
+
function _lte({ params }) {
|
|
17
17
|
if (!type.isArray(params)) {
|
|
18
|
-
throw new Error(`
|
|
18
|
+
throw new Error(`_lte takes an array type as input.`);
|
|
19
19
|
}
|
|
20
20
|
if (params.length !== 2) {
|
|
21
|
-
throw new Error(`
|
|
21
|
+
throw new Error(`_lte takes an array of length 2 as input.`);
|
|
22
22
|
}
|
|
23
23
|
return params[0] <= params[1];
|
|
24
24
|
}
|
|
25
|
+
_lte.dynamic = false;
|
|
25
26
|
export default _lte;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
type: 'array',
|
|
19
|
+
minItems: 2,
|
|
20
|
+
maxItems: 2,
|
|
21
|
+
description: 'Array of two values. Returns true if the first is less than or equal to the second.'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -183,7 +183,8 @@ const meta = {
|
|
|
183
183
|
]
|
|
184
184
|
},
|
|
185
185
|
random: {
|
|
186
|
-
noArgs: true
|
|
186
|
+
noArgs: true,
|
|
187
|
+
dynamic: true
|
|
187
188
|
},
|
|
188
189
|
round: {
|
|
189
190
|
singleArg: true,
|
|
@@ -268,4 +269,6 @@ function _math({ params, location, methodName }) {
|
|
|
268
269
|
params
|
|
269
270
|
});
|
|
270
271
|
}
|
|
272
|
+
_math.dynamic = false;
|
|
273
|
+
_math.meta = meta;
|
|
271
274
|
export default _math;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
description: 'Math method params. Accepts a single number, array of numbers, or object with named args depending on method.'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import { type } from '@lowdefy/helpers';
|
|
16
|
-
function _ne({ params
|
|
16
|
+
function _ne({ params }) {
|
|
17
17
|
if (!type.isArray(params)) {
|
|
18
|
-
throw new Error(`
|
|
18
|
+
throw new Error(`_ne takes an array type as input.`);
|
|
19
19
|
}
|
|
20
20
|
if (params.length !== 2) {
|
|
21
|
-
throw new Error(`
|
|
21
|
+
throw new Error(`_ne takes an array of length 2 as input.`);
|
|
22
22
|
}
|
|
23
23
|
return params[0] !== params[1];
|
|
24
24
|
}
|
|
25
|
+
_ne.dynamic = false;
|
|
25
26
|
export default _ne;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
type: 'array',
|
|
19
|
+
minItems: 2,
|
|
20
|
+
maxItems: 2,
|
|
21
|
+
description: 'Array of two values to compare for strict inequality.'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -15,4 +15,5 @@
|
|
|
15
15
|
*/ function _not({ params }) {
|
|
16
16
|
return !params;
|
|
17
17
|
}
|
|
18
|
+
_not.dynamic = false;
|
|
18
19
|
export default _not;
|