@wix/auto_sdk_payments_dispute-history-records 1.0.13 → 1.0.15

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 (128) hide show
  1. package/build/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → index.d.mts} +49 -48
  2. package/build/{es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → index.d.ts} +49 -48
  3. package/build/index.js +389 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +357 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +54 -0
  8. package/build/internal/index.d.ts +54 -0
  9. package/build/internal/index.js +389 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +357 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/{es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts → internal/meta.d.mts} +51 -168
  14. package/build/internal/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts → meta.d.ts} +51 -168
  15. package/build/internal/meta.js +238 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +208 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/internal/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal-BpPZdD2w.d.mts} +49 -92
  20. package/build/internal/{es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal-BpPZdD2w.d.ts} +49 -92
  21. package/build/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts → meta.d.mts} +51 -168
  22. package/build/{internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts → meta.d.ts} +51 -168
  23. package/build/meta.js +238 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +208 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/package.json +13 -12
  28. package/build/cjs/index.d.ts +0 -1
  29. package/build/cjs/index.js +0 -18
  30. package/build/cjs/index.js.map +0 -1
  31. package/build/cjs/index.typings.d.ts +0 -1
  32. package/build/cjs/index.typings.js +0 -18
  33. package/build/cjs/index.typings.js.map +0 -1
  34. package/build/cjs/meta.d.ts +0 -1
  35. package/build/cjs/meta.js +0 -18
  36. package/build/cjs/meta.js.map +0 -1
  37. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +0 -2
  38. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +0 -20
  39. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +0 -1
  40. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +0 -16
  41. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +0 -127
  42. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +0 -1
  43. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +0 -18
  44. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +0 -104
  45. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +0 -1
  46. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +0 -4
  47. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +0 -40
  48. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +0 -1
  49. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +0 -50
  50. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +0 -1
  51. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +0 -246
  52. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
  53. package/build/es/index.d.ts +0 -1
  54. package/build/es/index.js +0 -2
  55. package/build/es/index.js.map +0 -1
  56. package/build/es/index.typings.d.ts +0 -1
  57. package/build/es/index.typings.js +0 -2
  58. package/build/es/index.typings.js.map +0 -1
  59. package/build/es/meta.d.ts +0 -1
  60. package/build/es/meta.js +0 -2
  61. package/build/es/meta.js.map +0 -1
  62. package/build/es/package.json +0 -3
  63. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +0 -2
  64. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +0 -12
  65. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +0 -1
  66. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +0 -16
  67. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +0 -120
  68. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +0 -1
  69. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +0 -18
  70. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +0 -74
  71. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +0 -1
  72. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +0 -4
  73. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +0 -28
  74. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +0 -1
  75. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +0 -47
  76. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +0 -1
  77. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +0 -216
  78. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
  79. package/build/internal/cjs/index.d.ts +0 -1
  80. package/build/internal/cjs/index.js +0 -18
  81. package/build/internal/cjs/index.js.map +0 -1
  82. package/build/internal/cjs/index.typings.d.ts +0 -1
  83. package/build/internal/cjs/index.typings.js +0 -18
  84. package/build/internal/cjs/index.typings.js.map +0 -1
  85. package/build/internal/cjs/meta.d.ts +0 -1
  86. package/build/internal/cjs/meta.js +0 -18
  87. package/build/internal/cjs/meta.js.map +0 -1
  88. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +0 -12
  89. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +0 -20
  90. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +0 -1
  91. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +0 -16
  92. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +0 -127
  93. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +0 -1
  94. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +0 -18
  95. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +0 -104
  96. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +0 -1
  97. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +0 -45
  98. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +0 -40
  99. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +0 -1
  100. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +0 -50
  101. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +0 -1
  102. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +0 -246
  103. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
  104. package/build/internal/es/index.d.ts +0 -1
  105. package/build/internal/es/index.js +0 -2
  106. package/build/internal/es/index.js.map +0 -1
  107. package/build/internal/es/index.typings.d.ts +0 -1
  108. package/build/internal/es/index.typings.js +0 -2
  109. package/build/internal/es/index.typings.js.map +0 -1
  110. package/build/internal/es/meta.d.ts +0 -1
  111. package/build/internal/es/meta.js +0 -2
  112. package/build/internal/es/meta.js.map +0 -1
  113. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +0 -12
  114. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +0 -12
  115. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +0 -1
  116. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +0 -16
  117. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +0 -120
  118. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +0 -1
  119. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +0 -18
  120. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +0 -74
  121. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +0 -1
  122. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +0 -45
  123. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +0 -28
  124. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +0 -1
  125. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +0 -47
  126. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +0 -1
  127. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +0 -216
  128. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
