@wix/bex-utils 2.109.0 → 2.111.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,2 @@
1
+ const wrapper = require('../proto-generated');
2
+ module.exports = {services: wrapper, requests: wrapper, responses: wrapper};
@@ -0,0 +1,33 @@
1
+ import { CreateExternalDatabaseConnectionRequest, CreateExternalDatabaseConnectionResponse, DeleteExternalDatabaseConnectionRequest, DeleteExternalDatabaseConnectionResponse, GetExternalDatabaseConnectionRequest, GetExternalDatabaseConnectionResponse, ListExternalDatabaseConnectionsRequest, ListExternalDatabaseConnectionsResponse, UpdateExternalDatabaseConnectionRequest, UpdateExternalDatabaseConnectionResponse } from './types.impl.js';
2
+ import * as wrapper from './proto/proto-generated.js';
3
+ declare const ExternalDatabaseConnectionService: typeof wrapper.com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService;
4
+ export type RequestOptions<T = any, U = any> = {
5
+ _?: T;
6
+ requestData: any;
7
+ serviceArtifactId: string;
8
+ serviceProtoClass: U;
9
+ methodName: string;
10
+ };
11
+ /** Retrieves the specified external database connection. */
12
+ export declare function getExternalDatabaseConnection(payload: GetExternalDatabaseConnectionRequest): RequestOptions<GetExternalDatabaseConnectionResponse, typeof ExternalDatabaseConnectionService>;
13
+ /** Lists all of the site's external database connections of all adaptor types. */
14
+ export declare function listExternalDatabaseConnections(payload: ListExternalDatabaseConnectionsRequest): RequestOptions<ListExternalDatabaseConnectionsResponse, typeof ExternalDatabaseConnectionService>;
15
+ /**
16
+ * Creates a new external database connection.
17
+ *
18
+ * Before you can establish a connection between a site and an external database, you must prepare an external database adaptor.
19
+ */
20
+ export declare function createExternalDatabaseConnection(payload: CreateExternalDatabaseConnectionRequest): RequestOptions<CreateExternalDatabaseConnectionResponse, typeof ExternalDatabaseConnectionService>;
21
+ /**
22
+ * Updates an external database connection.
23
+ *
24
+ * > **Note:** After an external database connection is updated, it only contains the values provided in the request. All previous values are lost.
25
+ */
26
+ export declare function updateExternalDatabaseConnection(payload: UpdateExternalDatabaseConnectionRequest): RequestOptions<UpdateExternalDatabaseConnectionResponse, typeof ExternalDatabaseConnectionService>;
27
+ /**
28
+ * Deletes an external database connection.
29
+ *
30
+ * > **Note:** Once an external database connection is deleted, it can't be restored. To reconnect the database, create a new external database connection.
31
+ */
32
+ export declare function deleteExternalDatabaseConnection(payload: DeleteExternalDatabaseConnectionRequest): RequestOptions<DeleteExternalDatabaseConnectionResponse, typeof ExternalDatabaseConnectionService>;
33
+ export {};
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.getExternalDatabaseConnection = getExternalDatabaseConnection;
37
+ exports.listExternalDatabaseConnections = listExternalDatabaseConnections;
38
+ exports.createExternalDatabaseConnection = createExternalDatabaseConnection;
39
+ exports.updateExternalDatabaseConnection = updateExternalDatabaseConnection;
40
+ exports.deleteExternalDatabaseConnection = deleteExternalDatabaseConnection;
41
+ var wrapper = __importStar(require("./proto/proto-generated.js"));
42
+ var ExternalDatabaseConnectionService = wrapper.com.wixpress.cloud.data.api.externaldatabase
43
+ .ExternalDatabaseConnectionService;
44
+ /** Retrieves the specified external database connection. */
45
+ function getExternalDatabaseConnection(payload) {
46
+ var serviceArtifactId = 'com.wixpress.cloud.cloud-data';
47
+ var serviceProtoClass = ExternalDatabaseConnectionService;
48
+ var methodName = 'getExternalDatabaseConnection';
49
+ var requestData = payload;
50
+ return {
51
+ serviceProtoClass: serviceProtoClass,
52
+ serviceArtifactId: serviceArtifactId,
53
+ methodName: methodName,
54
+ requestData: requestData,
55
+ };
56
+ }
57
+ /** Lists all of the site's external database connections of all adaptor types. */
58
+ function listExternalDatabaseConnections(payload) {
59
+ var serviceArtifactId = 'com.wixpress.cloud.cloud-data';
60
+ var serviceProtoClass = ExternalDatabaseConnectionService;
61
+ var methodName = 'listExternalDatabaseConnections';
62
+ var requestData = payload;
63
+ return {
64
+ serviceProtoClass: serviceProtoClass,
65
+ serviceArtifactId: serviceArtifactId,
66
+ methodName: methodName,
67
+ requestData: requestData,
68
+ };
69
+ }
70
+ /**
71
+ * Creates a new external database connection.
72
+ *
73
+ * Before you can establish a connection between a site and an external database, you must prepare an external database adaptor.
74
+ */
75
+ function createExternalDatabaseConnection(payload) {
76
+ var serviceArtifactId = 'com.wixpress.cloud.cloud-data';
77
+ var serviceProtoClass = ExternalDatabaseConnectionService;
78
+ var methodName = 'createExternalDatabaseConnection';
79
+ var requestData = payload;
80
+ return {
81
+ serviceProtoClass: serviceProtoClass,
82
+ serviceArtifactId: serviceArtifactId,
83
+ methodName: methodName,
84
+ requestData: requestData,
85
+ };
86
+ }
87
+ /**
88
+ * Updates an external database connection.
89
+ *
90
+ * > **Note:** After an external database connection is updated, it only contains the values provided in the request. All previous values are lost.
91
+ */
92
+ function updateExternalDatabaseConnection(payload) {
93
+ var serviceArtifactId = 'com.wixpress.cloud.cloud-data';
94
+ var serviceProtoClass = ExternalDatabaseConnectionService;
95
+ var methodName = 'updateExternalDatabaseConnection';
96
+ var requestData = payload;
97
+ return {
98
+ serviceProtoClass: serviceProtoClass,
99
+ serviceArtifactId: serviceArtifactId,
100
+ methodName: methodName,
101
+ requestData: requestData,
102
+ };
103
+ }
104
+ /**
105
+ * Deletes an external database connection.
106
+ *
107
+ * > **Note:** Once an external database connection is deleted, it can't be restored. To reconnect the database, create a new external database connection.
108
+ */
109
+ function deleteExternalDatabaseConnection(payload) {
110
+ var serviceArtifactId = 'com.wixpress.cloud.cloud-data';
111
+ var serviceProtoClass = ExternalDatabaseConnectionService;
112
+ var methodName = 'deleteExternalDatabaseConnection';
113
+ var requestData = payload;
114
+ return {
115
+ serviceProtoClass: serviceProtoClass,
116
+ serviceArtifactId: serviceArtifactId,
117
+ methodName: methodName,
118
+ requestData: requestData,
119
+ };
120
+ }
121
+ //# sourceMappingURL=rpc.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc.impl.js","sourceRoot":"","sources":["../../rpc.impl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,sEAiBC;AAGD,0EAiBC;AAOD,4EAiBC;AAOD,4EAiBC;AAOD,4EAiBC;AA5HD,kEAAsD;AAEtD,IAAM,iCAAiC,GACrC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB;KACjD,iCAAiC,CAAC;AAUvC,4DAA4D;AAC5D,SAAgB,6BAA6B,CAC3C,OAA6C;IAK7C,IAAM,iBAAiB,GAAW,+BAA+B,CAAC;IAClE,IAAM,iBAAiB,GACrB,iCAAiC,CAAC;IACpC,IAAM,UAAU,GAAW,+BAA+B,CAAC;IAC3D,IAAM,WAAW,GAAyC,OAAO,CAAC;IAClE,OAAO;QACL,iBAAiB,mBAAA;QACjB,iBAAiB,mBAAA;QACjB,UAAU,YAAA;QACV,WAAW,aAAA;KACZ,CAAC;AACJ,CAAC;AAED,kFAAkF;AAClF,SAAgB,+BAA+B,CAC7C,OAA+C;IAK/C,IAAM,iBAAiB,GAAW,+BAA+B,CAAC;IAClE,IAAM,iBAAiB,GACrB,iCAAiC,CAAC;IACpC,IAAM,UAAU,GAAW,iCAAiC,CAAC;IAC7D,IAAM,WAAW,GAA2C,OAAO,CAAC;IACpE,OAAO;QACL,iBAAiB,mBAAA;QACjB,iBAAiB,mBAAA;QACjB,UAAU,YAAA;QACV,WAAW,aAAA;KACZ,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,gCAAgC,CAC9C,OAAgD;IAKhD,IAAM,iBAAiB,GAAW,+BAA+B,CAAC;IAClE,IAAM,iBAAiB,GACrB,iCAAiC,CAAC;IACpC,IAAM,UAAU,GAAW,kCAAkC,CAAC;IAC9D,IAAM,WAAW,GAA4C,OAAO,CAAC;IACrE,OAAO;QACL,iBAAiB,mBAAA;QACjB,iBAAiB,mBAAA;QACjB,UAAU,YAAA;QACV,WAAW,aAAA;KACZ,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,gCAAgC,CAC9C,OAAgD;IAKhD,IAAM,iBAAiB,GAAW,+BAA+B,CAAC;IAClE,IAAM,iBAAiB,GACrB,iCAAiC,CAAC;IACpC,IAAM,UAAU,GAAW,kCAAkC,CAAC;IAC9D,IAAM,WAAW,GAA4C,OAAO,CAAC;IACrE,OAAO;QACL,iBAAiB,mBAAA;QACjB,iBAAiB,mBAAA;QACjB,UAAU,YAAA;QACV,WAAW,aAAA;KACZ,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,gCAAgC,CAC9C,OAAgD;IAKhD,IAAM,iBAAiB,GAAW,+BAA+B,CAAC;IAClE,IAAM,iBAAiB,GACrB,iCAAiC,CAAC;IACpC,IAAM,UAAU,GAAW,kCAAkC,CAAC;IAC9D,IAAM,WAAW,GAA4C,OAAO,CAAC;IACrE,OAAO;QACL,iBAAiB,mBAAA;QACjB,iBAAiB,mBAAA;QACjB,UAAU,YAAA;QACV,WAAW,aAAA;KACZ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,424 @@
1
+ export declare enum ConnectionType {
2
+ /** Unknown connection type. */
3
+ UNKNOWN_CONNECTION_TYPE = "UNKNOWN_CONNECTION_TYPE",
4
+ /** 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). */
5
+ STANDALONE = "STANDALONE",
6
+ /** 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). */
7
+ WIX_SERVICE_PLUGIN = "WIX_SERVICE_PLUGIN"
8
+ }
9
+ export interface CreateExternalDatabaseConnectionRequest {
10
+ /** External database connection details. */
11
+ externalDatabaseConnection: ExternalDatabaseConnection;
12
+ /** Connection type. The connection type specifies the type of adaptor by which the external collection is integrated with the site. */
13
+ connectionType: ConnectionType;
14
+ /**
15
+ * Whether the database is managed by Wix.
16
+ * @internal
17
+ */
18
+ databaseManagedByWix?: boolean;
19
+ }
20
+ export interface CreateExternalDatabaseConnectionResponse {
21
+ /** Details of the created external database connection. */
22
+ externalDatabaseConnection?: ExternalDatabaseConnection;
23
+ }
24
+ export interface DeleteExternalDatabaseConnectionRequest {
25
+ /**
26
+ * Name of the external database connection to delete.
27
+ * @maxLength 255
28
+ */
29
+ name: string;
30
+ }
31
+ export interface DeleteExternalDatabaseConnectionResponse {
32
+ }
33
+ /** An external database connection defines a connection between an external database and a Wix site. */
34
+ export interface ExternalDatabaseConnection {
35
+ /**
36
+ * Name of the external database connection.
37
+ *
38
+ * An external database connection can connect to one or more external data collections or tables. These appear as `connectionName/dataCollectionId`.
39
+ * @immutable
40
+ * @minLength 1
41
+ * @maxLength 255
42
+ */
43
+ name?: string;
44
+ /**
45
+ * Base URL for accessing and managing data in the external database. For example: `https://example.com/my-external-database`.
46
+ * Required for STANDALONE connection type.
47
+ * @format WEB_URL
48
+ */
49
+ endpoint?: string | null;
50
+ /**
51
+ * Settings specified to the external database connection as part of each request.
52
+ *
53
+ * 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.
54
+ */
55
+ configuration?: Record<string, any> | null;
56
+ /**
57
+ * Status of the external database connection. Includes whether the connection was established successfully, and if not, the reason for the failure.
58
+ * @readonly
59
+ */
60
+ connectionStatus?: ConnectionStatus;
61
+ /**
62
+ * Protocol version of the external database connection.
63
+ * @internal
64
+ * @readonly
65
+ */
66
+ protocolVersion?: ProtocolVersion;
67
+ /**
68
+ * Public key used to validate requests to the external database.
69
+ * @readonly
70
+ * @maxLength 128
71
+ */
72
+ publicKey?: string | null;
73
+ /**
74
+ * Capabilities of the external database.
75
+ * @readonly
76
+ */
77
+ capabilities?: Capabilities;
78
+ /**
79
+ * ID of the app used to integrate this external database.
80
+ * @internal
81
+ * @readonly
82
+ * @maxLength 128
83
+ */
84
+ applicationId?: string | null;
85
+ }
86
+ export interface Capabilities {
87
+ /** Whether the external database supports creating new collections, updating the structure of existing collections, or deleting them. */
88
+ collectionModificationsSupported?: boolean;
89
+ /**
90
+ * Field types the external database supports. Applies only when `collectionModificationsSupported` is set to `true`.
91
+ * @maxSize 255
92
+ */
93
+ fieldTypes?: FieldType[];
94
+ }
95
+ export interface ConnectionStatus {
96
+ /** Whether the connection was established successfully. */
97
+ successful?: boolean;
98
+ /** Whether and why the connection attempt failed. */
99
+ causeOfFailure?: CauseOfFailure;
100
+ /**
101
+ * Whether the external database has collections.
102
+ * @readonly
103
+ */
104
+ hasCollections?: CollectionsFound;
105
+ }
106
+ export declare enum CauseOfFailure {
107
+ /** No connection failure. */
108
+ NONE = "NONE",
109
+ /** General communication failure. */
110
+ COMMUNICATION_FAILURE = "COMMUNICATION_FAILURE",
111
+ /** External database host is unreachable. */
112
+ DESTINATION_HOST_UNREACHABLE = "DESTINATION_HOST_UNREACHABLE",
113
+ /** Unauthorized to access the external database. */
114
+ UNAUTHORIZED = "UNAUTHORIZED",
115
+ /** `endpoint` is not set. */
116
+ DESTINATION_ENDPOINT_NOT_DEFINED = "DESTINATION_ENDPOINT_NOT_DEFINED"
117
+ }
118
+ export declare enum CollectionsFound {
119
+ /** Attempt to connect to the external database failed, so status is unknown. */
120
+ UNKNOWN = "UNKNOWN",
121
+ /** External database has collections. */
122
+ YES = "YES",
123
+ /** External database does not have any collections. */
124
+ NO = "NO"
125
+ }
126
+ export declare enum ProtocolVersion {
127
+ UNKNOWN_PROTOCOL_VERSION = "UNKNOWN_PROTOCOL_VERSION",
128
+ V1 = "V1",
129
+ V2 = "V2",
130
+ V3 = "V3"
131
+ }
132
+ export interface GetExternalDatabaseConnectionRequest {
133
+ /**
134
+ * Name of the external database connection to retrieve.
135
+ * @maxLength 255
136
+ */
137
+ name: string;
138
+ }
139
+ export interface GetExternalDatabaseConnectionResponse {
140
+ /** Details of the retrieved external database connection. */
141
+ externalDatabaseConnection?: ExternalDatabaseConnection;
142
+ }
143
+ export interface ListExternalDatabaseConnectionsRequest {
144
+ /** Paging metadata. */
145
+ paging?: Paging;
146
+ }
147
+ export interface ListExternalDatabaseConnectionsResponse {
148
+ /** List of external database connections. */
149
+ externalDatabaseConnections?: ExternalDatabaseConnection[];
150
+ /** Paging metadata. */
151
+ pagingMetadata?: PagingMetadata;
152
+ }
153
+ export interface UpdateExternalDatabaseConnectionRequest {
154
+ /** Updated external database connection. The existing connection is replaced with this version. */
155
+ externalDatabaseConnection: ExternalDatabaseConnection;
156
+ }
157
+ export interface UpdateExternalDatabaseConnectionResponse {
158
+ /** Details of the updated external database connection. */
159
+ externalDatabaseConnection?: ExternalDatabaseConnection;
160
+ }
161
+ export declare enum FieldType {
162
+ UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
163
+ TEXT = "TEXT",
164
+ NUMBER = "NUMBER",
165
+ DATE = "DATE",
166
+ DATETIME = "DATETIME",
167
+ IMAGE = "IMAGE",
168
+ BOOLEAN = "BOOLEAN",
169
+ DOCUMENT = "DOCUMENT",
170
+ URL = "URL",
171
+ RICH_TEXT = "RICH_TEXT",
172
+ VIDEO = "VIDEO",
173
+ ANY = "ANY",
174
+ ARRAY_STRING = "ARRAY_STRING",
175
+ ARRAY_DOCUMENT = "ARRAY_DOCUMENT",
176
+ AUDIO = "AUDIO",
177
+ TIME = "TIME",
178
+ LANGUAGE = "LANGUAGE",
179
+ RICH_CONTENT = "RICH_CONTENT",
180
+ MEDIA_GALLERY = "MEDIA_GALLERY",
181
+ ADDRESS = "ADDRESS",
182
+ PAGE_LINK = "PAGE_LINK",
183
+ REFERENCE = "REFERENCE",
184
+ MULTI_REFERENCE = "MULTI_REFERENCE",
185
+ OBJECT = "OBJECT",
186
+ ARRAY = "ARRAY",
187
+ /** Deprecated - can’t be added to collections. Can only appear in older collections. */
188
+ LEGACY_TIME = "LEGACY_TIME",
189
+ /** Deprecated - can’t be added to collections. Can only appear in older collections. */
190
+ LEGACY_BOOK = "LEGACY_BOOK",
191
+ /** Deprecated - can’t be added to collections. Can only appear in older collections. */
192
+ LEGACY_EXTERNAL_URL = "LEGACY_EXTERNAL_URL",
193
+ /** Deprecated - can’t be added to collections. Can only appear in older collections. */
194
+ LEGACY_BROKEN_REFERENCE = "LEGACY_BROKEN_REFERENCE",
195
+ /** Deprecated - can’t be added to collections. Can only appear in older collections. */
196
+ LEGACY_IMAGE = "LEGACY_IMAGE",
197
+ /** Deprecated - can’t be added to collections. Can only appear in older collections. */
198
+ LEGACY_COLOR = "LEGACY_COLOR",
199
+ /** Deprecated - can’t be added to collections. Can only appear in older collections. */
200
+ LEGACY_EXTERNAL_VIDEO = "LEGACY_EXTERNAL_VIDEO",
201
+ SLUG = "SLUG",
202
+ EMAIL = "EMAIL",
203
+ SECURED_MEDIA = "SECURED_MEDIA",
204
+ MEDIA_IMAGE = "MEDIA_IMAGE",
205
+ MEDIA_VECTOR_ART = "MEDIA_VECTOR_ART"
206
+ }
207
+ export interface AccountInfo {
208
+ /**
209
+ * ID of the Wix account associated with the event.
210
+ * @format GUID
211
+ */
212
+ accountId?: string | null;
213
+ /**
214
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
215
+ * @format GUID
216
+ */
217
+ parentAccountId?: string | null;
218
+ /**
219
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
220
+ * @format GUID
221
+ */
222
+ siteId?: string | null;
223
+ }
224
+ export interface IdentificationData extends IdentificationDataIdOneOf {
225
+ /**
226
+ * ID of a site visitor that has not logged in to the site.
227
+ * @format GUID
228
+ */
229
+ anonymousVisitorId?: string;
230
+ /**
231
+ * ID of a site visitor that has logged in to the site.
232
+ * @format GUID
233
+ */
234
+ memberId?: string;
235
+ /**
236
+ * ID of a Wix user (site owner, contributor, etc.).
237
+ * @format GUID
238
+ */
239
+ wixUserId?: string;
240
+ /**
241
+ * ID of an app.
242
+ * @format GUID
243
+ */
244
+ appId?: string;
245
+ /** @readonly */
246
+ identityType?: WebhookIdentityType;
247
+ }
248
+ /** @oneof */
249
+ export interface IdentificationDataIdOneOf {
250
+ /**
251
+ * ID of a site visitor that has not logged in to the site.
252
+ * @format GUID
253
+ */
254
+ anonymousVisitorId?: string;
255
+ /**
256
+ * ID of a site visitor that has logged in to the site.
257
+ * @format GUID
258
+ */
259
+ memberId?: string;
260
+ /**
261
+ * ID of a Wix user (site owner, contributor, etc.).
262
+ * @format GUID
263
+ */
264
+ wixUserId?: string;
265
+ /**
266
+ * ID of an app.
267
+ * @format GUID
268
+ */
269
+ appId?: string;
270
+ }
271
+ export declare enum WebhookIdentityType {
272
+ UNKNOWN = "UNKNOWN",
273
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
274
+ MEMBER = "MEMBER",
275
+ WIX_USER = "WIX_USER",
276
+ APP = "APP"
277
+ }
278
+ export interface MessageEnvelope {
279
+ /**
280
+ * App instance ID.
281
+ * @format GUID
282
+ */
283
+ instanceId?: string | null;
284
+ /**
285
+ * Event type.
286
+ * @maxLength 150
287
+ */
288
+ eventType?: string;
289
+ /** The identification type and identity data. */
290
+ identity?: IdentificationData;
291
+ /** Stringify payload. */
292
+ data?: string;
293
+ /** Details related to the account */
294
+ accountInfo?: AccountInfo;
295
+ }
296
+ export interface Paging {
297
+ /** Number of items to load. */
298
+ limit?: number | null;
299
+ /** Number of items to skip in the current sort order. */
300
+ offset?: number | null;
301
+ }
302
+ export interface PagingMetadata {
303
+ /** Number of items returned in the response. */
304
+ count?: number | null;
305
+ /** Offset that was requested. */
306
+ offset?: number | null;
307
+ /** Total number of items that match the query. */
308
+ total?: number | null;
309
+ /** Flag that indicates the server failed to calculate the `total` field. */
310
+ tooManyToCount?: boolean | null;
311
+ /**
312
+ * Indicates if there are more results after the current page.
313
+ * If `true`, another page of results can be retrieved.
314
+ * If `false`, this is the last page.
315
+ * @internal
316
+ */
317
+ hasNext?: boolean | null;
318
+ }
319
+ export interface ActionEvent {
320
+ bodyAsJson?: string;
321
+ }
322
+ export interface DomainEvent extends DomainEventBodyOneOf {
323
+ createdEvent?: EntityCreatedEvent;
324
+ updatedEvent?: EntityUpdatedEvent;
325
+ deletedEvent?: EntityDeletedEvent;
326
+ actionEvent?: ActionEvent;
327
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
328
+ id?: string;
329
+ /**
330
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
331
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
332
+ */
333
+ entityFqdn?: string;
334
+ /**
335
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
336
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
337
+ */
338
+ slug?: string;
339
+ /** ID of the entity associated with the event. */
340
+ entityId?: string;
341
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
342
+ eventTime?: Date | null;
343
+ /**
344
+ * Whether the event was triggered as a result of a privacy regulation application
345
+ * (for example, GDPR).
346
+ */
347
+ triggeredByAnonymizeRequest?: boolean | null;
348
+ /** If present, indicates the action that triggered the event. */
349
+ originatedFrom?: string | null;
350
+ /**
351
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
352
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
353
+ */
354
+ entityEventSequence?: string | null;
355
+ }
356
+ /** @oneof */
357
+ export interface DomainEventBodyOneOf {
358
+ createdEvent?: EntityCreatedEvent;
359
+ updatedEvent?: EntityUpdatedEvent;
360
+ deletedEvent?: EntityDeletedEvent;
361
+ actionEvent?: ActionEvent;
362
+ }
363
+ export interface EntityCreatedEvent {
364
+ entityAsJson?: string;
365
+ /**
366
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
367
+ * @internal
368
+ */
369
+ triggeredByUndelete?: boolean | null;
370
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
371
+ restoreInfo?: RestoreInfo;
372
+ /**
373
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
374
+ * @internal
375
+ */
376
+ additionalMetadataAsJson?: string | null;
377
+ }
378
+ export interface EntityDeletedEvent {
379
+ /**
380
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
381
+ * @internal
382
+ */
383
+ movedToTrash?: boolean | null;
384
+ /** Entity that was deleted. */
385
+ deletedEntityAsJson?: string | null;
386
+ /**
387
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
388
+ * @internal
389
+ */
390
+ additionalMetadataAsJson?: string | null;
391
+ }
392
+ export interface EntityUpdatedEvent {
393
+ /**
394
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
395
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
396
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
397
+ */
398
+ currentEntityAsJson?: string;
399
+ /**
400
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
401
+ * wont populate it / have any reference to it in the API.
402
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
403
+ * the developer should send only the new (current) entity.
404
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
405
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
406
+ * @internal
407
+ * @deprecated
408
+ */
409
+ previousEntityAsJson?: string | null;
410
+ /**
411
+ * Map of fully qualified field paths to their previous values for fields that changed.
412
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
413
+ * @internal
414
+ */
415
+ modifiedFields?: Record<string, any>;
416
+ /**
417
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
418
+ * @internal
419
+ */
420
+ additionalMetadataAsJson?: string | null;
421
+ }
422
+ export interface RestoreInfo {
423
+ deletedDate?: Date | null;
424
+ }