@nmxjs/types 1.0.0 → 1.0.2

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.
@@ -0,0 +1,8 @@
1
+ import { ProxyTypeEnum } from '../interfaces';
2
+ export declare class ProxyDto {
3
+ ip: string;
4
+ port: number;
5
+ type: ProxyTypeEnum;
6
+ username?: string;
7
+ password?: string;
8
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProxyDto = void 0;
13
+ const validation_1 = require("@nmxjs/validation");
14
+ const interfaces_1 = require("../interfaces");
15
+ class ProxyDto {
16
+ }
17
+ exports.ProxyDto = ProxyDto;
18
+ __decorate([
19
+ (0, validation_1.Field)({
20
+ type: String,
21
+ }),
22
+ __metadata("design:type", String)
23
+ ], ProxyDto.prototype, "ip", void 0);
24
+ __decorate([
25
+ (0, validation_1.Field)({
26
+ type: Number,
27
+ }),
28
+ __metadata("design:type", Number)
29
+ ], ProxyDto.prototype, "port", void 0);
30
+ __decorate([
31
+ (0, validation_1.Field)({
32
+ type: { ProxyTypeEnum: interfaces_1.ProxyTypeEnum },
33
+ enum: true,
34
+ }),
35
+ __metadata("design:type", String)
36
+ ], ProxyDto.prototype, "type", void 0);
37
+ __decorate([
38
+ (0, validation_1.Field)({
39
+ type: String,
40
+ nullable: true,
41
+ }),
42
+ __metadata("design:type", String)
43
+ ], ProxyDto.prototype, "username", void 0);
44
+ __decorate([
45
+ (0, validation_1.Field)({
46
+ type: String,
47
+ nullable: true,
48
+ }),
49
+ __metadata("design:type", String)
50
+ ], ProxyDto.prototype, "password", void 0);
51
+ //# sourceMappingURL=ProxyDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProxyDto.js","sourceRoot":"","sources":["../../src/dto/ProxyDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA0C;AAC1C,8CAA8C;AAE9C,MAAa,QAAQ;CA4BpB;AA5BD,4BA4BC;AAxBC;IAHC,IAAA,kBAAK,EAAC;QACL,IAAI,EAAE,MAAM;KACb,CAAC;;oCACS;AAKX;IAHC,IAAA,kBAAK,EAAC;QACL,IAAI,EAAE,MAAM;KACb,CAAC;;sCACW;AAMb;IAJC,IAAA,kBAAK,EAAC;QACL,IAAI,EAAE,EAAE,aAAa,EAAb,0BAAa,EAAE;QACvB,IAAI,EAAE,IAAI;KACX,CAAC;;sCACkB;AAMpB;IAJC,IAAA,kBAAK,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;;0CACgB;AAMlB;IAJC,IAAA,kBAAK,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;;0CACgB"}
@@ -1,3 +1,4 @@
1
+ export * from './ProxyDto';
1
2
  export * from './EntityDto';
2
3
  export * from './UpdateRequestDto';
3
4
  export * from './ListRequestDto';
package/dist/dto/index.js CHANGED
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ProxyDto"), exports);
17
18
  __exportStar(require("./EntityDto"), exports);
18
19
  __exportStar(require("./UpdateRequestDto"), exports);
19
20
  __exportStar(require("./ListRequestDto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,6DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,6DAA2C"}
@@ -0,0 +1,6 @@
1
+ export declare enum ProxyTypeEnum {
2
+ HTTP = "HTTP",
3
+ HTTPS = "HTTPS",
4
+ SOCKS4 = "SOCKS4",
5
+ SOCKS5 = "SOCKS5"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProxyTypeEnum = void 0;
4
+ var ProxyTypeEnum;
5
+ (function (ProxyTypeEnum) {
6
+ ProxyTypeEnum["HTTP"] = "HTTP";
7
+ ProxyTypeEnum["HTTPS"] = "HTTPS";
8
+ ProxyTypeEnum["SOCKS4"] = "SOCKS4";
9
+ ProxyTypeEnum["SOCKS5"] = "SOCKS5";
10
+ })(ProxyTypeEnum || (exports.ProxyTypeEnum = ProxyTypeEnum = {}));
11
+ //# sourceMappingURL=ProxyTypeEnum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProxyTypeEnum.js","sourceRoot":"","sources":["../../src/interfaces/ProxyTypeEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACnB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
@@ -8,3 +8,4 @@ export * from './ICallback';
8
8
  export * from './IBootModeParam';
9
9
  export * from './FilterOperatorEnum';
10
10
  export * from './SortOrderByEnum';
11
+ export * from './ProxyTypeEnum';
@@ -24,4 +24,5 @@ __exportStar(require("./ICallback"), exports);
24
24
  __exportStar(require("./IBootModeParam"), exports);
25
25
  __exportStar(require("./FilterOperatorEnum"), exports);
26
26
  __exportStar(require("./SortOrderByEnum"), exports);
27
+ __exportStar(require("./ProxyTypeEnum"), exports);
27
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,kDAAgC;AAChC,iDAA+B;AAC/B,6CAA2B;AAC3B,8CAA4B;AAC5B,mDAAiC;AACjC,uDAAqC;AACrC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,kDAAgC;AAChC,iDAA+B;AAC/B,6CAA2B;AAC3B,8CAA4B;AAC5B,mDAAiC;AACjC,uDAAqC;AACrC,oDAAkC;AAClC,kDAAgC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nmxjs/types",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,6 +25,6 @@
25
25
  "typescript": "^5.1.6"
26
26
  },
27
27
  "dependencies": {
28
- "@nmxjs/validation": "^1.0.2"
28
+ "@nmxjs/validation": "^1.0.3"
29
29
  }
30
30
  }