@cloudkata/common 1.0.7 → 1.0.11

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,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Provider } from '@enums';
2
+ import { Provider } from '../../enums/index.js';
3
3
  export declare const AuthResponseSchema: z.ZodObject<{
4
4
  accessToken: z.ZodString;
5
5
  refreshToken: z.ZodString;
@@ -2,7 +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
+ const _enums_1 = require("../../enums/index.js");
6
6
  exports.AuthResponseSchema = zod_1.z.object({
7
7
  accessToken: zod_1.z.string(),
8
8
  refreshToken: zod_1.z.string(),
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Provider } from '@enums';
2
+ import { Provider } from '../../enums/index.js';
3
3
  export declare const OAuthResponseSchema: z.ZodObject<{
4
4
  accessToken: z.ZodString;
5
5
  refreshToken: z.ZodString;
@@ -2,7 +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
+ const _enums_1 = require("../../enums/index.js");
6
6
  exports.OAuthResponseSchema = zod_1.z.object({
7
7
  accessToken: zod_1.z.string(),
8
8
  refreshToken: zod_1.z.string(),
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Difficulty, ChallengeType } from '@enums';
2
+ import { Difficulty, ChallengeType } from '../../enums/index.js';
3
3
  export declare const ChallengeResponseSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  title: z.ZodString;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChallengeResponseSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const _enums_1 = require("@enums");
5
+ const _enums_1 = require("../../enums/index.js");
6
6
  exports.ChallengeResponseSchema = zod_1.z.object({
7
7
  id: zod_1.z.string().uuid(),
8
8
  title: zod_1.z.string(),
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Difficulty, ChallengeType } from '@enums';
2
+ import { Difficulty, ChallengeType } from '../../enums/index.js';
3
3
  export declare const CreateChallengeSchema: z.ZodObject<{
4
4
  title: z.ZodString;
5
5
  description: z.ZodString;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateChallengeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const _enums_1 = require("@enums");
5
+ const _enums_1 = require("../../enums/index.js");
6
6
  exports.CreateChallengeSchema = zod_1.z.object({
7
7
  title: zod_1.z
8
8
  .string()
@@ -1,4 +1,4 @@
1
- import { Difficulty, ChallengeType } from '@enums';
1
+ import { Difficulty, ChallengeType } from '../enums/index.js';
2
2
  export interface IChallenge {
3
3
  id: string;
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { Provider } from '@enums';
1
+ import { Provider } from '../enums/index.js';
2
2
  export interface IOAuthProfile {
3
3
  provider: Provider;
4
4
  providerId: string;
@@ -1,4 +1,4 @@
1
- import { Provider } from '@enums';
1
+ import { Provider } from '../enums/index.js';
2
2
  export interface IUser {
3
3
  id: string;
4
4
  email: string;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@cloudkata/common",
3
- "version": "1.0.7",
3
+ "version": "1.0.11",
4
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": {
8
- "build": "tsc",
8
+ "build": "tsc && tsc-alias",
9
9
  "build:watch": "tsc --watch",
10
10
  "check": "npm run lint && npm run format:check",
11
11
  "lint": "eslint src/**/*.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
  },