@cloudkata/common 1.0.6 → 1.0.9

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 OAuthResponseSchema: z.ZodObject<{
3
4
  accessToken: z.ZodString;
4
5
  refreshToken: z.ZodString;
@@ -8,12 +9,14 @@ export declare const OAuthResponseSchema: z.ZodObject<{
8
9
  email: z.ZodString;
9
10
  username: z.ZodString;
10
11
  avatarUrl: z.ZodOptional<z.ZodString>;
12
+ provider: z.ZodNativeEnum<typeof Provider>;
11
13
  createdAt: z.ZodDate;
12
14
  updatedAt: z.ZodDate;
13
15
  }, "strip", z.ZodTypeAny, {
14
16
  email: string;
15
17
  username: string;
16
18
  id: string;
19
+ provider: Provider;
17
20
  createdAt: Date;
18
21
  updatedAt: Date;
19
22
  avatarUrl?: string | undefined;
@@ -21,6 +24,7 @@ export declare const OAuthResponseSchema: z.ZodObject<{
21
24
  email: string;
22
25
  username: string;
23
26
  id: string;
27
+ provider: Provider;
24
28
  createdAt: Date;
25
29
  updatedAt: Date;
26
30
  avatarUrl?: string | undefined;
@@ -32,6 +36,7 @@ export declare const OAuthResponseSchema: z.ZodObject<{
32
36
  email: string;
33
37
  username: string;
34
38
  id: string;
39
+ provider: Provider;
35
40
  createdAt: Date;
36
41
  updatedAt: Date;
37
42
  avatarUrl?: string | undefined;
@@ -44,6 +49,7 @@ export declare const OAuthResponseSchema: z.ZodObject<{
44
49
  email: string;
45
50
  username: string;
46
51
  id: string;
52
+ provider: Provider;
47
53
  createdAt: Date;
48
54
  updatedAt: Date;
49
55
  avatarUrl?: string | undefined;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OAuthResponseSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const _enums_1 = require("@enums");
5
6
  exports.OAuthResponseSchema = zod_1.z.object({
6
7
  accessToken: zod_1.z.string(),
7
8
  refreshToken: zod_1.z.string(),
@@ -11,6 +12,7 @@ exports.OAuthResponseSchema = zod_1.z.object({
11
12
  email: zod_1.z.string().email(),
12
13
  username: zod_1.z.string(),
13
14
  avatarUrl: zod_1.z.string().url().optional(),
15
+ provider: zod_1.z.nativeEnum(_enums_1.Provider),
14
16
  createdAt: zod_1.z.date(),
15
17
  updatedAt: zod_1.z.date(),
16
18
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-response.dto.js","sourceRoot":"","sources":["../../../src/dtos/auth/oauth-response.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;IACtB,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,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;QACnB,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;KACpB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"oauth-response.dto.js","sourceRoot":"","sources":["../../../src/dtos/auth/oauth-response.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAkC;AAErB,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;IACtB,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,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudkata/common",
3
- "version": "1.0.6",
3
+ "version": "1.0.9",
4
4
  "description": "Shared contracts, interfaces, DTOs and enums for CloudKata",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,6 +25,7 @@
25
25
  "eslint-config-prettier": "^10.1.8",
26
26
  "eslint-plugin-prettier": "^5.5.6",
27
27
  "prettier": "^3.9.1",
28
+ "tsc-alias": "^1.8.17",
28
29
  "typescript": "^5.0.0",
29
30
  "typescript-eslint": "^8.0.0"
30
31
  },