@wix/bex-utils 2.108.0 → 2.110.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/@wix/ambassador-authorization-server/builders.d.ts +2542 -0
  2. package/@wix/ambassador-authorization-server/builders.js +10330 -0
  3. package/@wix/ambassador-authorization-server/builders.js.map +1 -0
  4. package/@wix/ambassador-authorization-server/export-erb.js +101 -0
  5. package/@wix/ambassador-authorization-server/http.d.ts +109 -0
  6. package/@wix/ambassador-authorization-server/http.js +394 -0
  7. package/@wix/ambassador-authorization-server/http.js.map +1 -0
  8. package/@wix/ambassador-authorization-server/index.js +1 -0
  9. package/@wix/ambassador-authorization-server/package.json +30 -0
  10. package/@wix/ambassador-authorization-server/rpc.d.ts +252 -0
  11. package/@wix/ambassador-authorization-server/rpc.js +820 -0
  12. package/@wix/ambassador-authorization-server/rpc.js.map +1 -0
  13. package/@wix/ambassador-authorization-server/src/builders.ts +10663 -0
  14. package/@wix/ambassador-authorization-server/src/http.ts +666 -0
  15. package/@wix/ambassador-authorization-server/src/rpc.ts +1111 -0
  16. package/@wix/ambassador-authorization-server/src/types.ts +1616 -0
  17. package/@wix/ambassador-authorization-server/types.d.ts +1294 -0
  18. package/@wix/ambassador-authorization-server/types.js +62 -0
  19. package/@wix/ambassador-authorization-server/types.js.map +1 -0
  20. package/@wix/ambassador-data-v1-external-database-connection/README.md +34 -0
  21. package/@wix/ambassador-data-v1-external-database-connection/builders/package.json +7 -0
  22. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/builders.impl.d.ts +32 -0
  23. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/builders.impl.js +363 -0
  24. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/builders.impl.js.map +1 -0
  25. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/http.impl.d.ts +1 -0
  26. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/http.impl.js +5 -0
  27. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/http.impl.js.map +1 -0
  28. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/rpc.impl.d.ts +11 -0
  29. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/rpc.impl.js +41 -0
  30. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/rpc.impl.js.map +1 -0
  31. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/http.impl.d.ts +24 -0
  32. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/http.impl.js +530 -0
  33. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/http.impl.js.map +1 -0
  34. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/meta.impl.d.ts +22 -0
  35. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/meta.impl.js +136 -0
  36. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/meta.impl.js.map +1 -0
  37. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/client/proto-generated.d.ts +7218 -0
  38. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/client/proto-generated.js +2 -0
  39. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/proto-generated.d.ts +3606 -0
  40. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/proto-generated.js +1 -0
  41. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/server/proto-generated.d.ts +7207 -0
  42. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/server/proto-generated.js +2 -0
  43. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/rpc.impl.d.ts +33 -0
  44. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/rpc.impl.js +121 -0
  45. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/rpc.impl.js.map +1 -0
  46. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/types.impl.d.ts +424 -0
  47. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/types.impl.js +97 -0
  48. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/types.impl.js.map +1 -0
  49. package/@wix/ambassador-data-v1-external-database-connection/cjs/package.json +3 -0
  50. package/@wix/ambassador-data-v1-external-database-connection/crud/http/package.json +7 -0
  51. package/@wix/ambassador-data-v1-external-database-connection/crud/rpc/package.json +6 -0
  52. package/@wix/ambassador-data-v1-external-database-connection/es/build/builders.impl.d.ts +32 -0
  53. package/@wix/ambassador-data-v1-external-database-connection/es/build/builders.impl.js +314 -0
  54. package/@wix/ambassador-data-v1-external-database-connection/es/build/builders.impl.js.map +1 -0
  55. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/http.impl.d.ts +1 -0
  56. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/http.impl.js +2 -0
  57. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/http.impl.js.map +1 -0
  58. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/rpc.impl.d.ts +11 -0
  59. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/rpc.impl.js +34 -0
  60. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/rpc.impl.js.map +1 -0
  61. package/@wix/ambassador-data-v1-external-database-connection/es/build/http.impl.d.ts +24 -0
  62. package/@wix/ambassador-data-v1-external-database-connection/es/build/http.impl.js +523 -0
  63. package/@wix/ambassador-data-v1-external-database-connection/es/build/http.impl.js.map +1 -0
  64. package/@wix/ambassador-data-v1-external-database-connection/es/build/meta.impl.d.ts +22 -0
  65. package/@wix/ambassador-data-v1-external-database-connection/es/build/meta.impl.js +96 -0
  66. package/@wix/ambassador-data-v1-external-database-connection/es/build/meta.impl.js.map +1 -0
  67. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/client/proto-generated.d.ts +7218 -0
  68. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/client/proto-generated.js +5 -0
  69. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/proto-generated.d.ts +3606 -0
  70. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/proto-generated.js +1 -0
  71. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/server/proto-generated.d.ts +7207 -0
  72. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/server/proto-generated.js +5 -0
  73. package/@wix/ambassador-data-v1-external-database-connection/es/build/rpc.impl.d.ts +33 -0
  74. package/@wix/ambassador-data-v1-external-database-connection/es/build/rpc.impl.js +81 -0
  75. package/@wix/ambassador-data-v1-external-database-connection/es/build/rpc.impl.js.map +1 -0
  76. package/@wix/ambassador-data-v1-external-database-connection/es/build/types.impl.d.ts +424 -0
  77. package/@wix/ambassador-data-v1-external-database-connection/es/build/types.impl.js +94 -0
  78. package/@wix/ambassador-data-v1-external-database-connection/es/build/types.impl.js.map +1 -0
  79. package/@wix/ambassador-data-v1-external-database-connection/http/package.json +7 -0
  80. package/@wix/ambassador-data-v1-external-database-connection/meta/package.json +7 -0
  81. package/@wix/ambassador-data-v1-external-database-connection/package.json +108 -0
  82. package/@wix/ambassador-data-v1-external-database-connection/rpc/package.json +6 -0
  83. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/cloud/data/api/common.proto +63 -0
  84. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/cloud/data/api/externaldatabase/external-database-connection-service.proto +305 -0
  85. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/cloud/data/api/externaldatabase/upstream/externaldatabase/wix/common/paging.proto +112 -0
  86. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/iptf/webhooks/debug.proto +34 -0
  87. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/iptf/webhooks/kv.proto +42 -0
  88. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/iptf/webhooks/message_envelope.proto +54 -0
  89. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/webhooks_debug_service.proto +32 -0
  90. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/webhooks_sync_service.proto +33 -0
  91. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/action_payload.proto +33 -0
  92. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/annotations.proto +559 -0
  93. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/api_errors.proto +142 -0
  94. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/callback.proto +173 -0
  95. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/context.proto +19 -0
  96. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/entity.proto +133 -0
  97. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/errors.proto +127 -0
  98. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/idempotency.proto +25 -0
  99. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/permissions.proto +46 -0
  100. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/sla.proto +24 -0
  101. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/subscription.proto +32 -0
  102. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/validations.proto +147 -0
  103. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/address.proto +148 -0
  104. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/bulk.proto +53 -0
  105. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/domainevents/attributeupdated.proto +20 -0
  106. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/domainevents/domainevents.proto +112 -0
  107. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/identification.proto +40 -0
  108. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/image.proto +8 -0
  109. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/media.proto +280 -0
  110. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/money.proto +32 -0
  111. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/pageurl.proto +32 -0
  112. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/paging.proto +121 -0
  113. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/sorting.proto +36 -0
  114. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/spi.proto +85 -0
  115. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/tags.proto +55 -0
  116. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/wixlink.proto +203 -0
  117. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/graphql/definitions.proto +13 -0
  118. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/http/field_mask.proto +46 -0
  119. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/sdk/definitions.proto +191 -0
  120. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/spi/definitions.proto +188 -0
  121. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/spi/http_error_status.proto +24 -0
  122. package/@wix/ambassador-data-v1-external-database-connection/types/package.json +7 -0
  123. package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +8 -0
  124. package/@wix/bex-bundled-mini-essentials/package.json +1 -1
  125. package/package.json +8 -5
