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