@go-mondo/identity-sdk 0.0.2-beta.40 → 0.0.2-beta.41
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 +7 -0
- package/dist/cjs/authorization/permissions/schema.d.ts +12 -12
- package/dist/cjs/authorization/permissions/schema.d.ts.map +1 -1
- package/dist/cjs/authorization/permissions/schema.js +2 -4
- package/dist/cjs/customer/users/schema.d.ts +10 -0
- package/dist/cjs/customer/users/schema.d.ts.map +1 -1
- package/dist/cjs/customer/users/schema.js +5 -8
- package/dist/esm/authorization/permissions/schema.d.ts +12 -12
- package/dist/esm/authorization/permissions/schema.d.ts.map +1 -1
- package/dist/esm/authorization/permissions/schema.js +2 -4
- package/dist/esm/customer/users/schema.d.ts +10 -0
- package/dist/esm/customer/users/schema.d.ts.map +1 -1
- package/dist/esm/customer/users/schema.js +2 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-beta.41](https://github.com/go-mondo/identity-node-sdk/compare/identity-sdk-v0.0.2-beta.40...identity-sdk-v0.0.2-beta.41) (2025-11-26)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* tweaks ([77369b7](https://github.com/go-mondo/identity-node-sdk/commit/77369b756668f272c7024cb39253797fb29e42f1))
|
|
9
|
+
|
|
3
10
|
## [0.0.2-beta.40](https://github.com/go-mondo/identity-node-sdk/compare/identity-sdk-v0.0.2-beta.39...identity-sdk-v0.0.2-beta.40) (2025-11-20)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -19,6 +19,12 @@ export declare const PermissionSchema: z.ZodObject<{
|
|
|
19
19
|
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
20
20
|
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
21
21
|
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
status: z.ZodEnum<{
|
|
24
|
+
enabled: "enabled";
|
|
25
|
+
disabled: "disabled";
|
|
26
|
+
}>;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22
28
|
apps: z.ZodOptional<z.ZodObject<{
|
|
23
29
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
30
|
count: z.ZodOptional<z.ZodNumber>;
|
|
@@ -27,12 +33,6 @@ export declare const PermissionSchema: z.ZodObject<{
|
|
|
27
33
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
34
|
count: z.ZodOptional<z.ZodNumber>;
|
|
29
35
|
}, z.core.$strip>>;
|
|
30
|
-
name: z.ZodString;
|
|
31
|
-
status: z.ZodEnum<{
|
|
32
|
-
enabled: "enabled";
|
|
33
|
-
disabled: "disabled";
|
|
34
|
-
}>;
|
|
35
|
-
description: z.ZodOptional<z.ZodString>;
|
|
36
36
|
id: z.ZodString;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
export type PermissionProperties = z.input<typeof PermissionSchema>;
|
|
@@ -43,6 +43,12 @@ export declare const PermissionPayloadSchema: z.ZodObject<{
|
|
|
43
43
|
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>>>;
|
|
44
44
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
45
45
|
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
status: z.ZodEnum<{
|
|
48
|
+
enabled: "enabled";
|
|
49
|
+
disabled: "disabled";
|
|
50
|
+
}>;
|
|
51
|
+
description: z.ZodOptional<z.ZodString>;
|
|
46
52
|
apps: z.ZodOptional<z.ZodObject<{
|
|
47
53
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
54
|
count: z.ZodOptional<z.ZodNumber>;
|
|
@@ -51,12 +57,6 @@ export declare const PermissionPayloadSchema: z.ZodObject<{
|
|
|
51
57
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52
58
|
count: z.ZodOptional<z.ZodNumber>;
|
|
53
59
|
}, z.core.$strip>>;
|
|
54
|
-
name: z.ZodString;
|
|
55
|
-
status: z.ZodEnum<{
|
|
56
|
-
enabled: "enabled";
|
|
57
|
-
disabled: "disabled";
|
|
58
|
-
}>;
|
|
59
|
-
description: z.ZodOptional<z.ZodString>;
|
|
60
60
|
id: z.ZodString;
|
|
61
61
|
}, z.core.$strip>;
|
|
62
62
|
export type PermissionPayload = z.output<typeof PermissionPayloadSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/authorization/permissions/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAoB5B,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OA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,CAAC,CAAC,MAAM,CAC5C,OAAO,6BAA6B,CACrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;iBAKxC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,6BAA6B,CACrC,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAC5C,OAAO,6BAA6B,CACrC,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;iBAK/C,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,oCAAoC,CAC5C,CAAC"}
|
|
@@ -60,11 +60,11 @@ const BaseSchema = z.object({
|
|
|
60
60
|
name: z.string(),
|
|
61
61
|
status: PermissionStatusSchema,
|
|
62
62
|
description: z.string().optional(),
|
|
63
|
+
apps: aggregate_js_1.AggregateSchema.optional(),
|
|
64
|
+
roles: aggregate_js_1.AggregateSchema.optional(),
|
|
63
65
|
});
|
|
64
66
|
exports.PermissionSchema = z.object({
|
|
65
67
|
...BaseSchema.shape,
|
|
66
|
-
apps: aggregate_js_1.AggregateSchema.optional(),
|
|
67
|
-
roles: aggregate_js_1.AggregateSchema.optional(),
|
|
68
68
|
...dates_js_1.CreatedAtPropertySchema.shape,
|
|
69
69
|
...dates_js_1.UpdatedAtPropertySchema.shape,
|
|
70
70
|
...dates_js_1.DeletedAtPropertySchema.shape,
|
|
@@ -73,8 +73,6 @@ exports.PermissionSchema = z.object({
|
|
|
73
73
|
});
|
|
74
74
|
exports.PermissionPayloadSchema = z.object({
|
|
75
75
|
...BaseSchema.shape,
|
|
76
|
-
apps: aggregate_js_1.AggregateSchema.optional(),
|
|
77
|
-
roles: aggregate_js_1.AggregateSchema.optional(),
|
|
78
76
|
...dates_js_1.CreatedAtPropertyPayloadSchema.shape,
|
|
79
77
|
...dates_js_1.UpdatedAtPropertyPayloadSchema.shape,
|
|
80
78
|
...dates_js_1.DeletedAtPropertyPayloadSchema.shape,
|
|
@@ -10,6 +10,11 @@ export declare const UserStatus: {
|
|
|
10
10
|
readonly UNVERIFIED: "unverified";
|
|
11
11
|
};
|
|
12
12
|
export type AnyUserStatus = (typeof UserStatus)[keyof typeof UserStatus];
|
|
13
|
+
export declare const UserStatusSchema: z.ZodEnum<{
|
|
14
|
+
active: "active";
|
|
15
|
+
suspended: "suspended";
|
|
16
|
+
unverified: "unverified";
|
|
17
|
+
}>;
|
|
13
18
|
export declare const UserNamePropertiesSchema: z.ZodObject<{
|
|
14
19
|
givenName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
15
20
|
middleName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
@@ -114,6 +119,11 @@ export declare const InsertUserPayloadSchema: z.ZodObject<{
|
|
|
114
119
|
honorificPrefix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
115
120
|
honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
116
121
|
id: z.ZodOptional<z.ZodString>;
|
|
122
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
123
|
+
active: "active";
|
|
124
|
+
suspended: "suspended";
|
|
125
|
+
unverified: "unverified";
|
|
126
|
+
}>>;
|
|
117
127
|
}, z.core.$strip>;
|
|
118
128
|
export type InsertUserInput = z.input<typeof InsertUserPayloadSchema>;
|
|
119
129
|
export type InsertUserPayload = z.output<typeof InsertUserPayloadSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/users/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AA2B5B,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;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/users/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AA2B5B,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;AAEzE,eAAO,MAAM,gBAAgB;;;;EAAoC,CAAC;AAElE,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;;;;;;;;;;;;;;;;;;iBAOlC,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"}
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.UserAssociationReferenceSchema = exports.UpdateUserPayloadSchema = exports.InsertUserPayloadSchema = exports.UserPayloadSchema = exports.UserSchema = exports.UserAssociationsSchema = exports.EmailOrPhonePropertiesSchema = exports.VerifiedEmailOrPhonePropertiesSchema = exports.RequiredPhoneNumberSchema = exports.RequiredEmailSchema = exports.UserIdPropertySchema = exports.UpdateUserNamePropertiesSchema = exports.UserNamePropertiesSchema = exports.UserStatus = exports.VerifiableAttribute = void 0;
|
|
36
|
+
exports.UserAssociationReferenceSchema = exports.UpdateUserPayloadSchema = exports.InsertUserPayloadSchema = exports.UserPayloadSchema = exports.UserSchema = exports.UserAssociationsSchema = exports.EmailOrPhonePropertiesSchema = exports.VerifiedEmailOrPhonePropertiesSchema = exports.RequiredPhoneNumberSchema = exports.RequiredEmailSchema = exports.UserIdPropertySchema = exports.UpdateUserNamePropertiesSchema = exports.UserNamePropertiesSchema = exports.UserStatusSchema = exports.UserStatus = exports.VerifiableAttribute = void 0;
|
|
37
37
|
const z = __importStar(require("zod/v4"));
|
|
38
38
|
const schema_js_1 = require("../../authorization/schema.js");
|
|
39
39
|
const aggregate_js_1 = require("../../common/schema/aggregate.js");
|
|
@@ -50,11 +50,7 @@ exports.UserStatus = {
|
|
|
50
50
|
SUSPENDED: 'suspended',
|
|
51
51
|
UNVERIFIED: 'unverified',
|
|
52
52
|
};
|
|
53
|
-
|
|
54
|
-
exports.UserStatus.ACTIVE,
|
|
55
|
-
exports.UserStatus.SUSPENDED,
|
|
56
|
-
exports.UserStatus.UNVERIFIED,
|
|
57
|
-
]);
|
|
53
|
+
exports.UserStatusSchema = z.enum(Object.values(exports.UserStatus));
|
|
58
54
|
exports.UserNamePropertiesSchema = z.object({
|
|
59
55
|
givenName: (0, schema_js_2.optionallyNullishToUndefined)(z.string()),
|
|
60
56
|
middleName: (0, schema_js_2.optionallyNullishToUndefined)(z.string()),
|
|
@@ -93,7 +89,7 @@ const BaseSchema = z.object({
|
|
|
93
89
|
...exports.UserIdPropertySchema.shape,
|
|
94
90
|
...exports.UserNamePropertiesSchema.shape,
|
|
95
91
|
...exports.VerifiedEmailOrPhonePropertiesSchema.shape,
|
|
96
|
-
status: UserStatusSchema,
|
|
92
|
+
status: exports.UserStatusSchema,
|
|
97
93
|
roles: (0, schema_js_2.optionallyUndefined)(aggregate_js_1.AggregateSchema),
|
|
98
94
|
});
|
|
99
95
|
exports.UserSchema = z.object({
|
|
@@ -116,6 +112,7 @@ exports.UserPayloadSchema = z.object({
|
|
|
116
112
|
});
|
|
117
113
|
exports.InsertUserPayloadSchema = z.object({
|
|
118
114
|
id: schema_js_3.UserIdSchema.optional(),
|
|
115
|
+
status: exports.UserStatusSchema.optional(),
|
|
119
116
|
...exports.UserNamePropertiesSchema.shape,
|
|
120
117
|
...exports.VerifiedEmailOrPhonePropertiesSchema.shape,
|
|
121
118
|
...exports.UserAssociationsSchema.shape,
|
|
@@ -134,6 +131,6 @@ exports.UserAssociationReferenceSchema = z.object({
|
|
|
134
131
|
...exports.UserIdPropertySchema.shape,
|
|
135
132
|
...exports.UserNamePropertiesSchema.shape,
|
|
136
133
|
...exports.EmailOrPhonePropertiesSchema.shape,
|
|
137
|
-
status: UserStatusSchema.default('unverified'),
|
|
134
|
+
status: exports.UserStatusSchema.default('unverified'),
|
|
138
135
|
model: z.literal('User'),
|
|
139
136
|
});
|
|
@@ -19,6 +19,12 @@ export declare const PermissionSchema: z.ZodObject<{
|
|
|
19
19
|
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
20
20
|
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
21
21
|
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
status: z.ZodEnum<{
|
|
24
|
+
enabled: "enabled";
|
|
25
|
+
disabled: "disabled";
|
|
26
|
+
}>;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22
28
|
apps: z.ZodOptional<z.ZodObject<{
|
|
23
29
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
30
|
count: z.ZodOptional<z.ZodNumber>;
|
|
@@ -27,12 +33,6 @@ export declare const PermissionSchema: z.ZodObject<{
|
|
|
27
33
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
34
|
count: z.ZodOptional<z.ZodNumber>;
|
|
29
35
|
}, z.core.$strip>>;
|
|
30
|
-
name: z.ZodString;
|
|
31
|
-
status: z.ZodEnum<{
|
|
32
|
-
enabled: "enabled";
|
|
33
|
-
disabled: "disabled";
|
|
34
|
-
}>;
|
|
35
|
-
description: z.ZodOptional<z.ZodString>;
|
|
36
36
|
id: z.ZodString;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
export type PermissionProperties = z.input<typeof PermissionSchema>;
|
|
@@ -43,6 +43,12 @@ export declare const PermissionPayloadSchema: z.ZodObject<{
|
|
|
43
43
|
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>>>;
|
|
44
44
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
45
45
|
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
status: z.ZodEnum<{
|
|
48
|
+
enabled: "enabled";
|
|
49
|
+
disabled: "disabled";
|
|
50
|
+
}>;
|
|
51
|
+
description: z.ZodOptional<z.ZodString>;
|
|
46
52
|
apps: z.ZodOptional<z.ZodObject<{
|
|
47
53
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
54
|
count: z.ZodOptional<z.ZodNumber>;
|
|
@@ -51,12 +57,6 @@ export declare const PermissionPayloadSchema: z.ZodObject<{
|
|
|
51
57
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52
58
|
count: z.ZodOptional<z.ZodNumber>;
|
|
53
59
|
}, z.core.$strip>>;
|
|
54
|
-
name: z.ZodString;
|
|
55
|
-
status: z.ZodEnum<{
|
|
56
|
-
enabled: "enabled";
|
|
57
|
-
disabled: "disabled";
|
|
58
|
-
}>;
|
|
59
|
-
description: z.ZodOptional<z.ZodString>;
|
|
60
60
|
id: z.ZodString;
|
|
61
61
|
}, z.core.$strip>;
|
|
62
62
|
export type PermissionPayload = z.output<typeof PermissionPayloadSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/authorization/permissions/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAoB5B,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAO/E,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAC3C,OAAO,4BAA4B,CACpC,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/authorization/permissions/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAoB5B,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,MAAM,M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AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,oCAAoC,CAC5C,CAAC"}
|
|
@@ -24,11 +24,11 @@ const BaseSchema = z.object({
|
|
|
24
24
|
name: z.string(),
|
|
25
25
|
status: PermissionStatusSchema,
|
|
26
26
|
description: z.string().optional(),
|
|
27
|
+
apps: AggregateSchema.optional(),
|
|
28
|
+
roles: AggregateSchema.optional(),
|
|
27
29
|
});
|
|
28
30
|
export const PermissionSchema = z.object({
|
|
29
31
|
...BaseSchema.shape,
|
|
30
|
-
apps: AggregateSchema.optional(),
|
|
31
|
-
roles: AggregateSchema.optional(),
|
|
32
32
|
...CreatedAtPropertySchema.shape,
|
|
33
33
|
...UpdatedAtPropertySchema.shape,
|
|
34
34
|
...DeletedAtPropertySchema.shape,
|
|
@@ -37,8 +37,6 @@ export const PermissionSchema = z.object({
|
|
|
37
37
|
});
|
|
38
38
|
export const PermissionPayloadSchema = z.object({
|
|
39
39
|
...BaseSchema.shape,
|
|
40
|
-
apps: AggregateSchema.optional(),
|
|
41
|
-
roles: AggregateSchema.optional(),
|
|
42
40
|
...CreatedAtPropertyPayloadSchema.shape,
|
|
43
41
|
...UpdatedAtPropertyPayloadSchema.shape,
|
|
44
42
|
...DeletedAtPropertyPayloadSchema.shape,
|
|
@@ -10,6 +10,11 @@ export declare const UserStatus: {
|
|
|
10
10
|
readonly UNVERIFIED: "unverified";
|
|
11
11
|
};
|
|
12
12
|
export type AnyUserStatus = (typeof UserStatus)[keyof typeof UserStatus];
|
|
13
|
+
export declare const UserStatusSchema: z.ZodEnum<{
|
|
14
|
+
active: "active";
|
|
15
|
+
suspended: "suspended";
|
|
16
|
+
unverified: "unverified";
|
|
17
|
+
}>;
|
|
13
18
|
export declare const UserNamePropertiesSchema: z.ZodObject<{
|
|
14
19
|
givenName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
15
20
|
middleName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
@@ -114,6 +119,11 @@ export declare const InsertUserPayloadSchema: z.ZodObject<{
|
|
|
114
119
|
honorificPrefix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
115
120
|
honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
116
121
|
id: z.ZodOptional<z.ZodString>;
|
|
122
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
123
|
+
active: "active";
|
|
124
|
+
suspended: "suspended";
|
|
125
|
+
unverified: "unverified";
|
|
126
|
+
}>>;
|
|
117
127
|
}, z.core.$strip>;
|
|
118
128
|
export type InsertUserInput = z.input<typeof InsertUserPayloadSchema>;
|
|
119
129
|
export type InsertUserPayload = z.output<typeof InsertUserPayloadSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/users/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AA2B5B,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;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/users/schema.ts"],"names":[],"mappings":"AAAA,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C,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;iBAOlC,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"}
|
|
@@ -14,11 +14,7 @@ export const UserStatus = {
|
|
|
14
14
|
SUSPENDED: 'suspended',
|
|
15
15
|
UNVERIFIED: 'unverified',
|
|
16
16
|
};
|
|
17
|
-
const UserStatusSchema = z.enum(
|
|
18
|
-
UserStatus.ACTIVE,
|
|
19
|
-
UserStatus.SUSPENDED,
|
|
20
|
-
UserStatus.UNVERIFIED,
|
|
21
|
-
]);
|
|
17
|
+
export const UserStatusSchema = z.enum(Object.values(UserStatus));
|
|
22
18
|
export const UserNamePropertiesSchema = z.object({
|
|
23
19
|
givenName: optionallyNullishToUndefined(z.string()),
|
|
24
20
|
middleName: optionallyNullishToUndefined(z.string()),
|
|
@@ -80,6 +76,7 @@ export const UserPayloadSchema = z.object({
|
|
|
80
76
|
});
|
|
81
77
|
export const InsertUserPayloadSchema = z.object({
|
|
82
78
|
id: UserIdSchema.optional(),
|
|
79
|
+
status: UserStatusSchema.optional(),
|
|
83
80
|
...UserNamePropertiesSchema.shape,
|
|
84
81
|
...VerifiedEmailOrPhonePropertiesSchema.shape,
|
|
85
82
|
...UserAssociationsSchema.shape,
|