@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,287 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.hub.v1;
|
|
4
|
+
|
|
5
|
+
option java_package = "com.wixpress.hub.v1";
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/empty.proto";
|
|
8
|
+
import "google/protobuf/wrappers.proto";
|
|
9
|
+
import "google/api/annotations.proto";
|
|
10
|
+
import "wix/api/annotations.proto";
|
|
11
|
+
import "wix/api/entity.proto";
|
|
12
|
+
import "wix/api/subscription.proto";
|
|
13
|
+
import "wix/api/permissions.proto";
|
|
14
|
+
import "wix/api/validations.proto";
|
|
15
|
+
import "wix/sdk/definitions.proto";
|
|
16
|
+
import "wix/common/paging.proto";
|
|
17
|
+
import "wix/common/sorting.proto";
|
|
18
|
+
import "wix/common/query.proto";
|
|
19
|
+
|
|
20
|
+
import 'wix/hub/v1/job.proto';
|
|
21
|
+
import 'wix/hub/v1/common.proto';
|
|
22
|
+
import 'wix/hub/v1/shared.proto';
|
|
23
|
+
|
|
24
|
+
service DataMovementService {
|
|
25
|
+
option (.wix.api.service_entity).message = "wix.hub.v1.DataMovementJob";
|
|
26
|
+
option (.wix.api.service_maturity) = GA;
|
|
27
|
+
option (wix.api.service_exposure) = PUBLIC;
|
|
28
|
+
|
|
29
|
+
// Submit a data movement job.
|
|
30
|
+
//
|
|
31
|
+
// > **Note**: By default, the job is submitted for the current site.
|
|
32
|
+
rpc SubmitJob (SubmitJobRequest) returns (SubmitJobResponse) {
|
|
33
|
+
option (wix.api.maturity) = GA;
|
|
34
|
+
option (wix.api.exposure) = PUBLIC;
|
|
35
|
+
option (.google.api.http).post = "/v1/jobs";
|
|
36
|
+
option (.wix.api.permission).name = "WIX_DATA.DATA_JOB_SUBMIT";
|
|
37
|
+
|
|
38
|
+
option (.wix.sdk.signature) = {
|
|
39
|
+
params: "source"
|
|
40
|
+
params: "destination"
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
option (.wix.api.required) = "SubmitJobRequest.source";
|
|
44
|
+
option (.wix.api.required) = "SubmitJobRequest.source.source";
|
|
45
|
+
|
|
46
|
+
option (.wix.api.required) = "SubmitJobRequest.source.source.wix_data_collection.collection_id";
|
|
47
|
+
option (.wix.api.required) = "SubmitJobRequest.source.source.localization.languages";
|
|
48
|
+
option (.wix.api.required) = "SubmitJobRequest.source.source.file.file_id";
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
option (.wix.api.required) = "SubmitJobRequest.destination";
|
|
52
|
+
option (.wix.api.required) = "SubmitJobRequest.destination.destination";
|
|
53
|
+
option (.wix.api.required) = "SubmitJobRequest.destination.destination.wix_data_collection.collection_id";
|
|
54
|
+
option (.wix.api.required) = "SubmitJobRequest.destination.destination.localization.languages";
|
|
55
|
+
option (.wix.api.required) = "SubmitJobRequest.destination.destination.file.format";
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Creates an upload URL for a data source file.
|
|
59
|
+
//
|
|
60
|
+
// Before submitting a job to import data from a file to a collection, call this method to generate an upload URL. Use the `uploadUrl` in the response to upload your source file. For example:
|
|
61
|
+
//
|
|
62
|
+
// `curl --request PUT --upload-file "${path_to_file}" "${uploadUrl}"`
|
|
63
|
+
//
|
|
64
|
+
// > **Note**: The URL is valid for 15 minutes.
|
|
65
|
+
rpc CreateFileUploadUrl (CreateFileUploadUrlRequest) returns (CreateFileUploadUrlResponse) {
|
|
66
|
+
option (wix.api.maturity) = GA;
|
|
67
|
+
option (wix.api.exposure) = PUBLIC;
|
|
68
|
+
option (google.api.http) = {
|
|
69
|
+
post: "/v1/temporary-files/upload-url"
|
|
70
|
+
};
|
|
71
|
+
option (.wix.api.permission).name = "WIX_DATA.TMP_FILE_UPLOAD_CREATE";
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Retrieves the specified data movement job.
|
|
75
|
+
//
|
|
76
|
+
// > **Note**: You can only retrieve jobs submitted for the current site.
|
|
77
|
+
rpc GetJob (GetJobRequest) returns (GetJobResponse) {
|
|
78
|
+
option (wix.api.maturity) = GA;
|
|
79
|
+
option (wix.api.exposure) = PUBLIC;
|
|
80
|
+
option (.google.api.http).get = "/v1/jobs/{job_id}";
|
|
81
|
+
option (.wix.api.permission).name = "WIX_DATA.DATA_JOB_GET";
|
|
82
|
+
option (.wix.api.crud) = {
|
|
83
|
+
method: GET_ITEM
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Lists data movement jobs for the current site.
|
|
88
|
+
//
|
|
89
|
+
//The `listJobs()` method builds a query to retrieve a list of jobs for the current site, and returns a [`JobsQueryBuilder`](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/jobs-query-builder/ascending) object. The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/jobs-query-builder/find) method.
|
|
90
|
+
//
|
|
91
|
+
// You can refine the query by chaining `JobsQueryBuilder` methods onto the query. `JobsQueryBuilder` methods enable you to sort, filter, and control the results `listJobs()` returns.
|
|
92
|
+
//
|
|
93
|
+
// `listJobs()` runs with these `JobsQueryBuilder` defaults, which you can override:
|
|
94
|
+
//
|
|
95
|
+
// - [`skipTo`: `0`](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/jobs-query-builder/skip-to)
|
|
96
|
+
// - [`limit`: `50`](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/jobs-query-builder/limit)
|
|
97
|
+
// - [`ascending`: by `_id`](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/jobs-query-builder/ascending)
|
|
98
|
+
//
|
|
99
|
+
// The methods chained to `listJobs()` are applied in the order they're called. For example, if you apply `ascending('firstName')` and then `descending('age')`, the results are sorted first by firstName, and then, if there are multiple results with the same `firstName`, the items are sorted by `age`.
|
|
100
|
+
rpc ListJobs (ListJobsRequest) returns (ListJobsResponse) {
|
|
101
|
+
option (wix.api.maturity) = GA;
|
|
102
|
+
option (wix.api.exposure) = PUBLIC;
|
|
103
|
+
option (.google.api.http) = {
|
|
104
|
+
post: "/v1/jobs/list",
|
|
105
|
+
additional_bindings: {
|
|
106
|
+
get: "/v1/jobs"
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
option (.wix.api.permission).name = "WIX_DATA.DATA_JOB_LIST";
|
|
110
|
+
option (wix.api.crud) = {
|
|
111
|
+
method: LIST
|
|
112
|
+
list_options: {
|
|
113
|
+
items_field: 'jobs'
|
|
114
|
+
paging: {
|
|
115
|
+
type: CURSOR
|
|
116
|
+
cursor_paging_metadata_field: 'paging_metadata'
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Retrieves data movement jobs for the current site, on the basis of the filtering, sorting, and paging preferences you provide.
|
|
123
|
+
//
|
|
124
|
+
// Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging) configuration.
|
|
125
|
+
// flynt-disable crud-query-message-validation
|
|
126
|
+
rpc QueryJobs (QueryJobsRequest) returns (QueryJobsResponse) {
|
|
127
|
+
option (wix.api.maturity) = GA;
|
|
128
|
+
option (wix.api.exposure) = PUBLIC;
|
|
129
|
+
option (.google.api.http) = {
|
|
130
|
+
post: "/v1/jobs/query",
|
|
131
|
+
additional_bindings: {
|
|
132
|
+
get: "/v1/jobs/query"
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
option (.wix.api.permission).name = "WIX_DATA.DATA_JOB_LIST";
|
|
136
|
+
option (wix.api.crud) = {
|
|
137
|
+
method: QUERY
|
|
138
|
+
query_options: {
|
|
139
|
+
items_field: 'jobs'
|
|
140
|
+
paging: {
|
|
141
|
+
type: CURSOR
|
|
142
|
+
cursor_paging_metadata_field: 'paging_metadata'
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// Terminates the specified job.
|
|
149
|
+
rpc TerminateJob (TerminateJobRequest) returns (TerminateJobResponse) {
|
|
150
|
+
option (wix.api.maturity) = GA;
|
|
151
|
+
option (wix.api.exposure) = PUBLIC;
|
|
152
|
+
option (.google.api.http).post = "/v1/jobs/{job_id}/terminate";
|
|
153
|
+
option (.wix.api.permission).name = "WIX_DATA.DATA_JOB_TERMINATE";
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Lists logs for the specified job.
|
|
157
|
+
//
|
|
158
|
+
// Logs are generated by the destination for each item that failed to move. Some destinations also generate logs for items that moved successfully.
|
|
159
|
+
rpc ListMovementLogs (ListMovementLogsRequest) returns (ListMovementLogsResponse) {
|
|
160
|
+
option (wix.api.maturity) = GA;
|
|
161
|
+
option (wix.api.exposure) = PUBLIC;
|
|
162
|
+
option (.google.api.http).get = "/v1/jobs/{job_id}/logs";
|
|
163
|
+
option (.wix.api.permission).name = "WIX_DATA.DATA_JOB_LIST_LOGS";
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// --- private part ---
|
|
167
|
+
|
|
168
|
+
// Callback sent from job executor pod
|
|
169
|
+
rpc OnJobCallback (JobCallback) returns (google.protobuf.Empty) {
|
|
170
|
+
option (.wix.api.exposure) = INTERNAL;
|
|
171
|
+
option (.wix.api.subscription) = {
|
|
172
|
+
topic: "wix_hub_v1_job_callback"
|
|
173
|
+
segment: USERS
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Get job by ID without restricting current metaSiteId
|
|
178
|
+
rpc TerminateJobById (TerminateJobByIdRequest) returns (TerminateJobByIdResponse) {
|
|
179
|
+
option (.wix.api.exposure) = PRIVATE;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
message TerminateJobRequest {
|
|
185
|
+
// ID of the job to terminate.
|
|
186
|
+
string job_id = 1 [(wix.api.format) = GUID];
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
message TerminateJobResponse {
|
|
190
|
+
// Details of the terminated job.
|
|
191
|
+
DataMovementJob job = 1;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
message SubmitJobResponse {
|
|
195
|
+
// Details of the submitted job.
|
|
196
|
+
DataMovementJob job = 1;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
message GetJobRequest {
|
|
201
|
+
// Job ID.
|
|
202
|
+
string job_id = 1 [(wix.api.format) = GUID];
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
message GetJobResponse {
|
|
206
|
+
// Details of the retrieved job.
|
|
207
|
+
DataMovementJob job = 1;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
message ListJobsRequest {
|
|
211
|
+
// Paging metadata.
|
|
212
|
+
wix.common.CursorPaging paging = 1;
|
|
213
|
+
// Query preferences. Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
214
|
+
wix.common.QueryV2 query = 2 [
|
|
215
|
+
(wix.api.field_exposure) = INTERNAL,
|
|
216
|
+
deprecated = true,
|
|
217
|
+
(wix.api.field_deprecated) = {
|
|
218
|
+
target_removal_date: "2025-09-30"
|
|
219
|
+
}
|
|
220
|
+
];
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
message ListJobsResponse {
|
|
224
|
+
// List of jobs for the current site.
|
|
225
|
+
repeated DataMovementJob jobs = 1;
|
|
226
|
+
// Paging metadata.
|
|
227
|
+
wix.common.CursorPagingMetadata paging_metadata = 2;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
message GetJobByIdRequest {
|
|
231
|
+
// ID of the job to retrieve.
|
|
232
|
+
string job_id = 1 [(wix.api.format) = GUID];
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
message GetJobByIdResponse {
|
|
236
|
+
// Details of the retrieved job.
|
|
237
|
+
DataMovementJob job = 1;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
message QueryJobsRequest {
|
|
241
|
+
// Query preferences. Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
242
|
+
wix.common.CursorQuery query = 1;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
message QueryJobsResponse {
|
|
246
|
+
// List of jobs matching the query.
|
|
247
|
+
repeated DataMovementJob jobs = 1;
|
|
248
|
+
// Paging metadata.
|
|
249
|
+
wix.common.CursorPagingMetadata paging_metadata = 2;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
message TerminateJobByIdRequest {
|
|
253
|
+
// ID of the job to terminate.
|
|
254
|
+
string job_id = 1 [(wix.api.format) = GUID];
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
message TerminateJobByIdResponse {
|
|
258
|
+
// Details of the terminated job.
|
|
259
|
+
DataMovementJob job = 1;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
message ListMovementLogsRequest {
|
|
263
|
+
// ID of the job for which to list logs.
|
|
264
|
+
string job_id = 1 [(wix.api.format) = GUID];
|
|
265
|
+
// Paging metadata.
|
|
266
|
+
wix.common.CursorPaging paging = 2;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
message ListMovementLogsResponse {
|
|
270
|
+
// Job logs.
|
|
271
|
+
repeated MovementLog logs = 1;
|
|
272
|
+
// Paging metadata.
|
|
273
|
+
wix.common.CursorPagingMetadata paging_metadata = 2;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
message CreateFileUploadUrlRequest {
|
|
278
|
+
// Name of uploaded file.
|
|
279
|
+
google.protobuf.StringValue file_name = 2 [(wix.api.maxLength) = 512];
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
message CreateFileUploadUrlResponse {
|
|
283
|
+
// File ID.
|
|
284
|
+
string file_id = 1 [(.wix.api.maxLength) = 512];
|
|
285
|
+
// URL to which you can upload the file.
|
|
286
|
+
string upload_url = 2 [(.wix.api.maxLength) = 8192];
|
|
287
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
// flynt-disable no-oneof-empty-markers
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
|
|
4
|
+
package wix.hub.v1;
|
|
5
|
+
option java_package = "com.wixpress.hub.v1";
|
|
6
|
+
|
|
7
|
+
import 'wix/hub/v1/common.proto';
|
|
8
|
+
import 'wix/hub/v1/schema.proto';
|
|
9
|
+
import "google/protobuf/struct.proto";
|
|
10
|
+
import "google/protobuf/wrappers.proto";
|
|
11
|
+
import "wix/api/validations.proto";
|
|
12
|
+
import "wix/api/annotations.proto";
|
|
13
|
+
|
|
14
|
+
message Destination {
|
|
15
|
+
oneof destination {
|
|
16
|
+
// Wix data collection.
|
|
17
|
+
//
|
|
18
|
+
// You can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).
|
|
19
|
+
WixDataDestination wix_data_collection = 201;
|
|
20
|
+
// Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.
|
|
21
|
+
//
|
|
22
|
+
// Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).
|
|
23
|
+
LocalizationDestination localization = 202;
|
|
24
|
+
// Downloadable file with the moved items.
|
|
25
|
+
FileDestination file = 203;
|
|
26
|
+
// Stores Catalog V3 Products collection.
|
|
27
|
+
StoresCatalogProductsDestination stores_catalog_products = 204 [(wix.api.field_exposure) = INTERNAL, (wix.api.field_maturity) = ALPHA];
|
|
28
|
+
|
|
29
|
+
// Wix Media Manager destination.
|
|
30
|
+
//
|
|
31
|
+
// You can use the destination to import media from another site or from an external source.
|
|
32
|
+
// To import external media, item in the source should have these fields:
|
|
33
|
+
// * `url` - external HTTP(S) link to download the item
|
|
34
|
+
// * `displayName` - new name in the Media Manager
|
|
35
|
+
WixMediaDestination wix_media = 205 [(wix.api.field_exposure) = INTERNAL, (wix.api.field_maturity) = ALPHA];
|
|
36
|
+
// Target for creating new Wix data collections.
|
|
37
|
+
//
|
|
38
|
+
// Creates new empty collections on the target site (structure only, no data items). Each item describes structure of a single collection (e.g. fields, display names, and other information).
|
|
39
|
+
WixDataCollectionDefinitionDestination wix_data_collection_definition = 206 [(wix.api.field_exposure) = INTERNAL, (wix.api.field_maturity) = ALPHA];
|
|
40
|
+
// Stores Catalog V3 Inventory collection.
|
|
41
|
+
StoresCatalogInventoryDestination stores_catalog_inventory = 207 [(wix.api.field_exposure) = INTERNAL, (wix.api.field_maturity) = ALPHA];
|
|
42
|
+
|
|
43
|
+
// Test destination used for destinations in development. Once development is complete, specify a destination with a well-defined API.
|
|
44
|
+
TestDestination test = 106 [(wix.api.field_exposure) = INTERNAL, (wix.api.field_maturity) = ALPHA];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message TestDestination {
|
|
49
|
+
// Discriminator value for a particular test destination.
|
|
50
|
+
string type = 1 [(wix.api.maxLength) = 512];
|
|
51
|
+
// Test destination details.
|
|
52
|
+
google.protobuf.Struct details = 2;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Wix data collection.
|
|
56
|
+
message WixDataDestination {
|
|
57
|
+
enum WritePolicy {
|
|
58
|
+
// When an item with the same ID exists in the collection, overwrite it.
|
|
59
|
+
OVERWRITE = 0;
|
|
60
|
+
|
|
61
|
+
// When an item with the same ID exists in the collection, skip it.
|
|
62
|
+
SKIP_EXISTING = 1;
|
|
63
|
+
|
|
64
|
+
// Clear the destination collection before moving data. When the job completes, the collection contains only the moved data.
|
|
65
|
+
TRUNCATE_BEFORE = 2;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// ID of the destination collection.
|
|
69
|
+
string collection_id = 1 [(wix.api.maxLength) = 256];
|
|
70
|
+
|
|
71
|
+
// When items already exist in the destination collection, the data writing policy.
|
|
72
|
+
//
|
|
73
|
+
// Default: `OVERWRITE`.
|
|
74
|
+
WritePolicy write_policy = 2;
|
|
75
|
+
|
|
76
|
+
// [Collection environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing) to which to write data. Default: `LIVE`.
|
|
77
|
+
WixDataEnvironment environment = 3 [(wix.api.field_exposure) = INTERNAL];
|
|
78
|
+
|
|
79
|
+
// Grid App ID. Optional in a collection's LIVE environment.
|
|
80
|
+
google.protobuf.StringValue app_id = 4 [(wix.api.format) = GUID, (wix.api.field_exposure) = INTERNAL];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message LocalizationDestination {
|
|
84
|
+
// Translated CMS content in the specified languages. Content in these languages is imported from the source, with the first specified language treated as the main one.
|
|
85
|
+
//
|
|
86
|
+
// Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.
|
|
87
|
+
//
|
|
88
|
+
// Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).
|
|
89
|
+
repeated string languages = 1 [(wix.api.minSize) = 2, (wix.api.maxSize) = 64, (wix.api.format) = LANGUAGE_TAG];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
// Destination file. Creates a file and generates a download URL.
|
|
94
|
+
message FileDestination {
|
|
95
|
+
// File format.
|
|
96
|
+
FileFormat format = 1 ;
|
|
97
|
+
|
|
98
|
+
// File name.
|
|
99
|
+
google.protobuf.StringValue file_name = 2 [(wix.api.maxLength) = 512];
|
|
100
|
+
|
|
101
|
+
// File ID.
|
|
102
|
+
string file_id = 3 [(wix.api.readOnly) = true, (wix.api.maxLength) = 128, (wix.api.field_exposure) = INTERNAL];
|
|
103
|
+
|
|
104
|
+
// File download URL.
|
|
105
|
+
string url = 101 [(wix.api.readOnly) = true, (wix.api.maxLength) = 2048];
|
|
106
|
+
|
|
107
|
+
// Formatting schema for the destination file.
|
|
108
|
+
//
|
|
109
|
+
// When moving data to CSV files, use each field's `key` to specify the path of the data in the source item. Use each field's `display_name` property to set the header in the CSV file's first row.
|
|
110
|
+
//
|
|
111
|
+
// For example, a source item of the [type](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data) `Object` with the nested properties `data: {address: {city: cityName}}` can be mapped to the CSV file by specifying the field's `key` as `data.address.city` and its `display_name` as `City`.
|
|
112
|
+
//
|
|
113
|
+
// If the schema isn't set, the source file schema is used.
|
|
114
|
+
Schema schema = 4 [(wix.api.field_maturity) = ALPHA];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
message StoresCatalogProductsDestination {
|
|
118
|
+
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
message StoresCatalogInventoryDestination {
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Creates empty Wix data collections (no data items are inserted).
|
|
126
|
+
message WixDataCollectionDefinitionDestination {
|
|
127
|
+
// Policy for handling collections that already exist on the target site.
|
|
128
|
+
WritePolicy write_policy = 1;
|
|
129
|
+
|
|
130
|
+
enum WritePolicy {
|
|
131
|
+
// Only create new collections. Skip collections that already exist on the target site.
|
|
132
|
+
SKIP_EXISTING = 0;
|
|
133
|
+
// Create new collections and overwrite existing ones.
|
|
134
|
+
OVERWRITE = 1;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// Wix Media Manager destination.
|
|
139
|
+
message WixMediaDestination {
|
|
140
|
+
reserved 1;
|
|
141
|
+
// ID of the target folder in the Media Manager. If not specified, media is imported to the root folder.
|
|
142
|
+
google.protobuf.StringValue target_folder_id = 3 [(wix.api.maxLength) = 256];
|
|
143
|
+
|
|
144
|
+
// Policy for handling duplicate media items.
|
|
145
|
+
// Not currently supported.
|
|
146
|
+
WritePolicy write_policy = 2 [(wix.api.field_exposure) = INTERNAL];
|
|
147
|
+
|
|
148
|
+
enum WritePolicy {
|
|
149
|
+
// Overwrite existing media with the same name.
|
|
150
|
+
OVERWRITE = 0;
|
|
151
|
+
// Skip media that already exists.
|
|
152
|
+
SKIP_EXISTING = 1;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
//flynt-disable aligned-with-enum-empty-options
|
|
2
|
+
//flynt-disable missing-taggable-annotation
|
|
3
|
+
|
|
4
|
+
syntax = "proto3";
|
|
5
|
+
|
|
6
|
+
package wix.hub.v1;
|
|
7
|
+
|
|
8
|
+
option java_package = "com.wixpress.hub.v1";
|
|
9
|
+
|
|
10
|
+
import "wix/api/validations.proto";
|
|
11
|
+
import "wix/api/annotations.proto";
|
|
12
|
+
import "wix/api/entity.proto";
|
|
13
|
+
import "wix/api/errors.proto";
|
|
14
|
+
import "google/protobuf/timestamp.proto";
|
|
15
|
+
import "google/protobuf/wrappers.proto";
|
|
16
|
+
import "wix/common/data/dataextensions/extended-fields.proto";
|
|
17
|
+
|
|
18
|
+
import 'wix/hub/v1/sources.proto';
|
|
19
|
+
import 'wix/hub/v1/destinations.proto';
|
|
20
|
+
import 'wix/hub/v1/transformations.proto';
|
|
21
|
+
import 'wix/hub/v1/common.proto';
|
|
22
|
+
|
|
23
|
+
// Data movement job object.
|
|
24
|
+
message DataMovementJob {
|
|
25
|
+
option (wix.api.entity) = {
|
|
26
|
+
fqdn: "wix.hub.v1.job"
|
|
27
|
+
segment: USERS
|
|
28
|
+
extensible: {}
|
|
29
|
+
appendix_files: {
|
|
30
|
+
type: DOCS_CONF
|
|
31
|
+
path: "appendices/docs"
|
|
32
|
+
}
|
|
33
|
+
appendix_files: {
|
|
34
|
+
type: AUTO_SDK
|
|
35
|
+
path: "appendices/sdk"
|
|
36
|
+
}
|
|
37
|
+
domain_events_read_permission: "WIX_DATA.DATA_JOB_GET"
|
|
38
|
+
query_options: {
|
|
39
|
+
wql: {
|
|
40
|
+
pattern: {
|
|
41
|
+
operator: ALL_APPLICABLE_OPERATORS
|
|
42
|
+
field: "id",
|
|
43
|
+
field: "name",
|
|
44
|
+
field: "started_at",
|
|
45
|
+
field: "finished_at",
|
|
46
|
+
field: "status",
|
|
47
|
+
field: "schedule_id",
|
|
48
|
+
field: "workflow_id",
|
|
49
|
+
sort: BOTH
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// Triggered when a job is submitted.
|
|
56
|
+
option (wix.api.domain_event) = {
|
|
57
|
+
event_type: CREATED
|
|
58
|
+
exposure: PUBLIC
|
|
59
|
+
maturity: GA
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
// Triggered when a job's `status` updates.
|
|
63
|
+
option (wix.api.domain_event) = {
|
|
64
|
+
event_type: UPDATED
|
|
65
|
+
exposure: PUBLIC
|
|
66
|
+
maturity: GA
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// Triggered when a job is terminated.
|
|
70
|
+
option (wix.api.domain_event) = {
|
|
71
|
+
event_type: DELETED
|
|
72
|
+
exposure: PUBLIC
|
|
73
|
+
maturity: GA
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
// Job ID.
|
|
78
|
+
string id = 1 [(.wix.api.format) = GUID, (.wix.api.readOnly) = true];
|
|
79
|
+
|
|
80
|
+
// When the job was submitted.
|
|
81
|
+
google.protobuf.Timestamp started_at = 2 [(.wix.api.readOnly) = true];
|
|
82
|
+
|
|
83
|
+
// Current job status.
|
|
84
|
+
JobStatus status = 3 [(.wix.api.readOnly) = true];
|
|
85
|
+
|
|
86
|
+
// Source to move data from.
|
|
87
|
+
Source source = 4;
|
|
88
|
+
|
|
89
|
+
// Destination to move data to.
|
|
90
|
+
Destination destination = 5;
|
|
91
|
+
|
|
92
|
+
// Transformations to apply to the data before moving it to the destination.
|
|
93
|
+
repeated Transformation transformations = 6 [(wix.api.maxSize) = 32, (wix.api.field_exposure) = INTERNAL];
|
|
94
|
+
|
|
95
|
+
// Job name.
|
|
96
|
+
string name = 7 [(wix.api.maxLength) = 1024];
|
|
97
|
+
|
|
98
|
+
// When the job `status` is `IN_PROGRESS`, the progress details.
|
|
99
|
+
Progress progress = 21 [(.wix.api.readOnly) = true];
|
|
100
|
+
|
|
101
|
+
// Job finish time.
|
|
102
|
+
//
|
|
103
|
+
// A job is considered finished when its `status` updates to `COMPLETED`, `FAILED`, or `PARTIALLY_SUCCESSFUL`.
|
|
104
|
+
google.protobuf.Timestamp finished_at = 22 [(.wix.api.readOnly) = true];
|
|
105
|
+
|
|
106
|
+
// Error information.
|
|
107
|
+
wix.api.ApplicationError error = 24 [(.wix.api.readOnly) = true];
|
|
108
|
+
|
|
109
|
+
// Data center where the job started.
|
|
110
|
+
google.protobuf.StringValue data_center = 25 [(wix.api.readOnly) = true, (wix.api.field_exposure) = INTERNAL, (wix.api.maxLength) = 64];
|
|
111
|
+
|
|
112
|
+
// When moving data from a Wix data collection, the source site ID.
|
|
113
|
+
//
|
|
114
|
+
// By default, the source site is the current site. To move data from [any site in the same Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account), specify the site ID, which you can retrieve by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance).
|
|
115
|
+
//
|
|
116
|
+
// > **Note**: You can specify the ID of a source site or destination site, but not both.
|
|
117
|
+
string source_site_id = 26 [(wix.api.format) = GUID];
|
|
118
|
+
|
|
119
|
+
// When moving data to a Wix data collection, the destination site ID.
|
|
120
|
+
//
|
|
121
|
+
// By default, the destination site is the current site. To move data to [any site in the same Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account), specify the site ID, which you can retrieve by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance).
|
|
122
|
+
//
|
|
123
|
+
// > **Note**: You can specify the ID of a source site or destination site, but not both.
|
|
124
|
+
string destination_site_id = 27 [(wix.api.format) = GUID];
|
|
125
|
+
|
|
126
|
+
// Number of recorded logs.
|
|
127
|
+
int32 logs_recorded = 28;
|
|
128
|
+
|
|
129
|
+
oneof status_options {
|
|
130
|
+
option (wix.api.aligned_with_enum).field = "status";
|
|
131
|
+
|
|
132
|
+
// When the job's `status` is `PARTIALLY_SUCCESSFUL`, the additional details.
|
|
133
|
+
PartiallySuccessfulStatusOptions partially_successful_options = 29;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Sync Schedule ID, if the job was triggered by a sync schedule.
|
|
137
|
+
google.protobuf.StringValue schedule_id = 30 [(wix.api.format) = GUID, (wix.api.readOnly) = true];
|
|
138
|
+
|
|
139
|
+
// Extended fields for custom metadata added by applications.
|
|
140
|
+
wix.common.data.dataextensions.ExtendedFields extended_fields = 31;
|
|
141
|
+
|
|
142
|
+
// Workflow ID, if the job was created as a child step of a workflow.
|
|
143
|
+
google.protobuf.StringValue workflow_id = 32 [(wix.api.format) = GUID, (.wix.api.readOnly) = true];
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
enum JobStatus {
|
|
147
|
+
// Job was submitted but has not yet started.
|
|
148
|
+
UNINITIALIZED = 0;
|
|
149
|
+
// Job is initializing.
|
|
150
|
+
INITIALIZING = 1;
|
|
151
|
+
// Job is in progress.
|
|
152
|
+
IN_PROGRESS = 3;
|
|
153
|
+
// Job has successfully completed.
|
|
154
|
+
COMPLETED = 4;
|
|
155
|
+
// Job has failed.
|
|
156
|
+
FAILED = 5;
|
|
157
|
+
// Job has completed but was partially successful due to a destination limitation. See `PartiallySuccessfulOptions` for additional details.
|
|
158
|
+
PARTIALLY_SUCCESSFUL = 6;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message PartiallySuccessfulStatusOptions {
|
|
162
|
+
// Reason the job was partially successful.
|
|
163
|
+
string cause = 1 [(wix.api.maxLength) = 1000];
|
|
164
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.hub.v1;
|
|
4
|
+
|
|
5
|
+
option java_package = "com.wixpress.hub.v1";
|
|
6
|
+
|
|
7
|
+
import "wix/api/annotations.proto";
|
|
8
|
+
import "wix/api/validations.proto";
|
|
9
|
+
|
|
10
|
+
import "wix/hub/v1/destinations.proto";
|
|
11
|
+
import "wix/hub/v1/sources.proto";
|
|
12
|
+
import "wix/hub/v1/transformations.proto";
|
|
13
|
+
|
|
14
|
+
// Immutable specification for a single data movement step.
|
|
15
|
+
message JobSpec {
|
|
16
|
+
// Source to read data from.
|
|
17
|
+
Source source = 1;
|
|
18
|
+
// Destination to write data to.
|
|
19
|
+
Destination destination = 2;
|
|
20
|
+
// Transformations to apply before writing to the destination.
|
|
21
|
+
repeated Transformation transformations = 3 [(wix.api.maxSize) = 32, (wix.api.field_exposure) = INTERNAL];
|
|
22
|
+
|
|
23
|
+
oneof site_override {
|
|
24
|
+
/*
|
|
25
|
+
When moving data from the Wix data collection of a site other than the current site, the ID of the site to read from.
|
|
26
|
+
|
|
27
|
+
By default, the `source` site is the current site. However, you can move data from any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).
|
|
28
|
+
|
|
29
|
+
> **Note**: You can specify the ID of a `source` site or a `destination` site other than the current site, but not both.
|
|
30
|
+
*/
|
|
31
|
+
string source_site_id = 4 [(wix.api.format) = GUID];
|
|
32
|
+
/*
|
|
33
|
+
When moving data to the Wix data collection of a site other than the current site, the ID of the site to write to.
|
|
34
|
+
|
|
35
|
+
By default, the `destination` site is the current site. However, you can move data to any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).
|
|
36
|
+
|
|
37
|
+
> **Note**: You can specify the ID of a `destination` site or a `source` site other than the current site, but not both.
|
|
38
|
+
*/
|
|
39
|
+
string destination_site_id = 5 [(wix.api.format) = GUID];
|
|
40
|
+
}
|
|
41
|
+
}
|