@wix/bex-utils 2.92.0 → 2.94.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 (117) hide show
  1. package/@wix/ambassador-os-tags-v1-tag/README.md +34 -0
  2. package/@wix/ambassador-os-tags-v1-tag/builders/package.json +3 -3
  3. package/@wix/ambassador-os-tags-v1-tag/{build/cjs → cjs/build}/builders.impl.d.ts +44 -23
  4. package/@wix/ambassador-os-tags-v1-tag/{build/cjs → cjs/build}/builders.impl.js +385 -145
  5. package/@wix/ambassador-os-tags-v1-tag/cjs/build/builders.impl.js.map +1 -0
  6. package/@wix/ambassador-os-tags-v1-tag/cjs/build/crud/http.impl.d.ts +9 -0
  7. package/@wix/ambassador-os-tags-v1-tag/cjs/build/crud/http.impl.js +16 -0
  8. package/@wix/ambassador-os-tags-v1-tag/cjs/build/crud/http.impl.js.map +1 -0
  9. package/@wix/ambassador-os-tags-v1-tag/{build/cjs → cjs/build}/crud/rpc.impl.d.ts +7 -5
  10. package/@wix/ambassador-os-tags-v1-tag/cjs/build/crud/rpc.impl.js +50 -0
  11. package/@wix/ambassador-os-tags-v1-tag/cjs/build/crud/rpc.impl.js.map +1 -0
  12. package/@wix/ambassador-os-tags-v1-tag/cjs/build/http.impl.d.ts +42 -0
  13. package/@wix/ambassador-os-tags-v1-tag/{build/cjs → cjs/build}/http.impl.js +287 -13
  14. package/@wix/ambassador-os-tags-v1-tag/cjs/build/http.impl.js.map +1 -0
  15. package/@wix/ambassador-os-tags-v1-tag/cjs/build/meta.impl.d.ts +46 -0
  16. package/@wix/ambassador-os-tags-v1-tag/{build/cjs → cjs/build}/meta.impl.js +166 -20
  17. package/@wix/ambassador-os-tags-v1-tag/cjs/build/meta.impl.js.map +1 -0
  18. package/@wix/ambassador-os-tags-v1-tag/{build/cjs → cjs/build}/proto/client/proto-generated.d.ts +2520 -0
  19. package/@wix/ambassador-os-tags-v1-tag/{build/cjs → cjs/build}/proto/proto-generated.d.ts +1267 -0
  20. package/@wix/ambassador-os-tags-v1-tag/cjs/build/proto/proto-generated.js +1 -0
  21. package/@wix/ambassador-os-tags-v1-tag/{build/cjs → cjs/build}/proto/server/proto-generated.d.ts +2529 -22
  22. package/@wix/ambassador-os-tags-v1-tag/cjs/build/rpc.impl.d.ts +49 -0
  23. package/@wix/ambassador-os-tags-v1-tag/{build/cjs → cjs/build}/rpc.impl.js +133 -21
  24. package/@wix/ambassador-os-tags-v1-tag/cjs/build/rpc.impl.js.map +1 -0
  25. package/@wix/ambassador-os-tags-v1-tag/{build/es → cjs/build}/types.impl.d.ts +382 -170
  26. package/@wix/ambassador-os-tags-v1-tag/{build/cjs → cjs/build}/types.impl.js +14 -9
  27. package/@wix/ambassador-os-tags-v1-tag/cjs/build/types.impl.js.map +1 -0
  28. package/@wix/ambassador-os-tags-v1-tag/cjs/package.json +3 -0
  29. package/@wix/ambassador-os-tags-v1-tag/crud/http/package.json +3 -3
  30. package/@wix/ambassador-os-tags-v1-tag/crud/rpc/package.json +2 -2
  31. package/@wix/ambassador-os-tags-v1-tag/{build/es → es/build}/builders.impl.d.ts +44 -23
  32. package/@wix/ambassador-os-tags-v1-tag/{build/es → es/build}/builders.impl.js +327 -111
  33. package/@wix/ambassador-os-tags-v1-tag/es/build/builders.impl.js.map +1 -0
  34. package/@wix/ambassador-os-tags-v1-tag/es/build/crud/http.impl.d.ts +9 -0
  35. package/@wix/ambassador-os-tags-v1-tag/es/build/crud/http.impl.js +12 -0
  36. package/@wix/ambassador-os-tags-v1-tag/es/build/crud/http.impl.js.map +1 -0
  37. package/@wix/ambassador-os-tags-v1-tag/{build/es → es/build}/crud/rpc.impl.d.ts +7 -5
  38. package/@wix/ambassador-os-tags-v1-tag/{build/es → es/build}/crud/rpc.impl.js +12 -4
  39. package/@wix/ambassador-os-tags-v1-tag/es/build/crud/rpc.impl.js.map +1 -0
  40. package/@wix/ambassador-os-tags-v1-tag/es/build/http.impl.d.ts +42 -0
  41. package/@wix/ambassador-os-tags-v1-tag/{build/es → es/build}/http.impl.js +270 -2
  42. package/@wix/ambassador-os-tags-v1-tag/es/build/http.impl.js.map +1 -0
  43. package/@wix/ambassador-os-tags-v1-tag/es/build/meta.impl.d.ts +46 -0
  44. package/@wix/ambassador-os-tags-v1-tag/{build/es → es/build}/meta.impl.js +127 -1
  45. package/@wix/ambassador-os-tags-v1-tag/es/build/meta.impl.js.map +1 -0
  46. package/@wix/ambassador-os-tags-v1-tag/es/build/proto/client/proto-generated.d.ts +12332 -0
  47. package/@wix/ambassador-os-tags-v1-tag/es/build/proto/client/proto-generated.js +5 -0
  48. package/@wix/ambassador-os-tags-v1-tag/es/build/proto/proto-generated.d.ts +6182 -0
  49. package/@wix/ambassador-os-tags-v1-tag/es/build/proto/proto-generated.js +1 -0
  50. package/@wix/ambassador-os-tags-v1-tag/es/build/proto/server/proto-generated.d.ts +12307 -0
  51. package/@wix/ambassador-os-tags-v1-tag/es/build/proto/server/proto-generated.js +5 -0
  52. package/@wix/ambassador-os-tags-v1-tag/es/build/rpc.impl.d.ts +49 -0
  53. package/@wix/ambassador-os-tags-v1-tag/{build/es → es/build}/rpc.impl.js +93 -1
  54. package/@wix/ambassador-os-tags-v1-tag/es/build/rpc.impl.js.map +1 -0
  55. package/@wix/ambassador-os-tags-v1-tag/{build/cjs → es/build}/types.impl.d.ts +382 -170
  56. package/@wix/ambassador-os-tags-v1-tag/{build/es → es/build}/types.impl.js +12 -7
  57. package/@wix/ambassador-os-tags-v1-tag/es/build/types.impl.js.map +1 -0
  58. package/@wix/ambassador-os-tags-v1-tag/http/package.json +3 -3
  59. package/@wix/ambassador-os-tags-v1-tag/meta/package.json +3 -3
  60. package/@wix/ambassador-os-tags-v1-tag/package.json +68 -13
  61. package/@wix/ambassador-os-tags-v1-tag/rpc/package.json +2 -2
  62. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/com/wixpress/iptf/webhooks/debug.proto +34 -0
  63. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/com/wixpress/iptf/webhooks/kv.proto +42 -0
  64. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/com/wixpress/iptf/webhooks/message_envelope.proto +54 -0
  65. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/items_selection_config.proto +3 -0
  66. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/webhooks_debug_service.proto +32 -0
  67. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/webhooks_sync_service.proto +33 -0
  68. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/annotations.proto +111 -3
  69. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/callback.proto +10 -0
  70. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/entity.proto +6 -0
  71. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/permissions.proto +6 -0
  72. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/subscription.proto +1 -1
  73. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/validations.proto +5 -0
  74. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/domainevents/attributeupdated.proto +20 -0
  75. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/domainevents/domainevents.proto +112 -0
  76. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/query.proto +69 -0
  77. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/tag.proto +12 -0
  78. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/tags_account_service.proto +43 -3
  79. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/tags_global_service.proto +171 -0
  80. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/tags_service.proto +49 -3
  81. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/upstream/wix/common/bulk.proto +69 -0
  82. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/upstream/wix/common/paging.proto +121 -0
  83. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/upstream/wix/common/query.proto +771 -0
  84. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/upstream/wix/common/sorting.proto +27 -0
  85. package/@wix/ambassador-os-tags-v1-tag/types/package.json +3 -3
  86. package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +4 -0
  87. package/@wix/bex-bundled-mini-essentials/dist/tsconfig.tsbuildinfo +1 -0
  88. package/@wix/bex-bundled-mini-essentials/package.json +1 -1
  89. package/package.json +4 -4
  90. package/@wix/ambassador-os-tags-v1-tag/build/cjs/builders.impl.js.map +0 -1
  91. package/@wix/ambassador-os-tags-v1-tag/build/cjs/crud/http.impl.d.ts +0 -1
  92. package/@wix/ambassador-os-tags-v1-tag/build/cjs/crud/http.impl.js +0 -5
  93. package/@wix/ambassador-os-tags-v1-tag/build/cjs/crud/http.impl.js.map +0 -1
  94. package/@wix/ambassador-os-tags-v1-tag/build/cjs/crud/rpc.impl.js +0 -41
  95. package/@wix/ambassador-os-tags-v1-tag/build/cjs/crud/rpc.impl.js.map +0 -1
  96. package/@wix/ambassador-os-tags-v1-tag/build/cjs/http.impl.d.ts +0 -26
  97. package/@wix/ambassador-os-tags-v1-tag/build/cjs/http.impl.js.map +0 -1
  98. package/@wix/ambassador-os-tags-v1-tag/build/cjs/meta.impl.d.ts +0 -33
  99. package/@wix/ambassador-os-tags-v1-tag/build/cjs/meta.impl.js.map +0 -1
  100. package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/proto-generated.js +0 -83454
  101. package/@wix/ambassador-os-tags-v1-tag/build/cjs/rpc.impl.d.ts +0 -34
  102. package/@wix/ambassador-os-tags-v1-tag/build/cjs/rpc.impl.js.map +0 -1
  103. package/@wix/ambassador-os-tags-v1-tag/build/cjs/types.impl.js.map +0 -1
  104. package/@wix/ambassador-os-tags-v1-tag/build/es/builders.impl.js.map +0 -1
  105. package/@wix/ambassador-os-tags-v1-tag/build/es/crud/http.impl.d.ts +0 -1
  106. package/@wix/ambassador-os-tags-v1-tag/build/es/crud/http.impl.js +0 -2
  107. package/@wix/ambassador-os-tags-v1-tag/build/es/crud/http.impl.js.map +0 -1
  108. package/@wix/ambassador-os-tags-v1-tag/build/es/crud/rpc.impl.js.map +0 -1
  109. package/@wix/ambassador-os-tags-v1-tag/build/es/http.impl.d.ts +0 -26
  110. package/@wix/ambassador-os-tags-v1-tag/build/es/http.impl.js.map +0 -1
  111. package/@wix/ambassador-os-tags-v1-tag/build/es/meta.impl.d.ts +0 -33
  112. package/@wix/ambassador-os-tags-v1-tag/build/es/meta.impl.js.map +0 -1
  113. package/@wix/ambassador-os-tags-v1-tag/build/es/rpc.impl.d.ts +0 -34
  114. package/@wix/ambassador-os-tags-v1-tag/build/es/rpc.impl.js.map +0 -1
  115. package/@wix/ambassador-os-tags-v1-tag/build/es/types.impl.js.map +0 -1
  116. /package/@wix/ambassador-os-tags-v1-tag/{build/cjs → cjs/build}/proto/client/proto-generated.js +0 -0
  117. /package/@wix/ambassador-os-tags-v1-tag/{build/cjs → cjs/build}/proto/server/proto-generated.js +0 -0
