@wix/bex-utils 2.115.0 → 2.117.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@wix/ambassador-hub-v1-job/README.md +34 -0
- package/@wix/ambassador-hub-v1-job/builders/package.json +7 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/builders.impl.d.ts +130 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/builders.impl.js +1705 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/builders.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/crud/http.impl.d.ts +9 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/crud/http.impl.js +16 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/crud/http.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/crud/rpc.impl.d.ts +5 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/crud/rpc.impl.js +24 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/crud/rpc.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/http.impl.d.ts +54 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/http.impl.js +689 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/http.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/meta.impl.d.ts +24 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/meta.impl.js +170 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/meta.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/proto/client/proto-generated.d.ts +15832 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/proto/proto-generated.d.ts +7912 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/proto/proto-generated.js +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/proto/server/proto-generated.d.ts +15777 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/rpc.impl.d.ts +67 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/rpc.impl.js +202 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/rpc.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/types.impl.d.ts +2156 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/types.impl.js +127 -0
- package/@wix/ambassador-hub-v1-job/cjs/build/types.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/cjs/package.json +3 -0
- package/@wix/ambassador-hub-v1-job/crud/http/package.json +7 -0
- package/@wix/ambassador-hub-v1-job/crud/rpc/package.json +6 -0
- package/@wix/ambassador-hub-v1-job/es/build/builders.impl.d.ts +130 -0
- package/@wix/ambassador-hub-v1-job/es/build/builders.impl.js +1558 -0
- package/@wix/ambassador-hub-v1-job/es/build/builders.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/crud/http.impl.d.ts +9 -0
- package/@wix/ambassador-hub-v1-job/es/build/crud/http.impl.js +12 -0
- package/@wix/ambassador-hub-v1-job/es/build/crud/http.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/crud/rpc.impl.d.ts +5 -0
- package/@wix/ambassador-hub-v1-job/es/build/crud/rpc.impl.js +19 -0
- package/@wix/ambassador-hub-v1-job/es/build/crud/rpc.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/http.impl.d.ts +54 -0
- package/@wix/ambassador-hub-v1-job/es/build/http.impl.js +680 -0
- package/@wix/ambassador-hub-v1-job/es/build/http.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/meta.impl.d.ts +24 -0
- package/@wix/ambassador-hub-v1-job/es/build/meta.impl.js +128 -0
- package/@wix/ambassador-hub-v1-job/es/build/meta.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/proto/client/proto-generated.d.ts +15832 -0
- package/@wix/ambassador-hub-v1-job/es/build/proto/client/proto-generated.js +5 -0
- package/@wix/ambassador-hub-v1-job/es/build/proto/proto-generated.d.ts +7912 -0
- package/@wix/ambassador-hub-v1-job/es/build/proto/proto-generated.js +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/proto/server/proto-generated.d.ts +15777 -0
- package/@wix/ambassador-hub-v1-job/es/build/proto/server/proto-generated.js +5 -0
- package/@wix/ambassador-hub-v1-job/es/build/rpc.impl.d.ts +67 -0
- package/@wix/ambassador-hub-v1-job/es/build/rpc.impl.js +158 -0
- package/@wix/ambassador-hub-v1-job/es/build/rpc.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/es/build/types.impl.d.ts +2156 -0
- package/@wix/ambassador-hub-v1-job/es/build/types.impl.js +124 -0
- package/@wix/ambassador-hub-v1-job/es/build/types.impl.js.map +1 -0
- package/@wix/ambassador-hub-v1-job/http/package.json +7 -0
- package/@wix/ambassador-hub-v1-job/meta/package.json +7 -0
- package/@wix/ambassador-hub-v1-job/package.json +108 -0
- package/@wix/ambassador-hub-v1-job/rpc/package.json +6 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/common.proto +63 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/data-item-service.proto +915 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/aggregate-pipeline.proto +528 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/aggregate.proto +146 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/async-job-status.proto +34 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/async-patch-by-filter.proto +66 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/async-remove-by-filter.proto +59 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-data-item-reference-result.proto +22 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-data-item-result.proto +24 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-insert-references.proto +54 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-insert.proto +75 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-publish-data-item-drafts.proto +46 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-remove-references.proto +48 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-remove.proto +70 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-save.proto +80 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-unpublish-data-items.proto +53 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/bulk-update.proto +85 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/condition.proto +15 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/count.proto +82 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/create-data-item-draft.proto +24 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/data-item-reference.proto +23 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/data-item.proto +84 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/distinct.proto +92 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/get.proto +101 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/insert-reference.proto +47 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/insert.proto +70 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/is-referenced.proto +55 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/options.proto +37 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/patch-data-item.proto +184 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/publish-data-item-draft.proto +24 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/query-referenced.proto +145 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/query.proto +157 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/reference-metadata.proto +15 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/remove-reference.proto +42 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/remove.proto +65 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/replace-references.proto +48 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/save.proto +87 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/search.proto +78 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/truncate.proto +33 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/unpublish-data-item.proto +31 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/message/update.proto +80 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/upstream/wix/common/bulk.proto +60 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/upstream/wix/common/paging.proto +113 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/upstream/wix/common/query.proto +121 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/cloud/data/api/data/upstream/wix/common/sorting.proto +26 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/iptf/webhooks/debug.proto +34 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/iptf/webhooks/kv.proto +42 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/iptf/webhooks/message_envelope.proto +54 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/raw-http-messages.proto +39 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/webhooks_debug_service.proto +32 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/webhooks_sync_service.proto +33 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/annotations.proto +560 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/api_errors.proto +142 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/callback.proto +173 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/entity.proto +133 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/errors.proto +127 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/idempotency.proto +25 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/permissions.proto +47 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/subscription.proto +44 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/api/validations.proto +147 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/address.proto +148 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/bulk.proto +53 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/data/dataextensions/extended-fields.proto +20 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/data/dataextensions/update-extended-fields-messages.proto +15 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/data/errors.proto +435 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/domainevents/attributeupdated.proto +20 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/domainevents/domainevents.proto +112 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/identification.proto +40 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/image.proto +8 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/media.proto +280 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/money.proto +32 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/pageurl.proto +32 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/paging.proto +121 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/query.proto +889 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/sorting.proto +36 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/spi.proto +80 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/tags.proto +55 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/common/wixlink.proto +203 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/http/field_mask.proto +46 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/common.proto +108 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/data_movement_service.proto +287 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/destinations.proto +154 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/job.proto +164 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/job_spec.proto +41 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/oauth_service.proto +218 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/schema.proto +48 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/shared.proto +98 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/sources.proto +234 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/hub/v1/transformations.proto +23 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/spi/definitions.proto +188 -0
- package/@wix/ambassador-hub-v1-job/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-hub-v1-job/types/package.json +7 -0
- package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +8 -0
- package/@wix/bex-bundled-mini-essentials/package.json +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
import "com/wixpress/cloud/data/api/data/message/condition.proto";
|
|
13
|
+
|
|
14
|
+
message RemoveDataItemRequest {
|
|
15
|
+
// Environment: LIVE or SANDBOX
|
|
16
|
+
Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
|
|
17
|
+
|
|
18
|
+
// ID of the collection from which to remove the item.
|
|
19
|
+
string data_collection_id = 2 [(wix.api.maxLength) = 256];
|
|
20
|
+
|
|
21
|
+
// ID of the item to remove.
|
|
22
|
+
string data_item_id = 3 [(wix.api.maxLength) = 128];
|
|
23
|
+
|
|
24
|
+
// Grid app id. Optional in Live segment.
|
|
25
|
+
google.protobuf.StringValue app_id = 4 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
|
|
26
|
+
|
|
27
|
+
// Data access options
|
|
28
|
+
Options options = 6 [
|
|
29
|
+
(wix.api.field_exposure) = PRIVATE,
|
|
30
|
+
deprecated = true,
|
|
31
|
+
(wix.api.field_deprecated) = {
|
|
32
|
+
replaced_by: "inlined"
|
|
33
|
+
target_removal_date: "2024-07-12"
|
|
34
|
+
}
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
// Whether to suppress data hooks.
|
|
38
|
+
// When `true`, data hooks typically triggered by this endpoint don't run.
|
|
39
|
+
//
|
|
40
|
+
// **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).
|
|
41
|
+
//
|
|
42
|
+
// Default: `false`
|
|
43
|
+
bool suppress_hooks = 7 [(wix.api.field_exposure) = PRIVATE];
|
|
44
|
+
|
|
45
|
+
// 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.
|
|
46
|
+
//
|
|
47
|
+
// 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:
|
|
48
|
+
// - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
|
|
49
|
+
// - `includeVariants`: Whether to include product variants in the query. Default: `false`.
|
|
50
|
+
google.protobuf.Struct app_options = 8;
|
|
51
|
+
|
|
52
|
+
// Options for the Publish plugin.
|
|
53
|
+
// 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.
|
|
54
|
+
PublishPluginOptions publish_plugin_options = 9;
|
|
55
|
+
|
|
56
|
+
// Condition for removing the item.
|
|
57
|
+
//
|
|
58
|
+
// When a condition is provided, the item is only removed if the condition is met.
|
|
59
|
+
Condition condition = 10;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message RemoveDataItemResponse {
|
|
63
|
+
// Removed item.
|
|
64
|
+
DataItem data_item = 1;
|
|
65
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 ReplaceDataItemReferencesRequest {
|
|
14
|
+
// Environment: LIVE or SANDBOX
|
|
15
|
+
Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
|
|
16
|
+
|
|
17
|
+
// ID of the collection containing the referring item.
|
|
18
|
+
string data_collection_id = 2 [(wix.api.maxLength) = 256];
|
|
19
|
+
|
|
20
|
+
// Field containing references in the referring item.
|
|
21
|
+
string referring_item_field_name = 3 [(wix.api.maxLength) = 1000];
|
|
22
|
+
|
|
23
|
+
// ID of the referring item.
|
|
24
|
+
string referring_item_id = 4 [(wix.api.maxLength) = 128];
|
|
25
|
+
|
|
26
|
+
// List of new referenced item IDs to replace the existing ones.
|
|
27
|
+
repeated string new_referenced_item_ids = 5 [(wix.api.maxLength) = 128, (wix.api.maxSize) = 1000];
|
|
28
|
+
|
|
29
|
+
// Grid app id. Optional in Live segment.
|
|
30
|
+
google.protobuf.StringValue app_id = 6 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
|
|
31
|
+
|
|
32
|
+
// Data access options
|
|
33
|
+
Options options = 7 [
|
|
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
|
+
google.protobuf.Struct app_options = 8 [(wix.api.field_exposure) = PRIVATE];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message ReplaceDataItemReferencesResponse {
|
|
46
|
+
// Updated references.
|
|
47
|
+
repeated DataItemReference data_item_references = 1;
|
|
48
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 SaveDataItemRequest {
|
|
14
|
+
// Environment: LIVE or SANDBOX
|
|
15
|
+
Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
|
|
16
|
+
|
|
17
|
+
// ID of the collection in which to insert or update the item.
|
|
18
|
+
string data_collection_id = 2 [(wix.api.maxLength) = 256];
|
|
19
|
+
|
|
20
|
+
// Data item to insert or update.
|
|
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
|
+
// Options for the Publish plugin.
|
|
58
|
+
// 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.
|
|
59
|
+
PublishPluginOptions publish_plugin_options = 9;
|
|
60
|
+
|
|
61
|
+
// Whether to create or replace references from multi-reference fields.
|
|
62
|
+
// When `true`, array values in multi-reference fields are stored as references.
|
|
63
|
+
// For new items, references are created. For existing items, existing references are replaced
|
|
64
|
+
// with the provided values.
|
|
65
|
+
// Multi-reference field values must be arrays of referenced item IDs (strings)
|
|
66
|
+
// or referenced items containing an `_id` field.
|
|
67
|
+
//
|
|
68
|
+
// Default: `false`
|
|
69
|
+
bool save_references = 10 [(wix.api.field_exposure) = PRIVATE];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message SaveDataItemResponse {
|
|
73
|
+
enum Action {
|
|
74
|
+
// Undefined action.
|
|
75
|
+
UNKNOWN_ACTION = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
|
|
76
|
+
// A new item was added to the collection.
|
|
77
|
+
INSERTED = 1;
|
|
78
|
+
// An existing item in the collection was updated.
|
|
79
|
+
UPDATED = 2;
|
|
80
|
+
}
|
|
81
|
+
// The action carried out for the item.
|
|
82
|
+
Action action = 1;
|
|
83
|
+
|
|
84
|
+
// Inserted or updated data item.
|
|
85
|
+
DataItem data_item = 2;
|
|
86
|
+
|
|
87
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
import "com/wixpress/cloud/data/api/data/upstream/wix/common/paging.proto";
|
|
13
|
+
import "com/wixpress/cloud/data/api/data/upstream/wix/common/query.proto";
|
|
14
|
+
|
|
15
|
+
message SearchDataItemsRequest {
|
|
16
|
+
// Environment: `LIVE` or `SANDBOX`.
|
|
17
|
+
Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
|
|
18
|
+
|
|
19
|
+
// ID of the collection to search.
|
|
20
|
+
string data_collection_id = 2 [(wix.api.maxLength) = 255];
|
|
21
|
+
|
|
22
|
+
// Search query configuration.
|
|
23
|
+
upstream.wix.common.Search search = 3;
|
|
24
|
+
|
|
25
|
+
// Grid app id. Optional in Live segment.
|
|
26
|
+
google.protobuf.StringValue app_id = 6 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
|
|
27
|
+
|
|
28
|
+
// NOT IMPLEMENTED!
|
|
29
|
+
// Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
30
|
+
// If provided, the result text is returned in the specified language. If not provided, result text is not translated.
|
|
31
|
+
//
|
|
32
|
+
// > **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).
|
|
33
|
+
google.protobuf.StringValue language = 9 [(wix.api.format) = LANGUAGE_TAG, (wix.api.field_exposure) = PRIVATE];
|
|
34
|
+
|
|
35
|
+
// Whether to suppress data hooks.
|
|
36
|
+
//
|
|
37
|
+
// When `true`, data hooks typically triggered by this endpoint don't run.
|
|
38
|
+
//
|
|
39
|
+
// Default: `false`.
|
|
40
|
+
//
|
|
41
|
+
// > **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).
|
|
42
|
+
bool suppress_hooks = 11 [(wix.api.field_exposure) = PRIVATE];
|
|
43
|
+
|
|
44
|
+
// Options for the Publish plugin.
|
|
45
|
+
//
|
|
46
|
+
// This plugin allows items to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
|
|
47
|
+
PublishPluginOptions publish_plugin_options = 13;
|
|
48
|
+
|
|
49
|
+
// Options for retrieving referenced items.
|
|
50
|
+
//
|
|
51
|
+
// Learn more about [using reference fields](https://support.wix.com/en/article/cms-using-reference-fields-to-display-content-from-multiple-collections).
|
|
52
|
+
repeated ReferencedItemOptions referenced_item_options = 14 [
|
|
53
|
+
deprecated = true,
|
|
54
|
+
(wix.api.field_deprecated) = {
|
|
55
|
+
replaced_by: "include_references"
|
|
56
|
+
target_removal_date: "2026-08-01"
|
|
57
|
+
},
|
|
58
|
+
(wix.api.maxSize) = 100
|
|
59
|
+
];
|
|
60
|
+
|
|
61
|
+
// 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. Maximum 100 reference configurations can be specified.
|
|
62
|
+
repeated IncludeReference include_references = 15 [(wix.api.maxSize) = 100];
|
|
63
|
+
|
|
64
|
+
message ReferencedItemOptions {
|
|
65
|
+
// Field in the retrieved item that contains references.
|
|
66
|
+
string field_name = 1 [(wix.api.maxLength) = 1000];
|
|
67
|
+
// Maximum number of referenced items to include for each retrieved item.
|
|
68
|
+
google.protobuf.Int32Value limit = 2 [(wix.api.max) = 1000];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message SearchDataItemsResponse {
|
|
73
|
+
// Retrieved items.
|
|
74
|
+
repeated DataItem data_items = 1 [(wix.api.maxSize) = 1000];
|
|
75
|
+
|
|
76
|
+
// Paging configuration.
|
|
77
|
+
upstream.wix.common.PagingMetadataV2 paging_metadata = 5;
|
|
78
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.cloud.data.api.data;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/wrappers.proto";
|
|
6
|
+
import "wix/api/annotations.proto";
|
|
7
|
+
import "wix/api/validations.proto";
|
|
8
|
+
import "com/wixpress/cloud/data/api/common.proto";
|
|
9
|
+
import "com/wixpress/cloud/data/api/data/message/options.proto";
|
|
10
|
+
|
|
11
|
+
message TruncateDataItemsRequest {
|
|
12
|
+
// Environment: LIVE or SANDBOX
|
|
13
|
+
Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
|
|
14
|
+
|
|
15
|
+
// ID of the collection to truncate.
|
|
16
|
+
string data_collection_id = 2 [(wix.api.maxLength) = 256];
|
|
17
|
+
|
|
18
|
+
// Grid app id. Optional in Live segment.
|
|
19
|
+
google.protobuf.StringValue app_id = 4 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
|
|
20
|
+
|
|
21
|
+
// Data access options
|
|
22
|
+
Options options = 6 [
|
|
23
|
+
(wix.api.field_exposure) = PRIVATE,
|
|
24
|
+
deprecated = true,
|
|
25
|
+
(wix.api.field_deprecated) = {
|
|
26
|
+
replaced_by: "inlined"
|
|
27
|
+
target_removal_date: "2024-07-12"
|
|
28
|
+
}
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message TruncateDataItemsResponse {
|
|
33
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 "google/protobuf/wrappers.proto";
|
|
8
|
+
import "com/wixpress/cloud/data/api/common.proto";
|
|
9
|
+
import "wix/api/annotations.proto";
|
|
10
|
+
|
|
11
|
+
message UnpublishDataItemRequest {
|
|
12
|
+
// Environment: `LIVE` or `SANDBOX`.
|
|
13
|
+
Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
|
|
14
|
+
|
|
15
|
+
// ID of the published data collection.
|
|
16
|
+
string data_collection_id = 2 [(wix.api.maxLength) = 256];
|
|
17
|
+
|
|
18
|
+
// ID of the published data item to retract. The published copy is removed and a draft is created (or, if a draft already exists, overwritten) seeded with the previously-published data. Returns `NOT_FOUND` if no published item exists with this ID.
|
|
19
|
+
string data_item_id = 3 [(wix.api.maxLength) = 128];
|
|
20
|
+
|
|
21
|
+
// Whether to create a draft copy of the published item.
|
|
22
|
+
// If `true`, any existing draft will be overwritten.
|
|
23
|
+
// If `false`, the published item is simply removed without creating a draft.
|
|
24
|
+
// Defaults to `true`.
|
|
25
|
+
google.protobuf.BoolValue copy_to_draft = 4;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message UnpublishDataItemResponse {
|
|
29
|
+
// The newly-created (or overwritten) draft data item, seeded with the previously-published data. The published copy has been removed.
|
|
30
|
+
DataItem data_item = 1;
|
|
31
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
import "com/wixpress/cloud/data/api/data/message/condition.proto";
|
|
13
|
+
|
|
14
|
+
message UpdateDataItemRequest {
|
|
15
|
+
// Environment: LIVE or SANDBOX
|
|
16
|
+
Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
|
|
17
|
+
|
|
18
|
+
// ID of the collection containing the existing item.
|
|
19
|
+
string data_collection_id = 2 [(wix.api.maxLength) = 256];
|
|
20
|
+
|
|
21
|
+
// Updated data item content. The existing data item's content is replaced entirely.
|
|
22
|
+
DataItem data_item = 3;
|
|
23
|
+
|
|
24
|
+
// Grid app id. Optional in Live segment.
|
|
25
|
+
google.protobuf.StringValue app_id = 4 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
|
|
26
|
+
|
|
27
|
+
// Whether to include referenced items in the response.
|
|
28
|
+
// When `true`, items referenced by reference and multi-reference fields are included inline in the returned data item.
|
|
29
|
+
//
|
|
30
|
+
// Default: `false`
|
|
31
|
+
bool include_referenced_items = 5 [(wix.api.field_exposure) = PRIVATE];
|
|
32
|
+
|
|
33
|
+
// Data access options
|
|
34
|
+
Options options = 6 [
|
|
35
|
+
(wix.api.field_exposure) = PRIVATE,
|
|
36
|
+
deprecated = true,
|
|
37
|
+
(wix.api.field_deprecated) = {
|
|
38
|
+
replaced_by: "inlined"
|
|
39
|
+
target_removal_date: "2024-07-12"
|
|
40
|
+
}
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
// Whether to suppress data hooks.
|
|
44
|
+
// When `true`, data hooks typically triggered by this endpoint don't run.
|
|
45
|
+
//
|
|
46
|
+
// **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).
|
|
47
|
+
//
|
|
48
|
+
// Default: `false`
|
|
49
|
+
bool suppress_hooks = 7 [(wix.api.field_exposure) = PRIVATE];
|
|
50
|
+
|
|
51
|
+
// 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.
|
|
52
|
+
//
|
|
53
|
+
// 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:
|
|
54
|
+
// - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
|
|
55
|
+
// - `includeVariants`: Whether to include product variants in the query. Default: `false`.
|
|
56
|
+
google.protobuf.Struct app_options = 8;
|
|
57
|
+
|
|
58
|
+
// Options for the Publish plugin.
|
|
59
|
+
// 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.
|
|
60
|
+
PublishPluginOptions publish_plugin_options = 9;
|
|
61
|
+
|
|
62
|
+
// Condition for updating the item.
|
|
63
|
+
//
|
|
64
|
+
// When a condition is provided, the item is only updated if the condition is met.
|
|
65
|
+
Condition condition = 10;
|
|
66
|
+
|
|
67
|
+
// Whether to save multi-reference fields.
|
|
68
|
+
// When `true`, multi-reference fields in the data item will be updated to match the provided values,
|
|
69
|
+
// replacing any existing references.
|
|
70
|
+
// Multi-reference field values must be arrays of referenced item IDs (strings)
|
|
71
|
+
// or referenced items containing an `_id` field.
|
|
72
|
+
//
|
|
73
|
+
// Default: `false`
|
|
74
|
+
bool save_references = 11 [(wix.api.field_exposure) = PRIVATE];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message UpdateDataItemResponse {
|
|
78
|
+
// Updated data item.
|
|
79
|
+
DataItem data_item = 1;
|
|
80
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.cloud.data.api.data.upstream.wix.common;
|
|
4
|
+
|
|
5
|
+
option java_multiple_files = true;
|
|
6
|
+
option java_package = "com.wixpress.cloud.data.api.data.upstream.wix.common";
|
|
7
|
+
|
|
8
|
+
import "google/protobuf/wrappers.proto";
|
|
9
|
+
import "wix/api/errors.proto";
|
|
10
|
+
import "wix/api/annotations.proto";
|
|
11
|
+
import "wix/api/validations.proto";
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
message BulkActionMetadata {
|
|
15
|
+
option (.wix.api.decomposite_of) = "wix.common.BulkActionMetadata";
|
|
16
|
+
// Number of items successfully processed.
|
|
17
|
+
int32 total_successes = 1;
|
|
18
|
+
// Number of items that couldn't be processed.
|
|
19
|
+
int32 total_failures = 2;
|
|
20
|
+
|
|
21
|
+
reserved 3;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message ItemMetadata {
|
|
25
|
+
option (.wix.api.decomposite_of) = "wix.common.ItemMetadata";
|
|
26
|
+
// Item ID. Does not appear if the item ID is missing. For example, when item creation fails.
|
|
27
|
+
google.protobuf.StringValue id = 1 [(.wix.api.maxLength) = 128];
|
|
28
|
+
// Original index of the item in the array specified in the request. Use this to match items in the request with those in the response.
|
|
29
|
+
int32 original_index = 2;
|
|
30
|
+
// Whether the requested action was successful. When `false`, the `error` field is populated.
|
|
31
|
+
bool success = 3;
|
|
32
|
+
// In case of failure, the error details.
|
|
33
|
+
.wix.api.ApplicationError error = 4;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
enum BulkActionType {
|
|
37
|
+
UNKNOWN_ACTION_TYPE = 0;
|
|
38
|
+
INSERT = 1;
|
|
39
|
+
UPDATE = 2;
|
|
40
|
+
DELETE = 3;
|
|
41
|
+
PATCH = 4;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/*
|
|
45
|
+
|
|
46
|
+
Example for using it in your service:
|
|
47
|
+
|
|
48
|
+
message BulkOrderResult {
|
|
49
|
+
option (.wix.api.decomposite_of) = "wix.common.BulkOrderResult";
|
|
50
|
+
ItemMetadata item_metadata = 1;
|
|
51
|
+
Order item = 2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message BulkArchiveOrdersResponse {
|
|
55
|
+
option (.wix.api.decomposite_of) = "wix.common.BulkArchiveOrdersResponse";
|
|
56
|
+
repeated BulkOrderResult results = 1;
|
|
57
|
+
BulkActionMetadata bulk_action_metadata = 2;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
*/
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.cloud.data.api.data.upstream.wix.common;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/wrappers.proto";
|
|
6
|
+
import "wix/api/annotations.proto";
|
|
7
|
+
import "wix/api/validations.proto";
|
|
8
|
+
|
|
9
|
+
option java_multiple_files = true;
|
|
10
|
+
option java_package = "com.wixpress.cloud.data.api.data.upstream.wix.common";
|
|
11
|
+
|
|
12
|
+
message Paging {
|
|
13
|
+
option (.wix.api.decomposite_of) = "wix.common.Paging";
|
|
14
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
15
|
+
field: "limit"
|
|
16
|
+
field: "offset"
|
|
17
|
+
};
|
|
18
|
+
// Number of items to load.
|
|
19
|
+
google.protobuf.Int32Value limit = 1 [(.wix.api.min) = 0];
|
|
20
|
+
// Number of items to skip in the current sort order.
|
|
21
|
+
google.protobuf.Int32Value offset = 2 [(.wix.api.min) = 0];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message CursorPaging {
|
|
25
|
+
option (.wix.api.decomposite_of) = "wix.common.CursorPaging";
|
|
26
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
27
|
+
field: "limit"
|
|
28
|
+
field: "cursor"
|
|
29
|
+
};
|
|
30
|
+
// Number of items to load.
|
|
31
|
+
google.protobuf.Int32Value limit = 1 [(.wix.api.min) = 0, (.wix.api.max) = 1000];
|
|
32
|
+
/*
|
|
33
|
+
Pointer to the next or previous page in the list of results.
|
|
34
|
+
|
|
35
|
+
You can get the relevant cursor token
|
|
36
|
+
from the `pagingMetadata` object in the previous call's response.
|
|
37
|
+
Not relevant for the first request.
|
|
38
|
+
*/
|
|
39
|
+
google.protobuf.StringValue cursor = 2 [(.wix.api.maxLength) = 150000];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message PagingMetadata {
|
|
43
|
+
option (.wix.api.decomposite_of) = "wix.common.PagingMetadata";
|
|
44
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
45
|
+
field: "count"
|
|
46
|
+
field: "offset"
|
|
47
|
+
};
|
|
48
|
+
// Number of items returned in the response.
|
|
49
|
+
google.protobuf.Int32Value count = 1;
|
|
50
|
+
// Offset that was requested.
|
|
51
|
+
google.protobuf.Int32Value offset = 2;
|
|
52
|
+
// Total number of items that match the query.
|
|
53
|
+
google.protobuf.Int32Value total = 3;
|
|
54
|
+
// Flag that indicates the server failed to calculate the `total` field.
|
|
55
|
+
google.protobuf.BoolValue too_many_to_count = 4;
|
|
56
|
+
// Indicates if there are more results after the current page.
|
|
57
|
+
// If `true`, another page of results can be retrieved.
|
|
58
|
+
// If `false`, this is the last page.
|
|
59
|
+
google.protobuf.BoolValue has_next = 5 [(.wix.api.field_exposure) = PRIVATE];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message PagingMetadataV2 {
|
|
63
|
+
option (.wix.api.decomposite_of) = "wix.common.PagingMetadataV2";
|
|
64
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
65
|
+
field: "count"
|
|
66
|
+
field: "offset"
|
|
67
|
+
};
|
|
68
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
69
|
+
field: "count"
|
|
70
|
+
field: "cursors"
|
|
71
|
+
};
|
|
72
|
+
// Number of items returned in the response.
|
|
73
|
+
google.protobuf.Int32Value count = 1;
|
|
74
|
+
// Offset that was requested.
|
|
75
|
+
google.protobuf.Int32Value offset = 2;
|
|
76
|
+
// Total number of items that match the query. Returned if offset paging is used, `returnTotalCount` is `true` in the request, and `tooManyToCount` is false.
|
|
77
|
+
google.protobuf.Int32Value total = 3;
|
|
78
|
+
// Whether the server failed to calculate the `total` field.
|
|
79
|
+
google.protobuf.BoolValue too_many_to_count = 4;
|
|
80
|
+
// Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.
|
|
81
|
+
Cursors cursors = 5;
|
|
82
|
+
|
|
83
|
+
// Indicates if there are more results after the current page.
|
|
84
|
+
// If `true`, another page of results can be retrieved.
|
|
85
|
+
// If `false`, this is the last page.
|
|
86
|
+
google.protobuf.BoolValue has_next = 6 [(.wix.api.field_exposure) = PRIVATE];
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
// This is the preferred message for cursor-paging enabled services
|
|
91
|
+
|
|
92
|
+
message CursorPagingMetadata {
|
|
93
|
+
option (.wix.api.decomposite_of) = "wix.common.CursorPagingMetadata";
|
|
94
|
+
// Number of items returned in the response.
|
|
95
|
+
google.protobuf.Int32Value count = 1;
|
|
96
|
+
// Offset that was requested.
|
|
97
|
+
Cursors cursors = 2;
|
|
98
|
+
// Indicates if there are more results after the current page.
|
|
99
|
+
// If `true`, another page of results can be retrieved.
|
|
100
|
+
// If `false`, this is the last page.
|
|
101
|
+
google.protobuf.BoolValue has_next = 3;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message Cursors {
|
|
105
|
+
option (.wix.api.decomposite_of) = "wix.common.Cursors";
|
|
106
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
107
|
+
field: "next"
|
|
108
|
+
};
|
|
109
|
+
// Cursor pointing to next page in the list of results.
|
|
110
|
+
google.protobuf.StringValue next = 1 [(.wix.api.maxLength) = 150000];
|
|
111
|
+
// Cursor pointing to previous page in the list of results.
|
|
112
|
+
google.protobuf.StringValue prev = 2 [(.wix.api.maxLength) = 150000];
|
|
113
|
+
}
|