@cloudkata/common 1.0.1 → 1.0.6
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { Provider } from '@enums';
|
|
2
3
|
export declare const AuthResponseSchema: z.ZodObject<{
|
|
3
4
|
accessToken: z.ZodString;
|
|
4
5
|
refreshToken: z.ZodString;
|
|
@@ -7,12 +8,14 @@ export declare const AuthResponseSchema: z.ZodObject<{
|
|
|
7
8
|
email: z.ZodString;
|
|
8
9
|
username: z.ZodString;
|
|
9
10
|
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
11
|
+
provider: z.ZodNativeEnum<typeof Provider>;
|
|
10
12
|
createdAt: z.ZodDate;
|
|
11
13
|
updatedAt: z.ZodDate;
|
|
12
14
|
}, "strip", z.ZodTypeAny, {
|
|
13
15
|
email: string;
|
|
14
16
|
username: string;
|
|
15
17
|
id: string;
|
|
18
|
+
provider: Provider;
|
|
16
19
|
createdAt: Date;
|
|
17
20
|
updatedAt: Date;
|
|
18
21
|
avatarUrl?: string | undefined;
|
|
@@ -20,6 +23,7 @@ export declare const AuthResponseSchema: z.ZodObject<{
|
|
|
20
23
|
email: string;
|
|
21
24
|
username: string;
|
|
22
25
|
id: string;
|
|
26
|
+
provider: Provider;
|
|
23
27
|
createdAt: Date;
|
|
24
28
|
updatedAt: Date;
|
|
25
29
|
avatarUrl?: string | undefined;
|
|
@@ -31,6 +35,7 @@ export declare const AuthResponseSchema: z.ZodObject<{
|
|
|
31
35
|
email: string;
|
|
32
36
|
username: string;
|
|
33
37
|
id: string;
|
|
38
|
+
provider: Provider;
|
|
34
39
|
createdAt: Date;
|
|
35
40
|
updatedAt: Date;
|
|
36
41
|
avatarUrl?: string | undefined;
|
|
@@ -42,6 +47,7 @@ export declare const AuthResponseSchema: z.ZodObject<{
|
|
|
42
47
|
email: string;
|
|
43
48
|
username: string;
|
|
44
49
|
id: string;
|
|
50
|
+
provider: Provider;
|
|
45
51
|
createdAt: Date;
|
|
46
52
|
updatedAt: Date;
|
|
47
53
|
avatarUrl?: string | undefined;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AuthResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const _enums_1 = require("@enums");
|
|
5
6
|
exports.AuthResponseSchema = zod_1.z.object({
|
|
6
7
|
accessToken: zod_1.z.string(),
|
|
7
8
|
refreshToken: zod_1.z.string(),
|
|
@@ -10,6 +11,7 @@ exports.AuthResponseSchema = zod_1.z.object({
|
|
|
10
11
|
email: zod_1.z.string().email(),
|
|
11
12
|
username: zod_1.z.string(),
|
|
12
13
|
avatarUrl: zod_1.z.string().url().optional(),
|
|
14
|
+
provider: zod_1.z.nativeEnum(_enums_1.Provider),
|
|
13
15
|
createdAt: zod_1.z.date(),
|
|
14
16
|
updatedAt: zod_1.z.date(),
|
|
15
17
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-response.dto.js","sourceRoot":"","sources":["../../../src/dtos/auth/auth-response.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"auth-response.dto.js","sourceRoot":"","sources":["../../../src/dtos/auth/auth-response.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAkC;AAErB,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;QACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;QACzB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;QACpB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QACtC,QAAQ,EAAE,OAAC,CAAC,UAAU,CAAC,iBAAQ,CAAC;QAChC,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;QACnB,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;KACpB,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudkata/common",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Shared contracts, interfaces, DTOs and enums for CloudKata
|
|
3
|
+
"version": "1.0.6",
|
|
4
|
+
"description": "Shared contracts, interfaces, DTOs and enums for CloudKata",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|