@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,85 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wixpress.cloud.data.api.data;
4
+
5
+ import "google/protobuf/wrappers.proto";
6
+ import "google/protobuf/struct.proto";
7
+ import "wix/api/annotations.proto";
8
+ import "wix/api/validations.proto";
9
+ import "com/wixpress/cloud/data/api/common.proto";
10
+ import "com/wixpress/cloud/data/api/data/message/bulk-data-item-result.proto";
11
+ import "com/wixpress/cloud/data/api/data/message/data-item.proto";
12
+ import "com/wixpress/cloud/data/api/data/message/options.proto";
13
+ import "com/wixpress/cloud/data/api/data/message/condition.proto";
14
+ import "com/wixpress/cloud/data/api/data/upstream/wix/common/bulk.proto";
15
+
16
+ message BulkUpdateDataItemsRequest {
17
+ // Environment: LIVE or SANDBOX
18
+ Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
19
+
20
+ // ID of the collection in which to update items.
21
+ string data_collection_id = 2 [(wix.api.maxLength) = 256];
22
+
23
+ // Data items to update.
24
+ repeated DataItem data_items = 3 [(wix.api.maxSize) = 1000];
25
+
26
+ // Grid app id. Optional in Live segment.
27
+ google.protobuf.StringValue app_id = 4 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
28
+
29
+ // Data access options
30
+ Options options = 5 [
31
+ (wix.api.field_exposure) = PRIVATE,
32
+ deprecated = true,
33
+ (wix.api.field_deprecated) = {
34
+ replaced_by: "inlined"
35
+ target_removal_date: "2024-07-12"
36
+ }
37
+ ];
38
+
39
+ // Whether to return the updated data items.
40
+ // When `true`, the `results` objects contain a `dataItem` field.
41
+ //
42
+ // Default: `false`
43
+ bool return_entity = 6;
44
+
45
+ // Whether to suppress data hooks.
46
+ // When `true`, data hooks typically triggered by this endpoint don't run.
47
+ //
48
+ // **Note:** This option can only be used in code that runs in [the Wix site backend](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend).
49
+ //
50
+ // Default: `false`
51
+ bool suppress_hooks = 7 [(wix.api.field_exposure) = PRIVATE];
52
+
53
+ // Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
54
+ //
55
+ // When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
56
+ // - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
57
+ // - `includeVariants`: Whether to include product variants in the query. Default: `false`.
58
+ google.protobuf.Struct app_options = 8;
59
+
60
+ // Options for the Publish plugin.
61
+ // This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
62
+ PublishPluginOptions publish_plugin_options = 9;
63
+
64
+ // Condition for updating the items.
65
+ //
66
+ // When a condition is provided, the items are only updated if the condition is met.
67
+ Condition condition = 10;
68
+
69
+ // Whether to save multi-reference fields.
70
+ // When `true`, multi-reference fields in the data items will be updated to match the provided values,
71
+ // replacing any existing references.
72
+ // Multi-reference field values must be arrays of referenced item IDs (strings)
73
+ // or referenced items containing an `_id` field.
74
+ //
75
+ // Default: `false`
76
+ bool save_references = 11 [(wix.api.field_exposure) = PRIVATE];
77
+ }
78
+
79
+ message BulkUpdateDataItemsResponse {
80
+ // Information about the updated items.
81
+ repeated BulkDataItemResult results = 1;
82
+
83
+ // Bulk action metadata.
84
+ upstream.wix.common.BulkActionMetadata bulk_action_metadata = 2;
85
+ }
@@ -0,0 +1,15 @@
1
+ //flynt-disable package-matches-structure
2
+ syntax = "proto3";
3
+
4
+ package com.wixpress.cloud.data.api.data;
5
+
6
+ import "google/protobuf/struct.proto";
7
+ import "google/protobuf/wrappers.proto";
8
+ import "wix/api/annotations.proto";
9
+ import "wix/api/validations.proto";
10
+
11
+ message Condition {
12
+ // Filter, changes to item(s) will only apply if they satisfy this filter.
13
+ // Learn more about filters in [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
14
+ google.protobuf.Struct filter = 1;
15
+ }
@@ -0,0 +1,82 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wixpress.cloud.data.api.data;
4
+
5
+ import "google/protobuf/wrappers.proto";
6
+ import "google/protobuf/struct.proto";
7
+ import "wix/api/annotations.proto";
8
+ import "wix/api/validations.proto";
9
+ import "com/wixpress/cloud/data/api/common.proto";
10
+ import "com/wixpress/cloud/data/api/data/message/options.proto";
11
+
12
+ message CountDataItemsRequest {
13
+ // Environment: LIVE or SANDBOX
14
+ Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
15
+
16
+ // ID of the collection for which to count query results.
17
+ string data_collection_id = 2 [(wix.api.maxLength) = 256];
18
+
19
+ // Filter object in the following format:
20
+ //
21
+ // `"filter" : {
22
+ // "fieldName1": "value1",
23
+ // "fieldName2":{"$operator":"value2"}
24
+ // }`.
25
+ //
26
+ // Examples of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
27
+ //
28
+ // **Note:** The values you provide for each field must adhere to that field's 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).
29
+ google.protobuf.Struct filter = 3;
30
+
31
+ // Grid app id. Optional in Live segment.
32
+ google.protobuf.StringValue app_id = 4 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
33
+
34
+ // Data access options
35
+ Options options = 5 [
36
+ (wix.api.field_exposure) = PRIVATE,
37
+ deprecated = true,
38
+ (wix.api.field_deprecated) = {
39
+ replaced_by: "inlined"
40
+ target_removal_date: "2024-07-12"
41
+ }
42
+ ];
43
+
44
+ // Whether to retrieve data from the primary database instance.
45
+ // This decreases performance but ensures data retrieved is up to date even immediately after an update.
46
+ // Learn more about [Wix Data and eventual consistency](https://dev.wix.com/api/rest/wix-data/wix-data/eventual-consistency).
47
+ //
48
+ // Default: `false`
49
+ bool consistent_read = 6;
50
+
51
+ // Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
52
+ // If provided, the result text is returned in the specified language.
53
+ // **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).
54
+ //
55
+ // If not provided, result text is not translated.
56
+ google.protobuf.StringValue language = 7 [(wix.api.format) = LANGUAGE_TAG];
57
+
58
+ // Whether to suppress data hooks.
59
+ // When `true`, data hooks typically triggered by this endpoint don't run.
60
+ //
61
+ // **Note:** This option can only be used in code that runs in [the Wix site backend](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend).
62
+ //
63
+ // Default: `false`
64
+ bool suppress_hooks = 8 [(wix.api.field_exposure) = PRIVATE];
65
+
66
+ // Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
67
+ //
68
+ // When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
69
+ // - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
70
+ // - `includeVariants`: Whether to include product variants in the query. Default: `false`.
71
+ google.protobuf.Struct app_options = 9;
72
+
73
+ // Options for the Publish plugin.
74
+ // This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
75
+ PublishPluginOptions publish_plugin_options = 10;
76
+ }
77
+
78
+ // flynt-disable crud-count-message-validation
79
+ message CountDataItemsResponse {
80
+ // Number of items matching the query.
81
+ int32 total_count = 1;
82
+ }
@@ -0,0 +1,24 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wixpress.cloud.data.api.data;
4
+
5
+ import "com/wixpress/cloud/data/api/data/message/data-item.proto";
6
+ import "wix/api/validations.proto";
7
+ import "com/wixpress/cloud/data/api/common.proto";
8
+ import "wix/api/annotations.proto";
9
+
10
+ message CreateDataItemDraftRequest {
11
+ // Environment: `LIVE` or `SANDBOX`.
12
+ Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
13
+
14
+ // ID of the published data collection.
15
+ string data_collection_id = 2 [(wix.api.maxLength) = 256];
16
+
17
+ // ID of the published data item to copy into the draft collection.
18
+ string data_item_id = 3 [(wix.api.maxLength) = 128];
19
+ }
20
+
21
+ message CreateDataItemDraftResponse {
22
+ // The newly-created draft data item, seeded with the current published data.
23
+ DataItem data_item = 1;
24
+ }
@@ -0,0 +1,23 @@
1
+ //flynt-disable missing-entity-id-field
2
+ syntax = "proto3";
3
+
4
+ package com.wixpress.cloud.data.api.data;
5
+
6
+ import "wix/api/entity.proto";
7
+ import "wix/api/validations.proto";
8
+
9
+ message DataItemReference {
10
+ option (.wix.api.entity) = {
11
+ fqdn: "wix.data.v1.data_reference",
12
+ segment: PUBLIC
13
+ };
14
+
15
+ // Referring item field containing the references to the referenced items.
16
+ string referring_item_field_name = 1 [(wix.api.maxLength) = 1000];
17
+
18
+ // ID of the referring item.
19
+ string referring_item_id = 2 [(wix.api.maxLength) = 128];
20
+
21
+ // ID of the referenced item.
22
+ string referenced_item_id = 3 [(wix.api.maxLength) = 128];
23
+ }
@@ -0,0 +1,84 @@
1
+ //flynt-disable missing-taggable-annotation
2
+ syntax = "proto3";
3
+
4
+ package com.wixpress.cloud.data.api.data;
5
+
6
+ import "google/protobuf/struct.proto";
7
+ import "google/protobuf/timestamp.proto";
8
+ import "google/protobuf/wrappers.proto";
9
+ import "wix/api/annotations.proto";
10
+ import "wix/api/entity.proto";
11
+ import "wix/api/validations.proto";
12
+ import "com/wixpress/cloud/data/api/common.proto";
13
+
14
+ // A data item represents a single entry in a site's data collection.
15
+ message DataItem {
16
+ option (.wix.api.entity) = {
17
+ fqdn: "wix.data.v2.data_item",
18
+ app_def_id: "e593b0bd-b783-45b8-97c2-873d42aacaf4",
19
+ segment: PUBLIC,
20
+ appendix_files: {
21
+ type: AUTO_VELO
22
+ path: "appendices/velo"
23
+ }
24
+ appendix_files: {
25
+ type: DOCS_CONF
26
+ path: "appendices/docs"
27
+ }
28
+ domain_events: {
29
+ // Entity will NOT have the data field populate.
30
+ // It's included so that consumer can know the collection of the entity.
31
+ deleted_include_entity: true,
32
+ }
33
+ domain_events_read_permission: "WIX_DATA.GET"
34
+ };
35
+
36
+ // Triggered when a data item is inserted.
37
+ option (wix.api.domain_event) = {
38
+ event_type: CREATED
39
+ exposure: PUBLIC
40
+ maturity: GA
41
+ };
42
+
43
+ // Triggered when a data item is updated or patched.
44
+ option (wix.api.domain_event) = {
45
+ event_type: UPDATED
46
+ exposure: PUBLIC
47
+ maturity: GA
48
+ };
49
+
50
+ // Triggered when a data item is deleted or truncated.
51
+ option (wix.api.domain_event) = {
52
+ event_type: DELETED
53
+ exposure: PUBLIC
54
+ maturity: GA
55
+ };
56
+
57
+ // created_date
58
+ reserved 2;
59
+ // updated_date
60
+ reserved 3;
61
+ // owner_id
62
+ reserved 4;
63
+
64
+ // Data item ID.
65
+ //
66
+ // When an item is inserted into a collection, the item's ID is automatically assigned a random value. You can optionally provide a custom ID in `dataItem.id` when inserting the item. If you specify an ID that already exists in the collection, the insertion will fail.
67
+ string id = 1 [(.wix.api.immutable) = true, (wix.api.maxLength) = 128];
68
+
69
+ // ID of the collection this item belongs to.
70
+ //
71
+ // This is the user-defined collection identifier set when the collection is created (for example, `EvalCustomers`), not a GUID.
72
+ string data_collection_id = 6 [(.wix.api.readOnly) = true, (wix.api.maxLength) = 256];
73
+
74
+ // Data item contents.
75
+ //
76
+ // Property-value pairs representing the data item's payload. When retrieving a data item, it also includes the following read-only fields:
77
+ //
78
+ // + `_id`: Item ID.
79
+ // + `_createdDate`: Date and time the item was added to the collection.
80
+ // + `_updatedDate`: Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have the same value.
81
+ // + `_ownerId`: ID of the user who created the item. Can be modified with site owner permissions.
82
+ google.protobuf.Struct data = 5;
83
+ }
84
+
@@ -0,0 +1,92 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wixpress.cloud.data.api.data;
4
+
5
+ import "google/protobuf/wrappers.proto";
6
+ import "google/protobuf/struct.proto";
7
+ import "wix/api/annotations.proto";
8
+ import "wix/api/validations.proto";
9
+ import "com/wixpress/cloud/data/api/common.proto";
10
+ import "com/wixpress/cloud/data/api/data/message/options.proto";
11
+ import "com/wixpress/cloud/data/api/data/upstream/wix/common/paging.proto";
12
+ import "com/wixpress/cloud/data/api/data/upstream/wix/common/sorting.proto";
13
+
14
+ message QueryDistinctValuesRequest {
15
+ // Environment: LIVE or SANDBOX
16
+ Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
17
+
18
+ // ID of the collection to query.
19
+ string data_collection_id = 2 [(wix.api.maxLength) = 256];
20
+
21
+ // Item field name for which to return all distinct values.
22
+ string field_name = 3 [(wix.api.maxLength) = 1000];
23
+
24
+ // Filter object in the following format:
25
+ //
26
+ // `"filter" : {
27
+ // "fieldName1": "value1",
28
+ // "fieldName2":{"$operator":"value2"}
29
+ // }`.
30
+ //
31
+ // Examples of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
32
+ //
33
+ // **Note:** The values you provide for each field must adhere to that field's 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).
34
+ google.protobuf.Struct filter = 4;
35
+
36
+ // Sort order.
37
+ upstream.wix.common.SortOrder order = 5;
38
+
39
+ oneof paging_method {
40
+ //Paging options to limit and skip the number of items.
41
+ upstream.wix.common.Paging paging = 6;
42
+
43
+ //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`.
44
+ upstream.wix.common.CursorPaging cursor_paging = 7;
45
+ }
46
+
47
+ // Whether to return the total count in the response for a query with offset paging.
48
+ // When `true`, the `pagingMetadata` object in the response contains a `total` field.
49
+ //
50
+ // Default: `false`
51
+ bool return_total_count = 8;
52
+
53
+ // Grid app id. Optional in Live segment.
54
+ google.protobuf.StringValue app_id = 9 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
55
+
56
+ // Data access options
57
+ Options options = 10 [
58
+ (wix.api.field_exposure) = PRIVATE,
59
+ deprecated = true,
60
+ (wix.api.field_deprecated) = {
61
+ replaced_by: "inlined"
62
+ target_removal_date: "2024-07-12"
63
+ }
64
+ ];
65
+
66
+ // Whether to retrieve data from the primary database instance.
67
+ // This decreases performance but ensures data retrieved is up to date even immediately after an update.
68
+ // Learn more about [Wix Data and eventual consistency](https://dev.wix.com/api/rest/wix-data/wix-data/eventual-consistency).
69
+ //
70
+ // Default: `false`
71
+ bool consistent_read = 11;
72
+
73
+ // Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
74
+ // If provided, the result text is returned in the specified language.
75
+ // **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).
76
+ //
77
+ // If not provided, result text is not translated.
78
+ google.protobuf.StringValue language = 12 [(wix.api.format) = LANGUAGE_TAG];
79
+
80
+ // Options for the Publish plugin.
81
+ // This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
82
+ PublishPluginOptions publish_plugin_options = 13;
83
+ }
84
+
85
+ message QueryDistinctValuesResponse {
86
+ // List of distinct values contained in the field specified in `fieldName`.
87
+ repeated google.protobuf.Value distinct_values = 1;
88
+
89
+ // Paging information.
90
+ upstream.wix.common.PagingMetadataV2 paging_metadata = 3;
91
+ }
92
+
@@ -0,0 +1,101 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wixpress.cloud.data.api.data;
4
+
5
+ import "google/protobuf/wrappers.proto";
6
+ import "google/protobuf/struct.proto";
7
+ import "wix/api/annotations.proto";
8
+ import "wix/api/validations.proto";
9
+ import "com/wixpress/cloud/data/api/common.proto";
10
+ import "com/wixpress/cloud/data/api/data/message/data-item.proto";
11
+ import "com/wixpress/cloud/data/api/data/message/options.proto";
12
+
13
+ message GetDataItemRequest {
14
+ // Environment: LIVE or SANDBOX
15
+ Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
16
+
17
+ // ID of the collection from which to retrieve the data item.
18
+ string data_collection_id = 2 [(wix.api.maxLength) = 256];
19
+
20
+ // ID of the data item to retrieve.
21
+ string data_item_id = 3 [(wix.api.maxLength) = 128];
22
+
23
+ // Grid app id. Optional in Live segment.
24
+ google.protobuf.StringValue app_id = 4 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
25
+
26
+ // Data access options
27
+ Options options = 6 [
28
+ (wix.api.field_exposure) = PRIVATE,
29
+ deprecated = true,
30
+ (wix.api.field_deprecated) = {
31
+ replaced_by: "inlined"
32
+ target_removal_date: "2024-07-12"
33
+ }
34
+ ];
35
+
36
+ // Whether to retrieve data from the primary database instance.
37
+ // This decreases performance but ensures data retrieved is up to date even immediately after an update.
38
+ // Learn more about [Wix Data and eventual consistency](https://dev.wix.com/api/rest/wix-data/wix-data/eventual-consistency).
39
+ //
40
+ // Default: `false`
41
+ bool consistent_read = 7;
42
+
43
+ // Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
44
+ // If provided, the result text is returned in the specified language.
45
+ // **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).
46
+ //
47
+ // If not provided, result text is not translated.
48
+ google.protobuf.StringValue language = 8 [(wix.api.format) = LANGUAGE_TAG];
49
+
50
+ // Fields to return for the item. Only fields specified in the array are included in the response. If the array is empty, all fields are returned.
51
+ // **Note:** The `_id` system field is always returned.
52
+ repeated string fields = 9 [(wix.api.maxSize) = 1000, (wix.api.maxLength) = 1000];
53
+
54
+ // Whether to suppress data hooks.
55
+ // When `true`, data hooks typically triggered by this endpoint don't run.
56
+ //
57
+ // **Note:** This option can only be used in code that runs in [the Wix site backend](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend).
58
+ //
59
+ // Default: `false`
60
+ bool suppress_hooks = 10 [(wix.api.field_exposure) = PRIVATE];
61
+
62
+ // Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
63
+ //
64
+ // When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
65
+ // - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
66
+ // - `includeVariants`: Whether to include product variants in the query. Default: `false`.
67
+ google.protobuf.Struct app_options = 11;
68
+
69
+ // Options for the Publish plugin.
70
+ // This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
71
+ PublishPluginOptions publish_plugin_options = 12;
72
+
73
+ // Options for retrieving referenced items.
74
+ repeated ReferencedItemOptions referenced_item_options = 13 [
75
+ deprecated = true,
76
+ (wix.api.field_deprecated) = {
77
+ replaced_by: "include_references"
78
+ target_removal_date: "2026-08-01"
79
+ },
80
+ (wix.api.maxSize) = 100
81
+ ];
82
+
83
+ // Requests conditional fields. Currently used in App Collections.
84
+ // Please refer to app collection documentation for a list of valid values.
85
+ repeated string include_field_groups = 14 [(wix.api.maxSize) = 100, (wix.api.maxLength) = 100];
86
+
87
+ // Fields for which to include referenced items. For each reference field specified, the response includes the full data items being referenced. Use this to retrieve related data in a single call without additional queries.
88
+ repeated IncludeReference include_references = 15 [(wix.api.maxSize) = 100];
89
+
90
+ message ReferencedItemOptions {
91
+ // Field containing references in the queried item.
92
+ string field_name = 1 [(wix.api.maxLength) = 1000];
93
+ // Maximum number of referenced items to include for each queried item.
94
+ google.protobuf.Int32Value limit = 2 [(wix.api.max) = 1000];
95
+ }
96
+ }
97
+
98
+ message GetDataItemResponse {
99
+ // Retrieved item.
100
+ DataItem data_item = 1;
101
+ }
@@ -0,0 +1,47 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wixpress.cloud.data.api.data;
4
+
5
+ import "google/protobuf/wrappers.proto";
6
+ import "google/protobuf/struct.proto";
7
+ import "wix/api/annotations.proto";
8
+ import "wix/api/validations.proto";
9
+ import "com/wixpress/cloud/data/api/common.proto";
10
+ import "com/wixpress/cloud/data/api/data/message/data-item-reference.proto";
11
+ import "com/wixpress/cloud/data/api/data/message/options.proto";
12
+
13
+ message InsertDataItemReferenceRequest {
14
+ // Environment: LIVE or SANDBOX
15
+ Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
16
+
17
+ // ID of the collection in which to insert the reference.
18
+ string data_collection_id = 2 [(wix.api.maxLength) = 256];
19
+
20
+ // Reference to insert
21
+ DataItemReference data_item_reference = 3;
22
+
23
+ // Grid app id. Optional in Live segment.
24
+ google.protobuf.StringValue app_id = 4 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
25
+
26
+ // Data access options
27
+ Options options = 10 [
28
+ (wix.api.field_exposure) = PRIVATE,
29
+ deprecated = true,
30
+ (wix.api.field_deprecated) = {
31
+ replaced_by: "inlined"
32
+ target_removal_date: "2024-07-12"
33
+ }
34
+ ];
35
+
36
+ // Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
37
+ //
38
+ // When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
39
+ // - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
40
+ // - `includeVariants`: Whether to include product variants in the query. Default: `false`.
41
+ google.protobuf.Struct app_options = 11;
42
+ }
43
+
44
+ message InsertDataItemReferenceResponse {
45
+ // Inserted reference.
46
+ DataItemReference data_item_reference = 1;
47
+ }
@@ -0,0 +1,70 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wixpress.cloud.data.api.data;
4
+
5
+ import "google/protobuf/wrappers.proto";
6
+ import "google/protobuf/struct.proto";
7
+ import "wix/api/annotations.proto";
8
+ import "wix/api/validations.proto";
9
+ import "com/wixpress/cloud/data/api/common.proto";
10
+ import "com/wixpress/cloud/data/api/data/message/data-item.proto";
11
+ import "com/wixpress/cloud/data/api/data/message/options.proto";
12
+
13
+ message InsertDataItemRequest {
14
+ // Environment: LIVE or SANDBOX
15
+ Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
16
+
17
+ // ID of the collection in which to insert the item.
18
+ string data_collection_id = 2 [(wix.api.maxLength) = 256];
19
+
20
+ // Item to insert.
21
+ DataItem data_item = 3;
22
+
23
+ // Grid app id. Optional in Live segment.
24
+ google.protobuf.StringValue app_id = 4 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
25
+
26
+ // Whether to include referenced items in the response.
27
+ // When `true`, items referenced by reference and multi-reference fields are included inline in the returned data item.
28
+ //
29
+ // Default: `false`
30
+ bool include_referenced_items = 5 [(wix.api.field_exposure) = PRIVATE];
31
+
32
+ // Data access options
33
+ Options options = 6 [
34
+ (wix.api.field_exposure) = PRIVATE,
35
+ deprecated = true,
36
+ (wix.api.field_deprecated) = {
37
+ replaced_by: "inlined"
38
+ target_removal_date: "2024-07-12"
39
+ }
40
+ ];
41
+
42
+ // Whether to suppress data hooks.
43
+ // When `true`, data hooks typically triggered by this endpoint don't run.
44
+ //
45
+ // **Note:** This option can only be used in code that runs in [the Wix site backend](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend).
46
+ //
47
+ // Default: `false`
48
+ bool suppress_hooks = 7 [(wix.api.field_exposure) = PRIVATE];
49
+
50
+ // Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
51
+ //
52
+ // When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
53
+ // - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
54
+ // - `includeVariants`: Whether to include product variants in the query. Default: `false`.
55
+ google.protobuf.Struct app_options = 8;
56
+
57
+ // Whether to create references from multi-reference fields.
58
+ // When `true`, array values in multi-reference fields are extracted and stored as references
59
+ // linking the inserted item to the referenced items.
60
+ // Multi-reference field values must be arrays of referenced item IDs (strings)
61
+ // or referenced items containing an `_id` field.
62
+ //
63
+ // Default: `false`
64
+ bool save_references = 9 [(wix.api.field_exposure) = PRIVATE];
65
+ }
66
+
67
+ message InsertDataItemResponse {
68
+ // Inserted data item.
69
+ DataItem data_item = 1;
70
+ }