Skip to content

Commit dd7dd89

Browse files
authored
chore: bump @logto/cloud version (#8038)
1 parent 574a4b4 commit dd7dd89

File tree

8 files changed

+37
-23
lines changed

8 files changed

+37
-23
lines changed

packages/connectors/connector-logto-email/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"access": "public"
5353
},
5454
"devDependencies": {
55-
"@logto/cloud": "0.2.5-96334d3",
55+
"@logto/cloud": "0.2.5-9c40a76",
5656
"@silverhand/eslint-config": "6.0.1",
5757
"@silverhand/ts-config": "6.0.0",
5858
"@types/node": "^22.14.0",

packages/console/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@fontsource/roboto-mono": "^5.0.0",
2929
"@inkeep/cxkit-react": "^0.5.66",
3030
"@jest/types": "^29.5.0",
31-
"@logto/cloud": "0.2.5-96334d3",
31+
"@logto/cloud": "0.2.5-9c40a76",
3232
"@logto/connector-kit": "workspace:^",
3333
"@logto/core-kit": "workspace:^",
3434
"@logto/language-kit": "workspace:^",

packages/console/src/cloud/types/router.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ export type TenantUsageAddOnSkus = GuardedResponse<
1515
GetRoutes['/api/tenants/:tenantId/subscription/add-on-skus']
1616
>;
1717

18-
export type SystemLimit = Required<
19-
GuardedResponse<GetRoutes['/api/tenants/my/subscription']>
20-
>['systemLimit'];
18+
export type SystemLimit = GuardedResponse<GetRoutes['/api/tenants/my/subscription']>['systemLimit'];
2119

2220
/* ===== Use `New` in the naming to avoid confusion with legacy types ===== */
2321
export type NewSubscriptionUsageResponse = GuardedResponse<

packages/console/src/consts/tenants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const defaultTenantResponse: TenantResponse = {
3131
currentPeriodStart: dayjs().toDate(),
3232
currentPeriodEnd: dayjs().add(1, 'month').toDate(),
3333
isEnterprisePlan: false,
34+
quotaScope: 'dedicated',
3435
},
3536
usage: {
3637
activeUsers: 0,

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"zod": "3.24.3"
102102
},
103103
"devDependencies": {
104-
"@logto/cloud": "0.2.5-96334d3",
104+
"@logto/cloud": "0.2.5-9c40a76",
105105
"@silverhand/eslint-config": "6.0.1",
106106
"@silverhand/ts-config": "6.0.0",
107107
"@types/adm-zip": "^0.5.5",

packages/core/src/libraries/quota.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,6 @@ export class QuotaLibrary {
238238
}) => {
239239
const { systemLimit } = subscriptionData;
240240

241-
if (!systemLimit) {
242-
return;
243-
}
244-
245241
const limit = systemLimit[key];
246242

247243
if (limit === undefined) {

packages/core/src/utils/subscription/types.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ type RouteRequestBodyType<T extends { search?: unknown; body?: ZodType; response
1717
*/
1818
export type Subscription = Omit<
1919
RouteResponseType<GetRoutes['/api/tenants/my/subscription']>,
20-
'currentPeriodStart' | 'currentPeriodEnd'
20+
| 'currentPeriodStart'
21+
| 'currentPeriodEnd'
22+
/**
23+
* Temporarily omit `quotaScope` for backward compatibility.
24+
* When we require this field, implement the related logic here.
25+
* TODO: @simeng-li
26+
*/
27+
| 'quotaScope'
2128
> & {
2229
currentPeriodStart: string;
2330
currentPeriodEnd: string;
@@ -153,6 +160,5 @@ export const subscriptionCacheGuard = z.object({
153160
status: subscriptionStatusGuard,
154161
upcomingInvoice: upcomingInvoiceGuard.nullable().optional(),
155162
quota: logtoSkuQuotaGuard,
156-
// Todo: @xiaoyijun: LOG-12360 make SystemLimit non-optional after this feature is fully rolled out
157-
systemLimit: systemLimitGuard.optional(),
163+
systemLimit: systemLimitGuard,
158164
}) satisfies ToZodObject<Subscription>;

pnpm-lock.yaml

Lines changed: 23 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)