@wix/data 1.0.89 → 1.0.91

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 (169) hide show
  1. package/build/cjs/context.d.ts +4 -4
  2. package/build/cjs/context.js +4 -4
  3. package/build/cjs/context.js.map +1 -1
  4. package/build/cjs/index.d.ts +4 -4
  5. package/build/cjs/index.js +4 -4
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +4 -4
  8. package/build/cjs/meta.js +4 -4
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +4 -4
  11. package/build/es/context.js +4 -4
  12. package/build/es/context.js.map +1 -1
  13. package/build/es/index.d.ts +4 -4
  14. package/build/es/index.js +4 -4
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +4 -4
  17. package/build/es/meta.js +4 -4
  18. package/build/es/meta.js.map +1 -1
  19. package/package.json +14 -9
  20. package/build/cjs/index.typings.d.ts +0 -4
  21. package/build/cjs/index.typings.js +0 -31
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/data-v1-external-database-connection.context.d.ts +0 -7
  24. package/build/cjs/src/data-v1-external-database-connection.context.js +0 -90
  25. package/build/cjs/src/data-v1-external-database-connection.context.js.map +0 -1
  26. package/build/cjs/src/data-v1-external-database-connection.http.d.ts +0 -28
  27. package/build/cjs/src/data-v1-external-database-connection.http.js +0 -393
  28. package/build/cjs/src/data-v1-external-database-connection.http.js.map +0 -1
  29. package/build/cjs/src/data-v1-external-database-connection.meta.d.ts +0 -23
  30. package/build/cjs/src/data-v1-external-database-connection.meta.js +0 -127
  31. package/build/cjs/src/data-v1-external-database-connection.meta.js.map +0 -1
  32. package/build/cjs/src/data-v1-external-database-connection.public.d.ts +0 -46
  33. package/build/cjs/src/data-v1-external-database-connection.public.js +0 -46
  34. package/build/cjs/src/data-v1-external-database-connection.public.js.map +0 -1
  35. package/build/cjs/src/data-v1-external-database-connection.types.d.ts +0 -321
  36. package/build/cjs/src/data-v1-external-database-connection.types.js +0 -88
  37. package/build/cjs/src/data-v1-external-database-connection.types.js.map +0 -1
  38. package/build/cjs/src/data-v1-external-database-connection.universal.d.ts +0 -433
  39. package/build/cjs/src/data-v1-external-database-connection.universal.js +0 -442
  40. package/build/cjs/src/data-v1-external-database-connection.universal.js.map +0 -1
  41. package/build/cjs/src/data-v2-data-collection.context.d.ts +0 -7
  42. package/build/cjs/src/data-v2-data-collection.context.js +0 -90
  43. package/build/cjs/src/data-v2-data-collection.context.js.map +0 -1
  44. package/build/cjs/src/data-v2-data-collection.http.d.ts +0 -36
  45. package/build/cjs/src/data-v2-data-collection.http.js +0 -494
  46. package/build/cjs/src/data-v2-data-collection.http.js.map +0 -1
  47. package/build/cjs/src/data-v2-data-collection.meta.d.ts +0 -21
  48. package/build/cjs/src/data-v2-data-collection.meta.js +0 -123
  49. package/build/cjs/src/data-v2-data-collection.meta.js.map +0 -1
  50. package/build/cjs/src/data-v2-data-collection.public.d.ts +0 -313
  51. package/build/cjs/src/data-v2-data-collection.public.js +0 -58
  52. package/build/cjs/src/data-v2-data-collection.public.js.map +0 -1
  53. package/build/cjs/src/data-v2-data-collection.types.d.ts +0 -1460
  54. package/build/cjs/src/data-v2-data-collection.types.js +0 -197
  55. package/build/cjs/src/data-v2-data-collection.types.js.map +0 -1
  56. package/build/cjs/src/data-v2-data-collection.universal.d.ts +0 -1626
  57. package/build/cjs/src/data-v2-data-collection.universal.js +0 -622
  58. package/build/cjs/src/data-v2-data-collection.universal.js.map +0 -1
  59. package/build/cjs/src/data-v2-data-item.context.d.ts +0 -23
  60. package/build/cjs/src/data-v2-data-item.context.js +0 -362
  61. package/build/cjs/src/data-v2-data-item.context.js.map +0 -1
  62. package/build/cjs/src/data-v2-data-item.http.d.ts +0 -225
  63. package/build/cjs/src/data-v2-data-item.http.js +0 -936
  64. package/build/cjs/src/data-v2-data-item.http.js.map +0 -1
  65. package/build/cjs/src/data-v2-data-item.meta.d.ts +0 -39
  66. package/build/cjs/src/data-v2-data-item.meta.js +0 -427
  67. package/build/cjs/src/data-v2-data-item.meta.js.map +0 -1
  68. package/build/cjs/src/data-v2-data-item.public.d.ts +0 -31
  69. package/build/cjs/src/data-v2-data-item.public.js +0 -137
  70. package/build/cjs/src/data-v2-data-item.public.js.map +0 -1
  71. package/build/cjs/src/data-v2-data-item.types.d.ts +0 -913
  72. package/build/cjs/src/data-v2-data-item.types.js +0 -27
  73. package/build/cjs/src/data-v2-data-item.types.js.map +0 -1
  74. package/build/cjs/src/data-v2-data-item.universal.d.ts +0 -1748
  75. package/build/cjs/src/data-v2-data-item.universal.js +0 -1639
  76. package/build/cjs/src/data-v2-data-item.universal.js.map +0 -1
  77. package/build/cjs/src/data-v2-index.context.d.ts +0 -5
  78. package/build/cjs/src/data-v2-index.context.js +0 -56
  79. package/build/cjs/src/data-v2-index.context.js.map +0 -1
  80. package/build/cjs/src/data-v2-index.http.d.ts +0 -28
  81. package/build/cjs/src/data-v2-index.http.js +0 -367
  82. package/build/cjs/src/data-v2-index.http.js.map +0 -1
  83. package/build/cjs/src/data-v2-index.meta.d.ts +0 -15
  84. package/build/cjs/src/data-v2-index.meta.js +0 -85
  85. package/build/cjs/src/data-v2-index.meta.js.map +0 -1
  86. package/build/cjs/src/data-v2-index.public.d.ts +0 -23
  87. package/build/cjs/src/data-v2-index.public.js +0 -28
  88. package/build/cjs/src/data-v2-index.public.js.map +0 -1
  89. package/build/cjs/src/data-v2-index.types.d.ts +0 -174
  90. package/build/cjs/src/data-v2-index.types.js +0 -35
  91. package/build/cjs/src/data-v2-index.types.js.map +0 -1
  92. package/build/cjs/src/data-v2-index.universal.d.ts +0 -237
  93. package/build/cjs/src/data-v2-index.universal.js +0 -274
  94. package/build/cjs/src/data-v2-index.universal.js.map +0 -1
  95. package/build/es/index.typings.d.ts +0 -4
  96. package/build/es/index.typings.js +0 -5
  97. package/build/es/index.typings.js.map +0 -1
  98. package/build/es/src/data-v1-external-database-connection.context.d.ts +0 -7
  99. package/build/es/src/data-v1-external-database-connection.context.js +0 -82
  100. package/build/es/src/data-v1-external-database-connection.context.js.map +0 -1
  101. package/build/es/src/data-v1-external-database-connection.http.d.ts +0 -28
  102. package/build/es/src/data-v1-external-database-connection.http.js +0 -385
  103. package/build/es/src/data-v1-external-database-connection.http.js.map +0 -1
  104. package/build/es/src/data-v1-external-database-connection.meta.d.ts +0 -23
  105. package/build/es/src/data-v1-external-database-connection.meta.js +0 -96
  106. package/build/es/src/data-v1-external-database-connection.meta.js.map +0 -1
  107. package/build/es/src/data-v1-external-database-connection.public.d.ts +0 -46
  108. package/build/es/src/data-v1-external-database-connection.public.js +0 -30
  109. package/build/es/src/data-v1-external-database-connection.public.js.map +0 -1
  110. package/build/es/src/data-v1-external-database-connection.types.d.ts +0 -321
  111. package/build/es/src/data-v1-external-database-connection.types.js +0 -85
  112. package/build/es/src/data-v1-external-database-connection.types.js.map +0 -1
  113. package/build/es/src/data-v1-external-database-connection.universal.d.ts +0 -433
  114. package/build/es/src/data-v1-external-database-connection.universal.js +0 -411
  115. package/build/es/src/data-v1-external-database-connection.universal.js.map +0 -1
  116. package/build/es/src/data-v2-data-collection.context.d.ts +0 -7
  117. package/build/es/src/data-v2-data-collection.context.js +0 -82
  118. package/build/es/src/data-v2-data-collection.context.js.map +0 -1
  119. package/build/es/src/data-v2-data-collection.http.d.ts +0 -36
  120. package/build/es/src/data-v2-data-collection.http.js +0 -486
  121. package/build/es/src/data-v2-data-collection.http.js.map +0 -1
  122. package/build/es/src/data-v2-data-collection.meta.d.ts +0 -21
  123. package/build/es/src/data-v2-data-collection.meta.js +0 -92
  124. package/build/es/src/data-v2-data-collection.meta.js.map +0 -1
  125. package/build/es/src/data-v2-data-collection.public.d.ts +0 -313
  126. package/build/es/src/data-v2-data-collection.public.js +0 -30
  127. package/build/es/src/data-v2-data-collection.public.js.map +0 -1
  128. package/build/es/src/data-v2-data-collection.types.d.ts +0 -1460
  129. package/build/es/src/data-v2-data-collection.types.js +0 -194
  130. package/build/es/src/data-v2-data-collection.types.js.map +0 -1
  131. package/build/es/src/data-v2-data-collection.universal.d.ts +0 -1626
  132. package/build/es/src/data-v2-data-collection.universal.js +0 -591
  133. package/build/es/src/data-v2-data-collection.universal.js.map +0 -1
  134. package/build/es/src/data-v2-data-item.context.d.ts +0 -23
  135. package/build/es/src/data-v2-data-item.context.js +0 -338
  136. package/build/es/src/data-v2-data-item.context.js.map +0 -1
  137. package/build/es/src/data-v2-data-item.http.d.ts +0 -225
  138. package/build/es/src/data-v2-data-item.http.js +0 -912
  139. package/build/es/src/data-v2-data-item.http.js.map +0 -1
  140. package/build/es/src/data-v2-data-item.meta.d.ts +0 -39
  141. package/build/es/src/data-v2-data-item.meta.js +0 -380
  142. package/build/es/src/data-v2-data-item.meta.js.map +0 -1
  143. package/build/es/src/data-v2-data-item.public.d.ts +0 -31
  144. package/build/es/src/data-v2-data-item.public.js +0 -109
  145. package/build/es/src/data-v2-data-item.public.js.map +0 -1
  146. package/build/es/src/data-v2-data-item.types.d.ts +0 -913
  147. package/build/es/src/data-v2-data-item.types.js +0 -24
  148. package/build/es/src/data-v2-data-item.types.js.map +0 -1
  149. package/build/es/src/data-v2-data-item.universal.d.ts +0 -1748
  150. package/build/es/src/data-v2-data-item.universal.js +0 -1592
  151. package/build/es/src/data-v2-data-item.universal.js.map +0 -1
  152. package/build/es/src/data-v2-index.context.d.ts +0 -5
  153. package/build/es/src/data-v2-index.context.js +0 -50
  154. package/build/es/src/data-v2-index.context.js.map +0 -1
  155. package/build/es/src/data-v2-index.http.d.ts +0 -28
  156. package/build/es/src/data-v2-index.http.js +0 -361
  157. package/build/es/src/data-v2-index.http.js.map +0 -1
  158. package/build/es/src/data-v2-index.meta.d.ts +0 -15
  159. package/build/es/src/data-v2-index.meta.js +0 -56
  160. package/build/es/src/data-v2-index.meta.js.map +0 -1
  161. package/build/es/src/data-v2-index.public.d.ts +0 -23
  162. package/build/es/src/data-v2-index.public.js +0 -19
  163. package/build/es/src/data-v2-index.public.js.map +0 -1
  164. package/build/es/src/data-v2-index.types.d.ts +0 -174
  165. package/build/es/src/data-v2-index.types.js +0 -32
  166. package/build/es/src/data-v2-index.types.js.map +0 -1
  167. package/build/es/src/data-v2-index.universal.d.ts +0 -237
  168. package/build/es/src/data-v2-index.universal.js +0 -245
  169. package/build/es/src/data-v2-index.universal.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-v1-external-database-connection.public.js","sourceRoot":"","sources":["../../../src/data-v1-external-database-connection.public.ts"],"names":[],"mappings":";;;AACA,qHAU0D;AAE7C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,SAAgB,6BAA6B,CAAC,UAAsB;IAClE,OAAO,CAAC,IAAY,EAAE,EAAE,CACtB,IAAA,8EAAsC,EACpC,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sEAOC;AAED,SAAgB,+BAA+B,CAAC,UAAsB;IACpE,OAAO,CAAC,OAAgD,EAAE,EAAE,CAC1D,IAAA,gFAAwC,EACtC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,0EAOC;AAED,SAAgB,gCAAgC,CAAC,UAAsB;IACrE,OAAO,CACL,0BAAsD,EACtD,OAAgD,EAChD,EAAE,CACF,IAAA,iFAAyC,EACvC,0BAA0B,EAC1B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAXD,4EAWC;AAED,SAAgB,gCAAgC,CAAC,UAAsB;IACrE,OAAO,CACL,IAAY,EACZ,0BAA4D,EAC5D,EAAE,CACF,IAAA,iFAAyC,EACvC,IAAI,EACJ,0BAA0B;IAC1B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAXD,4EAWC;AAED,SAAgB,gCAAgC,CAAC,UAAsB;IACrE,OAAO,CAAC,IAAY,EAAE,EAAE,CACtB,IAAA,iFAAyC,EACvC,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4EAOC;AAED,mHAM0D;AALxD,gJAAA,cAAc,OAAA;AACd,kJAAA,gBAAgB,OAAA;AAChB,2IAAA,SAAS,OAAA;AACT,iJAAA,eAAe,OAAA;AACf,gJAAA,cAAc,OAAA;AAoChB,mHAI0D;AAHxD,qKAAA,mCAAmC,OAAA;AACnC,qKAAA,mCAAmC,OAAA;AACnC,qKAAA,mCAAmC,OAAA"}
