@voquill/types 0.3.19 → 0.3.21
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/tenant.types.d.ts +11 -1
- package/dist/tenant.types.d.ts.map +1 -1
- package/dist/tenant.types.js +2 -0
- package/package.json +2 -2
package/dist/tenant.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FiremixTimestamp } from "@firemix/core";
|
|
2
2
|
import z from "zod";
|
|
3
|
-
import { Replace } from "./common.types";
|
|
3
|
+
import { Nullable, Replace } from "./common.types";
|
|
4
4
|
export declare const TENANT_ROLES: readonly ["owner", "admin", "member"];
|
|
5
5
|
export type TenantRole = (typeof TENANT_ROLES)[number];
|
|
6
6
|
export declare const TenantRoleZod: z.ZodEnum<["owner", "admin", "member"]>;
|
|
@@ -12,6 +12,10 @@ export type DatabaseTenant = {
|
|
|
12
12
|
createdBy: string;
|
|
13
13
|
/** Total seats purchased for this tenant. Source of truth: Stripe webhook. */
|
|
14
14
|
seatCount: number;
|
|
15
|
+
/** Stripe customer ID — set the first time the tenant opens checkout. */
|
|
16
|
+
stripeCustomerId?: Nullable<string>;
|
|
17
|
+
/** Most recent active subscription ID, set by the webhook. */
|
|
18
|
+
stripeSubscriptionId?: Nullable<string>;
|
|
15
19
|
};
|
|
16
20
|
export type Tenant = Replace<DatabaseTenant, FiremixTimestamp, string>;
|
|
17
21
|
export declare const TenantZod: z.ZodObject<{
|
|
@@ -21,6 +25,8 @@ export declare const TenantZod: z.ZodObject<{
|
|
|
21
25
|
name: z.ZodString;
|
|
22
26
|
createdBy: z.ZodString;
|
|
23
27
|
seatCount: z.ZodNumber;
|
|
28
|
+
stripeCustomerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
stripeSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
30
|
}, "strict", z.ZodTypeAny, {
|
|
25
31
|
id: string;
|
|
26
32
|
name: string;
|
|
@@ -28,6 +34,8 @@ export declare const TenantZod: z.ZodObject<{
|
|
|
28
34
|
updatedAt: string;
|
|
29
35
|
createdBy: string;
|
|
30
36
|
seatCount: number;
|
|
37
|
+
stripeCustomerId?: string | null | undefined;
|
|
38
|
+
stripeSubscriptionId?: string | null | undefined;
|
|
31
39
|
}, {
|
|
32
40
|
id: string;
|
|
33
41
|
name: string;
|
|
@@ -35,5 +43,7 @@ export declare const TenantZod: z.ZodObject<{
|
|
|
35
43
|
updatedAt: string;
|
|
36
44
|
createdBy: string;
|
|
37
45
|
seatCount: number;
|
|
46
|
+
stripeCustomerId?: string | null | undefined;
|
|
47
|
+
stripeSubscriptionId?: string | null | undefined;
|
|
38
48
|
}>;
|
|
39
49
|
//# sourceMappingURL=tenant.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.types.d.ts","sourceRoot":"","sources":["../src/tenant.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"tenant.types.d.ts","sourceRoot":"","sources":["../src/tenant.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEnD,eAAO,MAAM,YAAY,uCAAwC,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AACvD,eAAO,MAAM,aAAa,yCAAuB,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,gBAAgB,CAAC;IAC5B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,SAAS,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACpC,8DAA8D;IAC9D,oBAAoB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,gBAAgB,EAAE,MAAM,CAAC,CAAC;AAEvE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWiB,CAAC"}
|
package/dist/tenant.types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voquill/types",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21",
|
|
4
4
|
"description": "Shared types for the monorepo",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/json-schema": "^7.0.15",
|
|
14
14
|
"typescript": "5.9.2",
|
|
15
|
-
"@voquill/typescript-config": "0.3.
|
|
15
|
+
"@voquill/typescript-config": "0.3.21"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|