@delopay/sdk 0.152.0 → 0.154.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1135,10 +1135,37 @@ var Customers = class {
1135
1135
  };
1136
1136
 
1137
1137
  // src/resources/disputes.ts
1138
+ function workspaceQuery(params) {
1139
+ if (!params) return void 0;
1140
+ const { connector, currency, dispute_status, dispute_stage, ...query } = params;
1141
+ return {
1142
+ ...query,
1143
+ ...connector?.length ? { connector: connector.join(",") } : {},
1144
+ ...currency?.length ? { currency: currency.join(",") } : {},
1145
+ ...dispute_status?.length ? { dispute_status: dispute_status.join(",") } : {},
1146
+ ...dispute_stage?.length ? { dispute_stage: dispute_stage.join(",") } : {}
1147
+ };
1148
+ }
1138
1149
  var Disputes = class {
1139
1150
  constructor(request) {
1140
1151
  this.request = request;
1141
1152
  }
1153
+ /** Read native disputes and provider-only cases once, after shared authorization and filters. */
1154
+ async workspace(params) {
1155
+ return this.request("GET", "/disputes/workspace", { query: workspaceQuery(params) });
1156
+ }
1157
+ /** Read filter options over the same scoped case set; pagination is ignored. */
1158
+ async workspaceFilters(params) {
1159
+ return this.request("GET", "/disputes/workspace/filters", { query: workspaceQuery(params) });
1160
+ }
1161
+ /** Count the filtered case set, including unknown outcomes; pagination is ignored. */
1162
+ async workspaceAggregate(params) {
1163
+ return this.request("GET", "/disputes/workspace/aggregate", { query: workspaceQuery(params) });
1164
+ }
1165
+ /** Export the complete filtered set, or throw on the server's explicit export-limit refusal. */
1166
+ async workspaceExport(params) {
1167
+ return this.request("GET", "/disputes/workspace/export", { query: workspaceQuery(params) });
1168
+ }
1142
1169
  /**
1143
1170
  * Retrieve a dispute by its ID.
1144
1171
  *