@leaflow/sdk 0.0.0-dev.369.g4b81cd7 → 0.0.0-dev.371.gc7cf9b8

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.
@@ -501,13 +501,13 @@ export type setProjectAssignmentResponseError = setProjectAssignmentResponseDefa
501
501
  export type setProjectAssignmentResponse = setProjectAssignmentResponseSuccess | setProjectAssignmentResponseError;
502
502
  export declare const getSetProjectAssignmentUrl: (projectId: string) => string;
503
503
  /**
504
- * Links the project to another billing account. Charges already incurred stay with the account linked when they
505
- * occurred and are invoiced to it; metered resources are settled up to the moment of the change. Amounts the
506
- * previous account owes do not prevent the change. Orders keep the account they were placed with; paid periods
507
- * are unaffected, and renewals are charged to the new account.
504
+ * Links the project to a billing account. A project without one is linked directly. Moving it to another
505
+ * account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
506
+ * no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
507
+ * invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
508
+ * occurred.
508
509
  *
509
- * Refused once the project no longer accepts purchases because it is being deleted, and while a subscription or
510
- * an in-progress order of the project uses a currency other than the new account's.
510
+ * Refused once the project no longer accepts purchases because it is being deleted.
511
511
  * @summary Set project assignment
512
512
  */
513
513
  export declare const setProjectAssignment: (projectId: string, setProjectAssignmentRequest: SetProjectAssignmentRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<setProjectAssignmentResponse>;
@@ -528,7 +528,7 @@ export type unlinkProjectBillingAccountResponseError = unlinkProjectBillingAccou
528
528
  export type unlinkProjectBillingAccountResponse = unlinkProjectBillingAccountResponseSuccess | unlinkProjectBillingAccountResponseError;
529
529
  export declare const getUnlinkProjectBillingAccountUrl: (projectId: string) => string;
530
530
  /**
531
- * Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes; orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual; amounts it owes do not prevent unlinking. The project cannot make purchases until a billing account is linked again.
531
+ * Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
532
532
  * @summary Unlink project billing account
533
533
  */
534
534
  export declare const unlinkProjectBillingAccount: (projectId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<unlinkProjectBillingAccountResponse>;
@@ -529,13 +529,13 @@ export const getSetProjectAssignmentUrl = (projectId) => {
529
529
  return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
530
530
  };
531
531
  /**
532
- * Links the project to another billing account. Charges already incurred stay with the account linked when they
533
- * occurred and are invoiced to it; metered resources are settled up to the moment of the change. Amounts the
534
- * previous account owes do not prevent the change. Orders keep the account they were placed with; paid periods
535
- * are unaffected, and renewals are charged to the new account.
532
+ * Links the project to a billing account. A project without one is linked directly. Moving it to another
533
+ * account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
534
+ * no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
535
+ * invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
536
+ * occurred.
536
537
  *
537
- * Refused once the project no longer accepts purchases because it is being deleted, and while a subscription or
538
- * an in-progress order of the project uses a currency other than the new account's.
538
+ * Refused once the project no longer accepts purchases because it is being deleted.
539
539
  * @summary Set project assignment
540
540
  */
541
541
  export const setProjectAssignment = async (projectId, setProjectAssignmentRequest, options, fetchFn) => {
@@ -568,7 +568,7 @@ export const getUnlinkProjectBillingAccountUrl = (projectId) => {
568
568
  return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
569
569
  };
570
570
  /**
571
- * Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes; orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual; amounts it owes do not prevent unlinking. The project cannot make purchases until a billing account is linked again.
571
+ * Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
572
572
  * @summary Unlink project billing account
573
573
  */
574
574
  export const unlinkProjectBillingAccount = async (projectId, options, fetchFn) => {
@@ -242,13 +242,13 @@ export declare const GetProjectAssignmentParams: zod.ZodObject<{
242
242
  projectId: zod.ZodUUID;
243
243
  }, zod.z.core.$strict>;
244
244
  /**
245
- * Links the project to another billing account. Charges already incurred stay with the account linked when they
246
- * occurred and are invoiced to it; metered resources are settled up to the moment of the change. Amounts the
247
- * previous account owes do not prevent the change. Orders keep the account they were placed with; paid periods
248
- * are unaffected, and renewals are charged to the new account.
245
+ * Links the project to a billing account. A project without one is linked directly. Moving it to another
246
+ * account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
247
+ * no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
248
+ * invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
249
+ * occurred.
249
250
  *
250
- * Refused once the project no longer accepts purchases because it is being deleted, and while a subscription or
251
- * an in-progress order of the project uses a currency other than the new account's.
251
+ * Refused once the project no longer accepts purchases because it is being deleted.
252
252
  * @summary Set project assignment
253
253
  */
254
254
  export declare const SetProjectAssignmentParams: zod.ZodObject<{
@@ -258,7 +258,7 @@ export declare const SetProjectAssignmentBody: zod.ZodObject<{
258
258
  billing_account_id: zod.ZodInt;
259
259
  }, zod.z.core.$strict>;
260
260
  /**
261
- * Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes; orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual; amounts it owes do not prevent unlinking. The project cannot make purchases until a billing account is linked again.
261
+ * Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
262
262
  * @summary Unlink project billing account
263
263
  */
264
264
  export declare const UnlinkProjectBillingAccountParams: zod.ZodObject<{
@@ -293,13 +293,13 @@ export const GetProjectAssignmentParams = zod.strictObject({
293
293
  projectId: zod.uuid(),
294
294
  });
295
295
  /**
296
- * Links the project to another billing account. Charges already incurred stay with the account linked when they
297
- * occurred and are invoiced to it; metered resources are settled up to the moment of the change. Amounts the
298
- * previous account owes do not prevent the change. Orders keep the account they were placed with; paid periods
299
- * are unaffected, and renewals are charged to the new account.
296
+ * Links the project to a billing account. A project without one is linked directly. Moving it to another
297
+ * account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
298
+ * no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
299
+ * invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
300
+ * occurred.
300
301
  *
301
- * Refused once the project no longer accepts purchases because it is being deleted, and while a subscription or
302
- * an in-progress order of the project uses a currency other than the new account's.
302
+ * Refused once the project no longer accepts purchases because it is being deleted.
303
303
  * @summary Set project assignment
304
304
  */
305
305
  export const SetProjectAssignmentParams = zod.strictObject({
@@ -307,7 +307,7 @@ export const SetProjectAssignmentParams = zod.strictObject({
307
307
  });
308
308
  export const SetProjectAssignmentBody = SetProjectAssignmentRequest;
309
309
  /**
310
- * Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes; orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual; amounts it owes do not prevent unlinking. The project cannot make purchases until a billing account is linked again.
310
+ * Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
311
311
  * @summary Unlink project billing account
312
312
  */
313
313
  export const UnlinkProjectBillingAccountParams = zod.strictObject({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.0.0-dev.369.g4b81cd7",
3
+ "version": "0.0.0-dev.371.gc7cf9b8",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {