@supernova-studio/model 0.47.6 → 0.47.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 +60 -1
- package/dist/index.d.ts +60 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/users/user-profile.ts +2 -0
- package/src/utils/errors.ts +6 -1
package/package.json
CHANGED
|
@@ -13,6 +13,8 @@ export const UserOnboarding = z.object({
|
|
|
13
13
|
phase: z.string().optional(),
|
|
14
14
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
15
15
|
designSystemName: z.string().optional(),
|
|
16
|
+
defaultDestination: z.string().optional(),
|
|
17
|
+
figmaUrl: z.string().optional(),
|
|
16
18
|
});
|
|
17
19
|
|
|
18
20
|
export type UserOnboarding = z.infer<typeof UserOnboarding>;
|
package/src/utils/errors.ts
CHANGED
|
@@ -15,13 +15,18 @@ export type SupernovaExceptionType =
|
|
|
15
15
|
| "MissingWorkspacePermission"
|
|
16
16
|
| "MissingExporterPermission"
|
|
17
17
|
| "NoAccess"
|
|
18
|
-
| "MissingCredentials"
|
|
18
|
+
| "MissingCredentials"
|
|
19
|
+
| "ValidationError";
|
|
19
20
|
|
|
20
21
|
export class SupernovaException extends Error {
|
|
21
22
|
static wrongFormat(message?: string): SupernovaException {
|
|
22
23
|
return new SupernovaException("WrongFormat", message);
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
static validationError(message?: string): SupernovaException {
|
|
27
|
+
return new SupernovaException("ValidationError", message);
|
|
28
|
+
}
|
|
29
|
+
|
|
25
30
|
static accessDenied(message?: string): SupernovaException {
|
|
26
31
|
return new SupernovaException("AccessDenied", message);
|
|
27
32
|
}
|