shared-dto 1.0.54 → 1.0.56

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.
@@ -27,4 +27,9 @@ export declare class DutyDTO {
27
27
  createdAt: Date;
28
28
  updatedAt: Date;
29
29
  }
30
+ export declare class DutyRequestDTO {
31
+ apartmentID: string;
32
+ fromDate: string;
33
+ toDate: string;
34
+ }
30
35
  //# sourceMappingURL=Duty.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Duty.dto.d.ts","sourceRoot":"","sources":["../src/Duty.dto.ts"],"names":[],"mappings":"AAEA,oBAAY,QAAQ;IAChB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAChB;AAEH,qBAAa,aAAa;IAGtB,IAAI,EAAE,QAAQ,CAAC;IAIf,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,MAAM,CAAC,EAAE,OAAO,CAAC;IAIjB,OAAO,EAAE,MAAM,CAAC;IAIhB,WAAW,EAAE,MAAM,CAAC;IAIpB,QAAQ,CAAC,EAAE,IAAI,CAAC;CACnB;AAED,qBAAa,aAAc,SAAQ,aAAa;IAG5C,EAAE,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,OAAO;IAGhB,EAAE,EAAE,MAAM,CAAC;IAIX,IAAI,EAAE,QAAQ,CAAC;IAIf,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,OAAO,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;IAGpB,QAAQ,EAAE,IAAI,CAAC;IAGf,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
