@feresmeryas/microservices-common 1.5.24 → 1.5.26

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
@@ -2211,6 +2211,7 @@ var RoleName = /* @__PURE__ */ (function(RoleName2) {
2211
2211
  })({});
2212
2212
 
2213
2213
  // dto/tags/create_find_tag.dto.ts
2214
+ var import_swagger27 = require("@nestjs/swagger");
2214
2215
  var import_class_validator24 = require("class-validator");
2215
2216
  function _ts_decorate37(decorators, target, key, desc) {
2216
2217
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -2232,11 +2233,18 @@ var _CreateOrGetTagDto = class _CreateOrGetTagDto {
2232
2233
  __name(_CreateOrGetTagDto, "CreateOrGetTagDto");
2233
2234
  var CreateOrGetTagDto = _CreateOrGetTagDto;
2234
2235
  _ts_decorate37([
2236
+ (0, import_swagger27.ApiProperty)({
2237
+ example: "#africa"
2238
+ }),
2235
2239
  (0, import_class_validator24.IsString)(),
2236
2240
  (0, import_class_validator24.IsNotEmpty)(),
2237
2241
  _ts_metadata37("design:type", String)
2238
2242
  ], CreateOrGetTagDto.prototype, "name", void 0);
2239
2243
  _ts_decorate37([
2244
+ (0, import_swagger27.ApiProperty)({
2245
+ enum: BusinessSector
2246
+ }),
2247
+ (0, import_class_validator24.IsEnum)(BusinessSector),
2240
2248
  (0, import_class_validator24.IsString)(),
2241
2249
  (0, import_class_validator24.IsNotEmpty)(),
2242
2250
  _ts_metadata37("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
package/dist/index.mjs CHANGED
@@ -2141,7 +2141,8 @@ var RoleName = /* @__PURE__ */ (function(RoleName2) {
2141
2141
  })({});
2142
2142
 
2143
2143
  // dto/tags/create_find_tag.dto.ts
2144
- import { IsNotEmpty as IsNotEmpty11, IsString as IsString16 } from "class-validator";
2144
+ import { ApiProperty as ApiProperty26 } from "@nestjs/swagger";
2145
+ import { IsEnum as IsEnum9, IsNotEmpty as IsNotEmpty11, IsString as IsString16 } from "class-validator";
2145
2146
  function _ts_decorate37(decorators, target, key, desc) {
2146
2147
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2147
2148
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -2162,11 +2163,18 @@ var _CreateOrGetTagDto = class _CreateOrGetTagDto {
2162
2163
  __name(_CreateOrGetTagDto, "CreateOrGetTagDto");
2163
2164
  var CreateOrGetTagDto = _CreateOrGetTagDto;
2164
2165
  _ts_decorate37([
2166
+ ApiProperty26({
2167
+ example: "#africa"
2168
+ }),
2165
2169
  IsString16(),
2166
2170
  IsNotEmpty11(),
2167
2171
  _ts_metadata37("design:type", String)
2168
2172
  ], CreateOrGetTagDto.prototype, "name", void 0);
2169
2173
  _ts_decorate37([
2174
+ ApiProperty26({
2175
+ enum: BusinessSector
2176
+ }),
2177
+ IsEnum9(BusinessSector),
2170
2178
  IsString16(),
2171
2179
  IsNotEmpty11(),
2172
2180
  _ts_metadata37("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feresmeryas/microservices-common",
3
- "version": "1.5.24",
3
+ "version": "1.5.26",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -17,7 +17,7 @@
17
17
  "reflect-metadata": "^0.1.13 || ^0.2.0"
18
18
  },
19
19
  "scripts": {
20
- "build": "tsup index.ts --format cjs,esm --dts --tsconfig tsconfig.build.json"
20
+ "build": "tsup index.ts --format cjs,esm --dts --tsconfig tsconfig.build.json --no-splitting --keep-names"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@swc/core": "^1.15.8",