@delopay/sdk 0.217.0 → 0.218.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-TNEV5OYF.js → chunk-N2QCUNWM.js} +39 -1
- package/dist/chunk-N2QCUNWM.js.map +1 -0
- package/dist/index.cjs +38 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +56 -2
- package/dist/index.d.ts +56 -2
- package/dist/index.js +1 -1
- package/dist/internal.cjs +38 -0
- 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-TNEV5OYF.js.map +0 -1
|
@@ -3103,6 +3103,44 @@ var Routing = class {
|
|
|
3103
3103
|
async connectorCaps(profileId) {
|
|
3104
3104
|
return this.request("GET", `/routing/connector-caps/${encodeURIComponent(profileId)}`);
|
|
3105
3105
|
}
|
|
3106
|
+
/** Read a shop's dated limit overrides. `GET /routing/connector-cap-schedules/{profileId}` */
|
|
3107
|
+
async connectorCapSchedules(profileId) {
|
|
3108
|
+
return this.request("GET", `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`);
|
|
3109
|
+
}
|
|
3110
|
+
/**
|
|
3111
|
+
* Replace a shop's complete schedule using its last-read revision.
|
|
3112
|
+
* Remove an entry to cancel it; ordinary configured caps are unchanged.
|
|
3113
|
+
* Instants require explicit offsets, and overlapping entries for the same
|
|
3114
|
+
* account and unit are refused by the server. Capability preflight refuses
|
|
3115
|
+
* unsupported backends before submitting any schedule.
|
|
3116
|
+
*
|
|
3117
|
+
* `PUT /routing/connector-cap-schedules/{profileId}`
|
|
3118
|
+
*/
|
|
3119
|
+
async setConnectorCapSchedules(profileId, params) {
|
|
3120
|
+
const caps = await this.connectorCaps(profileId);
|
|
3121
|
+
if (!caps.features?.includes("limit_schedules")) {
|
|
3122
|
+
throw new Error("Connector limit schedules are unsupported by the serving backend");
|
|
3123
|
+
}
|
|
3124
|
+
return this.request(
|
|
3125
|
+
"PUT",
|
|
3126
|
+
`/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`,
|
|
3127
|
+
{
|
|
3128
|
+
body: params
|
|
3129
|
+
}
|
|
3130
|
+
);
|
|
3131
|
+
}
|
|
3132
|
+
/** Change the drawn value of an active scheduled range; preserves all usage. */
|
|
3133
|
+
async shuffleConnectorCapSchedule(profileId, params) {
|
|
3134
|
+
const caps = await this.connectorCaps(profileId);
|
|
3135
|
+
if (!caps.features?.includes("limit_schedules")) {
|
|
3136
|
+
throw new Error("Connector limit schedules are unsupported by the serving backend");
|
|
3137
|
+
}
|
|
3138
|
+
return this.request(
|
|
3139
|
+
"POST",
|
|
3140
|
+
`/routing/connector-cap-schedules/${encodeURIComponent(profileId)}/shuffle`,
|
|
3141
|
+
{ body: params }
|
|
3142
|
+
);
|
|
3143
|
+
}
|
|
3106
3144
|
/**
|
|
3107
3145
|
* The live `routing_volume` counters behind a shop's active advanced
|
|
3108
3146
|
* program: one per distinct budget the program reads, each with the window
|
|
@@ -11938,4 +11976,4 @@ export {
|
|
|
11938
11976
|
decodeNativePanes,
|
|
11939
11977
|
encodeNativePanes
|
|
11940
11978
|
};
|
|
11941
|
-
//# sourceMappingURL=chunk-
|
|
11979
|
+
//# sourceMappingURL=chunk-N2QCUNWM.js.map
|