@wix/auto_sdk_payments_dispute-history-records 1.0.14 → 1.0.16

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 (118) hide show
  1. package/build/cjs/index.d.ts +549 -1
  2. package/build/cjs/index.js +386 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/meta.d.ts +343 -1
  5. package/build/cjs/meta.js +235 -15
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → es/index.d.mts} +49 -48
  8. package/build/es/index.mjs +357 -0
  9. package/build/es/index.mjs.map +1 -0
  10. package/build/es/{src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts → meta.d.mts} +51 -168
  11. package/build/es/meta.mjs +208 -0
  12. package/build/es/meta.mjs.map +1 -0
  13. package/build/internal/cjs/index.d.ts +54 -1
  14. package/build/internal/cjs/index.js +386 -15
  15. package/build/internal/cjs/index.js.map +1 -1
  16. package/build/internal/cjs/meta.d.ts +343 -1
  17. package/build/internal/cjs/meta.js +235 -15
  18. package/build/internal/cjs/meta.js.map +1 -1
  19. package/build/{es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → internal/cjs/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal-BpPZdD2w.d.ts} +49 -48
  20. package/build/internal/es/index.d.mts +54 -0
  21. package/build/internal/es/index.mjs +357 -0
  22. package/build/internal/es/index.mjs.map +1 -0
  23. package/build/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts → internal/es/meta.d.mts} +51 -168
  24. package/build/internal/es/meta.mjs +208 -0
  25. package/build/internal/es/meta.mjs.map +1 -0
  26. package/build/internal/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → es/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal-BpPZdD2w.d.mts} +49 -92
  27. package/package.json +9 -8
  28. package/build/cjs/index.typings.d.ts +0 -1
  29. package/build/cjs/index.typings.js +0 -18
  30. package/build/cjs/index.typings.js.map +0 -1
  31. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +0 -2
  32. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +0 -20
  33. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +0 -1
  34. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +0 -16
  35. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +0 -127
  36. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +0 -1
  37. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +0 -18
  38. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +0 -104
  39. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +0 -1
  40. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +0 -4
  41. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +0 -40
  42. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +0 -1
  43. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +0 -50
  44. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +0 -1
  45. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +0 -246
  46. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
  47. package/build/es/index.d.ts +0 -1
  48. package/build/es/index.js +0 -2
  49. package/build/es/index.js.map +0 -1
  50. package/build/es/index.typings.d.ts +0 -1
  51. package/build/es/index.typings.js +0 -2
  52. package/build/es/index.typings.js.map +0 -1
  53. package/build/es/meta.d.ts +0 -1
  54. package/build/es/meta.js +0 -2
  55. package/build/es/meta.js.map +0 -1
  56. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +0 -2
  57. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +0 -12
  58. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +0 -1
  59. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +0 -16
  60. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +0 -120
  61. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +0 -1
  62. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +0 -18
  63. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +0 -74
  64. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +0 -1
  65. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +0 -4
  66. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +0 -28
  67. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +0 -1
  68. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +0 -47
  69. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +0 -1
  70. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +0 -216
  71. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
  72. package/build/internal/cjs/index.typings.d.ts +0 -1
  73. package/build/internal/cjs/index.typings.js +0 -18
  74. package/build/internal/cjs/index.typings.js.map +0 -1
  75. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +0 -12
  76. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +0 -20
  77. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +0 -1
  78. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +0 -16
  79. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +0 -127
  80. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +0 -1
  81. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +0 -18
  82. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +0 -104
  83. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +0 -1
  84. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +0 -45
  85. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +0 -40
  86. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +0 -1
  87. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts +0 -460
  88. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +0 -50
  89. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +0 -1
  90. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +0 -246
  91. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
  92. package/build/internal/es/index.d.ts +0 -1
  93. package/build/internal/es/index.js +0 -2
  94. package/build/internal/es/index.js.map +0 -1
  95. package/build/internal/es/index.typings.d.ts +0 -1
  96. package/build/internal/es/index.typings.js +0 -2
  97. package/build/internal/es/index.typings.js.map +0 -1
  98. package/build/internal/es/meta.d.ts +0 -1
  99. package/build/internal/es/meta.js +0 -2
  100. package/build/internal/es/meta.js.map +0 -1
  101. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +0 -12
  102. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +0 -12
  103. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +0 -1
  104. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +0 -16
  105. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +0 -120
  106. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +0 -1
  107. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +0 -18
  108. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +0 -74
  109. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +0 -1
  110. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +0 -45
  111. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +0 -28
  112. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +0 -1
  113. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts +0 -460
  114. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +0 -47
  115. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +0 -1
  116. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts +0 -592
  117. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +0 -216
  118. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /** A DisputeHistoryRecord */
