@tiboli/types 0.0.6 → 0.0.7

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/dist/index.js CHANGED
@@ -1,19 +1,3 @@
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);
1
+ export * from './schemas';
2
+ export * from './types';
19
3
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -1,45 +1,9 @@
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({
1
+ import * as z from 'zod';
2
+ export const BookSchema = z.object({
39
3
  id: z.int(),
40
4
  title: z.string(),
41
5
  author: z.string(),
42
6
  });
43
- exports.BookCreationSchema = exports.BookSchema.omit({ id: true });
44
- exports.BookUpdateSchema = exports.BookSchema.partial().required({ id: true });
7
+ export const BookCreationSchema = BookSchema.omit({ id: true });
8
+ export const BookUpdateSchema = BookSchema.partial().required({ id: true });
45
9
  //# sourceMappingURL=book.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"book.schema.js","sourceRoot":"","sources":["../../src/schemas/book.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEZ,QAAA,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;AAEU,QAAA,kBAAkB,GAAG,kBAAU,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AACnD,QAAA,gBAAgB,GAAG,kBAAU,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
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,44 +1,8 @@
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({
1
+ import * as z from 'zod';
2
+ export const CopySchema = z.object({
39
3
  id: z.int(),
40
4
  bookId: z.int(),
41
5
  });
42
- exports.CopyCreationSchema = exports.CopySchema.omit({ id: true });
43
- exports.CopyUpdateSchema = exports.CopySchema.partial().required({ id: true });
6
+ export const CopyCreationSchema = CopySchema.omit({ id: true });
7
+ export const CopyUpdateSchema = CopySchema.partial().required({ id: true });
44
8
  //# sourceMappingURL=copy.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"copy.schema.js","sourceRoot":"","sources":["../../src/schemas/copy.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEZ,QAAA,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;CACf,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,kBAAU,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AACnD,QAAA,gBAAgB,GAAG,kBAAU,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
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,46 +1,10 @@
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({
1
+ import * as z from 'zod';
2
+ export const CustomerSchema = z.object({
39
3
  id: z.int(),
40
4
  name: z.string(),
41
5
  lastname: z.string(),
42
6
  email: z.email(),
43
7
  });
44
- exports.CustomerCreationSchema = exports.CustomerSchema.omit({ id: true });
45
- exports.CustomerUpdateSchema = exports.CustomerSchema.partial().required({ id: true });
8
+ export const CustomerCreationSchema = CustomerSchema.omit({ id: true });
9
+ export const CustomerUpdateSchema = CustomerSchema.partial().required({ id: true });
46
10
  //# sourceMappingURL=customer.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customer.schema.js","sourceRoot":"","sources":["../../src/schemas/customer.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEZ,QAAA,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;AAEU,QAAA,sBAAsB,GAAG,sBAAc,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AAC3D,QAAA,oBAAoB,GAAG,sBAAc,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
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,44 +1,8 @@
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({
1
+ import * as z from 'zod';
2
+ export const GroupSchema = z.object({
39
3
  id: z.int(),
40
4
  name: z.string(),
41
5
  });
42
- exports.GroupCreationSchema = exports.GroupSchema.omit({ id: true });
43
- exports.GroupUpdateSchema = exports.GroupSchema.partial().required({ id: true });
6
+ export const GroupCreationSchema = GroupSchema.omit({ id: true });
7
+ export const GroupUpdateSchema = GroupSchema.partial().required({ id: true });
44
8
  //# sourceMappingURL=group.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"group.schema.js","sourceRoot":"","sources":["../../src/schemas/group.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEZ,QAAA,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,mBAAW,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AACrD,QAAA,iBAAiB,GAAG,mBAAW,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
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,24 +1,6 @@
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; } });
1
+ export { BookSchema, BookCreationSchema, BookUpdateSchema } from './book.schema';
2
+ export { CopySchema, CopyCreationSchema, CopyUpdateSchema } from './copy.schema';
3
+ export { CustomerSchema, CustomerCreationSchema, CustomerUpdateSchema } from './customer.schema';
4
+ export { GroupSchema, GroupCreationSchema, GroupUpdateSchema } from './group.schema';
5
+ export { LoanSchema, LoanCreationSchema, LoanUpdateSchema } from './loan.schema';
24
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":";;;AAAA,6CAAiF;AAAxE,yGAAA,UAAU,OAAA;AAAE,iHAAA,kBAAkB,OAAA;AAAE,+GAAA,gBAAgB,OAAA;AACzD,6CAAiF;AAAxE,yGAAA,UAAU,OAAA;AAAE,iHAAA,kBAAkB,OAAA;AAAE,+GAAA,gBAAgB,OAAA;AACzD,qDAAiG;AAAxF,iHAAA,cAAc,OAAA;AAAE,yHAAA,sBAAsB,OAAA;AAAE,uHAAA,oBAAoB,OAAA;AACrE,+CAAqF;AAA5E,2GAAA,WAAW,OAAA;AAAE,mHAAA,mBAAmB,OAAA;AAAE,iHAAA,iBAAiB,OAAA;AAC5D,6CAAiF;AAAxE,yGAAA,UAAU,OAAA;AAAE,iHAAA,kBAAkB,OAAA;AAAE,+GAAA,gBAAgB,OAAA"}
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,41 +1,5 @@
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({
1
+ import * as z from 'zod';
2
+ export const LoanSchema = z.object({
39
3
  id: z.int(),
40
4
  copyId: z.int(),
41
5
  customerId: z.int(),
@@ -43,6 +7,6 @@ exports.LoanSchema = z.object({
43
7
  dueDate: z.date(),
44
8
  returnDate: z.date(),
45
9
  });
46
- exports.LoanCreationSchema = exports.LoanSchema.omit({ id: true });
47
- exports.LoanUpdateSchema = exports.LoanSchema.partial().required({ id: true });
10
+ export const LoanCreationSchema = LoanSchema.omit({ id: true });
11
+ export const LoanUpdateSchema = LoanSchema.partial().required({ id: true });
48
12
  //# sourceMappingURL=loan.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loan.schema.js","sourceRoot":"","sources":["../../src/schemas/loan.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEZ,QAAA,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;AAEU,QAAA,kBAAkB,GAAG,kBAAU,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AACnD,QAAA,gBAAgB,GAAG,kBAAU,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC"}
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,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=book.type.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=copy.type.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=customer.type.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=group.types.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=loan.type.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiboli/types",
3
3
  "scope": "@tiboli",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "description": "Typedefinitions for Tiboli",
6
6
  "keywords": [
7
7
  "tiboli",