@delopay/sdk 0.132.0 → 0.133.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
@@ -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
@@ -7548,7 +7538,9 @@ function defaultPane(method, catalog = STRIPE_FALLBACK_PANE_CATALOG) {
7548
7538
  displayOrder: 0,
7549
7539
  visibility: "always",
7550
7540
  openIn: "tab",
7551
- nativeElement: "everywhere"
7541
+ nativeElement: "everywhere",
7542
+ preset: "",
7543
+ style: ""
7552
7544
  };
7553
7545
  }
7554
7546
  function clonePane(pane) {
@@ -7595,7 +7587,9 @@ function decodePanes(raw) {
7595
7587
  visibility: parseVisibility(entry["visibility"]),
7596
7588
  // Same tolerance: an unknown value degrades to the default `tab`.
7597
7589
  openIn: entry["open_in"] === "popup" ? "popup" : "tab",
7598
- nativeElement: parseNativeElement(entry["native_element"])
7590
+ nativeElement: parseNativeElement(entry["native_element"]),
7591
+ preset: str(entry["preset"]),
7592
+ style: str(entry["style"])
7599
7593
  });
7600
7594
  const indexByMethod = /* @__PURE__ */ new Map();
7601
7595
  const out = [];
@@ -7652,7 +7646,11 @@ function encodePanes(panes) {
7652
7646
  // absent key to, so leaving it out changes nothing — and keeps a blob
7653
7647
  // stored before the field existed byte-identical on re-encode, which
7654
7648
  // is what the wire-compatibility test pins.
7655
- ...parseNativeElement(pane.nativeElement) === "everywhere" ? {} : { native_element: parseNativeElement(pane.nativeElement) }
7649
+ ...parseNativeElement(pane.nativeElement) === "everywhere" ? {} : { native_element: parseNativeElement(pane.nativeElement) },
7650
+ // Absent and blank both mean "no look": a pane shaped before the fields
7651
+ // existed encodes exactly as it always did.
7652
+ ...(pane.preset ?? "").trim() ? { preset: (pane.preset ?? "").trim() } : {},
7653
+ ...(pane.style ?? "").trim() ? { style: (pane.style ?? "").trim() } : {}
7656
7654
  };
7657
7655
  });
7658
7656
  }