@asapjs/sequelize 0.2.5 → 0.2.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.
Files changed (67) hide show
  1. package/dist/types/base64.d.ts +4 -4
  2. package/dist/types/base64.d.ts.map +1 -1
  3. package/dist/types/base64.js +2 -2
  4. package/dist/types/base64.js.map +1 -1
  5. package/dist/types/binary.d.ts +4 -4
  6. package/dist/types/binary.d.ts.map +1 -1
  7. package/dist/types/binary.js +2 -2
  8. package/dist/types/binary.js.map +1 -1
  9. package/dist/types/boolean.d.ts +3 -3
  10. package/dist/types/boolean.d.ts.map +1 -1
  11. package/dist/types/boolean.js +2 -2
  12. package/dist/types/boolean.js.map +1 -1
  13. package/dist/types/dateonly.d.ts +3 -3
  14. package/dist/types/dateonly.d.ts.map +1 -1
  15. package/dist/types/dateonly.js +2 -2
  16. package/dist/types/dateonly.js.map +1 -1
  17. package/dist/types/datetime.d.ts +3 -3
  18. package/dist/types/datetime.d.ts.map +1 -1
  19. package/dist/types/datetime.js +2 -2
  20. package/dist/types/datetime.js.map +1 -1
  21. package/dist/types/decemal.d.ts +3 -3
  22. package/dist/types/decemal.d.ts.map +1 -1
  23. package/dist/types/decemal.js +2 -2
  24. package/dist/types/decemal.js.map +1 -1
  25. package/dist/types/double.d.ts +3 -3
  26. package/dist/types/double.d.ts.map +1 -1
  27. package/dist/types/double.js +2 -2
  28. package/dist/types/double.js.map +1 -1
  29. package/dist/types/enum.d.ts +3 -3
  30. package/dist/types/enum.d.ts.map +1 -1
  31. package/dist/types/enum.js +2 -2
  32. package/dist/types/enum.js.map +1 -1
  33. package/dist/types/float.d.ts +3 -3
  34. package/dist/types/float.d.ts.map +1 -1
  35. package/dist/types/float.js +2 -2
  36. package/dist/types/float.js.map +1 -1
  37. package/dist/types/generators/toSequelizeGenerator.d.ts +2 -2
  38. package/dist/types/generators/toSequelizeGenerator.d.ts.map +1 -1
  39. package/dist/types/generators/toSwaggerGenerator.d.ts +2 -2
  40. package/dist/types/generators/toSwaggerGenerator.d.ts.map +1 -1
  41. package/dist/types/generators/typeGenerator.d.ts +2 -2
  42. package/dist/types/generators/typeGenerator.d.ts.map +1 -1
  43. package/dist/types/int.d.ts +3 -3
  44. package/dist/types/int.d.ts.map +1 -1
  45. package/dist/types/int.js +2 -2
  46. package/dist/types/int.js.map +1 -1
  47. package/dist/types/json.d.ts +3 -3
  48. package/dist/types/json.d.ts.map +1 -1
  49. package/dist/types/json.js +2 -2
  50. package/dist/types/json.js.map +1 -1
  51. package/dist/types/long.d.ts +3 -3
  52. package/dist/types/long.d.ts.map +1 -1
  53. package/dist/types/long.js +2 -2
  54. package/dist/types/long.js.map +1 -1
  55. package/dist/types/password.d.ts +3 -3
  56. package/dist/types/password.d.ts.map +1 -1
  57. package/dist/types/password.js +2 -2
  58. package/dist/types/password.js.map +1 -1
  59. package/dist/types/string.d.ts +3 -3
  60. package/dist/types/string.d.ts.map +1 -1
  61. package/dist/types/string.js +2 -2
  62. package/dist/types/string.js.map +1 -1
  63. package/dist/types/text.d.ts +3 -3
  64. package/dist/types/text.d.ts.map +1 -1
  65. package/dist/types/text.js +2 -2
  66. package/dist/types/text.js.map +1 -1
  67. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- import { BlobSize } from 'sequelize/types';
1
+ import { BlobSize } from 'sequelize';
2
2
  export interface TypeIsBase64Option {
3
3
  length?: BlobSize;
4
4
  comment?: string;
5
5
  }
