@tiboli/types 0.0.9 → 0.0.10

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.
Files changed (62) hide show
  1. package/dist/cjs/index.cjs +18 -0
  2. package/dist/cjs/schemas/book.schema.cjs +44 -0
  3. package/dist/cjs/schemas/copy.schema.cjs +43 -0
  4. package/dist/cjs/schemas/customer.schema.cjs +45 -0
  5. package/dist/cjs/schemas/group.schema.cjs +43 -0
  6. package/dist/cjs/schemas/index.cjs +23 -0
  7. package/dist/cjs/schemas/loan.schema.cjs +47 -0
  8. package/dist/cjs/types/book.type.cjs +2 -0
  9. package/dist/cjs/types/copy.type.cjs +2 -0
  10. package/dist/cjs/types/customer.type.cjs +2 -0
  11. package/dist/cjs/types/group.types.cjs +2 -0
  12. package/dist/cjs/types/index.cjs +2 -0
  13. package/dist/cjs/types/loan.type.cjs +2 -0
  14. package/dist/esm/index.js.map +1 -0
  15. package/dist/esm/schemas/book.schema.js.map +1 -0
  16. package/dist/esm/schemas/copy.schema.js.map +1 -0
  17. package/dist/esm/schemas/customer.schema.js.map +1 -0
  18. package/dist/esm/schemas/group.schema.js.map +1 -0
  19. package/dist/esm/schemas/index.js.map +1 -0
  20. package/dist/esm/schemas/loan.schema.js.map +1 -0
  21. package/dist/{types → esm/types}/book.type.js.map +1 -1
  22. package/dist/{types → esm/types}/copy.type.js.map +1 -1
  23. package/dist/esm/types/customer.type.js.map +1 -0
  24. package/dist/{types → esm/types}/group.types.js.map +1 -1
  25. package/dist/{types → esm/types}/index.js.map +1 -1
  26. package/dist/{types → esm/types}/loan.type.js.map +1 -1
  27. package/dist/types/index.d.ts +2 -5
  28. package/dist/types/types/index.d.ts +5 -0
  29. package/package.json +19 -13
  30. package/dist/index.d.ts +0 -2
  31. package/dist/index.js.map +0 -1
  32. package/dist/schemas/book.schema.js.map +0 -1
  33. package/dist/schemas/copy.schema.js.map +0 -1
  34. package/dist/schemas/customer.schema.js.map +0 -1
  35. package/dist/schemas/group.schema.js.map +0 -1
  36. package/dist/schemas/index.js.map +0 -1
  37. package/dist/schemas/loan.schema.js.map +0 -1
  38. package/dist/types/customer.type.js.map +0 -1
  39. /package/dist/{index.js → esm/index.js} +0 -0
  40. /package/dist/{schemas → esm/schemas}/book.schema.js +0 -0
  41. /package/dist/{schemas → esm/schemas}/copy.schema.js +0 -0
  42. /package/dist/{schemas → esm/schemas}/customer.schema.js +0 -0
  43. /package/dist/{schemas → esm/schemas}/group.schema.js +0 -0
  44. /package/dist/{schemas → esm/schemas}/index.js +0 -0
  45. /package/dist/{schemas → esm/schemas}/loan.schema.js +0 -0
  46. /package/dist/{types → esm/types}/book.type.js +0 -0
  47. /package/dist/{types → esm/types}/copy.type.js +0 -0
  48. /package/dist/{types → esm/types}/customer.type.js +0 -0
  49. /package/dist/{types → esm/types}/group.types.js +0 -0
  50. /package/dist/{types → esm/types}/index.js +0 -0
  51. /package/dist/{types → esm/types}/loan.type.js +0 -0
  52. /package/dist/{schemas → types/schemas}/book.schema.d.ts +0 -0
  53. /package/dist/{schemas → types/schemas}/copy.schema.d.ts +0 -0
  54. /package/dist/{schemas → types/schemas}/customer.schema.d.ts +0 -0
  55. /package/dist/{schemas → types/schemas}/group.schema.d.ts +0 -0
  56. /package/dist/{schemas → types/schemas}/index.d.ts +0 -0
  57. /package/dist/{schemas → types/schemas}/loan.schema.d.ts +0 -0
  58. /package/dist/types/{book.type.d.ts → types/book.type.d.ts} +0 -0
  59. /package/dist/types/{copy.type.d.ts → types/copy.type.d.ts} +0 -0
  60. /package/dist/types/{customer.type.d.ts → types/customer.type.d.ts} +0 -0
  61. /package/dist/types/{group.types.d.ts → types/group.types.d.ts} +0 -0
  62. /package/dist/types/{loan.type.d.ts → types/loan.type.d.ts} +0 -0
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./schemas"), exports);
18
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.BookUpdateSchema = exports.BookCreationSchema = exports.BookSchema = void 0;
37
+ const z = __importStar(require("zod"));
38
+ exports.BookSchema = z.object({
39
+ id: z.int(),
40
+ title: z.string(),
41
+ author: z.string(),
42
+ });
43
+ exports.BookCreationSchema = exports.BookSchema.omit({ id: true });
44
+ exports.BookUpdateSchema = exports.BookSchema.partial().required({ id: true });
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.CopyUpdateSchema = exports.CopyCreationSchema = exports.CopySchema = void 0;
37
+ const z = __importStar(require("zod"));
38
+ exports.CopySchema = z.object({
39
+ id: z.int(),
40
+ bookId: z.int(),
41
+ });
42
+ exports.CopyCreationSchema = exports.CopySchema.omit({ id: true });
43
+ exports.CopyUpdateSchema = exports.CopySchema.partial().required({ id: true });
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.CustomerUpdateSchema = exports.CustomerCreationSchema = exports.CustomerSchema = void 0;
37
+ const z = __importStar(require("zod"));
38
+ exports.CustomerSchema = z.object({
39
+ id: z.int(),
40
+ name: z.string(),
41
+ lastname: z.string(),
42
+ email: z.email(),
43
+ });
44
+ exports.CustomerCreationSchema = exports.CustomerSchema.omit({ id: true });
45
+ exports.CustomerUpdateSchema = exports.CustomerSchema.partial().required({ id: true });
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.GroupUpdateSchema = exports.GroupCreationSchema = exports.GroupSchema = void 0;
37
+ const z = __importStar(require("zod"));
38
+ exports.GroupSchema = z.object({
39
+ id: z.int(),
40
+ name: z.string(),
41
+ });
42
+ exports.GroupCreationSchema = exports.GroupSchema.omit({ id: true });
43
+ exports.GroupUpdateSchema = exports.GroupSchema.partial().required({ id: true });
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LoanUpdateSchema = exports.LoanCreationSchema = exports.LoanSchema = exports.GroupUpdateSchema = exports.GroupCreationSchema = exports.GroupSchema = exports.CustomerUpdateSchema = exports.CustomerCreationSchema = exports.CustomerSchema = exports.CopyUpdateSchema = exports.CopyCreationSchema = exports.CopySchema = exports.BookUpdateSchema = exports.BookCreationSchema = exports.BookSchema = void 0;
4
+ var book_schema_1 = require("./book.schema");
5
+ Object.defineProperty(exports, "BookSchema", { enumerable: true, get: function () { return book_schema_1.BookSchema; } });
6
+ Object.defineProperty(exports, "BookCreationSchema", { enumerable: true, get: function () { return book_schema_1.BookCreationSchema; } });
7
+ Object.defineProperty(exports, "BookUpdateSchema", { enumerable: true, get: function () { return book_schema_1.BookUpdateSchema; } });
8
+ var copy_schema_1 = require("./copy.schema");
9
+ Object.defineProperty(exports, "CopySchema", { enumerable: true, get: function () { return copy_schema_1.CopySchema; } });
10
+ Object.defineProperty(exports, "CopyCreationSchema", { enumerable: true, get: function () { return copy_schema_1.CopyCreationSchema; } });
11
+ Object.defineProperty(exports, "CopyUpdateSchema", { enumerable: true, get: function () { return copy_schema_1.CopyUpdateSchema; } });
12
+ var customer_schema_1 = require("./customer.schema");
13
+ Object.defineProperty(exports, "CustomerSchema", { enumerable: true, get: function () { return customer_schema_1.CustomerSchema; } });
14
+ Object.defineProperty(exports, "CustomerCreationSchema", { enumerable: true, get: function () { return customer_schema_1.CustomerCreationSchema; } });
15
+ Object.defineProperty(exports, "CustomerUpdateSchema", { enumerable: true, get: function () { return customer_schema_1.CustomerUpdateSchema; } });
16
+ var group_schema_1 = require("./group.schema");
17
+ Object.defineProperty(exports, "GroupSchema", { enumerable: true, get: function () { return group_schema_1.GroupSchema; } });
18
+ Object.defineProperty(exports, "GroupCreationSchema", { enumerable: true, get: function () { return group_schema_1.GroupCreationSchema; } });
19
+ Object.defineProperty(exports, "GroupUpdateSchema", { enumerable: true, get: function () { return group_schema_1.GroupUpdateSchema; } });
20
+ var loan_schema_1 = require("./loan.schema");
21
+ Object.defineProperty(exports, "LoanSchema", { enumerable: true, get: function () { return loan_schema_1.LoanSchema; } });
22
+ Object.defineProperty(exports, "LoanCreationSchema", { enumerable: true, get: function () { return loan_schema_1.LoanCreationSchema; } });
23
+ Object.defineProperty(exports, "LoanUpdateSchema", { enumerable: true, get: function () { return loan_schema_1.LoanUpdateSchema; } });
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.LoanUpdateSchema = exports.LoanCreationSchema = exports.LoanSchema = void 0;
37
+ const z = __importStar(require("zod"));
38
+ exports.LoanSchema = z.object({
39
+ id: z.int(),
40
+ copyId: z.int(),
41
+ customerId: z.int(),
42
+ lentDate: z.date(),
43
+ dueDate: z.date(),
44
+ returnDate: z.date(),
45
+ });
46
+ exports.LoanCreationSchema = exports.LoanSchema.omit({ id: true });
47
+ exports.LoanUpdateSchema = exports.LoanSchema.partial().required({ id: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"book.schema.js","sourceRoot":"","sources":["../../../src/schemas/book.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy.schema.js","sourceRoot":"","sources":["../../../src/schemas/copy.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;CACf,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.schema.js","sourceRoot":"","sources":["../../../src/schemas/customer.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.schema.js","sourceRoot":"","sources":["../../../src/schemas/group.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AAClE,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACjG,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loan.schema.js","sourceRoot":"","sources":["../../../src/schemas/loan.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;IACf,UAAU,EAAE,CAAC,CAAC,GAAG,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE;IACjB,UAAU,EAAE,CAAC,CAAC,IAAI,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"book.type.js","sourceRoot":"","sources":["../../src/types/book.type.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"book.type.js","sourceRoot":"","sources":["../../../src/types/book.type.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"copy.type.js","sourceRoot":"","sources":["../../src/types/copy.type.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"copy.type.js","sourceRoot":"","sources":["../../../src/types/copy.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.type.js","sourceRoot":"","sources":["../../../src/types/customer.type.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"group.types.js","sourceRoot":"","sources":["../../src/types/group.types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"group.types.js","sourceRoot":"","sources":["../../../src/types/group.types.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"loan.type.js","sourceRoot":"","sources":["../../src/types/loan.type.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"loan.type.js","sourceRoot":"","sources":["../../../src/types/loan.type.ts"],"names":[],"mappings":""}
@@ -1,5 +1,2 @@
1
- export { BookAttributes, BookCreationAttributes, BookUpdateAttributes } from './book.type';
2
- export { CopyAttributes, CopyCreationAttributes, CopyUpdateAttributes } from './copy.type';
3
- export { CustomerAttributes, CustomerCreationAttributes, CustomerUpdateAttributes, } from './customer.type';
4
- export { GroupAttributes, GroupCreationAttributes, GroupUpdateAttributes } from './group.types';
5
- export { LoanAttributes, LoanCreationAttributes, LoanUpdateAttributes } from './loan.type';
1
+ export * from './schemas';
2
+ export * from './types';
@@ -0,0 +1,5 @@
1
+ export { BookAttributes, BookCreationAttributes, BookUpdateAttributes } from './book.type';
2
+ export { CopyAttributes, CopyCreationAttributes, CopyUpdateAttributes } from './copy.type';
3
+ export { CustomerAttributes, CustomerCreationAttributes, CustomerUpdateAttributes, } from './customer.type';
4
+ export { GroupAttributes, GroupCreationAttributes, GroupUpdateAttributes } from './group.types';
5
+ export { LoanAttributes, LoanCreationAttributes, LoanUpdateAttributes } from './loan.type';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiboli/types",
3
3
  "scope": "@tiboli",
4
- "version": "0.0.9",
4
+ "version": "0.0.10",
5
5
  "description": "Typedefinitions for Tiboli",
6
6
  "keywords": [
7
7
  "tiboli",
@@ -12,30 +12,36 @@
12
12
  ],
13
13
  "type": "module",
14
14
  "private": false,
15
- "main": "./dist/index.js",
16
- "types": "./dist/index.d.ts",
17
15
  "files": [
18
16
  "dist"
19
17
  ],
18
+ "main": "./dist/cjs/index.cjs",
19
+ "module": "./dist/esm/index.js",
20
+ "types": "./dist/types/index.d.ts",
20
21
  "exports": {
21
22
  ".": {
22
- "import": "./dist/index.js",
23
- "types": "./dist/index.d.ts",
24
- "default": "./dist/index.js"
23
+ "types": "./dist/types/index.d.ts",
24
+ "import": "./dist/esm/index.js",
25
+ "require": "./dist/cjs/index.cjs"
25
26
  },
26
27
  "./schemas": {
27
- "import": "./dist/schemas/index.js",
28
- "types": "./dist/schemas/index.d.ts"
28
+ "types": "./dist/types/schemas/index.d.ts",
29
+ "import": "./dist/esm/schemas/index.js",
30
+ "require": "./dist/cjs/schemas/index.cjs"
29
31
  },
30
32
  "./types": {
31
- "import": "./dist/types/index.js",
32
- "types": "./dist/types/index.d.ts"
33
+ "types": "./dist/types/types/index.d.ts",
34
+ "import": "./dist/esm/types/index.js",
35
+ "require": "./dist/cjs/types/index.cjs"
33
36
  }
34
37
  },
35
38
  "scripts": {
36
- "build": "tsc --project tsconfig.json && tsc-alias -p tsconfig.json",
37
- "watch": "tsc --project tsconfig.json --watch",
38
- "start": "node dist/index.js",
39
+ "clean": "rm -rf dist",
40
+ "build:esm": "tsc --project tsconfig.esm.json && tsc-alias -p tsconfig.esm.json",
41
+ "build:cjs": "tsc --project tsconfig.cjs.json && node scripts/rename-cjs.mjs",
42
+ "build": "npm run clean && npm run build:esm && npm run build:cjs",
43
+ "watch": "tsc --project tsconfig.esm.json --watch",
44
+ "start": "node dist/esm/index.js",
39
45
  "dev": "tsx watch -r tsconfig-paths/register src",
40
46
  "prepare": "husky",
41
47
  "lint": "eslint --max-warnings=0 .",
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './schemas';
2
- export * from './types';
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"book.schema.js","sourceRoot":"","sources":["../../src/schemas/book.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"copy.schema.js","sourceRoot":"","sources":["../../src/schemas/copy.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;CACf,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"customer.schema.js","sourceRoot":"","sources":["../../src/schemas/customer.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.schema.js","sourceRoot":"","sources":["../../src/schemas/group.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AAClE,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACjG,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"loan.schema.js","sourceRoot":"","sources":["../../src/schemas/loan.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;IACf,UAAU,EAAE,CAAC,CAAC,GAAG,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE;IACjB,UAAU,EAAE,CAAC,CAAC,IAAI,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"customer.type.js","sourceRoot":"","sources":["../../src/types/customer.type.ts"],"names":[],"mappings":""}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes