@wix/bex-utils 2.115.0 → 2.116.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 +4 -0
  162. package/@wix/bex-bundled-mini-essentials/package.json +1 -1
  163. package/package.json +4 -3
@@ -0,0 +1,2156 @@
1
+ export interface Accumulator extends AccumulatorExpressionOneOf {
2
+ /** Calculates the average value across all items in the group based on the specified expression. */
3
+ avg?: Avg;
4
+ /** Finds the minimum value across all items in the group. */
5
+ min?: Min;
6
+ /** Finds the maximum value across all items in the group. */
7
+ max?: Max;
8
+ /** Calculates the sum of the specified expression across all items in the group. */
9
+ sum?: Sum;
10
+ /** Finds the first item in the group. */
11
+ first?: First;
12
+ /** Finds the last item in the group. */
13
+ last?: Last;
14
+ /** Collects values from all items in the group into an array. */
15
+ push?: Push;
16
+ /**
17
+ * Field key in the output item to store the result in.
18
+ * @maxLength 1000
19
+ */
20
+ resultFieldName?: string;
21
+ }
22
+ /** @oneof */
23
+ export interface AccumulatorExpressionOneOf {
24
+ /** Calculates the average value across all items in the group based on the specified expression. */
25
+ avg?: Avg;
26
+ /** Finds the minimum value across all items in the group. */
27
+ min?: Min;
28
+ /** Finds the maximum value across all items in the group. */
29
+ max?: Max;
30
+ /** Calculates the sum of the specified expression across all items in the group. */
31
+ sum?: Sum;
32
+ /** Finds the first item in the group. */
33
+ first?: First;
34
+ /** Finds the last item in the group. */
35
+ last?: Last;
36
+ /** Collects values from all items in the group into an array. */
37
+ push?: Push;
38
+ }
39
+ export interface Avg {
40
+ /**
41
+ * Expression to calculate the group's average value.
42
+ *
43
+ * Expression must resolve to a number.
44
+ */
45
+ expression?: Expression;
46
+ }
47
+ export interface First {
48
+ /** Expression to find the first item in the group. */
49
+ expression?: Expression;
50
+ }
51
+ export interface Last {
52
+ /** Expression to find the last item in the group. */
53
+ expression?: Expression;
54
+ }
55
+ export interface Max {
56
+ /**
57
+ * Expression to find the group's maximum value.
58
+ *
59
+ * Expression must resolve to a comparable value, such as a number or string.
60
+ */
61
+ expression?: Expression;
62
+ }
63
+ export interface Min {
64
+ /**
65
+ * Expression to find the group's minimum value.
66
+ *
67
+ * Expression must resolve to a comparable value, such as a number or string.
68
+ */
69
+ expression?: Expression;
70
+ }
71
+ export interface Push {
72
+ /** Expression to collect items into an array. */
73
+ expression?: Expression;
74
+ }
75
+ export interface Sum {
76
+ /**
77
+ * Expression to calculate the group's total sum.
78
+ *
79
+ * Expression must resolve to a number.
80
+ */
81
+ expression?: Expression;
82
+ }
83
+ export interface AddFields {
84
+ /**
85
+ * Fields to add or replace in the result items.
86
+ * @maxSize 1000
87
+ */
88
+ fields?: AddField[];
89
+ }
90
+ export interface AddField {
91
+ /**
92
+ * Key of the field to add or replace in the result item.
93
+ * @maxLength 1000
94
+ */
95
+ fieldName?: string;
96
+ /** Expression to resolve. The result of the expression becomes the value of the field. */
97
+ expression?: Expression;
98
+ }
99
+ export interface AggregationPipeline extends AggregationPipelinePagingMethodOneOf {
100
+ /**
101
+ * Paging options to limit and skip the number of results.
102
+ *
103
+ * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).
104
+ */
105
+ paging?: CommonPaging;
106
+ /**
107
+ * Cursor token referring to a page of results.
108
+ *
109
+ * Not used in the first request. Subsequent requests use the cursor token and not `filter` or `sort`.
110
+ */
111
+ cursorPaging?: CommonCursorPaging;
112
+ /**
113
+ * Sequence of aggregation operations to apply to the data.
114
+ *
115
+ * Stages are processed in order, with each stage operating on the output of the previous stage.
116
+ * @maxSize 100
117
+ */
118
+ stages?: Stage[];
119
+ }
120
+ /** @oneof */
121
+ export interface AggregationPipelinePagingMethodOneOf {
122
+ /**
123
+ * Paging options to limit and skip the number of results.
124
+ *
125
+ * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).
126
+ */
127
+ paging?: CommonPaging;
128
+ /**
129
+ * Cursor token referring to a page of results.
130
+ *
131
+ * Not used in the first request. Subsequent requests use the cursor token and not `filter` or `sort`.
132
+ */
133
+ cursorPaging?: CommonCursorPaging;
134
+ }
135
+ export interface Expression extends ExpressionValueOneOf {
136
+ /**
137
+ * Path to the field containing the value to resolve.
138
+ *
139
+ * Use dot notation to specify nested fields. For example, `user.name` or `product.price`.
140
+ * @maxLength 1000
141
+ */
142
+ fieldPath?: string;
143
+ /**
144
+ * Text value.
145
+ * @maxLength 1000
146
+ */
147
+ text?: string;
148
+ /** Number value. */
149
+ numeric?: number;
150
+ /** Adds the specified expressions together. */
151
+ add?: AddOperation;
152
+ /** Calculates the total sum of multiple expressions. */
153
+ sum?: SumOperation;
154
+ /** Subtracts 1 expression from another. */
155
+ subtract?: SubtractOperation;
156
+ /** Multiplies multiple expressions together. */
157
+ multiply?: MultiplyOperation;
158
+ /** Divides 1 expression by another. */
159
+ divide?: DivideOperation;
160
+ /** Finds the absolute value of an expression. */
161
+ abs?: AbsOperation;
162
+ /** Finds the remainder when dividing 1 expression by another. */
163
+ mod?: ModOperation;
164
+ /** Rounds an expression down to the nearest whole number. */
165
+ floor?: FloorOperation;
166
+ /** Rounds an expression up to the nearest whole number. */
167
+ ceil?: CeilOperation;
168
+ /** Joins multiple expressions together to create a string. */
169
+ concat?: ConcatOperation;
170
+ /** Converts an expression to a string. */
171
+ stringify?: StringifyOperation;
172
+ /** Converts an expression to lowercase. */
173
+ toLower?: ToLowerOperation;
174
+ /** Converts an expression to uppercase. */
175
+ toUpper?: ToUpperOperation;
176
+ /** Extracts a portion of a string expression. */
177
+ substring?: SubstringOperation;
178
+ /** Finds the length of a string expression. */
179
+ length?: LengthOperation;
180
+ /**
181
+ * Boolean value.
182
+ * @internal
183
+ */
184
+ boolean?: boolean;
185
+ /**
186
+ * Returns one of two expressions based on a condition.
187
+ * @internal
188
+ */
189
+ condition?: ConditionOperation;
190
+ /**
191
+ * Checks whether the first expression is greater than the second expression.
192
+ * @internal
193
+ */
194
+ gt?: GreaterThanOperation;
195
+ /**
196
+ * Returns the number of elements in an array expression.
197
+ * @internal
198
+ */
199
+ size?: SizeOperation;
200
+ }
201
+ /** @oneof */
202
+ export interface ExpressionValueOneOf {
203
+ /**
204
+ * Path to the field containing the value to resolve.
205
+ *
206
+ * Use dot notation to specify nested fields. For example, `user.name` or `product.price`.
207
+ * @maxLength 1000
208
+ */
209
+ fieldPath?: string;
210
+ /**
211
+ * Text value.
212
+ * @maxLength 1000
213
+ */
214
+ text?: string;
215
+ /** Number value. */
216
+ numeric?: number;
217
+ /** Adds the specified expressions together. */
218
+ add?: AddOperation;
219
+ /** Calculates the total sum of multiple expressions. */
220
+ sum?: SumOperation;
221
+ /** Subtracts 1 expression from another. */
222
+ subtract?: SubtractOperation;
223
+ /** Multiplies multiple expressions together. */
224
+ multiply?: MultiplyOperation;
225
+ /** Divides 1 expression by another. */
226
+ divide?: DivideOperation;
227
+ /** Finds the absolute value of an expression. */
228
+ abs?: AbsOperation;
229
+ /** Finds the remainder when dividing 1 expression by another. */
230
+ mod?: ModOperation;
231
+ /** Rounds an expression down to the nearest whole number. */
232
+ floor?: FloorOperation;
233
+ /** Rounds an expression up to the nearest whole number. */
234
+ ceil?: CeilOperation;
235
+ /** Joins multiple expressions together to create a string. */
236
+ concat?: ConcatOperation;
237
+ /** Converts an expression to a string. */
238
+ stringify?: StringifyOperation;
239
+ /** Converts an expression to lowercase. */
240
+ toLower?: ToLowerOperation;
241
+ /** Converts an expression to uppercase. */
242
+ toUpper?: ToUpperOperation;
243
+ /** Extracts a portion of a string expression. */
244
+ substring?: SubstringOperation;
245
+ /** Finds the length of a string expression. */
246
+ length?: LengthOperation;
247
+ /**
248
+ * Boolean value.
249
+ * @internal
250
+ */
251
+ boolean?: boolean;
252
+ /**
253
+ * Returns one of two expressions based on a condition.
254
+ * @internal
255
+ */
256
+ condition?: ConditionOperation;
257
+ /**
258
+ * Checks whether the first expression is greater than the second expression.
259
+ * @internal
260
+ */
261
+ gt?: GreaterThanOperation;
262
+ /**
263
+ * Returns the number of elements in an array expression.
264
+ * @internal
265
+ */
266
+ size?: SizeOperation;
267
+ }
268
+ export interface AbsOperation {
269
+ /**
270
+ * Expression to find the absolute value of.
271
+ *
272
+ * Expression must resolve to a number.
273
+ */
274
+ expression?: Expression;
275
+ }
276
+ export interface AddOperation {
277
+ /**
278
+ * Expressions to add together.
279
+ *
280
+ * All expressions must resolve to numbers.
281
+ * @maxSize 1000
282
+ */
283
+ expressions?: Expression[];
284
+ }
285
+ export interface CeilOperation {
286
+ /**
287
+ * Expression to round up to the nearest whole number.
288
+ *
289
+ * Expression must resolve to a number.
290
+ */
291
+ expression?: Expression;
292
+ }
293
+ export interface ConcatOperation {
294
+ /**
295
+ * Expressions to join together.
296
+ *
297
+ * All expressions must resolve to strings.
298
+ * @maxSize 1000
299
+ */
300
+ expressions?: Expression[];
301
+ }
302
+ export interface ConditionOperation {
303
+ /** Expression to evaluate as a condition. */
304
+ ifExpression?: Expression;
305
+ /** Expression to return when `ifExpression` resolves to `true`. */
306
+ whenTrue?: Expression;
307
+ /** Expression to return when `ifExpression` resolves to `false`. */
308
+ whenFalse?: Expression;
309
+ }
310
+ export interface DivideOperation {
311
+ /**
312
+ * Expression to divide by `secondExpression`.
313
+ *
314
+ * Expression must resolve to a number.
315
+ */
316
+ firstExpression?: Expression;
317
+ /**
318
+ * Expression to divide `firstExpression` by.
319
+ *
320
+ * Expression must resolve to a non-zero number.
321
+ */
322
+ secondExpression?: Expression;
323
+ }
324
+ export interface FloorOperation {
325
+ /**
326
+ * Expression to round down to the nearest whole number.
327
+ *
328
+ * Expression must resolve to a number.
329
+ */
330
+ expression?: Expression;
331
+ }
332
+ export interface GreaterThanOperation {
333
+ /** Expression on the left side of the comparison. */
334
+ firstExpression?: Expression;
335
+ /** Expression on the right side of the comparison. */
336
+ secondExpression?: Expression;
337
+ }
338
+ export interface LengthOperation {
339
+ /**
340
+ * Expression to count the total number of characters of.
341
+ *
342
+ * Expression must resolve to a string.
343
+ */
344
+ expression?: Expression;
345
+ }
346
+ export interface ModOperation {
347
+ /**
348
+ * Expression to divide by `secondExpression` to find the remainder.
349
+ *
350
+ * Expression must resolve to a number.
351
+ */
352
+ firstExpression?: Expression;
353
+ /**
354
+ * Expression to divide `firstExpression` by.
355
+ *
356
+ * Expression must resolve to a non-zero number.
357
+ */
358
+ secondExpression?: Expression;
359
+ }
360
+ export interface MultiplyOperation {
361
+ /**
362
+ * Expressions to multiply.
363
+ *
364
+ * All expressions must resolve to numbers.
365
+ * @maxSize 1000
366
+ */
367
+ expressions?: Expression[];
368
+ }
369
+ export interface SizeOperation {
370
+ /** Expression containing the array whose size to return. */
371
+ expression?: Expression;
372
+ }
373
+ export interface StringifyOperation {
374
+ /** Expression to convert to a string. */
375
+ expression?: Expression;
376
+ }
377
+ export interface SubstringOperation {
378
+ /**
379
+ * Expression to extract a substring from.
380
+ *
381
+ * Expression must resolve to a string.
382
+ */
383
+ expression?: Expression;
384
+ /**
385
+ * Starting position of the substring to extract, specified in zero-based indexing.
386
+ *
387
+ * Expression must resolve to a number.
388
+ */
389
+ startExpression?: Expression;
390
+ /**
391
+ * Number of characters to extract from the starting position.
392
+ *
393
+ * Expression must resolve to a number.
394
+ */
395
+ lengthExpression?: Expression;
396
+ }
397
+ export interface SubtractOperation {
398
+ /**
399
+ * Expression to subtract `secondExpression` from.
400
+ *
401
+ * Expression must resolve to a number.
402
+ */
403
+ firstExpression?: Expression;
404
+ /**
405
+ * Expression to subtract from `firstExpression`.
406
+ *
407
+ * Expression must resolve to a number.
408
+ */
409
+ secondExpression?: Expression;
410
+ }
411
+ export interface SumOperation {
412
+ /**
413
+ * Expressions to calculate the total sum of.
414
+ *
415
+ * All expressions must resolve to numbers.
416
+ * @maxSize 1000
417
+ */
418
+ expressions?: Expression[];
419
+ }
420
+ export interface ToLowerOperation {
421
+ /**
422
+ * Expression to convert to lowercase.
423
+ *
424
+ * Expression must resolve to a string.
425
+ */
426
+ expression?: Expression;
427
+ }
428
+ export interface ToUpperOperation {
429
+ /**
430
+ * Expression to convert to uppercase.
431
+ *
432
+ * Expression must resolve to a string.
433
+ */
434
+ expression?: Expression;
435
+ }
436
+ export interface Group {
437
+ /**
438
+ * Grouping criteria by which to organize items.
439
+ *
440
+ * Each `groupId` specifies a field by which to group items, and serves as the result item's unique `_id` property.
441
+ *
442
+ * Items with identical values for the specified `expression` are placed in the same group based on the specified `key`. If empty, all items are treated as a single group.
443
+ * @maxSize 1000
444
+ */
445
+ groupIds?: GroupId[];
446
+ /**
447
+ * Accumulation operations to run on each group.
448
+ *
449
+ * Accumulators aggregate data across all items in the group and return the result in a new field.
450
+ *
451
+ * > **Note:** When using accumulators, the type of expression must be compatible with the operation type. For example, when using the `sum` accumulator, the specified expression must resolve to a number.
452
+ * @maxSize 1000
453
+ */
454
+ accumulators?: Accumulator[];
455
+ }
456
+ export interface GroupId {
457
+ /**
458
+ * Name of the field to group items by.
459
+ *
460
+ * This becomes the field name in the result's `_id` property.
461
+ * @maxLength 1000
462
+ */
463
+ key?: string;
464
+ /** Expression to determine the grouping value. Items whose expression resolves to the same value are grouped together in the result item's `_id` property. */
465
+ expression?: Expression;
466
+ }
467
+ export interface Lookup {
468
+ /**
469
+ * ID of the collection to join with.
470
+ * @maxLength 256
471
+ */
472
+ dataCollectionId?: string;
473
+ /**
474
+ * Key of the local field whose value is used for matching items in the joined collection.
475
+ * @maxLength 1000
476
+ */
477
+ localField?: string;
478
+ /**
479
+ * Key of the field in the joined collection to match against the local field value.
480
+ * @maxLength 1000
481
+ */
482
+ foreignField?: string;
483
+ /**
484
+ * Key of the array field where matching joined items are stored.
485
+ * @maxLength 1000
486
+ */
487
+ asField?: string;
488
+ }
489
+ /** Converts an object to an array. */
490
+ export interface ObjectToArray {
491
+ /**
492
+ * Key of the object field to convert to an array.
493
+ *
494
+ * Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
495
+ * @maxLength 1000
496
+ */
497
+ objectFieldName?: string;
498
+ /**
499
+ * Key of the new array to create in the result item.
500
+ *
501
+ * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
502
+ * @maxLength 1000
503
+ */
504
+ destinationFieldName?: string;
505
+ }
506
+ /** Transforms collection items by including, excluding, or reshaping fields. */
507
+ export interface Projection {
508
+ /**
509
+ * Fields to include, exclude, or reshape.
510
+ * @maxSize 1000
511
+ */
512
+ fields?: ProjectionField[];
513
+ }
514
+ export interface Exclude {
515
+ /**
516
+ * Key of the field to exclude from the result.
517
+ *
518
+ * Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
519
+ * @maxLength 1000
520
+ */
521
+ fieldName?: string;
522
+ }
523
+ export interface ProjectionField extends ProjectionFieldProjectionOneOf {
524
+ /** When specified, includes only the specified field in the result. All other fields are excluded. */
525
+ include?: Include;
526
+ /** When specified, excludes the specified field from the result. All other fields are included. */
527
+ exclude?: Exclude;
528
+ /** Reshapes a new field based on the specified expression. The field used by the expression is not included in the result. */
529
+ reshape?: Reshape;
530
+ /** Creates nested fields by including, excluding, or reshaping fields. */
531
+ projectNested?: ProjectNested;
532
+ }
533
+ /** @oneof */
534
+ export interface ProjectionFieldProjectionOneOf {
535
+ /** When specified, includes only the specified field in the result. All other fields are excluded. */
536
+ include?: Include;
537
+ /** When specified, excludes the specified field from the result. All other fields are included. */
538
+ exclude?: Exclude;
539
+ /** Reshapes a new field based on the specified expression. The field used by the expression is not included in the result. */
540
+ reshape?: Reshape;
541
+ /** Creates nested fields by including, excluding, or reshaping fields. */
542
+ projectNested?: ProjectNested;
543
+ }
544
+ export interface Include {
545
+ /**
546
+ * Key of the field to include in the result.
547
+ *
548
+ * Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
549
+ * @maxLength 1000
550
+ */
551
+ fieldName?: string;
552
+ }
553
+ export interface ProjectNested {
554
+ /**
555
+ * Key of the parent field for the nested fields.
556
+ *
557
+ * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
558
+ * @maxLength 1000
559
+ */
560
+ resultFieldName?: string;
561
+ /**
562
+ * Nested fields to include, exclude, or reshape.
563
+ * @maxSize 1000
564
+ */
565
+ fields?: ProjectionField[];
566
+ }
567
+ export interface Reshape {
568
+ /**
569
+ * Key of the field to create in the result item.
570
+ *
571
+ * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
572
+ * @maxLength 1000
573
+ */
574
+ resultFieldName?: string;
575
+ /** Expression to resolve. The result of the expression becomes the value of the new field. */
576
+ expression?: Expression;
577
+ }
578
+ export interface AggregatePipelineDataItemsRequestSorting {
579
+ /**
580
+ * Fields to sort the results by.
581
+ * @maxSize 1000
582
+ */
583
+ values?: CommonSorting[];
584
+ }
585
+ export interface Stage extends StageStageOneOf {
586
+ /** Groups aggregated items to new result items. */
587
+ group?: Group;
588
+ /**
589
+ * Aggregation filter. Only items that match the filter are processed.
590
+ *
591
+ * Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
592
+ *
593
+ * > **Note:** The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format: `"someDateAndTimeFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data).
594
+ */
595
+ filter?: Record<string, any> | null;
596
+ /**
597
+ * Sorting preferences.
598
+ *
599
+ * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).
600
+ */
601
+ sort?: AggregatePipelineDataItemsRequestSorting;
602
+ /** Transforms items by including, excluding, or reshaping fields. */
603
+ projection?: Projection;
604
+ /** Transforms an object into an array where each object property becomes a new array element containing the property's key and value, as well as all other properties from the original object. */
605
+ objectToArray?: ObjectToArray;
606
+ /** Creates a result item for each array element. Each result contains the full original item, with the array field replaced by an element whose key is the array name and whose value is the array element. */
607
+ unwindArray?: UnwindArray;
608
+ /** Number of results to skip from the beginning of the result set. */
609
+ skip?: number;
610
+ /** Maximum number of results to return. */
611
+ limit?: number;
612
+ /**
613
+ * Adds or replaces fields in each result item.
614
+ * @internal
615
+ */
616
+ addFields?: AddFields;
617
+ /**
618
+ * Joins items from another collection into an array field by matching a local field against a foreign field.
619
+ * @internal
620
+ */
621
+ lookup?: Lookup;
622
+ /**
623
+ * Appends results from another collection pipeline to the current results.
624
+ * @internal
625
+ */
626
+ unionWith?: UnionWith;
627
+ }
628
+ /** @oneof */
629
+ export interface StageStageOneOf {
630
+ /** Groups aggregated items to new result items. */
631
+ group?: Group;
632
+ /**
633
+ * Aggregation filter. Only items that match the filter are processed.
634
+ *
635
+ * Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
636
+ *
637
+ * > **Note:** The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format: `"someDateAndTimeFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data).
638
+ */
639
+ filter?: Record<string, any> | null;
640
+ /**
641
+ * Sorting preferences.
642
+ *
643
+ * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).
644
+ */
645
+ sort?: AggregatePipelineDataItemsRequestSorting;
646
+ /** Transforms items by including, excluding, or reshaping fields. */
647
+ projection?: Projection;
648
+ /** Transforms an object into an array where each object property becomes a new array element containing the property's key and value, as well as all other properties from the original object. */
649
+ objectToArray?: ObjectToArray;
650
+ /** Creates a result item for each array element. Each result contains the full original item, with the array field replaced by an element whose key is the array name and whose value is the array element. */
651
+ unwindArray?: UnwindArray;
652
+ /** Number of results to skip from the beginning of the result set. */
653
+ skip?: number;
654
+ /** Maximum number of results to return. */
655
+ limit?: number;
656
+ /**
657
+ * Adds or replaces fields in each result item.
658
+ * @internal
659
+ */
660
+ addFields?: AddFields;
661
+ /**
662
+ * Joins items from another collection into an array field by matching a local field against a foreign field.
663
+ * @internal
664
+ */
665
+ lookup?: Lookup;
666
+ /**
667
+ * Appends results from another collection pipeline to the current results.
668
+ * @internal
669
+ */
670
+ unionWith?: UnionWith;
671
+ }
672
+ export interface UnionWith {
673
+ /**
674
+ * ID of the collection whose results are appended to the current pipeline results.
675
+ * @maxLength 256
676
+ */
677
+ dataCollectionId?: string;
678
+ /** Pipeline to run on the union collection before appending its results. */
679
+ pipeline?: AggregationPipeline;
680
+ }
681
+ /** Unwinds an array. */
682
+ export interface UnwindArray {
683
+ /**
684
+ * Key of the array field to unwind.
685
+ *
686
+ * Use dot notation to specify a nested array. For example, `user.products` or `product.colors`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
687
+ * @maxLength 1000
688
+ */
689
+ arrayFieldName?: string;
690
+ }
691
+ export interface CommonCursorPaging {
692
+ /**
693
+ * Number of items to load.
694
+ * @max 1000
695
+ */
696
+ limit?: number | null;
697
+ /**
698
+ * Pointer to the next or previous page in the list of results.
699
+ *
700
+ * You can get the relevant cursor token
701
+ * from the `pagingMetadata` object in the previous call's response.
702
+ * Not relevant for the first request.
703
+ * @maxLength 150000
704
+ */
705
+ cursor?: string | null;
706
+ }
707
+ export interface CommonPaging {
708
+ /** Number of items to load. */
709
+ limit?: number | null;
710
+ /** Number of items to skip in the current sort order. */
711
+ offset?: number | null;
712
+ }
713
+ export interface CommonSorting {
714
+ /**
715
+ * Name of the field to sort by.
716
+ * @minLength 1
717
+ * @maxLength 1000
718
+ */
719
+ fieldName?: string;
720
+ /** Sort order. */
721
+ order?: CommonSortOrder;
722
+ }
723
+ export declare enum CommonSortOrder {
724
+ ASC = "ASC",
725
+ DESC = "DESC"
726
+ }
727
+ export interface AccountInfo {
728
+ /**
729
+ * ID of the Wix account associated with the event.
730
+ * @format GUID
731
+ */
732
+ accountId?: string | null;
733
+ /**
734
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
735
+ * @format GUID
736
+ */
737
+ parentAccountId?: string | null;
738
+ /**
739
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
740
+ * @format GUID
741
+ */
742
+ siteId?: string | null;
743
+ }
744
+ export interface IdentificationData extends IdentificationDataIdOneOf {
745
+ /**
746
+ * ID of a site visitor that has not logged in to the site.
747
+ * @format GUID
748
+ */
749
+ anonymousVisitorId?: string;
750
+ /**
751
+ * ID of a site visitor that has logged in to the site.
752
+ * @format GUID
753
+ */
754
+ memberId?: string;
755
+ /**
756
+ * ID of a Wix user (site owner, contributor, etc.).
757
+ * @format GUID
758
+ */
759
+ wixUserId?: string;
760
+ /**
761
+ * ID of an app.
762
+ * @format GUID
763
+ */
764
+ appId?: string;
765
+ /** @readonly */
766
+ identityType?: WebhookIdentityType;
767
+ }
768
+ /** @oneof */
769
+ export interface IdentificationDataIdOneOf {
770
+ /**
771
+ * ID of a site visitor that has not logged in to the site.
772
+ * @format GUID
773
+ */
774
+ anonymousVisitorId?: string;
775
+ /**
776
+ * ID of a site visitor that has logged in to the site.
777
+ * @format GUID
778
+ */
779
+ memberId?: string;
780
+ /**
781
+ * ID of a Wix user (site owner, contributor, etc.).
782
+ * @format GUID
783
+ */
784
+ wixUserId?: string;
785
+ /**
786
+ * ID of an app.
787
+ * @format GUID
788
+ */
789
+ appId?: string;
790
+ }
791
+ export declare enum WebhookIdentityType {
792
+ UNKNOWN = "UNKNOWN",
793
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
794
+ MEMBER = "MEMBER",
795
+ WIX_USER = "WIX_USER",
796
+ APP = "APP"
797
+ }
798
+ export interface MessageEnvelope {
799
+ /**
800
+ * App instance ID.
801
+ * @format GUID
802
+ */
803
+ instanceId?: string | null;
804
+ /**
805
+ * Event type.
806
+ * @maxLength 150
807
+ */
808
+ eventType?: string;
809
+ /** The identification type and identity data. */
810
+ identity?: IdentificationData;
811
+ /** Stringify payload. */
812
+ data?: string;
813
+ /** Details related to the account */
814
+ accountInfo?: AccountInfo;
815
+ }
816
+ export interface Empty {
817
+ }
818
+ export interface ApplicationError {
819
+ /** Error code. */
820
+ code?: string;
821
+ /** Description of the error. */
822
+ description?: string;
823
+ /** Data related to the error. */
824
+ data?: Record<string, any> | null;
825
+ }
826
+ export interface CursorPaging {
827
+ /**
828
+ * Maximum number of items to return in the results.
829
+ * @max 100
830
+ */
831
+ limit?: number | null;
832
+ /**
833
+ * Pointer to the next or previous page in the list of results.
834
+ *
835
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
836
+ * Not relevant for the first request.
837
+ * @maxLength 16000
838
+ */
839
+ cursor?: string | null;
840
+ }
841
+ export interface CursorPagingMetadata {
842
+ /** Number of items returned in current page. */
843
+ count?: number | null;
844
+ /** Cursor strings that point to the next page, previous page, or both. */
845
+ cursors?: Cursors;
846
+ /**
847
+ * Whether there are more pages to retrieve following the current page.
848
+ *
849
+ * + `true`: Another page of results can be retrieved.
850
+ * + `false`: This is the last page.
851
+ */
852
+ hasNext?: boolean | null;
853
+ /**
854
+ * Total number of items matching the filter.
855
+ * Available only on the first page of *Search* results, not included in *Query* or *List* results.
856
+ * If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.
857
+ * @internal
858
+ */
859
+ total?: number | null;
860
+ }
861
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
862
+ /**
863
+ * Cursor paging options.
864
+ *
865
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
866
+ */
867
+ cursorPaging?: CursorPaging;
868
+ /**
869
+ * Filter object.
870
+ *
871
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
872
+ */
873
+ filter?: Record<string, any> | null;
874
+ /**
875
+ * Sort object.
876
+ *
877
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
878
+ * @maxSize 5
879
+ */
880
+ sort?: Sorting[];
881
+ }
882
+ /** @oneof */
883
+ export interface CursorQueryPagingMethodOneOf {
884
+ /**
885
+ * Cursor paging options.
886
+ *
887
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
888
+ */
889
+ cursorPaging?: CursorPaging;
890
+ }
891
+ export interface Cursors {
892
+ /**
893
+ * Cursor string pointing to the next page in the list of results.
894
+ * @maxLength 16000
895
+ */
896
+ next?: string | null;
897
+ /**
898
+ * Cursor pointing to the previous page in the list of results.
899
+ * @maxLength 16000
900
+ */
901
+ prev?: string | null;
902
+ }
903
+ export interface ExtendedFields {
904
+ /**
905
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
906
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
907
+ *
908
+ * You can only access fields for which you have the appropriate permissions.
909
+ *
910
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
911
+ */
912
+ namespaces?: Record<string, Record<string, any>>;
913
+ }
914
+ export interface ActionEvent {
915
+ bodyAsJson?: string;
916
+ }
917
+ export interface DomainEvent extends DomainEventBodyOneOf {
918
+ createdEvent?: EntityCreatedEvent;
919
+ updatedEvent?: EntityUpdatedEvent;
920
+ deletedEvent?: EntityDeletedEvent;
921
+ actionEvent?: ActionEvent;
922
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
923
+ id?: string;
924
+ /**
925
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
926
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
927
+ */
928
+ entityFqdn?: string;
929
+ /**
930
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
931
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
932
+ */
933
+ slug?: string;
934
+ /** ID of the entity associated with the event. */
935
+ entityId?: string;
936
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
937
+ eventTime?: Date | null;
938
+ /**
939
+ * Whether the event was triggered as a result of a privacy regulation application
940
+ * (for example, GDPR).
941
+ */
942
+ triggeredByAnonymizeRequest?: boolean | null;
943
+ /** If present, indicates the action that triggered the event. */
944
+ originatedFrom?: string | null;
945
+ /**
946
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
947
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
948
+ */
949
+ entityEventSequence?: string | null;
950
+ }
951
+ /** @oneof */
952
+ export interface DomainEventBodyOneOf {
953
+ createdEvent?: EntityCreatedEvent;
954
+ updatedEvent?: EntityUpdatedEvent;
955
+ deletedEvent?: EntityDeletedEvent;
956
+ actionEvent?: ActionEvent;
957
+ }
958
+ export interface EntityCreatedEvent {
959
+ entityAsJson?: string;
960
+ /**
961
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
962
+ * @internal
963
+ */
964
+ triggeredByUndelete?: boolean | null;
965
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
966
+ restoreInfo?: RestoreInfo;
967
+ /**
968
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
969
+ * @internal
970
+ */
971
+ additionalMetadataAsJson?: string | null;
972
+ }
973
+ export interface EntityDeletedEvent {
974
+ /**
975
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
976
+ * @internal
977
+ */
978
+ movedToTrash?: boolean | null;
979
+ /** Entity that was deleted. */
980
+ deletedEntityAsJson?: string | null;
981
+ /**
982
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
983
+ * @internal
984
+ */
985
+ additionalMetadataAsJson?: string | null;
986
+ }
987
+ export interface EntityUpdatedEvent {
988
+ /**
989
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
990
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
991
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
992
+ */
993
+ currentEntityAsJson?: string;
994
+ /**
995
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
996
+ * wont populate it / have any reference to it in the API.
997
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
998
+ * the developer should send only the new (current) entity.
999
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
1000
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
1001
+ * @internal
1002
+ * @deprecated
1003
+ */
1004
+ previousEntityAsJson?: string | null;
1005
+ /**
1006
+ * Map of fully qualified field paths to their previous values for fields that changed.
1007
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
1008
+ * @internal
1009
+ */
1010
+ modifiedFields?: Record<string, any>;
1011
+ /**
1012
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
1013
+ * @internal
1014
+ */
1015
+ additionalMetadataAsJson?: string | null;
1016
+ }
1017
+ export interface RestoreInfo {
1018
+ deletedDate?: Date | null;
1019
+ }
1020
+ export interface Paging {
1021
+ /** Number of items to load. */
1022
+ limit?: number | null;
1023
+ /** Number of items to skip in the current sort order. */
1024
+ offset?: number | null;
1025
+ }
1026
+ export interface QueryV2 extends QueryV2PagingMethodOneOf {
1027
+ /** Paging options to limit and offset the number of items. */
1028
+ paging?: Paging;
1029
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
1030
+ cursorPaging?: CursorPaging;
1031
+ /**
1032
+ * Filter object.
1033
+ *
1034
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
1035
+ */
1036
+ filter?: Record<string, any> | null;
1037
+ /**
1038
+ * Sort object.
1039
+ *
1040
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
1041
+ */
1042
+ sort?: Sorting[];
1043
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
1044
+ fields?: string[];
1045
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
1046
+ fieldsets?: string[];
1047
+ }
1048
+ /** @oneof */
1049
+ export interface QueryV2PagingMethodOneOf {
1050
+ /** Paging options to limit and offset the number of items. */
1051
+ paging?: Paging;
1052
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
1053
+ cursorPaging?: CursorPaging;
1054
+ }
1055
+ export interface Sorting {
1056
+ /**
1057
+ * Name of the field to sort by.
1058
+ * @maxLength 512
1059
+ */
1060
+ fieldName?: string;
1061
+ /** Sort order. */
1062
+ order?: SortOrder;
1063
+ /**
1064
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
1065
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
1066
+ *
1067
+ * If multiple filters are provided, they are combined with AND operator.
1068
+ *
1069
+ * Example:
1070
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
1071
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
1072
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
1073
+ * @internal
1074
+ * @maxSize 10
1075
+ */
1076
+ selectItemsBy?: Record<string, any>[] | null;
1077
+ }
1078
+ export declare enum SortOrder {
1079
+ ASC = "ASC",
1080
+ DESC = "DESC"
1081
+ }
1082
+ export interface CreateFileUploadUrlRequest {
1083
+ /**
1084
+ * Name of uploaded file.
1085
+ * @maxLength 512
1086
+ */
1087
+ fileName?: string | null;
1088
+ }
1089
+ export interface CreateFileUploadUrlResponse {
1090
+ /**
1091
+ * File ID.
1092
+ * @maxLength 512
1093
+ */
1094
+ fileId?: string;
1095
+ /**
1096
+ * URL to which you can upload the file.
1097
+ * @maxLength 8192
1098
+ */
1099
+ uploadUrl?: string;
1100
+ }
1101
+ /** Data movement job object. */
1102
+ export interface DataMovementJob extends DataMovementJobStatusOptionsOneOf {
1103
+ /** When the job's `status` is `PARTIALLY_SUCCESSFUL`, the additional details. */
1104
+ partiallySuccessfulOptions?: PartiallySuccessfulStatusOptions;
1105
+ /**
1106
+ * Job ID.
1107
+ * @format GUID
1108
+ * @readonly
1109
+ */
1110
+ id?: string;
1111
+ /**
1112
+ * When the job was submitted.
1113
+ * @readonly
1114
+ */
1115
+ startedAt?: Date | null;
1116
+ /**
1117
+ * Current job status.
1118
+ * @readonly
1119
+ */
1120
+ status?: JobStatus;
1121
+ /** Source to move data from. */
1122
+ source?: Source;
1123
+ /** Destination to move data to. */
1124
+ destination?: Destination;
1125
+ /**
1126
+ * Transformations to apply to the data before moving it to the destination.
1127
+ * @internal
1128
+ * @maxSize 32
1129
+ */
1130
+ transformations?: Transformation[];
1131
+ /**
1132
+ * Job name.
1133
+ * @maxLength 1024
1134
+ */
1135
+ name?: string;
1136
+ /**
1137
+ * When the job `status` is `IN_PROGRESS`, the progress details.
1138
+ * @readonly
1139
+ */
1140
+ progress?: Progress;
1141
+ /**
1142
+ * Job finish time.
1143
+ *
1144
+ * A job is considered finished when its `status` updates to `COMPLETED`, `FAILED`, or `PARTIALLY_SUCCESSFUL`.
1145
+ * @readonly
1146
+ */
1147
+ finishedAt?: Date | null;
1148
+ /**
1149
+ * Error information.
1150
+ * @readonly
1151
+ */
1152
+ error?: ApplicationError;
1153
+ /**
1154
+ * Data center where the job started.
1155
+ * @internal
1156
+ * @readonly
1157
+ * @maxLength 64
1158
+ */
1159
+ dataCenter?: string | null;
1160
+ /**
1161
+ * When moving data from a Wix data collection, the source site ID.
1162
+ *
1163
+ * By default, the source site is the current site. To move data from [any site in the same Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account), specify the site ID, which you can retrieve by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance).
1164
+ *
1165
+ * > **Note**: You can specify the ID of a source site or destination site, but not both.
1166
+ * @format GUID
1167
+ */
1168
+ sourceSiteId?: string;
1169
+ /**
1170
+ * When moving data to a Wix data collection, the destination site ID.
1171
+ *
1172
+ * By default, the destination site is the current site. To move data to [any site in the same Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account), specify the site ID, which you can retrieve by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance).
1173
+ *
1174
+ * > **Note**: You can specify the ID of a source site or destination site, but not both.
1175
+ * @format GUID
1176
+ */
1177
+ destinationSiteId?: string;
1178
+ /** Number of recorded logs. */
1179
+ logsRecorded?: number;
1180
+ /**
1181
+ * Sync Schedule ID, if the job was triggered by a sync schedule.
1182
+ * @format GUID
1183
+ * @readonly
1184
+ */
1185
+ scheduleId?: string | null;
1186
+ /** Extended fields for custom metadata added by applications. */
1187
+ extendedFields?: ExtendedFields;
1188
+ /**
1189
+ * Workflow ID, if the job was created as a child step of a workflow.
1190
+ * @format GUID
1191
+ * @readonly
1192
+ */
1193
+ workflowId?: string | null;
1194
+ }
1195
+ /** @oneof */
1196
+ export interface DataMovementJobStatusOptionsOneOf {
1197
+ /** When the job's `status` is `PARTIALLY_SUCCESSFUL`, the additional details. */
1198
+ partiallySuccessfulOptions?: PartiallySuccessfulStatusOptions;
1199
+ }
1200
+ export interface Destination extends DestinationDestinationOneOf {
1201
+ /**
1202
+ * Wix data collection.
1203
+ *
1204
+ * You can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).
1205
+ */
1206
+ wixDataCollection?: WixDataDestination;
1207
+ /**
1208
+ * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.
1209
+ *
1210
+ * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).
1211
+ */
1212
+ localization?: LocalizationDestination;
1213
+ /** Downloadable file with the moved items. */
1214
+ file?: FileDestination;
1215
+ /**
1216
+ * Stores Catalog V3 Products collection.
1217
+ * @internal
1218
+ */
1219
+ storesCatalogProducts?: StoresCatalogProductsDestination;
1220
+ /**
1221
+ * Wix Media Manager destination.
1222
+ *
1223
+ * You can use the destination to import media from another site or from an external source.
1224
+ * To import external media, item in the source should have these fields:
1225
+ * * `url` - external HTTP(S) link to download the item
1226
+ * * `displayName` - new name in the Media Manager
1227
+ * @internal
1228
+ */
1229
+ wixMedia?: WixMediaDestination;
1230
+ /**
1231
+ * Target for creating new Wix data collections.
1232
+ *
1233
+ * Creates new empty collections on the target site (structure only, no data items). Each item describes structure of a single collection (e.g. fields, display names, and other information).
1234
+ * @internal
1235
+ */
1236
+ wixDataCollectionDefinition?: WixDataCollectionDefinitionDestination;
1237
+ /**
1238
+ * Stores Catalog V3 Inventory collection.
1239
+ * @internal
1240
+ */
1241
+ storesCatalogInventory?: StoresCatalogInventoryDestination;
1242
+ /**
1243
+ * Test destination used for destinations in development. Once development is complete, specify a destination with a well-defined API.
1244
+ * @internal
1245
+ */
1246
+ test?: TestDestination;
1247
+ }
1248
+ /** @oneof */
1249
+ export interface DestinationDestinationOneOf {
1250
+ /**
1251
+ * Wix data collection.
1252
+ *
1253
+ * You can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).
1254
+ */
1255
+ wixDataCollection?: WixDataDestination;
1256
+ /**
1257
+ * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.
1258
+ *
1259
+ * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).
1260
+ */
1261
+ localization?: LocalizationDestination;
1262
+ /** Downloadable file with the moved items. */
1263
+ file?: FileDestination;
1264
+ /**
1265
+ * Stores Catalog V3 Products collection.
1266
+ * @internal
1267
+ */
1268
+ storesCatalogProducts?: StoresCatalogProductsDestination;
1269
+ /**
1270
+ * Wix Media Manager destination.
1271
+ *
1272
+ * You can use the destination to import media from another site or from an external source.
1273
+ * To import external media, item in the source should have these fields:
1274
+ * * `url` - external HTTP(S) link to download the item
1275
+ * * `displayName` - new name in the Media Manager
1276
+ * @internal
1277
+ */
1278
+ wixMedia?: WixMediaDestination;
1279
+ /**
1280
+ * Target for creating new Wix data collections.
1281
+ *
1282
+ * Creates new empty collections on the target site (structure only, no data items). Each item describes structure of a single collection (e.g. fields, display names, and other information).
1283
+ * @internal
1284
+ */
1285
+ wixDataCollectionDefinition?: WixDataCollectionDefinitionDestination;
1286
+ /**
1287
+ * Stores Catalog V3 Inventory collection.
1288
+ * @internal
1289
+ */
1290
+ storesCatalogInventory?: StoresCatalogInventoryDestination;
1291
+ /**
1292
+ * Test destination used for destinations in development. Once development is complete, specify a destination with a well-defined API.
1293
+ * @internal
1294
+ */
1295
+ test?: TestDestination;
1296
+ }
1297
+ export interface Field {
1298
+ /**
1299
+ * Field ID.
1300
+ *
1301
+ * If the field type is `Array`, specify the item index. If the field type is `Object`, specify the field path. Use dot notation to specify nested fields, for example: `data.address.city`.
1302
+ * @maxLength 1024
1303
+ */
1304
+ key?: string;
1305
+ /**
1306
+ * Field display name.
1307
+ *
1308
+ * When moving items to CSV files, use this to set the header of the target column.
1309
+ * @maxLength 1024
1310
+ */
1311
+ displayName?: string;
1312
+ /**
1313
+ * Field data type. Default: `ANY`.
1314
+ *
1315
+ * Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data).
1316
+ */
1317
+ fieldType?: FieldType;
1318
+ }
1319
+ export declare enum FieldType {
1320
+ /** Any data type. */
1321
+ ANY = "ANY",
1322
+ /** String. */
1323
+ STRING = "STRING",
1324
+ /** Number. */
1325
+ NUMBER = "NUMBER",
1326
+ /** Boolean. */
1327
+ BOOLEAN = "BOOLEAN",
1328
+ /** Date string in ISO 8601 date format: `YYYY-MM-DD`. */
1329
+ DATE = "DATE",
1330
+ /** [Date object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) (SDK) or an object in the following format: `"someFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`. */
1331
+ DATETIME = "DATETIME",
1332
+ /** Binary file. */
1333
+ BINARY = "BINARY",
1334
+ /** object. */
1335
+ OBJECT = "OBJECT",
1336
+ /** Array. */
1337
+ ARRAY = "ARRAY",
1338
+ /** Web URL. */
1339
+ URL = "URL",
1340
+ WIX_MEDIA_URL = "WIX_MEDIA_URL",
1341
+ WIX_MEDIA_IMAGE_URL = "WIX_MEDIA_IMAGE_URL",
1342
+ WIX_MEDIA_VIDEO_URL = "WIX_MEDIA_VIDEO_URL",
1343
+ WIX_MEDIA_DOCUMENT_URL = "WIX_MEDIA_DOCUMENT_URL",
1344
+ IMAGE_URL = "IMAGE_URL",
1345
+ VIDEO_URL = "VIDEO_URL"
1346
+ }
1347
+ /** Destination file. Creates a file and generates a download URL. */
1348
+ export interface FileDestination {
1349
+ /** File format. */
1350
+ format?: FileFormat;
1351
+ /**
1352
+ * File name.
1353
+ * @maxLength 512
1354
+ */
1355
+ fileName?: string | null;
1356
+ /**
1357
+ * File ID.
1358
+ * @internal
1359
+ * @readonly
1360
+ * @maxLength 128
1361
+ */
1362
+ fileId?: string;
1363
+ /**
1364
+ * File download URL.
1365
+ * @readonly
1366
+ * @maxLength 2048
1367
+ */
1368
+ url?: string;
1369
+ /**
1370
+ * Formatting schema for the destination file.
1371
+ *
1372
+ * When moving data to CSV files, use each field's `key` to specify the path of the data in the source item. Use each field's `display_name` property to set the header in the CSV file's first row.
1373
+ *
1374
+ * For example, a source item of the [type](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data) `Object` with the nested properties `data: {address: {city: cityName}}` can be mapped to the CSV file by specifying the field's `key` as `data.address.city` and its `display_name` as `City`.
1375
+ *
1376
+ * If the schema isn't set, the source file schema is used.
1377
+ * @internal
1378
+ */
1379
+ schema?: Schema;
1380
+ }
1381
+ export declare enum FileFormat {
1382
+ /** Unknown format. */
1383
+ UNKNOWN = "UNKNOWN",
1384
+ /** CSV format. */
1385
+ CSV = "CSV",
1386
+ /** JSONL format. */
1387
+ JSONL = "JSONL"
1388
+ }
1389
+ export interface GetJobRequest {
1390
+ /**
1391
+ * Job ID.
1392
+ * @format GUID
1393
+ */
1394
+ jobId: string;
1395
+ }
1396
+ export interface GetJobResponse {
1397
+ /** Details of the retrieved job. */
1398
+ job?: DataMovementJob;
1399
+ }
1400
+ export interface ItemsSuccessfulInfo {
1401
+ /** Number of new items created in the destination. */
1402
+ itemsCreated?: number;
1403
+ /** Number of existing items updated in the destination. */
1404
+ itemsUpdated?: number;
1405
+ /**
1406
+ * Number of items whose movement was partially successful.
1407
+ *
1408
+ * > **Note**: Call List Movement Logs for additional details.
1409
+ */
1410
+ itemsPartiallySuccessful?: number;
1411
+ }
1412
+ export interface JobCallback extends JobCallbackOptionsOneOf {
1413
+ /** Options for the callback's `IN_PROGRESS` stage. */
1414
+ inProgressOptions?: InProgressOptions;
1415
+ /** Options for the callback's `FAILED` stage. */
1416
+ failedOptions?: FailedOptions;
1417
+ /** Options for the callback's `PARTIALLY_SUCCESSFUL` stage. */
1418
+ partiallySuccessfulOptions?: PartiallySuccessfulOptions;
1419
+ /**
1420
+ * ID of the job that triggered this callback.
1421
+ * @format GUID
1422
+ */
1423
+ jobId?: string;
1424
+ /** Job status. */
1425
+ status?: JobStatus;
1426
+ /** Additional data to be merged into the job entity's extended_fields. */
1427
+ additionalData?: ExtendedFields;
1428
+ }
1429
+ /** @oneof */
1430
+ export interface JobCallbackOptionsOneOf {
1431
+ /** Options for the callback's `IN_PROGRESS` stage. */
1432
+ inProgressOptions?: InProgressOptions;
1433
+ /** Options for the callback's `FAILED` stage. */
1434
+ failedOptions?: FailedOptions;
1435
+ /** Options for the callback's `PARTIALLY_SUCCESSFUL` stage. */
1436
+ partiallySuccessfulOptions?: PartiallySuccessfulOptions;
1437
+ }
1438
+ export interface FailedOptions {
1439
+ /** Details of the failure. */
1440
+ error?: ApplicationError;
1441
+ }
1442
+ export interface InProgressOptions {
1443
+ /** When the job status is `IN_PROGRESS`, the job progress information. */
1444
+ progress?: Progress;
1445
+ /**
1446
+ * Job movement log. Includes information about failed items or items that succeeded with notes.
1447
+ * @maxSize 1024
1448
+ */
1449
+ log?: MovementLog[];
1450
+ }
1451
+ export interface PartiallySuccessfulOptions {
1452
+ /**
1453
+ * Why the job was partially successful.
1454
+ * @maxLength 1000
1455
+ */
1456
+ cause?: string;
1457
+ }
1458
+ export declare enum JobStatus {
1459
+ /** Job was submitted but has not yet started. */
1460
+ UNINITIALIZED = "UNINITIALIZED",
1461
+ /** Job is initializing. */
1462
+ INITIALIZING = "INITIALIZING",
1463
+ /** Job is in progress. */
1464
+ IN_PROGRESS = "IN_PROGRESS",
1465
+ /** Job has successfully completed. */
1466
+ COMPLETED = "COMPLETED",
1467
+ /** Job has failed. */
1468
+ FAILED = "FAILED",
1469
+ /** Job has completed but was partially successful due to a destination limitation. See `PartiallySuccessfulOptions` for additional details. */
1470
+ PARTIALLY_SUCCESSFUL = "PARTIALLY_SUCCESSFUL"
1471
+ }
1472
+ export interface ListJobsRequest {
1473
+ /** Paging metadata. */
1474
+ paging?: CursorPaging;
1475
+ /**
1476
+ * Query preferences. Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
1477
+ * @internal
1478
+ * @deprecated
1479
+ * @targetRemovalDate 2025-09-30
1480
+ */
1481
+ query?: QueryV2;
1482
+ }
1483
+ export interface ListJobsResponse {
1484
+ /** List of jobs for the current site. */
1485
+ jobs?: DataMovementJob[];
1486
+ /** Paging metadata. */
1487
+ pagingMetadata?: CursorPagingMetadata;
1488
+ }
1489
+ export interface ListMovementLogsRequest {
1490
+ /**
1491
+ * ID of the job for which to list logs.
1492
+ * @format GUID
1493
+ */
1494
+ jobId: string;
1495
+ /** Paging metadata. */
1496
+ paging?: CursorPaging;
1497
+ }
1498
+ export interface ListMovementLogsResponse {
1499
+ /** Job logs. */
1500
+ logs?: MovementLog[];
1501
+ /** Paging metadata. */
1502
+ pagingMetadata?: CursorPagingMetadata;
1503
+ }
1504
+ export interface LocalizationDestination {
1505
+ /**
1506
+ * Translated CMS content in the specified languages. Content in these languages is imported from the source, with the first specified language treated as the main one.
1507
+ *
1508
+ * Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.
1509
+ *
1510
+ * Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).
1511
+ * @minSize 2
1512
+ * @maxSize 64
1513
+ * @format LANGUAGE_TAG
1514
+ */
1515
+ languages?: string[];
1516
+ }
1517
+ /**
1518
+ * Details about the attempt to move the source item.
1519
+ *
1520
+ * Logs are generated by the destination for each item that failed to move. Some destination also generate logs for items that successfully moved.
1521
+ */
1522
+ export interface MovementLog {
1523
+ /**
1524
+ * ID of the item in the source, such as a Wix Data Item or a row number in a CSV file.
1525
+ * @maxLength 512
1526
+ */
1527
+ sourceItemId?: string;
1528
+ /** Details about the failure if moving the item fails. */
1529
+ failure?: ApplicationError;
1530
+ /**
1531
+ * Notes generated when an item is successfully moved.
1532
+ *
1533
+ * > **Note**: Only some items generate notes when successfully moved.
1534
+ * @internal
1535
+ * @deprecated Notes generated when an item is successfully moved.
1536
+ *
1537
+ * > **Note**: Only some items generate notes when successfully moved.
1538
+ * @replacedBy details
1539
+ * @targetRemovalDate 2026-12-01
1540
+ */
1541
+ success?: Record<string, any> | null;
1542
+ /**
1543
+ * Additional details provided when moving the item succeeds with details.
1544
+ *
1545
+ * > **Note**: Each destination type determines the structure of its `details` object.
1546
+ */
1547
+ details?: Record<string, any> | null;
1548
+ }
1549
+ export interface PartiallySuccessfulStatusOptions {
1550
+ /**
1551
+ * Reason the job was partially successful.
1552
+ * @maxLength 1000
1553
+ */
1554
+ cause?: string;
1555
+ }
1556
+ /** When the job's status is `IN_PROGRESS`, the job's progress details. */
1557
+ export interface Progress {
1558
+ /**
1559
+ * Number of units already processed.
1560
+ * @readonly
1561
+ */
1562
+ current?: number;
1563
+ /**
1564
+ * Total number of units to move.
1565
+ * @readonly
1566
+ */
1567
+ total?: number | null;
1568
+ /**
1569
+ * Units of progress, such as items or pages.
1570
+ * @internal
1571
+ * @readonly
1572
+ * @maxLength 128
1573
+ * @deprecated
1574
+ * @replacedBy units
1575
+ * @targetRemovalDate 2026-06-30
1576
+ */
1577
+ unit?: string;
1578
+ /**
1579
+ * Number of items successfully moved to the destination.
1580
+ * @internal
1581
+ * @readonly
1582
+ * @deprecated
1583
+ * @replacedBy items_successful
1584
+ * @targetRemovalDate 2026-03-31
1585
+ */
1586
+ itemsProcessed?: number;
1587
+ /** Number of items that failed to move to the destination. */
1588
+ itemsRejected?: number;
1589
+ /** Number of items successfully moved to the destination. */
1590
+ itemsSuccessful?: number;
1591
+ /**
1592
+ * Details about items that were successfully moved.
1593
+ * @internal
1594
+ */
1595
+ itemsSuccessfulInfo?: ItemsSuccessfulInfo;
1596
+ /**
1597
+ * Units of progress, such as items or bytes.
1598
+ * @internal
1599
+ * @readonly
1600
+ */
1601
+ units?: Units;
1602
+ }
1603
+ export declare enum Units {
1604
+ /** Default value. This value is unused. */
1605
+ UNKNOWN_UNITS = "UNKNOWN_UNITS",
1606
+ /** Unit of bytes. */
1607
+ BYTES = "BYTES",
1608
+ /** Unit of items. */
1609
+ ITEMS = "ITEMS"
1610
+ }
1611
+ export interface QueryJobsRequest {
1612
+ /** Query preferences. Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */
1613
+ query?: CursorQuery;
1614
+ }
1615
+ export interface QueryJobsResponse {
1616
+ /** List of jobs matching the query. */
1617
+ jobs?: DataMovementJob[];
1618
+ /** Paging metadata. */
1619
+ pagingMetadata?: CursorPagingMetadata;
1620
+ }
1621
+ /** Schema used to specify item format. */
1622
+ export interface Schema {
1623
+ /**
1624
+ * Item fields to move to the destination file.
1625
+ * @maxSize 1000
1626
+ */
1627
+ fields?: Field[];
1628
+ }
1629
+ export interface Source extends SourceSourceOneOf {
1630
+ /**
1631
+ * Wix data collection.
1632
+ *
1633
+ * You can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).
1634
+ */
1635
+ wixDataCollection?: WixDataSource;
1636
+ /**
1637
+ * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.
1638
+ *
1639
+ * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).
1640
+ */
1641
+ localization?: LocalizationSource;
1642
+ /**
1643
+ * Source file.
1644
+ *
1645
+ * You can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.
1646
+ *
1647
+ * To upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:
1648
+ *
1649
+ * `curl --request PUT --upload-file "${path_to_file}" "${uploadUrl}"`
1650
+ */
1651
+ file?: FileSource;
1652
+ /**
1653
+ * Test source used for sources under development. When development is completed, a dedicated source must be added with a robust API.
1654
+ * @internal
1655
+ */
1656
+ test?: TestSource;
1657
+ /**
1658
+ * Job logs.
1659
+ * @internal
1660
+ */
1661
+ dataMovementLogs?: DataMovementJobLogs;
1662
+ /**
1663
+ * File.
1664
+ * @internal
1665
+ */
1666
+ externalFile?: ExternalFileSource;
1667
+ /**
1668
+ * Google Sheets source.
1669
+ * @internal
1670
+ */
1671
+ googleSheets?: GoogleSheetsSource;
1672
+ /**
1673
+ * Wix Media Manager source.
1674
+ *
1675
+ * You can use the Wix Media source to retrieve all media in a site, including download links. It can also be
1676
+ * used to copy media to another site.
1677
+ *
1678
+ * It will traverse all media recursively starting with `sourceFolderId` or root folder if not supplied.
1679
+ * @internal
1680
+ */
1681
+ wixMedia?: WixMediaSource;
1682
+ /**
1683
+ * Structure of Wix data collections (fields, permissions, etc.).
1684
+ *
1685
+ * Reads collection structure for the specified collection IDs.
1686
+ * @internal
1687
+ */
1688
+ wixDataCollectionDefinition?: WixDataCollectionDefinitionSource;
1689
+ }
1690
+ /** @oneof */
1691
+ export interface SourceSourceOneOf {
1692
+ /**
1693
+ * Wix data collection.
1694
+ *
1695
+ * You can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).
1696
+ */
1697
+ wixDataCollection?: WixDataSource;
1698
+ /**
1699
+ * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.
1700
+ *
1701
+ * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).
1702
+ */
1703
+ localization?: LocalizationSource;
1704
+ /**
1705
+ * Source file.
1706
+ *
1707
+ * You can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.
1708
+ *
1709
+ * To upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:
1710
+ *
1711
+ * `curl --request PUT --upload-file "${path_to_file}" "${uploadUrl}"`
1712
+ */
1713
+ file?: FileSource;
1714
+ /**
1715
+ * Test source used for sources under development. When development is completed, a dedicated source must be added with a robust API.
1716
+ * @internal
1717
+ */
1718
+ test?: TestSource;
1719
+ /**
1720
+ * Job logs.
1721
+ * @internal
1722
+ */
1723
+ dataMovementLogs?: DataMovementJobLogs;
1724
+ /**
1725
+ * File.
1726
+ * @internal
1727
+ */
1728
+ externalFile?: ExternalFileSource;
1729
+ /**
1730
+ * Google Sheets source.
1731
+ * @internal
1732
+ */
1733
+ googleSheets?: GoogleSheetsSource;
1734
+ /**
1735
+ * Wix Media Manager source.
1736
+ *
1737
+ * You can use the Wix Media source to retrieve all media in a site, including download links. It can also be
1738
+ * used to copy media to another site.
1739
+ *
1740
+ * It will traverse all media recursively starting with `sourceFolderId` or root folder if not supplied.
1741
+ * @internal
1742
+ */
1743
+ wixMedia?: WixMediaSource;
1744
+ /**
1745
+ * Structure of Wix data collections (fields, permissions, etc.).
1746
+ *
1747
+ * Reads collection structure for the specified collection IDs.
1748
+ * @internal
1749
+ */
1750
+ wixDataCollectionDefinition?: WixDataCollectionDefinitionSource;
1751
+ }
1752
+ /** Job logs. */
1753
+ export interface DataMovementJobLogs {
1754
+ /**
1755
+ * ID of the job from which to export logs.
1756
+ * @format GUID
1757
+ */
1758
+ jobId?: string;
1759
+ }
1760
+ /** File. */
1761
+ export interface ExternalFileSource {
1762
+ /** File format. If not specified, automatically determined by Wix. */
1763
+ format?: FileFormat;
1764
+ /**
1765
+ * URL where the source file is located.
1766
+ * @maxLength 2048
1767
+ * @format WEB_URL
1768
+ */
1769
+ url?: string;
1770
+ }
1771
+ /**
1772
+ * File.
1773
+ *
1774
+ * To create a file upload URL, call the Create File Upload Url method and use the `uploadURL` in the response to upload the source file.
1775
+ */
1776
+ export interface FileSource {
1777
+ /** File format. If not specified, automatically determined by Wix. */
1778
+ format?: FileFormat;
1779
+ /**
1780
+ * File ID as returned in the `fileId` property of the Create File Upload URL method's response.
1781
+ * @maxLength 512
1782
+ */
1783
+ fileId?: string;
1784
+ /**
1785
+ * URL where the source file is uploaded. Automatically generated by Wix.
1786
+ * @readonly
1787
+ * @maxLength 2048
1788
+ */
1789
+ url?: string;
1790
+ }
1791
+ /** Google Sheets source. */
1792
+ export interface GoogleSheetsSource {
1793
+ /**
1794
+ * ID of the Google Sheets spreadsheet.
1795
+ * @minLength 1
1796
+ * @maxLength 256
1797
+ */
1798
+ spreadsheetId?: string;
1799
+ /**
1800
+ * Name of the sheet within the spreadsheet.
1801
+ * @maxLength 256
1802
+ */
1803
+ sheetName?: string | null;
1804
+ /**
1805
+ * Range of cells within the sheet.
1806
+ * @maxLength 256
1807
+ */
1808
+ range?: string | null;
1809
+ /**
1810
+ * Entity ID of the saved OAuth token.
1811
+ * @format GUID
1812
+ */
1813
+ oauthTokenId?: string;
1814
+ /**
1815
+ * OAuth2 access token for authenticated access
1816
+ *
1817
+ * This field is SERVER-MANAGED ONLY
1818
+ * - Client-provided values are IGNORED for security reasons
1819
+ * - Server refreshes token using stored refresh_token on job submission
1820
+ * @internal
1821
+ * @maxLength 8192
1822
+ */
1823
+ accessToken?: string | null;
1824
+ }
1825
+ export interface LocalizationSource {
1826
+ /**
1827
+ * Translated CMS content in the specified languages. Content in these languages is exported to the destination, with the first specified language treated as the main one.
1828
+ *
1829
+ * Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.
1830
+ *
1831
+ * Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).
1832
+ * @format LANGUAGE_TAG
1833
+ * @minSize 2
1834
+ * @maxSize 64
1835
+ */
1836
+ languages?: string[];
1837
+ }
1838
+ export interface TestSource {
1839
+ /**
1840
+ * Discriminator value for a particular test source.
1841
+ * @maxLength 512
1842
+ */
1843
+ type?: string;
1844
+ /** Test source details. */
1845
+ details?: Record<string, any> | null;
1846
+ }
1847
+ /** Exports collection structure (fields, permissions, etc.) from a site. */
1848
+ export interface WixDataCollectionDefinitionSource {
1849
+ /**
1850
+ * IDs of collections whose definitions to read.
1851
+ * @minSize 1
1852
+ * @maxSize 1000
1853
+ * @maxLength 256
1854
+ */
1855
+ collectionIds?: string[];
1856
+ }
1857
+ /** Wix data collection. */
1858
+ export interface WixDataSource extends WixDataSourceQueryOneOf {
1859
+ /** Filter and field selection to apply to the collection items. */
1860
+ filterQuery?: FilterQuery;
1861
+ /** Aggregation pipeline to run on the collection. */
1862
+ aggregationQuery?: AggregationQuery;
1863
+ /**
1864
+ * ID of the data collection.
1865
+ * @minLength 1
1866
+ * @maxLength 256
1867
+ */
1868
+ collectionId?: string;
1869
+ /**
1870
+ * [Collection environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing) from which to move data. Default: `LIVE`.
1871
+ * @internal
1872
+ */
1873
+ environment?: WixDataEnvironment;
1874
+ /**
1875
+ * Filter to apply to the items. Only items that pass the filter are moved.
1876
+ *
1877
+ * Learn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
1878
+ * Deprecated: Use `filter_query.filter` instead.
1879
+ * @deprecated
1880
+ * @replacedBy filter_query
1881
+ * @targetRemovalDate 2027-01-01
1882
+ */
1883
+ filter?: Record<string, any> | null;
1884
+ /**
1885
+ * Deprecated: Use `filter_query.fields` instead.
1886
+ * @deprecated
1887
+ * @replacedBy filter_query
1888
+ * @targetRemovalDate 2027-01-01
1889
+ */
1890
+ fields?: string[];
1891
+ /**
1892
+ * Grid App ID. Optional in the collection's LIVE environment.
1893
+ * @internal
1894
+ * @format GUID
1895
+ */
1896
+ appId?: string | null;
1897
+ }
1898
+ /** @oneof */
1899
+ export interface WixDataSourceQueryOneOf {
1900
+ /** Filter and field selection to apply to the collection items. */
1901
+ filterQuery?: FilterQuery;
1902
+ /** Aggregation pipeline to run on the collection. */
1903
+ aggregationQuery?: AggregationQuery;
1904
+ }
1905
+ export interface AggregationQuery {
1906
+ /** Aggregation pipeline to run on the collection. */
1907
+ aggregationPipeline?: AggregationPipeline;
1908
+ /**
1909
+ * Fields, will be used to map aggregation pipeline result to export result.
1910
+ * Fields in the aggregation pipeline results that are not in the provided list will be ignored.
1911
+ * If no fields provided, data will be exported as is, without transformation or field name mapping.
1912
+ * @maxSize 1000
1913
+ */
1914
+ fields?: Field[];
1915
+ }
1916
+ /** Filter and field selection query. */
1917
+ export interface FilterQuery {
1918
+ /**
1919
+ * Filter to apply to the items. Only items that pass the filter are moved.
1920
+ *
1921
+ * Learn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
1922
+ */
1923
+ filter?: Record<string, any> | null;
1924
+ /** Item fields to move. If not set, the method moves the full items. */
1925
+ fields?: string[];
1926
+ }
1927
+ /** Wix Media Manager source. */
1928
+ export interface WixMediaSource {
1929
+ /**
1930
+ * ID of the source folder in the Media Manager. If not specified, all media items are included.
1931
+ * @maxLength 256
1932
+ */
1933
+ sourceFolderId?: string | null;
1934
+ /**
1935
+ * Type of media to include. Default: all media types.
1936
+ * Not currently supported.
1937
+ * @internal
1938
+ */
1939
+ mediaType?: MediaType;
1940
+ }
1941
+ export declare enum MediaType {
1942
+ /** All media types. */
1943
+ ALL = "ALL",
1944
+ /** Images. */
1945
+ IMAGE = "IMAGE",
1946
+ /** Videos. */
1947
+ VIDEO = "VIDEO",
1948
+ /** Audio files. */
1949
+ AUDIO = "AUDIO",
1950
+ /** Documents. */
1951
+ DOCUMENT = "DOCUMENT"
1952
+ }
1953
+ export interface StoresCatalogInventoryDestination {
1954
+ }
1955
+ export interface StoresCatalogProductsDestination {
1956
+ }
1957
+ export interface SubmitJobRequest extends SubmitJobRequestSiteOverrideOneOf {
1958
+ /**
1959
+ * When moving data from the Wix data collection of a site other than the current one, the source site ID.
1960
+ *
1961
+ * By default, the source site is the current site. However, you can move data from any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).
1962
+ *
1963
+ * > **Note**: You can specify the ID of another source site or destination site, but not both.
1964
+ * @format GUID
1965
+ */
1966
+ sourceSiteId?: string;
1967
+ /**
1968
+ * When moving data to the Wix data collection of a site other than the current one, the destination site ID.
1969
+ *
1970
+ * By default, the destination site is the current site. However, you can move data to any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account) by specifying its ID. You can retrieve this ID by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance).
1971
+ *
1972
+ * > **Note**: You can specify the ID of another source site or destination site, but not both.
1973
+ * @format GUID
1974
+ */
1975
+ destinationSiteId?: string;
1976
+ /** Source to move data from. */
1977
+ source: Source;
1978
+ /** Destination to move data to. */
1979
+ destination: Destination;
1980
+ /**
1981
+ * Transformations to apply to the data before moving to the destination.
1982
+ * @internal
1983
+ * @maxSize 32
1984
+ */
1985
+ transformations?: Transformation[];
1986
+ /** Job name. */
1987
+ name?: string;
1988
+ /**
1989
+ * Sync Schedule ID, if the job was triggered by a sync schedule.
1990
+ * @internal
1991
+ * @format GUID
1992
+ */
1993
+ scheduleId?: string | null;
1994
+ /**
1995
+ * Workflow ID, if the job was triggered as a workflow child step.
1996
+ * @internal
1997
+ * @format GUID
1998
+ */
1999
+ workflowId?: string | null;
2000
+ }
2001
+ /** @oneof */
2002
+ export interface SubmitJobRequestSiteOverrideOneOf {
2003
+ /**
2004
+ * When moving data from the Wix data collection of a site other than the current one, the source site ID.
2005
+ *
2006
+ * By default, the source site is the current site. However, you can move data from any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).
2007
+ *
2008
+ * > **Note**: You can specify the ID of another source site or destination site, but not both.
2009
+ * @format GUID
2010
+ */
2011
+ sourceSiteId?: string;
2012
+ /**
2013
+ * When moving data to the Wix data collection of a site other than the current one, the destination site ID.
2014
+ *
2015
+ * By default, the destination site is the current site. However, you can move data to any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account) by specifying its ID. You can retrieve this ID by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance).
2016
+ *
2017
+ * > **Note**: You can specify the ID of another source site or destination site, but not both.
2018
+ * @format GUID
2019
+ */
2020
+ destinationSiteId?: string;
2021
+ }
2022
+ export interface SubmitJobResponse {
2023
+ /** Details of the submitted job. */
2024
+ job?: DataMovementJob;
2025
+ }
2026
+ export interface TerminateJobByIdRequest {
2027
+ /**
2028
+ * ID of the job to terminate.
2029
+ * @format GUID
2030
+ */
2031
+ jobId?: string;
2032
+ }
2033
+ export interface TerminateJobByIdResponse {
2034
+ /** Details of the terminated job. */
2035
+ job?: DataMovementJob;
2036
+ }
2037
+ export interface TerminateJobRequest {
2038
+ /**
2039
+ * ID of the job to terminate.
2040
+ * @format GUID
2041
+ */
2042
+ jobId: string;
2043
+ }
2044
+ export interface TerminateJobResponse {
2045
+ /** Details of the terminated job. */
2046
+ job?: DataMovementJob;
2047
+ }
2048
+ export interface TestDestination {
2049
+ /**
2050
+ * Discriminator value for a particular test destination.
2051
+ * @maxLength 512
2052
+ */
2053
+ type?: string;
2054
+ /** Test destination details. */
2055
+ details?: Record<string, any> | null;
2056
+ }
2057
+ export interface TestTransformation {
2058
+ /**
2059
+ * Discriminator value for a particular test transformation.
2060
+ * @internal
2061
+ * @maxLength 512
2062
+ */
2063
+ type?: string;
2064
+ /**
2065
+ * Test transformation details.
2066
+ * @internal
2067
+ */
2068
+ details?: Record<string, any> | null;
2069
+ }
2070
+ export interface Transformation extends TransformationTransformationOneOf {
2071
+ /**
2072
+ * Test transformation used for transformation under development.
2073
+ * Once development is completed, a dedicated transformation must be added with a well-defined API.
2074
+ * @internal
2075
+ */
2076
+ test?: TestTransformation;
2077
+ }
2078
+ /** @oneof */
2079
+ export interface TransformationTransformationOneOf {
2080
+ /**
2081
+ * Test transformation used for transformation under development.
2082
+ * Once development is completed, a dedicated transformation must be added with a well-defined API.
2083
+ * @internal
2084
+ */
2085
+ test?: TestTransformation;
2086
+ }
2087
+ /** Creates empty Wix data collections (no data items are inserted). */
2088
+ export interface WixDataCollectionDefinitionDestination {
2089
+ /** Policy for handling collections that already exist on the target site. */
2090
+ writePolicy?: WixDataCollectionDefinitionDestinationWritePolicy;
2091
+ }
2092
+ export declare enum WixDataCollectionDefinitionDestinationWritePolicy {
2093
+ /** Only create new collections. Skip collections that already exist on the target site. */
2094
+ SKIP_EXISTING = "SKIP_EXISTING",
2095
+ /** Create new collections and overwrite existing ones. */
2096
+ OVERWRITE = "OVERWRITE"
2097
+ }
2098
+ /** Wix data collection. */
2099
+ export interface WixDataDestination {
2100
+ /**
2101
+ * ID of the destination collection.
2102
+ * @maxLength 256
2103
+ */
2104
+ collectionId?: string;
2105
+ /**
2106
+ * When items already exist in the destination collection, the data writing policy.
2107
+ *
2108
+ * Default: `OVERWRITE`.
2109
+ */
2110
+ writePolicy?: WritePolicy;
2111
+ /**
2112
+ * [Collection environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing) to which to write data. Default: `LIVE`.
2113
+ * @internal
2114
+ */
2115
+ environment?: WixDataEnvironment;
2116
+ /**
2117
+ * Grid App ID. Optional in a collection's LIVE environment.
2118
+ * @internal
2119
+ * @format GUID
2120
+ */
2121
+ appId?: string | null;
2122
+ }
2123
+ export declare enum WritePolicy {
2124
+ /** When an item with the same ID exists in the collection, overwrite it. */
2125
+ OVERWRITE = "OVERWRITE",
2126
+ /** When an item with the same ID exists in the collection, skip it. */
2127
+ SKIP_EXISTING = "SKIP_EXISTING",
2128
+ /** Clear the destination collection before moving data. When the job completes, the collection contains only the moved data. */
2129
+ TRUNCATE_BEFORE = "TRUNCATE_BEFORE"
2130
+ }
2131
+ export declare enum WixDataEnvironment {
2132
+ /** Collection's [live environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#sandbox-collections). */
2133
+ LIVE = "LIVE",
2134
+ /** Collection's [sandbox environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#live-collections). */
2135
+ SANDBOX = "SANDBOX"
2136
+ }
2137
+ /** Wix Media Manager destination. */
2138
+ export interface WixMediaDestination {
2139
+ /**
2140
+ * ID of the target folder in the Media Manager. If not specified, media is imported to the root folder.
2141
+ * @maxLength 256
2142
+ */
2143
+ targetFolderId?: string | null;
2144
+ /**
2145
+ * Policy for handling duplicate media items.
2146
+ * Not currently supported.
2147
+ * @internal
2148
+ */
2149
+ writePolicy?: WixMediaDestinationWritePolicy;
2150
+ }
2151
+ export declare enum WixMediaDestinationWritePolicy {
2152
+ /** Overwrite existing media with the same name. */
2153
+ OVERWRITE = "OVERWRITE",
2154
+ /** Skip media that already exists. */
2155
+ SKIP_EXISTING = "SKIP_EXISTING"
2156
+ }