6
- export declare const TypeIsBase64ToSwagger: (options?: (TypeIsBase64Option & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
7
- export declare const TypeIsBase64ToSequelize: (options?: (TypeIsBase64Option & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
8
- declare const TypeIsBase64: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsBase64Option)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
6
+ export declare const TypeIsBase64ToSwagger: (options?: (TypeIsBase64Option & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
7
+ export declare const TypeIsBase64ToSequelize: (options?: (TypeIsBase64Option & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
8
+ declare const TypeIsBase64: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsBase64Option)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
9
9
  export default TypeIsBase64;
10
10
  //# sourceMappingURL=base64.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../src/types/base64.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,iBAAiB,CAAC;AAKtD,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,2MAI/B,CAAC;AAEJ,eAAO,MAAM,uBAAuB,qPAIjC,CAAC;AAEJ,QAAA,MAAM,YAAY,6SAIf,CAAC;AAEJ,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../src/types/base64.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,WAAW,CAAC;AAKhD,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,+LAI/B,CAAC;AAEJ,eAAO,MAAM,uBAAuB,6NAIjC,CAAC;AAEJ,QAAA,MAAM,YAAY,iSAIf,CAAC;AAEJ,eAAe,YAAY,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsBase64ToSequelize = exports.TypeIsBase64ToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -10,7 +10,7 @@ exports.TypeIsBase64ToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((op
10
10
  format: 'byte',
11
11
  description: options === null || options === void 0 ? void 0 : options.comment,
12
12
  }));
13
- exports.TypeIsBase64ToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.BLOB(options === null || options === void 0 ? void 0 : options.length), comment: options === null || options === void 0 ? void 0 : options.comment })));
13
+ exports.TypeIsBase64ToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.BLOB(options === null || options === void 0 ? void 0 : options.length), comment: options === null || options === void 0 ? void 0 : options.comment })));
14
14
  const TypeIsBase64 = (0, typeGenerator_1.typeGenerator)((options) => ({
15
15
  __name: 'base64',
16
16
  toSwagger: () => (0, exports.TypeIsBase64ToSwagger)(options),
@@ -1 +1 @@
1
- {"version":3,"file":"base64.js","sourceRoot":"","sources":["../../src/types/base64.ts"],"names":[],"mappings":";;;AAAA,2CAAsD;AACtD,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D;AAO9C,QAAA,qBAAqB,GAAG,IAAA,uCAAkB,EAAqB,CAAC,OAA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AE,MAAM,CAAC,EACrC,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEJ,MAAM,YAAY,GAAG,IAAA,6BAAa,EAAqB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACnE,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,6BAAqB,EAAC,OAAO,CAAC;IAC/C,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,+BAAuB,EAAC,OAAO,CAAC;CACpD,CAAC,CAAC,CAAC;AAEJ,kBAAe,YAAY,CAAC"}
@@ -1,10 +1,10 @@
1
- import { BlobSize } from 'sequelize/types';
1
+ import { BlobSize } from 'sequelize';
2
2
  export interface TypeIsBinaryOption {
3
3
  length?: BlobSize;
4
4
  comment?: string;
5
5
  }
6
- export declare const TypeIsBinaryToSwagger: (options?: (TypeIsBinaryOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
7
- export declare const TypeIsBinaryToSequelize: (options?: (TypeIsBinaryOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
8
- declare const TypeIsBinary: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsBinaryOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
6
+ export declare const TypeIsBinaryToSwagger: (options?: (TypeIsBinaryOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
7
+ export declare const TypeIsBinaryToSequelize: (options?: (TypeIsBinaryOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
8
+ declare const TypeIsBinary: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsBinaryOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
9
9
  export default TypeIsBinary;
10
10
  //# sourceMappingURL=binary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../src/types/binary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,iBAAiB,CAAC;AAKtD,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,2MAI/B,CAAC;AAEJ,eAAO,MAAM,uBAAuB,qPAIjC,CAAC;AAEJ,QAAA,MAAM,YAAY,6SAIf,CAAC;AAEJ,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../src/types/binary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,WAAW,CAAC;AAKhD,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,+LAI/B,CAAC;AAEJ,eAAO,MAAM,uBAAuB,6NAIjC,CAAC;AAEJ,QAAA,MAAM,YAAY,iSAIf,CAAC;AAEJ,eAAe,YAAY,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsBinaryToSequelize = exports.TypeIsBinaryToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -10,7 +10,7 @@ exports.TypeIsBinaryToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((op
10
10
  format: 'binary',
11
11
  description: options === null || options === void 0 ? void 0 : options.comment,
12
12
  }));
13
- exports.TypeIsBinaryToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.BLOB(options === null || options === void 0 ? void 0 : options.length), comment: options === null || options === void 0 ? void 0 : options.comment })));
13
+ exports.TypeIsBinaryToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.BLOB(options === null || options === void 0 ? void 0 : options.length), comment: options === null || options === void 0 ? void 0 : options.comment })));
14
14
  const TypeIsBinary = (0, typeGenerator_1.typeGenerator)((options) => ({
15
15
  __name: 'binary',
16
16
  toSwagger: () => (0, exports.TypeIsBinaryToSwagger)(options),
@@ -1 +1 @@
1
- {"version":3,"file":"binary.js","sourceRoot":"","sources":["../../src/types/binary.ts"],"names":[],"mappings":";;;AAAA,2CAAsD;AACtD,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D;AAO9C,QAAA,qBAAqB,GAAG,IAAA,uCAAkB,EAAqB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACxF,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,uBAAuB,GAAG,IAAA,2CAAoB,EAAqB,CAAC,OAAO,EAAE,EAAE,CAAC,iCACxF,OAAO,KACV,IAAI,EAAE,iBAAS,CAAC,IAAI,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,CAAC,EACrC,OAAO,EAAE,O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CAAC;AAEJ,kBAAe,YAAY,CAAC"}
@@ -1,9 +1,9 @@
1
1
  export interface TypeIsBooleanOption {
2
2
  comment?: string;
3
3
  }
4
- export declare const TypeIsBooleanToSwagger: (options?: (TypeIsBooleanOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
5
- export declare const TypeIsBooleanToSequelize: (options?: (TypeIsBooleanOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
4
+ export declare const TypeIsBooleanToSwagger: (options?: (TypeIsBooleanOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
5
+ export declare const TypeIsBooleanToSequelize: (options?: (TypeIsBooleanOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
6
6
  export declare const TypeIsBooleanFixValue: (o: any) => any;
7
- declare const TypeIsBoolean: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsBooleanOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
7
+ declare const TypeIsBoolean: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsBooleanOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
8
8
  export default TypeIsBoolean;
9
9
  //# sourceMappingURL=boolean.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../src/types/boolean.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,4MAGhC,CAAC;AAEJ,eAAO,MAAM,wBAAwB,sPAIlC,CAAC;AAEJ,eAAO,MAAM,qBAAqB,MAAO,GAAG,QAI3C,CAAC;AAEF,QAAA,MAAM,aAAa,8SAKhB,CAAC;AAEJ,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../src/types/boolean.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,gMAGhC,CAAC;AAEJ,eAAO,MAAM,wBAAwB,8NAIlC,CAAC;AAEJ,eAAO,MAAM,qBAAqB,MAAO,GAAG,QAI3C,CAAC;AAEF,QAAA,MAAM,aAAa,kSAKhB,CAAC;AAEJ,eAAe,aAAa,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsBooleanFixValue = exports.TypeIsBooleanToSequelize = exports.TypeIsBooleanToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -9,7 +9,7 @@ exports.TypeIsBooleanToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((o
9
9
  type: 'boolean',
10
10
  description: options === null || options === void 0 ? void 0 : options.comment,
11
11
  }));
12
- exports.TypeIsBooleanToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.BOOLEAN, comment: options === null || options === void 0 ? void 0 : options.comment })));
12
+ exports.TypeIsBooleanToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.BOOLEAN, comment: options === null || options === void 0 ? void 0 : options.comment })));
13
13
  const TypeIsBooleanFixValue = (o) => {
14
14
  if (o === undefined || o === null)
15
15
  return o;
@@ -1 +1 @@
1
- {"version":3,"file":"boolean.js","sourceRoot":"","sources":["../../src/types/boolean.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D;AAM9C,QAAA,sBAAsB,GAAG,IAAA,uCAAkB,EAAsB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC1F,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,wBAAwB,GAAG,IAAA,2CAAoB,EAAsB,CAAC,OAAO,EAAE,EAAE,CAAC,iCAC1F,OAAO,KACV,IAAI,EAAE,iBAAS,CAAC,OAAO,EACvB,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEG,MAAM,qBAAqB,GAAG,CAAC,CAAM,EAAE,EAAE;IAC9C,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI;QAAE,OAAO,CAAC,CAAC;IAC5C,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5E,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC;AAJW,QAAA,qBAAqB,yBAIhC;AAEF,MAAM,aAAa,GAAG,IAAA,6BAAa,EAAsB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACrE,MAAM,EAAE,SAAS;IACjB,S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EAAE,CAAC,CAAC;IACrE,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,8BAAsB,EAAC,OAAO,CAAC;IAChD,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,gCAAwB,EAAC,OAAO,CAAC;IACpD,QAAQ,EAAE,6BAAqB;CAChC,CAAC,CAAC,CAAC;AAEJ,kBAAe,aAAa,CAAC"}
@@ -1,8 +1,8 @@
1
1
  export interface TypeIsDateOnlyOption {
2
2
  comment?: string;
3
3
  }
4
- export declare const TypeIsDateOnlyToSwagger: (options?: (TypeIsDateOnlyOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
5
- export declare const TypeIsDateOnlyToSequelize: (options?: (TypeIsDateOnlyOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
6
- declare const TypeIsDateOnly: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsDateOnlyOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
4
+ export declare const TypeIsDateOnlyToSwagger: (options?: (TypeIsDateOnlyOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
5
+ export declare const TypeIsDateOnlyToSequelize: (options?: (TypeIsDateOnlyOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
6
+ declare const TypeIsDateOnly: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsDateOnlyOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
7
7
  export default TypeIsDateOnly;
8
8
  //# sourceMappingURL=dateonly.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dateonly.d.ts","sourceRoot":"","sources":["../../src/types/dateonly.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,uBAAuB,6MAIjC,CAAC;AAEJ,eAAO,MAAM,yBAAyB,uPAInC,CAAC;AAEJ,QAAA,MAAM,cAAc,+SAIjB,CAAC;AAEJ,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"dateonly.d.ts","sourceRoot":"","sources":["../../src/types/dateonly.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,uBAAuB,iMAIjC,CAAC;AAEJ,eAAO,MAAM,yBAAyB,+NAInC,CAAC;AAEJ,QAAA,MAAM,cAAc,mSAIjB,CAAC;AAEJ,eAAe,cAAc,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsDateOnlyToSequelize = exports.TypeIsDateOnlyToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -10,7 +10,7 @@ exports.TypeIsDateOnlyToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((
10
10
  format: 'date',
11
11
  description: options === null || options === void 0 ? void 0 : options.comment,
12
12
  }));
13
- exports.TypeIsDateOnlyToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.DATEONLY(), comment: options === null || options === void 0 ? void 0 : options.comment })));
13
+ exports.TypeIsDateOnlyToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.DATEONLY(), comment: options === null || options === void 0 ? void 0 : options.comment })));
14
14
  const TypeIsDateOnly = (0, typeGenerator_1.typeGenerator)((options) => ({
15
15
  __name: 'date',
16
16
  toSwagger: () => (0, exports.TypeIsDateOnlyToSwagger)(options),
@@ -1 +1 @@
1
- {"version":3,"file":"dateonly.js","sourceRoot":"","sources":["../../src/types/dateonly.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D;AAM9C,QAAA,uBAAuB,GAAG,IAAA,uCAAkB,EAAuB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC5F,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,MAAM;IACd,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,yBAAyB,GAAG,IAAA,2CAAoB,EAAuB,CAAC,OAAO,EAAE,EAAE,CAAC,iCAC5F,OAAO,KACV,IAAI,EAAE,iBAAS,CAAC,QAAQ,EAAE,EAC1B,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,IAAA,6BAAa,EAAuB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACvE,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,+BAAuB,EAAC,OAAO,CAAC;IACjD,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,iCAAyB,EAAC,OAAO,CAAC;CACtD,CAAC,CAAC,CAAC;AAEJ,kBAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"dateonly.js","sourceRoot":"","sources":["../../src/types/dateonly.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AACtC,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D;AAM9C,QAAA,uBAAuB,GAAG,IAAA,uCAAkB,EAAuB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC5F,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,MAAM;IACd,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,yBAAyB,GAAG,IAAA,2CAAoB,EAAuB,CAAC,OAAO,EAAE,EAAE,CAAC,iCAC5F,OAAO,KACV,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE,EAC1B,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,IAAA,6BAAa,EAAuB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACvE,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,+BAAuB,EAAC,OAAO,CAAC;IACjD,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,iCAAyB,EAAC,OAAO,CAAC;CACtD,CAAC,CAAC,CAAC;AAEJ,kBAAe,cAAc,CAAC"}
@@ -1,8 +1,8 @@
1
1
  export interface TypeIsDateTimeOption {
2
2
  comment?: string;
3
3
  }
4
- export declare const TypeIsDateTimeToSwagger: (options?: (TypeIsDateTimeOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
5
- export declare const TypeIsDateTimeToSequelize: (options?: (TypeIsDateTimeOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
6
- declare const TypeIsDateTime: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsDateTimeOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
4
+ export declare const TypeIsDateTimeToSwagger: (options?: (TypeIsDateTimeOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
5
+ export declare const TypeIsDateTimeToSequelize: (options?: (TypeIsDateTimeOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
6
+ declare const TypeIsDateTime: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsDateTimeOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
7
7
  export default TypeIsDateTime;
8
8
  //# sourceMappingURL=datetime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../src/types/datetime.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,uBAAuB,6MAIjC,CAAC;AAEJ,eAAO,MAAM,yBAAyB,uPAInC,CAAC;AAEJ,QAAA,MAAM,cAAc,+SAIjB,CAAC;AAEJ,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../src/types/datetime.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,uBAAuB,iMAIjC,CAAC;AAEJ,eAAO,MAAM,yBAAyB,+NAInC,CAAC;AAEJ,QAAA,MAAM,cAAc,mSAIjB,CAAC;AAEJ,eAAe,cAAc,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsDateTimeToSequelize = exports.TypeIsDateTimeToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -10,7 +10,7 @@ exports.TypeIsDateTimeToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((
10
10
  format: 'date-time',
11
11
  description: options === null || options === void 0 ? void 0 : options.comment,
12
12
  }));
13
- exports.TypeIsDateTimeToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.DATE(), comment: options === null || options === void 0 ? void 0 : options.comment })));
13
+ exports.TypeIsDateTimeToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.DATE(), comment: options === null || options === void 0 ? void 0 : options.comment })));
14
14
  const TypeIsDateTime = (0, typeGenerator_1.typeGenerator)((options) => ({
15
15
  __name: 'datetime',
16
16
  toSwagger: () => (0, exports.TypeIsDateTimeToSwagger)(options),
@@ -1 +1 @@
1
- {"version":3,"file":"datetime.js","sourceRoot":"","sources":["../../src/types/datetime.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D;AAM9C,QAAA,uBAAuB,GAAG,IAAA,uCAAkB,EAAuB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC5F,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,WAAW;IACnB,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,yBAAyB,GAAG,IAAA,2CAAoB,EAAuB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CAAC,IAAA,iCAAyB,EAAC,OAAO,CAAC;CACtD,CAAC,CAAC,CAAC;AAEJ,kBAAe,cAAc,CAAC"}
@@ -3,9 +3,9 @@ export interface TypeIsDecemalOption {
3
3
  scale: number;
4
4
  comment?: string;
5
5
  }
6
- export declare const TypeIsDecemalToSwagger: (options?: (TypeIsDecemalOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
7
- export declare const TypeIsDecemalToSequelize: (options?: (TypeIsDecemalOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
6
+ export declare const TypeIsDecemalToSwagger: (options?: (TypeIsDecemalOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
7
+ export declare const TypeIsDecemalToSequelize: (options?: (TypeIsDecemalOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
8
8
  export declare const TypeIsDecemalFixValue: (o: any) => any;
9
- declare const TypeIsDecemal: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsDecemalOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
9
+ declare const TypeIsDecemal: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsDecemalOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
10
10
  export default TypeIsDecemal;
11
11
  //# sourceMappingURL=decemal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"decemal.d.ts","sourceRoot":"","sources":["../../src/types/decemal.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,4MAIhC,CAAC;AAEJ,eAAO,MAAM,wBAAwB,sPAOlC,CAAC;AAEJ,eAAO,MAAM,qBAAqB,MAAO,GAAG,QAG3C,CAAC;AAEF,QAAA,MAAM,aAAa,8SAKhB,CAAC;AAEJ,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"decemal.d.ts","sourceRoot":"","sources":["../../src/types/decemal.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,gMAIhC,CAAC;AAEJ,eAAO,MAAM,wBAAwB,8NAOlC,CAAC;AAEJ,eAAO,MAAM,qBAAqB,MAAO,GAAG,QAG3C,CAAC;AAEF,QAAA,MAAM,aAAa,kSAKhB,CAAC;AAEJ,eAAe,aAAa,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsDecemalFixValue = exports.TypeIsDecemalToSequelize = exports.TypeIsDecemalToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -10,7 +10,7 @@ exports.TypeIsDecemalToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((o
10
10
  format: 'float',
11
11
  description: options === null || options === void 0 ? void 0 : options.comment,
12
12
  }));
13
- exports.TypeIsDecemalToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.DECIMAL({
13
+ exports.TypeIsDecemalToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.DECIMAL({
14
14
  precision: options === null || options === void 0 ? void 0 : options.precision,
15
15
  scale: options === null || options === void 0 ? void 0 : options.scale,
16
16
  }), comment: options === null || options === void 0 ? void 0 : options.comment })));
@@ -1 +1 @@
1
- {"version":3,"file":"decemal.js","sourceRoot":"","sources":["../../src/types/decemal.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D;AAQ9C,QAAA,sBAAsB,GAAG,IAAA,uCAAkB,EAAsB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC1F,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,OAAO;IACf,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,wBAAwB,GAAG,IAAA,2CAAoB,EAAsB,CAAC,OAAO,EAAE,EAAE,CAAC,iCAC1F,OAAO,KACV,IAAI,EAAE,iBAAS,CAAC,OAAO,CAAC;QACtB,SAAS,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS;QAC7B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;KACtB,CAAC,EACF,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEG,MAAM,qBAAqB,GAAG,CAAC,CAAM,EAAE,EAAE;IAC9C,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI;QAAE,OAAO,CAAC,CAAC;IAC5C,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/B,CAAC,CA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CAAC,CAAC;AAC/B,CAAC,CAAC;AAHW,QAAA,qBAAqB,yBAGhC;AAEF,MAAM,aAAa,GAAG,IAAA,6BAAa,EAAsB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACrE,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,8BAAsB,EAAC,OAAO,CAAC;IAChD,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,gCAAwB,EAAC,OAAO,CAAC;IACpD,QAAQ,EAAE,6BAAqB;CAChC,CAAC,CAAC,CAAC;AAEJ,kBAAe,aAAa,CAAC"}
@@ -3,9 +3,9 @@ export interface TypeIsDoubleOption {
3
3
  decimals?: number;
4
4
  comment?: string;
5
5
  }
6
- export declare const TypeIsDoubleToSwagger: (options?: (TypeIsDoubleOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
7
- export declare const TypeIsDoubleToSequelize: (options?: (TypeIsDoubleOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
6
+ export declare const TypeIsDoubleToSwagger: (options?: (TypeIsDoubleOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
7
+ export declare const TypeIsDoubleToSequelize: (options?: (TypeIsDoubleOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
8
8
  export declare const TypeIsDoubleFixValue: (o: any) => any;
9
- declare const TypeIsDouble: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsDoubleOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
9
+ declare const TypeIsDouble: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsDoubleOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
10
10
  export default TypeIsDouble;
11
11
  //# sourceMappingURL=double.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"double.d.ts","sourceRoot":"","sources":["../../src/types/double.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,2MAI/B,CAAC;AAEJ,eAAO,MAAM,uBAAuB,qPAIjC,CAAC;AAEJ,eAAO,MAAM,oBAAoB,MAAO,GAAG,QAG1C,CAAC;AAEF,QAAA,MAAM,YAAY,6SAKf,CAAC;AAEJ,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"double.d.ts","sourceRoot":"","sources":["../../src/types/double.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,+LAI/B,CAAC;AAEJ,eAAO,MAAM,uBAAuB,6NAIjC,CAAC;AAEJ,eAAO,MAAM,oBAAoB,MAAO,GAAG,QAG1C,CAAC;AAEF,QAAA,MAAM,YAAY,iSAKf,CAAC;AAEJ,eAAe,YAAY,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsDoubleFixValue = exports.TypeIsDoubleToSequelize = exports.TypeIsDoubleToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -10,7 +10,7 @@ exports.TypeIsDoubleToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((op
10
10
  format: 'double',
11
11
  description: options === null || options === void 0 ? void 0 : options.comment,
12
12
  }));
13
- exports.TypeIsDoubleToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.DOUBLE(options === null || options === void 0 ? void 0 : options.length, options === null || options === void 0 ? void 0 : options.decimals), comment: options === null || options === void 0 ? void 0 : options.comment })));
13
+ exports.TypeIsDoubleToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.DOUBLE(options === null || options === void 0 ? void 0 : options.length, options === null || options === void 0 ? void 0 : options.decimals), comment: options === null || options === void 0 ? void 0 : options.comment })));
14
14
  const TypeIsDoubleFixValue = (o) => {
15
15
  if (o === undefined || o === null)
16
16
  return o;
@@ -1 +1 @@
1
- {"version":3,"file":"double.js","sourceRoot":"","sources":["../../src/types/double.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D;AAQ9C,QAAA,qBAAqB,GAAG,IAAA,uCAAkB,EAAqB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACxF,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,uBAAuB,GAAG,IAAA,2CAAoB,EAAqB,CAAC,OAAO,EAAE,EAAE,CAAC,iCACxF,OAAO,KACV,IAAI,EAAE,iBAAS,CAAC,MAAM,CAAC,OAA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P,OAAO,uBAAP,OAAO,CAAE,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAC,EAC1D,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEG,MAAM,oBAAoB,GAAG,CAAC,CAAM,EAAE,EAAE;IAC7C,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI;QAAE,OAAO,CAAC,CAAC;IAC5C,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/B,CAAC,CAAC;AAHW,QAAA,oBAAoB,wBAG/B;AAEF,MAAM,YAAY,GAAG,IAAA,6BAAa,EAAqB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACnE,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,6BAAqB,EAAC,OAAO,CAAC;IAC/C,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,+BAAuB,EAAC,OAAO,CAAC;IACnD,QAAQ,EAAE,4BAAoB;CAC/B,CAAC,CAAC,CAAC;AAEJ,kBAAe,YAAY,CAAC"}
@@ -2,8 +2,8 @@ export interface TypeIsEnumOption {
2
2
  values: string[];
3
3
  comment?: string;
4
4
  }
5
- export declare const TypeIsEnumToSwagger: (options?: (TypeIsEnumOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
6
- export declare const TypeIsEnumToSequelize: (options?: (TypeIsEnumOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
7
- declare const TypeIsEnum: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsEnumOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
5
+ export declare const TypeIsEnumToSwagger: (options?: (TypeIsEnumOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
6
+ export declare const TypeIsEnumToSequelize: (options?: (TypeIsEnumOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
7
+ declare const TypeIsEnum: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsEnumOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
8
8
  export default TypeIsEnum;
9
9
  //# sourceMappingURL=enum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../src/types/enum.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,yMAI7B,CAAC;AAEJ,eAAO,MAAM,qBAAqB,mPAI/B,CAAC;AAEJ,QAAA,MAAM,UAAU,2SAQb,CAAC;AAEJ,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../src/types/enum.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,6LAI7B,CAAC;AAEJ,eAAO,MAAM,qBAAqB,2NAI/B,CAAC;AAEJ,QAAA,MAAM,UAAU,+RAQb,CAAC;AAEJ,eAAe,UAAU,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsEnumToSequelize = exports.TypeIsEnumToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -10,7 +10,7 @@ exports.TypeIsEnumToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((opti
10
10
  enum: options === null || options === void 0 ? void 0 : options.values,
11
11
  description: options === null || options === void 0 ? void 0 : options.comment,
12
12
  }));
13
- exports.TypeIsEnumToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.ENUM({ values: options.values }), comment: options === null || options === void 0 ? void 0 : options.comment })));
13
+ exports.TypeIsEnumToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.ENUM({ values: options.values }), comment: options === null || options === void 0 ? void 0 : options.comment })));
14
14
  const TypeIsEnum = (0, typeGenerator_1.typeGenerator)((options) => ({
15
15
  __name: 'enum',
16
16
  toSwagger: () => (0, exports.TypeIsEnumToSwagger)(options),
@@ -1 +1 @@
1
- {"version":3,"file":"enum.js","sourceRoot":"","sources":["../../src/types/enum.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D;AAO9C,QAAA,mBAAmB,GAAG,IAAA,uCAAkB,EAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACpF,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;IACrB,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,qBAAq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;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,qBAAqB,GAAG,IAAA,2CAAoB,EAAC,CAAC,OAA0B,EAAE,EAAE,CAAC,iCACrF,OAAO,KACV,IAAI,EAAE,qBAAS,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAQ,CAAC,MAAM,EAAE,CAAC,EACjD,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEJ,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC/D,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,2BAAmB,EAAC,OAAO,CAAC;IAC7C,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,6BAAqB,EAAC,OAAO,CAAC;IACjD,QAAQ,EAAE,CAAC,CAAM,EAAE,EAAE;;QACnB,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI;YAAE,OAAO,CAAC,CAAC;QAC5C,OAAO,CAAA,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,0CAAE,QAAQ,mDAAG,MAAM,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACxE,CAAC;CACF,CAAC,CAAC,CAAC;AAEJ,kBAAe,UAAU,CAAC"}
@@ -3,9 +3,9 @@ export interface TypeIsFloatOption {
3
3
  decimals?: number;
4
4
  comment?: string;
5
5
  }
6
- export declare const TypeIsFloatToSwagger: (options?: (TypeIsFloatOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
7
- export declare const TypeIsFloatToSequelize: (options?: (TypeIsFloatOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
6
+ export declare const TypeIsFloatToSwagger: (options?: (TypeIsFloatOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
7
+ export declare const TypeIsFloatToSequelize: (options?: (TypeIsFloatOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
8
8
  export declare const TypeIsFloatFixValue: (o: any) => any;
9
- declare const TypeIsFloat: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsFloatOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
9
+ declare const TypeIsFloat: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsFloatOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
10
10
  export default TypeIsFloat;
11
11
  //# sourceMappingURL=float.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"float.d.ts","sourceRoot":"","sources":["../../src/types/float.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,oBAAoB,0MAI9B,CAAC;AAEJ,eAAO,MAAM,sBAAsB,oPAIhC,CAAC;AAEJ,eAAO,MAAM,mBAAmB,MAAO,GAAG,QAGzC,CAAC;AAEF,QAAA,MAAM,WAAW,4SAKd,CAAC;AAEJ,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"float.d.ts","sourceRoot":"","sources":["../../src/types/float.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,oBAAoB,8LAI9B,CAAC;AAEJ,eAAO,MAAM,sBAAsB,4NAIhC,CAAC;AAEJ,eAAO,MAAM,mBAAmB,MAAO,GAAG,QAGzC,CAAC;AAEF,QAAA,MAAM,WAAW,gSAKd,CAAC;AAEJ,eAAe,WAAW,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsFloatFixValue = exports.TypeIsFloatToSequelize = exports.TypeIsFloatToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -10,7 +10,7 @@ exports.TypeIsFloatToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((opt
10
10
  format: 'float',
11
11
  description: options === null || options === void 0 ? void 0 : options.comment,
12
12
  }));
13
- exports.TypeIsFloatToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.FLOAT(options === null || options === void 0 ? void 0 : options.length, options === null || options === void 0 ? void 0 : options.decimals), comment: options === null || options === void 0 ? void 0 : options.comment })));
13
+ exports.TypeIsFloatToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.FLOAT(options === null || options === void 0 ? void 0 : options.length, options === null || options === void 0 ? void 0 : options.decimals), comment: options === null || options === void 0 ? void 0 : options.comment })));
14
14
  const TypeIsFloatFixValue = (o) => {
15
15
  if (o === undefined || o === null)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@@ -1,3 +1,3 @@
1
- import { ModelAttributeColumnOptions } from 'sequelize/types';
2
- export declare const toSequelizeGenerator: <T>(generator: (options?: (T & ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => ModelAttributeColumnOptions) => (options?: (T & ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => ModelAttributeColumnOptions;
1
+ import { ModelAttributeColumnOptions } from 'sequelize';
2
+ export declare const toSequelizeGenerator: <T>(generator: (options?: (T & ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => ModelAttributeColumnOptions) => (options?: (T & ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => ModelAttributeColumnOptions;
3
3
  //# sourceMappingURL=toSequelizeGenerator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toSequelizeGenerator.d.ts","sourceRoot":"","sources":["../../../src/types/generators/toSequelizeGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAE9D,eAAO,MAAM,oBAAoB,yHAC2B,2BAA2B,6GAA3B,2BAC9C,CAAC"}
1
+ {"version":3,"file":"toSequelizeGenerator.d.ts","sourceRoot":"","sources":["../../../src/types/generators/toSequelizeGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAExD,eAAO,MAAM,oBAAoB,mHAC2B,2BAA2B,uGAA3B,2BAC9C,CAAC"}
@@ -1,9 +1,9 @@
1
- import { ModelAttributeColumnOptions } from 'sequelize/types';
1
+ import { ModelAttributeColumnOptions } from 'sequelize';
2
2
  export interface ISwaggerData {
3
3
  type: string;
4
4
  format?: string;
5
5
  description?: string;
6
6
  items?: any;
7
7
  }
8
- export declare const toSwaggerGenerator: <T>(generator: (options?: (T & ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => ISwaggerData) => (options?: (T & ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => ISwaggerData;
8
+ export declare const toSwaggerGenerator: <T>(generator: (options?: (T & ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => ISwaggerData) => (options?: (T & ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => ISwaggerData;
9
9
  //# sourceMappingURL=toSwaggerGenerator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toSwaggerGenerator.d.ts","sourceRoot":"","sources":["../../../src/types/generators/toSwaggerGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAE9D,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,eAAO,MAAM,kBAAkB,yHAAiE,YAAY,6GAAZ,YACrF,CAAC"}
1
+ {"version":3,"file":"toSwaggerGenerator.d.ts","sourceRoot":"","sources":["../../../src/types/generators/toSwaggerGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,eAAO,MAAM,kBAAkB,mHAAiE,YAAY,uGAAZ,YACrF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ModelAttributeColumnOptions } from 'sequelize/types';
1
+ import { ModelAttributeColumnOptions } from 'sequelize';
2
2
  export declare type TypeIsData = {
3
3
  __name: string;
4
4
  toSwagger?: (...args: any[]) => any;
@@ -11,5 +11,5 @@ export declare const getTypesData: (target: any) => {
11
11
  export declare const saveNewTypesData: (attributes: any, target: any) => void;
12
12
  export declare const saveTypesData: (target: any, propertyName: any, value: any) => void;
13
13
  export declare type TypeGeneratorPropsGenerator<T> = T & ModelAttributeColumnOptions;
14
- export declare const typeGenerator: <T>(data: (...args: TypeGeneratorPropsGenerator<T>[]) => TypeIsData) => (...options: (ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | T)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & TypeIsData;
14
+ export declare const typeGenerator: <T>(data: (...args: TypeGeneratorPropsGenerator<T>[]) => TypeIsData) => (...options: (ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | T)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & TypeIsData;
15
15
  //# sourceMappingURL=typeGenerator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeGenerator.d.ts","sourceRoot":"","sources":["../../../src/types/generators/typeGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAE9D,oBAAY,UAAU,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACpC,WAAW,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACtC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;CAC5B,CAAC;AAIF,eAAO,MAAM,YAAY,WAAY,GAAG;;CAIvC,CAAC;AAEF,eAAO,MAAM,gBAAgB,eAAgB,GAAG,UAAU,GAAG,SAE5D,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,GAAG,gBAAgB,GAAG,SAAS,GAAG,SAMvE,CAAC;AAEF,oBAAY,2BAA2B,CAAC,CAAC,IAAI,CAAC,GAAG,2BAA2B,CAAC;AAE7E,eAAO,MAAM,aAAa,2DACiC,UAAU,+GAEhD,GAAG,6FAAmE,IAAI,GAAG,UAa/F,CAAC"}
1
+ {"version":3,"file":"typeGenerator.d.ts","sourceRoot":"","sources":["../../../src/types/generators/typeGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAExD,oBAAY,UAAU,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACpC,WAAW,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACtC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;CAC5B,CAAC;AAIF,eAAO,MAAM,YAAY,WAAY,GAAG;;CAIvC,CAAC;AAEF,eAAO,MAAM,gBAAgB,eAAgB,GAAG,UAAU,GAAG,SAE5D,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,GAAG,gBAAgB,GAAG,SAAS,GAAG,SAMvE,CAAC;AAEF,oBAAY,2BAA2B,CAAC,CAAC,IAAI,CAAC,GAAG,2BAA2B,CAAC;AAE7E,eAAO,MAAM,aAAa,2DACiC,UAAU,yGAEhD,GAAG,6FAAmE,IAAI,GAAG,UAa/F,CAAC"}
@@ -4,9 +4,9 @@ export interface TypeIsIntOption {
4
4
  scale?: number;
5
5
  comment?: string;
6
6
  }
7
- export declare const TypeIsIntToSwagger: (options?: (TypeIsIntOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
8
- export declare const TypeIsIntToSequelize: (options?: (TypeIsIntOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
7
+ export declare const TypeIsIntToSwagger: (options?: (TypeIsIntOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
8
+ export declare const TypeIsIntToSequelize: (options?: (TypeIsIntOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
9
9
  export declare const TypeIsIntFixValue: (o: any) => any;
10
- declare const TypeIsInt: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsIntOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
10
+ declare const TypeIsInt: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsIntOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
11
11
  export default TypeIsInt;
12
12
  //# sourceMappingURL=int.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"int.d.ts","sourceRoot":"","sources":["../../src/types/int.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,kBAAkB,wMAI5B,CAAC;AAEJ,eAAO,MAAM,oBAAoB,kPAI9B,CAAC;AAEJ,eAAO,MAAM,iBAAiB,MAAO,GAAG,QAGvC,CAAC;AAEF,QAAA,MAAM,SAAS,0SAKZ,CAAC;AAEJ,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"int.d.ts","sourceRoot":"","sources":["../../src/types/int.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,kBAAkB,4LAI5B,CAAC;AAEJ,eAAO,MAAM,oBAAoB,0NAI9B,CAAC;AAEJ,eAAO,MAAM,iBAAiB,MAAO,GAAG,QAGvC,CAAC;AAEF,QAAA,MAAM,SAAS,8RAKZ,CAAC;AAEJ,eAAe,SAAS,CAAC"}
package/dist/types/int.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsIntFixValue = exports.TypeIsIntToSequelize = exports.TypeIsIntToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -10,7 +10,7 @@ exports.TypeIsIntToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((optio
10
10
  format: 'int32',
11
11
  description: options === null || options === void 0 ? void 0 : options.comment,
12
12
  }));
13
- exports.TypeIsIntToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.INTEGER(options), comment: options === null || options === void 0 ? void 0 : options.comment })));
13
+ exports.TypeIsIntToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.INTEGER(options), comment: options === null || options === void 0 ? void 0 : options.comment })));
14
14
  const TypeIsIntFixValue = (o) => {
15
15
  if (o === undefined || o === null)
16
16
  return o;
@@ -1 +1 @@
1
- {"version":3,"file":"int.js","sourceRoot":"","sources":["../../src/types/int.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,4EAAyE;AACzE,wEAAqE;AACrE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CAAC;IAClF,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,OAAO;IACf,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,oBAAoB,GAAG,IAAA,2CAAoB,EAAkB,CAAC,OAAO,EAAE,EAAE,CAAC,iCAClF,OAAO,KACV,IAAI,EAAE,qBAAS,CAAC,OAAO,CAAC,OAAO,CAAC,EAChC,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEG,MAAM,iBAAiB,GAAG,CAAC,CAAM,EAAE,EAAE;IAC1C,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI;QAAE,OAAO,CAAC,CAAC;IAC5C,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACjC,CAAC,CAAC;AAHW,QAAA,iBAAiB,qBAG5B;AAEF,MAAM,SAAS,GAAG,IAAA,6BAAa,EAAkB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC7D,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,0BAAkB,EAAC,OAAO,CAAC;IAC5C,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,4BAAoB,EAAC,OAAO,CAAC;IAChD,QAAQ,EAAE,yBAAiB;CAC5B,CAAC,CAAC,CAAC;AAEJ,kBAAe,SAAS,CAAC"}
@@ -1,9 +1,9 @@
1
1
  export interface TypeIsJsonOption {
2
2
  comment?: string;
3
3
  }
4
- export declare const TypeIsJsonToSwagger: (options?: (TypeIsJsonOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
5
- export declare const TypeIsJsonToSequelize: (options?: (TypeIsJsonOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
4
+ export declare const TypeIsJsonToSwagger: (options?: (TypeIsJsonOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
5
+ export declare const TypeIsJsonToSequelize: (options?: (TypeIsJsonOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
6
6
  export declare const TypeIsJsonFixValue: (o: any) => any;
7
- declare const TypeIsJson: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsJsonOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
7
+ declare const TypeIsJson: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsJsonOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
8
8
  export default TypeIsJson;
9
9
  //# sourceMappingURL=json.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/types/json.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,yMAG7B,CAAC;AAEJ,eAAO,MAAM,qBAAqB,mPAI/B,CAAC;AAEJ,eAAO,MAAM,kBAAkB,MAAO,GAAG,QAOxC,CAAC;AAEF,QAAA,MAAM,UAAU,2SAKb,CAAC;AAEJ,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/types/json.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,6LAG7B,CAAC;AAEJ,eAAO,MAAM,qBAAqB,2NAI/B,CAAC;AAEJ,eAAO,MAAM,kBAAkB,MAAO,GAAG,QAOxC,CAAC;AAEF,QAAA,MAAM,UAAU,+RAKb,CAAC;AAEJ,eAAe,UAAU,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsJsonFixValue = exports.TypeIsJsonToSequelize = exports.TypeIsJsonToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -9,7 +9,7 @@ exports.TypeIsJsonToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((opti
9
9
  type: 'object',
10
10
  description: options === null || options === void 0 ? void 0 : options.comment,
11
11
  }));
12
- exports.TypeIsJsonToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.JSON, comment: options === null || options === void 0 ? void 0 : options.comment })));
12
+ exports.TypeIsJsonToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.JSON, comment: options === null || options === void 0 ? void 0 : options.comment })));
13
13
  const TypeIsJsonFixValue = (o) => {
14
14
  try {
15
15
  if (typeof o === 'string')
@@ -1 +1 @@
1
- {"version":3,"file":"json.js","sourceRoot":"","sources":["../../src/types/json.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D;AAM9C,QAAA,mBAAmB,GAAG,IAAA,uCAAkB,EAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACpF,IAAI,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AAC;AAES,QAAA,qBAAqB,GAAG,IAAA,2CAAoB,EAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,iCACpF,OAAO,KACV,IAAI,EAAE,qBAAS,CAAC,IAAI,EACpB,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEG,MAAM,kBAAkB,GAAG,CAAC,CAAM,EAAE,EAAE;IAC3C,IAAI;QACF,IAAI,OAAO,CAAC,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACxD,OAAO,CAAC,CAAC;KACV;IAAC,WAAM;QACN,OAAO,CAAC,CAAC;KACV;AACH,CAAC,CAAC;AAPW,QAAA,kBAAkB,sBAO7B;AAEF,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC/D,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,2BAAmB,EAAC,OAAO,CAAC;IAC7C,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,6BAAqB,EAAC,OAAO,CAAC;IACjD,QAAQ,EAAE,0BAAkB;CAC7B,CAAC,CAAC,CAAC;AAEJ,kBAAe,UAAU,CAAC"}
@@ -4,9 +4,9 @@ export interface TypeIsLongOption {
4
4
  scale?: number;
5
5
  comment?: string;
6
6
  }
7
- export declare const TypeIsLongToSwagger: (options?: (TypeIsLongOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
8
- export declare const TypeIsLongToSequelize: (options?: (TypeIsLongOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
7
+ export declare const TypeIsLongToSwagger: (options?: (TypeIsLongOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
8
+ export declare const TypeIsLongToSequelize: (options?: (TypeIsLongOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
9
9
  export declare const TypeIsLongFixValue: (o: any) => any;
10
- declare const TypeIsLong: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsLongOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
10
+ declare const TypeIsLong: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsLongOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
11
11
  export default TypeIsLong;
12
12
  //# sourceMappingURL=long.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"long.d.ts","sourceRoot":"","sources":["../../src/types/long.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,yMAI7B,CAAC;AAEJ,eAAO,MAAM,qBAAqB,mPAI/B,CAAC;AAEJ,eAAO,MAAM,kBAAkB,MAAO,GAAG,QAGxC,CAAC;AAEF,QAAA,MAAM,UAAU,2SAKb,CAAC;AAEJ,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"long.d.ts","sourceRoot":"","sources":["../../src/types/long.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,6LAI7B,CAAC;AAEJ,eAAO,MAAM,qBAAqB,2NAI/B,CAAC;AAEJ,eAAO,MAAM,kBAAkB,MAAO,GAAG,QAGxC,CAAC;AAEF,QAAA,MAAM,UAAU,+RAKb,CAAC;AAEJ,eAAe,UAAU,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsLongFixValue = exports.TypeIsLongToSequelize = exports.TypeIsLongToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -10,7 +10,7 @@ exports.TypeIsLongToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((opti
10
10
  format: 'int64',
11
11
  description: options === null || options === void 0 ? void 0 : options.comment,
12
12
  }));
13
- exports.TypeIsLongToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.INTEGER(options), comment: options === null || options === void 0 ? void 0 : options.comment })));
13
+ exports.TypeIsLongToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.INTEGER(options), comment: options === null || options === void 0 ? void 0 : options.comment })));
14
14
  const TypeIsLongFixValue = (o) => {
15
15
  if (o === undefined || o === null)
16
16
  return o;
@@ -1 +1 @@
1
- {"version":3,"file":"long.js","sourceRoot":"","sources":["../../src/types/long.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D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pF,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,OAAO;IACf,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,qBAAqB,GAAG,IAAA,2CAAoB,EAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,iCACpF,OAAO,KACV,IAAI,EAAE,qBAAS,CAAC,OAAO,CAAC,OAAO,CAAC,EAChC,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEG,MAAM,kBAAkB,GAAG,CAAC,CAAM,EAAE,EAAE;IAC3C,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI;QAAE,OAAO,CAAC,CAAC;IAC5C,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACjC,CAAC,CAAC;AAHW,QAAA,kBAAkB,sBAG7B;AAEF,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC/D,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,2BAAmB,EAAC,OAAO,CAAC;IAC7C,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,6BAAqB,EAAC,OAAO,CAAC;IACjD,QAAQ,EAAE,0BAAkB;CAC7B,CAAC,CAAC,CAAC;AAEJ,kBAAe,UAAU,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { TypeIsStringOption } from './string';
2
- export declare const TypeIsPasswordToSwagger: (options?: (TypeIsStringOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
3
- export declare const TypeIsPasswordToSequelize: (options?: (TypeIsStringOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
4
- declare const TypeIsPassword: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsStringOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
2
+ export declare const TypeIsPasswordToSwagger: (options?: (TypeIsStringOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
3
+ export declare const TypeIsPasswordToSequelize: (options?: (TypeIsStringOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
4
+ declare const TypeIsPassword: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsStringOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
5
5
  export default TypeIsPassword;
6
6
  //# sourceMappingURL=password.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../src/types/password.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,uBAAuB,2MAIjC,CAAC;AAEJ,eAAO,MAAM,yBAAyB,qPAInC,CAAC;AAEJ,QAAA,MAAM,cAAc,6SAIjB,CAAC;AAEJ,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../src/types/password.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,uBAAuB,+LAIjC,CAAC;AAEJ,eAAO,MAAM,yBAAyB,6NAInC,CAAC;AAEJ,QAAA,MAAM,cAAc,iSAIjB,CAAC;AAEJ,eAAe,cAAc,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsPasswordToSequelize = exports.TypeIsPasswordToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -10,7 +10,7 @@ exports.TypeIsPasswordToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((
10
10
  format: 'password',
11
11
  description: options === null || options === void 0 ? void 0 : options.comment,
12
12
  }));
13
- exports.TypeIsPasswordToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.STRING(512), comment: options === null || options === void 0 ? void 0 : options.comment })));
13
+ exports.TypeIsPasswordToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.STRING(512), comment: options === null || options === void 0 ? void 0 : options.comment })));
14
14
  const TypeIsPassword = (0, typeGenerator_1.typeGenerator)((options) => ({
15
15
  __name: 'password',
16
16
  toSwagger: () => (0, exports.TypeIsPasswordToSwagger)(options),
@@ -1 +1 @@
1
- {"version":3,"file":"password.js","sourceRoot":"","sources":["../../src/types/password.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D;AAI9C,QAAA,uBAAuB,GAAG,IAAA,uCAAkB,EAAqB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC1F,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,UAAU;IAClB,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,yBAAyB,GAAG,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OAAO,CAAC;IACjD,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,iCAAyB,EAAC,OAAO,CAAC;CACtD,CAAC,CAAC,CAAC;AAEJ,kBAAe,cAAc,CAAC"}
@@ -3,9 +3,9 @@ export interface TypeIsStringOption {
3
3
  binary?: boolean;
4
4
  comment?: string;
5
5
  }
6
- export declare const TypeIsStringToSwagger: (options?: (TypeIsStringOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
7
- export declare const TypeIsStringToSequelize: (options?: (TypeIsStringOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
6
+ export declare const TypeIsStringToSwagger: (options?: (TypeIsStringOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("./generators/toSwaggerGenerator").ISwaggerData;
7
+ export declare const TypeIsStringToSequelize: (options?: (TypeIsStringOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
8
8
  export declare const TypeIsStringFixValue: (o: any) => any;
9
- declare const TypeIsString: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsStringOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
9
+ declare const TypeIsString: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsStringOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
10
10
  export default TypeIsString;
11
11
  //# sourceMappingURL=string.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/types/string.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,2MAG/B,CAAC;AAEJ,eAAO,MAAM,uBAAuB,qPAIjC,CAAC;AAEJ,eAAO,MAAM,oBAAoB,MAAO,GAAG,QAG1C,CAAC;AAEF,QAAA,MAAM,YAAY,6SAKf,CAAC;AAEJ,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/types/string.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,+LAG/B,CAAC;AAEJ,eAAO,MAAM,uBAAuB,6NAIjC,CAAC;AAEJ,eAAO,MAAM,oBAAoB,MAAO,GAAG,QAG1C,CAAC;AAEF,QAAA,MAAM,YAAY,iSAKf,CAAC;AAEJ,eAAe,YAAY,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsStringFixValue = exports.TypeIsStringToSequelize = exports.TypeIsStringToSwagger = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
6
6
  const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
7
7
  const typeGenerator_1 = require("./generators/typeGenerator");
@@ -9,7 +9,7 @@ exports.TypeIsStringToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((op
9
9
  type: 'string',
10
10
  description: options === null || options === void 0 ? void 0 : options.comment,
11
11
  }));
12
- exports.TypeIsStringToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.STRING(options === null || options === void 0 ? void 0 : options.length, options === null || options === void 0 ? void 0 : options.binary), comment: options === null || options === void 0 ? void 0 : options.comment })));
12
+ exports.TypeIsStringToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.STRING(options === null || options === void 0 ? void 0 : options.length, options === null || options === void 0 ? void 0 : options.binary), comment: options === null || options === void 0 ? void 0 : options.comment })));
13
13
  const TypeIsStringFixValue = (o) => {
14
14
  if (o === undefined || o === null)
15
15
  return o;
@@ -1 +1 @@
1
- {"version":3,"file":"string.js","sourceRoot":"","sources":["../../src/types/string.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,4EAAyE;AACzE,wEAAqE;AACrE,8DAA2D;AAQ9C,QAAA,qBAAqB,GAAG,IAAA,uCAAkB,EAAqB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACxF,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;CAC9B,CAAC,CAAC,CAAC;AAES,QAAA,uBAAuB,GAAG,IAAA,2CAAoB,EAAqB,CAAC,OAAO,EAAE,EAAE,CAAC,iCACxF,OAAO,KACV,IAAI,EAAE,iBAAS,CAAC,MAAM,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,CAAC,EACxD,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEG,MAAM,oBAAoB,GAAG,CAAC,CAAM,EAAE,EAAE;IAC7C,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI;QAAE,OAAO,CAAC,CAAC;IAC5C,OAAO,MAAM,CAAC,CAAC,CA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/B;AAEF,MAAM,YAAY,GAAG,IAAA,6BAAa,EAAqB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACnE,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,6BAAqB,EAAC,OAAO,CAAC;IAC/C,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,+BAAuB,EAAC,OAAO,CAAC;IACnD,QAAQ,EAAE,4BAAoB;CAC/B,CAAC,CAAC,CAAC;AAEJ,kBAAe,YAAY,CAAC"}
@@ -1,9 +1,9 @@
1
- import { TextLength } from 'sequelize/types';
1
+ import { TextLength } from 'sequelize';
2
2
  export interface TypeIsTextOption {
3
3
  length?: TextLength;
4
4
  comment?: string;
5
5
  }
6
- export declare const TypeIsTextToSequelize: (options?: (TypeIsTextOption & import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>) | undefined) => import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>>;
7
- declare const TypeIsText: (...options: (import("sequelize/types").ModelAttributeColumnOptions<import("sequelize/types").Model<any, any>> | TypeIsTextOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
6
+ export declare const TypeIsTextToSequelize: (options?: (TypeIsTextOption & import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>) | undefined) => import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>>;
7
+ declare const TypeIsText: (...options: (import("sequelize").ModelAttributeColumnOptions<import("sequelize").Model<any, any>> | TypeIsTextOption)[]) => (target?: any, propertyName?: string | undefined, propertyDescriptor?: PropertyDescriptor | undefined) => void & import("./generators/typeGenerator").TypeIsData;
8
8
  export default TypeIsText;
9
9
  //# sourceMappingURL=text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/types/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKxD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,mPAI/B,CAAC;AAEJ,QAAA,MAAM,UAAU,2SAKb,CAAC;AAEJ,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/types/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,WAAW,CAAC;AAKlD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,2NAI/B,CAAC;AAEJ,QAAA,MAAM,UAAU,+RAKb,CAAC;AAEJ,eAAe,UAAU,CAAC"}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeIsTextToSequelize = void 0;
4
- const types_1 = require("sequelize/types");
4
+ const sequelize_1 = require("sequelize");
5
5
  const string_1 = require("./string");
6
6
  const typeGenerator_1 = require("./generators/typeGenerator");
7
7
  const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
8
- exports.TypeIsTextToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: types_1.DataTypes.TEXT({ length: options === null || options === void 0 ? void 0 : options.length }), comment: options === null || options === void 0 ? void 0 : options.comment })));
8
+ exports.TypeIsTextToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.TEXT({ length: options === null || options === void 0 ? void 0 : options.length }), comment: options === null || options === void 0 ? void 0 : options.comment })));
9
9
  const TypeIsText = (0, typeGenerator_1.typeGenerator)((options) => ({
10
10
  __name: 'text',
11
11
  toSwagger: () => (0, string_1.TypeIsStringToSwagger)(options),
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/types/text.ts"],"names":[],"mappings":";;;AAAA,2CAAwD;AACxD,qCAA2F;AAC3F,8DAA2D;AAC3D,4EAAyE;AAO5D,QAAA,qBAAqB,GAAG,IAAA,2CAAoB,EAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,iCACpF,OAAO,KACV,IAAI,EAAE,iBAAS,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,EAAE,CAAC,EACjD,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEJ,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC/D,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,8BAAqB,EAAC,OAAc,CAAC;IACtD,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,6BAAqB,EAAC,OAAO,CAAC;IACjD,QAAQ,EAAE,6BAAoB;CAC/B,CAAC,CAAC,CAAC;AAEJ,kBAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/types/text.ts"],"names":[],"mappings":";;;AAAA,yCAAkD;AAClD,qCAAuE;AACvE,8DAA2D;AAC3D,4EAAyE;AAO5D,QAAA,qBAAqB,GAAG,IAAA,2CAAoB,EAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,iCACpF,OAAO,KACV,IAAI,EAAE,qBAAS,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,EAAE,CAAC,EACjD,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,IACzB,CAAC,CAAC;AAEJ,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC/D,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,8BAAqB,EAAC,OAAc,CAAC;IACtD,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,6BAAqB,EAAC,OAAO,CAAC;IACjD,QAAQ,EAAE,6BAAoB;CAC/B,CAAC,CAAC,CAAC;AAEJ,kBAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asapjs/sequelize",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {