@leaflow/sdk 0.166.0 → 0.167.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/billing/v1/generated/functions.d.ts +1 -1
- package/dist/billing/v1/generated/functions.js +3 -3
- package/dist/billing/v1/generated/schemas.zod.d.ts +1 -1
- package/dist/billing/v1/generated/schemas.zod.js +1 -1
- package/dist/routes.d.ts +2 -2
- package/dist/routes.js +2 -2
- package/package.json +1 -1
|
@@ -1332,7 +1332,7 @@ export type withdrawCancellationResponseError = withdrawCancellationResponseDefa
|
|
|
1332
1332
|
export type withdrawCancellationResponse = withdrawCancellationResponseSuccess | withdrawCancellationResponseError;
|
|
1333
1333
|
export declare const getWithdrawCancellationUrl: (cancellationId: string) => string;
|
|
1334
1334
|
/**
|
|
1335
|
-
* Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:finance.manage`.
|
|
1335
|
+
* Withdraws the whole cancellation, which stays with status `canceled`, while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:finance.manage`.
|
|
1336
1336
|
* @summary Withdraw a cancellation
|
|
1337
1337
|
*/
|
|
1338
1338
|
export declare const withdrawCancellation: (cancellationId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<withdrawCancellationResponse>;
|
|
@@ -1475,16 +1475,16 @@ export const getCancellation = async (cancellationId, options, fetchFn) => {
|
|
|
1475
1475
|
return { data, status: res.status, headers: res.headers };
|
|
1476
1476
|
};
|
|
1477
1477
|
export const getWithdrawCancellationUrl = (cancellationId) => {
|
|
1478
|
-
return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}
|
|
1478
|
+
return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}`;
|
|
1479
1479
|
};
|
|
1480
1480
|
/**
|
|
1481
|
-
* Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:finance.manage`.
|
|
1481
|
+
* Withdraws the whole cancellation, which stays with status `canceled`, while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:finance.manage`.
|
|
1482
1482
|
* @summary Withdraw a cancellation
|
|
1483
1483
|
*/
|
|
1484
1484
|
export const withdrawCancellation = async (cancellationId, options, fetchFn) => {
|
|
1485
1485
|
const res = await (fetchFn ?? fetch)(getWithdrawCancellationUrl(cancellationId), {
|
|
1486
1486
|
...options,
|
|
1487
|
-
method: "
|
|
1487
|
+
method: "DELETE",
|
|
1488
1488
|
});
|
|
1489
1489
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1490
1490
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -719,7 +719,7 @@ export declare const GetCancellationParams: zod.ZodObject<{
|
|
|
719
719
|
cancellationId: zod.ZodUUID;
|
|
720
720
|
}, zod.z.core.$strict>;
|
|
721
721
|
/**
|
|
722
|
-
* Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:finance.manage`.
|
|
722
|
+
* Withdraws the whole cancellation, which stays with status `canceled`, while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:finance.manage`.
|
|
723
723
|
* @summary Withdraw a cancellation
|
|
724
724
|
*/
|
|
725
725
|
export declare const WithdrawCancellationParams: zod.ZodObject<{
|
|
@@ -921,7 +921,7 @@ export const GetCancellationParams = zod.strictObject({
|
|
|
921
921
|
cancellationId: zod.uuid(),
|
|
922
922
|
});
|
|
923
923
|
/**
|
|
924
|
-
* Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:finance.manage`.
|
|
924
|
+
* Withdraws the whole cancellation, which stays with status `canceled`, while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:finance.manage`.
|
|
925
925
|
* @summary Withdraw a cancellation
|
|
926
926
|
*/
|
|
927
927
|
export const WithdrawCancellationParams = zod.strictObject({
|
package/dist/routes.d.ts
CHANGED
|
@@ -1234,8 +1234,8 @@ export declare const routes: readonly [{
|
|
|
1234
1234
|
}, {
|
|
1235
1235
|
readonly service: "billing";
|
|
1236
1236
|
readonly contract: "billing";
|
|
1237
|
-
readonly method: "
|
|
1238
|
-
readonly path: "/api/v1/cancellations/{cancellationId}
|
|
1237
|
+
readonly method: "DELETE";
|
|
1238
|
+
readonly path: "/api/v1/cancellations/{cancellationId}";
|
|
1239
1239
|
readonly operationId: "withdraw-cancellation";
|
|
1240
1240
|
readonly securityScheme: "AccessToken";
|
|
1241
1241
|
readonly upstreamUrl: "https://billing.leaflow.cloud";
|
package/dist/routes.js
CHANGED
|
@@ -1390,8 +1390,8 @@ export const routes = [
|
|
|
1390
1390
|
{
|
|
1391
1391
|
service: "billing",
|
|
1392
1392
|
contract: "billing",
|
|
1393
|
-
method: "
|
|
1394
|
-
path: "/api/v1/cancellations/{cancellationId}
|
|
1393
|
+
method: "DELETE",
|
|
1394
|
+
path: "/api/v1/cancellations/{cancellationId}",
|
|
1395
1395
|
operationId: "withdraw-cancellation",
|
|
1396
1396
|
securityScheme: "AccessToken",
|
|
1397
1397
|
upstreamUrl: "https://billing.leaflow.cloud",
|