@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,121 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.cloud.data.api.data.upstream.wix.common;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/struct.proto";
|
|
6
|
+
import "google/protobuf/wrappers.proto";
|
|
7
|
+
import "wix/api/annotations.proto";
|
|
8
|
+
import "wix/api/validations.proto";
|
|
9
|
+
import "com/wixpress/cloud/data/api/data/upstream/wix/common/paging.proto";
|
|
10
|
+
import "com/wixpress/cloud/data/api/data/upstream/wix/common/sorting.proto";
|
|
11
|
+
|
|
12
|
+
option java_multiple_files = true;
|
|
13
|
+
option java_outer_classname = "QueryProto";
|
|
14
|
+
option java_package = "com.wixpress.cloud.data.api.data.upstream.wix.common";
|
|
15
|
+
|
|
16
|
+
message QueryV2 {
|
|
17
|
+
option (.wix.api.decomposite_of) = "wix.common.QueryV2";
|
|
18
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
19
|
+
field: "filter"
|
|
20
|
+
field: "sort"
|
|
21
|
+
field: "paging"
|
|
22
|
+
};
|
|
23
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
24
|
+
field: "filter"
|
|
25
|
+
field: "sort"
|
|
26
|
+
field: "cursorPaging"
|
|
27
|
+
};
|
|
28
|
+
// Filter object.
|
|
29
|
+
//
|
|
30
|
+
// Learn more about filters in [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
|
|
31
|
+
google.protobuf.Struct filter = 1;
|
|
32
|
+
|
|
33
|
+
// Sort object.
|
|
34
|
+
//
|
|
35
|
+
// Learn more about sorting in [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#sorting).
|
|
36
|
+
repeated Sorting sort = 2 [(.wix.api.maxSize) = 100];
|
|
37
|
+
|
|
38
|
+
// Fields to include for each retrieved item. Only fields specified in the array are included in the response. If the array is empty, all fields are returned.
|
|
39
|
+
//
|
|
40
|
+
// > **Note:** The `_id` system field is always returned.
|
|
41
|
+
repeated string fields = 4 [(.wix.api.maxSize) = 1000, (.wix.api.maxLength) = 5000];
|
|
42
|
+
|
|
43
|
+
reserved 5;
|
|
44
|
+
|
|
45
|
+
oneof pagingMethod {
|
|
46
|
+
// Paging options to limit and skip the number of retrieved items.
|
|
47
|
+
Paging paging = 3;
|
|
48
|
+
// Cursor pointing to a page of results. Not used in the first request.
|
|
49
|
+
//
|
|
50
|
+
// Subsequent requests use the cursor and ignore `filter` and `sort`.
|
|
51
|
+
CursorPaging cursor_paging = 6;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message Search {
|
|
56
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
57
|
+
field: "filter"
|
|
58
|
+
field: "sort"
|
|
59
|
+
field: "paging"
|
|
60
|
+
};
|
|
61
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
62
|
+
field: "filter"
|
|
63
|
+
field: "sort"
|
|
64
|
+
field: "cursor_paging"
|
|
65
|
+
};
|
|
66
|
+
// Filter object.
|
|
67
|
+
//
|
|
68
|
+
// Learn more about filters in [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
|
|
69
|
+
google.protobuf.Struct filter = 1;
|
|
70
|
+
|
|
71
|
+
// Sort object.
|
|
72
|
+
//
|
|
73
|
+
// Learn more about sorting in [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#sorting).
|
|
74
|
+
repeated Sorting sort = 2 [(.wix.api.maxSize) = 10];
|
|
75
|
+
|
|
76
|
+
// Fields to include for each retrieved item. Only fields specified in the array are included in the response. If the array is empty, all fields are returned.
|
|
77
|
+
//
|
|
78
|
+
// > **Note:** The `_id` system field is always returned.
|
|
79
|
+
repeated string fields = 3 [(.wix.api.maxLength) = 200, (.wix.api.maxSize) = 20];
|
|
80
|
+
|
|
81
|
+
// fieldsets
|
|
82
|
+
reserved 4;
|
|
83
|
+
// aggregations
|
|
84
|
+
reserved 5;
|
|
85
|
+
|
|
86
|
+
// Text to search in the specified collection.
|
|
87
|
+
SearchDetails search = 6;
|
|
88
|
+
oneof paging_method {
|
|
89
|
+
// Options for limiting and skipping the number of retrieved items.
|
|
90
|
+
Paging paging = 7;
|
|
91
|
+
|
|
92
|
+
// Cursor pointing to a page of results. Not used in the first request.
|
|
93
|
+
//
|
|
94
|
+
// Subsequent requests use this cursor and ignore `filter` and `sort`.
|
|
95
|
+
CursorPaging cursor_paging = 8;
|
|
96
|
+
}
|
|
97
|
+
// Time Zone.
|
|
98
|
+
reserved 9;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message SearchDetails {
|
|
102
|
+
enum Mode {
|
|
103
|
+
// Logical **OR** relationship. Any search term must exist for an item to be retrieved.
|
|
104
|
+
OR = 0;
|
|
105
|
+
// Logical **AND** relationship. All search terms must exist for an item to be retrieved.
|
|
106
|
+
AND = 1;
|
|
107
|
+
}
|
|
108
|
+
// Determines how multiple search terms are handled.
|
|
109
|
+
//
|
|
110
|
+
// Default: `OR`.
|
|
111
|
+
Mode mode = 1;
|
|
112
|
+
// Search query. Search terms are separated by whitespace.
|
|
113
|
+
google.protobuf.StringValue expression = 2 [(.wix.api.maxLength) = 100];
|
|
114
|
+
// Fields.
|
|
115
|
+
reserved 3;
|
|
116
|
+
|
|
117
|
+
// Whether to use fuzzy search to accommodate typos and partial matches.
|
|
118
|
+
//
|
|
119
|
+
// Default: `false`.
|
|
120
|
+
bool fuzzy = 4;
|
|
121
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.cloud.data.api.data.upstream.wix.common;
|
|
4
|
+
|
|
5
|
+
import "wix/api/annotations.proto";
|
|
6
|
+
import "wix/api/validations.proto";
|
|
7
|
+
|
|
8
|
+
option java_multiple_files = true;
|
|
9
|
+
option java_package = "com.wixpress.cloud.data.api.data.upstream.wix.common";
|
|
10
|
+
|
|
11
|
+
message Sorting {
|
|
12
|
+
option (.wix.api.decomposite_of) = "wix.common.Sorting";
|
|
13
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
14
|
+
field: "field_name"
|
|
15
|
+
field: "order"
|
|
16
|
+
};
|
|
17
|
+
// Name of the field to sort by.
|
|
18
|
+
string field_name = 1 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 1000];
|
|
19
|
+
// Sort order.
|
|
20
|
+
SortOrder order = 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
enum SortOrder {
|
|
24
|
+
ASC = 0;
|
|
25
|
+
DESC = 1;
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/wrappers.proto";
|
|
4
|
+
import "google/api/annotations.proto";
|
|
5
|
+
|
|
6
|
+
package com.wixpress.iptf.webhooks;
|
|
7
|
+
|
|
8
|
+
service Debug {
|
|
9
|
+
rpc queryMessageId(QueryMessageIdRequest) returns (QueryResponse){
|
|
10
|
+
option (google.api.http) = {
|
|
11
|
+
post: "/queryMessageId"
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
rpc queryOffset(QueryOffsetRequest) returns (QueryResponse){
|
|
16
|
+
option (google.api.http) = {
|
|
17
|
+
post: "/queryOffset"
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message QueryOffsetRequest {
|
|
23
|
+
string topic = 1;
|
|
24
|
+
int32 partition = 2;
|
|
25
|
+
int64 offset = 3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message QueryMessageIdRequest {
|
|
29
|
+
string message_id = 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message QueryResponse {
|
|
33
|
+
repeated string json = 1;
|
|
34
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/wrappers.proto";
|
|
4
|
+
import "google/api/annotations.proto";
|
|
5
|
+
|
|
6
|
+
package com.wixpress.iptf.webhooks;
|
|
7
|
+
|
|
8
|
+
service WebhooksKV {
|
|
9
|
+
rpc queryApp(QueryAppRequest) returns (QueryAppResponse){
|
|
10
|
+
option (google.api.http) = {};
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
rpc queryAppSecretAndPrivateKey(QueryAppSecretAndPrivateKeyRequest) returns (QueryAppSecretAndPrivateKeyResponse){
|
|
14
|
+
option (google.api.http) = {};
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message QueryAppRequest {
|
|
19
|
+
string app_def_id = 1;
|
|
20
|
+
string version = 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message QueryAppSecretAndPrivateKeyRequest {
|
|
24
|
+
string app_def_id = 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message QueryAppSecretAndPrivateKeyResponse {
|
|
28
|
+
google.protobuf.StringValue private_key = 1;
|
|
29
|
+
string secret = 2;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message QueryAppResponse {
|
|
33
|
+
repeated string permissions = 1;
|
|
34
|
+
google.protobuf.StringValue private_key = 2;
|
|
35
|
+
string secret = 3;
|
|
36
|
+
repeated DispatcherAppWebhook webhook = 4;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message DispatcherAppWebhook {
|
|
40
|
+
string webhookSlug = 1;
|
|
41
|
+
string callback_url = 2;
|
|
42
|
+
}
|
package/@wix/ambassador-hub-v1-job/src/main/proto/com/wixpress/iptf/webhooks/message_envelope.proto
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.iptf.v1.webhooks;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/wrappers.proto";
|
|
6
|
+
import "wix/api/validations.proto";
|
|
7
|
+
import "wix/api/annotations.proto";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
message MessageEnvelope {
|
|
11
|
+
reserved "account_details";
|
|
12
|
+
reserved 5;
|
|
13
|
+
|
|
14
|
+
google.protobuf.StringValue instance_id = 1 [(.wix.api.format) = GUID]; // App instance ID.
|
|
15
|
+
string event_type = 2 [(.wix.api.maxLength) = 150]; // Event type.
|
|
16
|
+
IdentificationData identity = 3; // The identification type and identity data.
|
|
17
|
+
// flynt-disable missing-string-validations
|
|
18
|
+
string data = 4; // Stringify payload.
|
|
19
|
+
AccountInfo account_info = 6 [(.wix.api.field_maturity) = BETA]; // Details related to the account
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message IdentificationData {
|
|
23
|
+
option (.wix.api.decomposite_of) = "wix.common.IdentificationData";
|
|
24
|
+
enum WebhookIdentityType {
|
|
25
|
+
UNKNOWN = 0;
|
|
26
|
+
ANONYMOUS_VISITOR = 1;
|
|
27
|
+
MEMBER = 2;
|
|
28
|
+
WIX_USER = 3;
|
|
29
|
+
APP = 4;
|
|
30
|
+
}
|
|
31
|
+
reserved 1;
|
|
32
|
+
WebhookIdentityType identity_type = 6 [(.wix.api.readOnly) = true];
|
|
33
|
+
oneof id {
|
|
34
|
+
// ID of a site visitor that has not logged in to the site.
|
|
35
|
+
string anonymous_visitor_id = 2 [(.wix.api.format) = GUID];
|
|
36
|
+
// ID of a site visitor that has logged in to the site.
|
|
37
|
+
string member_id = 3 [(.wix.api.format) = GUID, (.wix.api.referenced_entity) = "wix.members.v1.member"];
|
|
38
|
+
// ID of a Wix user (site owner, contributor, etc.).
|
|
39
|
+
string wix_user_id = 4 [(.wix.api.format) = GUID];
|
|
40
|
+
// ID of an app.
|
|
41
|
+
string app_id = 5 [(.wix.api.format) = GUID];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message AccountInfo {
|
|
46
|
+
// ID of the Wix account associated with the event.
|
|
47
|
+
google.protobuf.StringValue account_id = 1 [(.wix.api.format) = GUID];
|
|
48
|
+
|
|
49
|
+
// ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
50
|
+
google.protobuf.StringValue parent_account_id = 2 [(.wix.api.format) = GUID];
|
|
51
|
+
|
|
52
|
+
// ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
53
|
+
google.protobuf.StringValue site_id = 3 [(.wix.api.format) = GUID];
|
|
54
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//flynt-disable missing-array-limits, missing-field-comments, missing-string-validations, unsigned-integers-not-allowed, package-matches-structure
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
|
|
4
|
+
package com.wixpress.rest;
|
|
5
|
+
|
|
6
|
+
import "google/protobuf/wrappers.proto";
|
|
7
|
+
|
|
8
|
+
message RawHttpResponse {
|
|
9
|
+
bytes body = 2;
|
|
10
|
+
google.protobuf.UInt32Value status_code = 3;
|
|
11
|
+
repeated HeadersEntry headers = 4;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
message RawHttpRequest {
|
|
17
|
+
bytes body = 1;
|
|
18
|
+
repeated PathParametersEntry path_params = 2;
|
|
19
|
+
repeated QueryParametersEntry query_params = 3;
|
|
20
|
+
repeated HeadersEntry headers = 4;
|
|
21
|
+
string method = 5;
|
|
22
|
+
string raw_path = 6;
|
|
23
|
+
string raw_query = 7;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message PathParametersEntry {
|
|
27
|
+
string key = 1;
|
|
28
|
+
string value = 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message QueryParametersEntry {
|
|
32
|
+
string key = 1;
|
|
33
|
+
string value = 2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message HeadersEntry {
|
|
37
|
+
string key = 1;
|
|
38
|
+
string value = 2;
|
|
39
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.iptf.webhooks.api.v1;
|
|
4
|
+
|
|
5
|
+
import "google/api/annotations.proto";
|
|
6
|
+
import "wix/api/validations.proto";
|
|
7
|
+
|
|
8
|
+
service WebhooksDebugService {
|
|
9
|
+
rpc submit(SubmitWebhookRequest) returns (SubmitWebhookResponse) {
|
|
10
|
+
option (google.api.http) = {
|
|
11
|
+
post: "debug/submit"
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message SubmitWebhookRequest {
|
|
17
|
+
string url = 1;
|
|
18
|
+
string event_type = 2;
|
|
19
|
+
string topic = 3;
|
|
20
|
+
string payload = 4;
|
|
21
|
+
string http_method = 5;
|
|
22
|
+
string jwt_secret = 6;
|
|
23
|
+
int64 expireInMs = 7;
|
|
24
|
+
int64 submitted = 8;
|
|
25
|
+
bool should_override_proxy = 9;
|
|
26
|
+
string rsa_private_key = 10;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message SubmitWebhookResponse {
|
|
30
|
+
int32 status_code = 1;
|
|
31
|
+
string message = 2;
|
|
32
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.iptf.webhooks.api.v1;
|
|
4
|
+
|
|
5
|
+
import "google/api/annotations.proto";
|
|
6
|
+
import "wix/api/validations.proto";
|
|
7
|
+
import "google/protobuf/wrappers.proto";
|
|
8
|
+
|
|
9
|
+
service WebhooksSyncService {
|
|
10
|
+
rpc signHash(SignHashRequest) returns (SignResponse) {
|
|
11
|
+
option (wix.api.required) = "SignHashRequest.hashedPayload";
|
|
12
|
+
option (wix.api.required) = "SignHashRequest.appdef_id";
|
|
13
|
+
option (google.api.http) = {
|
|
14
|
+
get: "v1/sign/hash"
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message SignHashRequest {
|
|
20
|
+
string hashedPayload = 1;
|
|
21
|
+
HashFunction algorithm = 2;
|
|
22
|
+
string appdef_id = 3 [(wix.api.format)=GUID]; // appdef id of the external app
|
|
23
|
+
int64 expiration_in_millis = 4;
|
|
24
|
+
google.protobuf.StringValue artifact_id = 5 [(wix.api.maxLength) = 200]; // caller
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message SignResponse {
|
|
28
|
+
string token = 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
enum HashFunction {
|
|
32
|
+
SHA256 = 0;
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
syntax = "proto2";
|
|
2
|
+
|
|
3
|
+
package wix.api;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/descriptor.proto";
|
|
6
|
+
|
|
7
|
+
option java_multiple_files = true;
|
|
8
|
+
option java_outer_classname = "ActionPayloadProto";
|
|
9
|
+
option java_package = "com.wix.api";
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
action_payload option is used to configure custom slugs for the payload type of a DomainEvent Action:
|
|
13
|
+
service BlooperService {
|
|
14
|
+
option (wix.api.service_entity).message = "com.wixpress.examples.Blooper"; //the "main" entity
|
|
15
|
+
rpc MissedBlooper (MissedBlooperRequest) returns (MissedBlooperResponse) {
|
|
16
|
+
option (wix.api.callback) = {
|
|
17
|
+
event_type: Action
|
|
18
|
+
payload: "com.wixpress.examples.BlooperWasMissed"
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
message BlooperWasMissed {
|
|
23
|
+
option (wix.api.action_payload).custom_slug = "super_custom_slug"; // only define if the default slug value (snake case of the message name) is out of the question
|
|
24
|
+
int32 how_funny_it_could_have_been = 1;
|
|
25
|
+
}
|
|
26
|
+
*/
|
|
27
|
+
extend google.protobuf.MessageOptions {
|
|
28
|
+
optional ActionPayload action_payload = 50600;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message ActionPayload {
|
|
32
|
+
optional string custom_slug = 1;
|
|
33
|
+
}
|