@delopay/sdk 0.113.0 → 0.115.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.
@@ -2388,6 +2388,19 @@ var Routing = class {
2388
2388
  async getDefaultProfile() {
2389
2389
  return this.request("GET", "/routing/default/profile");
2390
2390
  }
2391
+ /**
2392
+ * Retrieve one profile's default config. `GET /routing/default/profile/{profileId}`
2393
+ *
2394
+ * The narrow counterpart of `getDefaultProfile()`: that one returns every
2395
+ * profile of the merchant and needs merchant-level routing read, so a
2396
+ * profile-scoped (shop) role could write its own default through
2397
+ * `updateDefaultProfile()` but never read it back. This read is gated on
2398
+ * profile-level routing read and pinned to the caller's own profile — a shop
2399
+ * role asking for a sibling profile is refused.
2400
+ */
2401
+ async getDefaultForProfile(profileId) {
2402
+ return this.request("GET", `/routing/default/profile/${encodeURIComponent(profileId)}`);
2403
+ }
2391
2404
  /** Update default config for a profile. `POST /routing/default/profile/{profileId}` */
2392
2405
  async updateDefaultProfile(profileId, params) {
2393
2406
  return this.request("POST", `/routing/default/profile/${encodeURIComponent(profileId)}`, {
@@ -6839,4 +6852,4 @@ export {
6839
6852
  decodeNativePanes,
6840
6853
  encodeNativePanes
6841
6854
  };
6842
- //# sourceMappingURL=chunk-NY5O6S5X.js.map
6855
+ //# sourceMappingURL=chunk-VH5NCMH6.js.map