1
+ {"version":3,"file":"Duty.dto.d.ts","sourceRoot":"","sources":["../src/Duty.dto.ts"],"names":[],"mappings":"AAEA,oBAAY,QAAQ;IAChB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAChB;AAEH,qBAAa,aAAa;IAGtB,IAAI,EAAE,QAAQ,CAAC;IAIf,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,MAAM,CAAC,EAAE,OAAO,CAAC;IAIjB,OAAO,EAAE,MAAM,CAAC;IAIhB,WAAW,EAAE,MAAM,CAAC;IAIpB,QAAQ,CAAC,EAAE,IAAI,CAAC;CACnB;AAED,qBAAa,aAAc,SAAQ,aAAa;IAG5C,EAAE,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,OAAO;IAGhB,EAAE,EAAE,MAAM,CAAC;IAIX,IAAI,EAAE,QAAQ,CAAC;IAIf,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,OAAO,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;IAGpB,QAAQ,EAAE,IAAI,CAAC;IAGf,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,qBAAa,cAAc;IAGzB,WAAW,EAAE,MAAM,CAAC;IAIpB,QAAQ,EAAE,MAAM,CAAC;IAIjB,MAAM,EAAE,MAAM,CAAC;CAChB"}
package/dist/Duty.dto.js CHANGED
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DutyDTO = exports.UpdateDutyDto = exports.CreateDutyDto = exports.DutyType = void 0;
12
+ exports.DutyRequestDTO = exports.DutyDTO = exports.UpdateDutyDto = exports.CreateDutyDto = exports.DutyType = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  var DutyType;
15
15
  (function (DutyType) {
@@ -104,4 +104,22 @@ __decorate([
104
104
  (0, class_validator_1.IsDate)(),
105
105
  __metadata("design:type", Date)
106
106
  ], DutyDTO.prototype, "updatedAt", void 0);
107
+ class DutyRequestDTO {
108
+ }
109
+ exports.DutyRequestDTO = DutyRequestDTO;
110
+ __decorate([
111
+ (0, class_validator_1.IsString)(),
112
+ (0, class_validator_1.IsNotEmpty)(),
113
+ __metadata("design:type", String)
114
+ ], DutyRequestDTO.prototype, "apartmentID", void 0);
115
+ __decorate([
116
+ (0, class_validator_1.IsString)(),
117
+ (0, class_validator_1.IsNotEmpty)(),
118
+ __metadata("design:type", String)
119
+ ], DutyRequestDTO.prototype, "fromDate", void 0);
120
+ __decorate([
121
+ (0, class_validator_1.IsString)(),
122
+ (0, class_validator_1.IsNotEmpty)(),
123
+ __metadata("design:type", String)
124
+ ], DutyRequestDTO.prototype, "toDate", void 0);
107
125
  //# sourceMappingURL=Duty.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Duty.dto.js","sourceRoot":"","sources":["../src/Duty.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6F;AAE7F,IAAY,QAMT;AANH,WAAY,QAAQ;IAChB,iCAAqB,CAAA;IACrB,6BAAiB,CAAA;IACjB,iCAAqB,CAAA;IACrB,uCAA2B,CAAA;IAC3B,2BAAe,CAAA;AACjB,CAAC,EANS,QAAQ,wBAAR,QAAQ,QAMjB;AAEH,MAAa,aAAa;CAwBzB;AAxBD,sCAwBC;AArBG;IAFC,IAAA,wBAAM,EAAC,QAAQ,CAAC;IAChB,IAAA,4BAAU,GAAE;;2CACE;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACU;AAIrB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;6CACI;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACO;AAIpB;IAFC,IAAA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Name: string;
4
+ }
5
+ export declare class AddUserDto {
6
+ groupId: string;
7
+ userPhone: string;
8
+ }
9
+ export declare class CheckUserStatusDto {
10
+ phoneNumber: string;
11
+ }
12
+ //# sourceMappingURL=group.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.dto.d.ts","sourceRoot":"","sources":["../src/group.dto.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAc;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,UAAU;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,kBAAkB;IAC7B,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckUserStatusDto = exports.AddUserDto = exports.CreateGroupDto = void 0;
4
+ class CreateGroupDto {
5
+ }
6
+ exports.CreateGroupDto = CreateGroupDto;
7
+ class AddUserDto {
8
+ }
9
+ exports.AddUserDto = AddUserDto;
10
+ class CheckUserStatusDto {
11
+ }
12
+ exports.CheckUserStatusDto = CheckUserStatusDto;
13
+ //# sourceMappingURL=group.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.dto.js","sourceRoot":"","sources":["../src/group.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;CAGxB;AAHH,wCAGG;AAED,MAAa,UAAU;CAGtB;AAHD,gCAGC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC"}
package/dist/index.d.ts CHANGED
@@ -4,4 +4,5 @@ export * from './Task.dto';
4
4
  export * from './Duty.dto';
5
5
  export * from './Payments.dto';
6
6
  export * from './Expenses.dto';
7
+ export * from './group.dto';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -20,4 +20,5 @@ __exportStar(require("./Task.dto"), exports);
20
20
  __exportStar(require("./Duty.dto"), exports);
21
21
  __exportStar(require("./Payments.dto"), exports);
22
22
  __exportStar(require("./Expenses.dto"), exports);
23
+ __exportStar(require("./group.dto"), exports);
23
24
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,kDAAgC;AAChC,6CAA2B;AAC3B,6CAA0B;AAC1B,iDAA8B;AAC9B,iDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,kDAAgC;AAChC,6CAA2B;AAC3B,6CAA0B;AAC1B,iDAA8B;AAC9B,iDAA8B;AAC9B,8CAA4B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-dto",
3
- "version": "1.0.54",
3
+ "version": "1.0.56",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/Duty.dto.ts CHANGED
@@ -72,4 +72,19 @@ export class DutyDTO {
72
72
 
73
73
  @IsDate()
74
74
  updatedAt: Date;
75
- }
75
+ }
76
+
77
+ export class DutyRequestDTO {
78
+ @IsString()
79
+ @IsNotEmpty()
80
+ apartmentID: string;
81
+
82
+ @IsString()
83
+ @IsNotEmpty()
84
+ fromDate: string;
85
+
86
+ @IsString()
87
+ @IsNotEmpty()
88
+ toDate: string;
89
+ }
90
+
@@ -0,0 +1,14 @@
1
+ export class CreateGroupDto {
2
+ phoneNumber: string;
3
+ groupName: string;
4
+ }
5
+
6
+ export class AddUserDto {
7
+ groupId: string;
8
+ userPhone: string;
9
+ }
10
+
11
+ export class CheckUserStatusDto {
12
+ phoneNumber: string;
13
+ }
14
+
package/src/index.ts CHANGED
@@ -3,4 +3,5 @@ export * from './Apartment.dto';
3
3
  export * from './Task.dto';
4
4
  export * from './Duty.dto'
5
5
  export * from './Payments.dto'
6
- export * from './Expenses.dto'
6
+ export * from './Expenses.dto'
7
+ export * from './group.dto';