@delopay/sdk 0.152.0 → 0.153.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.
@@ -939,10 +939,37 @@ var Customers = class {
939
939
  };
940
940
 
941
941
  // src/resources/disputes.ts
942
+ function workspaceQuery(params) {
943
+ if (!params) return void 0;
944
+ const { connector, currency, dispute_status, dispute_stage, ...query } = params;
945
+ return {
946
+ ...query,
947
+ ...connector?.length ? { connector: connector.join(",") } : {},
948
+ ...currency?.length ? { currency: currency.join(",") } : {},
949
+ ...dispute_status?.length ? { dispute_status: dispute_status.join(",") } : {},
950
+ ...dispute_stage?.length ? { dispute_stage: dispute_stage.join(",") } : {}
951
+ };
952
+ }
942
953
  var Disputes = class {
943
954
  constructor(request) {
944
955
  this.request = request;
945
956
  }
957
+ /** Read native disputes and provider-only cases once, after shared authorization and filters. */
958
+ async workspace(params) {
959
+ return this.request("GET", "/disputes/workspace", { query: workspaceQuery(params) });
960
+ }
961
+ /** Read filter options over the same scoped case set; pagination is ignored. */
962
+ async workspaceFilters(params) {
963
+ return this.request("GET", "/disputes/workspace/filters", { query: workspaceQuery(params) });
964
+ }
965
+ /** Count the filtered case set, including unknown outcomes; pagination is ignored. */
966
+ async workspaceAggregate(params) {
967
+ return this.request("GET", "/disputes/workspace/aggregate", { query: workspaceQuery(params) });
968
+ }
969
+ /** Export the complete filtered set, or throw on the server's explicit export-limit refusal. */
970
+ async workspaceExport(params) {
971
+ return this.request("GET", "/disputes/workspace/export", { query: workspaceQuery(params) });
972
+ }
946
973
  /**
947
974
  * Retrieve a dispute by its ID.
948
975
  *
@@ -8513,4 +8540,4 @@ export {
8513
8540
  decodeNativePanes,
8514
8541
  encodeNativePanes
8515
8542
  };
8516
- //# sourceMappingURL=chunk-ZLD3ZEMZ.js.map
8543
+ //# sourceMappingURL=chunk-CRR4YKJV.js.map