@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
package/dist/index.cjs
CHANGED
|
@@ -648,16 +648,6 @@ var Connectors = class {
|
|
|
648
648
|
async listByProfile(accountId) {
|
|
649
649
|
return this.request("GET", `/account/${encodeURIComponent(accountId)}/profile/connectors`);
|
|
650
650
|
}
|
|
651
|
-
/**
|
|
652
|
-
* The built-in e-Payouts reference catalog — the "Restore defaults" source.
|
|
653
|
-
* `GET /account/{accountId}/connectors/epayouts/catalog/defaults`
|
|
654
|
-
*/
|
|
655
|
-
async getEpayoutsCatalogDefaults(accountId) {
|
|
656
|
-
return this.request(
|
|
657
|
-
"GET",
|
|
658
|
-
`/account/${encodeURIComponent(accountId)}/connectors/epayouts/catalog/defaults`
|
|
659
|
-
);
|
|
660
|
-
}
|
|
661
651
|
/**
|
|
662
652
|
* Every connector's pane capabilities, as the router itself knows them —
|
|
663
653
|
* which rails a connector supports, and which methods it can publish as a
|
|
@@ -1228,11 +1218,39 @@ var Events = class {
|
|
|
1228
1218
|
`/events/${encodeURIComponent(merchantId)}/${encodeURIComponent(eventId)}/retry`
|
|
1229
1219
|
);
|
|
1230
1220
|
}
|
|
1221
|
+
/**
|
|
1222
|
+
* Fire an outgoing webhook event by hand for one object.
|
|
1223
|
+
* `POST /events/{merchant_id}/trigger` (be#318)
|
|
1224
|
+
*
|
|
1225
|
+
* Not a replay — see {@link EventManualTriggerRequest}. Needs the
|
|
1226
|
+
* `WebhookEventTrigger` permission, which is separate from the one that
|
|
1227
|
+
* authorizes {@link retryDelivery}, and is JWT-only: a forged payload must
|
|
1228
|
+
* be attributable to a person.
|
|
1229
|
+
*/
|
|
1230
|
+
async trigger(merchantId, body) {
|
|
1231
|
+
return this.request("POST", `/events/${encodeURIComponent(merchantId)}/trigger`, { body });
|
|
1232
|
+
}
|
|
1231
1233
|
// --- Profile-scoped listing (Task 4.12) ---
|
|
1232
|
-
/**
|
|
1234
|
+
/**
|
|
1235
|
+
* List events (profile-scoped). `POST /events/profile/list`
|
|
1236
|
+
*
|
|
1237
|
+
* Takes the same constraints as {@link list} — it is the same endpoint
|
|
1238
|
+
* narrowed to the caller's own shop, so `profile_id` is redundant and
|
|
1239
|
+
* ignored there.
|
|
1240
|
+
*/
|
|
1233
1241
|
async listByProfile(params) {
|
|
1234
1242
|
return this.request("POST", "/events/profile/list", { body: params });
|
|
1235
1243
|
}
|
|
1244
|
+
/**
|
|
1245
|
+
* Fire an outgoing webhook event by hand (profile-scoped).
|
|
1246
|
+
* `POST /events/profile/trigger` (be#318)
|
|
1247
|
+
*
|
|
1248
|
+
* The shop-user twin of {@link trigger}; the shop is taken from the auth
|
|
1249
|
+
* context, so `profile_id` on the body is ignored.
|
|
1250
|
+
*/
|
|
1251
|
+
async triggerByProfile(body) {
|
|
1252
|
+
return this.request("POST", "/events/profile/trigger", { body });
|
|
1253
|
+
}
|
|
1236
1254
|
};
|
|
1237
1255
|
|
|
1238
1256
|
// src/resources/fees.ts
|
|
@@ -7548,7 +7566,9 @@ function defaultPane(method, catalog = STRIPE_FALLBACK_PANE_CATALOG) {
|
|
|
7548
7566
|
displayOrder: 0,
|
|
7549
7567
|
visibility: "always",
|
|
7550
7568
|
openIn: "tab",
|
|
7551
|
-
nativeElement: "everywhere"
|
|
7569
|
+
nativeElement: "everywhere",
|
|
7570
|
+
preset: "",
|
|
7571
|
+
style: ""
|
|
7552
7572
|
};
|
|
7553
7573
|
}
|
|
7554
7574
|
function clonePane(pane) {
|
|
@@ -7595,7 +7615,9 @@ function decodePanes(raw) {
|
|
|
7595
7615
|
visibility: parseVisibility(entry["visibility"]),
|
|
7596
7616
|
// Same tolerance: an unknown value degrades to the default `tab`.
|
|
7597
7617
|
openIn: entry["open_in"] === "popup" ? "popup" : "tab",
|
|
7598
|
-
nativeElement: parseNativeElement(entry["native_element"])
|
|
7618
|
+
nativeElement: parseNativeElement(entry["native_element"]),
|
|
7619
|
+
preset: str(entry["preset"]),
|
|
7620
|
+
style: str(entry["style"])
|
|
7599
7621
|
});
|
|
7600
7622
|
const indexByMethod = /* @__PURE__ */ new Map();
|
|
7601
7623
|
const out = [];
|
|
@@ -7652,7 +7674,11 @@ function encodePanes(panes) {
|
|
|
7652
7674
|
// absent key to, so leaving it out changes nothing — and keeps a blob
|
|
7653
7675
|
// stored before the field existed byte-identical on re-encode, which
|
|
7654
7676
|
// is what the wire-compatibility test pins.
|
|
7655
|
-
...parseNativeElement(pane.nativeElement) === "everywhere" ? {} : { native_element: parseNativeElement(pane.nativeElement) }
|
|
7677
|
+
...parseNativeElement(pane.nativeElement) === "everywhere" ? {} : { native_element: parseNativeElement(pane.nativeElement) },
|
|
7678
|
+
// Absent and blank both mean "no look": a pane shaped before the fields
|
|
7679
|
+
// existed encodes exactly as it always did.
|
|
7680
|
+
...(pane.preset ?? "").trim() ? { preset: (pane.preset ?? "").trim() } : {},
|
|
7681
|
+
...(pane.style ?? "").trim() ? { style: (pane.style ?? "").trim() } : {}
|
|
7656
7682
|
};
|
|
7657
7683
|
});
|
|
7658
7684
|
}
|