@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/model",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  import { CardSchema } from "./card";
2
- import { ProductCode, ProductCodeSchema } from "./product";
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>;