@go-mondo/identity-sdk 0.0.2-beta.19 → 0.0.2-beta.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/.release-please-manifest.json +1 -1
- package/.tsbuildinfo/cjs.json +1 -1
- package/.tsbuildinfo/esm.json +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/cjs/action/schema/base.d.ts +3 -3
- package/dist/cjs/action/schema/base.d.ts.map +1 -1
- package/dist/cjs/action/schema/base.js +3 -3
- package/dist/cjs/action/schema/operations/set-password.d.ts +3 -3
- package/dist/cjs/action/schema/operations/sign-up-verification.d.ts +3 -3
- package/dist/cjs/action/schema/operations/sign-up.d.ts +3 -3
- package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +3 -3
- package/dist/cjs/action/schema/schema.d.ts +12 -12
- package/dist/cjs/activity/schema/base.d.ts +6 -6
- package/dist/cjs/activity/schema/base.d.ts.map +1 -1
- package/dist/cjs/activity/schema/base.js +9 -9
- package/dist/cjs/activity/schema/schema.d.ts +30 -30
- package/dist/cjs/activity/schema/types/authentication.d.ts +6 -6
- package/dist/cjs/activity/schema/types/authorization.d.ts +6 -6
- package/dist/cjs/activity/schema/types/note.d.ts +6 -6
- package/dist/cjs/activity/schema/types/operation.d.ts +6 -6
- package/dist/cjs/activity/schema/types/unknown.d.ts +6 -6
- package/dist/cjs/app/authorization/schema.d.ts +5 -5
- package/dist/cjs/app/authorization/schema.d.ts.map +1 -1
- package/dist/cjs/app/authorization/schema.js +4 -4
- package/dist/cjs/app/oauth/schema.d.ts +5 -5
- package/dist/cjs/app/oauth/schema.d.ts.map +1 -1
- package/dist/cjs/app/oauth/schema.js +4 -4
- package/dist/cjs/app/oidc/schema.d.ts +5 -5
- package/dist/cjs/app/oidc/schema.d.ts.map +1 -1
- package/dist/cjs/app/oidc/schema.js +4 -4
- package/dist/cjs/app/registration/schema.d.ts +5 -5
- package/dist/cjs/app/registration/schema.d.ts.map +1 -1
- package/dist/cjs/app/registration/schema.js +4 -4
- package/dist/cjs/app/saml/schema.d.ts +5 -5
- package/dist/cjs/app/saml/schema.d.ts.map +1 -1
- package/dist/cjs/app/saml/schema.js +4 -4
- package/dist/cjs/app/schema.d.ts +6 -6
- package/dist/cjs/app/schema.d.ts.map +1 -1
- package/dist/cjs/app/schema.js +9 -8
- package/dist/cjs/association/schema.d.ts +7 -7
- package/dist/cjs/association/schema.d.ts.map +1 -1
- package/dist/cjs/association/schema.js +7 -7
- package/dist/cjs/authentication/providers/schema.d.ts +3 -3
- package/dist/cjs/authentication/providers/schema.d.ts.map +1 -1
- package/dist/cjs/authentication/providers/schema.js +4 -4
- package/dist/cjs/authentication/sessions/schema.d.ts +10 -10
- package/dist/cjs/authentication/sessions/schema.d.ts.map +1 -1
- package/dist/cjs/authentication/sessions/schema.js +8 -8
- package/dist/cjs/authentication/settings/schema.d.ts +7 -7
- package/dist/cjs/authentication/settings/schema.d.ts.map +1 -1
- package/dist/cjs/authentication/settings/schema.js +6 -6
- package/dist/cjs/authentication/strategies/schema/base.d.ts +8 -8
- package/dist/cjs/authentication/strategies/schema/base.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/base.js +9 -9
- package/dist/cjs/authentication/strategies/schema/schema.d.ts +37 -37
- package/dist/cjs/authentication/strategies/schema/schema.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/schema.js +21 -4
- package/dist/cjs/authentication/strategies/schema/types/email.d.ts +8 -8
- package/dist/cjs/authentication/strategies/schema/types/email.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/types/email.js +1 -1
- package/dist/cjs/authentication/strategies/schema/types/password.d.ts +8 -8
- package/dist/cjs/authentication/strategies/schema/types/password.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/types/password.js +1 -1
- package/dist/cjs/authentication/strategies/schema/types/totp.d.ts +8 -8
- package/dist/cjs/authentication/strategies/schema/types/totp.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/types/totp.js +1 -1
- package/dist/cjs/authorization/permissions/schema.d.ts +8 -8
- package/dist/cjs/authorization/permissions/schema.d.ts.map +1 -1
- package/dist/cjs/authorization/permissions/schema.js +9 -9
- package/dist/cjs/authorization/roles/schema.d.ts +6 -6
- package/dist/cjs/authorization/roles/schema.d.ts.map +1 -1
- package/dist/cjs/authorization/roles/schema.js +9 -9
- package/dist/cjs/common/schema/dates.d.ts +3 -3
- package/dist/cjs/common/schema/dates.d.ts.map +1 -1
- package/dist/cjs/common/schema/dates.js +1 -1
- package/dist/cjs/customer/organization/schema.d.ts +6 -6
- package/dist/cjs/customer/organization/schema.d.ts.map +1 -1
- package/dist/cjs/customer/organization/schema.js +9 -9
- package/dist/cjs/customer/users/schema.d.ts +8 -8
- package/dist/cjs/customer/users/schema.d.ts.map +1 -1
- package/dist/cjs/customer/users/schema.js +8 -8
- package/dist/cjs/oauth/token/schema/schema.d.ts +4 -4
- package/dist/cjs/oauth/token/schema/schema.d.ts.map +1 -1
- package/dist/cjs/oauth/token/schema/schema.js +6 -1
- package/dist/cjs/workspace/authorization/schema.d.ts +5 -5
- package/dist/cjs/workspace/authorization/schema.d.ts.map +1 -1
- package/dist/cjs/workspace/authorization/schema.js +5 -5
- package/dist/cjs/workspace/branding/schema.d.ts +5 -5
- package/dist/cjs/workspace/branding/schema.d.ts.map +1 -1
- package/dist/cjs/workspace/branding/schema.js +4 -4
- package/dist/cjs/workspace/membership/schema.d.ts +2 -2
- package/dist/cjs/workspace/registration/schema.d.ts +5 -5
- package/dist/cjs/workspace/registration/schema.d.ts.map +1 -1
- package/dist/cjs/workspace/registration/schema.js +4 -4
- package/dist/cjs/workspace/settings/schema.d.ts +5 -5
- package/dist/cjs/workspace/settings/schema.d.ts.map +1 -1
- package/dist/cjs/workspace/settings/schema.js +4 -4
- package/dist/cjs/workspace/tenant/schema.d.ts +10 -10
- package/dist/cjs/workspace/user/notifications/schema.d.ts +8 -8
- package/dist/cjs/workspace/user/notifications/schema.d.ts.map +1 -1
- package/dist/cjs/workspace/user/notifications/schema.js +9 -9
- package/dist/cjs/workspace/user/preferences/schema.d.ts +5 -5
- package/dist/cjs/workspace/user/preferences/schema.d.ts.map +1 -1
- package/dist/cjs/workspace/user/preferences/schema.js +4 -4
- package/dist/esm/action/schema/base.d.ts +3 -3
- package/dist/esm/action/schema/base.d.ts.map +1 -1
- package/dist/esm/action/schema/base.js +4 -4
- package/dist/esm/action/schema/operations/set-password.d.ts +3 -3
- package/dist/esm/action/schema/operations/sign-up-verification.d.ts +3 -3
- package/dist/esm/action/schema/operations/sign-up.d.ts +3 -3
- package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +3 -3
- package/dist/esm/action/schema/schema.d.ts +12 -12
- package/dist/esm/activity/schema/base.d.ts +6 -6
- package/dist/esm/activity/schema/base.d.ts.map +1 -1
- package/dist/esm/activity/schema/base.js +9 -9
- package/dist/esm/activity/schema/schema.d.ts +30 -30
- package/dist/esm/activity/schema/types/authentication.d.ts +6 -6
- package/dist/esm/activity/schema/types/authorization.d.ts +6 -6
- package/dist/esm/activity/schema/types/note.d.ts +6 -6
- package/dist/esm/activity/schema/types/operation.d.ts +6 -6
- package/dist/esm/activity/schema/types/unknown.d.ts +6 -6
- package/dist/esm/app/authorization/schema.d.ts +5 -5
- package/dist/esm/app/authorization/schema.d.ts.map +1 -1
- package/dist/esm/app/authorization/schema.js +5 -5
- package/dist/esm/app/oauth/schema.d.ts +5 -5
- package/dist/esm/app/oauth/schema.d.ts.map +1 -1
- package/dist/esm/app/oauth/schema.js +5 -5
- package/dist/esm/app/oidc/schema.d.ts +5 -5
- package/dist/esm/app/oidc/schema.d.ts.map +1 -1
- package/dist/esm/app/oidc/schema.js +5 -5
- package/dist/esm/app/registration/schema.d.ts +5 -5
- package/dist/esm/app/registration/schema.d.ts.map +1 -1
- package/dist/esm/app/registration/schema.js +5 -5
- package/dist/esm/app/saml/schema.d.ts +5 -5
- package/dist/esm/app/saml/schema.d.ts.map +1 -1
- package/dist/esm/app/saml/schema.js +5 -5
- package/dist/esm/app/schema.d.ts +6 -6
- package/dist/esm/app/schema.d.ts.map +1 -1
- package/dist/esm/app/schema.js +10 -9
- package/dist/esm/association/schema.d.ts +7 -7
- package/dist/esm/association/schema.d.ts.map +1 -1
- package/dist/esm/association/schema.js +8 -8
- package/dist/esm/authentication/providers/schema.d.ts +3 -3
- package/dist/esm/authentication/providers/schema.d.ts.map +1 -1
- package/dist/esm/authentication/providers/schema.js +4 -4
- package/dist/esm/authentication/sessions/schema.d.ts +10 -10
- package/dist/esm/authentication/sessions/schema.d.ts.map +1 -1
- package/dist/esm/authentication/sessions/schema.js +9 -9
- package/dist/esm/authentication/settings/schema.d.ts +7 -7
- package/dist/esm/authentication/settings/schema.d.ts.map +1 -1
- package/dist/esm/authentication/settings/schema.js +7 -7
- package/dist/esm/authentication/strategies/schema/base.d.ts +8 -8
- package/dist/esm/authentication/strategies/schema/base.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/base.js +9 -9
- package/dist/esm/authentication/strategies/schema/schema.d.ts +37 -37
- package/dist/esm/authentication/strategies/schema/schema.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/schema.js +21 -4
- package/dist/esm/authentication/strategies/schema/types/email.d.ts +8 -8
- package/dist/esm/authentication/strategies/schema/types/email.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/types/email.js +2 -2
- package/dist/esm/authentication/strategies/schema/types/password.d.ts +8 -8
- package/dist/esm/authentication/strategies/schema/types/password.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/types/password.js +2 -2
- package/dist/esm/authentication/strategies/schema/types/totp.d.ts +8 -8
- package/dist/esm/authentication/strategies/schema/types/totp.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/types/totp.js +2 -2
- package/dist/esm/authorization/permissions/schema.d.ts +8 -8
- package/dist/esm/authorization/permissions/schema.d.ts.map +1 -1
- package/dist/esm/authorization/permissions/schema.js +9 -9
- package/dist/esm/authorization/roles/schema.d.ts +6 -6
- package/dist/esm/authorization/roles/schema.d.ts.map +1 -1
- package/dist/esm/authorization/roles/schema.js +9 -9
- package/dist/esm/common/schema/dates.d.ts +3 -3
- package/dist/esm/common/schema/dates.d.ts.map +1 -1
- package/dist/esm/common/schema/dates.js +1 -1
- package/dist/esm/customer/organization/schema.d.ts +6 -6
- package/dist/esm/customer/organization/schema.d.ts.map +1 -1
- package/dist/esm/customer/organization/schema.js +9 -9
- package/dist/esm/customer/users/schema.d.ts +8 -8
- package/dist/esm/customer/users/schema.d.ts.map +1 -1
- package/dist/esm/customer/users/schema.js +9 -9
- package/dist/esm/oauth/token/schema/schema.d.ts +4 -4
- package/dist/esm/oauth/token/schema/schema.d.ts.map +1 -1
- package/dist/esm/oauth/token/schema/schema.js +6 -1
- package/dist/esm/workspace/authorization/schema.d.ts +5 -5
- package/dist/esm/workspace/authorization/schema.d.ts.map +1 -1
- package/dist/esm/workspace/authorization/schema.js +6 -6
- package/dist/esm/workspace/branding/schema.d.ts +5 -5
- package/dist/esm/workspace/branding/schema.d.ts.map +1 -1
- package/dist/esm/workspace/branding/schema.js +5 -5
- package/dist/esm/workspace/membership/schema.d.ts +2 -2
- package/dist/esm/workspace/registration/schema.d.ts +5 -5
- package/dist/esm/workspace/registration/schema.d.ts.map +1 -1
- package/dist/esm/workspace/registration/schema.js +5 -5
- package/dist/esm/workspace/settings/schema.d.ts +5 -5
- package/dist/esm/workspace/settings/schema.d.ts.map +1 -1
- package/dist/esm/workspace/settings/schema.js +5 -5
- package/dist/esm/workspace/tenant/schema.d.ts +10 -10
- package/dist/esm/workspace/user/notifications/schema.d.ts +8 -8
- package/dist/esm/workspace/user/notifications/schema.d.ts.map +1 -1
- package/dist/esm/workspace/user/notifications/schema.js +9 -9
- package/dist/esm/workspace/user/preferences/schema.d.ts +5 -5
- package/dist/esm/workspace/user/preferences/schema.d.ts.map +1 -1
- package/dist/esm/workspace/user/preferences/schema.js +5 -5
- package/package.json +1 -1
|
@@ -12,6 +12,10 @@ export declare const UserNotificationIdPropertySchema: z.ZodObject<{
|
|
|
12
12
|
export type UserNotificationIdProperty = z.output<typeof UserNotificationIdPropertySchema>;
|
|
13
13
|
export declare const UserNotificationSchema: z.ZodObject<{
|
|
14
14
|
metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
|
|
15
|
+
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
16
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
17
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
18
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
15
19
|
type: z.ZodEnum<{
|
|
16
20
|
info: "info";
|
|
17
21
|
import: "import";
|
|
@@ -20,10 +24,6 @@ export declare const UserNotificationSchema: z.ZodObject<{
|
|
|
20
24
|
link: z.ZodURL;
|
|
21
25
|
label: z.ZodString;
|
|
22
26
|
}, z.core.$strip>, z.ZodUndefined]>>;
|
|
23
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
24
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
25
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
26
|
-
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
27
27
|
title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
|
|
28
28
|
message: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
|
|
29
29
|
id: z.ZodString;
|
|
@@ -32,6 +32,10 @@ export type UserNotificationProperties = z.input<typeof UserNotificationSchema>;
|
|
|
32
32
|
export type UserNotification = z.output<typeof UserNotificationSchema>;
|
|
33
33
|
export declare const UserNotificationPayloadSchema: z.ZodObject<{
|
|
34
34
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
|
|
35
|
+
deactivatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
36
|
+
deletedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
37
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
38
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
35
39
|
type: z.ZodEnum<{
|
|
36
40
|
info: "info";
|
|
37
41
|
import: "import";
|
|
@@ -40,10 +44,6 @@ export declare const UserNotificationPayloadSchema: z.ZodObject<{
|
|
|
40
44
|
link: z.ZodURL;
|
|
41
45
|
label: z.ZodString;
|
|
42
46
|
}, z.core.$strip>, z.ZodUndefined]>>;
|
|
43
|
-
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
44
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
45
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
46
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
47
47
|
title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
|
|
48
48
|
message: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
|
|
49
49
|
id: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/workspace/user/notifications/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/workspace/user/notifications/schema.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D,eAAO,MAAM,wBAAwB,aAEpC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE3E,eAAO,MAAM,gCAAgC;;iBAE3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAC/C,OAAO,gCAAgC,CACxC,CAAC;AAYF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;iBAUjC,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAChF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEvE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;iBAUxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAC5C,OAAO,6BAA6B,CACrC,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;iBAM9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAClD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;iBAI9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAClD,OAAO,mCAAmC,CAC3C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { CreatedAtPropertyPayloadSchema, CreatedAtPropertySchema, DeactivatedAtPropertyPayloadSchema, DeactivatedAtPropertySchema, DeletedAtPropertyPayloadSchema, DeletedAtPropertySchema, UpdatedAtPropertyPayloadSchema, UpdatedAtPropertySchema, } from 'src/common/index.js';
|
|
1
2
|
import { z } from 'zod';
|
|
2
|
-
import { OptionalDatePayloadSchema, OptionalDateSchema, RequiredDatePayloadSchema, RequiredDateSchema, } from '../../../common/schema/dates.js';
|
|
3
3
|
import { KSUIDSchema } from '../../../common/schema/id.js';
|
|
4
4
|
import { MetadataMapPropertySchema, MetadataPayloadPropertySchema, } from '../../../common/schema/metadata.js';
|
|
5
5
|
import { Model, generateNotificationId } from '../../utils.js';
|
|
@@ -24,10 +24,10 @@ export const UserNotificationSchema = z.object({
|
|
|
24
24
|
...BaseSchema.shape,
|
|
25
25
|
type: z.enum([NotificationType.IMPORT, NotificationType.INFO]),
|
|
26
26
|
action: z.union([ActionSchema, z.undefined()]).optional(),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
...CreatedAtPropertySchema.shape,
|
|
28
|
+
...UpdatedAtPropertySchema.shape,
|
|
29
|
+
...DeletedAtPropertySchema.shape,
|
|
30
|
+
...DeactivatedAtPropertySchema.shape,
|
|
31
31
|
...MetadataMapPropertySchema.shape,
|
|
32
32
|
});
|
|
33
33
|
export const UserNotificationPayloadSchema = z.object({
|
|
@@ -35,10 +35,10 @@ export const UserNotificationPayloadSchema = z.object({
|
|
|
35
35
|
...BaseSchema.shape,
|
|
36
36
|
type: z.enum([NotificationType.IMPORT, NotificationType.INFO]),
|
|
37
37
|
action: z.union([ActionSchema, z.undefined()]).optional(),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
...CreatedAtPropertyPayloadSchema.shape,
|
|
39
|
+
...UpdatedAtPropertyPayloadSchema.shape,
|
|
40
|
+
...DeletedAtPropertyPayloadSchema.shape,
|
|
41
|
+
...DeactivatedAtPropertyPayloadSchema.shape,
|
|
42
42
|
...MetadataPayloadPropertySchema.shape,
|
|
43
43
|
});
|
|
44
44
|
export const InsertUserNotificationPayloadSchema = z.object({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const UserPreferencesSchema: z.ZodObject<{
|
|
3
3
|
metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
|
|
4
|
-
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
5
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
6
4
|
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
5
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
6
|
+
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
7
7
|
views: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8
8
|
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
9
|
}, z.core.$strip>>>;
|
|
@@ -12,9 +12,9 @@ export type UserPreferencesProperties = z.input<typeof UserPreferencesSchema>;
|
|
|
12
12
|
export type UserPreferences = z.output<typeof UserPreferencesSchema>;
|
|
13
13
|
export declare const UserPreferencesPayloadSchema: z.ZodObject<{
|
|
14
14
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | null | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
|
|
15
|
-
|
|
16
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
17
|
-
|
|
15
|
+
deactivatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
16
|
+
deletedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
17
|
+
updatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
18
18
|
views: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
19
19
|
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
20
|
}, z.core.$strip>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/workspace/user/preferences/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/workspace/user/preferences/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB,eAAO,MAAM,qBAAqB;;;;;;;;iBAMhC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC9E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,4BAA4B;;;;;;;;iBAMvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAC3C,OAAO,4BAA4B,CACpC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;iBAG7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CACjD,OAAO,kCAAkC,CAC1C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { OptionalDatePayloadSchema, OptionalDateSchema, } from '../../../common/schema/dates.js';
|
|
2
|
+
import { DeactivatedAtPropertyPayloadSchema, DeactivatedAtPropertySchema, DeletedAtPropertyPayloadSchema, DeletedAtPropertySchema, OptionalDatePayloadSchema, OptionalDateSchema, } from '../../../common/schema/dates.js';
|
|
3
3
|
import { MetadataMapPropertySchema, UpsertMetadataPropertyPayloadSchema, } from '../../../common/schema/metadata.js';
|
|
4
4
|
const TableSchema = z.object({
|
|
5
5
|
columns: z.array(z.string()).optional(),
|
|
@@ -11,15 +11,15 @@ const BaseSchema = z.object({
|
|
|
11
11
|
export const UserPreferencesSchema = z.object({
|
|
12
12
|
...BaseSchema.shape,
|
|
13
13
|
updatedAt: OptionalDateSchema,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
...DeletedAtPropertySchema.shape,
|
|
15
|
+
...DeactivatedAtPropertySchema.shape,
|
|
16
16
|
...MetadataMapPropertySchema.shape,
|
|
17
17
|
});
|
|
18
18
|
export const UserPreferencesPayloadSchema = z.object({
|
|
19
19
|
...BaseSchema.shape,
|
|
20
20
|
updatedAt: OptionalDatePayloadSchema,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
...DeletedAtPropertyPayloadSchema.shape,
|
|
22
|
+
...DeactivatedAtPropertyPayloadSchema.shape,
|
|
23
23
|
...UpsertMetadataPropertyPayloadSchema.shape,
|
|
24
24
|
});
|
|
25
25
|
export const UpsertUserPreferencesPayloadSchema = z.object({
|