resurgence-data 1.1.47 → 1.1.48

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.
@@ -13,6 +13,7 @@ export declare class CreateInvoiceDto extends BaseDTO {
13
13
  billerId: string;
14
14
  customerId?: string;
15
15
  title?: string;
16
+ invoiceNumber?: string;
16
17
  description?: string;
17
18
  items: InvoiceItemDto[];
18
19
  discountValue: number;
@@ -116,6 +116,16 @@ __decorate([
116
116
  (0, class_validator_1.IsOptional)(),
117
117
  __metadata("design:type", String)
118
118
  ], CreateInvoiceDto.prototype, "title", void 0);
119
+ __decorate([
120
+ (0, swagger_1.ApiProperty)({
121
+ description: "Invoice number",
122
+ example: " INV27388UYU",
123
+ required: false,
124
+ }),
125
+ (0, class_validator_1.IsString)({ message: "Please enter a valid number" }),
126
+ (0, class_validator_1.IsOptional)(),
127
+ __metadata("design:type", String)
128
+ ], CreateInvoiceDto.prototype, "invoiceNumber", void 0);
119
129
  __decorate([
120
130
  (0, swagger_1.ApiProperty)({
121
131
  description: "Description of the invoice",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.1.47",
3
+ "version": "1.1.48",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -94,6 +94,14 @@ export class CreateInvoiceDto extends BaseDTO {
94
94
  @IsString({ message: "Please enter a valid title" })
95
95
  @IsOptional()
96
96
  title?: string;
97
+ @ApiProperty({
98
+ description: "Invoice number",
99
+ example: " INV27388UYU",
100
+ required: false,
101
+ })
102
+ @IsString({ message: "Please enter a valid number" })
103
+ @IsOptional()
104
+ invoiceNumber?: string;
97
105
  @ApiProperty({
98
106
  description: "Description of the invoice",
99
107
  example: "Invoice to blah blah",