@wix/auto_sdk_payments_dispute-evidence-documents 1.0.28 → 1.0.30

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 (37) hide show
  1. package/build/cjs/index.d.ts +61 -653
  2. package/build/cjs/index.js +73 -252
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +810 -1
  5. package/build/cjs/index.typings.js +0 -215
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +17 -77
  8. package/build/cjs/meta.js +0 -192
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +61 -653
  11. package/build/es/index.mjs +70 -248
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +810 -1
  14. package/build/es/index.typings.mjs +0 -211
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +17 -77
  17. package/build/es/meta.mjs +0 -188
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +18 -73
  20. package/build/internal/cjs/index.js +73 -252
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +215 -197
  23. package/build/internal/cjs/index.typings.js +0 -215
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +16 -77
  26. package/build/internal/cjs/meta.js +0 -192
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +18 -73
  29. package/build/internal/es/index.mjs +70 -248
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +215 -197
  32. package/build/internal/es/index.typings.mjs +0 -211
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +16 -77
  35. package/build/internal/es/meta.mjs +0 -188
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,672 +1,80 @@
1
- /** Dispute Evidence Document */
2
- interface DisputeEvidenceDocument {
3
- /**
4
- * DisputeEvidenceDocument ID.
5
- * @format GUID
6
- * @readonly
7
- * @immutable
8
- */
9
- _id?: string | null;
10
- /**
11
- * Revision number
12
- * @readonly
13
- */
14
- revision?: string | null;
15
- /**
16
- * Date and time the DisputeEvidenceDocument was created.
17
- * @readonly
18
- * @immutable
19
- */
20
- _createdDate?: Date | null;
21
- /**
22
- * Date and time the DisputeEvidenceDocument was last updated.
23
- * @readonly
24
- */
25
- _updatedDate?: Date | null;
26
- /**
27
- * Dispute ID
28
- * @format GUID
29
- * @immutable
30
- */
31
- disputeId?: string;
32
- /**
33
- * Document evidence file if it was uploaded and attached
34
- * @readonly
35
- */
36
- file?: DocumentFile;
37
- /**
38
- * Submitted date
39
- * @readonly
40
- */
41
- submittedDate?: Date | null;
42
- /** Data Extensions */
43
- extendedFields?: ExtendedFields;
44
- /** Tags */
45
- tags?: Tags;
46
- }
47
- interface DocumentFile {
48
- /**
49
- * Document filename.
50
- * @readonly
51
- * @maxLength 255
52
- */
53
- filename?: string | null;
54
- /**
55
- * Document size in bytes.
56
- * @readonly
57
- */
58
- sizeInBytes?: string | null;
59
- /**
60
- * Hexadecimal representation of the document's MD5 digest.
61
- * @minLength 32
62
- * @maxLength 32
63
- * @readonly
64
- */
65
- hexMd5Digest?: string | null;
66
- }
67
- interface ExtendedFields {
68
- /**
69
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
70
- * The value of each key is structured according to the schema defined when the extended fields were configured.
71
- *
72
- * You can only access fields for which you have the appropriate permissions.
73
- *
74
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
75
- */
76
- namespaces?: Record<string, Record<string, any>>;
77
- }
78
- /**
79
- * Common object for tags.
80
- * Should be use as in this example:
81
- * message Foo {
82
- * string id = 1;
83
- * ...
84
- * Tags tags = 5
85
- * }
86
- *
87
- * example of taggable entity
88
- * {
89
- * id: "123"
90
- * tags: {
91
- * tags: {
92
- * tag_ids:["11","22"]
93
- * },
94
- * private_tags: {
95
- * tag_ids: ["33", "44"]
96
- * }
97
- * }
98
- * }
99
- */
100
- interface Tags {
101
- /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
102
- tags?: TagList;
103
- }
104
- interface TagList {
105
- /**
106
- * List of tag IDs
107
- * @maxSize 100
108
- * @maxLength 5
109
- */
110
- tagIds?: string[];
111
- }
112
- interface CreateDisputeEvidenceDocumentRequest {
113
- /** DisputeEvidenceDocument to be created. */
114
- disputeEvidenceDocument: DisputeEvidenceDocument;
115
- }
116
- interface CreateDisputeEvidenceDocumentResponse {
117
- /** The created DisputeEvidenceDocument. */
118
- disputeEvidenceDocument?: DisputeEvidenceDocument;
119
- }
120
- interface GenerateDisputeEvidenceDocumentUploadUrlRequest {
121
- /**
122
- * Dispute Evidence Document ID
123
- * @format GUID
124
- */
125
- disputeEvidenceDocumentId: string;
126
- /**
127
- * Name of the uploaded file
128
- * @minLength 1
129
- * @maxLength 255
130
- */
131
- filename?: string;
132
- }
133
- interface GenerateDisputeEvidenceDocumentUploadUrlResponse {
134
- /**
135
- * Evidence Document upload URL
136
- * @format WEB_URL
137
- */
138
- uploadUrl?: string;
139
- }
140
- interface AttachDisputeEvidenceDocumentFileRequest {
141
- /**
142
- * Dispute Evidence Document ID
143
- * @format GUID
144
- */
145
- disputeEvidenceDocumentId: string;
146
- }
147
- interface AttachDisputeEvidenceDocumentFileResponse {
148
- /** Dispute Evidence Document */
149
- disputeEvidenceDocument?: DisputeEvidenceDocument;
150
- }
151
- interface GetDisputeEvidenceDocumentRequest {
152
- /**
153
- * ID of the DisputeEvidenceDocument to retrieve.
154
- * @format GUID
155
- */
156
- disputeEvidenceDocumentId: string;
157
- }
158
- interface GetDisputeEvidenceDocumentResponse {
159
- /** The requested DisputeEvidenceDocument. */
160
- disputeEvidenceDocument?: DisputeEvidenceDocument;
161
- }
162
- interface GenerateDisputeEvidenceDocumentDownloadUrlRequest {
163
- /**
164
- * ID of the DisputeEvidenceDocument to generate Download Url.
165
- * @format GUID
166
- */
167
- disputeEvidenceDocumentId: string;
168
- }
169
- interface GenerateDisputeEvidenceDocumentDownloadUrlResponse {
170
- /**
171
- * Document source URL.
172
- * @format WEB_URL
173
- */
174
- url?: string | null;
175
- /** Document source URL expiration date (when relevant). */
176
- urlExpirationDate?: Date | null;
177
- }
178
- interface MarkDisputeEvidenceDocumentSubmittedRequest {
179
- /**
180
- * Id of the DisputeEvidenceDocument to mark as submitted.
181
- * @format GUID
182
- */
183
- disputeEvidenceDocumentId: string;
184
- }
185
- interface MarkDisputeEvidenceDocumentSubmittedResponse {
186
- }
187
- interface DeleteDisputeEvidenceDocumentRequest {
188
- /**
189
- * Id of the DisputeEvidenceDocument to delete.
190
- * @format GUID
191
- */
192
- disputeEvidenceDocumentId: string;
193
- }
194
- interface DeleteDisputeEvidenceDocumentResponse {
195
- }
196
- interface QueryDisputeEvidenceDocumentsRequest {
197
- /** WQL expression. */
198
- query?: CursorQuery;
199
- }
200
- interface CursorQuery extends CursorQueryPagingMethodOneOf {
201
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
202
- cursorPaging?: CursorPaging;
203
- /**
204
- * Filter object in the following format:
205
- * `"filter" : {
206
- * "fieldName1": "value1",
207
- * "fieldName2":{"$operator":"value2"}
208
- * }`
209
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
210
- */
211
- filter?: Record<string, any> | null;
212
- /**
213
- * Sort object in the following format:
214
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
215
- * @maxSize 5
216
- */
217
- sort?: Sorting[];
218
- }
219
- /** @oneof */
220
- interface CursorQueryPagingMethodOneOf {
221
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
222
- cursorPaging?: CursorPaging;
223
- }
224
- interface Sorting {
225
- /**
226
- * Name of the field to sort by.
227
- * @maxLength 512
228
- */
229
- fieldName?: string;
230
- /** Sort order. */
231
- order?: SortOrderWithLiterals;
232
- }
233
- declare enum SortOrder {
234
- ASC = "ASC",
235
- DESC = "DESC"
236
- }
237
- /** @enumType */
238
- type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
239
- interface CursorPaging {
240
- /**
241
- * Maximum number of items to return in the results.
242
- * @max 100
243
- */
244
- limit?: number | null;
245
- /**
246
- * Pointer to the next or previous page in the list of results.
247
- *
248
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
249
- * Not relevant for the first request.
250
- * @maxLength 16000
251
- */
252
- cursor?: string | null;
253
- }
254
- interface QueryDisputeEvidenceDocumentsResponse {
255
- /** List of DisputeEvidenceDocuments. */
256
- disputeEvidenceDocuments?: DisputeEvidenceDocument[];
257
- /** Paging metadata */
258
- pagingMetadata?: CursorPagingMetadata;
259
- }
260
- interface CursorPagingMetadata {
261
- /** Number of items returned in the response. */
262
- count?: number | null;
263
- /** Cursor strings that point to the next page, previous page, or both. */
264
- cursors?: Cursors;
265
- /**
266
- * Whether there are more pages to retrieve following the current page.
267
- *
268
- * + `true`: Another page of results can be retrieved.
269
- * + `false`: This is the last page.
270
- */
271
- hasNext?: boolean | null;
272
- }
273
- interface Cursors {
274
- /**
275
- * Cursor string pointing to the next page in the list of results.
276
- * @maxLength 16000
277
- */
278
- next?: string | null;
279
- /**
280
- * Cursor pointing to the previous page in the list of results.
281
- * @maxLength 16000
282
- */
283
- prev?: string | null;
284
- }
285
- interface MigrateDisputeEvidenceDocumentRequest {
286
- /**
287
- * Dispute Id
288
- * @format GUID
289
- */
290
- disputeId?: string;
291
- /**
292
- * Evidence Id
293
- * @format GUID
294
- */
295
- evidenceId?: string;
296
- /**
297
- * External evidence document Id
298
- * @minLength 1
299
- * @maxLength 64
300
- */
301
- evidenceDocumentId?: string;
302
- /**
303
- * File hash
304
- * @minLength 32
305
- * @maxLength 32
306
- */
307
- hash?: string | null;
308
- /** Created date */
309
- _createdDate?: Date | null;
310
- }
311
- interface MigrateDisputeEvidenceDocumentResponse {
312
- }
313
- interface SubmitMigratedDisputeEvidenceDocumentRequest {
314
- /**
315
- * Dispute Id
316
- * @format GUID
317
- */
318
- disputeId?: string;
319
- /**
320
- * Evidence Id
321
- * @format GUID
322
- */
323
- evidenceId?: string;
324
- /** Submitted date */
325
- submittedDate?: Date | null;
326
- }
327
- interface SubmitMigratedDisputeEvidenceDocumentResponse {
328
- }
329
- interface BulkUpdateDisputeEvidenceDocumentTagsRequest {
330
- /**
331
- * List of NileProtoTagsEntities that their tags will update.
332
- * @minSize 1
333
- * @maxSize 100
334
- * @format GUID
335
- */
336
- ids: string[];
337
- /** List of Tags to assign */
338
- assignTags?: Tags;
339
- /** List of Tags to unAssign */
340
- unassignTags?: Tags;
341
- }
342
- interface BulkUpdateDisputeEvidenceDocumentTagsResponse {
343
- /**
344
- * Results
345
- * @minSize 1
346
- * @maxSize 100
347
- */
348
- results?: BulkUpdateDisputeEvidenceDocumentTagsResult[];
349
- /** Metadata regarding the bulk update operation */
350
- bulkActionMetadata?: BulkActionMetadata;
351
- }
352
- interface ItemMetadata {
353
- /**
354
- * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
355
- * @format GUID
356
- */
357
- _id?: string | null;
358
- /** Index of the item within the request array. Allows for correlation between request and response items. */
359
- originalIndex?: number;
360
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
361
- success?: boolean;
362
- /** Details about the error in case of failure. */
363
- error?: ApplicationError;
364
- }
365
- interface ApplicationError {
366
- /** Error code. */
367
- code?: string;
368
- /** Description of the error. */
369
- description?: string;
370
- /** Data related to the error. */
371
- data?: Record<string, any> | null;
372
- }
373
- interface BulkUpdateDisputeEvidenceDocumentTagsResult {
374
- /** Metadata regarding the specific single update operation */
375
- itemMetadata?: ItemMetadata;
376
- }
377
- interface BulkActionMetadata {
378
- /** Number of items that were successfully processed. */
379
- totalSuccesses?: number;
380
- /** Number of items that couldn't be processed. */
381
- totalFailures?: number;
382
- /** Number of failures without details because detailed failure threshold was exceeded. */
383
- undetailedFailures?: number;
384
- }
385
- interface BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest {
386
- /** Filter */
387
- filter: Record<string, any> | null;
388
- /** List of Tags to assign */
389
- assignTags?: Tags;
390
- /** List of Tags to unAssign */
391
- unassignTags?: Tags;
392
- }
393
- interface BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse {
394
- /**
395
- * Job ID
396
- * @format GUID
397
- */
398
- jobId?: string;
399
- }
400
- interface DomainEvent extends DomainEventBodyOneOf {
401
- createdEvent?: EntityCreatedEvent;
402
- updatedEvent?: EntityUpdatedEvent;
403
- deletedEvent?: EntityDeletedEvent;
404
- actionEvent?: ActionEvent;
405
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
406
- _id?: string;
407
- /**
408
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
409
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
410
- */
411
- entityFqdn?: string;
412
- /**
413
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
414
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
415
- */
416
- slug?: string;
417
- /** ID of the entity associated with the event. */
418
- entityId?: string;
419
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
420
- eventTime?: Date | null;
421
- /**
422
- * Whether the event was triggered as a result of a privacy regulation application
423
- * (for example, GDPR).
424
- */
425
- triggeredByAnonymizeRequest?: boolean | null;
426
- /** If present, indicates the action that triggered the event. */
427
- originatedFrom?: string | null;
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { DisputeEvidenceDocument, DeleteDisputeEvidenceDocumentApplicationErrors, DisputeEvidenceDocumentsQueryBuilder, BulkUpdateDisputeEvidenceDocumentTagsOptions, BulkUpdateDisputeEvidenceDocumentTagsResponse, BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors, BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions, BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse, BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors, DisputeEvidenceDocumentCreatedEnvelope, DisputeEvidenceDocumentDeletedEnvelope, DisputeEvidenceDocumentUpdatedEnvelope } from './index.typings.js';
3
+ export { ActionEvent, ApplicationError, AttachDisputeEvidenceDocumentFileRequest, AttachDisputeEvidenceDocumentFileResponse, BaseEventMetadata, BulkActionMetadata, BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest, BulkUpdateDisputeEvidenceDocumentTagsRequest, BulkUpdateDisputeEvidenceDocumentTagsResult, CreateDisputeEvidenceDocumentRequest, CreateDisputeEvidenceDocumentResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteDisputeEvidenceDocumentRequest, DeleteDisputeEvidenceDocumentResponse, DisputeEvidenceDocumentsQueryResult, DocumentFile, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GenerateDisputeEvidenceDocumentDownloadUrlRequest, GenerateDisputeEvidenceDocumentDownloadUrlResponse, GenerateDisputeEvidenceDocumentUploadUrlRequest, GenerateDisputeEvidenceDocumentUploadUrlResponse, GetDisputeEvidenceDocumentRequest, GetDisputeEvidenceDocumentResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MarkDisputeEvidenceDocumentSubmittedRequest, MarkDisputeEvidenceDocumentSubmittedResponse, MessageEnvelope, MigrateDisputeEvidenceDocumentRequest, MigrateDisputeEvidenceDocumentResponse, QueryDisputeEvidenceDocumentsRequest, QueryDisputeEvidenceDocumentsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, SubmitMigratedDisputeEvidenceDocumentRequest, SubmitMigratedDisputeEvidenceDocumentResponse, TagList, Tags, TagsModified, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
+
5
+ declare function createDisputeEvidenceDocument$1(httpClient: HttpClient): CreateDisputeEvidenceDocumentSignature;
6
+ interface CreateDisputeEvidenceDocumentSignature {
428
7
  /**
429
- * 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.
430
- * 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.
8
+ * Creates a DisputeEvidenceDocument.
9
+ * @param - DisputeEvidenceDocument to be created.
10
+ * @returns The created DisputeEvidenceDocument.
431
11
  */
432
- entityEventSequence?: string | null;
433
- }
434
- /** @oneof */
435
- interface DomainEventBodyOneOf {
436
- createdEvent?: EntityCreatedEvent;
437
- updatedEvent?: EntityUpdatedEvent;
438
- deletedEvent?: EntityDeletedEvent;
439
- actionEvent?: ActionEvent;
440
- }
441
- interface EntityCreatedEvent {
442
- entity?: string;
443
- }
444
- interface RestoreInfo {
445
- deletedDate?: Date | null;
12
+ (disputeEvidenceDocument: NonNullablePaths<DisputeEvidenceDocument, `disputeId`, 2>): Promise<NonNullablePaths<DisputeEvidenceDocument, `_id` | `disputeId` | `tags.privateTags.tagIds`, 4>>;
446
13
  }
447
- interface EntityUpdatedEvent {
14
+ declare function getDisputeEvidenceDocument$1(httpClient: HttpClient): GetDisputeEvidenceDocumentSignature;
15
+ interface GetDisputeEvidenceDocumentSignature {
448
16
  /**
449
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
450
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
451
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
17
+ * Retrieves a DisputeEvidenceDocument.
18
+ * @param - ID of the DisputeEvidenceDocument to retrieve.
19
+ * @returns The requested DisputeEvidenceDocument.
452
20
  */
453
- currentEntity?: string;
21
+ (disputeEvidenceDocumentId: string): Promise<NonNullablePaths<DisputeEvidenceDocument, `_id` | `disputeId` | `tags.privateTags.tagIds`, 4>>;
454
22
  }
455
- interface EntityDeletedEvent {
456
- /** Entity that was deleted. */
457
- deletedEntity?: string | null;
458
- }
459
- interface ActionEvent {
460
- body?: string;
461
- }
462
- interface MessageEnvelope {
23
+ declare function deleteDisputeEvidenceDocument$1(httpClient: HttpClient): DeleteDisputeEvidenceDocumentSignature;
24
+ interface DeleteDisputeEvidenceDocumentSignature {
463
25
  /**
464
- * App instance ID.
465
- * @format GUID
26
+ * Deletes a DisputeEvidenceDocument.
27
+ * @param - Id of the DisputeEvidenceDocument to delete.
466
28
  */
467
- instanceId?: string | null;
468
- /**
469
- * Event type.
470
- * @maxLength 150
471
- */
472
- eventType?: string;
473
- /** The identification type and identity data. */
474
- identity?: IdentificationData;
475
- /** Stringify payload. */
476
- data?: string;
29
+ (disputeEvidenceDocumentId: string): Promise<void & {
30
+ __applicationErrorsType?: DeleteDisputeEvidenceDocumentApplicationErrors;
31
+ }>;
477
32
  }
478
- interface IdentificationData extends IdentificationDataIdOneOf {
479
- /**
480
- * ID of a site visitor that has not logged in to the site.
481
- * @format GUID
482
- */
483
- anonymousVisitorId?: string;
484
- /**
485
- * ID of a site visitor that has logged in to the site.
486
- * @format GUID
487
- */
488
- memberId?: string;
489
- /**
490
- * ID of a Wix user (site owner, contributor, etc.).
491
- * @format GUID
492
- */
493
- wixUserId?: string;
33
+ declare function queryDisputeEvidenceDocuments$1(httpClient: HttpClient): QueryDisputeEvidenceDocumentsSignature;
34
+ interface QueryDisputeEvidenceDocumentsSignature {
494
35
  /**
495
- * ID of an app.
496
- * @format GUID
36
+ * Retrieves a list of DisputeEvidenceDocuments, given the provided [paging, filtering, and sorting][1].
497
37
  */
498
- appId?: string;
499
- /** @readonly */
500
- identityType?: WebhookIdentityTypeWithLiterals;
38
+ (): DisputeEvidenceDocumentsQueryBuilder;
501
39
  }
502
- /** @oneof */
503
- interface IdentificationDataIdOneOf {
504
- /**
505
- * ID of a site visitor that has not logged in to the site.
506
- * @format GUID
507
- */
508
- anonymousVisitorId?: string;
509
- /**
510
- * ID of a site visitor that has logged in to the site.
511
- * @format GUID
512
- */
513
- memberId?: string;
514
- /**
515
- * ID of a Wix user (site owner, contributor, etc.).
516
- * @format GUID
517
- */
518
- wixUserId?: string;
40
+ declare function bulkUpdateDisputeEvidenceDocumentTags$1(httpClient: HttpClient): BulkUpdateDisputeEvidenceDocumentTagsSignature;
41
+ interface BulkUpdateDisputeEvidenceDocumentTagsSignature {
519
42
  /**
520
- * ID of an app.
521
- * @format GUID
43
+ * Synchronously update tags on multiple dispute evidence documents, by list of dispute evidence document ids
44
+ * A tag that appears both in the list of assign and unassign tags, will be assigned
45
+ * @param - List of NileProtoTagsEntities that their tags will update.
522
46
  */
523
- appId?: string;
524
- }
525
- declare enum WebhookIdentityType {
526
- UNKNOWN = "UNKNOWN",
527
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
528
- MEMBER = "MEMBER",
529
- WIX_USER = "WIX_USER",
530
- APP = "APP"
47
+ (ids: string[], options?: BulkUpdateDisputeEvidenceDocumentTagsOptions): Promise<NonNullablePaths<BulkUpdateDisputeEvidenceDocumentTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
48
+ __applicationErrorsType?: BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors;
49
+ }>;
531
50
  }
532
- /** @enumType */
533
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
534
- /** @docsIgnore */
535
- type GenerateDisputeEvidenceDocumentUploadUrlApplicationErrors = {
536
- code?: 'DISPUTE_EVIDENCE_DOCUMENT_FILE_ALREADY_ATTACHED';
537
- description?: string;
538
- data?: Record<string, any>;
539
- };
540
- /** @docsIgnore */
541
- type AttachDisputeEvidenceDocumentFileApplicationErrors = {
542
- code?: 'DISPUTE_EVIDENCE_DOCUMENT_FILE_ALREADY_ATTACHED';
543
- description?: string;
544
- data?: Record<string, any>;
545
- } | {
546
- code?: 'FILE_NOT_FOUND';
547
- description?: string;
548
- data?: Record<string, any>;
549
- };
550
- /** @docsIgnore */
551
- type GenerateDisputeEvidenceDocumentDownloadUrlApplicationErrors = {
552
- code?: 'FILE_NOT_FOUND';
553
- description?: string;
554
- data?: Record<string, any>;
555
- };
556
- /** @docsIgnore */
557
- type DeleteDisputeEvidenceDocumentApplicationErrors = {
558
- code?: 'DISPUTE_EVIDENCE_DOCUMENT_ALREADY_SUBMITTED';
559
- description?: string;
560
- data?: Record<string, any>;
561
- };
562
- /** @docsIgnore */
563
- type BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors = {
564
- code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
565
- description?: string;
566
- data?: Record<string, any>;
567
- };
568
- /** @docsIgnore */
569
- type BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors = {
570
- code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
571
- description?: string;
572
- data?: Record<string, any>;
573
- };
574
- interface GenerateDisputeEvidenceDocumentUploadUrlOptions {
51
+ declare function bulkUpdateDisputeEvidenceDocumentTagsByFilter$1(httpClient: HttpClient): BulkUpdateDisputeEvidenceDocumentTagsByFilterSignature;
52
+ interface BulkUpdateDisputeEvidenceDocumentTagsByFilterSignature {
575
53
  /**
576
- * Name of the uploaded file
577
- * @minLength 1
578
- * @maxLength 255
579
- */
580
- filename?: string;
581
- }
582
- interface QueryCursorResult {
583
- cursors: Cursors;
584
- hasNext: () => boolean;
585
- hasPrev: () => boolean;
586
- length: number;
587
- pageSize: number;
588
- }
589
- interface DisputeEvidenceDocumentsQueryResult extends QueryCursorResult {
590
- items: DisputeEvidenceDocument[];
591
- query: DisputeEvidenceDocumentsQueryBuilder;
592
- next: () => Promise<DisputeEvidenceDocumentsQueryResult>;
593
- prev: () => Promise<DisputeEvidenceDocumentsQueryResult>;
594
- }
595
- interface DisputeEvidenceDocumentsQueryBuilder {
596
- /** @param propertyName - Property whose value is compared with `value`.
597
- * @param value - Value to compare against.
598
- * @documentationMaturity preview
599
- */
600
- eq: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
601
- /** @param propertyName - Property whose value is compared with `value`.
602
- * @param value - Value to compare against.
603
- * @documentationMaturity preview
604
- */
605
- ne: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
606
- /** @param propertyName - Property whose value is compared with `value`.
607
- * @param value - Value to compare against.
608
- * @documentationMaturity preview
609
- */
610
- ge: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
611
- /** @param propertyName - Property whose value is compared with `value`.
612
- * @param value - Value to compare against.
613
- * @documentationMaturity preview
614
- */
615
- gt: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
616
- /** @param propertyName - Property whose value is compared with `value`.
617
- * @param value - Value to compare against.
618
- * @documentationMaturity preview
54
+ * Asynchronously update tags on multiple dispute evidence documents, by provided filter.
55
+ * An empty filter will update all dispute evidence documents
56
+ * A tag that appears both in the list of assign and unassign tags, will be assigned
57
+ * @param - Filter
619
58
  */
620
- le: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
621
- /** @param propertyName - Property whose value is compared with `value`.
622
- * @param value - Value to compare against.
623
- * @documentationMaturity preview
624
- */
625
- lt: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
626
- /** @param propertyName - Property whose value is compared with `string`.
627
- * @param string - String to compare against. Case-insensitive.
628
- * @documentationMaturity preview
629
- */
630
- startsWith: (propertyName: 'disputeId', value: string) => DisputeEvidenceDocumentsQueryBuilder;
631
- /** @param propertyName - Property whose value is compared with `values`.
632
- * @param values - List of values to compare against.
633
- * @documentationMaturity preview
634
- */
635
- hasSome: (propertyName: 'disputeId', value: any[]) => DisputeEvidenceDocumentsQueryBuilder;
636
- /** @documentationMaturity preview */
637
- in: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
638
- /** @documentationMaturity preview */
639
- exists: (propertyName: 'disputeId', value: boolean) => DisputeEvidenceDocumentsQueryBuilder;
640
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
641
- * @documentationMaturity preview
642
- */
643
- ascending: (...propertyNames: Array<'disputeId'>) => DisputeEvidenceDocumentsQueryBuilder;
644
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
645
- * @documentationMaturity preview
646
- */
647
- descending: (...propertyNames: Array<'disputeId'>) => DisputeEvidenceDocumentsQueryBuilder;
648
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
649
- * @documentationMaturity preview
650
- */
651
- limit: (limit: number) => DisputeEvidenceDocumentsQueryBuilder;
652
- /** @param cursor - A pointer to specific record
653
- * @documentationMaturity preview
654
- */
655
- skipTo: (cursor: string) => DisputeEvidenceDocumentsQueryBuilder;
656
- /** @documentationMaturity preview */
657
- find: () => Promise<DisputeEvidenceDocumentsQueryResult>;
658
- }
659
- interface BulkUpdateDisputeEvidenceDocumentTagsOptions {
660
- /** List of Tags to assign */
661
- assignTags?: Tags;
662
- /** List of Tags to unAssign */
663
- unassignTags?: Tags;
664
- }
665
- interface BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions {
666
- /** List of Tags to assign */
667
- assignTags?: Tags;
668
- /** List of Tags to unAssign */
669
- unassignTags?: Tags;
59
+ (filter: Record<string, any>, options?: BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse, `jobId`, 2> & {
60
+ __applicationErrorsType?: BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors;
61
+ }>;
670
62
  }
63
+ declare const onDisputeEvidenceDocumentCreated$1: EventDefinition<DisputeEvidenceDocumentCreatedEnvelope, "wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_created">;
64
+ declare const onDisputeEvidenceDocumentDeleted$1: EventDefinition<DisputeEvidenceDocumentDeletedEnvelope, "wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_deleted">;
65
+ declare const onDisputeEvidenceDocumentUpdated$1: EventDefinition<DisputeEvidenceDocumentUpdatedEnvelope, "wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_updated">;
66
+
67
+ declare const createDisputeEvidenceDocument: MaybeContext<BuildRESTFunction<typeof createDisputeEvidenceDocument$1> & typeof createDisputeEvidenceDocument$1>;
68
+ declare const getDisputeEvidenceDocument: MaybeContext<BuildRESTFunction<typeof getDisputeEvidenceDocument$1> & typeof getDisputeEvidenceDocument$1>;
69
+ declare const deleteDisputeEvidenceDocument: MaybeContext<BuildRESTFunction<typeof deleteDisputeEvidenceDocument$1> & typeof deleteDisputeEvidenceDocument$1>;
70
+ declare const queryDisputeEvidenceDocuments: MaybeContext<BuildRESTFunction<typeof queryDisputeEvidenceDocuments$1> & typeof queryDisputeEvidenceDocuments$1>;
71
+ declare const bulkUpdateDisputeEvidenceDocumentTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateDisputeEvidenceDocumentTags$1> & typeof bulkUpdateDisputeEvidenceDocumentTags$1>;
72
+ declare const bulkUpdateDisputeEvidenceDocumentTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateDisputeEvidenceDocumentTagsByFilter$1> & typeof bulkUpdateDisputeEvidenceDocumentTagsByFilter$1>;
73
+ /** */
74
+ declare const onDisputeEvidenceDocumentCreated: BuildEventDefinition<typeof onDisputeEvidenceDocumentCreated$1> & typeof onDisputeEvidenceDocumentCreated$1;
75
+ /** */
76
+ declare const onDisputeEvidenceDocumentDeleted: BuildEventDefinition<typeof onDisputeEvidenceDocumentDeleted$1> & typeof onDisputeEvidenceDocumentDeleted$1;
77
+ /** */
78
+ declare const onDisputeEvidenceDocumentUpdated: BuildEventDefinition<typeof onDisputeEvidenceDocumentUpdated$1> & typeof onDisputeEvidenceDocumentUpdated$1;
671
79
 
672
- export { type ActionEvent, type ApplicationError, type AttachDisputeEvidenceDocumentFileApplicationErrors, type AttachDisputeEvidenceDocumentFileRequest, type AttachDisputeEvidenceDocumentFileResponse, type BulkActionMetadata, type BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors, type BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors, type BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions, type BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest, type BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse, type BulkUpdateDisputeEvidenceDocumentTagsOptions, type BulkUpdateDisputeEvidenceDocumentTagsRequest, type BulkUpdateDisputeEvidenceDocumentTagsResponse, type BulkUpdateDisputeEvidenceDocumentTagsResult, type CreateDisputeEvidenceDocumentRequest, type CreateDisputeEvidenceDocumentResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteDisputeEvidenceDocumentApplicationErrors, type DeleteDisputeEvidenceDocumentRequest, type DeleteDisputeEvidenceDocumentResponse, type DisputeEvidenceDocument, type DisputeEvidenceDocumentsQueryBuilder, type DisputeEvidenceDocumentsQueryResult, type DocumentFile, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GenerateDisputeEvidenceDocumentDownloadUrlApplicationErrors, type GenerateDisputeEvidenceDocumentDownloadUrlRequest, type GenerateDisputeEvidenceDocumentDownloadUrlResponse, type GenerateDisputeEvidenceDocumentUploadUrlApplicationErrors, type GenerateDisputeEvidenceDocumentUploadUrlOptions, type GenerateDisputeEvidenceDocumentUploadUrlRequest, type GenerateDisputeEvidenceDocumentUploadUrlResponse, type GetDisputeEvidenceDocumentRequest, type GetDisputeEvidenceDocumentResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MarkDisputeEvidenceDocumentSubmittedRequest, type MarkDisputeEvidenceDocumentSubmittedResponse, type MessageEnvelope, type MigrateDisputeEvidenceDocumentRequest, type MigrateDisputeEvidenceDocumentResponse, type QueryDisputeEvidenceDocumentsRequest, type QueryDisputeEvidenceDocumentsResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type SubmitMigratedDisputeEvidenceDocumentRequest, type SubmitMigratedDisputeEvidenceDocumentResponse, type TagList, type Tags, WebhookIdentityType, type WebhookIdentityTypeWithLiterals };
80
+ export { BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors, BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors, BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions, BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse, BulkUpdateDisputeEvidenceDocumentTagsOptions, BulkUpdateDisputeEvidenceDocumentTagsResponse, DeleteDisputeEvidenceDocumentApplicationErrors, DisputeEvidenceDocument, DisputeEvidenceDocumentCreatedEnvelope, DisputeEvidenceDocumentDeletedEnvelope, DisputeEvidenceDocumentUpdatedEnvelope, DisputeEvidenceDocumentsQueryBuilder, bulkUpdateDisputeEvidenceDocumentTags, bulkUpdateDisputeEvidenceDocumentTagsByFilter, createDisputeEvidenceDocument, deleteDisputeEvidenceDocument, getDisputeEvidenceDocument, onDisputeEvidenceDocumentCreated, onDisputeEvidenceDocumentDeleted, onDisputeEvidenceDocumentUpdated, queryDisputeEvidenceDocuments };