@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
|
@@ -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"}
|
|
@@ -16,15 +16,15 @@ const BaseSchema = zod_1.z.object({
|
|
|
16
16
|
exports.RegistrationSchema = zod_1.z.object({
|
|
17
17
|
...BaseSchema.shape,
|
|
18
18
|
updatedAt: dates_js_1.OptionalDateSchema,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
...dates_js_1.DeletedAtPropertySchema.shape,
|
|
20
|
+
...dates_js_1.DeactivatedAtPropertySchema.shape,
|
|
21
21
|
...metadata_js_1.MetadataMapPropertySchema.shape,
|
|
22
22
|
});
|
|
23
23
|
exports.RegistrationPayloadSchema = zod_1.z.object({
|
|
24
24
|
...BaseSchema.shape,
|
|
25
25
|
updatedAt: dates_js_1.OptionalDatePayloadSchema,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
...dates_js_1.DeletedAtPropertyPayloadSchema.shape,
|
|
27
|
+
...dates_js_1.DeactivatedAtPropertyPayloadSchema.shape,
|
|
28
28
|
...metadata_js_1.MetadataPayloadPropertySchema.shape,
|
|
29
29
|
});
|
|
30
30
|
exports.UpsertRegistrationPayloadSchema = zod_1.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"}
|
|
@@ -9,14 +9,14 @@ const metadata_js_1 = require("../../common/schema/metadata.js");
|
|
|
9
9
|
*/
|
|
10
10
|
exports.SettingsSchema = zod_1.z.object({
|
|
11
11
|
updatedAt: dates_js_1.OptionalDateSchema,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
...dates_js_1.DeletedAtPropertySchema.shape,
|
|
13
|
+
...dates_js_1.DeactivatedAtPropertySchema.shape,
|
|
14
14
|
...metadata_js_1.MetadataMapPropertySchema.shape,
|
|
15
15
|
});
|
|
16
16
|
exports.SettingsPayloadSchema = zod_1.z.object({
|
|
17
17
|
updatedAt: dates_js_1.OptionalDatePayloadSchema,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
...dates_js_1.DeletedAtPropertyPayloadSchema.shape,
|
|
19
|
+
...dates_js_1.DeactivatedAtPropertyPayloadSchema.shape,
|
|
20
20
|
...metadata_js_1.MetadataPayloadPropertySchema.shape,
|
|
21
21
|
});
|
|
22
22
|
exports.UpsertSettingsPayloadSchema = metadata_js_1.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";
|
|
@@ -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,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateUserNotificationPayloadSchema = exports.InsertUserNotificationPayloadSchema = exports.UserNotificationPayloadSchema = exports.UserNotificationSchema = exports.UserNotificationIdPropertySchema = exports.UserNotificationIdSchema = exports.NotificationType = void 0;
|
|
4
|
+
const index_js_1 = require("src/common/index.js");
|
|
4
5
|
const zod_1 = require("zod");
|
|
5
|
-
const dates_js_1 = require("../../../common/schema/dates.js");
|
|
6
6
|
const id_js_1 = require("../../../common/schema/id.js");
|
|
7
7
|
const metadata_js_1 = require("../../../common/schema/metadata.js");
|
|
8
8
|
const utils_js_1 = require("../../utils.js");
|
|
@@ -27,10 +27,10 @@ exports.UserNotificationSchema = zod_1.z.object({
|
|
|
27
27
|
...BaseSchema.shape,
|
|
28
28
|
type: zod_1.z.enum([exports.NotificationType.IMPORT, exports.NotificationType.INFO]),
|
|
29
29
|
action: zod_1.z.union([ActionSchema, zod_1.z.undefined()]).optional(),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
...index_js_1.CreatedAtPropertySchema.shape,
|
|
31
|
+
...index_js_1.UpdatedAtPropertySchema.shape,
|
|
32
|
+
...index_js_1.DeletedAtPropertySchema.shape,
|
|
33
|
+
...index_js_1.DeactivatedAtPropertySchema.shape,
|
|
34
34
|
...metadata_js_1.MetadataMapPropertySchema.shape,
|
|
35
35
|
});
|
|
36
36
|
exports.UserNotificationPayloadSchema = zod_1.z.object({
|
|
@@ -38,10 +38,10 @@ exports.UserNotificationPayloadSchema = zod_1.z.object({
|
|
|
38
38
|
...BaseSchema.shape,
|
|
39
39
|
type: zod_1.z.enum([exports.NotificationType.IMPORT, exports.NotificationType.INFO]),
|
|
40
40
|
action: zod_1.z.union([ActionSchema, zod_1.z.undefined()]).optional(),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
...index_js_1.CreatedAtPropertyPayloadSchema.shape,
|
|
42
|
+
...index_js_1.UpdatedAtPropertyPayloadSchema.shape,
|
|
43
|
+
...index_js_1.DeletedAtPropertyPayloadSchema.shape,
|
|
44
|
+
...index_js_1.DeactivatedAtPropertyPayloadSchema.shape,
|
|
45
45
|
...metadata_js_1.MetadataPayloadPropertySchema.shape,
|
|
46
46
|
});
|
|
47
47
|
exports.InsertUserNotificationPayloadSchema = zod_1.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"}
|
|
@@ -14,15 +14,15 @@ const BaseSchema = zod_1.z.object({
|
|
|
14
14
|
exports.UserPreferencesSchema = zod_1.z.object({
|
|
15
15
|
...BaseSchema.shape,
|
|
16
16
|
updatedAt: dates_js_1.OptionalDateSchema,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
...dates_js_1.DeletedAtPropertySchema.shape,
|
|
18
|
+
...dates_js_1.DeactivatedAtPropertySchema.shape,
|
|
19
19
|
...metadata_js_1.MetadataMapPropertySchema.shape,
|
|
20
20
|
});
|
|
21
21
|
exports.UserPreferencesPayloadSchema = zod_1.z.object({
|
|
22
22
|
...BaseSchema.shape,
|
|
23
23
|
updatedAt: dates_js_1.OptionalDatePayloadSchema,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
...dates_js_1.DeletedAtPropertyPayloadSchema.shape,
|
|
25
|
+
...dates_js_1.DeactivatedAtPropertyPayloadSchema.shape,
|
|
26
26
|
...metadata_js_1.UpsertMetadataPropertyPayloadSchema.shape,
|
|
27
27
|
});
|
|
28
28
|
exports.UpsertUserPreferencesPayloadSchema = zod_1.z.object({
|
|
@@ -20,11 +20,11 @@ export declare const OperationSchema: z.ZodEnum<{
|
|
|
20
20
|
}>;
|
|
21
21
|
export declare const BasePayloadSchema: z.ZodObject<{
|
|
22
22
|
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>>>;
|
|
23
|
+
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>>>;
|
|
24
|
+
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>>>;
|
|
25
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
23
26
|
attempt: z.ZodNumber;
|
|
24
27
|
expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
25
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
26
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
27
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
28
28
|
id: z.ZodString;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,eAAe;;;;;CAOlB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD,eAAO,MAAM,cAAc,aAAsC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEvE,eAAO,MAAM,eAAe;;;;;EAKjB,CAAC;AAEZ,eAAO,MAAM,iBAAiB;;;;;;;;iBAQ5B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { DeactivatedAtPropertyPayloadSchema, DeletedAtPropertyPayloadSchema, RequiredDatePayloadSchema, UpdatedAtPropertyPayloadSchema, } from '../../common/schema/dates.js';
|
|
3
3
|
import { KSUIDSchema } from '../../common/schema/id.js';
|
|
4
4
|
import { MetadataPayloadPropertySchema } from '../../common/schema/metadata.js';
|
|
5
5
|
import { Model } from './utils.js';
|
|
@@ -23,8 +23,8 @@ export const BasePayloadSchema = z.object({
|
|
|
23
23
|
...ActionIdPropertySchema.shape,
|
|
24
24
|
attempt: z.number(),
|
|
25
25
|
expiresAt: RequiredDatePayloadSchema,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
...UpdatedAtPropertyPayloadSchema.shape,
|
|
27
|
+
...DeletedAtPropertyPayloadSchema.shape,
|
|
28
|
+
...DeactivatedAtPropertyPayloadSchema.shape,
|
|
29
29
|
...MetadataPayloadPropertySchema.shape,
|
|
30
30
|
});
|
|
@@ -15,11 +15,11 @@ export declare const SetPasswordActionPayloadSchema: z.ZodObject<{
|
|
|
15
15
|
minimumSpecial: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
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>>>;
|
|
18
|
+
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>>>;
|
|
19
|
+
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>>>;
|
|
20
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
18
21
|
attempt: z.ZodNumber;
|
|
19
22
|
expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
20
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
21
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
22
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
export type SetPasswordActionPayload = z.output<typeof SetPasswordActionPayloadSchema>;
|
|
@@ -7,11 +7,11 @@ export declare const SignUpVerificationActionPayloadSchema: z.ZodObject<{
|
|
|
7
7
|
phoneNumber: "phoneNumber";
|
|
8
8
|
}>;
|
|
9
9
|
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>>>;
|
|
10
|
+
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>>>;
|
|
11
|
+
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>>>;
|
|
12
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
10
13
|
attempt: z.ZodNumber;
|
|
11
14
|
expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
12
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
13
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
14
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
15
15
|
id: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
export type SignUpVerificationActionPayload = z.output<typeof SignUpVerificationActionPayloadSchema>;
|
|
@@ -10,11 +10,11 @@ export declare const SignUpActionPayloadSchema: z.ZodObject<{
|
|
|
10
10
|
honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
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>>>;
|
|
13
|
+
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>>>;
|
|
14
|
+
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>>>;
|
|
15
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
13
16
|
attempt: z.ZodNumber;
|
|
14
17
|
expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
15
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
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
|
-
deactivatedAt: 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
|
id: z.ZodString;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
export type SignUpActionPayload = z.output<typeof SignUpActionPayloadSchema>;
|
|
@@ -7,11 +7,11 @@ export declare const UserAttributeVerificationActionPayloadSchema: z.ZodObject<{
|
|
|
7
7
|
phoneNumber: "phoneNumber";
|
|
8
8
|
}>;
|
|
9
9
|
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>>>;
|
|
10
|
+
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>>>;
|
|
11
|
+
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>>>;
|
|
12
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
10
13
|
attempt: z.ZodNumber;
|
|
11
14
|
expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
12
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
13
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
14
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
15
15
|
id: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
export type UserAttributeVerificationActionPayload = z.output<typeof UserAttributeVerificationActionPayloadSchema>;
|
|
@@ -18,11 +18,11 @@ export declare const ActionPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.
|
|
|
18
18
|
minimumSpecial: z.ZodDefault<z.ZodNumber>;
|
|
19
19
|
}, z.core.$strip>;
|
|
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
|
+
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.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
21
24
|
attempt: z.ZodNumber;
|
|
22
25
|
expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
23
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
24
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
25
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
26
26
|
id: z.ZodString;
|
|
27
27
|
}, z.core.$strip>, z.ZodObject<{
|
|
28
28
|
operation: z.ZodLiteral<"sign-up-verification">;
|
|
@@ -32,11 +32,11 @@ export declare const ActionPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.
|
|
|
32
32
|
phoneNumber: "phoneNumber";
|
|
33
33
|
}>;
|
|
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>>;
|
|
35
38
|
attempt: z.ZodNumber;
|
|
36
39
|
expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
37
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
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>>;
|
|
39
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
40
40
|
id: z.ZodString;
|
|
41
41
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
42
42
|
operation: z.ZodLiteral<"sign-up">;
|
|
@@ -49,11 +49,11 @@ export declare const ActionPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.
|
|
|
49
49
|
honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
51
|
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>>>;
|
|
52
|
+
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>>>;
|
|
53
|
+
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>>>;
|
|
54
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
52
55
|
attempt: z.ZodNumber;
|
|
53
56
|
expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
54
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
55
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
56
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
57
57
|
id: z.ZodString;
|
|
58
58
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
59
59
|
operation: z.ZodLiteral<"user-attribute-verification">;
|
|
@@ -63,11 +63,11 @@ export declare const ActionPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.
|
|
|
63
63
|
phoneNumber: "phoneNumber";
|
|
64
64
|
}>;
|
|
65
65
|
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>>>;
|
|
66
|
+
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>>>;
|
|
67
|
+
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>>>;
|
|
68
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
66
69
|
attempt: z.ZodNumber;
|
|
67
70
|
expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
68
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
69
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
70
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
71
71
|
id: z.ZodString;
|
|
72
72
|
}, z.core.$strip>]>;
|
|
73
73
|
export type ActionPayload = z.output<typeof ActionPayloadSchema>;
|
|
@@ -35,10 +35,10 @@ export declare const PerformedBySchema: z.ZodObject<{
|
|
|
35
35
|
export type PerformedBy = z.output<typeof PerformedBySchema>;
|
|
36
36
|
export declare const BaseSchema: z.ZodObject<{
|
|
37
37
|
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>>;
|
|
38
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
39
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
40
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
41
38
|
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
39
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
40
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
41
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
42
42
|
id: z.ZodString;
|
|
43
43
|
performedBy: z.ZodObject<{
|
|
44
44
|
type: z.ZodEnum<{
|
|
@@ -56,10 +56,10 @@ export declare const BaseSchema: z.ZodObject<{
|
|
|
56
56
|
}, z.core.$strip>;
|
|
57
57
|
export declare const BasePayloadSchema: z.ZodObject<{
|
|
58
58
|
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>>>;
|
|
59
|
-
|
|
59
|
+
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>>>;
|
|
60
|
+
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>>>;
|
|
60
61
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
61
|
-
|
|
62
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
62
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
63
63
|
id: z.ZodString;
|
|
64
64
|
performedBy: z.ZodObject<{
|
|
65
65
|
type: z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/base.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE/E,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAErD,eAAO,MAAM,gBAAgB,aAAwC,CAAC;AACtE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3D,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE3E,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,eAAO,MAAM,iBAAiB;;;;;;;;;iBAS5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAU7D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;iBAOrB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;iBAO5B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAGlC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CreatedAtPropertyPayloadSchema, CreatedAtPropertySchema, DeactivatedAtPropertyPayloadSchema, DeactivatedAtPropertySchema, DeletedAtPropertyPayloadSchema, DeletedAtPropertySchema, UpdatedAtPropertyPayloadSchema, UpdatedAtPropertySchema, } from 'src/common/index.js';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
import { AppIdSchema } from '../../app/schema.js';
|
|
3
|
-
import { OptionalDatePayloadSchema, OptionalDateSchema, RequiredDatePayloadSchema, RequiredDateSchema, } from '../../common/index.js';
|
|
4
4
|
import { KSUIDSchema } from '../../common/schema/id.js';
|
|
5
5
|
import { MetadataMapPropertySchema, MetadataPayloadPropertySchema, UpsertMetadataPropertyPayloadSchema, } from '../../common/schema/metadata.js';
|
|
6
6
|
import { Model, generateActivityId } from './utils.js';
|
|
@@ -42,18 +42,18 @@ const CommonSchema = z.object({
|
|
|
42
42
|
});
|
|
43
43
|
export const BaseSchema = z.object({
|
|
44
44
|
...CommonSchema.shape,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
...CreatedAtPropertySchema.shape,
|
|
46
|
+
...UpdatedAtPropertySchema.shape,
|
|
47
|
+
...DeletedAtPropertySchema.shape,
|
|
48
|
+
...DeactivatedAtPropertySchema.shape,
|
|
49
49
|
...MetadataMapPropertySchema.shape,
|
|
50
50
|
});
|
|
51
51
|
export const BasePayloadSchema = z.object({
|
|
52
52
|
...CommonSchema.shape,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
...CreatedAtPropertyPayloadSchema.shape,
|
|
54
|
+
...UpdatedAtPropertyPayloadSchema.shape,
|
|
55
|
+
...DeletedAtPropertyPayloadSchema.shape,
|
|
56
|
+
...DeactivatedAtPropertyPayloadSchema.shape,
|
|
57
57
|
...MetadataPayloadPropertySchema.shape,
|
|
58
58
|
});
|
|
59
59
|
export const BaseInsertPayloadSchema = z.object({
|