@delopay/sdk 0.132.0 → 0.134.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-I2YGFOLA.js → chunk-R4MDAZWF.js} +41 -15
- package/dist/chunk-R4MDAZWF.js.map +1 -0
- package/dist/index.cjs +40 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +156 -11
- package/dist/index.d.ts +156 -11
- package/dist/index.js +1 -1
- package/dist/internal.cjs +40 -14
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-I2YGFOLA.js.map +0 -1
|
@@ -473,16 +473,6 @@ var Connectors = class {
|
|
|
473
473
|
async listByProfile(accountId) {
|
|
474
474
|
return this.request("GET", `/account/${encodeURIComponent(accountId)}/profile/connectors`);
|
|
475
475
|
}
|
|
476
|
-
/**
|
|
477
|
-
* The built-in e-Payouts reference catalog — the "Restore defaults" source.
|
|
478
|
-
* `GET /account/{accountId}/connectors/epayouts/catalog/defaults`
|
|
479
|
-
*/
|
|
480
|
-
async getEpayoutsCatalogDefaults(accountId) {
|
|
481
|
-
return this.request(
|
|
482
|
-
"GET",
|
|
483
|
-
`/account/${encodeURIComponent(accountId)}/connectors/epayouts/catalog/defaults`
|
|
484
|
-
);
|
|
485
|
-
}
|
|
486
476
|
/**
|
|
487
477
|
* Every connector's pane capabilities, as the router itself knows them —
|
|
488
478
|
* which rails a connector supports, and which methods it can publish as a
|
|
@@ -1053,11 +1043,39 @@ var Events = class {
|
|
|
1053
1043
|
`/events/${encodeURIComponent(merchantId)}/${encodeURIComponent(eventId)}/retry`
|
|
1054
1044
|
);
|
|
1055
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Fire an outgoing webhook event by hand for one object.
|
|
1048
|
+
* `POST /events/{merchant_id}/trigger` (be#318)
|
|
1049
|
+
*
|
|
1050
|
+
* Not a replay — see {@link EventManualTriggerRequest}. Needs the
|
|
1051
|
+
* `WebhookEventTrigger` permission, which is separate from the one that
|
|
1052
|
+
* authorizes {@link retryDelivery}, and is JWT-only: a forged payload must
|
|
1053
|
+
* be attributable to a person.
|
|
1054
|
+
*/
|
|
1055
|
+
async trigger(merchantId, body) {
|
|
1056
|
+
return this.request("POST", `/events/${encodeURIComponent(merchantId)}/trigger`, { body });
|
|
1057
|
+
}
|
|
1056
1058
|
// --- Profile-scoped listing (Task 4.12) ---
|
|
1057
|
-
/**
|
|
1059
|
+
/**
|
|
1060
|
+
* List events (profile-scoped). `POST /events/profile/list`
|
|
1061
|
+
*
|
|
1062
|
+
* Takes the same constraints as {@link list} — it is the same endpoint
|
|
1063
|
+
* narrowed to the caller's own shop, so `profile_id` is redundant and
|
|
1064
|
+
* ignored there.
|
|
1065
|
+
*/
|
|
1058
1066
|
async listByProfile(params) {
|
|
1059
1067
|
return this.request("POST", "/events/profile/list", { body: params });
|
|
1060
1068
|
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Fire an outgoing webhook event by hand (profile-scoped).
|
|
1071
|
+
* `POST /events/profile/trigger` (be#318)
|
|
1072
|
+
*
|
|
1073
|
+
* The shop-user twin of {@link trigger}; the shop is taken from the auth
|
|
1074
|
+
* context, so `profile_id` on the body is ignored.
|
|
1075
|
+
*/
|
|
1076
|
+
async triggerByProfile(body) {
|
|
1077
|
+
return this.request("POST", "/events/profile/trigger", { body });
|
|
1078
|
+
}
|
|
1061
1079
|
};
|
|
1062
1080
|
|
|
1063
1081
|
// src/resources/fees.ts
|
|
@@ -7373,7 +7391,9 @@ function defaultPane(method, catalog = STRIPE_FALLBACK_PANE_CATALOG) {
|
|
|
7373
7391
|
displayOrder: 0,
|
|
7374
7392
|
visibility: "always",
|
|
7375
7393
|
openIn: "tab",
|
|
7376
|
-
nativeElement: "everywhere"
|
|
7394
|
+
nativeElement: "everywhere",
|
|
7395
|
+
preset: "",
|
|
7396
|
+
style: ""
|
|
7377
7397
|
};
|
|
7378
7398
|
}
|
|
7379
7399
|
function clonePane(pane) {
|
|
@@ -7420,7 +7440,9 @@ function decodePanes(raw) {
|
|
|
7420
7440
|
visibility: parseVisibility(entry["visibility"]),
|
|
7421
7441
|
// Same tolerance: an unknown value degrades to the default `tab`.
|
|
7422
7442
|
openIn: entry["open_in"] === "popup" ? "popup" : "tab",
|
|
7423
|
-
nativeElement: parseNativeElement(entry["native_element"])
|
|
7443
|
+
nativeElement: parseNativeElement(entry["native_element"]),
|
|
7444
|
+
preset: str(entry["preset"]),
|
|
7445
|
+
style: str(entry["style"])
|
|
7424
7446
|
});
|
|
7425
7447
|
const indexByMethod = /* @__PURE__ */ new Map();
|
|
7426
7448
|
const out = [];
|
|
@@ -7477,7 +7499,11 @@ function encodePanes(panes) {
|
|
|
7477
7499
|
// absent key to, so leaving it out changes nothing — and keeps a blob
|
|
7478
7500
|
// stored before the field existed byte-identical on re-encode, which
|
|
7479
7501
|
// is what the wire-compatibility test pins.
|
|
7480
|
-
...parseNativeElement(pane.nativeElement) === "everywhere" ? {} : { native_element: parseNativeElement(pane.nativeElement) }
|
|
7502
|
+
...parseNativeElement(pane.nativeElement) === "everywhere" ? {} : { native_element: parseNativeElement(pane.nativeElement) },
|
|
7503
|
+
// Absent and blank both mean "no look": a pane shaped before the fields
|
|
7504
|
+
// existed encodes exactly as it always did.
|
|
7505
|
+
...(pane.preset ?? "").trim() ? { preset: (pane.preset ?? "").trim() } : {},
|
|
7506
|
+
...(pane.style ?? "").trim() ? { style: (pane.style ?? "").trim() } : {}
|
|
7481
7507
|
};
|
|
7482
7508
|
});
|
|
7483
7509
|
}
|
|
@@ -7673,4 +7699,4 @@ export {
|
|
|
7673
7699
|
decodeNativePanes,
|
|
7674
7700
|
encodeNativePanes
|
|
7675
7701
|
};
|
|
7676
|
-
//# sourceMappingURL=chunk-
|
|
7702
|
+
//# sourceMappingURL=chunk-R4MDAZWF.js.map
|