@supernova-studio/model 0.59.6 → 0.59.8
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 +547 -1
- package/dist/index.d.ts +547 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/integrations/integration.ts +7 -2
- package/src/users/user-profile.ts +15 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { nullishToOptional } from "../helpers";
|
|
2
|
+
import { DbUpdate, nullishToOptional } from "../helpers";
|
|
3
3
|
import { UserMinified } from "../users/user-minified";
|
|
4
|
-
import { tryParseUrl } from "../utils";
|
|
4
|
+
import { OmitStrict, tryParseUrl } from "../utils";
|
|
5
5
|
|
|
6
6
|
export const IntegrationDesignSystem = z.object({
|
|
7
7
|
designSystemId: z.string(),
|
|
@@ -53,6 +53,11 @@ export const IntegrationCredentials = z.object({
|
|
|
53
53
|
|
|
54
54
|
export type IntegrationCredentials = z.infer<typeof IntegrationCredentials>;
|
|
55
55
|
|
|
56
|
+
export type UpdateIntegrationCredential = OmitStrict<
|
|
57
|
+
DbUpdate<IntegrationCredentials>,
|
|
58
|
+
"id" | "integrationId" | "appInstallationId" | "type"
|
|
59
|
+
>;
|
|
60
|
+
|
|
56
61
|
export const ExtendedIntegrationType = z.enum([
|
|
57
62
|
"Figma",
|
|
58
63
|
"Github",
|
|
@@ -3,6 +3,19 @@ import { z } from "zod";
|
|
|
3
3
|
export const UserOnboardingDepartment = z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4
4
|
export const UserOnboardingJobLevel = z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
5
5
|
|
|
6
|
+
export const UserTheme = z.object({
|
|
7
|
+
preset: z
|
|
8
|
+
.enum(["Custom", "Default", "HighContrast", "DefaultDark", "HighContrastDark", "SpaceBlue", "DarkGrey"])
|
|
9
|
+
.optional(),
|
|
10
|
+
backgroundColor: z.string().optional(),
|
|
11
|
+
accentColor: z.string().optional(),
|
|
12
|
+
contrast: z.number().min(16).max(100).optional(),
|
|
13
|
+
isSecondaryEnabled: z.boolean().optional(),
|
|
14
|
+
secondaryBackgroundColor: z.string().optional(),
|
|
15
|
+
secondaryContrast: z.number().min(16).max(100).optional(),
|
|
16
|
+
isEditorWhite: z.boolean().optional(),
|
|
17
|
+
});
|
|
18
|
+
|
|
6
19
|
export const UserOnboarding = z.object({
|
|
7
20
|
companyName: z.string().optional(),
|
|
8
21
|
numberOfPeopleInOrg: z.string().optional(),
|
|
@@ -23,11 +36,13 @@ export const UserProfile = z.object({
|
|
|
23
36
|
avatar: z.string().optional(),
|
|
24
37
|
nickname: z.string().optional(),
|
|
25
38
|
onboarding: UserOnboarding.optional(),
|
|
39
|
+
theme: UserTheme.optional(),
|
|
26
40
|
});
|
|
27
41
|
|
|
28
42
|
export type UserOnboardingDepartment = z.infer<typeof UserOnboardingDepartment>;
|
|
29
43
|
export type UserOnboardingJobLevel = z.infer<typeof UserOnboardingJobLevel>;
|
|
30
44
|
export type UserOnboarding = z.infer<typeof UserOnboarding>;
|
|
45
|
+
export type UserTheme = z.infer<typeof UserTheme>;
|
|
31
46
|
export type UserProfile = z.infer<typeof UserProfile>;
|
|
32
47
|
|
|
33
48
|
//
|