@@ -0,0 +1,108 @@
1
+ {
2
+ "name": "@wix/ambassador-data-v1-external-database-connection",
3
+ "version": "1.0.133",
4
+ "publishConfig": {
5
+ "registry": "https://npm-cache.dev.wixpress.com/",
6
+ "access": "restricted"
7
+ },
8
+ "type": "module",
9
+ "files": [
10
+ "cjs",
11
+ "es/build",
12
+ "http",
13
+ "rpc",
14
+ "builders",
15
+ "types",
16
+ "validators",
17
+ "meta",
18
+ "crud/**/package.json",
19
+ "src/main/proto"
20
+ ],
21
+ "sideEffects": false,
22
+ "exports": {
23
+ "./package.json": "./package.json",
24
+ "./http": {
25
+ "types": "./cjs/build/http.impl.d.ts",
26
+ "require": "./cjs/build/http.impl.js",
27
+ "import": "./es/build/http.impl.js"
28
+ },
29
+ "./rpc": {
30
+ "types": "./cjs/build/rpc.impl.d.ts",
31
+ "require": "./cjs/build/rpc.impl.js",
32
+ "import": "./es/build/rpc.impl.js"
33
+ },
34
+ "./builders": {
35
+ "types": "./cjs/build/builders.impl.d.ts",
36
+ "require": "./cjs/build/builders.impl.js",
37
+ "import": "./es/build/builders.impl.js"
38
+ },
39
+ "./types": {
40
+ "types": "./cjs/build/types.impl.d.ts",
41
+ "require": "./cjs/build/types.impl.js",
42
+ "import": "./es/build/types.impl.js"
43
+ },
44
+ "./validators": {
45
+ "types": "./cjs/build/validators.impl.d.ts",
46
+ "require": "./cjs/build/validators.impl.js",
47
+ "import": "./es/build/validators.impl.js"
48
+ },
49
+ "./meta": {
50
+ "types": "./cjs/build/meta.impl.d.ts",
51
+ "require": "./cjs/build/meta.impl.js",
52
+ "import": "./es/build/meta.impl.js"
53
+ },
54
+ "./crud/rpc": {
55
+ "types": "./cjs/build/crud/rpc.impl.d.ts",
56
+ "require": "./cjs/build/crud/rpc.impl.js",
57
+ "import": "./es/build/crud/rpc.impl.js"
58
+ },
59
+ "./crud/http": {
60
+ "types": "./cjs/build/crud/http.impl.d.ts",
61
+ "require": "./cjs/build/crud/http.impl.js",
62
+ "import": "./es/build/crud/http.impl.js"
63
+ }
64
+ },
65
+ "scripts": {
66
+ "build": "yarn generate && yarn proto:clean && yarn build:cjs && yarn build:esm",
67
+ "build:clean": "rm -rf ./cjs/build ./es/build",
68
+ "build:cjs": "yarn proto:cjs && yarn tsc:cjs && cp -r ./proto ./cjs/build/proto",
69
+ "build:esm": "yarn proto:esm && yarn tsc:esm && cp -r ./proto ./es/build/proto",
70
+ "proto:clean": "rm -rf ./proto",
71
+ "proto:gen": "wix-proto-codegen --module . --dir proto --stringEnums --tsClasses --stringLongs",
72
+ "proto:cjs": "yarn proto:gen",
73
+ "proto:esm": "yarn proto:gen --esm",
74
+ "tsc:cjs": "tsc -p tsconfig.json",
75
+ "tsc:esm": "tsc -p tsconfig.esm.json",
76
+ "test": ":",
77
+ "generate": "YARN_ENABLE_SCRIPTS=false yarn dlx @wix/metro-ambassador-cli@$(jq -r '.cliVersion' manifest.json) --manifest ./manifest.json --entity ./entity.json --output . --proto-dir ./src/main/proto --data-mapper ./data-mapper.json"
78
+ },
79
+ "dependencies": {
80
+ "@wix/auto-crud": "^1.0.0",
81
+ "@wix/http-client": "^1.0.0",
82
+ "@wix/metro-common-builders": "^1.0.1763",
83
+ "@wix/metro-runtime": "^1.2116.0",
84
+ "callsite": "^1.0.0",
85
+ "joi": "^17.0.0"
86
+ },
87
+ "devDependencies": {
88
+ "@types/callsite": "^1.0.0",
89
+ "@wix/wix-proto-codegen": "^2.0.1176",
90
+ "typescript": "~5.9.3"
91
+ },
92
+ "wix": {
93
+ "artifact": {
94
+ "artifactId": "data-v1-external-database-connection",
95
+ "groupId": "com.wixpress.metro-packages"
96
+ },
97
+ "ambassador": {
98
+ "fqdn": "wix.data.v1.external_database_connection",
99
+ "protoArtifactId": "com.wixpress.cloud:external-database-connection-api"
100
+ }
101
+ },
102
+ "falconPackageHash": "c06056f03c04d640028aca73e17e9c1557cfce194d783555acc4668d",
103
+ "repository": {
104
+ "type": "git",
105
+ "url": "https://github.com/wix-private/metro-packages.git",
106
+ "directory": "packages/ambassador/data-v1-external-database-connection"
107
+ }
108
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "private": true,
3
+ "main": "../cjs/build/rpc.impl.js",
4
+ "types": "../cjs/build/rpc.impl.d.ts",
5
+ "sideEffects": false
6
+ }
@@ -0,0 +1,63 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wixpress.cloud.data.api;
4
+
5
+ import "wix/api/annotations.proto";
6
+
7
+ enum Environment {
8
+ // Place holder. Never returned by the service.
9
+ UNKNOWN_ENVIRONMENT = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
10
+ // Collection [sandbox environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#sandbox-collections).
11
+ SANDBOX = 1;
12
+ // If the [collection's sandbox environment is enabled](https://support.wix.com/en/article/cms-accessing-and-syncing-your-sandbox-and-live-collections#enabling-sandbox-collections), run the task in the collection's sandbox environment. If not, run the task in the collection's live environment.
13
+ SANDBOX_PREFERRED = 2;
14
+ // Collection [live environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#live-collections).
15
+ LIVE = 3;
16
+ }
17
+
18
+ enum FieldType {
19
+ UNKNOWN_FIELD_TYPE = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
20
+ TEXT = 1;
21
+ NUMBER = 2;
22
+ DATE = 3;
23
+ DATETIME = 4;
24
+ IMAGE = 5;
25
+ BOOLEAN = 6;
26
+ DOCUMENT = 7;
27
+ URL = 8;
28
+ RICH_TEXT = 9;
29
+ VIDEO = 10;
30
+ ANY = 11;
31
+ ARRAY_STRING = 12;
32
+ ARRAY_DOCUMENT = 13;
33
+ AUDIO = 14;
34
+ TIME = 15;
35
+ LANGUAGE = 16;
36
+ RICH_CONTENT = 17;
37
+ MEDIA_GALLERY = 18;
38
+ ADDRESS = 19;
39
+ PAGE_LINK = 20;
40
+ REFERENCE = 21;
41
+ MULTI_REFERENCE = 22;
42
+ OBJECT = 23;
43
+ ARRAY = 24;
44
+ // Deprecated - can’t be added to collections. Can only appear in older collections.
45
+ LEGACY_TIME = 25;
46
+ // Deprecated - can’t be added to collections. Can only appear in older collections.
47
+ LEGACY_BOOK = 26;
48
+ // Deprecated - can’t be added to collections. Can only appear in older collections.
49
+ LEGACY_EXTERNAL_URL = 27;
50
+ // Deprecated - can’t be added to collections. Can only appear in older collections.
51
+ LEGACY_BROKEN_REFERENCE = 28;
52
+ // Deprecated - can’t be added to collections. Can only appear in older collections.
53
+ LEGACY_IMAGE = 29;
54
+ // Deprecated - can’t be added to collections. Can only appear in older collections.
55
+ LEGACY_COLOR = 30;
56
+ // Deprecated - can’t be added to collections. Can only appear in older collections.
57
+ LEGACY_EXTERNAL_VIDEO = 31;
58
+ SLUG = 32 [(.wix.api.enum_maturity) = ALPHA, (.wix.api.enum_exposure) = INTERNAL];
59
+ EMAIL = 33 [(.wix.api.enum_maturity) = ALPHA];
60
+ SECURED_MEDIA = 34 [(.wix.api.enum_maturity) = ALPHA];
61
+ MEDIA_IMAGE = 35 [(.wix.api.enum_maturity) = ALPHA];
62
+ MEDIA_VECTOR_ART = 36 [(.wix.api.enum_maturity) = ALPHA];
63
+ }
@@ -0,0 +1,305 @@
1
+ //flynt-disable missing-autovelo-def
2
+ //flynt-disable required-annotation-breaking-change
3
+ //flynt-disable http-mapping-breaking-change
4
+ //flynt-disable missing-taggable-annotation
5
+ //flynt-disable update-missing-inferred-fieldmask
6
+ //flynt-disable missing-entity-id-field
7
+ //flynt-disable update-must-support-http-patch
8
+
9
+ syntax = "proto3";
10
+
11
+ package com.wixpress.cloud.data.api.externaldatabase;
12
+
13
+ import "google/protobuf/empty.proto";
14
+ import "google/api/annotations.proto";
15
+ import "google/protobuf/struct.proto";
16
+ import "google/protobuf/wrappers.proto";
17
+ import "wix/api/annotations.proto";
18
+ import "wix/api/callback.proto";
19
+ import "wix/api/entity.proto";
20
+ import "wix/api/permissions.proto";
21
+ import "wix/api/validations.proto";
22
+ import "wix/sdk/definitions.proto";
23
+ import "com/wixpress/cloud/data/api/common.proto";
24
+ import "com/wixpress/cloud/data/api/externaldatabase/upstream/externaldatabase/wix/common/paging.proto";
25
+
26
+ // Manage external database connections.
27
+ service ExternalDatabaseConnectionService {
28
+ option (wix.api.service_entity).message = "com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnection";
29
+ option (wix.api.service_exposure) = PUBLIC;
30
+ option (wix.api.service_maturity) = GA;
31
+
32
+ // Retrieves the specified external database connection.
33
+ rpc GetExternalDatabaseConnection (GetExternalDatabaseConnectionRequest) returns (GetExternalDatabaseConnectionResponse) {
34
+ option (wix.api.required) = "GetExternalDatabaseConnectionRequest.name";
35
+ option (wix.api.permission).name = "WIX_DATA.GET_EXTERNAL_DATABASE_CONNECTION";
36
+ option (google.api.http).get = "/v1/external-database-connections/{name=**}";
37
+
38
+ option (wix.api.crud) = {
39
+ method: GET_ITEM
40
+ get_options: {
41
+ id_field: "name",
42
+ item_field: "external_database_connection"
43
+ }
44
+ };
45
+ }
46
+
47
+ // Lists all of the site's external database connections of all adaptor types.
48
+ rpc ListExternalDatabaseConnections (ListExternalDatabaseConnectionsRequest) returns (ListExternalDatabaseConnectionsResponse) {
49
+ option (wix.api.permission).name = "WIX_DATA.LIST_EXTERNAL_DATABASE_CONNECTIONS";
50
+ option (google.api.http).get = "/v1/external-database-connections";
51
+ }
52
+
53
+ // Creates a new external database connection.
54
+ //
55
+ // Before you can establish a connection between a site and an external database, you must prepare an external database adaptor.
56
+ rpc CreateExternalDatabaseConnection (CreateExternalDatabaseConnectionRequest) returns (CreateExternalDatabaseConnectionResponse) {
57
+ option (wix.api.required) = "CreateExternalDatabaseConnectionRequest.external_database_connection";
58
+ option (wix.api.writable) = "CreateExternalDatabaseConnectionRequest.external_database_connection.name";
59
+ option (wix.api.required) = "CreateExternalDatabaseConnectionRequest.external_database_connection.name";
60
+ option (wix.api.required) = "CreateExternalDatabaseConnectionRequest.connection_type";
61
+ option (wix.api.permission).name = "WIX_DATA.CREATE_EXTERNAL_DATABASE_CONNECTION";
62
+ option (google.api.http).post = "/v1/external-database-connections";
63
+ option (.wix.sdk.signature) = {
64
+ params: "external_database_connection",
65
+ params: "connection_type"
66
+ };
67
+
68
+ // Triggered when an external database connection is created.
69
+ option (wix.api.emits) = {
70
+ event_type: CREATED,
71
+ };
72
+
73
+ option (wix.api.crud) = {
74
+ method: CREATE
75
+ create_options: {
76
+ item_field: "external_database_connection"
77
+ }
78
+ };
79
+ }
80
+
81
+ // Updates an external database connection.
82
+ //
83
+ // > **Note:** After an external database connection is updated, it only contains the values provided in the request. All previous values are lost.
84
+ rpc UpdateExternalDatabaseConnection (UpdateExternalDatabaseConnectionRequest) returns (UpdateExternalDatabaseConnectionResponse) {
85
+ option (wix.api.required) = "UpdateExternalDatabaseConnectionRequest.external_database_connection";
86
+ option (wix.api.required) = "UpdateExternalDatabaseConnectionRequest.external_database_connection.name";
87
+ option (wix.api.permission).name = "WIX_DATA.UPDATE_EXTERNAL_DATABASE_CONNECTION";
88
+ option (google.api.http).put = "/v1/external-database-connections/{externalDatabaseConnection.name=**}";
89
+
90
+ // Triggered when an external database connection is updated.
91
+ option (wix.api.emits) = {
92
+ event_type: UPDATED
93
+ };
94
+
95
+ option (wix.api.crud) = {
96
+ method: UPDATE
97
+ update_options: {
98
+ item_field: "external_database_connection"
99
+ }
100
+ };
101
+ }
102
+
103
+ // Deletes an external database connection.
104
+ //
105
+ // > **Note:** Once an external database connection is deleted, it can't be restored. To reconnect the database, create a new external database connection.
106
+ rpc DeleteExternalDatabaseConnection (DeleteExternalDatabaseConnectionRequest) returns (DeleteExternalDatabaseConnectionResponse) {
107
+ option (wix.api.required) = "DeleteExternalDatabaseConnectionRequest.name";
108
+ option (wix.api.permission).name = "WIX_DATA.DELETE_EXTERNAL_DATABASE_CONNECTION";
109
+ option (google.api.http).delete = "/v1/external-database-connections/{name=**}";
110
+
111
+ // Triggered when an external database connection is deleted.
112
+ option (wix.api.emits) = {
113
+ event_type: DELETED
114
+ };
115
+
116
+ option (wix.api.crud) = {
117
+ method: DELETE
118
+ delete_options: {
119
+ id_field: "name"
120
+ }
121
+ };
122
+ }
123
+ }
124
+
125
+ // An external database connection defines a connection between an external database and a Wix site.
126
+ message ExternalDatabaseConnection {
127
+ option (.wix.api.entity) = {
128
+ fqdn: "wix.data.v1.external_database_connection",
129
+ app_def_id: "e593b0bd-b783-45b8-97c2-873d42aacaf4",
130
+ segment: USERS,
131
+ appendix_files: {
132
+ type: AUTO_VELO
133
+ path: "appendices/velo"
134
+ },
135
+ appendix_files: {
136
+ type: DOCS_CONF
137
+ path: "appendices/docs"
138
+ },
139
+ domain_events_read_permission: "WIX_DATA.GET_EXTERNAL_DATABASE_CONNECTION"
140
+ };
141
+
142
+ // Triggered when an external database connection is created.
143
+ option (.wix.api.domain_event) = {
144
+ event_type: CREATED
145
+ exposure: PUBLIC
146
+ };
147
+
148
+ // Triggered when an external database connection is updated.
149
+ option (.wix.api.domain_event) = {
150
+ event_type: UPDATED
151
+ exposure: PUBLIC
152
+ };
153
+
154
+ // Triggered when an external database connection is deleted.
155
+ option (.wix.api.domain_event) = {
156
+ event_type: DELETED
157
+ exposure: PUBLIC
158
+ };
159
+
160
+ message ConnectionStatus {
161
+ enum CauseOfFailure {
162
+ // No connection failure.
163
+ NONE = 0;
164
+
165
+ // General communication failure.
166
+ COMMUNICATION_FAILURE = 1;
167
+
168
+ // External database host is unreachable.
169
+ DESTINATION_HOST_UNREACHABLE = 2;
170
+
171
+ // Unauthorized to access the external database.
172
+ UNAUTHORIZED = 3;
173
+
174
+ // `endpoint` is not set.
175
+ DESTINATION_ENDPOINT_NOT_DEFINED = 4;
176
+ }
177
+ enum CollectionsFound {
178
+ // Attempt to connect to the external database failed, so status is unknown.
179
+ UNKNOWN = 0;
180
+ // External database has collections.
181
+ YES = 1;
182
+ // External database does not have any collections.
183
+ NO = 2;
184
+ }
185
+
186
+ // Whether the connection was established successfully.
187
+ bool successful = 1;
188
+
189
+ // Whether and why the connection attempt failed.
190
+ CauseOfFailure cause_of_failure = 2;
191
+
192
+ // Whether the external database has collections.
193
+ CollectionsFound has_collections = 3 [(.wix.api.readOnly) = true];
194
+ };
195
+ message Capabilities {
196
+ // Whether the external database supports creating new collections, updating the structure of existing collections, or deleting them.
197
+ bool collection_modifications_supported = 1;
198
+ // Field types the external database supports. Applies only when `collectionModificationsSupported` is set to `true`.
199
+ repeated FieldType field_types = 2 [(.wix.api.maxSize) = 255];
200
+ }
201
+
202
+ // Name of the external database connection.
203
+ //
204
+ // An external database connection can connect to one or more external data collections or tables. These appear as `connectionName/dataCollectionId`.
205
+ string name = 1 [(.wix.api.immutable) = true, (wix.api.minLength) = 1, (wix.api.maxLength) = 255];
206
+
207
+ // Base URL for accessing and managing data in the external database. For example: `https://example.com/my-external-database`.
208
+ // Required for STANDALONE connection type.
209
+ google.protobuf.StringValue endpoint = 2 [(wix.api.format) = WEB_URL];
210
+
211
+ // Settings specified to the external database connection as part of each request.
212
+ //
213
+ // These settings can relate to authentication, tenancy, or provide any other information necessary for processing a request. Their content and structure depend on the specific requirements of the external database's API.
214
+ google.protobuf.Struct configuration = 3;
215
+
216
+ // Status of the external database connection. Includes whether the connection was established successfully, and if not, the reason for the failure.
217
+ ConnectionStatus connection_status = 4 [(.wix.api.readOnly) = true];
218
+
219
+ // Protocol version of the external database connection.
220
+ ProtocolVersion protocol_version = 5 [(.wix.api.readOnly) = true, (wix.api.field_exposure) = INTERNAL];
221
+
222
+ // Public key used to validate requests to the external database.
223
+ google.protobuf.StringValue public_key = 6 [(.wix.api.readOnly) = true, (.wix.api.maxLength) = 128];
224
+
225
+ // Capabilities of the external database.
226
+ Capabilities capabilities = 7 [(.wix.api.readOnly) = true];
227
+
228
+ // ID of the app used to integrate this external database.
229
+ google.protobuf.StringValue application_id = 8 [(.wix.api.readOnly) = true, (.wix.api.maxLength) = 128, (wix.api.field_exposure) = INTERNAL];
230
+
231
+ enum ProtocolVersion {
232
+ UNKNOWN_PROTOCOL_VERSION = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
233
+ V1 = 1;
234
+ V2 = 2;
235
+ V3 = 3;
236
+ }
237
+ }
238
+
239
+
240
+ message GetExternalDatabaseConnectionRequest {
241
+ // Name of the external database connection to retrieve.
242
+ string name = 1 [(.wix.api.maxLength) = 255];
243
+ }
244
+
245
+ message GetExternalDatabaseConnectionResponse {
246
+ // Details of the retrieved external database connection.
247
+ ExternalDatabaseConnection external_database_connection = 1;
248
+ }
249
+
250
+ message ListExternalDatabaseConnectionsRequest {
251
+ // Paging metadata.
252
+ upstream.externaldatabase.wix.common.Paging paging = 1;
253
+ }
254
+
255
+ message ListExternalDatabaseConnectionsResponse {
256
+ // List of external database connections.
257
+ repeated ExternalDatabaseConnection external_database_connections = 1;
258
+
259
+ // Paging metadata.
260
+ upstream.externaldatabase.wix.common.PagingMetadata paging_metadata = 2;
261
+ }
262
+
263
+ message CreateExternalDatabaseConnectionRequest {
264
+ // External database connection details.
265
+ ExternalDatabaseConnection external_database_connection = 1;
266
+
267
+ // Connection type. The connection type specifies the type of adaptor by which the external collection is integrated with the site.
268
+ ConnectionType connection_type = 2;
269
+
270
+ // Whether the database is managed by Wix.
271
+ bool database_managed_by_wix = 3 [(wix.api.field_exposure) = PRIVATE];
272
+ }
273
+
274
+ enum ConnectionType {
275
+ // Unknown connection type.
276
+ UNKNOWN_CONNECTION_TYPE = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
277
+ // External database connection based on the legacy [external database collection service plugin](https://dev.wix.com/docs/velo/api-reference/wix-data-v2/service-plugins-spis/external-database-collection-legacy/introduction).
278
+ STANDALONE = 1;
279
+ // External database connection based on the [external database service plugin](https://dev.wix.com/docs/rest/business-solutions/cms/service-plugins/external-database-service-plugin/introduction).
280
+ WIX_SERVICE_PLUGIN = 2;
281
+ }
282
+
283
+ message CreateExternalDatabaseConnectionResponse {
284
+ // Details of the created external database connection.
285
+ ExternalDatabaseConnection external_database_connection = 1;
286
+ }
287
+
288
+ message UpdateExternalDatabaseConnectionRequest {
289
+ // Updated external database connection. The existing connection is replaced with this version.
290
+ ExternalDatabaseConnection external_database_connection = 2;
291
+ }
292
+
293
+ message UpdateExternalDatabaseConnectionResponse {
294
+ // Details of the updated external database connection.
295
+ ExternalDatabaseConnection external_database_connection = 1;
296
+ }
297
+
298
+ message DeleteExternalDatabaseConnectionRequest {
299
+ // Name of the external database connection to delete.
300
+ string name = 1 [(.wix.api.maxLength) = 255];
301
+ }
302
+
303
+ message DeleteExternalDatabaseConnectionResponse {
304
+
305
+ }
@@ -0,0 +1,112 @@
1
+ syntax = "proto3";
2
+
3
+ package upstream.externaldatabase.wix.common;
4
+
5
+ import "google/protobuf/wrappers.proto";
6
+ import "wix/api/annotations.proto";
7
+ import "wix/api/validations.proto";
8
+
9
+ option java_multiple_files = true;
10
+ option java_package = "com.upstream.externaldatabase.wix.common";
11
+
12
+ message Paging {
13
+ option (.wix.api.decomposite_of) = "wix.common.Paging";
14
+ option (.wix.api.decomposition_minimum_fields) = {
15
+ field: "limit"
16
+ field: "offset"
17
+ };
18
+ // Number of items to load.
19
+ google.protobuf.Int32Value limit = 1 [(.wix.api.min) = 0];
20
+ // Number of items to skip in the current sort order.
21
+ google.protobuf.Int32Value offset = 2 [(.wix.api.min) = 0];
22
+ }
23
+
24
+ message CursorPaging {
25
+ option (.wix.api.decomposite_of) = "wix.common.CursorPaging";
26
+ option (.wix.api.decomposition_minimum_fields) = {
27
+ field: "limit"
28
+ field: "cursor"
29
+ };
30
+ // Number of items to load.
31
+ google.protobuf.Int32Value limit = 1 [(.wix.api.min) = 0, (.wix.api.max) = 100];
32
+ /*
33
+ Pointer to the next or previous page in the list of results.
34
+
35
+ You can get the relevant cursor token
36
+ from the `pagingMetadata` object in the previous call's response.
37
+ Not relevant for the first request.
38
+ */
39
+ google.protobuf.StringValue cursor = 2 [(.wix.api.maxLength) = 16000];
40
+ }
41
+
42
+ message PagingMetadata {
43
+ option (.wix.api.decomposite_of) = "wix.common.PagingMetadata";
44
+ option (.wix.api.decomposition_minimum_fields) = {
45
+ field: "count"
46
+ field: "offset"
47
+ };
48
+ // Number of items returned in the response.
49
+ google.protobuf.Int32Value count = 1;
50
+ // Offset that was requested.
51
+ google.protobuf.Int32Value offset = 2;
52
+ // Total number of items that match the query.
53
+ google.protobuf.Int32Value total = 3;
54
+ // Flag that indicates the server failed to calculate the `total` field.
55
+ google.protobuf.BoolValue too_many_to_count = 4;
56
+ // Indicates if there are more results after the current page.
57
+ // If `true`, another page of results can be retrieved.
58
+ // If `false`, this is the last page.
59
+ google.protobuf.BoolValue has_next = 5 [(.wix.api.field_exposure) = PRIVATE];
60
+ }
61
+
62
+ message PagingMetadataV2 {
63
+ option (.wix.api.decomposite_of) = "wix.common.PagingMetadataV2";
64
+ option (.wix.api.decomposition_minimum_fields) = {
65
+ field: "count"
66
+ field: "offset"
67
+ };
68
+ option (.wix.api.decomposition_minimum_fields) = {
69
+ field: "count"
70
+ field: "cursors"
71
+ };
72
+ // Number of items returned in the response.
73
+ google.protobuf.Int32Value count = 1;
74
+ // Offset that was requested.
75
+ google.protobuf.Int32Value offset = 2;
76
+ // Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.
77
+ google.protobuf.Int32Value total = 3;
78
+ // Flag that indicates the server failed to calculate the `total` field.
79
+ google.protobuf.BoolValue too_many_to_count = 4;
80
+ // Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.
81
+ Cursors cursors = 5;
82
+ // Indicates if there are more results after the current page.
83
+ // If `true`, another page of results can be retrieved.
84
+ // If `false`, this is the last page.
85
+ google.protobuf.BoolValue has_next = 6 [(.wix.api.field_exposure) = PRIVATE];
86
+ }
87
+
88
+
89
+ // This is the preferred message for cursor-paging enabled services
90
+
91
+ message CursorPagingMetadata {
92
+ option (.wix.api.decomposite_of) = "wix.common.CursorPagingMetadata";
93
+ // Number of items returned in the response.
94
+ google.protobuf.Int32Value count = 1;
95
+ // Offset that was requested.
96
+ Cursors cursors = 2;
97
+ // Indicates if there are more results after the current page.
98
+ // If `true`, another page of results can be retrieved.
99
+ // If `false`, this is the last page.
100
+ google.protobuf.BoolValue has_next = 3;
101
+ }
102
+
103
+ message Cursors {
104
+ option (.wix.api.decomposite_of) = "wix.common.Cursors";
105
+ option (.wix.api.decomposition_minimum_fields) = {
106
+ field: "next"
107
+ };
108
+ // Cursor pointing to next page in the list of results.
109
+ google.protobuf.StringValue next = 1 [(.wix.api.maxLength) = 16000];
110
+ // Cursor pointing to previous page in the list of results.
111
+ google.protobuf.StringValue prev = 2 [(.wix.api.maxLength) = 16000];
112
+ }
@@ -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
+ }