package/build/index.js ADDED
@@ -0,0 +1,389 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ DisputeChannel: () => DisputeChannel,
24
+ DisputeStage: () => DisputeStage,
25
+ DisputeStatus: () => DisputeStatus,
26
+ SortOrder: () => SortOrder,
27
+ WebhookIdentityType: () => WebhookIdentityType,
28
+ bulkUpdateDisputeHistoryRecordTags: () => bulkUpdateDisputeHistoryRecordTags4,
29
+ bulkUpdateDisputeHistoryRecordTagsByFilter: () => bulkUpdateDisputeHistoryRecordTagsByFilter4,
30
+ getDisputeHistoryRecord: () => getDisputeHistoryRecord4,
31
+ queryDisputeHistoryRecords: () => queryDisputeHistoryRecords4
32
+ });
33
+ module.exports = __toCommonJS(index_exports);
34
+
35
+ // src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.ts
36
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
37
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
38
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
39
+
40
+ // src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.ts
41
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
42
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
43
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
44
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
45
+ function resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(opts) {
46
+ const domainToMappings = {};
47
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
48
+ }
49
+ var PACKAGE_NAME = "@wix/auto_sdk_payments_dispute-history-records";
50
+ function getDisputeHistoryRecord(payload) {
51
+ function __getDisputeHistoryRecord({ host }) {
52
+ const metadata = {
53
+ entityFqdn: "wix.payments.dispute_history_records.v1.dispute_history_record",
54
+ method: "GET",
55
+ methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord",
56
+ packageName: PACKAGE_NAME,
57
+ url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
58
+ {
59
+ protoPath: "/v1/dispute-history-records/{disputeHistoryRecordId}",
60
+ data: payload,
61
+ host
62
+ }
63
+ ),
64
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
65
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
66
+ {
67
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
68
+ paths: [
69
+ { path: "disputeHistoryRecord.createdDate" },
70
+ { path: "disputeHistoryRecord.updatedDate" },
71
+ { path: "disputeHistoryRecord.dueDate" }
72
+ ]
73
+ }
74
+ ])
75
+ };
76
+ return metadata;
77
+ }
78
+ return __getDisputeHistoryRecord;
79
+ }
80
+ function queryDisputeHistoryRecords(payload) {
81
+ function __queryDisputeHistoryRecords({ host }) {
82
+ const metadata = {
83
+ entityFqdn: "wix.payments.dispute_history_records.v1.dispute_history_record",
84
+ method: "POST",
85
+ methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords",
86
+ packageName: PACKAGE_NAME,
87
+ url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
88
+ { protoPath: "/v1/dispute-history-records/query", data: payload, host }
89
+ ),
90
+ data: payload,
91
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
92
+ {
93
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
94
+ paths: [
95
+ { path: "disputeHistoryRecords.createdDate" },
96
+ { path: "disputeHistoryRecords.updatedDate" },
97
+ { path: "disputeHistoryRecords.dueDate" }
98
+ ]
99
+ }
100
+ ]),
101
+ fallback: [
102
+ {
103
+ method: "POST",
104
+ url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
105
+ {
106
+ protoPath: "/v1/dispute-history-records/query",
107
+ data: payload,
108
+ host
109
+ }
110
+ ),
111
+ data: payload
112
+ }
113
+ ]
114
+ };
115
+ return metadata;
116
+ }
117
+ return __queryDisputeHistoryRecords;
118
+ }
119
+ function bulkUpdateDisputeHistoryRecordTags(payload) {
120
+ function __bulkUpdateDisputeHistoryRecordTags({ host }) {
121
+ const metadata = {
122
+ entityFqdn: "wix.payments.dispute_history_records.v1.dispute_history_record",
123
+ method: "POST",
124
+ methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags",
125
+ packageName: PACKAGE_NAME,
126
+ url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
127
+ {
128
+ protoPath: "/v1/bulk/dispute-history-records/update-tags",
129
+ data: payload,
130
+ host
131
+ }
132
+ ),
133
+ data: payload
134
+ };
135
+ return metadata;
136
+ }
137
+ return __bulkUpdateDisputeHistoryRecordTags;
138
+ }
139
+ function bulkUpdateDisputeHistoryRecordTagsByFilter(payload) {
140
+ function __bulkUpdateDisputeHistoryRecordTagsByFilter({ host }) {
141
+ const metadata = {
142
+ entityFqdn: "wix.payments.dispute_history_records.v1.dispute_history_record",
143
+ method: "POST",
144
+ methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter",
145
+ packageName: PACKAGE_NAME,
146
+ url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
147
+ {
148
+ protoPath: "/v1/bulk/dispute-history-records/update-tags-by-filter",
149
+ data: payload,
150
+ host
151
+ }
152
+ ),
153
+ data: payload
154
+ };
155
+ return metadata;
156
+ }
157
+ return __bulkUpdateDisputeHistoryRecordTagsByFilter;
158
+ }
159
+
160
+ // src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.ts
161
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
162
+ var DisputeStage = /* @__PURE__ */ ((DisputeStage2) => {
163
+ DisputeStage2["UNKNOWN_DISPUTE_STAGE"] = "UNKNOWN_DISPUTE_STAGE";
164
+ DisputeStage2["NOTIFICATION_OF_FRAUD"] = "NOTIFICATION_OF_FRAUD";
165
+ DisputeStage2["RFI"] = "RFI";
166
+ DisputeStage2["CHARGEBACK"] = "CHARGEBACK";
167
+ return DisputeStage2;
168
+ })(DisputeStage || {});
169
+ var DisputeStatus = /* @__PURE__ */ ((DisputeStatus2) => {
170
+ DisputeStatus2["UNKNOWN_DISPUTE_STATUS"] = "UNKNOWN_DISPUTE_STATUS";
171
+ DisputeStatus2["WAITING_MERCHANT"] = "WAITING_MERCHANT";
172
+ DisputeStatus2["UNDER_REVIEW"] = "UNDER_REVIEW";
173
+ DisputeStatus2["WAITING_BUYER"] = "WAITING_BUYER";
174
+ DisputeStatus2["WON"] = "WON";
175
+ DisputeStatus2["LOST"] = "LOST";
176
+ return DisputeStatus2;
177
+ })(DisputeStatus || {});
178
+ var DisputeChannel = /* @__PURE__ */ ((DisputeChannel2) => {
179
+ DisputeChannel2["UNKNOWN_DISPUTE_CHANNEL"] = "UNKNOWN_DISPUTE_CHANNEL";
180
+ DisputeChannel2["INTERNAL"] = "INTERNAL";
181
+ DisputeChannel2["EXTERNAL"] = "EXTERNAL";
182
+ return DisputeChannel2;
183
+ })(DisputeChannel || {});
184
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
185
+ SortOrder2["ASC"] = "ASC";
186
+ SortOrder2["DESC"] = "DESC";
187
+ return SortOrder2;
188
+ })(SortOrder || {});
189
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
190
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
191
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
192
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
193
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
194
+ WebhookIdentityType2["APP"] = "APP";
195
+ return WebhookIdentityType2;
196
+ })(WebhookIdentityType || {});
197
+ async function getDisputeHistoryRecord2(disputeHistoryRecordId) {
198
+ const { httpClient, sideEffects } = arguments[1];
199
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
200
+ disputeHistoryRecordId
201
+ });
202
+ const reqOpts = getDisputeHistoryRecord(
203
+ payload
204
+ );
205
+ sideEffects?.onSiteCall?.();
206
+ try {
207
+ const result = await httpClient.request(reqOpts);
208
+ sideEffects?.onSuccess?.(result);
209
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.disputeHistoryRecord;
210
+ } catch (err) {
211
+ const transformedError = (0, import_transform_error.transformError)(
212
+ err,
213
+ {
214
+ spreadPathsToArguments: {},
215
+ explicitPathsToArguments: { disputeHistoryRecordId: "$[0]" },
216
+ singleArgumentUnchanged: false
217
+ },
218
+ ["disputeHistoryRecordId"]
219
+ );
220
+ sideEffects?.onError?.(err);
221
+ throw transformedError;
222
+ }
223
+ }
224
+ function queryDisputeHistoryRecords2() {
225
+ const { httpClient, sideEffects } = arguments[0];
226
+ return (0, import_query_builder.queryBuilder)({
227
+ func: async (payload) => {
228
+ const reqOpts = queryDisputeHistoryRecords(
229
+ payload
230
+ );
231
+ sideEffects?.onSiteCall?.();
232
+ try {
233
+ const result = await httpClient.request(reqOpts);
234
+ sideEffects?.onSuccess?.(result);
235
+ return result;
236
+ } catch (err) {
237
+ sideEffects?.onError?.(err);
238
+ throw err;
239
+ }
240
+ },
241
+ requestTransformer: (query) => {
242
+ const args = [query, {}];
243
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
244
+ ...args?.[1],
245
+ query: args?.[0]
246
+ });
247
+ },
248
+ responseTransformer: ({
249
+ data
250
+ }) => {
251
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
252
+ (0, import_transform_paths2.transformPaths)(data, [])
253
+ );
254
+ return {
255
+ items: transformedData?.disputeHistoryRecords,
256
+ pagingMetadata: transformedData?.pagingMetadata
257
+ };
258
+ },
259
+ errorTransformer: (err) => {
260
+ const transformedError = (0, import_transform_error.transformError)(err, {
261
+ spreadPathsToArguments: {},
262
+ explicitPathsToArguments: { query: "$[0]" },
263
+ singleArgumentUnchanged: false
264
+ });
265
+ throw transformedError;
266
+ },
267
+ pagingMethod: "CURSOR",
268
+ transformationPaths: {}
269
+ });
270
+ }
271
+ async function bulkUpdateDisputeHistoryRecordTags2(ids, options) {
272
+ const { httpClient, sideEffects } = arguments[2];
273
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
274
+ ids,
275
+ assignTags: options?.assignTags,
276
+ unassignTags: options?.unassignTags
277
+ });
278
+ const reqOpts = bulkUpdateDisputeHistoryRecordTags(
279
+ payload
280
+ );
281
+ sideEffects?.onSiteCall?.();
282
+ try {
283
+ const result = await httpClient.request(reqOpts);
284
+ sideEffects?.onSuccess?.(result);
285
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
286
+ } catch (err) {
287
+ const transformedError = (0, import_transform_error.transformError)(
288
+ err,
289
+ {
290
+ spreadPathsToArguments: {},
291
+ explicitPathsToArguments: {
292
+ ids: "$[0]",
293
+ assignTags: "$[1].assignTags",
294
+ unassignTags: "$[1].unassignTags"
295
+ },
296
+ singleArgumentUnchanged: false
297
+ },
298
+ ["ids", "options"]
299
+ );
300
+ sideEffects?.onError?.(err);
301
+ throw transformedError;
302
+ }
303
+ }
304
+ async function bulkUpdateDisputeHistoryRecordTagsByFilter2(filter, options) {
305
+ const { httpClient, sideEffects } = arguments[2];
306
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
307
+ filter,
308
+ assignTags: options?.assignTags,
309
+ unassignTags: options?.unassignTags
310
+ });
311
+ const reqOpts = bulkUpdateDisputeHistoryRecordTagsByFilter(
312
+ payload
313
+ );
314
+ sideEffects?.onSiteCall?.();
315
+ try {
316
+ const result = await httpClient.request(reqOpts);
317
+ sideEffects?.onSuccess?.(result);
318
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
319
+ } catch (err) {
320
+ const transformedError = (0, import_transform_error.transformError)(
321
+ err,
322
+ {
323
+ spreadPathsToArguments: {},
324
+ explicitPathsToArguments: {
325
+ filter: "$[0]",
326
+ assignTags: "$[1].assignTags",
327
+ unassignTags: "$[1].unassignTags"
328
+ },
329
+ singleArgumentUnchanged: false
330
+ },
331
+ ["filter", "options"]
332
+ );
333
+ sideEffects?.onError?.(err);
334
+ throw transformedError;
335
+ }
336
+ }
337
+
338
+ // src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.ts
339
+ function getDisputeHistoryRecord3(httpClient) {
340
+ return (disputeHistoryRecordId) => getDisputeHistoryRecord2(
341
+ disputeHistoryRecordId,
342
+ // @ts-ignore
343
+ { httpClient }
344
+ );
345
+ }
346
+ function queryDisputeHistoryRecords3(httpClient) {
347
+ return () => queryDisputeHistoryRecords2(
348
+ // @ts-ignore
349
+ { httpClient }
350
+ );
351
+ }
352
+ function bulkUpdateDisputeHistoryRecordTags3(httpClient) {
353
+ return (ids, options) => bulkUpdateDisputeHistoryRecordTags2(
354
+ ids,
355
+ options,
356
+ // @ts-ignore
357
+ { httpClient }
358
+ );
359
+ }
360
+ function bulkUpdateDisputeHistoryRecordTagsByFilter3(httpClient) {
361
+ return (filter, options) => bulkUpdateDisputeHistoryRecordTagsByFilter2(
362
+ filter,
363
+ options,
364
+ // @ts-ignore
365
+ { httpClient }
366
+ );
367
+ }
368
+
369
+ // src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.ts
370
+ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
371
+ var getDisputeHistoryRecord4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDisputeHistoryRecord3);
372
+ var queryDisputeHistoryRecords4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryDisputeHistoryRecords3);
373
+ var bulkUpdateDisputeHistoryRecordTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateDisputeHistoryRecordTags3);
374
+ var bulkUpdateDisputeHistoryRecordTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
375
+ bulkUpdateDisputeHistoryRecordTagsByFilter3
376
+ );
377
+ // Annotate the CommonJS export names for ESM import in node:
378
+ 0 && (module.exports = {
379
+ DisputeChannel,
380
+ DisputeStage,
381
+ DisputeStatus,
382
+ SortOrder,
383
+ WebhookIdentityType,
384
+ bulkUpdateDisputeHistoryRecordTags,
385
+ bulkUpdateDisputeHistoryRecordTagsByFilter,
386
+ getDisputeHistoryRecord,
387
+ queryDisputeHistoryRecords
388
+ });
389
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../index.ts","../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.ts","../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.ts","../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.ts","../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.ts"],"sourcesContent":["export * from './src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** A DisputeHistoryRecord */\nexport interface DisputeHistoryRecord {\n /**\n * DisputeHistoryRecord ID.\n * @format GUID\n * @readonly\n * @immutable\n */\n _id?: string | null;\n /**\n * Revision number\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DisputeHistoryRecord was created.\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date and time the DisputeHistoryRecord was last updated.\n * @readonly\n * @immutable\n */\n _updatedDate?: Date | null;\n /**\n * Dispute ID\n * @format GUID\n * @immutable\n */\n disputeId?: string;\n /**\n * Dispute stage (RFI, Chargeback, so on)\n * @readonly\n * @immutable\n */\n stage?: DisputeStageWithLiterals;\n /**\n * Dispute Status\n * @readonly\n * @immutable\n */\n status?: DisputeStatusWithLiterals;\n /**\n * Due Date\n * @readonly\n * @immutable\n */\n dueDate?: Date | null;\n /**\n * Charge ID\n * @format GUID\n * @readonly\n * @immutable\n */\n chargeId?: string;\n /**\n * Dispute Channel\n * Internal - this dispute is created on provider side\n * External - this dispute is created on bank side\n * @readonly\n * @immutable\n */\n channel?: DisputeChannelWithLiterals;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n /** Tags */\n tags?: Tags;\n}\n\nexport enum DisputeStage {\n UNKNOWN_DISPUTE_STAGE = 'UNKNOWN_DISPUTE_STAGE',\n /** Notification of Fraud, Pre-chargeback, Early Fraud Warning */\n NOTIFICATION_OF_FRAUD = 'NOTIFICATION_OF_FRAUD',\n /** Request for Information / Inquiry */\n RFI = 'RFI',\n /** Chargeback */\n CHARGEBACK = 'CHARGEBACK',\n}\n\n/** @enumType */\nexport type DisputeStageWithLiterals =\n | DisputeStage\n | 'UNKNOWN_DISPUTE_STAGE'\n | 'NOTIFICATION_OF_FRAUD'\n | 'RFI'\n | 'CHARGEBACK';\n\nexport enum DisputeStatus {\n /** Unknown status */\n UNKNOWN_DISPUTE_STATUS = 'UNKNOWN_DISPUTE_STATUS',\n /** Waiting for some merchant action */\n WAITING_MERCHANT = 'WAITING_MERCHANT',\n /** Dispute is under review by PSP (internal channel) or Bank (external channel) */\n UNDER_REVIEW = 'UNDER_REVIEW',\n /** Waiting for some buyer action */\n WAITING_BUYER = 'WAITING_BUYER',\n /** Dispute won */\n WON = 'WON',\n /** Dispute lost */\n LOST = 'LOST',\n}\n\n/** @enumType */\nexport type DisputeStatusWithLiterals =\n | DisputeStatus\n | 'UNKNOWN_DISPUTE_STATUS'\n | 'WAITING_MERCHANT'\n | 'UNDER_REVIEW'\n | 'WAITING_BUYER'\n | 'WON'\n | 'LOST';\n\nexport enum DisputeChannel {\n UNKNOWN_DISPUTE_CHANNEL = 'UNKNOWN_DISPUTE_CHANNEL',\n /** Internal, the dispute is reviewed by PSP */\n INTERNAL = 'INTERNAL',\n /** External, the dispute is reviewed by bank (or other financial institution) */\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type DisputeChannelWithLiterals =\n | DisputeChannel\n | 'UNKNOWN_DISPUTE_CHANNEL'\n | 'INTERNAL'\n | 'EXTERNAL';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n tags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface GetDisputeHistoryRecordRequest {\n /**\n * ID of the DisputeHistoryRecord to retrieve.\n * @format GUID\n */\n disputeHistoryRecordId: string;\n}\n\nexport interface GetDisputeHistoryRecordResponse {\n /** The requested DisputeHistoryRecord. */\n disputeHistoryRecord?: DisputeHistoryRecord;\n}\n\nexport interface QueryDisputeHistoryRecordsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryDisputeHistoryRecordsResponse {\n /** List of DisputeHistoryRecords. */\n disputeHistoryRecords?: DisputeHistoryRecord[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsRequest {\n /**\n * List of NileProtoTagsEntities that their tags will update.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /** List of Tags to assign */\n assignTags?: Tags;\n /** List of Tags to unAssign */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateDisputeHistoryRecordTagsResult[];\n /** Metadata regarding the bulk update operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsResult {\n /** Metadata regarding the specific single update operation */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {\n /** Filter */\n filter: Record<string, any> | null;\n /** List of Tags to assign */\n assignTags?: Tags;\n /** List of Tags to unAssign */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {\n /**\n * Job ID\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\ntype DisputeHistoryRecordNonNullablePaths =\n | `disputeId`\n | `stage`\n | `status`\n | `chargeId`\n | `channel`\n | `tags.tags.tagIds`;\n\n/**\n * Retrieves a DisputeHistoryRecord.\n * @param disputeHistoryRecordId - ID of the DisputeHistoryRecord to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField disputeHistoryRecordId\n * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ\n * @returns The requested DisputeHistoryRecord.\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord\n */\nexport async function getDisputeHistoryRecord(\n disputeHistoryRecordId: string\n): Promise<\n NonNullablePaths<DisputeHistoryRecord, DisputeHistoryRecordNonNullablePaths>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n disputeHistoryRecordId: disputeHistoryRecordId,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.getDisputeHistoryRecord(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.disputeHistoryRecord!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { disputeHistoryRecordId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['disputeHistoryRecordId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of DisputeHistoryRecords, given the provided [paging, filtering, and sorting][1].\n * @internal\n * @documentationMaturity preview\n * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords\n */\nexport function queryDisputeHistoryRecords(): DisputeHistoryRecordsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n DisputeHistoryRecord,\n 'CURSOR',\n QueryDisputeHistoryRecordsRequest,\n QueryDisputeHistoryRecordsResponse\n >({\n func: async (payload: QueryDisputeHistoryRecordsRequest) => {\n const reqOpts =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryDisputeHistoryRecordsRequest['query']) => {\n const args = [query, {}] as [\n QueryDisputeHistoryRecordsRequest['query'],\n {}\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryDisputeHistoryRecordsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.disputeHistoryRecords,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface DisputeHistoryRecordsQueryResult extends QueryCursorResult {\n items: DisputeHistoryRecord[];\n query: DisputeHistoryRecordsQueryBuilder;\n next: () => Promise<DisputeHistoryRecordsQueryResult>;\n prev: () => Promise<DisputeHistoryRecordsQueryResult>;\n}\n\nexport interface DisputeHistoryRecordsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: 'disputeId',\n value: string\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (\n propertyName: 'disputeId',\n value: any[]\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: 'disputeId',\n value: any\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: 'disputeId',\n value: boolean\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<'disputeId'>\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<'disputeId'>\n ) => DisputeHistoryRecordsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => DisputeHistoryRecordsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => DisputeHistoryRecordsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<DisputeHistoryRecordsQueryResult>;\n}\n\n/**\n * Synchronously update tags on multiple products, by list of product ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param ids - List of NileProtoTagsEntities that their tags will update.\n * @internal\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags\n */\nexport async function bulkUpdateDisputeHistoryRecordTags(\n ids: string[],\n options?: BulkUpdateDisputeHistoryRecordTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateDisputeHistoryRecordTagsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n ids: ids,\n assignTags: options?.assignTags,\n unassignTags: options?.unassignTags,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTags(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n ids: '$[0]',\n assignTags: '$[1].assignTags',\n unassignTags: '$[1].unassignTags',\n },\n singleArgumentUnchanged: false,\n },\n ['ids', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsOptions {\n /** List of Tags to assign */\n assignTags?: Tags;\n /** List of Tags to unAssign */\n unassignTags?: Tags;\n}\n\n/**\n * Asynchronously update tags on multiple products, by provided filter\n * An empty filter will update all products\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param filter - Filter\n * @internal\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS\n * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter\n */\nexport async function bulkUpdateDisputeHistoryRecordTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdateDisputeHistoryRecordTagsByFilterOptions\n): Promise<\n NonNullablePaths<BulkUpdateDisputeHistoryRecordTagsByFilterResponse, `jobId`>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n filter: filter,\n assignTags: options?.assignTags,\n unassignTags: options?.unassignTags,\n });\n\n const reqOpts =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n filter: '$[0]',\n assignTags: '$[1].assignTags',\n unassignTags: '$[1].unassignTags',\n },\n singleArgumentUnchanged: false,\n },\n ['filter', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateDisputeHistoryRecordTagsByFilterOptions {\n /** List of Tags to assign */\n assignTags?: Tags;\n /** List of Tags to unAssign */\n unassignTags?: Tags;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_dispute-history-records';\n\n/** Retrieves a DisputeHistoryRecord. */\nexport function getDisputeHistoryRecord(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDisputeHistoryRecord({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/{disputeHistoryRecordId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecord.createdDate' },\n { path: 'disputeHistoryRecord.updatedDate' },\n { path: 'disputeHistoryRecord.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDisputeHistoryRecord;\n}\n\n/** Retrieves a list of DisputeHistoryRecords, given the provided [paging, filtering, and sorting][1]. */\nexport function queryDisputeHistoryRecords(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDisputeHistoryRecords({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n { protoPath: '/v1/dispute-history-records/query', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecords.createdDate' },\n { path: 'disputeHistoryRecords.updatedDate' },\n { path: 'disputeHistoryRecords.dueDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputeHistoryRecords;\n}\n\n/**\n * Synchronously update tags on multiple products, by list of product ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeHistoryRecordTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTags;\n}\n\n/**\n * Asynchronously update tags on multiple products, by provided filter\n * An empty filter will update all products\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTagsByFilter;\n}\n","import { HttpClient } from '@wix/sdk-types';\nimport {\n BulkUpdateDisputeHistoryRecordTagsByFilterOptions,\n BulkUpdateDisputeHistoryRecordTagsByFilterResponse,\n BulkUpdateDisputeHistoryRecordTagsOptions,\n BulkUpdateDisputeHistoryRecordTagsResponse,\n DisputeHistoryRecord,\n DisputeHistoryRecordsQueryBuilder,\n bulkUpdateDisputeHistoryRecordTags as universalBulkUpdateDisputeHistoryRecordTags,\n bulkUpdateDisputeHistoryRecordTagsByFilter as universalBulkUpdateDisputeHistoryRecordTagsByFilter,\n getDisputeHistoryRecord as universalGetDisputeHistoryRecord,\n queryDisputeHistoryRecords as universalQueryDisputeHistoryRecords,\n} from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/payments' };\n\n/** @internal */\nexport function getDisputeHistoryRecord(\n httpClient: HttpClient\n): GetDisputeHistoryRecordSignature {\n return (disputeHistoryRecordId: string) =>\n universalGetDisputeHistoryRecord(\n disputeHistoryRecordId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDisputeHistoryRecordSignature {\n /**\n * Retrieves a DisputeHistoryRecord.\n * @param - ID of the DisputeHistoryRecord to retrieve.\n * @returns The requested DisputeHistoryRecord.\n */\n (disputeHistoryRecordId: string): Promise<DisputeHistoryRecord>;\n}\n\n/** @internal */\nexport function queryDisputeHistoryRecords(\n httpClient: HttpClient\n): QueryDisputeHistoryRecordsSignature {\n return () =>\n universalQueryDisputeHistoryRecords(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryDisputeHistoryRecordsSignature {\n /**\n * Retrieves a list of DisputeHistoryRecords, given the provided [paging, filtering, and sorting][1].\n */\n (): DisputeHistoryRecordsQueryBuilder;\n}\n\n/** @internal */\nexport function bulkUpdateDisputeHistoryRecordTags(\n httpClient: HttpClient\n): BulkUpdateDisputeHistoryRecordTagsSignature {\n return (ids: string[], options?: BulkUpdateDisputeHistoryRecordTagsOptions) =>\n universalBulkUpdateDisputeHistoryRecordTags(\n ids,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateDisputeHistoryRecordTagsSignature {\n /**\n * Synchronously update tags on multiple products, by list of product ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param - List of NileProtoTagsEntities that their tags will update.\n */\n (\n ids: string[],\n options?: BulkUpdateDisputeHistoryRecordTagsOptions | undefined\n ): Promise<BulkUpdateDisputeHistoryRecordTagsResponse>;\n}\n\n/** @internal */\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(\n httpClient: HttpClient\n): BulkUpdateDisputeHistoryRecordTagsByFilterSignature {\n return (\n filter: Record<string, any>,\n options?: BulkUpdateDisputeHistoryRecordTagsByFilterOptions\n ) =>\n universalBulkUpdateDisputeHistoryRecordTagsByFilter(\n filter,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateDisputeHistoryRecordTagsByFilterSignature {\n /**\n * Asynchronously update tags on multiple products, by provided filter\n * An empty filter will update all products\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n * @param - Filter\n */\n (\n filter: Record<string, any>,\n options?: BulkUpdateDisputeHistoryRecordTagsByFilterOptions | undefined\n ): Promise<BulkUpdateDisputeHistoryRecordTagsByFilterResponse>;\n}\n\nexport {\n ActionEvent,\n ApplicationError,\n BulkActionMetadata,\n BulkUpdateDisputeHistoryRecordTagsByFilterOptions,\n BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n BulkUpdateDisputeHistoryRecordTagsByFilterResponse,\n BulkUpdateDisputeHistoryRecordTagsOptions,\n BulkUpdateDisputeHistoryRecordTagsRequest,\n BulkUpdateDisputeHistoryRecordTagsResponse,\n BulkUpdateDisputeHistoryRecordTagsResult,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DisputeChannel,\n DisputeHistoryRecord,\n DisputeHistoryRecordsQueryBuilder,\n DisputeHistoryRecordsQueryResult,\n DisputeStage,\n DisputeStatus,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExtendedFields,\n GetDisputeHistoryRecordRequest,\n GetDisputeHistoryRecordResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n MessageEnvelope,\n QueryDisputeHistoryRecordsRequest,\n QueryDisputeHistoryRecordsResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n TagList,\n Tags,\n WebhookIdentityType,\n} from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js';\n","import {\n getDisputeHistoryRecord as publicGetDisputeHistoryRecord,\n queryDisputeHistoryRecords as publicQueryDisputeHistoryRecords,\n bulkUpdateDisputeHistoryRecordTags as publicBulkUpdateDisputeHistoryRecordTags,\n bulkUpdateDisputeHistoryRecordTagsByFilter as publicBulkUpdateDisputeHistoryRecordTagsByFilter,\n} from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\n/** @internal */\nexport const getDisputeHistoryRecord: MaybeContext<\n BuildRESTFunction<typeof publicGetDisputeHistoryRecord> &\n typeof publicGetDisputeHistoryRecord\n> = /*#__PURE__*/ createRESTModule(publicGetDisputeHistoryRecord);\n/** @internal */\nexport const queryDisputeHistoryRecords: MaybeContext<\n BuildRESTFunction<typeof publicQueryDisputeHistoryRecords> &\n typeof publicQueryDisputeHistoryRecords\n> = /*#__PURE__*/ createRESTModule(publicQueryDisputeHistoryRecords);\n/** @internal */\nexport const bulkUpdateDisputeHistoryRecordTags: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateDisputeHistoryRecordTags> &\n typeof publicBulkUpdateDisputeHistoryRecordTags\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateDisputeHistoryRecordTags);\n/** @internal */\nexport const bulkUpdateDisputeHistoryRecordTagsByFilter: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateDisputeHistoryRecordTagsByFilter> &\n typeof publicBulkUpdateDisputeHistoryRecordTagsByFilter\n> = /*#__PURE__*/ createRESTModule(\n publicBulkUpdateDisputeHistoryRecordTagsByFilter\n);\n\nexport {\n DisputeStage,\n DisputeStatus,\n DisputeChannel,\n SortOrder,\n WebhookIdentityType,\n} from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js';\nexport {\n DisputeHistoryRecord,\n ExtendedFields,\n Tags,\n TagList,\n GetDisputeHistoryRecordRequest,\n GetDisputeHistoryRecordResponse,\n QueryDisputeHistoryRecordsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryDisputeHistoryRecordsResponse,\n CursorPagingMetadata,\n Cursors,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n BulkUpdateDisputeHistoryRecordTagsRequest,\n BulkUpdateDisputeHistoryRecordTagsResponse,\n ItemMetadata,\n ApplicationError,\n BulkUpdateDisputeHistoryRecordTagsResult,\n BulkActionMetadata,\n BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n BulkUpdateDisputeHistoryRecordTagsByFilterResponse,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n DisputeHistoryRecordsQueryResult,\n DisputeHistoryRecordsQueryBuilder,\n BulkUpdateDisputeHistoryRecordTagsOptions,\n BulkUpdateDisputeHistoryRecordTagsByFilterOptions,\n} from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4CAAAA;AAAA,EAAA,kDAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,kCAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,wEACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,wBACd,SAC4B;AAC5B,WAAS,0BAA0B,EAAE,KAAK,GAAQ;AAChD,UAAM,WAAW;AAAA,MACf,YACE;AAAA,MACF,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK;AAAA,QACH;AAAA,UACE,WAAW;AAAA,UACX,MAAM;AAAA,UACN;AAAA,QACF;AAAA,MACF;AAAA,MACA,YAAQ,uCAAkB,OAAO;AAAA,MACjC,mBAAmB,CAACC,iBAClB,uCAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,Y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M,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAH;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,QAAQ;AAAA,UACR,YAAY;AAAA,UACZ,cAAc;AAAA,QAChB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,SAAS;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AEj4BO,SAASI,yBACd,YACkC;AAClC,SAAO,CAAC,2BACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAYO,SAASC,4BACd,YACqC;AACrC,SAAO,MACLA;AAAA;AAAA,IAEE,EAAE,WAAW;AAAA,EACf;AACJ;AAUO,SAASC,oCACd,YAC6C;AAC7C,SAAO,CAAC,KAAe,YACrBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAeO,SAASC,4CACd,YACqD;AACrD,SAAO,CACL,QACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACxFA,IAAAC,uBAAiC;AAI1B,IAAMC,2BAGK,2DAAiBA,wBAA6B;AAEzD,IAAMC,8BAGK,2DAAiBA,2BAAgC;AAE5D,IAAMC,sCAGK,2DAAiBA,mCAAwC;AAEpE,IAAMC,8CAGK;AAAA,EAChBA;AACF;","names":["bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter","getDisputeHistoryRecord","queryDisputeHistoryRecords","import_rest_modules","payload","import_transform_paths","DisputeStage","DisputeStatus","DisputeChannel","SortOrder","WebhookIdentityType","getDisputeHistoryRecord","sdkTransformError","queryDisputeHistoryRecords","bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter","getDisputeHistoryRecord","queryDisputeHistoryRecords","bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter","import_rest_modules","getDisputeHistoryRecord","queryDisputeHistoryRecords","bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter"]}