@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.
- 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 +4 -0
- package/@wix/bex-bundled-mini-essentials/package.json +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
//flynt-disable package-matches-structure
|
|
2
|
+
//flynt-disable fields-order-change-not-allowed
|
|
3
|
+
//flynt-disable field-type-breaking-change
|
|
4
|
+
//flynt-disable renamed-field-breaking-change
|
|
5
|
+
|
|
6
|
+
syntax = "proto3";
|
|
7
|
+
|
|
8
|
+
package com.wixpress.cloud.data.api.data;
|
|
9
|
+
|
|
10
|
+
import "google/protobuf/wrappers.proto";
|
|
11
|
+
import "google/protobuf/struct.proto";
|
|
12
|
+
import "wix/api/annotations.proto";
|
|
13
|
+
import "wix/api/validations.proto";
|
|
14
|
+
import "com/wixpress/cloud/data/api/common.proto";
|
|
15
|
+
import "com/wixpress/cloud/data/api/data/message/options.proto";
|
|
16
|
+
import "com/wixpress/cloud/data/api/data/upstream/wix/common/paging.proto";
|
|
17
|
+
import "com/wixpress/cloud/data/api/data/upstream/wix/common/sorting.proto";
|
|
18
|
+
|
|
19
|
+
message AggregatePipelineDataItemsRequest {
|
|
20
|
+
message Expression {
|
|
21
|
+
message AddOperation {
|
|
22
|
+
// Expressions to add together.
|
|
23
|
+
//
|
|
24
|
+
// All expressions must resolve to numbers.
|
|
25
|
+
repeated Expression expressions = 1 [(wix.api.maxSize) = 1000];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message SumOperation {
|
|
29
|
+
// Expressions to calculate the total sum of.
|
|
30
|
+
//
|
|
31
|
+
// All expressions must resolve to numbers.
|
|
32
|
+
repeated Expression expressions = 1 [(wix.api.maxSize) = 1000];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message SubtractOperation {
|
|
36
|
+
// Expression to subtract `secondExpression` from.
|
|
37
|
+
//
|
|
38
|
+
// Expression must resolve to a number.
|
|
39
|
+
Expression first_expression = 1;
|
|
40
|
+
// Expression to subtract from `firstExpression`.
|
|
41
|
+
//
|
|
42
|
+
// Expression must resolve to a number.
|
|
43
|
+
Expression second_expression = 2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message MultiplyOperation {
|
|
47
|
+
// Expressions to multiply.
|
|
48
|
+
//
|
|
49
|
+
// All expressions must resolve to numbers.
|
|
50
|
+
repeated Expression expressions = 1 [(wix.api.maxSize) = 1000];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message DivideOperation {
|
|
54
|
+
// Expression to divide by `secondExpression`.
|
|
55
|
+
//
|
|
56
|
+
// Expression must resolve to a number.
|
|
57
|
+
Expression first_expression = 1;
|
|
58
|
+
// Expression to divide `firstExpression` by.
|
|
59
|
+
//
|
|
60
|
+
// Expression must resolve to a non-zero number.
|
|
61
|
+
Expression second_expression = 2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message ModOperation {
|
|
65
|
+
// Expression to divide by `secondExpression` to find the remainder.
|
|
66
|
+
//
|
|
67
|
+
// Expression must resolve to a number.
|
|
68
|
+
Expression first_expression = 1;
|
|
69
|
+
// Expression to divide `firstExpression` by.
|
|
70
|
+
//
|
|
71
|
+
// Expression must resolve to a non-zero number.
|
|
72
|
+
Expression second_expression = 2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message AbsOperation {
|
|
76
|
+
// Expression to find the absolute value of.
|
|
77
|
+
//
|
|
78
|
+
// Expression must resolve to a number.
|
|
79
|
+
Expression expression = 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message FloorOperation {
|
|
83
|
+
// Expression to round down to the nearest whole number.
|
|
84
|
+
//
|
|
85
|
+
// Expression must resolve to a number.
|
|
86
|
+
Expression expression = 1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
message CeilOperation {
|
|
90
|
+
// Expression to round up to the nearest whole number.
|
|
91
|
+
//
|
|
92
|
+
// Expression must resolve to a number.
|
|
93
|
+
Expression expression = 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message ConcatOperation {
|
|
97
|
+
// Expressions to join together.
|
|
98
|
+
//
|
|
99
|
+
// All expressions must resolve to strings.
|
|
100
|
+
repeated Expression expressions = 1 [(wix.api.maxSize) = 1000];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message StringifyOperation {
|
|
104
|
+
// Expression to convert to a string.
|
|
105
|
+
Expression expression = 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
message ToLowerOperation {
|
|
109
|
+
// Expression to convert to lowercase.
|
|
110
|
+
//
|
|
111
|
+
// Expression must resolve to a string.
|
|
112
|
+
Expression expression = 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message ToUpperOperation {
|
|
116
|
+
// Expression to convert to uppercase.
|
|
117
|
+
//
|
|
118
|
+
// Expression must resolve to a string.
|
|
119
|
+
Expression expression = 1;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
message SubstringOperation {
|
|
123
|
+
// Expression to extract a substring from.
|
|
124
|
+
//
|
|
125
|
+
// Expression must resolve to a string.
|
|
126
|
+
Expression expression = 1;
|
|
127
|
+
// Starting position of the substring to extract, specified in zero-based indexing.
|
|
128
|
+
//
|
|
129
|
+
// Expression must resolve to a number.
|
|
130
|
+
Expression start_expression = 2;
|
|
131
|
+
// Number of characters to extract from the starting position.
|
|
132
|
+
//
|
|
133
|
+
// Expression must resolve to a number.
|
|
134
|
+
Expression length_expression = 3;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
message LengthOperation {
|
|
138
|
+
// Expression to count the total number of characters of.
|
|
139
|
+
//
|
|
140
|
+
// Expression must resolve to a string.
|
|
141
|
+
Expression expression = 1;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
message ConditionOperation {
|
|
145
|
+
// Expression to evaluate as a condition.
|
|
146
|
+
Expression if_expression = 1;
|
|
147
|
+
// Expression to return when `ifExpression` resolves to `true`.
|
|
148
|
+
Expression when_true = 2;
|
|
149
|
+
// Expression to return when `ifExpression` resolves to `false`.
|
|
150
|
+
Expression when_false = 3;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
message GreaterThanOperation {
|
|
154
|
+
// Expression on the left side of the comparison.
|
|
155
|
+
Expression first_expression = 1;
|
|
156
|
+
// Expression on the right side of the comparison.
|
|
157
|
+
Expression second_expression = 2;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
message SizeOperation {
|
|
161
|
+
// Expression containing the array whose size to return.
|
|
162
|
+
Expression expression = 1;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
oneof value {
|
|
166
|
+
// Path to the field containing the value to resolve.
|
|
167
|
+
//
|
|
168
|
+
// Use dot notation to specify nested fields. For example, `user.name` or `product.price`.
|
|
169
|
+
string field_path = 1 [(wix.api.maxLength) = 1000];
|
|
170
|
+
// Text value.
|
|
171
|
+
string text = 2 [(wix.api.maxLength) = 1000];
|
|
172
|
+
// Number value.
|
|
173
|
+
double numeric = 3;
|
|
174
|
+
// Adds the specified expressions together.
|
|
175
|
+
AddOperation add = 4;
|
|
176
|
+
// Calculates the total sum of multiple expressions.
|
|
177
|
+
SumOperation sum = 5;
|
|
178
|
+
// Subtracts 1 expression from another.
|
|
179
|
+
SubtractOperation subtract = 6;
|
|
180
|
+
// Multiplies multiple expressions together.
|
|
181
|
+
MultiplyOperation multiply = 7;
|
|
182
|
+
// Divides 1 expression by another.
|
|
183
|
+
DivideOperation divide = 8;
|
|
184
|
+
// Finds the absolute value of an expression.
|
|
185
|
+
AbsOperation abs = 9;
|
|
186
|
+
// Finds the remainder when dividing 1 expression by another.
|
|
187
|
+
ModOperation mod = 10;
|
|
188
|
+
// Rounds an expression down to the nearest whole number.
|
|
189
|
+
FloorOperation floor = 11;
|
|
190
|
+
// Rounds an expression up to the nearest whole number.
|
|
191
|
+
CeilOperation ceil = 12;
|
|
192
|
+
// Joins multiple expressions together to create a string.
|
|
193
|
+
ConcatOperation concat = 13;
|
|
194
|
+
// Converts an expression to a string.
|
|
195
|
+
StringifyOperation stringify = 14;
|
|
196
|
+
// Converts an expression to lowercase.
|
|
197
|
+
ToLowerOperation to_lower = 15;
|
|
198
|
+
// Converts an expression to uppercase.
|
|
199
|
+
ToUpperOperation to_upper = 16;
|
|
200
|
+
// Extracts a portion of a string expression.
|
|
201
|
+
SubstringOperation substring = 17;
|
|
202
|
+
// Finds the length of a string expression.
|
|
203
|
+
LengthOperation length = 18;
|
|
204
|
+
// Boolean value.
|
|
205
|
+
bool boolean = 19 [(wix.api.field_exposure) = PRIVATE];
|
|
206
|
+
// Returns one of two expressions based on a condition.
|
|
207
|
+
ConditionOperation condition = 20 [(wix.api.field_exposure) = PRIVATE];
|
|
208
|
+
// Checks whether the first expression is greater than the second expression.
|
|
209
|
+
GreaterThanOperation gt = 21 [(wix.api.field_exposure) = PRIVATE];
|
|
210
|
+
// Returns the number of elements in an array expression.
|
|
211
|
+
SizeOperation size = 22 [(wix.api.field_exposure) = PRIVATE];
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
message Accumulator {
|
|
216
|
+
|
|
217
|
+
message Avg {
|
|
218
|
+
// Expression to calculate the group's average value.
|
|
219
|
+
//
|
|
220
|
+
// Expression must resolve to a number.
|
|
221
|
+
Expression expression = 1;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
message Min {
|
|
225
|
+
// Expression to find the group's minimum value.
|
|
226
|
+
//
|
|
227
|
+
// Expression must resolve to a comparable value, such as a number or string.
|
|
228
|
+
Expression expression = 1;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
message Max {
|
|
232
|
+
// Expression to find the group's maximum value.
|
|
233
|
+
//
|
|
234
|
+
// Expression must resolve to a comparable value, such as a number or string.
|
|
235
|
+
Expression expression = 1;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
message Sum {
|
|
239
|
+
// Expression to calculate the group's total sum.
|
|
240
|
+
//
|
|
241
|
+
// Expression must resolve to a number.
|
|
242
|
+
Expression expression = 1;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
message First {
|
|
246
|
+
// Expression to find the first item in the group.
|
|
247
|
+
Expression expression = 1;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
message Last {
|
|
251
|
+
// Expression to find the last item in the group.
|
|
252
|
+
Expression expression = 1;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
message Push {
|
|
256
|
+
// Expression to collect items into an array.
|
|
257
|
+
Expression expression = 1;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// Field key in the output item to store the result in.
|
|
261
|
+
string result_field_name = 1 [(wix.api.maxLength) = 1000];
|
|
262
|
+
|
|
263
|
+
oneof expression {
|
|
264
|
+
// Calculates the average value across all items in the group based on the specified expression.
|
|
265
|
+
Avg avg = 2;
|
|
266
|
+
// Finds the minimum value across all items in the group.
|
|
267
|
+
Min min = 3;
|
|
268
|
+
// Finds the maximum value across all items in the group.
|
|
269
|
+
Max max = 4;
|
|
270
|
+
// Calculates the sum of the specified expression across all items in the group.
|
|
271
|
+
Sum sum = 5;
|
|
272
|
+
// Finds the first item in the group.
|
|
273
|
+
First first = 6;
|
|
274
|
+
// Finds the last item in the group.
|
|
275
|
+
Last last = 7;
|
|
276
|
+
// Collects values from all items in the group into an array.
|
|
277
|
+
Push push = 8;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// Transforms collection items by including, excluding, or reshaping fields.
|
|
282
|
+
message Projection {
|
|
283
|
+
message Field {
|
|
284
|
+
oneof projection {
|
|
285
|
+
// When specified, includes only the specified field in the result. All other fields are excluded.
|
|
286
|
+
Include include = 1;
|
|
287
|
+
// When specified, excludes the specified field from the result. All other fields are included.
|
|
288
|
+
Exclude exclude = 2;
|
|
289
|
+
// Reshapes a new field based on the specified expression. The field used by the expression is not included in the result.
|
|
290
|
+
Reshape reshape = 3;
|
|
291
|
+
// Creates nested fields by including, excluding, or reshaping fields.
|
|
292
|
+
ProjectNested project_nested = 4;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
message Include {
|
|
297
|
+
// Key of the field to include in the result.
|
|
298
|
+
//
|
|
299
|
+
// 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).
|
|
300
|
+
string field_name = 1 [(wix.api.maxLength) = 1000];
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
message Exclude {
|
|
304
|
+
// Key of the field to exclude from the result.
|
|
305
|
+
//
|
|
306
|
+
// 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).
|
|
307
|
+
string field_name = 1 [(wix.api.maxLength) = 1000];
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
message Reshape {
|
|
311
|
+
// Key of the field to create in the result item.
|
|
312
|
+
//
|
|
313
|
+
// 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).
|
|
314
|
+
string result_field_name = 1 [(wix.api.maxLength) = 1000];
|
|
315
|
+
// Expression to resolve. The result of the expression becomes the value of the new field.
|
|
316
|
+
Expression expression = 2;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
message ProjectNested {
|
|
320
|
+
// Key of the parent field for the nested fields.
|
|
321
|
+
//
|
|
322
|
+
// 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).
|
|
323
|
+
string result_field_name = 1 [(wix.api.maxLength) = 1000];
|
|
324
|
+
// Nested fields to include, exclude, or reshape.
|
|
325
|
+
repeated Field fields = 2 [(wix.api.maxSize) = 1000];
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
// Fields to include, exclude, or reshape.
|
|
329
|
+
repeated Field fields = 1 [(wix.api.maxSize) = 1000];
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// Converts an object to an array.
|
|
333
|
+
message ObjectToArray {
|
|
334
|
+
// Key of the object field to convert to an array.
|
|
335
|
+
//
|
|
336
|
+
// 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).
|
|
337
|
+
string object_field_name = 1 [(wix.api.maxLength) = 1000];
|
|
338
|
+
// Key of the new array to create in the result item.
|
|
339
|
+
//
|
|
340
|
+
// 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).
|
|
341
|
+
string destination_field_name = 2 [(wix.api.maxLength) = 1000];
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// Unwinds an array.
|
|
345
|
+
message UnwindArray {
|
|
346
|
+
// Key of the array field to unwind.
|
|
347
|
+
//
|
|
348
|
+
// 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).
|
|
349
|
+
string array_field_name = 1 [(wix.api.maxLength) = 1000];
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
message Group {
|
|
353
|
+
message GroupId {
|
|
354
|
+
// Name of the field to group items by.
|
|
355
|
+
//
|
|
356
|
+
// This becomes the field name in the result's `_id` property.
|
|
357
|
+
string key = 1 [(wix.api.maxLength) = 1000];
|
|
358
|
+
// Expression to determine the grouping value. Items whose expression resolves to the same value are grouped together in the result item's `_id` property.
|
|
359
|
+
Expression expression = 2;
|
|
360
|
+
}
|
|
361
|
+
// Grouping criteria by which to organize items.
|
|
362
|
+
//
|
|
363
|
+
// Each `groupId` specifies a field by which to group items, and serves as the result item's unique `_id` property.
|
|
364
|
+
//
|
|
365
|
+
// 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.
|
|
366
|
+
repeated GroupId group_ids = 1 [(wix.api.maxSize) = 1000];
|
|
367
|
+
// Accumulation operations to run on each group.
|
|
368
|
+
//
|
|
369
|
+
// Accumulators aggregate data across all items in the group and return the result in a new field.
|
|
370
|
+
//
|
|
371
|
+
// > **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.
|
|
372
|
+
repeated Accumulator accumulators = 2 [(wix.api.maxSize) = 1000];
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
message Sorting {
|
|
376
|
+
// Fields to sort the results by.
|
|
377
|
+
repeated upstream.wix.common.Sorting values = 1 [(wix.api.maxSize) = 1000];
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
message AddFields {
|
|
381
|
+
message AddField {
|
|
382
|
+
// Key of the field to add or replace in the result item.
|
|
383
|
+
string field_name = 1 [(wix.api.maxLength) = 1000];
|
|
384
|
+
// Expression to resolve. The result of the expression becomes the value of the field.
|
|
385
|
+
Expression expression = 2;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// Fields to add or replace in the result items.
|
|
389
|
+
repeated AddField fields = 1 [(wix.api.maxSize) = 1000];
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
message Lookup {
|
|
393
|
+
// ID of the collection to join with.
|
|
394
|
+
string data_collection_id = 1 [(wix.api.maxLength) = 256];
|
|
395
|
+
// Key of the local field whose value is used for matching items in the joined collection.
|
|
396
|
+
string local_field = 2 [(wix.api.maxLength) = 1000];
|
|
397
|
+
// Key of the field in the joined collection to match against the local field value.
|
|
398
|
+
string foreign_field = 3 [(wix.api.maxLength) = 1000];
|
|
399
|
+
// Key of the array field where matching joined items are stored.
|
|
400
|
+
string as_field = 4 [(wix.api.maxLength) = 1000];
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
message UnionWith {
|
|
404
|
+
// ID of the collection whose results are appended to the current pipeline results.
|
|
405
|
+
string data_collection_id = 1 [(wix.api.maxLength) = 256];
|
|
406
|
+
// Pipeline to run on the union collection before appending its results.
|
|
407
|
+
AggregationPipeline pipeline = 2;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
message AggregationPipeline {
|
|
411
|
+
// Sequence of aggregation operations to apply to the data.
|
|
412
|
+
//
|
|
413
|
+
// Stages are processed in order, with each stage operating on the output of the previous stage.
|
|
414
|
+
repeated Stage stages = 1 [(wix.api.maxSize) = 100];
|
|
415
|
+
|
|
416
|
+
oneof paging_method {
|
|
417
|
+
// Paging options to limit and skip the number of results.
|
|
418
|
+
//
|
|
419
|
+
// Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).
|
|
420
|
+
upstream.wix.common.Paging paging = 2;
|
|
421
|
+
|
|
422
|
+
// Cursor token referring to a page of results.
|
|
423
|
+
//
|
|
424
|
+
// Not used in the first request. Subsequent requests use the cursor token and not `filter` or `sort`.
|
|
425
|
+
upstream.wix.common.CursorPaging cursor_paging = 3;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
message Stage {
|
|
430
|
+
oneof stage {
|
|
431
|
+
|
|
432
|
+
// Groups aggregated items to new result items.
|
|
433
|
+
Group group = 1;
|
|
434
|
+
|
|
435
|
+
// Aggregation filter. Only items that match the filter are processed.
|
|
436
|
+
//
|
|
437
|
+
// Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
|
|
438
|
+
//
|
|
439
|
+
// > **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).
|
|
440
|
+
google.protobuf.Struct filter = 2;
|
|
441
|
+
|
|
442
|
+
// Sorting preferences.
|
|
443
|
+
//
|
|
444
|
+
// Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).
|
|
445
|
+
Sorting sort = 3;
|
|
446
|
+
|
|
447
|
+
// Transforms items by including, excluding, or reshaping fields.
|
|
448
|
+
Projection projection = 4;
|
|
449
|
+
|
|
450
|
+
// 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.
|
|
451
|
+
ObjectToArray object_to_array = 5;
|
|
452
|
+
|
|
453
|
+
// 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.
|
|
454
|
+
UnwindArray unwind_array = 6;
|
|
455
|
+
|
|
456
|
+
// Number of results to skip from the beginning of the result set.
|
|
457
|
+
int32 skip = 7;
|
|
458
|
+
|
|
459
|
+
// Maximum number of results to return.
|
|
460
|
+
int32 limit = 8;
|
|
461
|
+
|
|
462
|
+
// Adds or replaces fields in each result item.
|
|
463
|
+
AddFields add_fields = 9 [(wix.api.field_exposure) = PRIVATE];
|
|
464
|
+
|
|
465
|
+
// Joins items from another collection into an array field by matching a local field against a foreign field.
|
|
466
|
+
Lookup lookup = 10 [(wix.api.field_exposure) = PRIVATE];
|
|
467
|
+
|
|
468
|
+
// Appends results from another collection pipeline to the current results.
|
|
469
|
+
UnionWith union_with = 11 [(wix.api.field_exposure) = PRIVATE];
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
// Environment: `LIVE` or `SANDBOX`.
|
|
475
|
+
Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
|
|
476
|
+
|
|
477
|
+
// ID of the collection to run the aggregation pipeline on.
|
|
478
|
+
string data_collection_id = 2 [(wix.api.maxLength) = 256];
|
|
479
|
+
|
|
480
|
+
// Aggregation pipeline configuration containing stages and paging options.
|
|
481
|
+
AggregationPipeline pipeline = 3;
|
|
482
|
+
|
|
483
|
+
// Whether to return the total result count when running a query with offset paging. When `true`, the `pagingMetadata` property in the response contains a `total` field.
|
|
484
|
+
//
|
|
485
|
+
// Learn more about [offset paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging#paging).
|
|
486
|
+
//
|
|
487
|
+
// Default: `false`.
|
|
488
|
+
bool return_total_count = 4;
|
|
489
|
+
|
|
490
|
+
// Grid app ID. Optional in Live segment.
|
|
491
|
+
google.protobuf.StringValue app_id = 5 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
|
|
492
|
+
|
|
493
|
+
// Whether to read from the primary database for the most current data.
|
|
494
|
+
//
|
|
495
|
+
// This decreases performance but ensures data retrieved is up to date even immediately after an update.
|
|
496
|
+
//
|
|
497
|
+
// Learn more about [Wix Data and eventual consistency](https://dev.wix.com/api/rest/wix-data/wix-data/eventual-consistency).
|
|
498
|
+
//
|
|
499
|
+
// Default: `false`.
|
|
500
|
+
bool consistent_read = 6;
|
|
501
|
+
|
|
502
|
+
// Language to run the aggregation in, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
503
|
+
//
|
|
504
|
+
// When provided, the aggregation runs on items in the specified language. When not provided, the aggregation runs on items in the default language.
|
|
505
|
+
//
|
|
506
|
+
// > **Note:** The Wix user must enable translation for the specified language in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).
|
|
507
|
+
//
|
|
508
|
+
// Learn more about [using Wix Multilingual to translate CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).
|
|
509
|
+
google.protobuf.StringValue language = 7 [(wix.api.format) = LANGUAGE_TAG];
|
|
510
|
+
|
|
511
|
+
// 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.
|
|
512
|
+
//
|
|
513
|
+
// Learn more about [querying Wix app collections](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/querying-wix-app-collections).
|
|
514
|
+
google.protobuf.Struct app_options = 8;
|
|
515
|
+
|
|
516
|
+
// Options for the Publish plugin.
|
|
517
|
+
//
|
|
518
|
+
// 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 aren't.
|
|
519
|
+
PublishPluginOptions publish_plugin_options = 9;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
message AggregatePipelineDataItemsResponse {
|
|
523
|
+
// Aggregation results.
|
|
524
|
+
repeated google.protobuf.Struct results = 1 [(wix.api.maxSize) = 10000];
|
|
525
|
+
|
|
526
|
+
// Paging information.
|
|
527
|
+
upstream.wix.common.PagingMetadataV2 paging_metadata = 2;
|
|
528
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
//flynt-disable no-oneof-empty-markers
|
|
2
|
+
|
|
3
|
+
syntax = "proto3";
|
|
4
|
+
|
|
5
|
+
package com.wixpress.cloud.data.api.data;
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/wrappers.proto";
|
|
8
|
+
import "google/protobuf/struct.proto";
|
|
9
|
+
import "wix/api/annotations.proto";
|
|
10
|
+
import "wix/api/validations.proto";
|
|
11
|
+
import "com/wixpress/cloud/data/api/common.proto";
|
|
12
|
+
import "com/wixpress/cloud/data/api/data/message/options.proto";
|
|
13
|
+
import "com/wixpress/cloud/data/api/data/upstream/wix/common/paging.proto";
|
|
14
|
+
import "com/wixpress/cloud/data/api/data/upstream/wix/common/sorting.proto";
|
|
15
|
+
|
|
16
|
+
message AggregateDataItemsRequest {
|
|
17
|
+
message Aggregation {
|
|
18
|
+
message Operation {
|
|
19
|
+
message Average {
|
|
20
|
+
// Name of the field for which to calculate the average value.
|
|
21
|
+
string item_field_name = 1 [(wix.api.maxLength) = 1000];
|
|
22
|
+
}
|
|
23
|
+
message Min {
|
|
24
|
+
// Name of the field for which to calculate the minimum value.
|
|
25
|
+
string item_field_name = 1 [(wix.api.maxLength) = 1000];
|
|
26
|
+
}
|
|
27
|
+
message Max {
|
|
28
|
+
// Name of the field for which to calculate the maximum value.
|
|
29
|
+
string item_field_name = 1 [(wix.api.maxLength) = 1000];
|
|
30
|
+
}
|
|
31
|
+
message Sum {
|
|
32
|
+
// Name of the field for which to calculate the sum.
|
|
33
|
+
string item_field_name = 1 [(wix.api.maxLength) = 1000];
|
|
34
|
+
}
|
|
35
|
+
message Count {}
|
|
36
|
+
|
|
37
|
+
// Name of the field containing results of the operation.
|
|
38
|
+
string result_field_name = 1 [(wix.api.maxLength) = 1000];
|
|
39
|
+
|
|
40
|
+
oneof calculate {
|
|
41
|
+
// Calculate the average value of a specified field for all items in the grouping.
|
|
42
|
+
Average average = 2;
|
|
43
|
+
|
|
44
|
+
// Calculate the minimum value of a specified field for all items in the grouping.
|
|
45
|
+
Min min = 3;
|
|
46
|
+
|
|
47
|
+
// Calculate the maximum value of a specified field for all items in the grouping.
|
|
48
|
+
Max max = 4;
|
|
49
|
+
|
|
50
|
+
// Calculate the sum of values of a specified field for all items in the grouping.
|
|
51
|
+
Sum sum = 5;
|
|
52
|
+
|
|
53
|
+
// Calculate the number of items in the grouping.
|
|
54
|
+
Count item_count = 6;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
// Fields by which to group items for the aggregation. If empty, the aggregation is carried out on all items in the collection.
|
|
58
|
+
repeated string grouping_fields = 1 [(wix.api.maxSize) = 100, (wix.api.maxLength) = 1000];
|
|
59
|
+
// Operations to carry out on the data in each grouping.
|
|
60
|
+
repeated Operation operations = 2 [(wix.api.maxSize) = 100];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Environment: LIVE or SANDBOX
|
|
64
|
+
Environment environment = 1 [(wix.api.field_exposure) = PRIVATE];
|
|
65
|
+
|
|
66
|
+
// ID of the collection on which to run the aggregation.
|
|
67
|
+
string data_collection_id = 2 [(wix.api.maxLength) = 256];
|
|
68
|
+
|
|
69
|
+
// Filter applied to the collection's data prior to running the aggregation. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_the-filter-section) for information on how to structure a filter object.
|
|
70
|
+
//
|
|
71
|
+
// **Note:** The values you provide for each filter 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).
|
|
72
|
+
google.protobuf.Struct initial_filter = 3;
|
|
73
|
+
|
|
74
|
+
// Aggregation applied to the data.
|
|
75
|
+
Aggregation aggregation = 4;
|
|
76
|
+
|
|
77
|
+
// Filter applied to the processed data following the aggregation. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_the-filter-section) for information on how to structure a filter object.
|
|
78
|
+
// **Note:** The values you provide for each filter 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).
|
|
79
|
+
google.protobuf.Struct final_filter = 5;
|
|
80
|
+
|
|
81
|
+
oneof paging_method {
|
|
82
|
+
// Paging options to limit and skip the number of items.
|
|
83
|
+
upstream.wix.common.Paging paging = 6;
|
|
84
|
+
|
|
85
|
+
// 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`.
|
|
86
|
+
upstream.wix.common.CursorPaging cursor_paging = 7;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Sort object in the following format:
|
|
90
|
+
// `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
91
|
+
repeated upstream.wix.common.Sorting sort = 8 [(wix.api.maxSize) = 100];
|
|
92
|
+
|
|
93
|
+
// Whether to return the total count in the response for a query with offset paging.
|
|
94
|
+
// When `true`, the `pagingMetadata` object in the response contains a `total` field.
|
|
95
|
+
//
|
|
96
|
+
// Default: `false`
|
|
97
|
+
bool return_total_count = 9;
|
|
98
|
+
|
|
99
|
+
// Grid app id. Optional in Live segment.
|
|
100
|
+
google.protobuf.StringValue app_id = 10 [(wix.api.format) = GUID, (wix.api.field_exposure) = PRIVATE];
|
|
101
|
+
|
|
102
|
+
// Data access options
|
|
103
|
+
Options options = 11 [
|
|
104
|
+
(wix.api.field_exposure) = PRIVATE,
|
|
105
|
+
deprecated = true,
|
|
106
|
+
(wix.api.field_deprecated) = {
|
|
107
|
+
replaced_by: "inlined"
|
|
108
|
+
target_removal_date: "2024-07-12"
|
|
109
|
+
}
|
|
110
|
+
];
|
|
111
|
+
|
|
112
|
+
// Whether to retrieve data from the primary database instance.
|
|
113
|
+
// This decreases performance but ensures data retrieved is up to date even immediately after an update.
|
|
114
|
+
// Learn more about [Wix Data and eventual consistency](https://dev.wix.com/api/rest/wix-data/wix-data/eventual-consistency).
|
|
115
|
+
//
|
|
116
|
+
// Default: `false`
|
|
117
|
+
bool consistent_read = 12;
|
|
118
|
+
|
|
119
|
+
// Language to run the aggregation on, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
120
|
+
//
|
|
121
|
+
// If not provided, the aggregation runs on items in the default language.
|
|
122
|
+
//
|
|
123
|
+
// > **Note:** The site must have [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual) installed, and translation for the specified language must be enabled for the collection.
|
|
124
|
+
//
|
|
125
|
+
// Learn more about [Using Wix Multilingual to Translate CMS Content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).
|
|
126
|
+
google.protobuf.StringValue language = 13 [(wix.api.format) = LANGUAGE_TAG];
|
|
127
|
+
|
|
128
|
+
// 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.
|
|
129
|
+
//
|
|
130
|
+
// 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:
|
|
131
|
+
// - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
|
|
132
|
+
// - `includeVariants`: Whether to include product variants in the query. Default: `false`.
|
|
133
|
+
google.protobuf.Struct app_options = 14;
|
|
134
|
+
|
|
135
|
+
// Options for the Publish plugin.
|
|
136
|
+
// 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.
|
|
137
|
+
PublishPluginOptions publish_plugin_options = 15;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
message AggregateDataItemsResponse {
|
|
141
|
+
// Aggregation results.
|
|
142
|
+
repeated google.protobuf.Struct results = 1;
|
|
143
|
+
|
|
144
|
+
// Paging information.
|
|
145
|
+
upstream.wix.common.PagingMetadataV2 paging_metadata = 3;
|
|
146
|
+
}
|