@wix/auto_sdk_payments_disputes 1.0.32 → 1.0.33
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.
- package/build/cjs/index.d.ts +269 -173
- package/build/cjs/index.js +5 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +5 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +29 -38
- package/build/es/index.d.mts +269 -173
- package/build/es/index.mjs +5 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +5 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +29 -38
- package/build/internal/cjs/index.d.ts +5 -5
- package/build/internal/cjs/index.js +5 -5
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +273 -177
- package/build/internal/cjs/index.typings.js +5 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +29 -38
- package/build/internal/es/index.d.mts +5 -5
- package/build/internal/es/index.mjs +5 -5
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +273 -177
- package/build/internal/es/index.typings.mjs +5 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +29 -38
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ interface Dispute {
|
|
|
115
115
|
/** Data Extensions */
|
|
116
116
|
extendedFields?: ExtendedFields;
|
|
117
117
|
/** Tags */
|
|
118
|
-
tags?:
|
|
118
|
+
tags?: Tags;
|
|
119
119
|
}
|
|
120
120
|
declare enum DisputeStage {
|
|
121
121
|
UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
|
|
@@ -219,18 +219,282 @@ interface ExtendedFields {
|
|
|
219
219
|
*/
|
|
220
220
|
namespaces?: Record<string, Record<string, any>>;
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
/**
|
|
223
|
+
* Common object for tags.
|
|
224
|
+
* Should be use as in this example:
|
|
225
|
+
* message Foo {
|
|
226
|
+
* option (.wix.api.decomposite_of) = "wix.commons.v2.tags.Foo";
|
|
227
|
+
* string id = 1;
|
|
228
|
+
* ...
|
|
229
|
+
* Tags tags = 5
|
|
230
|
+
* }
|
|
231
|
+
*
|
|
232
|
+
* example of taggable entity
|
|
233
|
+
* {
|
|
234
|
+
* id: "123"
|
|
235
|
+
* tags: {
|
|
236
|
+
* public_tags: {
|
|
237
|
+
* tag_ids:["11","22"]
|
|
238
|
+
* },
|
|
239
|
+
* private_tags: {
|
|
240
|
+
* tag_ids: ["33", "44"]
|
|
241
|
+
* }
|
|
242
|
+
* }
|
|
243
|
+
* }
|
|
244
|
+
*/
|
|
245
|
+
interface Tags {
|
|
246
|
+
/** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
|
|
247
|
+
privateTags?: TagList;
|
|
223
248
|
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
224
|
-
|
|
249
|
+
publicTags?: TagList;
|
|
225
250
|
}
|
|
226
251
|
interface TagList {
|
|
227
252
|
/**
|
|
228
|
-
* List of tag IDs
|
|
253
|
+
* List of tag IDs.
|
|
229
254
|
* @maxSize 100
|
|
230
255
|
* @maxLength 5
|
|
231
256
|
*/
|
|
232
257
|
tagIds?: string[];
|
|
233
258
|
}
|
|
259
|
+
interface TagsModified {
|
|
260
|
+
/** Updated Dispute. */
|
|
261
|
+
dispute?: Dispute;
|
|
262
|
+
/** Tags that were assigned to the Dispute. */
|
|
263
|
+
assignedTags?: Tags;
|
|
264
|
+
/** Tags that were unassigned from the Dispute. */
|
|
265
|
+
unassignedTags?: Tags;
|
|
266
|
+
}
|
|
267
|
+
interface InternalCreateDisputeManuallyRequest {
|
|
268
|
+
/**
|
|
269
|
+
* Dispute Id
|
|
270
|
+
* @format GUID
|
|
271
|
+
*/
|
|
272
|
+
disputeId?: string;
|
|
273
|
+
/**
|
|
274
|
+
* Charge Id
|
|
275
|
+
* @format GUID
|
|
276
|
+
*/
|
|
277
|
+
chargeId?: string;
|
|
278
|
+
/** Open date */
|
|
279
|
+
openDate?: Date | null;
|
|
280
|
+
/**
|
|
281
|
+
* Provider Dispute Id
|
|
282
|
+
* @minLength 1
|
|
283
|
+
* @maxLength 100
|
|
284
|
+
*/
|
|
285
|
+
providerDisputeId?: string;
|
|
286
|
+
/** Dispute stage */
|
|
287
|
+
stage?: DisputeStageWithLiterals;
|
|
288
|
+
/** Dispute reason */
|
|
289
|
+
reason?: DisputeReasonWithLiterals;
|
|
290
|
+
/** Dispute status based on provider dispute status */
|
|
291
|
+
status?: DisputeStatusWithLiterals;
|
|
292
|
+
/** The latest date and time until which the dispute can remain in its current status */
|
|
293
|
+
dueDate?: Date | null;
|
|
294
|
+
/**
|
|
295
|
+
* Dispute currency. Should be the same as the charge currency.
|
|
296
|
+
* @immutable
|
|
297
|
+
* @format CURRENCY
|
|
298
|
+
*/
|
|
299
|
+
currencyCode?: string | null;
|
|
300
|
+
/**
|
|
301
|
+
* Dispute Amount in currency's main units (such as dollars or euros). For example, `"12.95"`.
|
|
302
|
+
* @immutable
|
|
303
|
+
* @decimalValue options { gt:0, maxScale:8 }
|
|
304
|
+
*/
|
|
305
|
+
amount?: string | null;
|
|
306
|
+
/**
|
|
307
|
+
* Network reason code
|
|
308
|
+
* @minLength 1
|
|
309
|
+
* @maxLength 64
|
|
310
|
+
*/
|
|
311
|
+
networkReasonCode?: string | null;
|
|
312
|
+
/** External or Internal */
|
|
313
|
+
external?: boolean | null;
|
|
314
|
+
/**
|
|
315
|
+
* Seller protection
|
|
316
|
+
* @minLength 1
|
|
317
|
+
* @maxLength 64
|
|
318
|
+
*/
|
|
319
|
+
sellerProtection?: string | null;
|
|
320
|
+
/** Is charge refundable */
|
|
321
|
+
chargeRefundable?: boolean | null;
|
|
322
|
+
/** True if dispute is defendable */
|
|
323
|
+
defendable?: boolean | null;
|
|
324
|
+
/** True if it is an auto dispute */
|
|
325
|
+
autoDefended?: boolean | null;
|
|
326
|
+
}
|
|
327
|
+
interface InternalCreateDisputeManuallyResponse {
|
|
328
|
+
}
|
|
329
|
+
interface InternalChangeDisputeStatusManuallyRequest {
|
|
330
|
+
/**
|
|
331
|
+
* Dispute ID
|
|
332
|
+
* @format GUID
|
|
333
|
+
*/
|
|
334
|
+
disputeId?: string;
|
|
335
|
+
/** Changed date */
|
|
336
|
+
changedDate?: Date | null;
|
|
337
|
+
/** Dispute status based on provider dispute status */
|
|
338
|
+
status?: DisputeStatusWithLiterals;
|
|
339
|
+
}
|
|
340
|
+
interface InternalChangeDisputeStatusManuallyResponse {
|
|
341
|
+
}
|
|
342
|
+
interface AcceptDisputeManuallyRequest {
|
|
343
|
+
/**
|
|
344
|
+
* Dispute ID
|
|
345
|
+
* @format GUID
|
|
346
|
+
*/
|
|
347
|
+
disputeId?: string;
|
|
348
|
+
/** Acceptance date */
|
|
349
|
+
acceptanceDate?: Date | null;
|
|
350
|
+
}
|
|
351
|
+
interface AcceptDisputeManuallyResponse {
|
|
352
|
+
}
|
|
353
|
+
interface DefendDisputeManuallyRequest {
|
|
354
|
+
/**
|
|
355
|
+
* Dispute ID
|
|
356
|
+
* @format GUID
|
|
357
|
+
*/
|
|
358
|
+
disputeId?: string;
|
|
359
|
+
/** Defense date */
|
|
360
|
+
defenseDate?: Date | null;
|
|
361
|
+
}
|
|
362
|
+
interface DefendDisputeManuallyResponse {
|
|
363
|
+
}
|
|
364
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
365
|
+
createdEvent?: EntityCreatedEvent;
|
|
366
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
367
|
+
deletedEvent?: EntityDeletedEvent;
|
|
368
|
+
actionEvent?: ActionEvent;
|
|
369
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
370
|
+
_id?: string;
|
|
371
|
+
/**
|
|
372
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
373
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
374
|
+
*/
|
|
375
|
+
entityFqdn?: string;
|
|
376
|
+
/**
|
|
377
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
378
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
379
|
+
*/
|
|
380
|
+
slug?: string;
|
|
381
|
+
/** ID of the entity associated with the event. */
|
|
382
|
+
entityId?: string;
|
|
383
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
384
|
+
eventTime?: Date | null;
|
|
385
|
+
/**
|
|
386
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
387
|
+
* (for example, GDPR).
|
|
388
|
+
*/
|
|
389
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
390
|
+
/** If present, indicates the action that triggered the event. */
|
|
391
|
+
originatedFrom?: string | null;
|
|
392
|
+
/**
|
|
393
|
+
* 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.
|
|
394
|
+
* 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.
|
|
395
|
+
*/
|
|
396
|
+
entityEventSequence?: string | null;
|
|
397
|
+
}
|
|
398
|
+
/** @oneof */
|
|
399
|
+
interface DomainEventBodyOneOf {
|
|
400
|
+
createdEvent?: EntityCreatedEvent;
|
|
401
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
402
|
+
deletedEvent?: EntityDeletedEvent;
|
|
403
|
+
actionEvent?: ActionEvent;
|
|
404
|
+
}
|
|
405
|
+
interface EntityCreatedEvent {
|
|
406
|
+
entity?: string;
|
|
407
|
+
}
|
|
408
|
+
interface RestoreInfo {
|
|
409
|
+
deletedDate?: Date | null;
|
|
410
|
+
}
|
|
411
|
+
interface EntityUpdatedEvent {
|
|
412
|
+
/**
|
|
413
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
414
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
415
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
416
|
+
*/
|
|
417
|
+
currentEntity?: string;
|
|
418
|
+
}
|
|
419
|
+
interface EntityDeletedEvent {
|
|
420
|
+
/** Entity that was deleted. */
|
|
421
|
+
deletedEntity?: string | null;
|
|
422
|
+
}
|
|
423
|
+
interface ActionEvent {
|
|
424
|
+
body?: string;
|
|
425
|
+
}
|
|
426
|
+
interface MessageEnvelope {
|
|
427
|
+
/**
|
|
428
|
+
* App instance ID.
|
|
429
|
+
* @format GUID
|
|
430
|
+
*/
|
|
431
|
+
instanceId?: string | null;
|
|
432
|
+
/**
|
|
433
|
+
* Event type.
|
|
434
|
+
* @maxLength 150
|
|
435
|
+
*/
|
|
436
|
+
eventType?: string;
|
|
437
|
+
/** The identification type and identity data. */
|
|
438
|
+
identity?: IdentificationData;
|
|
439
|
+
/** Stringify payload. */
|
|
440
|
+
data?: string;
|
|
441
|
+
}
|
|
442
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
443
|
+
/**
|
|
444
|
+
* ID of a site visitor that has not logged in to the site.
|
|
445
|
+
* @format GUID
|
|
446
|
+
*/
|
|
447
|
+
anonymousVisitorId?: string;
|
|
448
|
+
/**
|
|
449
|
+
* ID of a site visitor that has logged in to the site.
|
|
450
|
+
* @format GUID
|
|
451
|
+
*/
|
|
452
|
+
memberId?: string;
|
|
453
|
+
/**
|
|
454
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
455
|
+
* @format GUID
|
|
456
|
+
*/
|
|
457
|
+
wixUserId?: string;
|
|
458
|
+
/**
|
|
459
|
+
* ID of an app.
|
|
460
|
+
* @format GUID
|
|
461
|
+
*/
|
|
462
|
+
appId?: string;
|
|
463
|
+
/** @readonly */
|
|
464
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
465
|
+
}
|
|
466
|
+
/** @oneof */
|
|
467
|
+
interface IdentificationDataIdOneOf {
|
|
468
|
+
/**
|
|
469
|
+
* ID of a site visitor that has not logged in to the site.
|
|
470
|
+
* @format GUID
|
|
471
|
+
*/
|
|
472
|
+
anonymousVisitorId?: string;
|
|
473
|
+
/**
|
|
474
|
+
* ID of a site visitor that has logged in to the site.
|
|
475
|
+
* @format GUID
|
|
476
|
+
*/
|
|
477
|
+
memberId?: string;
|
|
478
|
+
/**
|
|
479
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
480
|
+
* @format GUID
|
|
481
|
+
*/
|
|
482
|
+
wixUserId?: string;
|
|
483
|
+
/**
|
|
484
|
+
* ID of an app.
|
|
485
|
+
* @format GUID
|
|
486
|
+
*/
|
|
487
|
+
appId?: string;
|
|
488
|
+
}
|
|
489
|
+
declare enum WebhookIdentityType {
|
|
490
|
+
UNKNOWN = "UNKNOWN",
|
|
491
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
492
|
+
MEMBER = "MEMBER",
|
|
493
|
+
WIX_USER = "WIX_USER",
|
|
494
|
+
APP = "APP"
|
|
495
|
+
}
|
|
496
|
+
/** @enumType */
|
|
497
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
234
498
|
interface GetDisputeRequest {
|
|
235
499
|
/**
|
|
236
500
|
* ID of the Dispute to retrieve.
|
|
@@ -452,40 +716,6 @@ interface BulkUpdateDisputeTagsRequest {
|
|
|
452
716
|
/** List of Tags to unAssign */
|
|
453
717
|
unassignTags?: Tags;
|
|
454
718
|
}
|
|
455
|
-
/**
|
|
456
|
-
* Common object for tags.
|
|
457
|
-
* Should be use as in this example:
|
|
458
|
-
* message Foo {
|
|
459
|
-
* string id = 1;
|
|
460
|
-
* ...
|
|
461
|
-
* Tags tags = 5
|
|
462
|
-
* }
|
|
463
|
-
*
|
|
464
|
-
* example of taggable entity
|
|
465
|
-
* {
|
|
466
|
-
* id: "123"
|
|
467
|
-
* tags: {
|
|
468
|
-
* tags: {
|
|
469
|
-
* tag_ids:["11","22"]
|
|
470
|
-
* },
|
|
471
|
-
* private_tags: {
|
|
472
|
-
* tag_ids: ["33", "44"]
|
|
473
|
-
* }
|
|
474
|
-
* }
|
|
475
|
-
* }
|
|
476
|
-
*/
|
|
477
|
-
interface Tags {
|
|
478
|
-
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
479
|
-
tags?: TagsTagList;
|
|
480
|
-
}
|
|
481
|
-
interface TagsTagList {
|
|
482
|
-
/**
|
|
483
|
-
* List of tag IDs
|
|
484
|
-
* @maxSize 100
|
|
485
|
-
* @maxLength 5
|
|
486
|
-
*/
|
|
487
|
-
tagIds?: string[];
|
|
488
|
-
}
|
|
489
719
|
interface BulkUpdateDisputeTagsResponse {
|
|
490
720
|
/**
|
|
491
721
|
* Results
|
|
@@ -544,140 +774,6 @@ interface BulkUpdateDisputeTagsByFilterResponse {
|
|
|
544
774
|
*/
|
|
545
775
|
jobId?: string;
|
|
546
776
|
}
|
|
547
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
548
|
-
createdEvent?: EntityCreatedEvent;
|
|
549
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
550
|
-
deletedEvent?: EntityDeletedEvent;
|
|
551
|
-
actionEvent?: ActionEvent;
|
|
552
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
553
|
-
_id?: string;
|
|
554
|
-
/**
|
|
555
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
556
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
557
|
-
*/
|
|
558
|
-
entityFqdn?: string;
|
|
559
|
-
/**
|
|
560
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
561
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
562
|
-
*/
|
|
563
|
-
slug?: string;
|
|
564
|
-
/** ID of the entity associated with the event. */
|
|
565
|
-
entityId?: string;
|
|
566
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
567
|
-
eventTime?: Date | null;
|
|
568
|
-
/**
|
|
569
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
570
|
-
* (for example, GDPR).
|
|
571
|
-
*/
|
|
572
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
573
|
-
/** If present, indicates the action that triggered the event. */
|
|
574
|
-
originatedFrom?: string | null;
|
|
575
|
-
/**
|
|
576
|
-
* 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.
|
|
577
|
-
* 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.
|
|
578
|
-
*/
|
|
579
|
-
entityEventSequence?: string | null;
|
|
580
|
-
}
|
|
581
|
-
/** @oneof */
|
|
582
|
-
interface DomainEventBodyOneOf {
|
|
583
|
-
createdEvent?: EntityCreatedEvent;
|
|
584
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
585
|
-
deletedEvent?: EntityDeletedEvent;
|
|
586
|
-
actionEvent?: ActionEvent;
|
|
587
|
-
}
|
|
588
|
-
interface EntityCreatedEvent {
|
|
589
|
-
entity?: string;
|
|
590
|
-
}
|
|
591
|
-
interface RestoreInfo {
|
|
592
|
-
deletedDate?: Date | null;
|
|
593
|
-
}
|
|
594
|
-
interface EntityUpdatedEvent {
|
|
595
|
-
/**
|
|
596
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
597
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
598
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
599
|
-
*/
|
|
600
|
-
currentEntity?: string;
|
|
601
|
-
}
|
|
602
|
-
interface EntityDeletedEvent {
|
|
603
|
-
/** Entity that was deleted. */
|
|
604
|
-
deletedEntity?: string | null;
|
|
605
|
-
}
|
|
606
|
-
interface ActionEvent {
|
|
607
|
-
body?: string;
|
|
608
|
-
}
|
|
609
|
-
interface MessageEnvelope {
|
|
610
|
-
/**
|
|
611
|
-
* App instance ID.
|
|
612
|
-
* @format GUID
|
|
613
|
-
*/
|
|
614
|
-
instanceId?: string | null;
|
|
615
|
-
/**
|
|
616
|
-
* Event type.
|
|
617
|
-
* @maxLength 150
|
|
618
|
-
*/
|
|
619
|
-
eventType?: string;
|
|
620
|
-
/** The identification type and identity data. */
|
|
621
|
-
identity?: IdentificationData;
|
|
622
|
-
/** Stringify payload. */
|
|
623
|
-
data?: string;
|
|
624
|
-
}
|
|
625
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
626
|
-
/**
|
|
627
|
-
* ID of a site visitor that has not logged in to the site.
|
|
628
|
-
* @format GUID
|
|
629
|
-
*/
|
|
630
|
-
anonymousVisitorId?: string;
|
|
631
|
-
/**
|
|
632
|
-
* ID of a site visitor that has logged in to the site.
|
|
633
|
-
* @format GUID
|
|
634
|
-
*/
|
|
635
|
-
memberId?: string;
|
|
636
|
-
/**
|
|
637
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
638
|
-
* @format GUID
|
|
639
|
-
*/
|
|
640
|
-
wixUserId?: string;
|
|
641
|
-
/**
|
|
642
|
-
* ID of an app.
|
|
643
|
-
* @format GUID
|
|
644
|
-
*/
|
|
645
|
-
appId?: string;
|
|
646
|
-
/** @readonly */
|
|
647
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
648
|
-
}
|
|
649
|
-
/** @oneof */
|
|
650
|
-
interface IdentificationDataIdOneOf {
|
|
651
|
-
/**
|
|
652
|
-
* ID of a site visitor that has not logged in to the site.
|
|
653
|
-
* @format GUID
|
|
654
|
-
*/
|
|
655
|
-
anonymousVisitorId?: string;
|
|
656
|
-
/**
|
|
657
|
-
* ID of a site visitor that has logged in to the site.
|
|
658
|
-
* @format GUID
|
|
659
|
-
*/
|
|
660
|
-
memberId?: string;
|
|
661
|
-
/**
|
|
662
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
663
|
-
* @format GUID
|
|
664
|
-
*/
|
|
665
|
-
wixUserId?: string;
|
|
666
|
-
/**
|
|
667
|
-
* ID of an app.
|
|
668
|
-
* @format GUID
|
|
669
|
-
*/
|
|
670
|
-
appId?: string;
|
|
671
|
-
}
|
|
672
|
-
declare enum WebhookIdentityType {
|
|
673
|
-
UNKNOWN = "UNKNOWN",
|
|
674
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
675
|
-
MEMBER = "MEMBER",
|
|
676
|
-
WIX_USER = "WIX_USER",
|
|
677
|
-
APP = "APP"
|
|
678
|
-
}
|
|
679
|
-
/** @enumType */
|
|
680
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
681
777
|
/** @docsIgnore */
|
|
682
778
|
type BulkUpdateDisputeTagsApplicationErrors = {
|
|
683
779
|
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
@@ -780,4 +876,4 @@ interface BulkUpdateDisputeTagsByFilterOptions {
|
|
|
780
876
|
unassignTags?: Tags;
|
|
781
877
|
}
|
|
782
878
|
|
|
783
|
-
export { type AcceptDisputeRequest, type AcceptDisputeResponse, type ActionEvent, type ApplicationError, type BulkActionMetadata, type BulkUpdateDisputeTagsApplicationErrors, type BulkUpdateDisputeTagsByFilterApplicationErrors, type BulkUpdateDisputeTagsByFilterOptions, type BulkUpdateDisputeTagsByFilterRequest, type BulkUpdateDisputeTagsByFilterResponse, type BulkUpdateDisputeTagsOptions, type BulkUpdateDisputeTagsRequest, type BulkUpdateDisputeTagsResponse, type BulkUpdateDisputeTagsResult, type ChangeDisputeStatusManuallyRequest, type ChangeDisputeStatusManuallyResponse, type CreateDisputeManuallyRequest, type CreateDisputeManuallyResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DefendDisputeRequest, type DefendDisputeResponse, type Dispute, type DisputeAction, DisputeActionType, type DisputeActionTypeWithLiterals, DisputeChannel, type DisputeChannelWithLiterals, DisputeReason, type DisputeReasonWithLiterals, DisputeStage, type DisputeStageWithLiterals, DisputeStatus, type DisputeStatusWithLiterals, type DisputesQueryBuilder, type DisputesQueryResult, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetDisputeRequest, type GetDisputeResponse, type IdentificationData, type IdentificationDataIdOneOf, type
|
|
879
|
+
export { type AcceptDisputeManuallyRequest, type AcceptDisputeManuallyResponse, type AcceptDisputeRequest, type AcceptDisputeResponse, type ActionEvent, type ApplicationError, type BulkActionMetadata, type BulkUpdateDisputeTagsApplicationErrors, type BulkUpdateDisputeTagsByFilterApplicationErrors, type BulkUpdateDisputeTagsByFilterOptions, type BulkUpdateDisputeTagsByFilterRequest, type BulkUpdateDisputeTagsByFilterResponse, type BulkUpdateDisputeTagsOptions, type BulkUpdateDisputeTagsRequest, type BulkUpdateDisputeTagsResponse, type BulkUpdateDisputeTagsResult, type ChangeDisputeStatusManuallyRequest, type ChangeDisputeStatusManuallyResponse, type CreateDisputeManuallyRequest, type CreateDisputeManuallyResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DefendDisputeManuallyRequest, type DefendDisputeManuallyResponse, type DefendDisputeRequest, type DefendDisputeResponse, type Dispute, type DisputeAction, DisputeActionType, type DisputeActionTypeWithLiterals, DisputeChannel, type DisputeChannelWithLiterals, DisputeReason, type DisputeReasonWithLiterals, DisputeStage, type DisputeStageWithLiterals, DisputeStatus, type DisputeStatusWithLiterals, type DisputesQueryBuilder, type DisputesQueryResult, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetDisputeRequest, type GetDisputeResponse, type IdentificationData, type IdentificationDataIdOneOf, type InternalChangeDisputeStatusManuallyRequest, type InternalChangeDisputeStatusManuallyResponse, type InternalCreateDisputeManuallyRequest, type InternalCreateDisputeManuallyResponse, type ItemMetadata, type MessageEnvelope, type QueryDisputesRequest, type QueryDisputesResponse, type RestoreInfo, SellerProtection, type SellerProtectionWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, type SubmitDisputeEvidenceRequest, type SubmitDisputeEvidenceResponse, type TagList, type Tags, type TagsModified, WebhookIdentityType, type WebhookIdentityTypeWithLiterals };
|
package/build/cjs/index.js
CHANGED
|
@@ -308,11 +308,6 @@ var DisputeActionType = /* @__PURE__ */ ((DisputeActionType2) => {
|
|
|
308
308
|
DisputeActionType2["DEFEND"] = "DEFEND";
|
|
309
309
|
return DisputeActionType2;
|
|
310
310
|
})(DisputeActionType || {});
|
|
311
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
312
|
-
SortOrder2["ASC"] = "ASC";
|
|
313
|
-
SortOrder2["DESC"] = "DESC";
|
|
314
|
-
return SortOrder2;
|
|
315
|
-
})(SortOrder || {});
|
|
316
311
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
317
312
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
318
313
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -321,6 +316,11 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
321
316
|
WebhookIdentityType2["APP"] = "APP";
|
|
322
317
|
return WebhookIdentityType2;
|
|
323
318
|
})(WebhookIdentityType || {});
|
|
319
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
320
|
+
SortOrder2["ASC"] = "ASC";
|
|
321
|
+
SortOrder2["DESC"] = "DESC";
|
|
322
|
+
return SortOrder2;
|
|
323
|
+
})(SortOrder || {});
|
|
324
324
|
async function getDispute2(disputeId) {
|
|
325
325
|
const { httpClient, sideEffects } = arguments[1];
|
|
326
326
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|