@supernova-studio/model 0.6.0 → 0.7.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/index.d.mts +90 -45
- package/dist/index.d.ts +90 -45
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/billing/subscription.ts +1 -1
- package/src/dsm/elements/data/documentation-block-v2.ts +2 -1
- package/src/workspace/workspace-membership.ts +10 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CardSchema } from "./card";
|
|
2
|
-
import {
|
|
2
|
+
import { ProductCodeSchema } from "./product";
|
|
3
3
|
import { FeaturesSummary } from "./features";
|
|
4
4
|
import { BillingIntervalSchema } from "./price";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -23,7 +23,8 @@ export type PageBlockTableCellAlignment = z.infer<typeof PageBlockTableCellAlign
|
|
|
23
23
|
//
|
|
24
24
|
|
|
25
25
|
export const PageBlockAppearanceV2 = z.object({
|
|
26
|
-
itemBackgroundColor: ColorValue,
|
|
26
|
+
itemBackgroundColor: ColorValue.optional(),
|
|
27
|
+
numberOfColumns: z.number().optional(),
|
|
27
28
|
});
|
|
28
29
|
|
|
29
30
|
export const PageBlockItemUntypedValue = z
|
|
@@ -9,3 +9,13 @@ export const WorkspaceMembership = z.object({
|
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
export type WorkspaceMembership = z.infer<typeof WorkspaceMembership>;
|
|
12
|
+
|
|
13
|
+
export const UpdateMembershipRolesInput = z.object({
|
|
14
|
+
members: z.array(
|
|
15
|
+
z.object({
|
|
16
|
+
userId: z.string(),
|
|
17
|
+
role: z.nativeEnum(WorkspaceRole),
|
|
18
|
+
})
|
|
19
|
+
),
|
|
20
|
+
});
|
|
21
|
+
export type UpdateMembershipRolesInput = z.infer<typeof UpdateMembershipRolesInput>;
|