@integration-app/react 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/node_modules/@compwright/namecase/LICENSE +26 -0
- package/node_modules/@compwright/namecase/README.md +49 -0
- package/node_modules/@compwright/namecase/bin/namecase +28 -0
- package/node_modules/@compwright/namecase/dist/namecase.min.js +4 -0
- package/node_modules/@compwright/namecase/dist/namecase.min.js.map +1 -0
- package/node_modules/@compwright/namecase/package.json +46 -0
- package/node_modules/@compwright/namecase/src/index.js +146 -0
- package/node_modules/@integration-app/sdk/bundle.js +404 -262
- package/node_modules/@integration-app/sdk/bundle.js.map +1 -1
- package/node_modules/@integration-app/sdk/client.d.ts +3 -3
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +3 -7
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +16 -32
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +1 -1
- package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +0 -6
- package/node_modules/@integration-app/sdk/integrations/accessors.js +1 -87
- package/node_modules/@integration-app/sdk/integrations/accessors.js.map +1 -1
- package/node_modules/@integration-app/sdk/json-schema/index.d.ts +1 -1
- package/node_modules/@integration-app/sdk/src/client.ts +3 -3
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.test.ts +11 -113
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +22 -46
- package/node_modules/@integration-app/sdk/src/integrations/accessors.ts +2 -122
- package/node_modules/@sinclair/typebox/package.json +40 -0
- package/node_modules/@sinclair/typebox/readme.md +740 -0
- package/node_modules/@sinclair/typebox/typebox.d.ts +351 -0
- package/node_modules/@sinclair/typebox/typebox.js +345 -0
- package/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/node/assert.d.ts +128 -0
- package/node_modules/@types/node/async_hooks.d.ts +229 -0
- package/node_modules/@types/node/buffer.d.ts +89 -0
- package/node_modules/@types/node/child_process.d.ts +514 -0
- package/node_modules/@types/node/cluster.d.ts +265 -0
- package/node_modules/@types/node/console.d.ts +142 -0
- package/node_modules/@types/node/constants.d.ts +18 -0
- package/node_modules/@types/node/crypto.d.ts +1283 -0
- package/node_modules/@types/node/dgram.d.ts +144 -0
- package/node_modules/@types/node/dns.d.ts +387 -0
- package/node_modules/@types/node/domain.d.ts +27 -0
- package/node_modules/@types/node/events.d.ts +82 -0
- package/node_modules/@types/node/fs/promises.d.ts +572 -0
- package/node_modules/@types/node/fs.d.ts +2281 -0
- package/node_modules/@types/node/globals.d.ts +747 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +580 -0
- package/node_modules/@types/node/http2.d.ts +962 -0
- package/node_modules/@types/node/https.d.ts +271 -0
- package/node_modules/@types/node/index.d.ts +98 -0
- package/node_modules/@types/node/inspector.d.ts +3051 -0
- package/node_modules/@types/node/module.d.ts +56 -0
- package/node_modules/@types/node/net.d.ts +308 -0
- package/node_modules/@types/node/os.d.ts +243 -0
- package/node_modules/@types/node/package.json +232 -0
- package/node_modules/@types/node/path.d.ts +168 -0
- package/node_modules/@types/node/perf_hooks.d.ts +274 -0
- package/node_modules/@types/node/process.d.ts +413 -0
- package/node_modules/@types/node/punycode.d.ts +78 -0
- package/node_modules/@types/node/querystring.d.ts +31 -0
- package/node_modules/@types/node/readline.d.ts +174 -0
- package/node_modules/@types/node/repl.d.ts +398 -0
- package/node_modules/@types/node/stream.d.ts +359 -0
- package/node_modules/@types/node/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/timers.d.ts +19 -0
- package/node_modules/@types/node/tls.d.ts +784 -0
- package/node_modules/@types/node/trace_events.d.ts +64 -0
- package/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
- package/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
- package/node_modules/@types/node/ts4.8/child_process.d.ts +514 -0
- package/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
- package/node_modules/@types/node/ts4.8/console.d.ts +142 -0
- package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
- package/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
- package/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
- package/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
- package/node_modules/@types/node/ts4.8/events.d.ts +82 -0
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
- package/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
- package/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +580 -0
- package/node_modules/@types/node/ts4.8/http2.d.ts +962 -0
- package/node_modules/@types/node/ts4.8/https.d.ts +271 -0
- package/node_modules/@types/node/ts4.8/index.d.ts +53 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
- package/node_modules/@types/node/ts4.8/module.d.ts +56 -0
- package/node_modules/@types/node/ts4.8/net.d.ts +308 -0
- package/node_modules/@types/node/ts4.8/os.d.ts +243 -0
- package/node_modules/@types/node/ts4.8/path.d.ts +168 -0
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
- package/node_modules/@types/node/ts4.8/process.d.ts +413 -0
- package/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
- package/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
- package/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
- package/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
- package/node_modules/@types/node/ts4.8/stream.d.ts +359 -0
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
- package/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
- package/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
- package/node_modules/@types/node/ts4.8/url.d.ts +149 -0
- package/node_modules/@types/node/ts4.8/util.d.ts +216 -0
- package/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
- package/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
- package/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
- package/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
- package/node_modules/@types/node/tty.d.ts +69 -0
- package/node_modules/@types/node/url.d.ts +149 -0
- package/node_modules/@types/node/util.d.ts +216 -0
- package/node_modules/@types/node/v8.d.ts +190 -0
- package/node_modules/@types/node/vm.d.ts +155 -0
- package/node_modules/@types/node/wasi.d.ts +89 -0
- package/node_modules/@types/node/worker_threads.d.ts +241 -0
- package/node_modules/@types/node/zlib.d.ts +364 -0
- package/package.json +2 -5
- package/node_modules/@integration-app/sdk/.DS_Store +0 -0
- package/node_modules/@integration-app/sdk/.gitignore +0 -11
- package/node_modules/@integration-app/sdk/.npmignore +0 -0
- package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.d.ts +0 -23
- package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.d.ts +0 -20
- package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-events/app-events.d.ts +0 -44
- package/node_modules/@integration-app/sdk/app-events/app-events.js.map +0 -1
- package/node_modules/@integration-app/sdk/connection-client.d.ts +0 -12
- package/node_modules/@integration-app/sdk/connection-client.js +0 -31
- package/node_modules/@integration-app/sdk/connection-client.js.map +0 -1
- package/node_modules/@integration-app/sdk/connections/connections.d.ts +0 -46
- package/node_modules/@integration-app/sdk/connections/connections.js.map +0 -1
- package/node_modules/@integration-app/sdk/connector-api/connector-api.d.ts +0 -157
- package/node_modules/@integration-app/sdk/connector-api/connector-api.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.js +0 -2
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.d.ts +0 -10
- package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js +0 -26
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js +0 -246
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js +0 -85
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js +0 -64
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js +0 -44
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js +0 -44
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js +0 -26
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js +0 -26
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js +0 -14
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js +0 -63
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js +0 -112
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js +0 -18
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js +0 -114
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js +0 -49
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/types.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/types.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/index.test.js +0 -295
- package/node_modules/@integration-app/sdk/data-builder/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/locators.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/locators.test.js +0 -775
- package/node_modules/@integration-app/sdk/data-builder/locators.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/conditions.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-filter/conditions.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/data-filter.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-filter/data-filter.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-filter/index.test.js +0 -43
- package/node_modules/@integration-app/sdk/data-filter/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/operators.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-filter/operators.test.js +0 -490
- package/node_modules/@integration-app/sdk/data-filter/operators.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-links/data-links.d.ts +0 -58
- package/node_modules/@integration-app/sdk/data-links/data-links.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-schema/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-schema/index.test.js +0 -86
- package/node_modules/@integration-app/sdk/data-schema/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-sources/data-sources.d.ts +0 -41
- package/node_modules/@integration-app/sdk/data-sources/data-sources.js.map +0 -1
- package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.d.ts +0 -30
- package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.js.map +0 -1
- package/node_modules/@integration-app/sdk/field-mappings/field-mappings.d.ts +0 -29
- package/node_modules/@integration-app/sdk/field-mappings/field-mappings.js.map +0 -1
- package/node_modules/@integration-app/sdk/flow-runs/flow-runs.d.ts +0 -51
- package/node_modules/@integration-app/sdk/flow-runs/flow-runs.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/flows.d.ts +0 -156
- package/node_modules/@integration-app/sdk/flows/flows.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/nodes.d.ts +0 -25
- package/node_modules/@integration-app/sdk/flows/nodes/nodes.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/utils.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/flows/utils.test.js +0 -62
- package/node_modules/@integration-app/sdk/flows/utils.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/integration-elements/integration-elements.d.ts +0 -21
- package/node_modules/@integration-app/sdk/integration-elements/integration-elements.js.map +0 -1
- package/node_modules/@integration-app/sdk/integrations/integrations.d.ts +0 -48
- package/node_modules/@integration-app/sdk/integrations/integrations.js.map +0 -1
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js +0 -194
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js +0 -352
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/jwt.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/jwt.test.js +0 -9
- package/node_modules/@integration-app/sdk/jwt.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/package-lock.json +0 -3834
- package/node_modules/@integration-app/sdk/udm/activities.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/udm/activities.test.js +0 -40
- package/node_modules/@integration-app/sdk/udm/activities.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/campaign-members.d.ts +0 -45
- package/node_modules/@integration-app/sdk/udm/campaign-members.js +0 -99
- package/node_modules/@integration-app/sdk/udm/campaign-members.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/contacts.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/udm/contacts.test.js +0 -136
- package/node_modules/@integration-app/sdk/udm/contacts.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-activities.d.ts +0 -17
- package/node_modules/@integration-app/sdk/udm/crm-activities.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-activity.d.ts +0 -11
- package/node_modules/@integration-app/sdk/udm/crm-activity.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-companies.d.ts +0 -14
- package/node_modules/@integration-app/sdk/udm/crm-companies.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-contact.d.ts +0 -10
- package/node_modules/@integration-app/sdk/udm/crm-contact.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-contacts.d.ts +0 -16
- package/node_modules/@integration-app/sdk/udm/crm-contacts.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-deals.d.ts +0 -15
- package/node_modules/@integration-app/sdk/udm/crm-deals.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-leads.d.ts +0 -16
- package/node_modules/@integration-app/sdk/udm/crm-leads.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/members.d.ts +0 -45
- package/node_modules/@integration-app/sdk/udm/members.js.map +0 -1
- package/node_modules/@integration-app/sdk/users/users.d.ts +0 -5
- package/node_modules/@integration-app/sdk/users/users.js.map +0 -1
@@ -1,85 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const __1 = require("..");
|
4
|
-
describe('data-builder/formulas/concat', () => {
|
5
|
-
it('should return null if no arguments', () => {
|
6
|
-
expect((0, __1.buildData)({
|
7
|
-
$concat: null,
|
8
|
-
})).toEqual(null);
|
9
|
-
expect((0, __1.buildData)({
|
10
|
-
$concat: {},
|
11
|
-
})).toEqual(null);
|
12
|
-
expect((0, __1.buildData)({
|
13
|
-
$concat: {
|
14
|
-
values: [],
|
15
|
-
},
|
16
|
-
})).toEqual(null);
|
17
|
-
expect((0, __1.buildData)({
|
18
|
-
$concat: {
|
19
|
-
delimiter: '',
|
20
|
-
},
|
21
|
-
})).toEqual(null);
|
22
|
-
expect((0, __1.buildData)({
|
23
|
-
$concat: {
|
24
|
-
values: [],
|
25
|
-
delimiter: '',
|
26
|
-
},
|
27
|
-
})).toEqual(null);
|
28
|
-
});
|
29
|
-
it('should return string itself with one argument', () => {
|
30
|
-
expect((0, __1.buildData)({
|
31
|
-
$concat: {
|
32
|
-
values: ['value'],
|
33
|
-
},
|
34
|
-
})).toEqual('value');
|
35
|
-
});
|
36
|
-
it('should concatenate strings without delimiter', () => {
|
37
|
-
expect((0, __1.buildData)({
|
38
|
-
$concat: {
|
39
|
-
values: ['1', '2'],
|
40
|
-
},
|
41
|
-
})).toEqual('12');
|
42
|
-
});
|
43
|
-
it('should concatenate strings with delimiter', () => {
|
44
|
-
expect((0, __1.buildData)({
|
45
|
-
$concat: {
|
46
|
-
values: ['1', '2'],
|
47
|
-
delimiter: '-',
|
48
|
-
},
|
49
|
-
})).toEqual('1-2');
|
50
|
-
expect((0, __1.buildData)({
|
51
|
-
$concat: {
|
52
|
-
values: ['1', '2'],
|
53
|
-
delimiter: '',
|
54
|
-
},
|
55
|
-
})).toEqual('12');
|
56
|
-
expect((0, __1.buildData)({
|
57
|
-
$concat: {
|
58
|
-
values: ['1', '2'],
|
59
|
-
delimiter: null,
|
60
|
-
},
|
61
|
-
})).toEqual('12');
|
62
|
-
});
|
63
|
-
it('should resolve formulas in arguments', () => {
|
64
|
-
expect((0, __1.buildData)({
|
65
|
-
$concat: {
|
66
|
-
delimiter: '-',
|
67
|
-
values: [
|
68
|
-
'1',
|
69
|
-
{
|
70
|
-
$var: '$.key',
|
71
|
-
},
|
72
|
-
],
|
73
|
-
},
|
74
|
-
}, { key: '2' })).toEqual('1-2');
|
75
|
-
});
|
76
|
-
it('should return empty result with delimiter but empty arguments', () => {
|
77
|
-
expect((0, __1.buildData)({
|
78
|
-
$concat: {
|
79
|
-
delimiter: '-',
|
80
|
-
values: [{ $var: '$.key' }, '', null],
|
81
|
-
},
|
82
|
-
})).toEqual('');
|
83
|
-
});
|
84
|
-
});
|
85
|
-
//# sourceMappingURL=concat.test.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"concat.test.js","sourceRoot":"","sources":["../../src/data-builder/formulas/concat.test.ts"],"names":[],"mappings":";;AAAA,0BAA8B;AAE9B,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC5C,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,OAAO,EAAE,IAAI;SACd,CAAC,CACH,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QACf,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,OAAO,EAAE,EAAE;SACZ,CAAC,CACH,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QACf,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,OAAO,EAAE;gBACP,MAAM,EAAE,EAAE;aACX;SACF,CAAC,CACH,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QACf,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,OAAO,EAAE;gBACP,SAAS,EAAE,EAAE;aACd;SACF,CAAC,CACH,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QACf,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,OAAO,EAAE;gBACP,MAAM,EAAE,EAAE;gBACV,SAAS,EAAE,EAAE;aACd;SACF,CAAC,CACH,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACjB,CAAC,CAAC,CAAA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,EAAE,OAAO;qBACd;iBACF;aACF;SACF,EACD,EAAE,GAAG,EAAE,GAAG,EAAE,CACb,CACF,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAClB,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,+DAA+D,EAAE,GAAG,EAAE;QACvE,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,OAAO,EAAE;gBACP,SAAS,EAAE,GAAG;gBACd,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC;aACtC;SACF,CAAC,CACH,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;IACf,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,64 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const errors_1 = require("../../errors");
|
4
|
-
const _1 = require(".");
|
5
|
-
const __1 = require("..");
|
6
|
-
const context_1 = require("../context");
|
7
|
-
const copy_1 = require("./copy");
|
8
|
-
describe('data-builder/formulas/copy', () => {
|
9
|
-
it('should parse $copy formula', () => {
|
10
|
-
const formula = (0, _1.getFormula)({
|
11
|
-
$copy: 'field',
|
12
|
-
});
|
13
|
-
expect(formula).toBeDefined();
|
14
|
-
expect(formula).not.toBeNull();
|
15
|
-
expect(formula.type).toEqual(_1.DataBuilderFormulaType.COPY);
|
16
|
-
expect(formula instanceof copy_1.DataBuilderFormulaCopy).toBeTruthy();
|
17
|
-
expect(formula.locator).toEqual('field');
|
18
|
-
});
|
19
|
-
const data = {
|
20
|
-
fieldName: 'field',
|
21
|
-
};
|
22
|
-
it('should resolve into itself', () => {
|
23
|
-
const formula = (0, _1.getFormula)({
|
24
|
-
$copy: {
|
25
|
-
$var: 'fieldName',
|
26
|
-
},
|
27
|
-
});
|
28
|
-
expect(formula.getValue(new context_1.DataBuilderContext(data))).toEqual({
|
29
|
-
$copy: 'field',
|
30
|
-
});
|
31
|
-
});
|
32
|
-
it('should copy the field', () => {
|
33
|
-
expect((0, __1.buildData)({
|
34
|
-
field: 'value',
|
35
|
-
field2: {
|
36
|
-
$copy: {
|
37
|
-
$var: 'fieldName',
|
38
|
-
},
|
39
|
-
},
|
40
|
-
}, data)).toEqual({ field: 'value', field2: 'value' });
|
41
|
-
});
|
42
|
-
it('should error if trying to copy another $copy field', () => {
|
43
|
-
const brokenRecipe = {
|
44
|
-
field1: {
|
45
|
-
$copy: 'field2',
|
46
|
-
},
|
47
|
-
field2: {
|
48
|
-
$copy: 'field1',
|
49
|
-
},
|
50
|
-
};
|
51
|
-
try {
|
52
|
-
(0, __1.buildData)(brokenRecipe);
|
53
|
-
throw new Error('should have thrown an error');
|
54
|
-
}
|
55
|
-
catch (e) {
|
56
|
-
if (e instanceof errors_1.FlowConfigurationError) {
|
57
|
-
}
|
58
|
-
else {
|
59
|
-
throw e;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
});
|
63
|
-
});
|
64
|
-
//# sourceMappingURL=copy.test.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"copy.test.js","sourceRoot":"","sources":["../../src/data-builder/formulas/copy.test.ts"],"names":[],"mappings":";;AAAA,yCAAqD;AACrD,wBAAsD;AACtD,0BAA8B;AAC9B,wCAA+C;AAC/C,iCAA+C;AAE/C,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACpC,MAAM,OAAO,GAAG,IAAA,aAAU,EAAC;YACzB,KAAK,EAAE,OAAO;SACf,CAAC,CAAA;QACF,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;QAC7B,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAA;QAC9B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,yBAAsB,CAAC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ExC;iBAAM;gBACL,MAAM,CAAC,CAAA;aACR;SACF;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,44 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const _1 = require(".");
|
4
|
-
const context_1 = require("../context");
|
5
|
-
const extractDate_1 = require("./extractDate");
|
6
|
-
describe('formulas/extractDate', () => {
|
7
|
-
const DATETIME = '2021-07-06T02:22:22.000Z';
|
8
|
-
const context = new context_1.DataBuilderContext({
|
9
|
-
datetime: DATETIME,
|
10
|
-
});
|
11
|
-
it('should find extractDate formula', () => {
|
12
|
-
const formula = (0, _1.getFormula)({
|
13
|
-
$extractDate: DATETIME,
|
14
|
-
});
|
15
|
-
expect(formula).toBeDefined();
|
16
|
-
expect(formula).not.toBeNull();
|
17
|
-
expect(formula.type).toEqual(_1.DataBuilderFormulaType.EXTRACT_DATE);
|
18
|
-
expect(formula instanceof extractDate_1.DataBuilderFormulaExtractDate).toBeTruthy();
|
19
|
-
expect(formula.value).toEqual(DATETIME);
|
20
|
-
});
|
21
|
-
it('should extract date', () => {
|
22
|
-
const formula = new extractDate_1.DataBuilderFormulaExtractDate(DATETIME);
|
23
|
-
expect(formula.getValue(context)).toEqual('2021-07-06');
|
24
|
-
});
|
25
|
-
it('should extract date from variable', () => {
|
26
|
-
const formula = new extractDate_1.DataBuilderFormulaExtractDate({
|
27
|
-
$var: '$.datetime',
|
28
|
-
});
|
29
|
-
expect(formula.getValue(context)).toEqual('2021-07-06');
|
30
|
-
});
|
31
|
-
it('should extract date from non-standard date', () => {
|
32
|
-
const formula = new extractDate_1.DataBuilderFormulaExtractDate('Jun 25, 2022 10:30');
|
33
|
-
expect(formula.getValue(context)).toEqual('2022-06-25');
|
34
|
-
});
|
35
|
-
it('should return undefined when non-date value provided', () => {
|
36
|
-
let formula = new extractDate_1.DataBuilderFormulaExtractDate(null);
|
37
|
-
expect(formula.getValue(context)).toBeUndefined();
|
38
|
-
formula = new extractDate_1.DataBuilderFormulaExtractDate('foo');
|
39
|
-
expect(formula.getValue(context)).toBeUndefined();
|
40
|
-
formula = new extractDate_1.DataBuilderFormulaExtractDate('25');
|
41
|
-
expect(formula.getValue(context)).toBeUndefined();
|
42
|
-
});
|
43
|
-
});
|
44
|
-
//# sourceMappingURL=extractDate.test.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"extractDate.test.js","sourceRoot":"","sources":["../../src/data-builder/formulas/extractDate.test.ts"],"names":[],"mappings":";;AAAA,wBAAsD;AACtD,wCAA+C;AAC/C,+CAA6D;AAE7D,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,MAAM,QAAQ,GAAG,0BAA0B,CAAA;IAC3C,MAAM,OAAO,GAAG,IAAI,4BAAkB,CAAC;QACrC,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAA;IAEF,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;QACzC,MAAM,OAAO,GAAG,IAAA,aAAU,EAAC;YACzB,YAAY,EAAE,QAAQ;SACvB,CAAC,CAAA;QACF,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;QAC7B,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAA;QAC9B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,yBAAsB,CAAC,YAAY,CAAC,CAAA;QACjE,MAAM,CAAC,OAAO,YAAY,2CAA6B,CAAC,CAAC,UAAU,EAAE,CAAA;QACrE,MAAM,CAAE,OAAyC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAC5E,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE;QAC7B,MAAM,OAAO,GAAG,IAAI,2CAA6B,CAAC,QAAQ,CAAC,C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defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const _1 = require(".");
|
4
|
-
const context_1 = require("../context");
|
5
|
-
const extractTime_1 = require("./extractTime");
|
6
|
-
describe('formulas/extractTime', () => {
|
7
|
-
const DATETIME = '2021-07-06T02:22:22.000Z';
|
8
|
-
const context = new context_1.DataBuilderContext({
|
9
|
-
datetime: DATETIME,
|
10
|
-
});
|
11
|
-
it('should find extractTime formula', () => {
|
12
|
-
const formula = (0, _1.getFormula)({
|
13
|
-
$extractTime: DATETIME,
|
14
|
-
});
|
15
|
-
expect(formula).toBeDefined();
|
16
|
-
expect(formula).not.toBeNull();
|
17
|
-
expect(formula.type).toEqual(_1.DataBuilderFormulaType.EXTRACT_TIME);
|
18
|
-
expect(formula instanceof extractTime_1.DataBuilderFormulaExtractTime).toBeTruthy();
|
19
|
-
expect(formula.value).toEqual(DATETIME);
|
20
|
-
});
|
21
|
-
it('should extract date', () => {
|
22
|
-
const formula = new extractTime_1.DataBuilderFormulaExtractTime(DATETIME);
|
23
|
-
expect(formula.getValue(context)).toEqual('02:22:22');
|
24
|
-
});
|
25
|
-
it('should extract date from variable', () => {
|
26
|
-
const formula = new extractTime_1.DataBuilderFormulaExtractTime({
|
27
|
-
$var: '$.datetime',
|
28
|
-
});
|
29
|
-
expect(formula.getValue(context)).toEqual('02:22:22');
|
30
|
-
});
|
31
|
-
it('should extract time from non-standard date', () => {
|
32
|
-
const formula = new extractTime_1.DataBuilderFormulaExtractTime('Jun 25, 2022 13:30');
|
33
|
-
expect(formula.getValue(context)).toEqual('13:30:00');
|
34
|
-
});
|
35
|
-
it('should return undefined when non-date value provided', () => {
|
36
|
-
let formula = new extractTime_1.DataBuilderFormulaExtractTime(null);
|
37
|
-
expect(formula.getValue(context)).toBeUndefined();
|
38
|
-
formula = new extractTime_1.DataBuilderFormulaExtractTime('foo');
|
39
|
-
expect(formula.getValue(context)).toBeUndefined();
|
40
|
-
formula = new extractTime_1.DataBuilderFormulaExtractTime('25');
|
41
|
-
expect(formula.getValue(context)).toBeUndefined();
|
42
|
-
});
|
43
|
-
});
|
44
|
-
//# sourceMappingURL=extractTime.test.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"extractTime.test.js","sourceRoot":"","sources":["../../src/data-builder/formulas/extractTime.test.ts"],"names":[],"mappings":";;AAAA,wBAAsD;AACtD,wCAA+C;AAC/C,+CAA6D;AAE7D,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,MAAM,QAAQ,GAAG,0BAA0B,CAAA;IAC3C,MAAM,OAAO,GAAG,IAAI,4BAAkB,CAAC;QACrC,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAA;IAEF,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;QACzC,MAAM,OAAO,GAAG,IAAA,aAAU,EAAC;YACzB,YAAY,EAAE,QAAQ;SACvB,CAAC,CAAA;QACF,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;QAC7B,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAA;QAC9B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,yBAAsB,CAAC,YAAY,CAAC,CAAA;QACjE,MAAM,CAAC,OAAO,YAAY,2CAA6B,CAAC,CAAC,UAAU,EAAE,CAAA;QACrE,MAAM,CAAE,OAAyC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAC5E,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE;QAC7B,MAAM,OAAO,GAAG,IAAI,2CAA6B,CAAC,QAAQ,CAAC,CAAA;QAC3D,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IACvD,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC3C,MAAM,OAAO,GAAG,IAAI,2CAA6B,CAAC;YAChD,IAAI,EAAE,YAAY;SACnB,CAAC,CAAA;QACF,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IACvD,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACpD,MAAM,OAAO,GAAG,IAAI,2CAA6B,CAAC,oBAAoB,CAAC,CAAA;QACvE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IACvD,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC9D,IAAI,OAAO,GAAG,IAAI,2CAA6B,CAAC,IAAI,CAAC,CAAA;QACrD,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,EAAE,CAAA;QAEjD,OAAO,GAAG,IAAI,2CAA6B,CAAC,KAAK,CAAC,CAAA;QAClD,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,EAAE,CAAA;QAEjD,OAAO,GAAG,IAAI,2CAA6B,CAAC,IAAI,CAAC,CAAA;QACjD,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,EAAE,CAAA;IACnD,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const _1 = require(".");
|
4
|
-
const __1 = require("..");
|
5
|
-
const findAppRecordId_1 = require("./findAppRecordId");
|
6
|
-
describe('data-builder/formulas/findAppRecordId', () => {
|
7
|
-
const args = {
|
8
|
-
dataLinkTable: {
|
9
|
-
key: 'contacts',
|
10
|
-
},
|
11
|
-
recordId: '1234',
|
12
|
-
};
|
13
|
-
it('should parse $findAppRecordId formulas', () => {
|
14
|
-
expect((0, _1.getFormula)({
|
15
|
-
$findAppRecordId: args,
|
16
|
-
})).toEqual(new findAppRecordId_1.DataBuilderFormulaFindAppRecordId(args));
|
17
|
-
});
|
18
|
-
it('should resolve into the formula itself', () => {
|
19
|
-
expect((0, __1.buildData)({
|
20
|
-
$findAppRecordId: args,
|
21
|
-
})).toEqual({
|
22
|
-
$findAppRecordId: args,
|
23
|
-
});
|
24
|
-
});
|
25
|
-
});
|
26
|
-
//# sourceMappingURL=findAppRecordId.test.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"findAppRecordId.test.js","sourceRoot":"","sources":["../../src/data-builder/formulas/findAppRecordId.test.ts"],"names":[],"mappings":";;AAAA,wBAA8B;AAC9B,0BAA8B;AAC9B,uDAAqE;AAErE,QAAQ,CAAC,uCAAuC,EAAE,GAAG,EAAE;IACrD,MAAM,IAAI,GAAG;QACX,aAAa,EAAE;YACb,GAAG,EAAE,UAAU;SAChB;QACD,QAAQ,EAAE,MAAM;KACjB,CAAA;IAED,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAChD,MAAM,CACJ,IAAA,aAAU,EAAC;YACT,gBAAgB,EAAE,IAAI;SACvB,CAAC,CACH,CAAC,OAAO,CAAC,IAAI,mDAAiC,CAAC,IAAI,CAAC,CAAC,CAAA;IACxD,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAChD,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,gBAAgB,EAAE,IAAI;SACvB,CAAC,CACH,CAAC,OAAO,CAAC;YACR,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const _1 = require(".");
|
4
|
-
const __1 = require("..");
|
5
|
-
const findExternalRecordId_1 = require("./findExternalRecordId");
|
6
|
-
describe('data-builder/formulas/findExternalRecordId', () => {
|
7
|
-
const args = {
|
8
|
-
dataLinkTable: {
|
9
|
-
key: 'contacts',
|
10
|
-
},
|
11
|
-
recordId: '1234',
|
12
|
-
};
|
13
|
-
it('should parse $findExternalRecordId formulas', () => {
|
14
|
-
expect((0, _1.getFormula)({
|
15
|
-
$findExternalRecordId: args,
|
16
|
-
})).toEqual(new findExternalRecordId_1.DataBuilderFormulaFindExternalRecordId(args));
|
17
|
-
});
|
18
|
-
it('should resolve into the formula itself', () => {
|
19
|
-
expect((0, __1.buildData)({
|
20
|
-
$findExternalRecordId: args,
|
21
|
-
})).toEqual({
|
22
|
-
$findExternalRecordId: args,
|
23
|
-
});
|
24
|
-
});
|
25
|
-
});
|
26
|
-
//# sourceMappingURL=findExternalRecordId.test.js.map
|
package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"findExternalRecordId.test.js","sourceRoot":"","sources":["../../src/data-builder/formulas/findExternalRecordId.test.ts"],"names":[],"mappings":";;AAAA,wBAA8B;AAC9B,0BAA8B;AAC9B,iEAA+E;AAE/E,QAAQ,CAAC,4CAA4C,EAAE,GAAG,EAAE;IAC1D,MAAM,IAAI,GAAG;QACX,aAAa,EAAE;YACb,GAAG,EAAE,UAAU;SAChB;QACD,QAAQ,EAAE,MAAM;KACjB,CAAA;IAED,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACrD,MAAM,CACJ,IAAA,aAAU,EAAC;YACT,qBAAqB,EAAE,IAAI;SAC5B,CAAC,CACH,CAAC,OAAO,CAAC,IAAI,6DAAsC,CAAC,IAAI,CAAC,CAAC,CAAA;IAC7D,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAChD,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,qBAAqB,EAAE,IAAI;SAC5B,CAAC,CACH,CAAC,OAAO,CAAC;YACR,qBAAqB,EAAE,IAAI;SAC5B,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const first_name_1 = require("./first-name");
|
4
|
-
describe('data-builder/formulas/firstName', () => {
|
5
|
-
it('should work for empty value', () => {
|
6
|
-
const firstName = new first_name_1.DataBuilderFormulaFirstName('');
|
7
|
-
expect(firstName.getValue(null)).toBeUndefined();
|
8
|
-
});
|
9
|
-
it('should work for non-string value', () => {
|
10
|
-
const firstName = new first_name_1.DataBuilderFormulaFirstName({ a: 'b' });
|
11
|
-
expect(firstName.getValue(null)).toBeUndefined();
|
12
|
-
});
|
13
|
-
});
|
14
|
-
//# sourceMappingURL=first-name.test.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"first-name.test.js","sourceRoot":"","sources":["../../src/data-builder/formulas/first-name.test.ts"],"names":[],"mappings":";;AAAA,6CAA0D;AAE1D,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;IAC/C,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;QACrC,MAAM,SAAS,GAAG,IAAI,wCAA2B,CAAC,EAAE,CAAC,CAAA;QACrD,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,EAAE,CAAA;IAClD,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,MAAM,SAAS,GAAG,IAAI,wCAA2B,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAA;QAC7D,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,EAAE,CAAA;IAClD,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,63 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const _1 = require(".");
|
4
|
-
const plain_1 = require("./plain");
|
5
|
-
const record_1 = require("./record");
|
6
|
-
const schemaOption_1 = require("./schemaOption");
|
7
|
-
const var_1 = require("./var");
|
8
|
-
describe('Data Builder Formulas', () => {
|
9
|
-
describe('getFormula', () => {
|
10
|
-
it('should parse $ref formulas', () => {
|
11
|
-
expect((0, _1.getFormula)({
|
12
|
-
$ref: '$.locator',
|
13
|
-
})).toEqual(new var_1.DataBuilderFormulaVar('$.locator'));
|
14
|
-
});
|
15
|
-
it('should parse $var formulas', () => {
|
16
|
-
expect((0, _1.getFormula)({
|
17
|
-
$var: '$.locator',
|
18
|
-
})).toEqual(new var_1.DataBuilderFormulaVar('$.locator'));
|
19
|
-
});
|
20
|
-
it('should parse $plain formulas', () => {
|
21
|
-
expect((0, _1.getFormula)({
|
22
|
-
$plain: {
|
23
|
-
$ref: '$.locator',
|
24
|
-
},
|
25
|
-
})).toEqual(new plain_1.DataBuilderFormulaPlain({
|
26
|
-
$ref: '$.locator',
|
27
|
-
}));
|
28
|
-
});
|
29
|
-
it('should parse $anyOfOption formulas', () => {
|
30
|
-
expect((0, _1.getFormula)({
|
31
|
-
$schemaOption: {
|
32
|
-
key: 'value',
|
33
|
-
value: {
|
34
|
-
$ref: '$.locator',
|
35
|
-
},
|
36
|
-
},
|
37
|
-
})).toEqual(new schemaOption_1.DataBuilderFormulaSchemaOption({
|
38
|
-
key: 'value',
|
39
|
-
value: {
|
40
|
-
$ref: '$.locator',
|
41
|
-
},
|
42
|
-
}));
|
43
|
-
});
|
44
|
-
it('should parse $record formulas', () => {
|
45
|
-
expect((0, _1.getFormula)({
|
46
|
-
$record: {
|
47
|
-
id: 'id',
|
48
|
-
name: 'name',
|
49
|
-
},
|
50
|
-
})).toEqual(new record_1.DataBuilderFormulaRecord({ id: 'id', name: 'name' }));
|
51
|
-
});
|
52
|
-
it('should ignore values with more than one key', () => {
|
53
|
-
expect((0, _1.getFormula)({
|
54
|
-
$ref: '$.locator',
|
55
|
-
a: 'b',
|
56
|
-
})).toBeUndefined();
|
57
|
-
});
|
58
|
-
it('should handle empty $compose', () => {
|
59
|
-
expect((0, _1.getFormula)({ $compose: null })).toBeUndefined();
|
60
|
-
});
|
61
|
-
});
|
62
|
-
});
|
63
|
-
//# sourceMappingURL=index.test.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../src/data-builder/formulas/index.test.ts"],"names":[],"mappings":";;AAAA,wBAA8B;AAC9B,mCAAiD;AACjD,qCAAmD;AACnD,iDAA+D;AAC/D,+BAA6C;AAE7C,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;QAC1B,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;YACpC,MAAM,CACJ,IAAA,aAAU,EAAC;gBACT,IAAI,EAAE,WAAW;aAClB,CAAC,CACH,CAAC,OAAO,CAAC,IAAI,2BAAqB,CAAC,WAAW,CAAC,CAAC,CAAA;QACnD,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;YACpC,MAAM,CACJ,IAAA,aAAU,EAAC;gBACT,IAAI,EAAE,WAAW;aAClB,CAAC,CACH,CAAC,OAAO,CAAC,IAAI,2BAAqB,CAAC,WAAW,CAAC,CAAC,CAA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IAAI,EAAE,CAAC,CAAC,CAAC,aAAa,EAAE,CAAA;QACxD,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,112 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const _1 = require(".");
|
4
|
-
const __1 = require("..");
|
5
|
-
const iterate_1 = require("./iterate");
|
6
|
-
describe('data-builder/formulas/iterate', () => {
|
7
|
-
it('should parse $iterate formulas', () => {
|
8
|
-
expect((0, _1.getFormula)({
|
9
|
-
$iterate: {
|
10
|
-
locator: '$.list',
|
11
|
-
items: '$.list.$current',
|
12
|
-
},
|
13
|
-
})).toEqual(new iterate_1.DataBuilderFormulaIterate({
|
14
|
-
locator: '$.list',
|
15
|
-
items: '$.list.$current',
|
16
|
-
}));
|
17
|
-
});
|
18
|
-
it('should return undefined if args are not provided', () => {
|
19
|
-
expect((0, __1.buildData)({
|
20
|
-
$iterate: null,
|
21
|
-
})).toEqual(undefined);
|
22
|
-
expect((0, __1.buildData)({
|
23
|
-
$iterate: [],
|
24
|
-
})).toEqual(undefined);
|
25
|
-
expect((0, __1.buildData)({
|
26
|
-
$iterate: {
|
27
|
-
locator: null,
|
28
|
-
},
|
29
|
-
})).toEqual(undefined);
|
30
|
-
expect((0, __1.buildData)({
|
31
|
-
$iterate: {
|
32
|
-
locator: '$.list',
|
33
|
-
items: null,
|
34
|
-
},
|
35
|
-
})).toEqual(undefined);
|
36
|
-
});
|
37
|
-
it('should return undefined if not pointing to an array', () => {
|
38
|
-
expect((0, __1.buildData)({
|
39
|
-
$iterate: {
|
40
|
-
locator: '$.list',
|
41
|
-
items: '$.list.$current',
|
42
|
-
},
|
43
|
-
})).toEqual(undefined);
|
44
|
-
});
|
45
|
-
it('should produce empty list for an empty list', () => {
|
46
|
-
expect((0, __1.buildData)({
|
47
|
-
$iterate: {
|
48
|
-
locator: '$.list',
|
49
|
-
items: '$.list.$current',
|
50
|
-
},
|
51
|
-
}, { list: [] })).toEqual([]);
|
52
|
-
});
|
53
|
-
it('should replicate list', () => {
|
54
|
-
const list = [1, 2, 3];
|
55
|
-
expect((0, __1.buildData)({
|
56
|
-
$iterate: {
|
57
|
-
locator: '$.list',
|
58
|
-
items: {
|
59
|
-
$var: '$.list.$current',
|
60
|
-
},
|
61
|
-
},
|
62
|
-
}, { list })).toEqual(list);
|
63
|
-
});
|
64
|
-
it('should take subfields from the list', () => {
|
65
|
-
const list = [
|
66
|
-
{
|
67
|
-
key: 'value1',
|
68
|
-
},
|
69
|
-
{
|
70
|
-
key: 'value2',
|
71
|
-
},
|
72
|
-
{
|
73
|
-
key: 'value3',
|
74
|
-
},
|
75
|
-
];
|
76
|
-
expect((0, __1.buildData)({
|
77
|
-
$iterate: {
|
78
|
-
locator: '$.list',
|
79
|
-
items: {
|
80
|
-
$var: '$.list.$current.key',
|
81
|
-
},
|
82
|
-
},
|
83
|
-
}, { list })).toEqual(['value1', 'value2', 'value3']);
|
84
|
-
});
|
85
|
-
it('should iterate over two lists', () => {
|
86
|
-
const outerList = [1, 2, 3];
|
87
|
-
const innerList = ['a', 'b', 'c'];
|
88
|
-
const expectedResult = outerList.map((outerItem) => innerList.map((innerItem) => ({
|
89
|
-
outer: outerItem,
|
90
|
-
inner: innerItem,
|
91
|
-
})));
|
92
|
-
expect((0, __1.buildData)({
|
93
|
-
$iterate: {
|
94
|
-
locator: '$.outerList',
|
95
|
-
items: {
|
96
|
-
$iterate: {
|
97
|
-
locator: '$.innerList',
|
98
|
-
items: {
|
99
|
-
outer: {
|
100
|
-
$var: '$.outerList.$current',
|
101
|
-
},
|
102
|
-
inner: {
|
103
|
-
$var: '$.innerList.$current',
|
104
|
-
},
|
105
|
-
},
|
106
|
-
},
|
107
|
-
},
|
108
|
-
},
|
109
|
-
}, { outerList, innerList })).toEqual(expectedResult);
|
110
|
-
});
|
111
|
-
});
|
112
|
-
//# sourceMappingURL=iterate.test.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"iterate.test.js","sourceRoot":"","sources":["../../src/data-builder/formulas/iterate.test.ts"],"names":[],"mappings":";;AAAA,wBAA8B;AAC9B,0BAA8B;AAC9B,uCAAqD;AAErD,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;IAC7C,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,CACJ,IAAA,aAAU,EAAC;YACT,QAAQ,EAAE;gBACR,OAAO,EAAE,QAAQ;gBACjB,KAAK,EAAE,iBAAiB;aACzB;SACF,CAAC,CACH,CAAC,OAAO,CACP,IAAI,mCAAyB,CAAC;YAC5B,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,iBAAiB;SACzB,CAAC,CACH,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,QAAQ,EAAE,IAAI;SACf,CAAC,CACH,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;QACpB,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,QAAQ,EAAE,EAAE;SACb,CAAC,CACH,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;QACpB,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,QAAQ,EAAE;gBACR,OAAO,EAAE,IAAI;aACd;SACF,CAAC,CACH,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;QACpB,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,QAAQ,EAAE;gBACR,OAAO,EAAE,QAAQ;gBACjB,KAAK,EAAE,IAAI;aACZ;SACF,CAAC,CACH,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC7D,MAAM,CACJ,IAAA,aAAS,EAAC;YACR,QAAQ,EA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+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;QAC3B,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;QAEjC,MAAM,cAAc,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CACjD,SAAS,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;YAC5B,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC,CACJ,CAAA;QAED,MAAM,CACJ,IAAA,aAAS,EACP;YACE,QAAQ,EAAE;gBACR,OAAO,EAAE,aAAa;gBACtB,KAAK,EAAE;oBACL,QAAQ,EAAE;wBACR,OAAO,EAAE,aAAa;wBACtB,KAAK,EAAE;4BACL,KAAK,EAAE;gCACL,IAAI,EAAE,sBAAsB;6BAC7B;4BACD,KAAK,EAAE;gCACL,IAAI,EAAE,sBAAsB;6BAC7B;yBACF;qBACF;iBACF;aACF;SACF,EACD,EAAE,SAAS,EAAE,SAAS,EAAE,CACzB,CACF,CAAC,OAAO,CAAC,cAAc,CAAC,CAAA;IAC3B,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const _1 = require(".");
|
4
|
-
const lookup_1 = require("./lookup");
|
5
|
-
describe('data-builder/formulas/lookup', () => {
|
6
|
-
it('should parse $lookup formulas', () => {
|
7
|
-
expect((0, _1.getFormula)({
|
8
|
-
$lookup: {
|
9
|
-
query: { key: 'value' },
|
10
|
-
createIfNotFound: true,
|
11
|
-
},
|
12
|
-
})).toEqual(new lookup_1.DataBuilderFormulaLookup({
|
13
|
-
query: { key: 'value' },
|
14
|
-
createIfNotFound: true,
|
15
|
-
}));
|
16
|
-
});
|
17
|
-
});
|
18
|
-
//# sourceMappingURL=lookup.test.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"lookup.test.js","sourceRoot":"","sources":["../../src/data-builder/formulas/lookup.test.ts"],"names":[],"mappings":";;AAAA,wBAA8B;AAC9B,qCAAmD;AAEnD,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC5C,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,CACJ,IAAA,aAAU,EAAC;YACT,OAAO,EAAE;gBACP,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE;gBACvB,gBAAgB,EAAE,IAAI;aACvB;SACF,CAAC,CACH,CAAC,OAAO,CACP,IAAI,iCAAwB,CAAC;YAC3B,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE;YACvB,gBAAgB,EAAE,IAAI;SACvB,CAAC,CACH,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|