@@ -1,105 +1,94 @@
1
- export interface Tag {
1
+ export interface AccountInfo {
2
2
  /**
3
- * Tag ID.
4
- * @readonly
5
- * @maxLength 5
3
+ * ID of the Wix account associated with the event.
4
+ * @format GUID
6
5
  */
7
- id?: string | null;
6
+ accountId?: string | null;
8
7
  /**
9
- * Revision number, which increments by 1 each time the tag is updated.
10
- * @readonly
8
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
9
+ * @format GUID
11
10
  */
12
- revision?: string | null;
11
+ parentAccountId?: string | null;
13
12
  /**
14
- * Date and time the tag was created.
15
- * @readonly
13
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
14
+ * @format GUID
16
15
  */
17
- createdDate?: Date | null;
16
+ siteId?: string | null;
17
+ }
18
+ export interface IdentificationData extends IdentificationDataIdOneOf {
18
19
  /**
19
- * Date and time the tag was last updated.
20
- * @readonly
20
+ * ID of a site visitor that has not logged in to the site.
21
+ * @format GUID
21
22
  */
22
- updatedDate?: Date | null;
23
+ anonymousVisitorId?: string;
23
24
  /**
24
- * Tag name.
25
- * @maxLength 255
25
+ * ID of a site visitor that has logged in to the site.
26
+ * @format GUID
26
27
  */
27
- name?: string | null;
28
+ memberId?: string;
28
29
  /**
29
- * FQDN of the entity that belongs to this tag.
30
- * @immutable
31
- * @maxLength 255
30
+ * ID of a Wix user (site owner, contributor, etc.).
31
+ * @format GUID
32
32
  */
33
- fqdn?: string | null;
33
+ wixUserId?: string;
34
34
  /**
35
- * Tag exposure.
36
- * @internal
35
+ * ID of an app.
36
+ * @format GUID
37
37
  */
38
- exposure?: TagExposure;
38
+ appId?: string;
39
+ /** @readonly */
40
+ identityType?: WebhookIdentityType;
41
+ }
42
+ /** @oneof */
43
+ export interface IdentificationDataIdOneOf {
39
44
  /**
40
- * Indicates whether this tag is deleted.
41
- * @internal
42
- * @readonly
45
+ * ID of a site visitor that has not logged in to the site.
46
+ * @format GUID
43
47
  */
44
- deleted?: boolean | null;
45
- }
46
- export declare enum TagExposure {
47
- UNKNOWN = "UNKNOWN",
48
- PRIVATE = "PRIVATE",
49
- /** Not handled by client yet. */
50
- PUBLIC = "PUBLIC"
51
- }
52
- export interface CreateTagForAccountRequest {
53
- /** The tag to be created. */
54
- tag: Tag;
55
- }
56
- export interface CreateTagForAccountResponse {
57
- /** The created tag. */
58
- tag?: Tag;
59
- }
60
- export interface GetTagForAccountRequest {
48
+ anonymousVisitorId?: string;
61
49
  /**
62
- * The ID of the tag to retrieve.
63
- * @maxLength 5
50
+ * ID of a site visitor that has logged in to the site.
51
+ * @format GUID
64
52
  */
65
- tagId: string;
66
- }
67
- export interface GetTagForAccountResponse {
68
- /** The requested tag. */
69
- tag?: Tag;
70
- }
71
- export interface UpdateTagForAccountRequest {
72
- /** The tag to be updated, which may be partial. */
73
- tag: Tag;
74
- }
75
- export interface UpdateTagForAccountResponse {
76
- /** The updated tag. */
77
- tag?: Tag;
78
- }
79
- export interface DeleteTagForAccountRequest {
53
+ memberId?: string;
80
54
  /**
81
- * ID of the tag to delete.
82
- * @maxLength 5
55
+ * ID of a Wix user (site owner, contributor, etc.).
56
+ * @format GUID
83
57
  */
84
- tagId: string;
58
+ wixUserId?: string;
59
+ /**
60
+ * ID of an app.
61
+ * @format GUID
62
+ */
63
+ appId?: string;
85
64
  }
86
- export interface DeleteTagForAccountResponse {
65
+ export declare enum WebhookIdentityType {
66
+ UNKNOWN = "UNKNOWN",
67
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
68
+ MEMBER = "MEMBER",
69
+ WIX_USER = "WIX_USER",
70
+ APP = "APP"
87
71
  }
88
- export interface ListTagsForAccountRequest {
72
+ export interface MessageEnvelope {
89
73
  /**
90
- * The Fully Qualified Domain Name (FQDN) to which the tags are associated. Currently supports only eCommerce Orders: `wix.ecom.v1.order`.
91
- * @maxLength 255
74
+ * App instance ID.
75
+ * @format GUID
92
76
  */
93
- fqdn: string;
77
+ instanceId?: string | null;
94
78
  /**
95
- * The tag exposure.
96
- * @internal
79
+ * Event type.
80
+ * @maxLength 150
97
81
  */
98
- exposure?: TagExposure;
82
+ eventType?: string;
83
+ /** The identification type and identity data. */
84
+ identity?: IdentificationData;
85
+ /** Stringify payload. */
86
+ data?: string;
87
+ /** Details related to the account */
88
+ accountInfo?: AccountInfo;
99
89
  }
100
- export interface ListTagsForAccountResponse {
101
- /** A list of tags. */
102
- tags?: Tag[];
90
+ export interface ActionEvent {
91
+ bodyAsJson?: string;
103
92
  }
104
93
  export interface DomainEvent extends DomainEventBodyOneOf {
105
94
  createdEvent?: EntityCreatedEvent;
@@ -152,13 +141,24 @@ export interface EntityCreatedEvent {
152
141
  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
153
142
  restoreInfo?: RestoreInfo;
154
143
  /**
155
- * WIP
144
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
156
145
  * @internal
157
146
  */
158
147
  additionalMetadataAsJson?: string | null;
159
148
  }
160
- export interface RestoreInfo {
161
- deletedDate?: Date | null;
149
+ export interface EntityDeletedEvent {
150
+ /**
151
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
152
+ * @internal
153
+ */
154
+ movedToTrash?: boolean | null;
155
+ /** Entity that was deleted. */
156
+ deletedEntityAsJson?: string | null;
157
+ /**
158
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
159
+ * @internal
160
+ */
161
+ additionalMetadataAsJson?: string | null;
162
162
  }
163
163
  export interface EntityUpdatedEvent {
164
164
  /**
@@ -179,121 +179,265 @@ export interface EntityUpdatedEvent {
179
179
  */
180
180
  previousEntityAsJson?: string | null;
181
181
  /**
182
- * WIP - This property will hold both names and previous values of the updated fields of the entity.
183
- * For more details please see [adr](https://docs.google.com/document/d/1PdqsOM20Ph2HAkmx8zvUnzzk3Sekp3BR9h34wSvsRnI/edit#heading=h.phlw87mh2imx) or [issue](https://github.com/wix-private/nile-tracker/issues/363)
182
+ * Map of fully qualified field paths to their previous values for fields that changed.
183
+ * 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)
184
184
  * @internal
185
185
  */
186
186
  modifiedFields?: Record<string, any>;
187
187
  /**
188
- * WIP
188
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
189
189
  * @internal
190
190
  */
191
191
  additionalMetadataAsJson?: string | null;
192
192
  }
193
- export interface EntityDeletedEvent {
193
+ export interface RestoreInfo {
194
+ deletedDate?: Date | null;
195
+ }
196
+ export interface CreateGlobalTagRequest {
197
+ /** The tag to be created. */
198
+ tag: Tag;
199
+ }
200
+ export interface CreateGlobalTagResponse {
201
+ /** The created tag. */
202
+ tag?: Tag;
203
+ }
204
+ export interface CreateTagForAccountRequest {
205
+ /** The tag to be created. */
206
+ tag: Tag;
207
+ }
208
+ export interface CreateTagForAccountResponse {
209
+ /** The created tag. */
210
+ tag?: Tag;
211
+ }
212
+ export interface CreateTagRequest {
213
+ /** The tag to be created. */
214
+ tag: Tag;
215
+ }
216
+ export interface CreateTagResponse {
217
+ /** The created tag. */
218
+ tag?: Tag;
219
+ }
220
+ export interface DeleteGlobalTagRequest {
194
221
  /**
195
- * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
196
- * @internal
222
+ * ID of the tag to delete.
223
+ * @maxLength 5
197
224
  */
198
- movedToTrash?: boolean | null;
199
- /** Entity that was deleted. */
200
- deletedEntityAsJson?: string | null;
225
+ tagId: string;
226
+ }
227
+ export interface DeleteGlobalTagResponse {
228
+ }
229
+ export interface DeleteTagForAccountRequest {
201
230
  /**
202
- * WIP
203
- * @internal
231
+ * ID of the tag to delete.
232
+ * @maxLength 5
204
233
  */
205
- additionalMetadataAsJson?: string | null;
234
+ tagId: string;
206
235
  }
207
- export interface ActionEvent {
208
- bodyAsJson?: string;
236
+ export interface DeleteTagForAccountResponse {
209
237
  }
210
- export interface MessageEnvelope {
238
+ export interface DeleteTagRequest {
211
239
  /**
212
- * App instance ID.
213
- * @format GUID
240
+ * ID of the tag to delete.
241
+ * @maxLength 5
214
242
  */
215
- instanceId?: string | null;
243
+ tagId: string;
244
+ }
245
+ export interface DeleteTagResponse {
246
+ }
247
+ export interface GetGlobalTagRequest {
216
248
  /**
217
- * Event type.
218
- * @maxLength 150
249
+ * The ID of the tag to retrieve.
250
+ * @maxLength 5
219
251
  */
220
- eventType?: string;
221
- /** The identification type and identity data. */
222
- identity?: IdentificationData;
223
- /** Stringify payload. */
224
- data?: string;
252
+ tagId: string;
225
253
  }
226
- export interface IdentificationData extends IdentificationDataIdOneOf {
254
+ export interface GetGlobalTagResponse {
255
+ /** The requested tag. */
256
+ tag?: Tag;
257
+ }
258
+ export interface GetTagForAccountRequest {
227
259
  /**
228
- * ID of a site visitor that has not logged in to the site.
229
- * @format GUID
260
+ * The ID of the tag to retrieve.
261
+ * @maxLength 5
230
262
  */
231
- anonymousVisitorId?: string;
263
+ tagId: string;
264
+ }
265
+ export interface GetTagForAccountResponse {
266
+ /** The requested tag. */
267
+ tag?: Tag;
268
+ }
269
+ export interface GetTagRequest {
232
270
  /**
233
- * ID of a site visitor that has logged in to the site.
234
- * @format GUID
271
+ * The ID of the tag to retrieve.
272
+ * @maxLength 5
235
273
  */
236
- memberId?: string;
274
+ tagId: string;
275
+ }
276
+ export interface GetTagResponse {
277
+ /** The requested tag. */
278
+ tag?: Tag;
279
+ }
280
+ export interface ListGlobalTagsRequest {
237
281
  /**
238
- * ID of a Wix user (site owner, contributor, etc.).
239
- * @format GUID
282
+ * The Fully Qualified Domain Name (FQDN) to which the tags are associated.
283
+ * @maxLength 255
240
284
  */
241
- wixUserId?: string;
285
+ fqdn: string;
242
286
  /**
243
- * ID of an app.
244
- * @format GUID
287
+ * The tag exposure.
288
+ * @internal
245
289
  */
246
- appId?: string;
247
- /** @readonly */
248
- identityType?: WebhookIdentityType;
290
+ exposure?: TagExposure;
249
291
  }
250
- /** @oneof */
251
- export interface IdentificationDataIdOneOf {
292
+ export interface ListGlobalTagsResponse {
293
+ /** A list of tags. */
294
+ tags?: Tag[];
295
+ }
296
+ export interface ListTagsForAccountRequest {
252
297
  /**
253
- * ID of a site visitor that has not logged in to the site.
254
- * @format GUID
298
+ * The Fully Qualified Domain Name (FQDN) to which the tags are associated. Currently supports only eCommerce Orders: `wix.ecom.v1.order`.
299
+ * @maxLength 255
255
300
  */
256
- anonymousVisitorId?: string;
301
+ fqdn: string;
257
302
  /**
258
- * ID of a site visitor that has logged in to the site.
259
- * @format GUID
303
+ * The tag exposure.
304
+ * @internal
260
305
  */
261
- memberId?: string;
306
+ exposure?: TagExposure;
307
+ }
308
+ export interface ListTagsForAccountResponse {
309
+ /** A list of tags. */
310
+ tags?: Tag[];
311
+ }
312
+ export interface ListTagsRequest {
262
313
  /**
263
- * ID of a Wix user (site owner, contributor, etc.).
264
- * @format GUID
314
+ * The Fully Qualified Domain Name (FQDN) to which the tags are associated. Currently supports only eCommerce Orders: `wix.ecom.v1.order`.
315
+ * @maxLength 255
265
316
  */
266
- wixUserId?: string;
317
+ fqdn: string;
267
318
  /**
268
- * ID of an app.
269
- * @format GUID
319
+ * The tag exposure.
320
+ * @internal
270
321
  */
271
- appId?: string;
322
+ exposure?: TagExposure;
272
323
  }
273
- export declare enum WebhookIdentityType {
274
- UNKNOWN = "UNKNOWN",
275
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
276
- MEMBER = "MEMBER",
277
- WIX_USER = "WIX_USER",
278
- APP = "APP"
324
+ export interface ListTagsResponse {
325
+ /** A list of tags. */
326
+ tags?: Tag[];
279
327
  }
280
- export interface CreateTagRequest {
281
- /** The tag to be created. */
328
+ export interface MigrateTagRequest {
329
+ /** The tag to be migrated with custom createdDate. */
282
330
  tag: Tag;
283
331
  }
284
- export interface CreateTagResponse {
285
- /** The created tag. */
332
+ export interface MigrateTagResponse {
333
+ /** The migrated tag. */
286
334
  tag?: Tag;
287
335
  }
288
- export interface GetTagRequest {
336
+ export interface QueryTagsForAccountRequest {
289
337
  /**
290
- * The ID of the tag to retrieve.
338
+ * The Fully Qualified Domain Name (FQDN) to which the tags are associated. Currently supports only eCommerce Orders: `wix.ecom.v1.order`.
339
+ * @maxLength 255
340
+ */
341
+ fqdn: string;
342
+ /**
343
+ * The tag exposure.
344
+ * @internal
345
+ */
346
+ exposure?: TagExposure;
347
+ /** WQL expression. */
348
+ query: CursorQuery;
349
+ }
350
+ export interface QueryTagsForAccountResponse {
351
+ /** A list of tags. */
352
+ tags?: Tag[];
353
+ /** Paging metadata */
354
+ pagingMetadata?: CursorPagingMetadata;
355
+ }
356
+ export interface QueryTagsRequest {
357
+ /**
358
+ * The Fully Qualified Domain Name (FQDN) to which the tags are associated. Currently supports only eCommerce Orders: `wix.ecom.v1.order`.
359
+ * @maxLength 255
360
+ */
361
+ fqdn: string;
362
+ /**
363
+ * The tag exposure.
364
+ * @internal
365
+ */
366
+ exposure?: TagExposure;
367
+ /** WQL expression. */
368
+ query: CursorQuery;
369
+ }
370
+ export interface QueryTagsResponse {
371
+ /** A list of tags. */
372
+ tags?: Tag[];
373
+ /** Paging metadata */
374
+ pagingMetadata?: CursorPagingMetadata;
375
+ }
376
+ export interface Tag {
377
+ /**
378
+ * Tag ID.
379
+ * @readonly
291
380
  * @maxLength 5
292
381
  */
293
- tagId: string;
382
+ id?: string | null;
383
+ /**
384
+ * Revision number, which increments by 1 each time the tag is updated.
385
+ * @readonly
386
+ */
387
+ revision?: string | null;
388
+ /**
389
+ * Date and time the tag was created.
390
+ * @readonly
391
+ */
392
+ createdDate?: Date | null;
393
+ /**
394
+ * Date and time the tag was last updated.
395
+ * @readonly
396
+ */
397
+ updatedDate?: Date | null;
398
+ /**
399
+ * Tag name.
400
+ * @maxLength 255
401
+ */
402
+ name?: string | null;
403
+ /**
404
+ * FQDN of the entity that belongs to this tag.
405
+ * @immutable
406
+ * @maxLength 255
407
+ */
408
+ fqdn?: string | null;
409
+ /**
410
+ * Tag exposure.
411
+ * @internal
412
+ */
413
+ exposure?: TagExposure;
414
+ /**
415
+ * Indicates whether this tag is deleted.
416
+ * @internal
417
+ * @readonly
418
+ */
419
+ deleted?: boolean | null;
294
420
  }
295
- export interface GetTagResponse {
296
- /** The requested tag. */
421
+ export declare enum TagExposure {
422
+ UNKNOWN = "UNKNOWN",
423
+ PRIVATE = "PRIVATE",
424
+ /** Not handled by client yet. */
425
+ PUBLIC = "PUBLIC"
426
+ }
427
+ export interface UpdateGlobalTagRequest {
428
+ /** The tag to be updated, which may be partial. */
429
+ tag: Tag;
430
+ }
431
+ export interface UpdateGlobalTagResponse {
432
+ /** The updated tag. */
433
+ tag?: Tag;
434
+ }
435
+ export interface UpdateTagForAccountRequest {
436
+ /** The tag to be updated, which may be partial. */
437
+ tag: Tag;
438
+ }
439
+ export interface UpdateTagForAccountResponse {
440
+ /** The updated tag. */
297
441
  tag?: Tag;
298
442
  }
299
443
  export interface UpdateTagRequest {
@@ -304,41 +448,109 @@ export interface UpdateTagResponse {
304
448
  /** The updated tag. */
305
449
  tag?: Tag;
306
450
  }
307
- export interface DeleteTagRequest {
451
+ export interface CursorPaging {
308
452
  /**
309
- * ID of the tag to delete.
310
- * @maxLength 5
453
+ * Maximum number of items to return in the results.
454
+ * @max 100
311
455
  */
312
- tagId: string;
456
+ limit?: number | null;
457
+ /**
458
+ * Pointer to the next or previous page in the list of results.
459
+ *
460
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
461
+ * Not relevant for the first request.
462
+ * @maxLength 16000
463
+ */
464
+ cursor?: string | null;
313
465
  }
314
- export interface DeleteTagResponse {
466
+ export interface CursorPagingMetadata {
467
+ /** Number of items returned in current page. */
468
+ count?: number | null;
469
+ /** Cursor strings that point to the next page, previous page, or both. */
470
+ cursors?: Cursors;
471
+ /**
472
+ * Whether there are more pages to retrieve following the current page.
473
+ *
474
+ * + `true`: Another page of results can be retrieved.
475
+ * + `false`: This is the last page.
476
+ */
477
+ hasNext?: boolean | null;
315
478
  }
316
- export interface ListTagsRequest {
479
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
317
480
  /**
318
- * The Fully Qualified Domain Name (FQDN) to which the tags are associated. Currently supports only eCommerce Orders: `wix.ecom.v1.order`.
319
- * @maxLength 255
481
+ * Cursor paging options.
482
+ *
483
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
320
484
  */
321
- fqdn: string;
485
+ cursorPaging?: CursorPaging;
322
486
  /**
323
- * The tag exposure.
324
- * @internal
487
+ * Filter object.
488
+ *
489
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
325
490
  */
326
- exposure?: TagExposure;
491
+ filter?: Record<string, any> | null;
492
+ /**
493
+ * Sort object.
494
+ *
495
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
496
+ * @maxSize 5
497
+ */
498
+ sort?: Sorting[];
327
499
  }
328
- export interface ListTagsResponse {
329
- /** A list of tags. */
330
- tags?: Tag[];
500
+ /** @oneof */
501
+ export interface CursorQueryPagingMethodOneOf {
502
+ /**
503
+ * Cursor paging options.
504
+ *
505
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
506
+ */
507
+ cursorPaging?: CursorPaging;
331
508
  }
332
- export interface MigrateTagRequest {
333
- /** The tag to be migrated with custom createdDate. */
334
- tag: Tag;
509
+ export interface Cursors {
510
+ /**
511
+ * Cursor string pointing to the next page in the list of results.
512
+ * @maxLength 16000
513
+ */
514
+ next?: string | null;
515
+ /**
516
+ * Cursor pointing to the previous page in the list of results.
517
+ * @maxLength 16000
518
+ */
519
+ prev?: string | null;
335
520
  }
336
- export interface MigrateTagResponse {
337
- /** The migrated tag. */
338
- tag?: Tag;
521
+ export interface Sorting {
522
+ /**
523
+ * Name of the field to sort by.
524
+ * @maxLength 512
525
+ */
526
+ fieldName?: string;
527
+ /** Sort order. */
528
+ order?: SortOrder;
529
+ }
530
+ export declare enum SortOrder {
531
+ ASC = "ASC",
532
+ DESC = "DESC"
339
533
  }
340
534
  /** @docsIgnore */
341
- export declare type CreateTagForAccountApplicationErrors = {
535
+ export type CreateGlobalTagApplicationErrors = {
536
+ code?: 'FQDN_NOT_FOUND';
537
+ description?: string;
538
+ data?: Record<string, any>;
539
+ } | {
540
+ code?: 'TAG_NAME_ALREADY_EXISTS';
541
+ description?: string;
542
+ data?: Record<string, any>;
543
+ } | {
544
+ code?: 'TAGS_REACHED_LIMIT';
545
+ description?: string;
546
+ data?: Record<string, any>;
547
+ } | {
548
+ code?: 'CREATE_ID_EXHAUSTED_RETRY_ATTEMPTS';
549
+ description?: string;
550
+ data?: Record<string, any>;
551
+ };
552
+ /** @docsIgnore */
553
+ export type CreateTagForAccountApplicationErrors = {
342
554
  code?: 'FQDN_NOT_FOUND';
343
555
  description?: string;
344
556
  data?: Record<string, any>;
@@ -356,7 +568,7 @@ export declare type CreateTagForAccountApplicationErrors = {
356
568
  data?: Record<string, any>;
357
569
  };
358
570
  /** @docsIgnore */
359
- export declare type CreateTagApplicationErrors = {
571
+ export type CreateTagApplicationErrors = {
360
572
  code?: 'FQDN_NOT_FOUND';
361
573
  description?: string;
362
574
  data?: Record<string, any>;