@wix/bex-utils 2.115.0 → 2.117.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/@wix/ambassador-hub-v1-job/README.md +34 -0
- package/@wix/ambassador-hub-v1-job/builders/package.json +7 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/builders.impl.d.ts +130 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/builders.impl.js +1705 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/builders.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/crud/http.impl.d.ts +9 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/crud/http.impl.js +16 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/crud/http.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/crud/rpc.impl.d.ts +5 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/crud/rpc.impl.js +24 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/crud/rpc.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/http.impl.d.ts +54 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/http.impl.js +689 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/http.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/meta.impl.d.ts +24 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/meta.impl.js +170 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/meta.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/proto/client/proto-generated.d.ts +15832 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/proto/proto-generated.d.ts +7912 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/proto/proto-generated.js +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/proto/server/proto-generated.d.ts +15777 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/rpc.impl.d.ts +67 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/rpc.impl.js +202 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/rpc.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/types.impl.d.ts +2156 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/types.impl.js +127 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/types.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/package.json +3 -0
- package/@wix/ambassador-hub-v1-job/crud/http/package.json +7 -0
- package/@wix/ambassador-hub-v1-job/crud/rpc/package.json +6 -0
- package/@wix/ambassador-hub-v1-job/es/build/builders.impl.d.ts +130 -0
- package/@wix/ambassador-hub-v1-job/es/build/builders.impl.js +1558 -0
- package/@wix/ambassador-hub-v1-job/es/build/builders.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/crud/http.impl.d.ts +9 -0
- package/@wix/ambassador-hub-v1-job/es/build/crud/http.impl.js +12 -0
- package/@wix/ambassador-hub-v1-job/es/build/crud/http.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/crud/rpc.impl.d.ts +5 -0
- package/@wix/ambassador-hub-v1-job/es/build/crud/rpc.impl.js +19 -0
- package/@wix/ambassador-hub-v1-job/es/build/crud/rpc.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/http.impl.d.ts +54 -0
- package/@wix/ambassador-hub-v1-job/es/build/http.impl.js +680 -0
- package/@wix/ambassador-hub-v1-job/es/build/http.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/meta.impl.d.ts +24 -0
- package/@wix/ambassador-hub-v1-job/es/build/meta.impl.js +128 -0
- package/@wix/ambassador-hub-v1-job/es/build/meta.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/proto/client/proto-generated.d.ts +15832 -0
- package/@wix/ambassador-hub-v1-job/es/build/proto/client/proto-generated.js +5 -0
- package/@wix/ambassador-hub-v1-job/es/build/proto/proto-generated.d.ts +7912 -0
- package/@wix/ambassador-hub-v1-job/es/build/proto/proto-generated.js +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/proto/server/proto-generated.d.ts +15777 -0
- package/@wix/ambassador-hub-v1-job/es/build/proto/server/proto-generated.js +5 -0
- package/@wix/ambassador-hub-v1-job/es/build/rpc.impl.d.ts +67 -0
- package/@wix/ambassador-hub-v1-job/es/build/rpc.impl.js +158 -0
- package/@wix/ambassador-hub-v1-job/es/build/rpc.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/types.impl.d.ts +2156 -0
- package/@wix/ambassador-hub-v1-job/es/build/types.impl.js +124 -0
- package/@wix/ambassador-hub-v1-job/es/build/types.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/http/package.json +7 -0
- package/@wix/ambassador-hub-v1-job/meta/package.json +7 -0
- package/@wix/ambassador-hub-v1-job/package.json +108 -0
- package/@wix/ambassador-hub-v1-job/rpc/package.json +6 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/common.proto +63 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/data-item-service.proto +915 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/aggregate-pipeline.proto +528 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/aggregate.proto +146 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/async-job-status.proto +34 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/async-patch-by-filter.proto +66 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/async-remove-by-filter.proto +59 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-data-item-reference-result.proto +22 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-data-item-result.proto +24 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-insert-references.proto +54 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-insert.proto +75 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-publish-data-item-drafts.proto +46 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-remove-references.proto +48 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-remove.proto +70 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-save.proto +80 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-unpublish-data-items.proto +53 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-update.proto +85 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/condition.proto +15 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/count.proto +82 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/create-data-item-draft.proto +24 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/data-item-reference.proto +23 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/data-item.proto +84 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/distinct.proto +92 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/get.proto +101 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/insert-reference.proto +47 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/insert.proto +70 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/is-referenced.proto +55 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/options.proto +37 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/patch-data-item.proto +184 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/publish-data-item-draft.proto +24 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/query-referenced.proto +145 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/query.proto +157 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/reference-metadata.proto +15 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/remove-reference.proto +42 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/remove.proto +65 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/replace-references.proto +48 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/save.proto +87 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/search.proto +78 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/truncate.proto +33 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/unpublish-data-item.proto +31 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/update.proto +80 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/upstream/wix/common/bulk.proto +60 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/upstream/wix/common/paging.proto +113 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/upstream/wix/common/query.proto +121 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/upstream/wix/common/sorting.proto +26 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/iptf/webhooks/debug.proto +34 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/iptf/webhooks/kv.proto +42 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/iptf/webhooks/message_envelope.proto +54 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/raw-http-messages.proto +39 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/webhooks_debug_service.proto +32 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/webhooks_sync_service.proto +33 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/annotations.proto +560 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/api_errors.proto +142 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/callback.proto +173 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/entity.proto +133 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/errors.proto +127 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/idempotency.proto +25 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/permissions.proto +47 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/subscription.proto +44 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/validations.proto +147 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/address.proto +148 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/bulk.proto +53 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/data/dataextensions/extended-fields.proto +20 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/data/dataextensions/update-extended-fields-messages.proto +15 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/data/errors.proto +435 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/domainevents/attributeupdated.proto +20 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/domainevents/domainevents.proto +112 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/identification.proto +40 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/image.proto +8 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/media.proto +280 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/money.proto +32 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/pageurl.proto +32 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/paging.proto +121 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/query.proto +889 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/sorting.proto +36 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/spi.proto +80 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/tags.proto +55 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/wixlink.proto +203 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/http/field_mask.proto +46 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/common.proto +108 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/data_movement_service.proto +287 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/destinations.proto +154 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/job.proto +164 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/job_spec.proto +41 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/oauth_service.proto +218 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/schema.proto +48 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/shared.proto +98 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/sources.proto +234 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/transformations.proto +23 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/spi/definitions.proto +188 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-hub-v1-job/types/package.json +7 -0
- package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +8 -0
- package/@wix/bex-bundled-mini-essentials/package.json +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,1705 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.aAccumulator = aAccumulator;
|
|
21
|
+
exports.aAvg = aAvg;
|
|
22
|
+
exports.aFirst = aFirst;
|
|
23
|
+
exports.aLast = aLast;
|
|
24
|
+
exports.aMax = aMax;
|
|
25
|
+
exports.aMin = aMin;
|
|
26
|
+
exports.aPush = aPush;
|
|
27
|
+
exports.aSum = aSum;
|
|
28
|
+
exports.aAddFields = aAddFields;
|
|
29
|
+
exports.aAddField = aAddField;
|
|
30
|
+
exports.aAggregationPipeline = aAggregationPipeline;
|
|
31
|
+
exports.aExpression = aExpression;
|
|
32
|
+
exports.aAbsOperation = aAbsOperation;
|
|
33
|
+
exports.aAddOperation = aAddOperation;
|
|
34
|
+
exports.aCeilOperation = aCeilOperation;
|
|
35
|
+
exports.aConcatOperation = aConcatOperation;
|
|
36
|
+
exports.aConditionOperation = aConditionOperation;
|
|
37
|
+
exports.aDivideOperation = aDivideOperation;
|
|
38
|
+
exports.aFloorOperation = aFloorOperation;
|
|
39
|
+
exports.aGreaterThanOperation = aGreaterThanOperation;
|
|
40
|
+
exports.aLengthOperation = aLengthOperation;
|
|
41
|
+
exports.aModOperation = aModOperation;
|
|
42
|
+
exports.aMultiplyOperation = aMultiplyOperation;
|
|
43
|
+
exports.aSizeOperation = aSizeOperation;
|
|
44
|
+
exports.aStringifyOperation = aStringifyOperation;
|
|
45
|
+
exports.aSubstringOperation = aSubstringOperation;
|
|
46
|
+
exports.aSubtractOperation = aSubtractOperation;
|
|
47
|
+
exports.aSumOperation = aSumOperation;
|
|
48
|
+
exports.aToLowerOperation = aToLowerOperation;
|
|
49
|
+
exports.aToUpperOperation = aToUpperOperation;
|
|
50
|
+
exports.aGroup = aGroup;
|
|
51
|
+
exports.aGroupId = aGroupId;
|
|
52
|
+
exports.aLookup = aLookup;
|
|
53
|
+
exports.aObjectToArray = aObjectToArray;
|
|
54
|
+
exports.aProjection = aProjection;
|
|
55
|
+
exports.aExclude = aExclude;
|
|
56
|
+
exports.aProjectionField = aProjectionField;
|
|
57
|
+
exports.aInclude = aInclude;
|
|
58
|
+
exports.aProjectNested = aProjectNested;
|
|
59
|
+
exports.aReshape = aReshape;
|
|
60
|
+
exports.aAggregatePipelineDataItemsRequestSorting = aAggregatePipelineDataItemsRequestSorting;
|
|
61
|
+
exports.aStage = aStage;
|
|
62
|
+
exports.aUnionWith = aUnionWith;
|
|
63
|
+
exports.aUnwindArray = aUnwindArray;
|
|
64
|
+
exports.aCommonCursorPaging = aCommonCursorPaging;
|
|
65
|
+
exports.aCommonPaging = aCommonPaging;
|
|
66
|
+
exports.aCommonSorting = aCommonSorting;
|
|
67
|
+
exports.aCommonSortOrder = aCommonSortOrder;
|
|
68
|
+
exports.aAccountInfo = aAccountInfo;
|
|
69
|
+
exports.aIdentificationData = aIdentificationData;
|
|
70
|
+
exports.aWebhookIdentityType = aWebhookIdentityType;
|
|
71
|
+
exports.aMessageEnvelope = aMessageEnvelope;
|
|
72
|
+
exports.aEmpty = aEmpty;
|
|
73
|
+
exports.aApplicationError = aApplicationError;
|
|
74
|
+
exports.aCursorPaging = aCursorPaging;
|
|
75
|
+
exports.aCursorPagingMetadata = aCursorPagingMetadata;
|
|
76
|
+
exports.aCursorQuery = aCursorQuery;
|
|
77
|
+
exports.aCursors = aCursors;
|
|
78
|
+
exports.aExtendedFields = aExtendedFields;
|
|
79
|
+
exports.aActionEvent = aActionEvent;
|
|
80
|
+
exports.aDomainEvent = aDomainEvent;
|
|
81
|
+
exports.aEntityCreatedEvent = aEntityCreatedEvent;
|
|
82
|
+
exports.aEntityDeletedEvent = aEntityDeletedEvent;
|
|
83
|
+
exports.aEntityUpdatedEvent = aEntityUpdatedEvent;
|
|
84
|
+
exports.aRestoreInfo = aRestoreInfo;
|
|
85
|
+
exports.aPaging = aPaging;
|
|
86
|
+
exports.aQueryV2 = aQueryV2;
|
|
87
|
+
exports.aSorting = aSorting;
|
|
88
|
+
exports.aSortOrder = aSortOrder;
|
|
89
|
+
exports.aCreateFileUploadUrlRequest = aCreateFileUploadUrlRequest;
|
|
90
|
+
exports.aCreateFileUploadUrlResponse = aCreateFileUploadUrlResponse;
|
|
91
|
+
exports.aDataMovementJob = aDataMovementJob;
|
|
92
|
+
exports.aDestination = aDestination;
|
|
93
|
+
exports.aField = aField;
|
|
94
|
+
exports.aFieldType = aFieldType;
|
|
95
|
+
exports.aFileDestination = aFileDestination;
|
|
96
|
+
exports.aFileFormat = aFileFormat;
|
|
97
|
+
exports.aGetJobRequest = aGetJobRequest;
|
|
98
|
+
exports.aGetJobResponse = aGetJobResponse;
|
|
99
|
+
exports.aItemsSuccessfulInfo = aItemsSuccessfulInfo;
|
|
100
|
+
exports.aJobCallback = aJobCallback;
|
|
101
|
+
exports.aFailedOptions = aFailedOptions;
|
|
102
|
+
exports.aInProgressOptions = aInProgressOptions;
|
|
103
|
+
exports.aPartiallySuccessfulOptions = aPartiallySuccessfulOptions;
|
|
104
|
+
exports.aJobStatus = aJobStatus;
|
|
105
|
+
exports.aListJobsRequest = aListJobsRequest;
|
|
106
|
+
exports.aListJobsResponse = aListJobsResponse;
|
|
107
|
+
exports.aListMovementLogsRequest = aListMovementLogsRequest;
|
|
108
|
+
exports.aListMovementLogsResponse = aListMovementLogsResponse;
|
|
109
|
+
exports.aLocalizationDestination = aLocalizationDestination;
|
|
110
|
+
exports.aMovementLog = aMovementLog;
|
|
111
|
+
exports.aPartiallySuccessfulStatusOptions = aPartiallySuccessfulStatusOptions;
|
|
112
|
+
exports.aProgress = aProgress;
|
|
113
|
+
exports.aUnits = aUnits;
|
|
114
|
+
exports.aQueryJobsRequest = aQueryJobsRequest;
|
|
115
|
+
exports.aQueryJobsResponse = aQueryJobsResponse;
|
|
116
|
+
exports.aSchema = aSchema;
|
|
117
|
+
exports.aSource = aSource;
|
|
118
|
+
exports.aDataMovementJobLogs = aDataMovementJobLogs;
|
|
119
|
+
exports.aExternalFileSource = aExternalFileSource;
|
|
120
|
+
exports.aFileSource = aFileSource;
|
|
121
|
+
exports.aGoogleSheetsSource = aGoogleSheetsSource;
|
|
122
|
+
exports.aLocalizationSource = aLocalizationSource;
|
|
123
|
+
exports.aTestSource = aTestSource;
|
|
124
|
+
exports.aWixDataCollectionDefinitionSource = aWixDataCollectionDefinitionSource;
|
|
125
|
+
exports.aWixDataSource = aWixDataSource;
|
|
126
|
+
exports.aAggregationQuery = aAggregationQuery;
|
|
127
|
+
exports.aFilterQuery = aFilterQuery;
|
|
128
|
+
exports.aWixMediaSource = aWixMediaSource;
|
|
129
|
+
exports.aMediaType = aMediaType;
|
|
130
|
+
exports.aStoresCatalogInventoryDestination = aStoresCatalogInventoryDestination;
|
|
131
|
+
exports.aStoresCatalogProductsDestination = aStoresCatalogProductsDestination;
|
|
132
|
+
exports.aSubmitJobRequest = aSubmitJobRequest;
|
|
133
|
+
exports.aSubmitJobResponse = aSubmitJobResponse;
|
|
134
|
+
exports.aTerminateJobByIdRequest = aTerminateJobByIdRequest;
|
|
135
|
+
exports.aTerminateJobByIdResponse = aTerminateJobByIdResponse;
|
|
136
|
+
exports.aTerminateJobRequest = aTerminateJobRequest;
|
|
137
|
+
exports.aTerminateJobResponse = aTerminateJobResponse;
|
|
138
|
+
exports.aTestDestination = aTestDestination;
|
|
139
|
+
exports.aTestTransformation = aTestTransformation;
|
|
140
|
+
exports.aTransformation = aTransformation;
|
|
141
|
+
exports.aWixDataCollectionDefinitionDestination = aWixDataCollectionDefinitionDestination;
|
|
142
|
+
exports.aWixDataCollectionDefinitionDestinationWritePolicy = aWixDataCollectionDefinitionDestinationWritePolicy;
|
|
143
|
+
exports.aWixDataDestination = aWixDataDestination;
|
|
144
|
+
exports.aWritePolicy = aWritePolicy;
|
|
145
|
+
exports.aWixDataEnvironment = aWixDataEnvironment;
|
|
146
|
+
exports.aWixMediaDestination = aWixMediaDestination;
|
|
147
|
+
exports.aWixMediaDestinationWritePolicy = aWixMediaDestinationWritePolicy;
|
|
148
|
+
var metro_common_builders_1 = require("@wix/metro-common-builders");
|
|
149
|
+
var types_impl_js_1 = require("./types.impl.js");
|
|
150
|
+
// @ts-ignore
|
|
151
|
+
var callsite_1 = __importDefault(require("callsite"));
|
|
152
|
+
function aAccumulator(overrideObject) {
|
|
153
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
154
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
155
|
+
return {};
|
|
156
|
+
}
|
|
157
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
158
|
+
avg: aAvg(),
|
|
159
|
+
resultFieldName: (0, metro_common_builders_1.someString)({
|
|
160
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
161
|
+
}),
|
|
162
|
+
}, overrideObject);
|
|
163
|
+
}
|
|
164
|
+
function aAvg(overrideObject) {
|
|
165
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
166
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
167
|
+
return {};
|
|
168
|
+
}
|
|
169
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
170
|
+
expression: aExpression(),
|
|
171
|
+
}, overrideObject);
|
|
172
|
+
}
|
|
173
|
+
function aFirst(overrideObject) {
|
|
174
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
175
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
176
|
+
return {};
|
|
177
|
+
}
|
|
178
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
179
|
+
expression: aExpression(),
|
|
180
|
+
}, overrideObject);
|
|
181
|
+
}
|
|
182
|
+
function aLast(overrideObject) {
|
|
183
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
184
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
185
|
+
return {};
|
|
186
|
+
}
|
|
187
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
188
|
+
expression: aExpression(),
|
|
189
|
+
}, overrideObject);
|
|
190
|
+
}
|
|
191
|
+
function aMax(overrideObject) {
|
|
192
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
193
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
194
|
+
return {};
|
|
195
|
+
}
|
|
196
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
197
|
+
expression: aExpression(),
|
|
198
|
+
}, overrideObject);
|
|
199
|
+
}
|
|
200
|
+
function aMin(overrideObject) {
|
|
201
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
202
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
203
|
+
return {};
|
|
204
|
+
}
|
|
205
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
206
|
+
expression: aExpression(),
|
|
207
|
+
}, overrideObject);
|
|
208
|
+
}
|
|
209
|
+
function aPush(overrideObject) {
|
|
210
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
211
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
212
|
+
return {};
|
|
213
|
+
}
|
|
214
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
215
|
+
expression: aExpression(),
|
|
216
|
+
}, overrideObject);
|
|
217
|
+
}
|
|
218
|
+
function aSum(overrideObject) {
|
|
219
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
220
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
221
|
+
return {};
|
|
222
|
+
}
|
|
223
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
224
|
+
expression: aExpression(),
|
|
225
|
+
}, overrideObject);
|
|
226
|
+
}
|
|
227
|
+
function aAddFields(overrideObject) {
|
|
228
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
229
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
230
|
+
return {};
|
|
231
|
+
}
|
|
232
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
233
|
+
fields: [
|
|
234
|
+
aAddField(),
|
|
235
|
+
aAddField(),
|
|
236
|
+
aAddField(),
|
|
237
|
+
aAddField(),
|
|
238
|
+
aAddField(),
|
|
239
|
+
aAddField(),
|
|
240
|
+
aAddField(),
|
|
241
|
+
aAddField(),
|
|
242
|
+
aAddField(),
|
|
243
|
+
aAddField(),
|
|
244
|
+
],
|
|
245
|
+
}, overrideObject);
|
|
246
|
+
}
|
|
247
|
+
function aAddField(overrideObject) {
|
|
248
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
249
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
250
|
+
return {};
|
|
251
|
+
}
|
|
252
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
253
|
+
fieldName: (0, metro_common_builders_1.someString)({
|
|
254
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
255
|
+
}),
|
|
256
|
+
expression: aExpression(),
|
|
257
|
+
}, overrideObject);
|
|
258
|
+
}
|
|
259
|
+
function aAggregationPipeline(overrideObject) {
|
|
260
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
261
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
262
|
+
return {};
|
|
263
|
+
}
|
|
264
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
265
|
+
paging: aCommonPaging(),
|
|
266
|
+
stages: [
|
|
267
|
+
aStage(),
|
|
268
|
+
aStage(),
|
|
269
|
+
aStage(),
|
|
270
|
+
aStage(),
|
|
271
|
+
aStage(),
|
|
272
|
+
aStage(),
|
|
273
|
+
aStage(),
|
|
274
|
+
aStage(),
|
|
275
|
+
aStage(),
|
|
276
|
+
aStage(),
|
|
277
|
+
],
|
|
278
|
+
}, overrideObject);
|
|
279
|
+
}
|
|
280
|
+
function aExpression(overrideObject) {
|
|
281
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
282
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
283
|
+
return {};
|
|
284
|
+
}
|
|
285
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
286
|
+
fieldPath: (0, metro_common_builders_1.someString)({
|
|
287
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
288
|
+
}),
|
|
289
|
+
}, overrideObject);
|
|
290
|
+
}
|
|
291
|
+
function aAbsOperation(overrideObject) {
|
|
292
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
293
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
294
|
+
return {};
|
|
295
|
+
}
|
|
296
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
297
|
+
expression: aExpression(),
|
|
298
|
+
}, overrideObject);
|
|
299
|
+
}
|
|
300
|
+
function aAddOperation(overrideObject) {
|
|
301
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
302
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
303
|
+
return {};
|
|
304
|
+
}
|
|
305
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
306
|
+
expressions: [
|
|
307
|
+
aExpression(),
|
|
308
|
+
aExpression(),
|
|
309
|
+
aExpression(),
|
|
310
|
+
aExpression(),
|
|
311
|
+
aExpression(),
|
|
312
|
+
aExpression(),
|
|
313
|
+
aExpression(),
|
|
314
|
+
aExpression(),
|
|
315
|
+
aExpression(),
|
|
316
|
+
aExpression(),
|
|
317
|
+
],
|
|
318
|
+
}, overrideObject);
|
|
319
|
+
}
|
|
320
|
+
function aCeilOperation(overrideObject) {
|
|
321
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
322
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
323
|
+
return {};
|
|
324
|
+
}
|
|
325
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
326
|
+
expression: aExpression(),
|
|
327
|
+
}, overrideObject);
|
|
328
|
+
}
|
|
329
|
+
function aConcatOperation(overrideObject) {
|
|
330
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
331
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
332
|
+
return {};
|
|
333
|
+
}
|
|
334
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
335
|
+
expressions: [
|
|
336
|
+
aExpression(),
|
|
337
|
+
aExpression(),
|
|
338
|
+
aExpression(),
|
|
339
|
+
aExpression(),
|
|
340
|
+
aExpression(),
|
|
341
|
+
aExpression(),
|
|
342
|
+
aExpression(),
|
|
343
|
+
aExpression(),
|
|
344
|
+
aExpression(),
|
|
345
|
+
aExpression(),
|
|
346
|
+
],
|
|
347
|
+
}, overrideObject);
|
|
348
|
+
}
|
|
349
|
+
function aConditionOperation(overrideObject) {
|
|
350
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
351
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
352
|
+
return {};
|
|
353
|
+
}
|
|
354
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
355
|
+
ifExpression: aExpression(),
|
|
356
|
+
whenTrue: aExpression(),
|
|
357
|
+
whenFalse: aExpression(),
|
|
358
|
+
}, overrideObject);
|
|
359
|
+
}
|
|
360
|
+
function aDivideOperation(overrideObject) {
|
|
361
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
362
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
363
|
+
return {};
|
|
364
|
+
}
|
|
365
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
366
|
+
firstExpression: aExpression(),
|
|
367
|
+
secondExpression: aExpression(),
|
|
368
|
+
}, overrideObject);
|
|
369
|
+
}
|
|
370
|
+
function aFloorOperation(overrideObject) {
|
|
371
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
372
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
373
|
+
return {};
|
|
374
|
+
}
|
|
375
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
376
|
+
expression: aExpression(),
|
|
377
|
+
}, overrideObject);
|
|
378
|
+
}
|
|
379
|
+
function aGreaterThanOperation(overrideObject) {
|
|
380
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
381
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
382
|
+
return {};
|
|
383
|
+
}
|
|
384
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
385
|
+
firstExpression: aExpression(),
|
|
386
|
+
secondExpression: aExpression(),
|
|
387
|
+
}, overrideObject);
|
|
388
|
+
}
|
|
389
|
+
function aLengthOperation(overrideObject) {
|
|
390
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
391
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
392
|
+
return {};
|
|
393
|
+
}
|
|
394
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
395
|
+
expression: aExpression(),
|
|
396
|
+
}, overrideObject);
|
|
397
|
+
}
|
|
398
|
+
function aModOperation(overrideObject) {
|
|
399
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
400
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
401
|
+
return {};
|
|
402
|
+
}
|
|
403
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
404
|
+
firstExpression: aExpression(),
|
|
405
|
+
secondExpression: aExpression(),
|
|
406
|
+
}, overrideObject);
|
|
407
|
+
}
|
|
408
|
+
function aMultiplyOperation(overrideObject) {
|
|
409
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
410
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
411
|
+
return {};
|
|
412
|
+
}
|
|
413
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
414
|
+
expressions: [
|
|
415
|
+
aExpression(),
|
|
416
|
+
aExpression(),
|
|
417
|
+
aExpression(),
|
|
418
|
+
aExpression(),
|
|
419
|
+
aExpression(),
|
|
420
|
+
aExpression(),
|
|
421
|
+
aExpression(),
|
|
422
|
+
aExpression(),
|
|
423
|
+
aExpression(),
|
|
424
|
+
aExpression(),
|
|
425
|
+
],
|
|
426
|
+
}, overrideObject);
|
|
427
|
+
}
|
|
428
|
+
function aSizeOperation(overrideObject) {
|
|
429
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
430
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
431
|
+
return {};
|
|
432
|
+
}
|
|
433
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
434
|
+
expression: aExpression(),
|
|
435
|
+
}, overrideObject);
|
|
436
|
+
}
|
|
437
|
+
function aStringifyOperation(overrideObject) {
|
|
438
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
439
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
440
|
+
return {};
|
|
441
|
+
}
|
|
442
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
443
|
+
expression: aExpression(),
|
|
444
|
+
}, overrideObject);
|
|
445
|
+
}
|
|
446
|
+
function aSubstringOperation(overrideObject) {
|
|
447
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
448
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
449
|
+
return {};
|
|
450
|
+
}
|
|
451
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
452
|
+
expression: aExpression(),
|
|
453
|
+
startExpression: aExpression(),
|
|
454
|
+
lengthExpression: aExpression(),
|
|
455
|
+
}, overrideObject);
|
|
456
|
+
}
|
|
457
|
+
function aSubtractOperation(overrideObject) {
|
|
458
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
459
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
460
|
+
return {};
|
|
461
|
+
}
|
|
462
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
463
|
+
firstExpression: aExpression(),
|
|
464
|
+
secondExpression: aExpression(),
|
|
465
|
+
}, overrideObject);
|
|
466
|
+
}
|
|
467
|
+
function aSumOperation(overrideObject) {
|
|
468
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
469
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
470
|
+
return {};
|
|
471
|
+
}
|
|
472
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
473
|
+
expressions: [
|
|
474
|
+
aExpression(),
|
|
475
|
+
aExpression(),
|
|
476
|
+
aExpression(),
|
|
477
|
+
aExpression(),
|
|
478
|
+
aExpression(),
|
|
479
|
+
aExpression(),
|
|
480
|
+
aExpression(),
|
|
481
|
+
aExpression(),
|
|
482
|
+
aExpression(),
|
|
483
|
+
aExpression(),
|
|
484
|
+
],
|
|
485
|
+
}, overrideObject);
|
|
486
|
+
}
|
|
487
|
+
function aToLowerOperation(overrideObject) {
|
|
488
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
489
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
490
|
+
return {};
|
|
491
|
+
}
|
|
492
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
493
|
+
expression: aExpression(),
|
|
494
|
+
}, overrideObject);
|
|
495
|
+
}
|
|
496
|
+
function aToUpperOperation(overrideObject) {
|
|
497
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
498
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
499
|
+
return {};
|
|
500
|
+
}
|
|
501
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
502
|
+
expression: aExpression(),
|
|
503
|
+
}, overrideObject);
|
|
504
|
+
}
|
|
505
|
+
function aGroup(overrideObject) {
|
|
506
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
507
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
508
|
+
return {};
|
|
509
|
+
}
|
|
510
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
511
|
+
groupIds: [
|
|
512
|
+
aGroupId(),
|
|
513
|
+
aGroupId(),
|
|
514
|
+
aGroupId(),
|
|
515
|
+
aGroupId(),
|
|
516
|
+
aGroupId(),
|
|
517
|
+
aGroupId(),
|
|
518
|
+
aGroupId(),
|
|
519
|
+
aGroupId(),
|
|
520
|
+
aGroupId(),
|
|
521
|
+
aGroupId(),
|
|
522
|
+
],
|
|
523
|
+
accumulators: [
|
|
524
|
+
aAccumulator(),
|
|
525
|
+
aAccumulator(),
|
|
526
|
+
aAccumulator(),
|
|
527
|
+
aAccumulator(),
|
|
528
|
+
aAccumulator(),
|
|
529
|
+
aAccumulator(),
|
|
530
|
+
aAccumulator(),
|
|
531
|
+
aAccumulator(),
|
|
532
|
+
aAccumulator(),
|
|
533
|
+
aAccumulator(),
|
|
534
|
+
],
|
|
535
|
+
}, overrideObject);
|
|
536
|
+
}
|
|
537
|
+
function aGroupId(overrideObject) {
|
|
538
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
539
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
540
|
+
return {};
|
|
541
|
+
}
|
|
542
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
543
|
+
key: (0, metro_common_builders_1.someString)({
|
|
544
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
545
|
+
}),
|
|
546
|
+
expression: aExpression(),
|
|
547
|
+
}, overrideObject);
|
|
548
|
+
}
|
|
549
|
+
function aLookup(overrideObject) {
|
|
550
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
551
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
552
|
+
dataCollectionId: (0, metro_common_builders_1.someString)({
|
|
553
|
+
validations: [{ type: 'MAX_LENGTH', value: '256' }],
|
|
554
|
+
}),
|
|
555
|
+
localField: (0, metro_common_builders_1.someString)({
|
|
556
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
557
|
+
}),
|
|
558
|
+
foreignField: (0, metro_common_builders_1.someString)({
|
|
559
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
560
|
+
}),
|
|
561
|
+
asField: (0, metro_common_builders_1.someString)({
|
|
562
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
563
|
+
}),
|
|
564
|
+
}, overrideObject);
|
|
565
|
+
}
|
|
566
|
+
function aObjectToArray(overrideObject) {
|
|
567
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
568
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
569
|
+
objectFieldName: (0, metro_common_builders_1.someString)({
|
|
570
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
571
|
+
}),
|
|
572
|
+
destinationFieldName: (0, metro_common_builders_1.someString)({
|
|
573
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
574
|
+
}),
|
|
575
|
+
}, overrideObject);
|
|
576
|
+
}
|
|
577
|
+
function aProjection(overrideObject) {
|
|
578
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
579
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
580
|
+
return {};
|
|
581
|
+
}
|
|
582
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
583
|
+
fields: [
|
|
584
|
+
aProjectionField(),
|
|
585
|
+
aProjectionField(),
|
|
586
|
+
aProjectionField(),
|
|
587
|
+
aProjectionField(),
|
|
588
|
+
aProjectionField(),
|
|
589
|
+
aProjectionField(),
|
|
590
|
+
aProjectionField(),
|
|
591
|
+
aProjectionField(),
|
|
592
|
+
aProjectionField(),
|
|
593
|
+
aProjectionField(),
|
|
594
|
+
],
|
|
595
|
+
}, overrideObject);
|
|
596
|
+
}
|
|
597
|
+
function aExclude(overrideObject) {
|
|
598
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
599
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
600
|
+
fieldName: (0, metro_common_builders_1.someString)({
|
|
601
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
602
|
+
}),
|
|
603
|
+
}, overrideObject);
|
|
604
|
+
}
|
|
605
|
+
function aProjectionField(overrideObject) {
|
|
606
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
607
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
608
|
+
return {};
|
|
609
|
+
}
|
|
610
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
611
|
+
include: aInclude(),
|
|
612
|
+
}, overrideObject);
|
|
613
|
+
}
|
|
614
|
+
function aInclude(overrideObject) {
|
|
615
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
616
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
617
|
+
fieldName: (0, metro_common_builders_1.someString)({
|
|
618
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
619
|
+
}),
|
|
620
|
+
}, overrideObject);
|
|
621
|
+
}
|
|
622
|
+
function aProjectNested(overrideObject) {
|
|
623
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
624
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
625
|
+
return {};
|
|
626
|
+
}
|
|
627
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
628
|
+
resultFieldName: (0, metro_common_builders_1.someString)({
|
|
629
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
630
|
+
}),
|
|
631
|
+
fields: [
|
|
632
|
+
aProjectionField(),
|
|
633
|
+
aProjectionField(),
|
|
634
|
+
aProjectionField(),
|
|
635
|
+
aProjectionField(),
|
|
636
|
+
aProjectionField(),
|
|
637
|
+
aProjectionField(),
|
|
638
|
+
aProjectionField(),
|
|
639
|
+
aProjectionField(),
|
|
640
|
+
aProjectionField(),
|
|
641
|
+
aProjectionField(),
|
|
642
|
+
],
|
|
643
|
+
}, overrideObject);
|
|
644
|
+
}
|
|
645
|
+
function aReshape(overrideObject) {
|
|
646
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
647
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
648
|
+
return {};
|
|
649
|
+
}
|
|
650
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
651
|
+
resultFieldName: (0, metro_common_builders_1.someString)({
|
|
652
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
653
|
+
}),
|
|
654
|
+
expression: aExpression(),
|
|
655
|
+
}, overrideObject);
|
|
656
|
+
}
|
|
657
|
+
function aAggregatePipelineDataItemsRequestSorting(overrideObject) {
|
|
658
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
659
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
660
|
+
return {};
|
|
661
|
+
}
|
|
662
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
663
|
+
values: [
|
|
664
|
+
aCommonSorting(),
|
|
665
|
+
aCommonSorting(),
|
|
666
|
+
aCommonSorting(),
|
|
667
|
+
aCommonSorting(),
|
|
668
|
+
aCommonSorting(),
|
|
669
|
+
aCommonSorting(),
|
|
670
|
+
aCommonSorting(),
|
|
671
|
+
aCommonSorting(),
|
|
672
|
+
aCommonSorting(),
|
|
673
|
+
aCommonSorting(),
|
|
674
|
+
],
|
|
675
|
+
}, overrideObject);
|
|
676
|
+
}
|
|
677
|
+
function aStage(overrideObject) {
|
|
678
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
679
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
680
|
+
return {};
|
|
681
|
+
}
|
|
682
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
683
|
+
group: aGroup(),
|
|
684
|
+
}, overrideObject);
|
|
685
|
+
}
|
|
686
|
+
function aUnionWith(overrideObject) {
|
|
687
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
688
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
689
|
+
return {};
|
|
690
|
+
}
|
|
691
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
692
|
+
dataCollectionId: (0, metro_common_builders_1.someString)({
|
|
693
|
+
validations: [{ type: 'MAX_LENGTH', value: '256' }],
|
|
694
|
+
}),
|
|
695
|
+
pipeline: aAggregationPipeline(),
|
|
696
|
+
}, overrideObject);
|
|
697
|
+
}
|
|
698
|
+
function aUnwindArray(overrideObject) {
|
|
699
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
700
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
701
|
+
arrayFieldName: (0, metro_common_builders_1.someString)({
|
|
702
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
703
|
+
}),
|
|
704
|
+
}, overrideObject);
|
|
705
|
+
}
|
|
706
|
+
function aCommonCursorPaging(overrideObject) {
|
|
707
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
708
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
709
|
+
limit: (0, metro_common_builders_1.someNumber)({
|
|
710
|
+
validations: [
|
|
711
|
+
{ type: 'MIN' },
|
|
712
|
+
{ type: 'MAX', value: '1000' },
|
|
713
|
+
],
|
|
714
|
+
}),
|
|
715
|
+
cursor: (0, metro_common_builders_1.someString)({
|
|
716
|
+
validations: [
|
|
717
|
+
{ type: 'MAX_LENGTH', value: '150000' },
|
|
718
|
+
],
|
|
719
|
+
}),
|
|
720
|
+
}, overrideObject);
|
|
721
|
+
}
|
|
722
|
+
function aCommonPaging(overrideObject) {
|
|
723
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
724
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
725
|
+
limit: (0, metro_common_builders_1.someNumber)({
|
|
726
|
+
validations: [{ type: 'MIN' }],
|
|
727
|
+
}),
|
|
728
|
+
offset: (0, metro_common_builders_1.someNumber)({
|
|
729
|
+
validations: [{ type: 'MIN' }],
|
|
730
|
+
}),
|
|
731
|
+
}, overrideObject);
|
|
732
|
+
}
|
|
733
|
+
function aCommonSorting(overrideObject) {
|
|
734
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
735
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
736
|
+
return {};
|
|
737
|
+
}
|
|
738
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
739
|
+
fieldName: (0, metro_common_builders_1.someString)({
|
|
740
|
+
validations: [
|
|
741
|
+
{ type: 'MIN_LENGTH', value: '1' },
|
|
742
|
+
{ type: 'MAX_LENGTH', value: '1000' },
|
|
743
|
+
],
|
|
744
|
+
}),
|
|
745
|
+
order: aCommonSortOrder(),
|
|
746
|
+
}, overrideObject);
|
|
747
|
+
}
|
|
748
|
+
function aCommonSortOrder(enumFirstItem) {
|
|
749
|
+
if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.CommonSortOrder.ASC; }
|
|
750
|
+
return enumFirstItem;
|
|
751
|
+
}
|
|
752
|
+
function aAccountInfo(overrideObject) {
|
|
753
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
754
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
755
|
+
accountId: (0, metro_common_builders_1.someString)({
|
|
756
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
757
|
+
}),
|
|
758
|
+
parentAccountId: (0, metro_common_builders_1.someString)({
|
|
759
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
760
|
+
}),
|
|
761
|
+
siteId: (0, metro_common_builders_1.someString)({
|
|
762
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
763
|
+
}),
|
|
764
|
+
}, overrideObject);
|
|
765
|
+
}
|
|
766
|
+
function aIdentificationData(overrideObject) {
|
|
767
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
768
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
769
|
+
return {};
|
|
770
|
+
}
|
|
771
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
772
|
+
anonymousVisitorId: (0, metro_common_builders_1.someString)({
|
|
773
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
774
|
+
}),
|
|
775
|
+
identityType: aWebhookIdentityType(),
|
|
776
|
+
}, overrideObject);
|
|
777
|
+
}
|
|
778
|
+
function aWebhookIdentityType(enumFirstItem) {
|
|
779
|
+
if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.WebhookIdentityType.UNKNOWN; }
|
|
780
|
+
return enumFirstItem;
|
|
781
|
+
}
|
|
782
|
+
function aMessageEnvelope(overrideObject) {
|
|
783
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
784
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
785
|
+
return {};
|
|
786
|
+
}
|
|
787
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
788
|
+
instanceId: (0, metro_common_builders_1.someString)({
|
|
789
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
790
|
+
}),
|
|
791
|
+
eventType: (0, metro_common_builders_1.someString)({
|
|
792
|
+
validations: [{ type: 'MAX_LENGTH', value: '150' }],
|
|
793
|
+
}),
|
|
794
|
+
identity: aIdentificationData(),
|
|
795
|
+
data: (0, metro_common_builders_1.someString)(),
|
|
796
|
+
accountInfo: aAccountInfo(),
|
|
797
|
+
}, overrideObject);
|
|
798
|
+
}
|
|
799
|
+
function aEmpty(overrideObject) {
|
|
800
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
801
|
+
return (0, metro_common_builders_1.mergeDeep)({}, overrideObject);
|
|
802
|
+
}
|
|
803
|
+
function aApplicationError(overrideObject) {
|
|
804
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
805
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
806
|
+
code: (0, metro_common_builders_1.someString)(),
|
|
807
|
+
description: (0, metro_common_builders_1.someString)(),
|
|
808
|
+
data: {},
|
|
809
|
+
}, overrideObject);
|
|
810
|
+
}
|
|
811
|
+
function aCursorPaging(overrideObject) {
|
|
812
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
813
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
814
|
+
limit: (0, metro_common_builders_1.someNumber)({
|
|
815
|
+
validations: [
|
|
816
|
+
{ type: 'MIN' },
|
|
817
|
+
{ type: 'MAX', value: '100' },
|
|
818
|
+
],
|
|
819
|
+
}),
|
|
820
|
+
cursor: (0, metro_common_builders_1.someString)({
|
|
821
|
+
validations: [
|
|
822
|
+
{ type: 'MAX_LENGTH', value: '16000' },
|
|
823
|
+
],
|
|
824
|
+
}),
|
|
825
|
+
}, overrideObject);
|
|
826
|
+
}
|
|
827
|
+
function aCursorPagingMetadata(overrideObject) {
|
|
828
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
829
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
830
|
+
return {};
|
|
831
|
+
}
|
|
832
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
833
|
+
count: (0, metro_common_builders_1.someNumber)(),
|
|
834
|
+
cursors: aCursors(),
|
|
835
|
+
hasNext: true,
|
|
836
|
+
total: (0, metro_common_builders_1.someNumber)(),
|
|
837
|
+
}, overrideObject);
|
|
838
|
+
}
|
|
839
|
+
function aCursorQuery(overrideObject) {
|
|
840
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
841
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
842
|
+
return {};
|
|
843
|
+
}
|
|
844
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
845
|
+
cursorPaging: aCursorPaging(),
|
|
846
|
+
filter: {},
|
|
847
|
+
sort: [aSorting(), aSorting(), aSorting(), aSorting(), aSorting()],
|
|
848
|
+
}, overrideObject);
|
|
849
|
+
}
|
|
850
|
+
function aCursors(overrideObject) {
|
|
851
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
852
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
853
|
+
next: (0, metro_common_builders_1.someString)({
|
|
854
|
+
validations: [
|
|
855
|
+
{ type: 'MAX_LENGTH', value: '16000' },
|
|
856
|
+
],
|
|
857
|
+
}),
|
|
858
|
+
prev: (0, metro_common_builders_1.someString)({
|
|
859
|
+
validations: [
|
|
860
|
+
{ type: 'MAX_LENGTH', value: '16000' },
|
|
861
|
+
],
|
|
862
|
+
}),
|
|
863
|
+
}, overrideObject);
|
|
864
|
+
}
|
|
865
|
+
function aExtendedFields(overrideObject) {
|
|
866
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
867
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
868
|
+
namespaces: { namespaces: (0, metro_common_builders_1.someAny)() },
|
|
869
|
+
}, overrideObject);
|
|
870
|
+
}
|
|
871
|
+
function aActionEvent(overrideObject) {
|
|
872
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
873
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
874
|
+
bodyAsJson: (0, metro_common_builders_1.someString)(),
|
|
875
|
+
}, overrideObject);
|
|
876
|
+
}
|
|
877
|
+
function aDomainEvent(overrideObject) {
|
|
878
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
879
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
880
|
+
return {};
|
|
881
|
+
}
|
|
882
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
883
|
+
createdEvent: aEntityCreatedEvent(),
|
|
884
|
+
id: (0, metro_common_builders_1.someString)(),
|
|
885
|
+
entityFqdn: (0, metro_common_builders_1.someString)(),
|
|
886
|
+
slug: (0, metro_common_builders_1.someString)(),
|
|
887
|
+
entityId: (0, metro_common_builders_1.someString)(),
|
|
888
|
+
eventTime: (0, metro_common_builders_1.someDate)(),
|
|
889
|
+
triggeredByAnonymizeRequest: true,
|
|
890
|
+
originatedFrom: (0, metro_common_builders_1.someString)(),
|
|
891
|
+
entityEventSequence: (0, metro_common_builders_1.someString)({
|
|
892
|
+
validations: [{ type: 'DECIMAL_VALUE' }],
|
|
893
|
+
}),
|
|
894
|
+
}, overrideObject);
|
|
895
|
+
}
|
|
896
|
+
function aEntityCreatedEvent(overrideObject) {
|
|
897
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
898
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
899
|
+
return {};
|
|
900
|
+
}
|
|
901
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
902
|
+
entityAsJson: (0, metro_common_builders_1.someString)(),
|
|
903
|
+
triggeredByUndelete: true,
|
|
904
|
+
restoreInfo: aRestoreInfo(),
|
|
905
|
+
additionalMetadataAsJson: (0, metro_common_builders_1.someString)(),
|
|
906
|
+
}, overrideObject);
|
|
907
|
+
}
|
|
908
|
+
function aEntityDeletedEvent(overrideObject) {
|
|
909
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
910
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
911
|
+
movedToTrash: true,
|
|
912
|
+
deletedEntityAsJson: (0, metro_common_builders_1.someString)(),
|
|
913
|
+
additionalMetadataAsJson: (0, metro_common_builders_1.someString)(),
|
|
914
|
+
}, overrideObject);
|
|
915
|
+
}
|
|
916
|
+
function aEntityUpdatedEvent(overrideObject) {
|
|
917
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
918
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
919
|
+
currentEntityAsJson: (0, metro_common_builders_1.someString)(),
|
|
920
|
+
previousEntityAsJson: (0, metro_common_builders_1.someString)(),
|
|
921
|
+
modifiedFields: { modifiedFields: (0, metro_common_builders_1.someAny)() },
|
|
922
|
+
additionalMetadataAsJson: (0, metro_common_builders_1.someString)(),
|
|
923
|
+
}, overrideObject);
|
|
924
|
+
}
|
|
925
|
+
function aRestoreInfo(overrideObject) {
|
|
926
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
927
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
928
|
+
deletedDate: (0, metro_common_builders_1.someDate)(),
|
|
929
|
+
}, overrideObject);
|
|
930
|
+
}
|
|
931
|
+
function aPaging(overrideObject) {
|
|
932
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
933
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
934
|
+
limit: (0, metro_common_builders_1.someNumber)({
|
|
935
|
+
validations: [{ type: 'MIN' }],
|
|
936
|
+
}),
|
|
937
|
+
offset: (0, metro_common_builders_1.someNumber)({
|
|
938
|
+
validations: [{ type: 'MIN' }],
|
|
939
|
+
}),
|
|
940
|
+
}, overrideObject);
|
|
941
|
+
}
|
|
942
|
+
function aQueryV2(overrideObject) {
|
|
943
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
944
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
945
|
+
return {};
|
|
946
|
+
}
|
|
947
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
948
|
+
paging: aPaging(),
|
|
949
|
+
filter: {},
|
|
950
|
+
sort: [aSorting()],
|
|
951
|
+
fields: [(0, metro_common_builders_1.someString)()],
|
|
952
|
+
fieldsets: [(0, metro_common_builders_1.someString)()],
|
|
953
|
+
}, overrideObject);
|
|
954
|
+
}
|
|
955
|
+
function aSorting(overrideObject) {
|
|
956
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
957
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
958
|
+
return {};
|
|
959
|
+
}
|
|
960
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
961
|
+
fieldName: (0, metro_common_builders_1.someString)({
|
|
962
|
+
validations: [{ type: 'MAX_LENGTH', value: '512' }],
|
|
963
|
+
}),
|
|
964
|
+
order: aSortOrder(),
|
|
965
|
+
selectItemsBy: [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}],
|
|
966
|
+
}, overrideObject);
|
|
967
|
+
}
|
|
968
|
+
function aSortOrder(enumFirstItem) {
|
|
969
|
+
if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.SortOrder.ASC; }
|
|
970
|
+
return enumFirstItem;
|
|
971
|
+
}
|
|
972
|
+
function aCreateFileUploadUrlRequest(overrideObject) {
|
|
973
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
974
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
975
|
+
fileName: (0, metro_common_builders_1.someString)({
|
|
976
|
+
validations: [{ type: 'MAX_LENGTH', value: '512' }],
|
|
977
|
+
}),
|
|
978
|
+
}, overrideObject);
|
|
979
|
+
}
|
|
980
|
+
function aCreateFileUploadUrlResponse(overrideObject) {
|
|
981
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
982
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
983
|
+
fileId: (0, metro_common_builders_1.someString)({
|
|
984
|
+
validations: [{ type: 'MAX_LENGTH', value: '512' }],
|
|
985
|
+
}),
|
|
986
|
+
uploadUrl: (0, metro_common_builders_1.someString)({
|
|
987
|
+
validations: [{ type: 'MAX_LENGTH', value: '8192' }],
|
|
988
|
+
}),
|
|
989
|
+
}, overrideObject);
|
|
990
|
+
}
|
|
991
|
+
function aDataMovementJob(overrideObject) {
|
|
992
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
993
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
994
|
+
return {};
|
|
995
|
+
}
|
|
996
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
997
|
+
partiallySuccessfulOptions: aPartiallySuccessfulStatusOptions(),
|
|
998
|
+
id: (0, metro_common_builders_1.someString)({
|
|
999
|
+
validations: [
|
|
1000
|
+
{ type: 'FORMAT', value: 'GUID' },
|
|
1001
|
+
{ type: 'READ_ONLY', value: 'true' },
|
|
1002
|
+
],
|
|
1003
|
+
}),
|
|
1004
|
+
startedAt: (0, metro_common_builders_1.someDate)({
|
|
1005
|
+
validations: [{ type: 'READ_ONLY', value: 'true' }],
|
|
1006
|
+
}),
|
|
1007
|
+
status: aJobStatus(),
|
|
1008
|
+
source: aSource(),
|
|
1009
|
+
destination: aDestination(),
|
|
1010
|
+
transformations: [
|
|
1011
|
+
aTransformation(),
|
|
1012
|
+
aTransformation(),
|
|
1013
|
+
aTransformation(),
|
|
1014
|
+
aTransformation(),
|
|
1015
|
+
aTransformation(),
|
|
1016
|
+
aTransformation(),
|
|
1017
|
+
aTransformation(),
|
|
1018
|
+
aTransformation(),
|
|
1019
|
+
aTransformation(),
|
|
1020
|
+
aTransformation(),
|
|
1021
|
+
],
|
|
1022
|
+
name: (0, metro_common_builders_1.someString)({
|
|
1023
|
+
validations: [{ type: 'MAX_LENGTH', value: '1024' }],
|
|
1024
|
+
}),
|
|
1025
|
+
progress: aProgress(),
|
|
1026
|
+
finishedAt: (0, metro_common_builders_1.someDate)({
|
|
1027
|
+
validations: [{ type: 'READ_ONLY', value: 'true' }],
|
|
1028
|
+
}),
|
|
1029
|
+
error: aApplicationError(),
|
|
1030
|
+
dataCenter: (0, metro_common_builders_1.someString)({
|
|
1031
|
+
validations: [
|
|
1032
|
+
{ type: 'READ_ONLY', value: 'true' },
|
|
1033
|
+
{ type: 'MAX_LENGTH', value: '64' },
|
|
1034
|
+
],
|
|
1035
|
+
}),
|
|
1036
|
+
sourceSiteId: (0, metro_common_builders_1.someString)({
|
|
1037
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1038
|
+
}),
|
|
1039
|
+
destinationSiteId: (0, metro_common_builders_1.someString)({
|
|
1040
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1041
|
+
}),
|
|
1042
|
+
logsRecorded: (0, metro_common_builders_1.someNumber)(),
|
|
1043
|
+
scheduleId: (0, metro_common_builders_1.someString)({
|
|
1044
|
+
validations: [
|
|
1045
|
+
{ type: 'FORMAT', value: 'GUID' },
|
|
1046
|
+
{ type: 'READ_ONLY', value: 'true' },
|
|
1047
|
+
],
|
|
1048
|
+
}),
|
|
1049
|
+
extendedFields: aExtendedFields(),
|
|
1050
|
+
workflowId: (0, metro_common_builders_1.someString)({
|
|
1051
|
+
validations: [
|
|
1052
|
+
{ type: 'FORMAT', value: 'GUID' },
|
|
1053
|
+
{ type: 'READ_ONLY', value: 'true' },
|
|
1054
|
+
],
|
|
1055
|
+
}),
|
|
1056
|
+
}, overrideObject);
|
|
1057
|
+
}
|
|
1058
|
+
function aDestination(overrideObject) {
|
|
1059
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1060
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1061
|
+
return {};
|
|
1062
|
+
}
|
|
1063
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1064
|
+
wixDataCollection: aWixDataDestination(),
|
|
1065
|
+
}, overrideObject);
|
|
1066
|
+
}
|
|
1067
|
+
function aField(overrideObject) {
|
|
1068
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1069
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1070
|
+
return {};
|
|
1071
|
+
}
|
|
1072
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1073
|
+
key: (0, metro_common_builders_1.someString)({
|
|
1074
|
+
validations: [{ type: 'MAX_LENGTH', value: '1024' }],
|
|
1075
|
+
}),
|
|
1076
|
+
displayName: (0, metro_common_builders_1.someString)({
|
|
1077
|
+
validations: [{ type: 'MAX_LENGTH', value: '1024' }],
|
|
1078
|
+
}),
|
|
1079
|
+
fieldType: aFieldType(),
|
|
1080
|
+
}, overrideObject);
|
|
1081
|
+
}
|
|
1082
|
+
function aFieldType(enumFirstItem) {
|
|
1083
|
+
if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.FieldType.ANY; }
|
|
1084
|
+
return enumFirstItem;
|
|
1085
|
+
}
|
|
1086
|
+
function aFileDestination(overrideObject) {
|
|
1087
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1088
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1089
|
+
return {};
|
|
1090
|
+
}
|
|
1091
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1092
|
+
format: aFileFormat(),
|
|
1093
|
+
fileName: (0, metro_common_builders_1.someString)({
|
|
1094
|
+
validations: [{ type: 'MAX_LENGTH', value: '512' }],
|
|
1095
|
+
}),
|
|
1096
|
+
fileId: (0, metro_common_builders_1.someString)({
|
|
1097
|
+
validations: [
|
|
1098
|
+
{ type: 'READ_ONLY', value: 'true' },
|
|
1099
|
+
{ type: 'MAX_LENGTH', value: '128' },
|
|
1100
|
+
],
|
|
1101
|
+
}),
|
|
1102
|
+
url: (0, metro_common_builders_1.someString)({
|
|
1103
|
+
validations: [
|
|
1104
|
+
{ type: 'READ_ONLY', value: 'true' },
|
|
1105
|
+
{ type: 'MAX_LENGTH', value: '2048' },
|
|
1106
|
+
],
|
|
1107
|
+
}),
|
|
1108
|
+
schema: aSchema(),
|
|
1109
|
+
}, overrideObject);
|
|
1110
|
+
}
|
|
1111
|
+
function aFileFormat(enumFirstItem) {
|
|
1112
|
+
if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.FileFormat.UNKNOWN; }
|
|
1113
|
+
return enumFirstItem;
|
|
1114
|
+
}
|
|
1115
|
+
function aGetJobRequest(overrideObject) {
|
|
1116
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1117
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1118
|
+
jobId: (0, metro_common_builders_1.someString)({
|
|
1119
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1120
|
+
}),
|
|
1121
|
+
}, overrideObject);
|
|
1122
|
+
}
|
|
1123
|
+
function aGetJobResponse(overrideObject) {
|
|
1124
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1125
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1126
|
+
return {};
|
|
1127
|
+
}
|
|
1128
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1129
|
+
job: aDataMovementJob(),
|
|
1130
|
+
}, overrideObject);
|
|
1131
|
+
}
|
|
1132
|
+
function aItemsSuccessfulInfo(overrideObject) {
|
|
1133
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1134
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1135
|
+
itemsCreated: (0, metro_common_builders_1.someNumber)(),
|
|
1136
|
+
itemsUpdated: (0, metro_common_builders_1.someNumber)(),
|
|
1137
|
+
itemsPartiallySuccessful: (0, metro_common_builders_1.someNumber)(),
|
|
1138
|
+
}, overrideObject);
|
|
1139
|
+
}
|
|
1140
|
+
function aJobCallback(overrideObject) {
|
|
1141
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1142
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1143
|
+
return {};
|
|
1144
|
+
}
|
|
1145
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1146
|
+
inProgressOptions: aInProgressOptions(),
|
|
1147
|
+
jobId: (0, metro_common_builders_1.someString)({
|
|
1148
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1149
|
+
}),
|
|
1150
|
+
status: aJobStatus(),
|
|
1151
|
+
additionalData: aExtendedFields(),
|
|
1152
|
+
}, overrideObject);
|
|
1153
|
+
}
|
|
1154
|
+
function aFailedOptions(overrideObject) {
|
|
1155
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1156
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1157
|
+
return {};
|
|
1158
|
+
}
|
|
1159
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1160
|
+
error: aApplicationError(),
|
|
1161
|
+
}, overrideObject);
|
|
1162
|
+
}
|
|
1163
|
+
function aInProgressOptions(overrideObject) {
|
|
1164
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1165
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1166
|
+
return {};
|
|
1167
|
+
}
|
|
1168
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1169
|
+
progress: aProgress(),
|
|
1170
|
+
log: [
|
|
1171
|
+
aMovementLog(),
|
|
1172
|
+
aMovementLog(),
|
|
1173
|
+
aMovementLog(),
|
|
1174
|
+
aMovementLog(),
|
|
1175
|
+
aMovementLog(),
|
|
1176
|
+
aMovementLog(),
|
|
1177
|
+
aMovementLog(),
|
|
1178
|
+
aMovementLog(),
|
|
1179
|
+
aMovementLog(),
|
|
1180
|
+
aMovementLog(),
|
|
1181
|
+
],
|
|
1182
|
+
}, overrideObject);
|
|
1183
|
+
}
|
|
1184
|
+
function aPartiallySuccessfulOptions(overrideObject) {
|
|
1185
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1186
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1187
|
+
cause: (0, metro_common_builders_1.someString)({
|
|
1188
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
1189
|
+
}),
|
|
1190
|
+
}, overrideObject);
|
|
1191
|
+
}
|
|
1192
|
+
function aJobStatus(enumFirstItem) {
|
|
1193
|
+
if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.JobStatus.UNINITIALIZED; }
|
|
1194
|
+
return enumFirstItem;
|
|
1195
|
+
}
|
|
1196
|
+
function aListJobsRequest(overrideObject) {
|
|
1197
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1198
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1199
|
+
return {};
|
|
1200
|
+
}
|
|
1201
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1202
|
+
paging: aCursorPaging(),
|
|
1203
|
+
query: aQueryV2(),
|
|
1204
|
+
}, overrideObject);
|
|
1205
|
+
}
|
|
1206
|
+
function aListJobsResponse(overrideObject) {
|
|
1207
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1208
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1209
|
+
return {};
|
|
1210
|
+
}
|
|
1211
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1212
|
+
jobs: [aDataMovementJob()],
|
|
1213
|
+
pagingMetadata: aCursorPagingMetadata(),
|
|
1214
|
+
}, overrideObject);
|
|
1215
|
+
}
|
|
1216
|
+
function aListMovementLogsRequest(overrideObject) {
|
|
1217
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1218
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1219
|
+
return {};
|
|
1220
|
+
}
|
|
1221
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1222
|
+
jobId: (0, metro_common_builders_1.someString)({
|
|
1223
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1224
|
+
}),
|
|
1225
|
+
paging: aCursorPaging(),
|
|
1226
|
+
}, overrideObject);
|
|
1227
|
+
}
|
|
1228
|
+
function aListMovementLogsResponse(overrideObject) {
|
|
1229
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1230
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1231
|
+
return {};
|
|
1232
|
+
}
|
|
1233
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1234
|
+
logs: [aMovementLog()],
|
|
1235
|
+
pagingMetadata: aCursorPagingMetadata(),
|
|
1236
|
+
}, overrideObject);
|
|
1237
|
+
}
|
|
1238
|
+
function aLocalizationDestination(overrideObject) {
|
|
1239
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1240
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1241
|
+
languages: [
|
|
1242
|
+
(0, metro_common_builders_1.someString)({
|
|
1243
|
+
validations: [
|
|
1244
|
+
{ type: 'MIN_SIZE', value: '2' },
|
|
1245
|
+
{ type: 'MAX_SIZE', value: '64' },
|
|
1246
|
+
{ type: 'FORMAT', value: 'LANGUAGE_TAG' },
|
|
1247
|
+
],
|
|
1248
|
+
}),
|
|
1249
|
+
(0, metro_common_builders_1.someString)({
|
|
1250
|
+
validations: [
|
|
1251
|
+
{ type: 'MIN_SIZE', value: '2' },
|
|
1252
|
+
{ type: 'MAX_SIZE', value: '64' },
|
|
1253
|
+
{ type: 'FORMAT', value: 'LANGUAGE_TAG' },
|
|
1254
|
+
],
|
|
1255
|
+
}),
|
|
1256
|
+
],
|
|
1257
|
+
}, overrideObject);
|
|
1258
|
+
}
|
|
1259
|
+
function aMovementLog(overrideObject) {
|
|
1260
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1261
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1262
|
+
return {};
|
|
1263
|
+
}
|
|
1264
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1265
|
+
sourceItemId: (0, metro_common_builders_1.someString)({
|
|
1266
|
+
validations: [{ type: 'MAX_LENGTH', value: '512' }],
|
|
1267
|
+
}),
|
|
1268
|
+
failure: aApplicationError(),
|
|
1269
|
+
success: {},
|
|
1270
|
+
details: {},
|
|
1271
|
+
}, overrideObject);
|
|
1272
|
+
}
|
|
1273
|
+
function aPartiallySuccessfulStatusOptions(overrideObject) {
|
|
1274
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1275
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1276
|
+
cause: (0, metro_common_builders_1.someString)({
|
|
1277
|
+
validations: [{ type: 'MAX_LENGTH', value: '1000' }],
|
|
1278
|
+
}),
|
|
1279
|
+
}, overrideObject);
|
|
1280
|
+
}
|
|
1281
|
+
function aProgress(overrideObject) {
|
|
1282
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1283
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1284
|
+
return {};
|
|
1285
|
+
}
|
|
1286
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1287
|
+
current: (0, metro_common_builders_1.someNumber)({
|
|
1288
|
+
validations: [{ type: 'READ_ONLY', value: 'true' }],
|
|
1289
|
+
}),
|
|
1290
|
+
total: (0, metro_common_builders_1.someNumber)({
|
|
1291
|
+
validations: [{ type: 'READ_ONLY', value: 'true' }],
|
|
1292
|
+
}),
|
|
1293
|
+
unit: (0, metro_common_builders_1.someString)({
|
|
1294
|
+
validations: [
|
|
1295
|
+
{ type: 'READ_ONLY', value: 'true' },
|
|
1296
|
+
{ type: 'MAX_LENGTH', value: '128' },
|
|
1297
|
+
],
|
|
1298
|
+
}),
|
|
1299
|
+
itemsProcessed: (0, metro_common_builders_1.someNumber)({
|
|
1300
|
+
validations: [{ type: 'READ_ONLY', value: 'true' }],
|
|
1301
|
+
}),
|
|
1302
|
+
itemsRejected: (0, metro_common_builders_1.someNumber)(),
|
|
1303
|
+
itemsSuccessful: (0, metro_common_builders_1.someNumber)(),
|
|
1304
|
+
itemsSuccessfulInfo: aItemsSuccessfulInfo(),
|
|
1305
|
+
units: aUnits(),
|
|
1306
|
+
}, overrideObject);
|
|
1307
|
+
}
|
|
1308
|
+
function aUnits(enumFirstItem) {
|
|
1309
|
+
if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.Units.UNKNOWN_UNITS; }
|
|
1310
|
+
return enumFirstItem;
|
|
1311
|
+
}
|
|
1312
|
+
function aQueryJobsRequest(overrideObject) {
|
|
1313
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1314
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1315
|
+
return {};
|
|
1316
|
+
}
|
|
1317
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1318
|
+
query: aCursorQuery(),
|
|
1319
|
+
}, overrideObject);
|
|
1320
|
+
}
|
|
1321
|
+
function aQueryJobsResponse(overrideObject) {
|
|
1322
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1323
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1324
|
+
return {};
|
|
1325
|
+
}
|
|
1326
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1327
|
+
jobs: [aDataMovementJob()],
|
|
1328
|
+
pagingMetadata: aCursorPagingMetadata(),
|
|
1329
|
+
}, overrideObject);
|
|
1330
|
+
}
|
|
1331
|
+
function aSchema(overrideObject) {
|
|
1332
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1333
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1334
|
+
return {};
|
|
1335
|
+
}
|
|
1336
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1337
|
+
fields: [
|
|
1338
|
+
aField(),
|
|
1339
|
+
aField(),
|
|
1340
|
+
aField(),
|
|
1341
|
+
aField(),
|
|
1342
|
+
aField(),
|
|
1343
|
+
aField(),
|
|
1344
|
+
aField(),
|
|
1345
|
+
aField(),
|
|
1346
|
+
aField(),
|
|
1347
|
+
aField(),
|
|
1348
|
+
],
|
|
1349
|
+
}, overrideObject);
|
|
1350
|
+
}
|
|
1351
|
+
function aSource(overrideObject) {
|
|
1352
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1353
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1354
|
+
return {};
|
|
1355
|
+
}
|
|
1356
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1357
|
+
wixDataCollection: aWixDataSource(),
|
|
1358
|
+
}, overrideObject);
|
|
1359
|
+
}
|
|
1360
|
+
function aDataMovementJobLogs(overrideObject) {
|
|
1361
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1362
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1363
|
+
jobId: (0, metro_common_builders_1.someString)({
|
|
1364
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1365
|
+
}),
|
|
1366
|
+
}, overrideObject);
|
|
1367
|
+
}
|
|
1368
|
+
function aExternalFileSource(overrideObject) {
|
|
1369
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1370
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1371
|
+
return {};
|
|
1372
|
+
}
|
|
1373
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1374
|
+
format: aFileFormat(),
|
|
1375
|
+
url: (0, metro_common_builders_1.someString)({
|
|
1376
|
+
validations: [
|
|
1377
|
+
{ type: 'MAX_LENGTH', value: '2048' },
|
|
1378
|
+
{ type: 'FORMAT', value: 'WEB_URL' },
|
|
1379
|
+
],
|
|
1380
|
+
}),
|
|
1381
|
+
}, overrideObject);
|
|
1382
|
+
}
|
|
1383
|
+
function aFileSource(overrideObject) {
|
|
1384
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1385
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1386
|
+
return {};
|
|
1387
|
+
}
|
|
1388
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1389
|
+
format: aFileFormat(),
|
|
1390
|
+
fileId: (0, metro_common_builders_1.someString)({
|
|
1391
|
+
validations: [{ type: 'MAX_LENGTH', value: '512' }],
|
|
1392
|
+
}),
|
|
1393
|
+
url: (0, metro_common_builders_1.someString)({
|
|
1394
|
+
validations: [
|
|
1395
|
+
{ type: 'READ_ONLY', value: 'true' },
|
|
1396
|
+
{ type: 'MAX_LENGTH', value: '2048' },
|
|
1397
|
+
],
|
|
1398
|
+
}),
|
|
1399
|
+
}, overrideObject);
|
|
1400
|
+
}
|
|
1401
|
+
function aGoogleSheetsSource(overrideObject) {
|
|
1402
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1403
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1404
|
+
spreadsheetId: (0, metro_common_builders_1.someString)({
|
|
1405
|
+
validations: [
|
|
1406
|
+
{ type: 'MIN_LENGTH', value: '1' },
|
|
1407
|
+
{ type: 'MAX_LENGTH', value: '256' },
|
|
1408
|
+
],
|
|
1409
|
+
}),
|
|
1410
|
+
sheetName: (0, metro_common_builders_1.someString)({
|
|
1411
|
+
validations: [{ type: 'MAX_LENGTH', value: '256' }],
|
|
1412
|
+
}),
|
|
1413
|
+
range: (0, metro_common_builders_1.someString)({
|
|
1414
|
+
validations: [{ type: 'MAX_LENGTH', value: '256' }],
|
|
1415
|
+
}),
|
|
1416
|
+
oauthTokenId: (0, metro_common_builders_1.someString)({
|
|
1417
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1418
|
+
}),
|
|
1419
|
+
accessToken: (0, metro_common_builders_1.someString)({
|
|
1420
|
+
validations: [{ type: 'MAX_LENGTH', value: '8192' }],
|
|
1421
|
+
}),
|
|
1422
|
+
}, overrideObject);
|
|
1423
|
+
}
|
|
1424
|
+
function aLocalizationSource(overrideObject) {
|
|
1425
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1426
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1427
|
+
languages: [
|
|
1428
|
+
(0, metro_common_builders_1.someString)({
|
|
1429
|
+
validations: [
|
|
1430
|
+
{ type: 'FORMAT', value: 'LANGUAGE_TAG' },
|
|
1431
|
+
{ type: 'MIN_SIZE', value: '2' },
|
|
1432
|
+
{ type: 'MAX_SIZE', value: '64' },
|
|
1433
|
+
],
|
|
1434
|
+
}),
|
|
1435
|
+
(0, metro_common_builders_1.someString)({
|
|
1436
|
+
validations: [
|
|
1437
|
+
{ type: 'FORMAT', value: 'LANGUAGE_TAG' },
|
|
1438
|
+
{ type: 'MIN_SIZE', value: '2' },
|
|
1439
|
+
{ type: 'MAX_SIZE', value: '64' },
|
|
1440
|
+
],
|
|
1441
|
+
}),
|
|
1442
|
+
],
|
|
1443
|
+
}, overrideObject);
|
|
1444
|
+
}
|
|
1445
|
+
function aTestSource(overrideObject) {
|
|
1446
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1447
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1448
|
+
type: (0, metro_common_builders_1.someString)({
|
|
1449
|
+
validations: [{ type: 'MAX_LENGTH', value: '512' }],
|
|
1450
|
+
}),
|
|
1451
|
+
details: {},
|
|
1452
|
+
}, overrideObject);
|
|
1453
|
+
}
|
|
1454
|
+
function aWixDataCollectionDefinitionSource(overrideObject) {
|
|
1455
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1456
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1457
|
+
collectionIds: [
|
|
1458
|
+
(0, metro_common_builders_1.someString)({
|
|
1459
|
+
validations: [
|
|
1460
|
+
{ type: 'MIN_SIZE', value: '1' },
|
|
1461
|
+
{ type: 'MAX_SIZE', value: '1000' },
|
|
1462
|
+
{ type: 'MAX_LENGTH', value: '256' },
|
|
1463
|
+
],
|
|
1464
|
+
}),
|
|
1465
|
+
],
|
|
1466
|
+
}, overrideObject);
|
|
1467
|
+
}
|
|
1468
|
+
function aWixDataSource(overrideObject) {
|
|
1469
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1470
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1471
|
+
return {};
|
|
1472
|
+
}
|
|
1473
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1474
|
+
filterQuery: aFilterQuery(),
|
|
1475
|
+
collectionId: (0, metro_common_builders_1.someString)({
|
|
1476
|
+
validations: [
|
|
1477
|
+
{ type: 'MIN_LENGTH', value: '1' },
|
|
1478
|
+
{ type: 'MAX_LENGTH', value: '256' },
|
|
1479
|
+
],
|
|
1480
|
+
}),
|
|
1481
|
+
environment: aWixDataEnvironment(),
|
|
1482
|
+
filter: {},
|
|
1483
|
+
fields: [(0, metro_common_builders_1.someString)()],
|
|
1484
|
+
appId: (0, metro_common_builders_1.someString)({
|
|
1485
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1486
|
+
}),
|
|
1487
|
+
}, overrideObject);
|
|
1488
|
+
}
|
|
1489
|
+
function aAggregationQuery(overrideObject) {
|
|
1490
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1491
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1492
|
+
return {};
|
|
1493
|
+
}
|
|
1494
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1495
|
+
aggregationPipeline: aAggregationPipeline(),
|
|
1496
|
+
fields: [
|
|
1497
|
+
aField(),
|
|
1498
|
+
aField(),
|
|
1499
|
+
aField(),
|
|
1500
|
+
aField(),
|
|
1501
|
+
aField(),
|
|
1502
|
+
aField(),
|
|
1503
|
+
aField(),
|
|
1504
|
+
aField(),
|
|
1505
|
+
aField(),
|
|
1506
|
+
aField(),
|
|
1507
|
+
],
|
|
1508
|
+
}, overrideObject);
|
|
1509
|
+
}
|
|
1510
|
+
function aFilterQuery(overrideObject) {
|
|
1511
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1512
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1513
|
+
filter: {},
|
|
1514
|
+
fields: [(0, metro_common_builders_1.someString)()],
|
|
1515
|
+
}, overrideObject);
|
|
1516
|
+
}
|
|
1517
|
+
function aWixMediaSource(overrideObject) {
|
|
1518
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1519
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1520
|
+
return {};
|
|
1521
|
+
}
|
|
1522
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1523
|
+
sourceFolderId: (0, metro_common_builders_1.someString)({
|
|
1524
|
+
validations: [{ type: 'MAX_LENGTH', value: '256' }],
|
|
1525
|
+
}),
|
|
1526
|
+
mediaType: aMediaType(),
|
|
1527
|
+
}, overrideObject);
|
|
1528
|
+
}
|
|
1529
|
+
function aMediaType(enumFirstItem) {
|
|
1530
|
+
if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.MediaType.ALL; }
|
|
1531
|
+
return enumFirstItem;
|
|
1532
|
+
}
|
|
1533
|
+
function aStoresCatalogInventoryDestination(overrideObject) {
|
|
1534
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1535
|
+
return (0, metro_common_builders_1.mergeDeep)({}, overrideObject);
|
|
1536
|
+
}
|
|
1537
|
+
function aStoresCatalogProductsDestination(overrideObject) {
|
|
1538
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1539
|
+
return (0, metro_common_builders_1.mergeDeep)({}, overrideObject);
|
|
1540
|
+
}
|
|
1541
|
+
function aSubmitJobRequest(overrideObject) {
|
|
1542
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1543
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1544
|
+
return {};
|
|
1545
|
+
}
|
|
1546
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1547
|
+
sourceSiteId: (0, metro_common_builders_1.someString)({
|
|
1548
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1549
|
+
}),
|
|
1550
|
+
source: aSource(),
|
|
1551
|
+
destination: aDestination(),
|
|
1552
|
+
transformations: [
|
|
1553
|
+
aTransformation(),
|
|
1554
|
+
aTransformation(),
|
|
1555
|
+
aTransformation(),
|
|
1556
|
+
aTransformation(),
|
|
1557
|
+
aTransformation(),
|
|
1558
|
+
aTransformation(),
|
|
1559
|
+
aTransformation(),
|
|
1560
|
+
aTransformation(),
|
|
1561
|
+
aTransformation(),
|
|
1562
|
+
aTransformation(),
|
|
1563
|
+
],
|
|
1564
|
+
name: (0, metro_common_builders_1.someString)(),
|
|
1565
|
+
scheduleId: (0, metro_common_builders_1.someString)({
|
|
1566
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1567
|
+
}),
|
|
1568
|
+
workflowId: (0, metro_common_builders_1.someString)({
|
|
1569
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1570
|
+
}),
|
|
1571
|
+
}, overrideObject);
|
|
1572
|
+
}
|
|
1573
|
+
function aSubmitJobResponse(overrideObject) {
|
|
1574
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1575
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1576
|
+
return {};
|
|
1577
|
+
}
|
|
1578
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1579
|
+
job: aDataMovementJob(),
|
|
1580
|
+
}, overrideObject);
|
|
1581
|
+
}
|
|
1582
|
+
function aTerminateJobByIdRequest(overrideObject) {
|
|
1583
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1584
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1585
|
+
jobId: (0, metro_common_builders_1.someString)({
|
|
1586
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1587
|
+
}),
|
|
1588
|
+
}, overrideObject);
|
|
1589
|
+
}
|
|
1590
|
+
function aTerminateJobByIdResponse(overrideObject) {
|
|
1591
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1592
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1593
|
+
return {};
|
|
1594
|
+
}
|
|
1595
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1596
|
+
job: aDataMovementJob(),
|
|
1597
|
+
}, overrideObject);
|
|
1598
|
+
}
|
|
1599
|
+
function aTerminateJobRequest(overrideObject) {
|
|
1600
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1601
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1602
|
+
jobId: (0, metro_common_builders_1.someString)({
|
|
1603
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1604
|
+
}),
|
|
1605
|
+
}, overrideObject);
|
|
1606
|
+
}
|
|
1607
|
+
function aTerminateJobResponse(overrideObject) {
|
|
1608
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1609
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1610
|
+
return {};
|
|
1611
|
+
}
|
|
1612
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1613
|
+
job: aDataMovementJob(),
|
|
1614
|
+
}, overrideObject);
|
|
1615
|
+
}
|
|
1616
|
+
function aTestDestination(overrideObject) {
|
|
1617
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1618
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1619
|
+
type: (0, metro_common_builders_1.someString)({
|
|
1620
|
+
validations: [{ type: 'MAX_LENGTH', value: '512' }],
|
|
1621
|
+
}),
|
|
1622
|
+
details: {},
|
|
1623
|
+
}, overrideObject);
|
|
1624
|
+
}
|
|
1625
|
+
function aTestTransformation(overrideObject) {
|
|
1626
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1627
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1628
|
+
type: (0, metro_common_builders_1.someString)({
|
|
1629
|
+
validations: [{ type: 'MAX_LENGTH', value: '512' }],
|
|
1630
|
+
}),
|
|
1631
|
+
details: {},
|
|
1632
|
+
}, overrideObject);
|
|
1633
|
+
}
|
|
1634
|
+
function aTransformation(overrideObject) {
|
|
1635
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1636
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1637
|
+
return {};
|
|
1638
|
+
}
|
|
1639
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1640
|
+
test: aTestTransformation(),
|
|
1641
|
+
}, overrideObject);
|
|
1642
|
+
}
|
|
1643
|
+
function aWixDataCollectionDefinitionDestination(overrideObject) {
|
|
1644
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1645
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1646
|
+
return {};
|
|
1647
|
+
}
|
|
1648
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1649
|
+
writePolicy: aWixDataCollectionDefinitionDestinationWritePolicy(),
|
|
1650
|
+
}, overrideObject);
|
|
1651
|
+
}
|
|
1652
|
+
function aWixDataCollectionDefinitionDestinationWritePolicy(enumFirstItem) {
|
|
1653
|
+
if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.WixDataCollectionDefinitionDestinationWritePolicy.SKIP_EXISTING; }
|
|
1654
|
+
return enumFirstItem;
|
|
1655
|
+
}
|
|
1656
|
+
function aWixDataDestination(overrideObject) {
|
|
1657
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1658
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1659
|
+
return {};
|
|
1660
|
+
}
|
|
1661
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1662
|
+
collectionId: (0, metro_common_builders_1.someString)({
|
|
1663
|
+
validations: [{ type: 'MAX_LENGTH', value: '256' }],
|
|
1664
|
+
}),
|
|
1665
|
+
writePolicy: aWritePolicy(),
|
|
1666
|
+
environment: aWixDataEnvironment(),
|
|
1667
|
+
appId: (0, metro_common_builders_1.someString)({
|
|
1668
|
+
validations: [{ type: 'FORMAT', value: 'GUID' }],
|
|
1669
|
+
}),
|
|
1670
|
+
}, overrideObject);
|
|
1671
|
+
}
|
|
1672
|
+
function aWritePolicy(enumFirstItem) {
|
|
1673
|
+
if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.WritePolicy.OVERWRITE; }
|
|
1674
|
+
return enumFirstItem;
|
|
1675
|
+
}
|
|
1676
|
+
function aWixDataEnvironment(enumFirstItem) {
|
|
1677
|
+
if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.WixDataEnvironment.LIVE; }
|
|
1678
|
+
return enumFirstItem;
|
|
1679
|
+
}
|
|
1680
|
+
function aWixMediaDestination(overrideObject) {
|
|
1681
|
+
if (overrideObject === void 0) { overrideObject = {}; }
|
|
1682
|
+
if (isCurrentBuilderWasPreviouslyCalled()) {
|
|
1683
|
+
return {};
|
|
1684
|
+
}
|
|
1685
|
+
return (0, metro_common_builders_1.mergeDeep)({
|
|
1686
|
+
targetFolderId: (0, metro_common_builders_1.someString)({
|
|
1687
|
+
validations: [{ type: 'MAX_LENGTH', value: '256' }],
|
|
1688
|
+
}),
|
|
1689
|
+
writePolicy: aWixMediaDestinationWritePolicy(),
|
|
1690
|
+
}, overrideObject);
|
|
1691
|
+
}
|
|
1692
|
+
function aWixMediaDestinationWritePolicy(enumFirstItem) {
|
|
1693
|
+
if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.WixMediaDestinationWritePolicy.OVERWRITE; }
|
|
1694
|
+
return enumFirstItem;
|
|
1695
|
+
}
|
|
1696
|
+
function isCurrentBuilderWasPreviouslyCalled() {
|
|
1697
|
+
var callChainFunctionNames = (0, callsite_1.default)().map(function (item) {
|
|
1698
|
+
return item.getFunctionName();
|
|
1699
|
+
});
|
|
1700
|
+
var callChainWithoutCurrentBuilder = callChainFunctionNames.splice(2);
|
|
1701
|
+
var currentBuilderName = callChainFunctionNames[1];
|
|
1702
|
+
return callChainWithoutCurrentBuilder.some(function (functionName) { return functionName === currentBuilderName; });
|
|
1703
|
+
}
|
|
1704
|
+
__exportStar(require("@wix/metro-common-builders"), exports);
|
|
1705
|
+
//# sourceMappingURL=builders.impl.js.map
|