@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
|
@@ -6,7 +6,7 @@ export type RequiredDate = z.output<typeof RequiredDateSchema>;
|
|
|
6
6
|
export type AnyOptionalDate = z.input<typeof OptionalDateSchema>;
|
|
7
7
|
export type OptionalDate = z.output<typeof OptionalDateSchema>;
|
|
8
8
|
export declare const RequiredDatePayloadSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
9
|
-
export declare const OptionalDatePayloadSchema: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
9
|
+
export declare const OptionalDatePayloadSchema: 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>>>;
|
|
10
10
|
export type RequiredDatePayload = z.output<typeof RequiredDatePayloadSchema>;
|
|
11
11
|
export type OptionalDatePayload = z.output<typeof OptionalDatePayloadSchema>;
|
|
12
12
|
/**
|
|
@@ -35,7 +35,7 @@ export type UpdatedAtProperty = z.output<typeof UpdatedAtPropertySchema>;
|
|
|
35
35
|
* Deleted At
|
|
36
36
|
*/
|
|
37
37
|
export declare const DeletedAtPropertyPayloadSchema: z.ZodObject<{
|
|
38
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
38
|
+
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>>>;
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
export type DeletedAtPropertyPayload = z.output<typeof DeletedAtPropertyPayloadSchema>;
|
|
41
41
|
export declare const DeletedAtPropertySchema: z.ZodObject<{
|
|
@@ -46,7 +46,7 @@ export type DeletedAtProperty = z.output<typeof DeletedAtPropertySchema>;
|
|
|
46
46
|
* Deactivated At
|
|
47
47
|
*/
|
|
48
48
|
export declare const DeactivatedAtPropertyPayloadSchema: z.ZodObject<{
|
|
49
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
49
|
+
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>>>;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
51
|
export type DeactivatedAtPropertyPayload = z.output<typeof DeactivatedAtPropertyPayloadSchema>;
|
|
52
52
|
export declare const DeactivatedAtPropertySchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dates.d.ts","sourceRoot":"","sources":["../../../../src/common/schema/dates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB,wFAM7B,CAAC;AACH,eAAO,MAAM,kBAAkB,uGAAgC,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE/D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG/D,eAAO,MAAM,yBAAyB,iIAErC,CAAC;AACF,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"dates.d.ts","sourceRoot":"","sources":["../../../../src/common/schema/dates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB,wFAM7B,CAAC;AACH,eAAO,MAAM,kBAAkB,uGAAgC,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE/D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG/D,eAAO,MAAM,yBAAyB,iIAErC,CAAC;AACF,eAAO,MAAM,yBAAyB,uLAE1B,CAAC;AAEb,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,8BAA8B;;iBAEzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,8BAA8B,CACtC,CAAC;AACF,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,8BAA8B;;iBAEzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,8BAA8B,CACtC,CAAC;AACF,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,8BAA8B;;iBAEzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,8BAA8B,CACtC,CAAC;AACF,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,kCAAkC;;iBAE7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CACjD,OAAO,kCAAkC,CAC1C,CAAC;AACF,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,CAAC"}
|
|
@@ -10,7 +10,7 @@ export const RequiredDateSchema = z.union([
|
|
|
10
10
|
export const OptionalDateSchema = RequiredDateSchema.optional();
|
|
11
11
|
// What the class property is serialized to
|
|
12
12
|
export const RequiredDatePayloadSchema = RequiredDateSchema.transform((d) => d.toISOString());
|
|
13
|
-
export const OptionalDatePayloadSchema = OptionalDateSchema.transform((d) => d?.toISOString());
|
|
13
|
+
export const OptionalDatePayloadSchema = OptionalDateSchema.transform((d) => d?.toISOString()).optional();
|
|
14
14
|
/**
|
|
15
15
|
* Created At
|
|
16
16
|
*/
|
|
@@ -10,10 +10,10 @@ export declare const OrganizationIdPropertySchema: z.ZodObject<{
|
|
|
10
10
|
export type OrganizationIdProperty = z.output<typeof OrganizationIdPropertySchema>;
|
|
11
11
|
export declare const OrganizationSchema: z.ZodObject<{
|
|
12
12
|
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>>;
|
|
13
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
14
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
15
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
16
13
|
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
14
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
15
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
16
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
17
17
|
name: z.ZodString;
|
|
18
18
|
status: z.ZodEnum<{
|
|
19
19
|
active: "active";
|
|
@@ -25,10 +25,10 @@ export type OrganizationProperties = z.input<typeof OrganizationSchema>;
|
|
|
25
25
|
export type Organization = z.output<typeof OrganizationSchema>;
|
|
26
26
|
export declare const OrganizationPayloadSchema: z.ZodObject<{
|
|
27
27
|
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>>>;
|
|
28
|
-
|
|
28
|
+
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>>>;
|
|
29
|
+
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>>>;
|
|
29
30
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
30
|
-
|
|
31
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
31
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
32
32
|
name: z.ZodString;
|
|
33
33
|
status: z.ZodEnum<{
|
|
34
34
|
active: "active";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/organization/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/organization/schema.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAC3C,OAAO,4BAA4B,CACpC,CAAC;AAeF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAO7B,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACxE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE/D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;iBAOpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E,eAAO,MAAM,+BAA+B;;;;;;;;iBAK1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;iBAI1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,+BAA+B,CACvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;iBAIjD,CAAC;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CACrD,OAAO,sCAAsC,CAC9C,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/index.js';
|
|
3
3
|
import { MetadataMapPropertySchema, MetadataPayloadPropertySchema, UpsertMetadataPropertyPayloadSchema, } from '../../common/schema/metadata.js';
|
|
4
4
|
import { OrganizationIdSchema, generateOrganizationId } from '../schema.js';
|
|
5
5
|
export const OrganizationStatus = {
|
|
@@ -21,18 +21,18 @@ const BaseSchema = z.object({
|
|
|
21
21
|
});
|
|
22
22
|
export const OrganizationSchema = z.object({
|
|
23
23
|
...BaseSchema.shape,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
...CreatedAtPropertySchema.shape,
|
|
25
|
+
...UpdatedAtPropertySchema.shape,
|
|
26
|
+
...DeletedAtPropertySchema.shape,
|
|
27
|
+
...DeactivatedAtPropertySchema.shape,
|
|
28
28
|
...MetadataMapPropertySchema.shape,
|
|
29
29
|
});
|
|
30
30
|
export const OrganizationPayloadSchema = z.object({
|
|
31
31
|
...BaseSchema.shape,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
...CreatedAtPropertyPayloadSchema.shape,
|
|
33
|
+
...UpdatedAtPropertyPayloadSchema.shape,
|
|
34
|
+
...DeletedAtPropertyPayloadSchema.shape,
|
|
35
|
+
...DeactivatedAtPropertyPayloadSchema.shape,
|
|
36
36
|
...MetadataPayloadPropertySchema.shape,
|
|
37
37
|
});
|
|
38
38
|
export const InsertOrganizationPayloadSchema = z.object({
|
|
@@ -46,11 +46,11 @@ export declare const UserAssociationsSchema: z.ZodObject<{
|
|
|
46
46
|
export type UserAssociations = z.output<typeof UserAssociationsSchema>;
|
|
47
47
|
export declare const UserSchema: z.ZodObject<{
|
|
48
48
|
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>>;
|
|
49
|
-
lastLogin: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
50
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
51
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
52
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
53
49
|
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
50
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
51
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
52
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
53
|
+
lastLogin: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
54
54
|
status: z.ZodEnum<{
|
|
55
55
|
active: "active";
|
|
56
56
|
suspended: "suspended";
|
|
@@ -75,11 +75,11 @@ export type UserProperties = z.input<typeof UserSchema>;
|
|
|
75
75
|
export type User = z.output<typeof UserSchema>;
|
|
76
76
|
export declare const UserPayloadSchema: z.ZodObject<{
|
|
77
77
|
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>>>;
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
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>>>;
|
|
79
|
+
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>>>;
|
|
80
80
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
82
|
+
lastLogin: 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>>>;
|
|
83
83
|
status: z.ZodEnum<{
|
|
84
84
|
active: "active";
|
|
85
85
|
suspended: "suspended";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/users/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/users/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2BxB,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAQzE,eAAO,MAAM,wBAAwB;;;;;;iBAMnC,CAAC;AAGH,eAAO,MAAM,8BAA8B;;;;;;iBAMzC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEnE,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,yBAAyB,aAAa,CAAC;AAEpD,eAAO,MAAM,oCAAoC;;;;;iBAK/C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAUvE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQrB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACxD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;iBAMlC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAKlC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;iBAMzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,8BAA8B,CACtC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { RoleIdAssociationsSchema } from '../../authorization/schema.js';
|
|
3
3
|
import { AggregateSchema } from '../../common/schema/aggregate.js';
|
|
4
|
-
import { OptionalDatePayloadSchema, OptionalDateSchema,
|
|
4
|
+
import { CreatedAtPropertyPayloadSchema, CreatedAtPropertySchema, DeactivatedAtPropertyPayloadSchema, DeactivatedAtPropertySchema, DeletedAtPropertyPayloadSchema, DeletedAtPropertySchema, OptionalDatePayloadSchema, OptionalDateSchema, UpdatedAtPropertyPayloadSchema, UpdatedAtPropertySchema, } from '../../common/schema/dates.js';
|
|
5
5
|
import { MetadataMapPropertySchema, MetadataPayloadPropertySchema, UpsertMetadataPropertyPayloadSchema, } from '../../common/schema/metadata.js';
|
|
6
6
|
import { optionallyNullish, optionallyNullishToUndefined, optionallyUndefined, } from '../../common/schema/schema.js';
|
|
7
7
|
import { UserIdSchema } from '../schema.js';
|
|
@@ -63,19 +63,19 @@ const BaseSchema = z.object({
|
|
|
63
63
|
export const UserSchema = z.object({
|
|
64
64
|
...BaseSchema.shape,
|
|
65
65
|
lastLogin: OptionalDateSchema,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
...CreatedAtPropertySchema.shape,
|
|
67
|
+
...UpdatedAtPropertySchema.shape,
|
|
68
|
+
...DeletedAtPropertySchema.shape,
|
|
69
|
+
...DeactivatedAtPropertySchema.shape,
|
|
70
70
|
...MetadataMapPropertySchema.shape,
|
|
71
71
|
});
|
|
72
72
|
export const UserPayloadSchema = z.object({
|
|
73
73
|
...BaseSchema.shape,
|
|
74
74
|
lastLogin: OptionalDatePayloadSchema,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
...CreatedAtPropertyPayloadSchema.shape,
|
|
76
|
+
...UpdatedAtPropertyPayloadSchema.shape,
|
|
77
|
+
...DeletedAtPropertyPayloadSchema.shape,
|
|
78
|
+
...DeactivatedAtPropertyPayloadSchema.shape,
|
|
79
79
|
...MetadataPayloadPropertySchema.shape,
|
|
80
80
|
});
|
|
81
81
|
export const InsertUserPayloadSchema = z.object({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export * from './grants/authorization-code.js';
|
|
3
3
|
export * from './grants/client-credentials.js';
|
|
4
4
|
export * from './grants/refresh-token.js';
|
|
5
5
|
/**
|
|
6
6
|
* Union(s)
|
|
7
7
|
*/
|
|
8
|
-
export declare const Schema: z.
|
|
8
|
+
export declare const Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
9
|
code_verifier: z.ZodOptional<z.ZodString>;
|
|
10
10
|
grant_type: z.ZodEnum<{
|
|
11
11
|
authorization_code: "authorization_code";
|
|
@@ -22,7 +22,7 @@ export declare const Schema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
22
22
|
grant_type: z.ZodEnum<{
|
|
23
23
|
client_credentials: "client_credentials";
|
|
24
24
|
}>;
|
|
25
|
-
}, z.core.$strip
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
26
|
grant_type: z.ZodEnum<{
|
|
27
27
|
refresh_token: "refresh_token";
|
|
28
28
|
}>;
|
|
@@ -30,6 +30,6 @@ export declare const Schema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
30
30
|
scope: z.ZodOptional<z.ZodString>;
|
|
31
31
|
client_id: z.ZodString;
|
|
32
32
|
client_secret: z.ZodString;
|
|
33
|
-
}, z.core.$strip>]>;
|
|
33
|
+
}, z.core.$strip>], "grant_type">;
|
|
34
34
|
export type Payload = z.output<typeof Schema>;
|
|
35
35
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/oauth/token/schema/schema.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/oauth/token/schema/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;iCAIjB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { AuthorizationCodeSchema } from './grants/authorization-code.js';
|
|
2
3
|
import { ClientCredentialsSchema } from './grants/client-credentials.js';
|
|
3
4
|
import { RefreshTokenSchema } from './grants/refresh-token.js';
|
|
@@ -7,4 +8,8 @@ export * from './grants/refresh-token.js';
|
|
|
7
8
|
/**
|
|
8
9
|
* Union(s)
|
|
9
10
|
*/
|
|
10
|
-
export const Schema =
|
|
11
|
+
export const Schema = z.discriminatedUnion('grant_type', [
|
|
12
|
+
AuthorizationCodeSchema,
|
|
13
|
+
ClientCredentialsSchema,
|
|
14
|
+
RefreshTokenSchema,
|
|
15
|
+
]);
|
|
@@ -4,9 +4,9 @@ export declare const DEFAULT_REFRESH_TOKEN_DURATION: number;
|
|
|
4
4
|
export declare const DEFAULT_ACCESS_TOKEN_DURATION: number;
|
|
5
5
|
export declare const AuthorizationSchema: z.ZodObject<{
|
|
6
6
|
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>>;
|
|
7
|
-
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
8
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
9
7
|
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
8
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
9
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
10
10
|
sessionDuration: z.ZodDefault<z.ZodNumber>;
|
|
11
11
|
refreshTokenDuration: z.ZodDefault<z.ZodNumber>;
|
|
12
12
|
accessTokenDuration: z.ZodDefault<z.ZodNumber>;
|
|
@@ -28,9 +28,9 @@ export type AuthorizationProperties = z.input<typeof AuthorizationSchema>;
|
|
|
28
28
|
export type Authorization = z.output<typeof AuthorizationSchema>;
|
|
29
29
|
export declare const AuthorizationPayloadSchema: z.ZodObject<{
|
|
30
30
|
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>>>;
|
|
31
|
-
|
|
32
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
33
|
-
|
|
31
|
+
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>>>;
|
|
32
|
+
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>>>;
|
|
33
|
+
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>>>;
|
|
34
34
|
sessionDuration: z.ZodDefault<z.ZodNumber>;
|
|
35
35
|
refreshTokenDuration: z.ZodDefault<z.ZodNumber>;
|
|
36
36
|
accessTokenDuration: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/authorization/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/authorization/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,wBAAwB,QAAc,CAAC;AACpD,eAAO,MAAM,8BAA8B,QAAoB,CAAC;AAChE,eAAO,MAAM,6BAA6B,QAAc,CAAC;AASzD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;iBAO9B,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC1E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;iBAMrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;iBAG3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAC/C,OAAO,gCAAgC,CACxC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { DeactivatedAtPropertyPayloadSchema, DeactivatedAtPropertySchema, DeletedAtPropertyPayloadSchema, DeletedAtPropertySchema, OptionalDatePayloadSchema, UpdatedAtPropertySchema, } from '../../common/schema/dates.js';
|
|
3
3
|
import { Algorithm, AlgorithmSchema } from '../../common/schema/jwt.js';
|
|
4
4
|
import { MetadataMapPropertySchema, MetadataPayloadPropertySchema, } from '../../common/schema/metadata.js';
|
|
5
5
|
export const DEFAULT_SESSION_DURATION = 60 * 60 * 4; // 4 hour
|
|
@@ -13,16 +13,16 @@ const BaseAttributes = z.object({
|
|
|
13
13
|
});
|
|
14
14
|
export const AuthorizationSchema = z.object({
|
|
15
15
|
...BaseAttributes.shape,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
...UpdatedAtPropertySchema.shape,
|
|
17
|
+
...DeletedAtPropertySchema.shape,
|
|
18
|
+
...DeactivatedAtPropertySchema.shape,
|
|
19
19
|
...MetadataMapPropertySchema.shape,
|
|
20
20
|
});
|
|
21
21
|
export const AuthorizationPayloadSchema = z.object({
|
|
22
22
|
...BaseAttributes.shape,
|
|
23
23
|
updatedAt: OptionalDatePayloadSchema,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
...DeletedAtPropertyPayloadSchema.shape,
|
|
25
|
+
...DeactivatedAtPropertyPayloadSchema.shape,
|
|
26
26
|
...MetadataPayloadPropertySchema.shape,
|
|
27
27
|
});
|
|
28
28
|
export const UpsertAuthorizationPayloadSchema = z.object({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const BrandingSchema: 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
|
logo: z.ZodOptional<z.ZodObject<{
|
|
8
8
|
dark: z.ZodOptional<z.ZodURL>;
|
|
9
9
|
light: z.ZodOptional<z.ZodURL>;
|
|
@@ -18,9 +18,9 @@ export type BrandingProperties = z.input<typeof BrandingSchema>;
|
|
|
18
18
|
export type Branding = z.output<typeof BrandingSchema>;
|
|
19
19
|
export declare const BrandingPayloadSchema: z.ZodObject<{
|
|
20
20
|
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>>>;
|
|
21
|
-
|
|
22
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
23
|
-
|
|
21
|
+
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>>>;
|
|
22
|
+
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>>>;
|
|
23
|
+
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>>>;
|
|
24
24
|
logo: z.ZodOptional<z.ZodObject<{
|
|
25
25
|
dark: z.ZodOptional<z.ZodURL>;
|
|
26
26
|
light: z.ZodOptional<z.ZodURL>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/branding/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/branding/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8BxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;iBAMzB,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAChE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAMhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,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, MetadataPayloadPropertySchema, } from '../../common/schema/metadata.js';
|
|
4
4
|
const LogoSchema = z.object({
|
|
5
5
|
dark: z.url().optional(),
|
|
@@ -17,15 +17,15 @@ const BaseSchema = z.object({
|
|
|
17
17
|
export const BrandingSchema = z.object({
|
|
18
18
|
...BaseSchema.shape,
|
|
19
19
|
updatedAt: OptionalDateSchema,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
...DeletedAtPropertySchema.shape,
|
|
21
|
+
...DeactivatedAtPropertySchema.shape,
|
|
22
22
|
...MetadataMapPropertySchema.shape,
|
|
23
23
|
});
|
|
24
24
|
export const BrandingPayloadSchema = z.object({
|
|
25
25
|
...BaseSchema.shape,
|
|
26
26
|
updatedAt: OptionalDatePayloadSchema,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
...DeletedAtPropertyPayloadSchema.shape,
|
|
28
|
+
...DeactivatedAtPropertyPayloadSchema.shape,
|
|
29
29
|
...MetadataPayloadPropertySchema.shape,
|
|
30
30
|
});
|
|
31
31
|
export const UpsertBrandingPayloadSchema = z.object({
|
|
@@ -30,8 +30,8 @@ export declare const MembershipPayloadSchema: z.ZodObject<{
|
|
|
30
30
|
expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
31
31
|
}, z.core.$strip>>;
|
|
32
32
|
}, z.core.$strip>>;
|
|
33
|
-
startAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
34
|
-
endAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
33
|
+
startAt: 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>>>;
|
|
34
|
+
endAt: 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>>>;
|
|
35
35
|
}, z.core.$strip>;
|
|
36
36
|
export type MembershipPayload = z.output<typeof MembershipPayloadSchema>;
|
|
37
37
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const RegistrationSchema: 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
|
allowSelfRegistration: z.ZodBoolean;
|
|
8
8
|
identifiers: z.ZodArray<z.ZodObject<{
|
|
9
9
|
type: z.ZodEnum<{
|
|
@@ -16,9 +16,9 @@ export type RegistrationProperties = z.input<typeof RegistrationSchema>;
|
|
|
16
16
|
export type Registration = z.output<typeof RegistrationSchema>;
|
|
17
17
|
export declare const RegistrationPayloadSchema: z.ZodObject<{
|
|
18
18
|
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>>>;
|
|
19
|
-
|
|
20
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
21
|
-
|
|
19
|
+
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>>>;
|
|
20
|
+
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>>>;
|
|
21
|
+
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>>>;
|
|
22
22
|
allowSelfRegistration: z.ZodBoolean;
|
|
23
23
|
identifiers: z.ZodArray<z.ZodObject<{
|
|
24
24
|
type: z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/registration/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/registration/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAM7B,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACxE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE/D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;iBAMpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E,eAAO,MAAM,+BAA+B;;;;;;;;;iBAI1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,+BAA+B,CACvC,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, MetadataPayloadPropertySchema, } from '../../common/schema/metadata.js';
|
|
4
4
|
import { IdentityIdentifierSchema } from '../../identity/schema.js';
|
|
5
5
|
const IdentityIdentifierPropertySchema = z.array(z.object({
|
|
@@ -13,15 +13,15 @@ const BaseSchema = z.object({
|
|
|
13
13
|
export const RegistrationSchema = z.object({
|
|
14
14
|
...BaseSchema.shape,
|
|
15
15
|
updatedAt: OptionalDateSchema,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
...DeletedAtPropertySchema.shape,
|
|
17
|
+
...DeactivatedAtPropertySchema.shape,
|
|
18
18
|
...MetadataMapPropertySchema.shape,
|
|
19
19
|
});
|
|
20
20
|
export const RegistrationPayloadSchema = z.object({
|
|
21
21
|
...BaseSchema.shape,
|
|
22
22
|
updatedAt: OptionalDatePayloadSchema,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
...DeletedAtPropertyPayloadSchema.shape,
|
|
24
|
+
...DeactivatedAtPropertyPayloadSchema.shape,
|
|
25
25
|
...MetadataPayloadPropertySchema.shape,
|
|
26
26
|
});
|
|
27
27
|
export const UpsertRegistrationPayloadSchema = z.object({
|
|
@@ -4,17 +4,17 @@ import { z } from 'zod';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const SettingsSchema: z.ZodObject<{
|
|
6
6
|
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>>;
|
|
7
|
-
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
8
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
9
7
|
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
8
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
9
|
+
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
export type SettingsProperties = z.input<typeof SettingsSchema>;
|
|
12
12
|
export type Settings = z.output<typeof SettingsSchema>;
|
|
13
13
|
export declare const SettingsPayloadSchema: 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> | 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
|
}, z.core.$strip>;
|
|
19
19
|
export type SettingsPayload = z.output<typeof SettingsPayloadSchema>;
|
|
20
20
|
export declare const UpsertSettingsPayloadSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/settings/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/settings/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;iBAKzB,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAChE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,qBAAqB;;;;;iBAKhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;iBAAgC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
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, MetadataPayloadPropertySchema, } from '../../common/schema/metadata.js';
|
|
4
4
|
/**
|
|
5
5
|
* This isn't really being used yet...but some general settings would go here
|
|
6
6
|
*/
|
|
7
7
|
export const SettingsSchema = z.object({
|
|
8
8
|
updatedAt: OptionalDateSchema,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
...DeletedAtPropertySchema.shape,
|
|
10
|
+
...DeactivatedAtPropertySchema.shape,
|
|
11
11
|
...MetadataMapPropertySchema.shape,
|
|
12
12
|
});
|
|
13
13
|
export const SettingsPayloadSchema = z.object({
|
|
14
14
|
updatedAt: OptionalDatePayloadSchema,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
...DeletedAtPropertyPayloadSchema.shape,
|
|
16
|
+
...DeactivatedAtPropertyPayloadSchema.shape,
|
|
17
17
|
...MetadataPayloadPropertySchema.shape,
|
|
18
18
|
});
|
|
19
19
|
export const UpsertSettingsPayloadSchema = MetadataPayloadPropertySchema;
|
|
@@ -14,14 +14,14 @@ export declare const TenantSchema: z.ZodObject<{
|
|
|
14
14
|
expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
15
15
|
}, z.core.$strip>>;
|
|
16
16
|
}, z.core.$strip>>;
|
|
17
|
-
startAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
18
|
-
endAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
17
|
+
startAt: 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
|
+
endAt: 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>>>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
20
|
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>>;
|
|
21
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
22
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
23
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
24
21
|
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
22
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
23
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
24
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
25
25
|
name: z.ZodString;
|
|
26
26
|
status: z.ZodEnum<{
|
|
27
27
|
active: "active";
|
|
@@ -41,14 +41,14 @@ export declare const TenantPayloadSchema: z.ZodObject<{
|
|
|
41
41
|
expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
42
42
|
}, z.core.$strip>>;
|
|
43
43
|
}, z.core.$strip>>;
|
|
44
|
-
startAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
45
|
-
endAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
44
|
+
startAt: 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>>>;
|
|
45
|
+
endAt: 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>>>;
|
|
46
46
|
}, z.core.$strip>>;
|
|
47
47
|
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>>>;
|
|
48
|
-
|
|
48
|
+
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>>>;
|
|
49
|
+
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>>>;
|
|
49
50
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
50
|
-
|
|
51
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
51
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
52
52
|
name: z.ZodString;
|
|
53
53
|
status: z.ZodEnum<{
|
|
54
54
|
active: "active";
|