@comasoft/nestjs 0.1.98 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_FILE_SIZE=exports.ALLOWED_MIME_TYPES=exports.IMAGE_PROCESSOR_CONFIG=void 0,exports.IMAGE_PROCESSOR_CONFIG={sizes:{small:{width:150,height:150,quality:80},medium:{width:300,height:300,quality:85},large:{width:800,height:800,quality:90}},outputFormat:"webp"},exports.ALLOWED_MIME_TYPES=["image/jpeg","image/png","image/webp"],exports.MAX_FILE_SIZE=52428800;
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_FILE_SIZE=exports.ALLOWED_MIME_TYPES=exports.IMAGE_PROCESSOR_CONFIG=void 0,exports.IMAGE_PROCESSOR_CONFIG={sizes:{small:{width:150,height:150,quality:80},medium:{width:300,height:300,quality:85},large:{width:800,height:800,quality:90}},outputFormat:"webp"},exports.ALLOWED_MIME_TYPES=["image/jpeg","image/png","image/webp"],exports.MAX_FILE_SIZE=524288e3;
@@ -0,0 +1,5 @@
1
+ type CommonQueryField = 'page' | 'limit' | 'keyword' | 'sort' | 'group';
2
+ export declare const CommonQuery: (field: CommonQueryField, options?: {
3
+ description?: string;
4
+ }) => <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
5
+ export {};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.CommonQuery=void 0;const e=require("@nestjs/common"),r=require("@nestjs/swagger"),i=require("class-transformer"),t=require("class-validator"),o={page:{type:Number,example:1,description:"페이지 번호"},limit:{type:Number,example:5,description:"페이지당 항목 수"},keyword:{type:String,description:"검색 키워드"},sort:{type:String,description:"정렬 (field1-asc|field2-desc)"},group:{type:String,description:"그룹 필터 (field1-value1|field2-value2)"}};exports.CommonQuery=(s,p)=>{const n=Object.assign({},o[s]);(null==p?void 0:p.description)&&(n.description=p.description);const l="page"===s||"limit"===s?Number:String;return(0,e.applyDecorators)((0,r.ApiPropertyOptional)(n),(0,i.Type)(()=>l),(0,t.IsOptional)())};
@@ -6,3 +6,4 @@ export * from './timestamps.decorator';
6
6
  export * from './soft-delete.decorator';
7
7
  export * from './format.decorator';
8
8
  export * from './masking.transform';
9
+ export * from './common-query.decorator';
@@ -1 +1 @@
1
- var e=this&&this.__createBinding||(Object.create?function(e,r,t,o){void 0===o&&(o=t);var i=Object.getOwnPropertyDescriptor(r,t);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,o,i)}:function(e,r,t,o){void 0===o&&(o=t),e[o]=r[t]}),r=this&&this.__exportStar||function(r,t){for(var o in r)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||e(t,r,o)};Object.defineProperty(exports,"__esModule",{value:!0}),r(require("./custom-params.decorator"),exports),r(require("./api-custom-params.decorator"),exports),r(require("./patch-body.decorator"),exports),r(require("./cookies.decorator"),exports),r(require("./timestamps.decorator"),exports),r(require("./soft-delete.decorator"),exports),r(require("./format.decorator"),exports),r(require("./masking.transform"),exports);
1
+ var e=this&&this.__createBinding||(Object.create?function(e,r,t,o){void 0===o&&(o=t);var i=Object.getOwnPropertyDescriptor(r,t);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,o,i)}:function(e,r,t,o){void 0===o&&(o=t),e[o]=r[t]}),r=this&&this.__exportStar||function(r,t){for(var o in r)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||e(t,r,o)};Object.defineProperty(exports,"__esModule",{value:!0}),r(require("./custom-params.decorator"),exports),r(require("./api-custom-params.decorator"),exports),r(require("./patch-body.decorator"),exports),r(require("./cookies.decorator"),exports),r(require("./timestamps.decorator"),exports),r(require("./soft-delete.decorator"),exports),r(require("./format.decorator"),exports),r(require("./masking.transform"),exports),r(require("./common-query.decorator"),exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comasoft/nestjs",
3
- "version": "0.1.98",
3
+ "version": "0.2.0",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "exports": {