@wix/auto_sdk_get-paid_bulk-downloads 1.0.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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.context.d.ts +24 -0
  11. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.context.js +33 -0
  12. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.context.js.map +1 -0
  13. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.http.d.ts +17 -0
  14. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.http.js +155 -0
  15. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.http.js.map +1 -0
  16. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.meta.d.ts +20 -0
  17. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.meta.js +104 -0
  18. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.meta.js.map +1 -0
  19. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.public.d.ts +47 -0
  20. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.public.js +74 -0
  21. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.public.js.map +1 -0
  22. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.types.d.ts +370 -0
  23. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.types.js +55 -0
  24. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.types.js.map +1 -0
  25. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.universal.d.ts +515 -0
  26. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.universal.js +232 -0
  27. package/build/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.context.d.ts +24 -0
  39. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.context.js +24 -0
  40. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.context.js.map +1 -0
  41. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.http.d.ts +17 -0
  42. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.http.js +148 -0
  43. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.http.js.map +1 -0
  44. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.meta.d.ts +20 -0
  45. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.meta.js +74 -0
  46. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.meta.js.map +1 -0
  47. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.public.d.ts +47 -0
  48. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.public.js +61 -0
  49. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.public.js.map +1 -0
  50. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.types.d.ts +370 -0
  51. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.types.js +52 -0
  52. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.types.js.map +1 -0
  53. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.universal.d.ts +515 -0
  54. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.universal.js +202 -0
  55. package/build/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.context.d.ts +24 -0
  66. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.context.js +33 -0
  67. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.context.js.map +1 -0
  68. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.http.d.ts +17 -0
  69. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.http.js +155 -0
  70. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.http.js.map +1 -0
  71. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.meta.d.ts +20 -0
  72. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.meta.js +104 -0
  73. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.meta.js.map +1 -0
  74. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.public.d.ts +47 -0
  75. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.public.js +74 -0
  76. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.public.js.map +1 -0
  77. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.types.d.ts +370 -0
  78. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.types.js +55 -0
  79. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.types.js.map +1 -0
  80. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.universal.d.ts +515 -0
  81. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.universal.js +232 -0
  82. package/build/internal/cjs/src/get-paid-downloader-v1-bulk-download-bulk-downloads.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.context.d.ts +24 -0
  93. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.context.js +24 -0
  94. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.context.js.map +1 -0
  95. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.http.d.ts +17 -0
  96. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.http.js +148 -0
  97. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.http.js.map +1 -0
  98. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.meta.d.ts +20 -0
  99. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.meta.js +74 -0
  100. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.meta.js.map +1 -0
  101. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.public.d.ts +47 -0
  102. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.public.js +61 -0
  103. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.public.js.map +1 -0
  104. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.types.d.ts +370 -0
  105. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.types.js +52 -0
  106. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.types.js.map +1 -0
  107. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.universal.d.ts +515 -0
  108. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.universal.js +202 -0
  109. package/build/internal/es/src/get-paid-downloader-v1-bulk-download-bulk-downloads.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,515 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+ /** A bulk download contains the download information to retrieve items in the Get Paid APIs. */
3
+ export interface BulkDownload {
4
+ /**
5
+ * Bulk download ID.
6
+ * @format GUID
7
+ * @readonly
8
+ * @immutable
9
+ */
10
+ _id?: string | null;
11
+ /**
12
+ * Revision number, which increments by 1 each time the bulk download is updated.
13
+ * To prevent conflicting changes, the current `revision` must be passed when updating the bulk download.
14
+ * @readonly
15
+ */
16
+ revision?: string | null;
17
+ /**
18
+ * Date and time the bulk download was created.
19
+ * @readonly
20
+ * @immutable
21
+ */
22
+ _createdDate?: Date | null;
23
+ /**
24
+ * Date and time the bulk download was last updated.
25
+ * @readonly
26
+ */
27
+ _updatedDate?: Date | null;
28
+ /**
29
+ * Date and time the bulk download expires.
30
+ *
31
+ * The .zip file is available for download with the `downloadUrl` until this time.
32
+ *
33
+ * Default expiration date is 24 hours after creation.
34
+ * @readonly
35
+ * @immutable
36
+ */
37
+ expirationDate?: Date | null;
38
+ /**
39
+ * Status of the bulk download generation.
40
+ * @readonly
41
+ */
42
+ downloadGenerationStatus?: DownloadGenerationStatusWithLiterals;
43
+ /**
44
+ * URL to download the generated .zip file. Open this URL in a browser to download the file.
45
+ *
46
+ * Only available when the `downloadGenerationStatus` is `"PARTIAL_SUCCESS"` or `"SUCCESS"`.
47
+ * @format WEB_URL
48
+ * @readonly
49
+ */
50
+ downloadUrl?: string | null;
51
+ /**
52
+ * App namespace. Currently only supports `"RECEIPTS"`.
53
+ * @immutable
54
+ */
55
+ namespace?: NamespaceWithLiterals;
56
+ /**
57
+ * List of IDs of the entities to include in the bulk download.
58
+ * @format GUID
59
+ * @immutable
60
+ * @minSize 2
61
+ * @maxSize 100
62
+ */
63
+ entityIds?: string[];
64
+ /**
65
+ * IDs of the entities that aren't included in the .zip file.
66
+ *
67
+ * If `downloadGenerationStatus` is `"PARTIAL_SUCCESS"` then these entities may still be included once the initiated download is complete.
68
+ * If the value of `downloadGenerationDetails.processed` matches `downloadGenerationDetails.total` then all of the entities have been processed and
69
+ * the skipped entities aren't included in the bulk download.
70
+ * @format GUID
71
+ * @readonly
72
+ * @maxSize 100
73
+ */
74
+ skippedEntityIds?: string[];
75
+ /**
76
+ * Details about the number of files processed.
77
+ * @readonly
78
+ */
79
+ downloadGenerationDetails?: DownloadGenerationDetails;
80
+ }
81
+ export declare enum DownloadGenerationStatus {
82
+ /** Unknown download status. */
83
+ UNKNOWN_DOWNLOAD_STATUS = "UNKNOWN_DOWNLOAD_STATUS",
84
+ /** Generation is in progress. */
85
+ PROCESSING = "PROCESSING",
86
+ /** Generation was successful for some, but not all, entities. Check `skippedEntityIds` for entities not included. The `downloadUrl` is available to download the .zip file containing the successfully generated entities. */
87
+ PARTIAL_SUCCESS = "PARTIAL_SUCCESS",
88
+ /** Generation was successful. The .zip file is ready for download using the `downloadUrl`. */
89
+ SUCCESS = "SUCCESS",
90
+ /** Generation has failed. */
91
+ FAILED = "FAILED"
92
+ }
93
+ /** @enumType */
94
+ export type DownloadGenerationStatusWithLiterals = DownloadGenerationStatus | 'UNKNOWN_DOWNLOAD_STATUS' | 'PROCESSING' | 'PARTIAL_SUCCESS' | 'SUCCESS' | 'FAILED';
95
+ export declare enum Namespace {
96
+ /** Unknown namespace. */
97
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
98
+ /** Receipts ([SDK](https://dev.wix.com/docs/sdk/backend-modules/get-paid/receipts/about-the-receipts-apis) | [REST](https://dev.wix.com/docs/rest/business-management/get-paid/receipts/about-the-receipts-apis)). */
99
+ RECEIPTS = "RECEIPTS"
100
+ }
101
+ /** @enumType */
102
+ export type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'RECEIPTS';
103
+ export interface DownloadGenerationDetails {
104
+ /** Number of files that have been processed. */
105
+ processed?: number;
106
+ /** Total number of files to process. */
107
+ total?: number;
108
+ }
109
+ export interface BulkDownloadStatusUpdate {
110
+ /**
111
+ * ID of the bulk download.
112
+ * @format GUID
113
+ */
114
+ downloadId?: string;
115
+ /** Status of the bulk download. */
116
+ downloadStatus?: DownloadStatusWithLiterals;
117
+ /**
118
+ * URL of the bulk download when it becomes ready.
119
+ * @format WEB_URL
120
+ */
121
+ downloadUrl?: string | null;
122
+ /**
123
+ * Application namespace.
124
+ * @immutable
125
+ */
126
+ namespace?: BulkDownloadStatusUpdateNamespaceWithLiterals;
127
+ }
128
+ export declare enum DownloadStatus {
129
+ /** Unknown download status. */
130
+ UNKNOWN_DOWNLOAD_STATUS = "UNKNOWN_DOWNLOAD_STATUS",
131
+ /** Generation was successful. You can download files using the `downloadUrl`. */
132
+ READY = "READY",
133
+ /** Generation has failed. */
134
+ FAILED = "FAILED"
135
+ }
136
+ /** @enumType */
137
+ export type DownloadStatusWithLiterals = DownloadStatus | 'UNKNOWN_DOWNLOAD_STATUS' | 'READY' | 'FAILED';
138
+ export declare enum BulkDownloadStatusUpdateNamespace {
139
+ /** Unknown namespace. */
140
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
141
+ /** Receipts application. */
142
+ RECEIPTS = "RECEIPTS"
143
+ }
144
+ /** @enumType */
145
+ export type BulkDownloadStatusUpdateNamespaceWithLiterals = BulkDownloadStatusUpdateNamespace | 'UNKNOWN_NAMESPACE' | 'RECEIPTS';
146
+ export interface InitiateBulkDownloadZip {
147
+ /**
148
+ * ID of the bulk download.
149
+ * @format GUID
150
+ */
151
+ downloadId?: string;
152
+ /**
153
+ * Application namespace.
154
+ * @immutable
155
+ */
156
+ namespace?: InitiateBulkDownloadZipNamespaceWithLiterals;
157
+ /**
158
+ * List of entities' information.
159
+ * @immutable
160
+ * @minSize 2
161
+ * @maxSize 100
162
+ */
163
+ entityInfo?: EntityInfo[];
164
+ }
165
+ export declare enum InitiateBulkDownloadZipNamespace {
166
+ /** Unknown namespace. */
167
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
168
+ /** Receipts application. */
169
+ RECEIPTS = "RECEIPTS"
170
+ }
171
+ /** @enumType */
172
+ export type InitiateBulkDownloadZipNamespaceWithLiterals = InitiateBulkDownloadZipNamespace | 'UNKNOWN_NAMESPACE' | 'RECEIPTS';
173
+ export interface EntityInfo {
174
+ /**
175
+ * The name of the entity which will be visible as a file inside the zip.
176
+ * @immutable
177
+ * @maxLength 30
178
+ */
179
+ entityName?: string;
180
+ /**
181
+ * The entity's ID to be downloaded.
182
+ * @immutable
183
+ * @format GUID
184
+ */
185
+ entityId?: string;
186
+ }
187
+ export interface InitiateBulkDownloadRequest {
188
+ /** Bulk download to initiate. */
189
+ bulkDownload: BulkDownload;
190
+ }
191
+ export interface InitiateBulkDownloadResponse {
192
+ /** The initiated bulk download. */
193
+ bulkDownload?: BulkDownload;
194
+ }
195
+ export interface GetBulkDownloadRequest {
196
+ /**
197
+ * Bulk download ID.
198
+ * @format GUID
199
+ */
200
+ bulkDownloadId: string;
201
+ }
202
+ export interface GetBulkDownloadResponse {
203
+ /** Retrieved bulk download. */
204
+ bulkDownload?: BulkDownload;
205
+ }
206
+ export interface ListMyBulkDownloadsRequest {
207
+ /** Namespace of the app to download from. */
208
+ namespace: NamespaceWithLiterals;
209
+ }
210
+ export interface ListMyBulkDownloadsResponse {
211
+ /** Retrieved bulk downloads. */
212
+ bulkDownloads?: BulkDownload[];
213
+ }
214
+ export interface UpdateDownloadGenerationDetailsRequest {
215
+ /**
216
+ * Bulk download ID of the `downloadGenerationStatus` to update.
217
+ * @format GUID
218
+ */
219
+ bulkDownloadId?: string;
220
+ }
221
+ export interface UpdateDownloadGenerationDetailsResponse {
222
+ /** Updated bulk download. */
223
+ bulkDownload?: BulkDownload;
224
+ }
225
+ export interface DeleteBulkDownloadRequest {
226
+ /**
227
+ * Bulk download ID to delete.
228
+ * @format GUID
229
+ */
230
+ bulkDownloadId: string;
231
+ }
232
+ export interface DeleteBulkDownloadResponse {
233
+ }
234
+ export interface Empty {
235
+ }
236
+ export interface DomainEvent extends DomainEventBodyOneOf {
237
+ createdEvent?: EntityCreatedEvent;
238
+ updatedEvent?: EntityUpdatedEvent;
239
+ deletedEvent?: EntityDeletedEvent;
240
+ actionEvent?: ActionEvent;
241
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
242
+ _id?: string;
243
+ /**
244
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
245
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
246
+ */
247
+ entityFqdn?: string;
248
+ /**
249
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
250
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
251
+ */
252
+ slug?: string;
253
+ /** ID of the entity associated with the event. */
254
+ entityId?: string;
255
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
256
+ eventTime?: Date | null;
257
+ /**
258
+ * Whether the event was triggered as a result of a privacy regulation application
259
+ * (for example, GDPR).
260
+ */
261
+ triggeredByAnonymizeRequest?: boolean | null;
262
+ /** If present, indicates the action that triggered the event. */
263
+ originatedFrom?: string | null;
264
+ /**
265
+ * 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.
266
+ * 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.
267
+ */
268
+ entityEventSequence?: string | null;
269
+ }
270
+ /** @oneof */
271
+ export interface DomainEventBodyOneOf {
272
+ createdEvent?: EntityCreatedEvent;
273
+ updatedEvent?: EntityUpdatedEvent;
274
+ deletedEvent?: EntityDeletedEvent;
275
+ actionEvent?: ActionEvent;
276
+ }
277
+ export interface EntityCreatedEvent {
278
+ entity?: string;
279
+ }
280
+ export interface RestoreInfo {
281
+ deletedDate?: Date | null;
282
+ }
283
+ export interface EntityUpdatedEvent {
284
+ /**
285
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
286
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
287
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
288
+ */
289
+ currentEntity?: string;
290
+ }
291
+ export interface EntityDeletedEvent {
292
+ /** Entity that was deleted. */
293
+ deletedEntity?: string | null;
294
+ }
295
+ export interface ActionEvent {
296
+ body?: string;
297
+ }
298
+ export interface MessageEnvelope {
299
+ /**
300
+ * App instance ID.
301
+ * @format GUID
302
+ */
303
+ instanceId?: string | null;
304
+ /**
305
+ * Event type.
306
+ * @maxLength 150
307
+ */
308
+ eventType?: string;
309
+ /** The identification type and identity data. */
310
+ identity?: IdentificationData;
311
+ /** Stringify payload. */
312
+ data?: string;
313
+ }
314
+ export interface IdentificationData extends IdentificationDataIdOneOf {
315
+ /**
316
+ * ID of a site visitor that has not logged in to the site.
317
+ * @format GUID
318
+ */
319
+ anonymousVisitorId?: string;
320
+ /**
321
+ * ID of a site visitor that has logged in to the site.
322
+ * @format GUID
323
+ */
324
+ memberId?: string;
325
+ /**
326
+ * ID of a Wix user (site owner, contributor, etc.).
327
+ * @format GUID
328
+ */
329
+ wixUserId?: string;
330
+ /**
331
+ * ID of an app.
332
+ * @format GUID
333
+ */
334
+ appId?: string;
335
+ /** @readonly */
336
+ identityType?: WebhookIdentityTypeWithLiterals;
337
+ }
338
+ /** @oneof */
339
+ export interface IdentificationDataIdOneOf {
340
+ /**
341
+ * ID of a site visitor that has not logged in to the site.
342
+ * @format GUID
343
+ */
344
+ anonymousVisitorId?: string;
345
+ /**
346
+ * ID of a site visitor that has logged in to the site.
347
+ * @format GUID
348
+ */
349
+ memberId?: string;
350
+ /**
351
+ * ID of a Wix user (site owner, contributor, etc.).
352
+ * @format GUID
353
+ */
354
+ wixUserId?: string;
355
+ /**
356
+ * ID of an app.
357
+ * @format GUID
358
+ */
359
+ appId?: string;
360
+ }
361
+ export declare enum WebhookIdentityType {
362
+ UNKNOWN = "UNKNOWN",
363
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
364
+ MEMBER = "MEMBER",
365
+ WIX_USER = "WIX_USER",
366
+ APP = "APP"
367
+ }
368
+ /** @enumType */
369
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
370
+ export interface BaseEventMetadata {
371
+ /**
372
+ * App instance ID.
373
+ * @format GUID
374
+ */
375
+ instanceId?: string | null;
376
+ /**
377
+ * Event type.
378
+ * @maxLength 150
379
+ */
380
+ eventType?: string;
381
+ /** The identification type and identity data. */
382
+ identity?: IdentificationData;
383
+ }
384
+ export interface EventMetadata extends BaseEventMetadata {
385
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
386
+ _id?: string;
387
+ /**
388
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
389
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
390
+ */
391
+ entityFqdn?: string;
392
+ /**
393
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
394
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
395
+ */
396
+ slug?: string;
397
+ /** ID of the entity associated with the event. */
398
+ entityId?: string;
399
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
400
+ eventTime?: Date | null;
401
+ /**
402
+ * Whether the event was triggered as a result of a privacy regulation application
403
+ * (for example, GDPR).
404
+ */
405
+ triggeredByAnonymizeRequest?: boolean | null;
406
+ /** If present, indicates the action that triggered the event. */
407
+ originatedFrom?: string | null;
408
+ /**
409
+ * 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.
410
+ * 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.
411
+ */
412
+ entityEventSequence?: string | null;
413
+ }
414
+ export interface BulkDownloadCreatedEnvelope {
415
+ entity: BulkDownload;
416
+ metadata: EventMetadata;
417
+ }
418
+ /**
419
+ * Triggered when a bulk download is created.
420
+ * @permissionId GET_PAID.BULK_DOWNLOAD_DOMAIN_EVENTS_READ
421
+ * @webhook
422
+ * @eventType wix.get_paid.downloader.v1.bulk_download_created
423
+ * @slug created
424
+ * @documentationMaturity preview
425
+ */
426
+ export declare function onBulkDownloadCreated(handler: (event: BulkDownloadCreatedEnvelope) => void | Promise<void>): void;
427
+ export interface BulkDownloadDeletedEnvelope {
428
+ metadata: EventMetadata;
429
+ }
430
+ /**
431
+ * Triggered when a bulk download is deleted.
432
+ * @permissionId GET_PAID.BULK_DOWNLOAD_DOMAIN_EVENTS_READ
433
+ * @webhook
434
+ * @eventType wix.get_paid.downloader.v1.bulk_download_deleted
435
+ * @slug deleted
436
+ * @documentationMaturity preview
437
+ */
438
+ export declare function onBulkDownloadDeleted(handler: (event: BulkDownloadDeletedEnvelope) => void | Promise<void>): void;
439
+ export interface BulkDownloadUpdatedEnvelope {
440
+ entity: BulkDownload;
441
+ metadata: EventMetadata;
442
+ }
443
+ /**
444
+ * Triggered when a bulk download is updated.
445
+ * @permissionId GET_PAID.BULK_DOWNLOAD_DOMAIN_EVENTS_READ
446
+ * @webhook
447
+ * @eventType wix.get_paid.downloader.v1.bulk_download_updated
448
+ * @slug updated
449
+ * @documentationMaturity preview
450
+ */
451
+ export declare function onBulkDownloadUpdated(handler: (event: BulkDownloadUpdatedEnvelope) => void | Promise<void>): void;
452
+ type BulkDownloadNonNullablePaths = `downloadGenerationStatus` | `namespace` | `entityIds` | `skippedEntityIds` | `downloadGenerationDetails.processed` | `downloadGenerationDetails.total`;
453
+ /**
454
+ * Initiates a bulk download process.
455
+ *
456
+ * The process creates a .zip file containing the requested files. The .zip file is available for download using the `downloadUrl` in the `bulkDownload` response.
457
+ * The `downloadUrl` is available for 24 hours after the process begins.
458
+ * @param bulkDownload - Bulk download to initiate.
459
+ * @public
460
+ * @documentationMaturity preview
461
+ * @requiredField bulkDownload
462
+ * @requiredField bulkDownload.entityIds
463
+ * @requiredField bulkDownload.namespace
464
+ * @permissionId GET_PAID.BULK_DOWNLOAD_CREATE
465
+ * @permissionScope Manage Receipts
466
+ * @permissionScopeId SCOPE.RECEIPTS.MANAGE
467
+ * @applicableIdentity APP
468
+ * @returns The initiated bulk download.
469
+ * @fqn wix.get_paid.downloader.v1.BulkDownloads.InitiateBulkDownload
470
+ */
471
+ export declare function initiateBulkDownload(bulkDownload: NonNullablePaths<BulkDownload, `entityIds` | `namespace`>): Promise<NonNullablePaths<BulkDownload, BulkDownloadNonNullablePaths>>;
472
+ /**
473
+ * Retrieves a bulk download.
474
+ * @param bulkDownloadId - Bulk download ID.
475
+ * @public
476
+ * @documentationMaturity preview
477
+ * @requiredField bulkDownloadId
478
+ * @permissionId GET_PAID.BULK_DOWNLOAD_READ
479
+ * @permissionScope Manage Receipts
480
+ * @permissionScopeId SCOPE.RECEIPTS.MANAGE
481
+ * @applicableIdentity APP
482
+ * @returns Retrieved bulk download.
483
+ * @fqn wix.get_paid.downloader.v1.BulkDownloads.GetBulkDownload
484
+ */
485
+ export declare function getBulkDownload(bulkDownloadId: string): Promise<NonNullablePaths<BulkDownload, BulkDownloadNonNullablePaths>>;
486
+ /**
487
+ * Lists all bulk downloads available for the user that initiated them.
488
+ * By default, response is sorted by `updatedDate` in descending order.
489
+ * @param namespace - Namespace of the app to download from.
490
+ * @public
491
+ * @documentationMaturity preview
492
+ * @requiredField namespace
493
+ * @permissionId GET_PAID.BULK_DOWNLOAD_READ
494
+ * @permissionScope Manage Receipts
495
+ * @permissionScopeId SCOPE.RECEIPTS.MANAGE
496
+ * @applicableIdentity APP
497
+ * @fqn wix.get_paid.downloader.v1.BulkDownloads.ListMyBulkDownloads
498
+ */
499
+ export declare function listMyBulkDownloads(namespace: NamespaceWithLiterals): Promise<NonNullablePaths<ListMyBulkDownloadsResponse, {
500
+ [P in BulkDownloadNonNullablePaths]: `bulkDownloads.${number}.${P}`;
501
+ }[BulkDownloadNonNullablePaths]>>;
502
+ /**
503
+ * Deletes a bulk download.
504
+ * @param bulkDownloadId - Bulk download ID to delete.
505
+ * @public
506
+ * @documentationMaturity preview
507
+ * @requiredField bulkDownloadId
508
+ * @permissionId GET_PAID.BULK_DOWNLOAD_DELETE
509
+ * @permissionScope Manage Receipts
510
+ * @permissionScopeId SCOPE.RECEIPTS.MANAGE
511
+ * @applicableIdentity APP
512
+ * @fqn wix.get_paid.downloader.v1.BulkDownloads.DeleteBulkDownload
513
+ */
514
+ export declare function deleteBulkDownload(bulkDownloadId: string): Promise<void>;
515
+ export {};