@@ -1,321 +0,0 @@
1
- /** An external database connection defines a connection between an external database and a Wix site or project. */
2
- export interface ExternalDatabaseConnection {
3
- /**
4
- * Name of the external database connection.
5
- * An external database connection may connect to one or more external data collections or tables.
6
- * These are represented as `connectionName/dataCollectionId`.
7
- */
8
- name?: string;
9
- /** Base URL for provisioning and managing data in the external database. For example: `https://example.com/my-external-database`. */
10
- endpoint?: string | null;
11
- /**
12
- * Settings passed to the external database connection as part of each request.
13
- * These settings can relate to authentication, tenancy, or provide any other information needed for processing a request.
14
- * Their content and structure depend on the specific requirements of the external database's API.
15
- */
16
- configuration?: Record<string, any> | null;
17
- /**
18
- * Status of the external database connection. Includes whether the connection was established successfully, and if not, the reason for the failure.
19
- * @readonly
20
- */
21
- connectionStatus?: ConnectionStatus;
22
- /**
23
- * The external database's capabilities.
24
- * @readonly
25
- */
26
- capabilities?: Capabilities;
27
- }
28
- export declare enum CauseOfFailure {
29
- /** No connection failure. */
30
- NONE = "NONE",
31
- /** General communication failure. */
32
- COMMUNICATION_FAILURE = "COMMUNICATION_FAILURE",
33
- /** External database host is unreachable. */
34
- DESTINATION_HOST_UNREACHABLE = "DESTINATION_HOST_UNREACHABLE",
35
- /** Unauthorized to access the external database. */
36
- UNAUTHORIZED = "UNAUTHORIZED",
37
- /** `endpoint` is not set. */
38
- DESTINATION_ENDPOINT_NOT_DEFINED = "DESTINATION_ENDPOINT_NOT_DEFINED"
39
- }
40
- export declare enum CollectionsFound {
41
- UNKNOWN = "UNKNOWN",
42
- YES = "YES",
43
- NO = "NO"
44
- }
45
- export declare enum FieldType {
46
- UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
47
- TEXT = "TEXT",
48
- NUMBER = "NUMBER",
49
- DATE = "DATE",
50
- DATETIME = "DATETIME",
51
- IMAGE = "IMAGE",
52
- BOOLEAN = "BOOLEAN",
53
- DOCUMENT = "DOCUMENT",
54
- URL = "URL",
55
- RICH_TEXT = "RICH_TEXT",
56
- VIDEO = "VIDEO",
57
- ANY = "ANY",
58
- ARRAY_STRING = "ARRAY_STRING",
59
- ARRAY_DOCUMENT = "ARRAY_DOCUMENT",
60
- AUDIO = "AUDIO",
61
- TIME = "TIME",
62
- LANGUAGE = "LANGUAGE",
63
- RICH_CONTENT = "RICH_CONTENT",
64
- MEDIA_GALLERY = "MEDIA_GALLERY",
65
- ADDRESS = "ADDRESS",
66
- PAGE_LINK = "PAGE_LINK",
67
- REFERENCE = "REFERENCE",
68
- MULTI_REFERENCE = "MULTI_REFERENCE",
69
- OBJECT = "OBJECT",
70
- ARRAY = "ARRAY",
71
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
72
- LEGACY_TIME = "LEGACY_TIME",
73
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
74
- LEGACY_BOOK = "LEGACY_BOOK",
75
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
76
- LEGACY_EXTERNAL_URL = "LEGACY_EXTERNAL_URL",
77
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
78
- LEGACY_BROKEN_REFERENCE = "LEGACY_BROKEN_REFERENCE",
79
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
80
- LEGACY_IMAGE = "LEGACY_IMAGE",
81
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
82
- LEGACY_COLOR = "LEGACY_COLOR",
83
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
84
- LEGACY_EXTERNAL_VIDEO = "LEGACY_EXTERNAL_VIDEO"
85
- }
86
- export interface ConnectionStatus {
87
- /** Whether the connection was established successfully. */
88
- successful?: boolean;
89
- /**
90
- * If and why a connection attempt failed.
91
- * + `NONE`: No connection failure.
92
- * + `COMMUNICATION_FAILURE`: General communication failure.
93
- * + `DESTINATION_HOST_UNREACHABLE`: External database host is unreachable.
94
- * + `UNAUTHORIZED`: Unauthorized to access external database.
95
- * + `DESTINATION_ENDPOINT_NOT_DEFINED`: `Endpoint` property is not set.
96
- */
97
- causeOfFailure?: CauseOfFailure;
98
- /**
99
- * Whether the external database has existing collections. Possible values are:
100
- * + `UNKNOWN`: The attempt to connect to the external database failed, so status is unknown.
101
- * + `NO`: External database does not have any existing collections.
102
- * + `YES`: External database has existing collections.
103
- * @readonly
104
- */
105
- hasCollections?: CollectionsFound;
106
- }
107
- export declare enum ProtocolVersion {
108
- UNKNOWN_PROTOCOL_VERSION = "UNKNOWN_PROTOCOL_VERSION",
109
- V1 = "V1",
110
- V2 = "V2",
111
- V3 = "V3"
112
- }
113
- export interface Capabilities {
114
- /** Whether the external database supports creating new collections, updating the structure of existing collections, or deleting them. */
115
- collectionModificationsSupported?: boolean;
116
- /**
117
- * Field types the external database supports.
118
- * This field only applies when `collectionModificationsSupported` is `true`.
119
- */
120
- fieldTypes?: FieldType[];
121
- }
122
- export interface GetExternalDatabaseConnectionRequest {
123
- /** Name of the external database connection to retrieve. */
124
- name: string;
125
- }
126
- export interface GetExternalDatabaseConnectionResponse {
127
- /** Details of the external database connection requested. */
128
- externalDatabaseConnection?: ExternalDatabaseConnection;
129
- }
130
- export interface ListExternalDatabaseConnectionsRequest {
131
- /** Paging */
132
- paging?: Paging;
133
- }
134
- export interface Paging {
135
- /** Number of items to load. */
136
- limit?: number | null;
137
- /** Number of items to skip in the current sort order. */
138
- offset?: number | null;
139
- }
140
- export interface ListExternalDatabaseConnectionsResponse {
141
- /** List of external database connections. */
142
- externalDatabaseConnections?: ExternalDatabaseConnection[];
143
- /** Paging metadata */
144
- pagingMetadata?: PagingMetadata;
145
- }
146
- export interface PagingMetadata {
147
- /** Number of items returned in the response. */
148
- count?: number | null;
149
- /** Offset that was requested. */
150
- offset?: number | null;
151
- /** Total number of items that match the query. */
152
- total?: number | null;
153
- /** Flag that indicates the server failed to calculate the `total` field. */
154
- tooManyToCount?: boolean | null;
155
- }
156
- export interface CreateExternalDatabaseConnectionRequest {
157
- /** External database connection details. */
158
- externalDatabaseConnection: ExternalDatabaseConnection;
159
- /** Connection type. */
160
- connectionType: ConnectionType;
161
- }
162
- export declare enum ConnectionType {
163
- /** Unknown connection type. */
164
- UNKNOWN_CONNECTION_TYPE = "UNKNOWN_CONNECTION_TYPE",
165
- /**
166
- * Connection to database adapter that implements legacy External Database Collections SPI (protocol version 1 or 2)
167
- * https://www.wix.com/velo/reference/spis/external-database-collections/introduction
168
- */
169
- STANDALONE = "STANDALONE",
170
- /**
171
- * Connection to database adapter that implements External Database SPI (protocol version 3)
172
- * https://dev.wix.com/docs/rest/internal-only/wix-data/external-database-spi/introduction
173
- * https://dev.wix.com/docs/rest/articles/getting-started/service-provider-interface
174
- */
175
- WIX_SPI = "WIX_SPI"
176
- }
177
- export interface CreateExternalDatabaseConnectionResponse {
178
- /** Details of external database connection created. */
179
- externalDatabaseConnection?: ExternalDatabaseConnection;
180
- }
181
- export interface UpdateExternalDatabaseConnectionRequest {
182
- /** Updated external database connection details. The existing connection is replaced with this version. */
183
- externalDatabaseConnection: ExternalDatabaseConnection;
184
- }
185
- export interface UpdateExternalDatabaseConnectionResponse {
186
- /** Updated external database connection details. */
187
- externalDatabaseConnection?: ExternalDatabaseConnection;
188
- }
189
- export interface DeleteExternalDatabaseConnectionRequest {
190
- /** Name of the external database connection to delete. */
191
- name: string;
192
- }
193
- export interface DeleteExternalDatabaseConnectionResponse {
194
- }
195
- export interface DomainEvent extends DomainEventBodyOneOf {
196
- createdEvent?: EntityCreatedEvent;
197
- updatedEvent?: EntityUpdatedEvent;
198
- deletedEvent?: EntityDeletedEvent;
199
- actionEvent?: ActionEvent;
200
- /**
201
- * Unique event ID.
202
- * Allows clients to ignore duplicate webhooks.
203
- */
204
- id?: string;
205
- /**
206
- * Assumes actions are also always typed to an entity_type
207
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
208
- */
209
- entityFqdn?: string;
210
- /**
211
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
212
- * This is although the created/updated/deleted notion is duplication of the oneof types
213
- * Example: created/updated/deleted/started/completed/email_opened
214
- */
215
- slug?: string;
216
- /** ID of the entity associated with the event. */
217
- entityId?: string;
218
- /** Event timestamp. */
219
- eventTime?: Date;
220
- /**
221
- * Whether the event was triggered as a result of a privacy regulation application
222
- * (for example, GDPR).
223
- */
224
- triggeredByAnonymizeRequest?: boolean | null;
225
- /** If present, indicates the action that triggered the event. */
226
- originatedFrom?: string | null;
227
- /**
228
- * A sequence number defining the order of updates to the underlying entity.
229
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
230
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
231
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
232
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
233
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
234
- */
235
- entityEventSequence?: string | null;
236
- }
237
- /** @oneof */
238
- export interface DomainEventBodyOneOf {
239
- createdEvent?: EntityCreatedEvent;
240
- updatedEvent?: EntityUpdatedEvent;
241
- deletedEvent?: EntityDeletedEvent;
242
- actionEvent?: ActionEvent;
243
- }
244
- export interface EntityCreatedEvent {
245
- entityAsJson?: string;
246
- }
247
- export interface EntityUpdatedEvent {
248
- /**
249
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
250
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
251
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
252
- */
253
- currentEntityAsJson?: string;
254
- }
255
- export interface EntityDeletedEvent {
256
- /** Entity that was deleted */
257
- deletedEntityAsJson?: string | null;
258
- }
259
- export interface ActionEvent {
260
- bodyAsJson?: string;
261
- }
262
- export interface GetExternalDatabaseConnectionResponseNonNullableFields {
263
- externalDatabaseConnection?: {
264
- name: string;
265
- connectionStatus?: {
266
- successful: boolean;
267
- causeOfFailure: CauseOfFailure;
268
- hasCollections: CollectionsFound;
269
- };
270
- protocolVersion: ProtocolVersion;
271
- capabilities?: {
272
- collectionModificationsSupported: boolean;
273
- fieldTypes: FieldType[];
274
- };
275
- };
276
- }
277
- export interface ListExternalDatabaseConnectionsResponseNonNullableFields {
278
- externalDatabaseConnections: {
279
- name: string;
280
- connectionStatus?: {
281
- successful: boolean;
282
- causeOfFailure: CauseOfFailure;
283
- hasCollections: CollectionsFound;
284
- };
285
- protocolVersion: ProtocolVersion;
286
- capabilities?: {
287
- collectionModificationsSupported: boolean;
288
- fieldTypes: FieldType[];
289
- };
290
- }[];
291
- }
292
- export interface CreateExternalDatabaseConnectionResponseNonNullableFields {
293
- externalDatabaseConnection?: {
294
- name: string;
295
- connectionStatus?: {
296
- successful: boolean;
297
- causeOfFailure: CauseOfFailure;
298
- hasCollections: CollectionsFound;
299
- };
300
- protocolVersion: ProtocolVersion;
301
- capabilities?: {
302
- collectionModificationsSupported: boolean;
303
- fieldTypes: FieldType[];
304
- };
305
- };
306
- }
307
- export interface UpdateExternalDatabaseConnectionResponseNonNullableFields {
308
- externalDatabaseConnection?: {
309
- name: string;
310
- connectionStatus?: {
311
- successful: boolean;
312
- causeOfFailure: CauseOfFailure;
313
- hasCollections: CollectionsFound;
314
- };
315
- protocolVersion: ProtocolVersion;
316
- capabilities?: {
317
- collectionModificationsSupported: boolean;
318
- fieldTypes: FieldType[];
319
- };
320
- };
321
- }
@@ -1,88 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConnectionType = exports.ProtocolVersion = exports.FieldType = exports.CollectionsFound = exports.CauseOfFailure = void 0;
4
- var CauseOfFailure;
5
- (function (CauseOfFailure) {
6
- /** No connection failure. */
7
- CauseOfFailure["NONE"] = "NONE";
8
- /** General communication failure. */
9
- CauseOfFailure["COMMUNICATION_FAILURE"] = "COMMUNICATION_FAILURE";
10
- /** External database host is unreachable. */
11
- CauseOfFailure["DESTINATION_HOST_UNREACHABLE"] = "DESTINATION_HOST_UNREACHABLE";
12
- /** Unauthorized to access the external database. */
13
- CauseOfFailure["UNAUTHORIZED"] = "UNAUTHORIZED";
14
- /** `endpoint` is not set. */
15
- CauseOfFailure["DESTINATION_ENDPOINT_NOT_DEFINED"] = "DESTINATION_ENDPOINT_NOT_DEFINED";
16
- })(CauseOfFailure || (exports.CauseOfFailure = CauseOfFailure = {}));
17
- var CollectionsFound;
18
- (function (CollectionsFound) {
19
- CollectionsFound["UNKNOWN"] = "UNKNOWN";
20
- CollectionsFound["YES"] = "YES";
21
- CollectionsFound["NO"] = "NO";
22
- })(CollectionsFound || (exports.CollectionsFound = CollectionsFound = {}));
23
- var FieldType;
24
- (function (FieldType) {
25
- FieldType["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
26
- FieldType["TEXT"] = "TEXT";
27
- FieldType["NUMBER"] = "NUMBER";
28
- FieldType["DATE"] = "DATE";
29
- FieldType["DATETIME"] = "DATETIME";
30
- FieldType["IMAGE"] = "IMAGE";
31
- FieldType["BOOLEAN"] = "BOOLEAN";
32
- FieldType["DOCUMENT"] = "DOCUMENT";
33
- FieldType["URL"] = "URL";
34
- FieldType["RICH_TEXT"] = "RICH_TEXT";
35
- FieldType["VIDEO"] = "VIDEO";
36
- FieldType["ANY"] = "ANY";
37
- FieldType["ARRAY_STRING"] = "ARRAY_STRING";
38
- FieldType["ARRAY_DOCUMENT"] = "ARRAY_DOCUMENT";
39
- FieldType["AUDIO"] = "AUDIO";
40
- FieldType["TIME"] = "TIME";
41
- FieldType["LANGUAGE"] = "LANGUAGE";
42
- FieldType["RICH_CONTENT"] = "RICH_CONTENT";
43
- FieldType["MEDIA_GALLERY"] = "MEDIA_GALLERY";
44
- FieldType["ADDRESS"] = "ADDRESS";
45
- FieldType["PAGE_LINK"] = "PAGE_LINK";
46
- FieldType["REFERENCE"] = "REFERENCE";
47
- FieldType["MULTI_REFERENCE"] = "MULTI_REFERENCE";
48
- FieldType["OBJECT"] = "OBJECT";
49
- FieldType["ARRAY"] = "ARRAY";
50
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
51
- FieldType["LEGACY_TIME"] = "LEGACY_TIME";
52
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
53
- FieldType["LEGACY_BOOK"] = "LEGACY_BOOK";
54
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
55
- FieldType["LEGACY_EXTERNAL_URL"] = "LEGACY_EXTERNAL_URL";
56
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
57
- FieldType["LEGACY_BROKEN_REFERENCE"] = "LEGACY_BROKEN_REFERENCE";
58
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
59
- FieldType["LEGACY_IMAGE"] = "LEGACY_IMAGE";
60
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
61
- FieldType["LEGACY_COLOR"] = "LEGACY_COLOR";
62
- /** Deprecated - can’t be added to collections. Can only appear in older collections. */
63
- FieldType["LEGACY_EXTERNAL_VIDEO"] = "LEGACY_EXTERNAL_VIDEO";
64
- })(FieldType || (exports.FieldType = FieldType = {}));
65
- var ProtocolVersion;
66
- (function (ProtocolVersion) {
67
- ProtocolVersion["UNKNOWN_PROTOCOL_VERSION"] = "UNKNOWN_PROTOCOL_VERSION";
68
- ProtocolVersion["V1"] = "V1";
69
- ProtocolVersion["V2"] = "V2";
70
- ProtocolVersion["V3"] = "V3";
71
- })(ProtocolVersion || (exports.ProtocolVersion = ProtocolVersion = {}));
72
- var ConnectionType;
73
- (function (ConnectionType) {
74
- /** Unknown connection type. */
75
- ConnectionType["UNKNOWN_CONNECTION_TYPE"] = "UNKNOWN_CONNECTION_TYPE";
76
- /**
77
- * Connection to database adapter that implements legacy External Database Collections SPI (protocol version 1 or 2)
78
- * https://www.wix.com/velo/reference/spis/external-database-collections/introduction
79
- */
80
- ConnectionType["STANDALONE"] = "STANDALONE";
81
- /**
82
- * Connection to database adapter that implements External Database SPI (protocol version 3)
83
- * https://dev.wix.com/docs/rest/internal-only/wix-data/external-database-spi/introduction
84
- * https://dev.wix.com/docs/rest/articles/getting-started/service-provider-interface
85
- */
86
- ConnectionType["WIX_SPI"] = "WIX_SPI";
87
- })(ConnectionType || (exports.ConnectionType = ConnectionType = {}));
88
- //# sourceMappingURL=data-v1-external-database-connection.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-v1-external-database-connection.types.js","sourceRoot":"","sources":["../../../src/data-v1-external-database-connection.types.ts"],"names":[],"mappings":";;;AA4BA,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,6BAA6B;IAC7B,+BAAa,CAAA;IACb,qCAAqC;IACrC,iEAA+C,CAAA;IAC/C,6CAA6C;IAC7C,+EAA6D,CAAA;IAC7D,oDAAoD;IACpD,+CAA6B,CAAA;IAC7B,6BAA6B;IAC7B,uFAAqE,CAAA;AACvE,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,+BAAW,CAAA;IACX,6BAAS,CAAA;AACX,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAED,IAAY,SAwCX;AAxCD,WAAY,SAAS;IACnB,sDAAyC,CAAA;IACzC,0BAAa,CAAA;IACb,8BAAiB,CAAA;IACjB,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,wBAAW,CAAA;IACX,oCAAuB,CAAA;IACvB,4BAAe,CAAA;IACf,wBAAW,CAAA;IACX,0CAA6B,CAAA;IAC7B,8CAAiC,CAAA;IACjC,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,0CAA6B,CAAA;IAC7B,4CAA+B,CAAA;IAC/B,gCAAmB,CAAA;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,gDAAmC,CAAA;IACnC,8BAAiB,CAAA;IACjB,4BAAe,CAAA;IACf,wFAAwF;IACxF,wCAA2B,CAAA;IAC3B,wFAAwF;IACxF,wCAA2B,CAAA;IAC3B,wFAAwF;IACxF,wDAA2C,CAAA;IAC3C,wFAAwF;IACxF,gEAAmD,CAAA;IACnD,wFAAwF;IACxF,0CAA6B,CAAA;IAC7B,wFAAwF;IACxF,0CAA6B,CAAA;IAC7B,wFAAwF;IACxF,4DAA+C,CAAA;AACjD,CAAC,EAxCW,SAAS,yBAAT,SAAS,QAwCpB;AAwBD,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;AACX,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AA2DD,IAAY,cAcX;AAdD,WAAY,cAAc;IACxB,+BAA+B;IAC/B,qEAAmD,CAAA;IACnD;;;OAGG;IACH,2CAAyB,CAAA;IACzB;;;;OAIG;IACH,qCAAmB,CAAA;AACrB,CAAC,EAdW,cAAc,8BAAd,cAAc,QAczB"}