2
- export interface DisputeHistoryRecord {
2
+ interface DisputeHistoryRecord {
3
3
  /**
4
4
  * DisputeHistoryRecord ID.
5
5
  * @format GUID
@@ -68,7 +68,7 @@ export interface DisputeHistoryRecord {
68
68
  /** Tags */
69
69
  tags?: Tags;
70
70
  }
71
- export declare enum DisputeStage {
71
+ declare enum DisputeStage {
72
72
  UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
73
73
  /** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
74
74
  NOTIFICATION_OF_FRAUD = "NOTIFICATION_OF_FRAUD",
@@ -78,8 +78,8 @@ export declare enum DisputeStage {
78
78
  CHARGEBACK = "CHARGEBACK"
79
79
  }
80
80
  /** @enumType */
81
- export type DisputeStageWithLiterals = DisputeStage | 'UNKNOWN_DISPUTE_STAGE' | 'NOTIFICATION_OF_FRAUD' | 'RFI' | 'CHARGEBACK';
82
- export declare enum DisputeStatus {
81
+ type DisputeStageWithLiterals = DisputeStage | 'UNKNOWN_DISPUTE_STAGE' | 'NOTIFICATION_OF_FRAUD' | 'RFI' | 'CHARGEBACK';
82
+ declare enum DisputeStatus {
83
83
  /** Unknown status */
84
84
  UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
85
85
  /** Waiting for some merchant action */
@@ -94,8 +94,8 @@ export declare enum DisputeStatus {
94
94
  LOST = "LOST"
95
95
  }
96
96
  /** @enumType */
97
- export type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST';
98
- export declare enum DisputeChannel {
97
+ type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST';
98
+ declare enum DisputeChannel {
99
99
  UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
100
100
  /** Internal, the dispute is reviewed by PSP */
101
101
  INTERNAL = "INTERNAL",
@@ -103,8 +103,8 @@ export declare enum DisputeChannel {
103
103
  EXTERNAL = "EXTERNAL"
104
104
  }
105
105
  /** @enumType */
106
- export type DisputeChannelWithLiterals = DisputeChannel | 'UNKNOWN_DISPUTE_CHANNEL' | 'INTERNAL' | 'EXTERNAL';
107
- export interface ExtendedFields {
106
+ type DisputeChannelWithLiterals = DisputeChannel | 'UNKNOWN_DISPUTE_CHANNEL' | 'INTERNAL' | 'EXTERNAL';
107
+ interface ExtendedFields {
108
108
  /**
109
109
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
110
110
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -137,11 +137,11 @@ export interface ExtendedFields {
137
137
  * }
138
138
  * }
139
139
  */
140
- export interface Tags {
140
+ interface Tags {
141
141
  /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
142
142
  tags?: TagList;
143
143
  }
144
- export interface TagList {
144
+ interface TagList {
145
145
  /**
146
146
  * List of tag IDs
147
147
  * @maxSize 100
@@ -149,22 +149,22 @@ export interface TagList {
149
149
  */
150
150
  tagIds?: string[];
151
151
  }
152
- export interface GetDisputeHistoryRecordRequest {
152
+ interface GetDisputeHistoryRecordRequest {
153
153
  /**
154
154
  * ID of the DisputeHistoryRecord to retrieve.
155
155
  * @format GUID
156
156
  */
157
157
  disputeHistoryRecordId: string;
158
158
  }
159
- export interface GetDisputeHistoryRecordResponse {
159
+ interface GetDisputeHistoryRecordResponse {
160
160
  /** The requested DisputeHistoryRecord. */
161
161
  disputeHistoryRecord?: DisputeHistoryRecord;
162
162
  }
163
- export interface QueryDisputeHistoryRecordsRequest {
163
+ interface QueryDisputeHistoryRecordsRequest {
164
164
  /** WQL expression. */
165
165
  query?: CursorQuery;
166
166
  }
167
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
167
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
168
168
  /** 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`. */
169
169
  cursorPaging?: CursorPaging;
170
170
  /**
@@ -184,11 +184,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
184
184
  sort?: Sorting[];
185
185
  }
186
186
  /** @oneof */
187
- export interface CursorQueryPagingMethodOneOf {
187
+ interface CursorQueryPagingMethodOneOf {
188
188
  /** 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`. */
189
189
  cursorPaging?: CursorPaging;
190
190
  }
191
- export interface Sorting {
191
+ interface Sorting {
192
192
  /**
193
193
  * Name of the field to sort by.
194
194
  * @maxLength 512
@@ -197,13 +197,13 @@ export interface Sorting {
197
197
  /** Sort order. */
198
198
  order?: SortOrderWithLiterals;
199
199
  }
200
- export declare enum SortOrder {
200
+ declare enum SortOrder {
201
201
  ASC = "ASC",
202
202
  DESC = "DESC"
203
203
  }
204
204
  /** @enumType */
205
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
206
- export interface CursorPaging {
205
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
206
+ interface CursorPaging {
207
207
  /**
208
208
  * Maximum number of items to return in the results.
209
209
  * @max 100
@@ -218,13 +218,13 @@ export interface CursorPaging {
218
218
  */
219
219
  cursor?: string | null;
220
220
  }
221
- export interface QueryDisputeHistoryRecordsResponse {
221
+ interface QueryDisputeHistoryRecordsResponse {
222
222
  /** List of DisputeHistoryRecords. */
223
223
  disputeHistoryRecords?: DisputeHistoryRecord[];
224
224
  /** Paging metadata */
225
225
  pagingMetadata?: CursorPagingMetadata;
226
226
  }
227
- export interface CursorPagingMetadata {
227
+ interface CursorPagingMetadata {
228
228
  /** Number of items returned in the response. */
229
229
  count?: number | null;
230
230
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -237,7 +237,7 @@ export interface CursorPagingMetadata {
237
237
  */
238
238
  hasNext?: boolean | null;
239
239
  }
240
- export interface Cursors {
240
+ interface Cursors {
241
241
  /**
242
242
  * Cursor string pointing to the next page in the list of results.
243
243
  * @maxLength 16000
@@ -249,7 +249,7 @@ export interface Cursors {
249
249
  */
250
250
  prev?: string | null;
251
251
  }
252
- export interface DomainEvent extends DomainEventBodyOneOf {
252
+ interface DomainEvent extends DomainEventBodyOneOf {
253
253
  createdEvent?: EntityCreatedEvent;
254
254
  updatedEvent?: EntityUpdatedEvent;
255
255
  deletedEvent?: EntityDeletedEvent;
@@ -284,19 +284,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
284
284
  entityEventSequence?: string | null;
285
285
  }
286
286
  /** @oneof */
287
- export interface DomainEventBodyOneOf {
287
+ interface DomainEventBodyOneOf {
288
288
  createdEvent?: EntityCreatedEvent;
289
289
  updatedEvent?: EntityUpdatedEvent;
290
290
  deletedEvent?: EntityDeletedEvent;
291
291
  actionEvent?: ActionEvent;
292
292
  }
293
- export interface EntityCreatedEvent {
293
+ interface EntityCreatedEvent {
294
294
  entity?: string;
295
295
  }
296
- export interface RestoreInfo {
296
+ interface RestoreInfo {
297
297
  deletedDate?: Date | null;
298
298
  }
299
- export interface EntityUpdatedEvent {
299
+ interface EntityUpdatedEvent {
300
300
  /**
301
301
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
302
302
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -304,16 +304,16 @@ export interface EntityUpdatedEvent {
304
304
  */
305
305
  currentEntity?: string;
306
306
  }
307
- export interface EntityDeletedEvent {
307
+ interface EntityDeletedEvent {
308
308
  /** Entity that was deleted. */
309
309
  deletedEntity?: string | null;
310
310
  }
311
- export interface ActionEvent {
311
+ interface ActionEvent {
312
312
  body?: string;
313
313
  }
314
- export interface Empty {
314
+ interface Empty {
315
315
  }
316
- export interface BulkUpdateDisputeHistoryRecordTagsRequest {
316
+ interface BulkUpdateDisputeHistoryRecordTagsRequest {
317
317
  /**
318
318
  * List of NileProtoTagsEntities that their tags will update.
319
319
  * @minSize 1
@@ -326,7 +326,7 @@ export interface BulkUpdateDisputeHistoryRecordTagsRequest {
326
326
  /** List of Tags to unAssign */
327
327
  unassignTags?: Tags;
328
328
  }
329
- export interface BulkUpdateDisputeHistoryRecordTagsResponse {
329
+ interface BulkUpdateDisputeHistoryRecordTagsResponse {
330
330
  /**
331
331
  * Results
332
332
  * @minSize 1
@@ -336,7 +336,7 @@ export interface BulkUpdateDisputeHistoryRecordTagsResponse {
336
336
  /** Metadata regarding the bulk update operation */
337
337
  bulkActionMetadata?: BulkActionMetadata;
338
338
  }
339
- export interface ItemMetadata {
339
+ interface ItemMetadata {
340
340
  /**
341
341
  * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
342
342
  * @format GUID
@@ -349,7 +349,7 @@ export interface ItemMetadata {
349
349
  /** Details about the error in case of failure. */
350
350
  error?: ApplicationError;
351
351
  }
352
- export interface ApplicationError {
352
+ interface ApplicationError {
353
353
  /** Error code. */
354
354
  code?: string;
355
355
  /** Description of the error. */
@@ -357,11 +357,11 @@ export interface ApplicationError {
357
357
  /** Data related to the error. */
358
358
  data?: Record<string, any> | null;
359
359
  }
360
- export interface BulkUpdateDisputeHistoryRecordTagsResult {
360
+ interface BulkUpdateDisputeHistoryRecordTagsResult {
361
361
  /** Metadata regarding the specific single update operation */
362
362
  itemMetadata?: ItemMetadata;
363
363
  }
364
- export interface BulkActionMetadata {
364
+ interface BulkActionMetadata {
365
365
  /** Number of items that were successfully processed. */
366
366
  totalSuccesses?: number;
367
367
  /** Number of items that couldn't be processed. */
@@ -369,7 +369,7 @@ export interface BulkActionMetadata {
369
369
  /** Number of failures without details because detailed failure threshold was exceeded. */
370
370
  undetailedFailures?: number;
371
371
  }
372
- export interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
372
+ interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
373
373
  /** Filter */
374
374
  filter: Record<string, any> | null;
375
375
  /** List of Tags to assign */
@@ -377,14 +377,14 @@ export interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
377
377
  /** List of Tags to unAssign */
378
378
  unassignTags?: Tags;
379
379
  }
380
- export interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {
380
+ interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {
381
381
  /**
382
382
  * Job ID
383
383
  * @format GUID
384
384
  */
385
385
  jobId?: string;
386
386
  }
387
- export interface MessageEnvelope {
387
+ interface MessageEnvelope {
388
388
  /**
389
389
  * App instance ID.
390
390
  * @format GUID
@@ -400,7 +400,7 @@ export interface MessageEnvelope {
400
400
  /** Stringify payload. */
401
401
  data?: string;
402
402
  }
403
- export interface IdentificationData extends IdentificationDataIdOneOf {
403
+ interface IdentificationData extends IdentificationDataIdOneOf {
404
404
  /**
405
405
  * ID of a site visitor that has not logged in to the site.
406
406
  * @format GUID
@@ -425,7 +425,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
425
425
  identityType?: WebhookIdentityTypeWithLiterals;
426
426
  }
427
427
  /** @oneof */
428
- export interface IdentificationDataIdOneOf {
428
+ interface IdentificationDataIdOneOf {
429
429
  /**
430
430
  * ID of a site visitor that has not logged in to the site.
431
431
  * @format GUID
@@ -447,7 +447,7 @@ export interface IdentificationDataIdOneOf {
447
447
  */
448
448
  appId?: string;
449
449
  }
450
- export declare enum WebhookIdentityType {
450
+ declare enum WebhookIdentityType {
451
451
  UNKNOWN = "UNKNOWN",
452
452
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
453
453
  MEMBER = "MEMBER",
@@ -455,7 +455,7 @@ export declare enum WebhookIdentityType {
455
455
  APP = "APP"
456
456
  }
457
457
  /** @enumType */
458
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
458
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
459
459
  interface QueryCursorResult {
460
460
  cursors: Cursors;
461
461
  hasNext: () => boolean;
@@ -463,13 +463,13 @@ interface QueryCursorResult {
463
463
  length: number;
464
464
  pageSize: number;
465
465
  }
466
- export interface DisputeHistoryRecordsQueryResult extends QueryCursorResult {
466
+ interface DisputeHistoryRecordsQueryResult extends QueryCursorResult {
467
467
  items: DisputeHistoryRecord[];
468
468
  query: DisputeHistoryRecordsQueryBuilder;
469
469
  next: () => Promise<DisputeHistoryRecordsQueryResult>;
470
470
  prev: () => Promise<DisputeHistoryRecordsQueryResult>;
471
471
  }
472
- export interface DisputeHistoryRecordsQueryBuilder {
472
+ interface DisputeHistoryRecordsQueryBuilder {
473
473
  /** @param propertyName - Property whose value is compared with `value`.
474
474
  * @param value - Value to compare against.
475
475
  * @documentationMaturity preview
@@ -533,16 +533,17 @@ export interface DisputeHistoryRecordsQueryBuilder {
533
533
  /** @documentationMaturity preview */
534
534
  find: () => Promise<DisputeHistoryRecordsQueryResult>;
535
535
  }
536
- export interface BulkUpdateDisputeHistoryRecordTagsOptions {
536
+ interface BulkUpdateDisputeHistoryRecordTagsOptions {
537
537
  /** List of Tags to assign */
538
538
  assignTags?: Tags;
539
539
  /** List of Tags to unAssign */
540
540
  unassignTags?: Tags;
541
541
  }
542
- export interface BulkUpdateDisputeHistoryRecordTagsByFilterOptions {
542
+ interface BulkUpdateDisputeHistoryRecordTagsByFilterOptions {
543
543
  /** List of Tags to assign */
544
544
  assignTags?: Tags;
545
545
  /** List of Tags to unAssign */
546
546
  unassignTags?: Tags;
547
547
  }
548
- export {};
548
+
549
+ export { type ActionEvent, type ApplicationError, type BulkActionMetadata, type BulkUpdateDisputeHistoryRecordTagsByFilterOptions, type BulkUpdateDisputeHistoryRecordTagsByFilterRequest, type BulkUpdateDisputeHistoryRecordTagsByFilterResponse, type BulkUpdateDisputeHistoryRecordTagsOptions, type BulkUpdateDisputeHistoryRecordTagsRequest, type BulkUpdateDisputeHistoryRecordTagsResponse, type BulkUpdateDisputeHistoryRecordTagsResult, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, DisputeChannel, type DisputeHistoryRecord, type DisputeHistoryRecordsQueryBuilder, type DisputeHistoryRecordsQueryResult, DisputeStage, DisputeStatus, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetDisputeHistoryRecordRequest, type GetDisputeHistoryRecordResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type QueryDisputeHistoryRecordsRequest, type QueryDisputeHistoryRecordsResponse, type RestoreInfo, SortOrder, type Sorting, type TagList, type Tags, WebhookIdentityType };
@@ -0,0 +1,357 @@
1
+ // src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.ts
2
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
+ import { queryBuilder } from "@wix/sdk-runtime/query-builder";
4
+ import {
5
+ renameKeysFromSDKRequestToRESTRequest,
6
+ renameKeysFromRESTResponseToSDKResponse
7
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
8
+
9
+ // src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.ts
10
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
11
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
12
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
13
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
14
+ function resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(opts) {
15
+ const domainToMappings = {};
16
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
17
+ }
18
+ var PACKAGE_NAME = "@wix/auto_sdk_payments_dispute-history-records";
19
+ function getDisputeHistoryRecord(payload) {
20
+ function __getDisputeHistoryRecord({ host }) {
21
+ const metadata = {
22
+ entityFqdn: "wix.payments.dispute_history_records.v1.dispute_history_record",
23
+ method: "GET",
24
+ methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord",
25
+ packageName: PACKAGE_NAME,
26
+ url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
27
+ {
28
+ protoPath: "/v1/dispute-history-records/{disputeHistoryRecordId}",
29
+ data: payload,
30
+ host
31
+ }
32
+ ),
33
+ params: toURLSearchParams(payload),
34
+ transformResponse: (payload2) => transformPaths(payload2, [
35
+ {
36
+ transformFn: transformRESTTimestampToSDKTimestamp,
37
+ paths: [
38
+ { path: "disputeHistoryRecord.createdDate" },
39
+ { path: "disputeHistoryRecord.updatedDate" },
40
+ { path: "disputeHistoryRecord.dueDate" }
41
+ ]
42
+ }
43
+ ])
44
+ };
45
+ return metadata;
46
+ }
47
+ return __getDisputeHistoryRecord;
48
+ }
49
+ function queryDisputeHistoryRecords(payload) {
50
+ function __queryDisputeHistoryRecords({ host }) {
51
+ const metadata = {
52
+ entityFqdn: "wix.payments.dispute_history_records.v1.dispute_history_record",
53
+ method: "POST",
54
+ methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords",
55
+ packageName: PACKAGE_NAME,
56
+ url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
57
+ { protoPath: "/v1/dispute-history-records/query", data: payload, host }
58
+ ),
59
+ data: payload,
60
+ transformResponse: (payload2) => transformPaths(payload2, [
61
+ {
62
+ transformFn: transformRESTTimestampToSDKTimestamp,
63
+ paths: [
64
+ { path: "disputeHistoryRecords.createdDate" },
65
+ { path: "disputeHistoryRecords.updatedDate" },
66
+ { path: "disputeHistoryRecords.dueDate" }
67
+ ]
68
+ }
69
+ ]),
70
+ fallback: [
71
+ {
72
+ method: "POST",
73
+ url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
74
+ {
75
+ protoPath: "/v1/dispute-history-records/query",
76
+ data: payload,
77
+ host
78
+ }
79
+ ),
80
+ data: payload
81
+ }
82
+ ]
83
+ };
84
+ return metadata;
85
+ }
86
+ return __queryDisputeHistoryRecords;
87
+ }
88
+ function bulkUpdateDisputeHistoryRecordTags(payload) {
89
+ function __bulkUpdateDisputeHistoryRecordTags({ host }) {
90
+ const metadata = {
91
+ entityFqdn: "wix.payments.dispute_history_records.v1.dispute_history_record",
92
+ method: "POST",
93
+ methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags",
94
+ packageName: PACKAGE_NAME,
95
+ url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
96
+ {
97
+ protoPath: "/v1/bulk/dispute-history-records/update-tags",
98
+ data: payload,
99
+ host
100
+ }
101
+ ),
102
+ data: payload
103
+ };
104
+ return metadata;
105
+ }
106
+ return __bulkUpdateDisputeHistoryRecordTags;
107
+ }
108
+ function bulkUpdateDisputeHistoryRecordTagsByFilter(payload) {
109
+ function __bulkUpdateDisputeHistoryRecordTagsByFilter({ host }) {
110
+ const metadata = {
111
+ entityFqdn: "wix.payments.dispute_history_records.v1.dispute_history_record",
112
+ method: "POST",
113
+ methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter",
114
+ packageName: PACKAGE_NAME,
115
+ url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
116
+ {
117
+ protoPath: "/v1/bulk/dispute-history-records/update-tags-by-filter",
118
+ data: payload,
119
+ host
120
+ }
121
+ ),
122
+ data: payload
123
+ };
124
+ return metadata;
125
+ }
126
+ return __bulkUpdateDisputeHistoryRecordTagsByFilter;
127
+ }
128
+
129
+ // src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.ts
130
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
131
+ var DisputeStage = /* @__PURE__ */ ((DisputeStage2) => {
132
+ DisputeStage2["UNKNOWN_DISPUTE_STAGE"] = "UNKNOWN_DISPUTE_STAGE";
133
+ DisputeStage2["NOTIFICATION_OF_FRAUD"] = "NOTIFICATION_OF_FRAUD";
134
+ DisputeStage2["RFI"] = "RFI";
135
+ DisputeStage2["CHARGEBACK"] = "CHARGEBACK";
136
+ return DisputeStage2;
137
+ })(DisputeStage || {});
138
+ var DisputeStatus = /* @__PURE__ */ ((DisputeStatus2) => {
139
+ DisputeStatus2["UNKNOWN_DISPUTE_STATUS"] = "UNKNOWN_DISPUTE_STATUS";
140
+ DisputeStatus2["WAITING_MERCHANT"] = "WAITING_MERCHANT";
141
+ DisputeStatus2["UNDER_REVIEW"] = "UNDER_REVIEW";
142
+ DisputeStatus2["WAITING_BUYER"] = "WAITING_BUYER";
143
+ DisputeStatus2["WON"] = "WON";
144
+ DisputeStatus2["LOST"] = "LOST";
145
+ return DisputeStatus2;
146
+ })(DisputeStatus || {});
147
+ var DisputeChannel = /* @__PURE__ */ ((DisputeChannel2) => {
148
+ DisputeChannel2["UNKNOWN_DISPUTE_CHANNEL"] = "UNKNOWN_DISPUTE_CHANNEL";
149
+ DisputeChannel2["INTERNAL"] = "INTERNAL";
150
+ DisputeChannel2["EXTERNAL"] = "EXTERNAL";
151
+ return DisputeChannel2;
152
+ })(DisputeChannel || {});
153
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
154
+ SortOrder2["ASC"] = "ASC";
155
+ SortOrder2["DESC"] = "DESC";
156
+ return SortOrder2;
157
+ })(SortOrder || {});
158
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
159
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
160
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
161
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
162
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
163
+ WebhookIdentityType2["APP"] = "APP";
164
+ return WebhookIdentityType2;
165
+ })(WebhookIdentityType || {});
166
+ async function getDisputeHistoryRecord2(disputeHistoryRecordId) {
167
+ const { httpClient, sideEffects } = arguments[1];
168
+ const payload = renameKeysFromSDKRequestToRESTRequest({
169
+ disputeHistoryRecordId
170
+ });
171
+ const reqOpts = getDisputeHistoryRecord(
172
+ payload
173
+ );
174
+ sideEffects?.onSiteCall?.();
175
+ try {
176
+ const result = await httpClient.request(reqOpts);
177
+ sideEffects?.onSuccess?.(result);
178
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.disputeHistoryRecord;
179
+ } catch (err) {
180
+ const transformedError = sdkTransformError(
181
+ err,
182
+ {
183
+ spreadPathsToArguments: {},
184
+ explicitPathsToArguments: { disputeHistoryRecordId: "$[0]" },
185
+ singleArgumentUnchanged: false
186
+ },
187
+ ["disputeHistoryRecordId"]
188
+ );
189
+ sideEffects?.onError?.(err);
190
+ throw transformedError;
191
+ }
192
+ }
193
+ function queryDisputeHistoryRecords2() {
194
+ const { httpClient, sideEffects } = arguments[0];
195
+ return queryBuilder({
196
+ func: async (payload) => {
197
+ const reqOpts = queryDisputeHistoryRecords(
198
+ payload
199
+ );
200
+ sideEffects?.onSiteCall?.();
201
+ try {
202
+ const result = await httpClient.request(reqOpts);
203
+ sideEffects?.onSuccess?.(result);
204
+ return result;
205
+ } catch (err) {
206
+ sideEffects?.onError?.(err);
207
+ throw err;
208
+ }
209
+ },
210
+ requestTransformer: (query) => {
211
+ const args = [query, {}];
212
+ return renameKeysFromSDKRequestToRESTRequest({
213
+ ...args?.[1],
214
+ query: args?.[0]
215
+ });
216
+ },
217
+ responseTransformer: ({
218
+ data
219
+ }) => {
220
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(
221
+ transformPaths2(data, [])
222
+ );
223
+ return {
224
+ items: transformedData?.disputeHistoryRecords,
225
+ pagingMetadata: transformedData?.pagingMetadata
226
+ };
227
+ },
228
+ errorTransformer: (err) => {
229
+ const transformedError = sdkTransformError(err, {
230
+ spreadPathsToArguments: {},
231
+ explicitPathsToArguments: { query: "$[0]" },
232
+ singleArgumentUnchanged: false
233
+ });
234
+ throw transformedError;
235
+ },
236
+ pagingMethod: "CURSOR",
237
+ transformationPaths: {}
238
+ });
239
+ }
240
+ async function bulkUpdateDisputeHistoryRecordTags2(ids, options) {
241
+ const { httpClient, sideEffects } = arguments[2];
242
+ const payload = renameKeysFromSDKRequestToRESTRequest({
243
+ ids,
244
+ assignTags: options?.assignTags,
245
+ unassignTags: options?.unassignTags
246
+ });
247
+ const reqOpts = bulkUpdateDisputeHistoryRecordTags(
248
+ payload
249
+ );
250
+ sideEffects?.onSiteCall?.();
251
+ try {
252
+ const result = await httpClient.request(reqOpts);
253
+ sideEffects?.onSuccess?.(result);
254
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
255
+ } catch (err) {
256
+ const transformedError = sdkTransformError(
257
+ err,
258
+ {
259
+ spreadPathsToArguments: {},
260
+ explicitPathsToArguments: {
261
+ ids: "$[0]",
262
+ assignTags: "$[1].assignTags",
263
+ unassignTags: "$[1].unassignTags"
264
+ },
265
+ singleArgumentUnchanged: false
266
+ },
267
+ ["ids", "options"]
268
+ );
269
+ sideEffects?.onError?.(err);
270
+ throw transformedError;
271
+ }
272
+ }
273
+ async function bulkUpdateDisputeHistoryRecordTagsByFilter2(filter, options) {
274
+ const { httpClient, sideEffects } = arguments[2];
275
+ const payload = renameKeysFromSDKRequestToRESTRequest({
276
+ filter,
277
+ assignTags: options?.assignTags,
278
+ unassignTags: options?.unassignTags
279
+ });
280
+ const reqOpts = bulkUpdateDisputeHistoryRecordTagsByFilter(
281
+ payload
282
+ );
283
+ sideEffects?.onSiteCall?.();
284
+ try {
285
+ const result = await httpClient.request(reqOpts);
286
+ sideEffects?.onSuccess?.(result);
287
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
288
+ } catch (err) {
289
+ const transformedError = sdkTransformError(
290
+ err,
291
+ {
292
+ spreadPathsToArguments: {},
293
+ explicitPathsToArguments: {
294
+ filter: "$[0]",
295
+ assignTags: "$[1].assignTags",
296
+ unassignTags: "$[1].unassignTags"
297
+ },
298
+ singleArgumentUnchanged: false
299
+ },
300
+ ["filter", "options"]
301
+ );
302
+ sideEffects?.onError?.(err);
303
+ throw transformedError;
304
+ }
305
+ }
306
+
307
+ // src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.ts
308
+ function getDisputeHistoryRecord3(httpClient) {
309
+ return (disputeHistoryRecordId) => getDisputeHistoryRecord2(
310
+ disputeHistoryRecordId,
311
+ // @ts-ignore
312
+ { httpClient }
313
+ );
314
+ }
315
+ function queryDisputeHistoryRecords3(httpClient) {
316
+ return () => queryDisputeHistoryRecords2(
317
+ // @ts-ignore
318
+ { httpClient }
319
+ );
320
+ }
321
+ function bulkUpdateDisputeHistoryRecordTags3(httpClient) {
322
+ return (ids, options) => bulkUpdateDisputeHistoryRecordTags2(
323
+ ids,
324
+ options,
325
+ // @ts-ignore
326
+ { httpClient }
327
+ );
328
+ }
329
+ function bulkUpdateDisputeHistoryRecordTagsByFilter3(httpClient) {
330
+ return (filter, options) => bulkUpdateDisputeHistoryRecordTagsByFilter2(
331
+ filter,
332
+ options,
333
+ // @ts-ignore
334
+ { httpClient }
335
+ );
336
+ }
337
+
338
+ // src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.ts
339
+ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
340
+ var getDisputeHistoryRecord4 = /* @__PURE__ */ createRESTModule(getDisputeHistoryRecord3);
341
+ var queryDisputeHistoryRecords4 = /* @__PURE__ */ createRESTModule(queryDisputeHistoryRecords3);
342
+ var bulkUpdateDisputeHistoryRecordTags4 = /* @__PURE__ */ createRESTModule(bulkUpdateDisputeHistoryRecordTags3);
343
+ var bulkUpdateDisputeHistoryRecordTagsByFilter4 = /* @__PURE__ */ createRESTModule(
344
+ bulkUpdateDisputeHistoryRecordTagsByFilter3
345
+ );
346
+ export {
347
+ DisputeChannel,
348
+ DisputeStage,
349
+ DisputeStatus,
350
+ SortOrder,
351
+ WebhookIdentityType,
352
+ bulkUpdateDisputeHistoryRecordTags4 as bulkUpdateDisputeHistoryRecordTags,
353
+ bulkUpdateDisputeHistoryRecordTagsByFilter4 as bulkUpdateDisputeHistoryRecordTagsByFilter,
354
+ getDisputeHistoryRecord4 as getDisputeHistoryRecord,
355
+ queryDisputeHistoryRecords4 as queryDisputeHistoryRecords
356
+ };
357
+ //# sourceMappingURL=index.mjs.map