@delopay/sdk 0.117.0 → 0.118.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/{chunk-RN4LGMQM.js → chunk-IQIUYV2B.js} +72 -4
- package/dist/chunk-IQIUYV2B.js.map +1 -0
- package/dist/index.cjs +71 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +272 -3
- package/dist/index.d.ts +272 -3
- package/dist/index.js +1 -1
- package/dist/internal.cjs +84 -3
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +42 -3
- package/dist/internal.d.ts +42 -3
- package/dist/internal.js +14 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-RN4LGMQM.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -3864,11 +3864,79 @@ var Export = class {
|
|
|
3864
3864
|
constructor(request) {
|
|
3865
3865
|
this.request = request;
|
|
3866
3866
|
}
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3867
|
+
async transactions(params, options) {
|
|
3868
|
+
return this.request(
|
|
3869
|
+
"POST",
|
|
3870
|
+
"/export/transactions",
|
|
3871
|
+
transactionBody(params, options)
|
|
3872
|
+
);
|
|
3873
|
+
}
|
|
3874
|
+
async transactionsForProfile(params, options) {
|
|
3875
|
+
return this.request(
|
|
3876
|
+
"POST",
|
|
3877
|
+
"/export/profile/transactions",
|
|
3878
|
+
transactionBody(params, options)
|
|
3879
|
+
);
|
|
3880
|
+
}
|
|
3881
|
+
async refunds(params, options) {
|
|
3882
|
+
return this.request("POST", "/refunds/list/export", bodied(params ?? {}, options));
|
|
3883
|
+
}
|
|
3884
|
+
async refundsForProfile(params, options) {
|
|
3885
|
+
return this.request(
|
|
3886
|
+
"POST",
|
|
3887
|
+
"/refunds/profile/list/export",
|
|
3888
|
+
bodied(params ?? {}, options)
|
|
3889
|
+
);
|
|
3890
|
+
}
|
|
3891
|
+
async disputes(params, options) {
|
|
3892
|
+
return this.request("GET", "/disputes/list/export", queried(params, options));
|
|
3893
|
+
}
|
|
3894
|
+
async disputesForProfile(params, options) {
|
|
3895
|
+
return this.request(
|
|
3896
|
+
"GET",
|
|
3897
|
+
"/disputes/profile/list/export",
|
|
3898
|
+
queried(params, options)
|
|
3899
|
+
);
|
|
3900
|
+
}
|
|
3901
|
+
async payouts(params, options) {
|
|
3902
|
+
return this.request("POST", "/payouts/list/export", bodied(params, options));
|
|
3903
|
+
}
|
|
3904
|
+
async payoutsForProfile(params, options) {
|
|
3905
|
+
return this.request("POST", "/payouts/profile/list/export", bodied(params, options));
|
|
3906
|
+
}
|
|
3907
|
+
async subscriptions(profileId, params, options) {
|
|
3908
|
+
return this.request(
|
|
3909
|
+
"GET",
|
|
3910
|
+
"/subscriptions/list/export",
|
|
3911
|
+
queried(params, options, { "X-Profile-Id": profileId })
|
|
3912
|
+
);
|
|
3870
3913
|
}
|
|
3914
|
+
async auditLog(params, options) {
|
|
3915
|
+
return this.request("GET", "/audit/export", queried(params, options));
|
|
3916
|
+
}
|
|
3917
|
+
};
|
|
3918
|
+
var ACCEPT = {
|
|
3919
|
+
csv: "text/csv",
|
|
3920
|
+
json: "application/json",
|
|
3921
|
+
pdf: "application/pdf"
|
|
3871
3922
|
};
|
|
3923
|
+
function negotiated(options, format) {
|
|
3924
|
+
const headers = { ...options.headers, Accept: ACCEPT[format] };
|
|
3925
|
+
return format === "json" ? { ...options, headers } : { ...options, headers, responseType: "blob" };
|
|
3926
|
+
}
|
|
3927
|
+
function transactionBody(params, options) {
|
|
3928
|
+
const format = options?.format ?? "json";
|
|
3929
|
+
return negotiated({ body: { ...params, format } }, format);
|
|
3930
|
+
}
|
|
3931
|
+
function bodied(body, options) {
|
|
3932
|
+
return negotiated({ body }, options?.format ?? "json");
|
|
3933
|
+
}
|
|
3934
|
+
function queried(params, options, headers) {
|
|
3935
|
+
return negotiated(
|
|
3936
|
+
{ query: params ?? {}, ...headers ? { headers } : {} },
|
|
3937
|
+
options?.format ?? "json"
|
|
3938
|
+
);
|
|
3939
|
+
}
|
|
3872
3940
|
|
|
3873
3941
|
// src/resources/featureMatrix.ts
|
|
3874
3942
|
var FeatureMatrix = class {
|