resurgence-data 1.1.11 → 1.1.13
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,4 +1,10 @@
|
|
1
1
|
import { BaseDTO } from "../types/dto.type";
|
2
|
+
export declare class InvoiceCustomerDto extends BaseDTO {
|
3
|
+
name: string;
|
4
|
+
emailAddress?: string;
|
5
|
+
phoneNumber?: string;
|
6
|
+
address?: string;
|
7
|
+
}
|
2
8
|
export declare class CreateInvoiceDto extends BaseDTO {
|
3
9
|
billerId: string;
|
4
10
|
customerId?: string;
|
@@ -21,9 +27,3 @@ export declare class UpdateInvoiceDto extends BaseDTO {
|
|
21
27
|
dueDate?: string;
|
22
28
|
status?: string;
|
23
29
|
}
|
24
|
-
export declare class InvoiceCustomerDto extends BaseDTO {
|
25
|
-
name: string;
|
26
|
-
emailAddress?: string;
|
27
|
-
phoneNumber?: string;
|
28
|
-
address?: string;
|
29
|
-
}
|
@@ -9,10 +9,54 @@ 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.
|
12
|
+
exports.UpdateInvoiceDto = exports.CreateInvoiceDto = exports.InvoiceCustomerDto = void 0;
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
14
14
|
const class_validator_1 = require("class-validator");
|
15
15
|
const dto_type_1 = require("../types/dto.type");
|
16
|
+
class InvoiceCustomerDto extends dto_type_1.BaseDTO {
|
17
|
+
}
|
18
|
+
exports.InvoiceCustomerDto = InvoiceCustomerDto;
|
19
|
+
__decorate([
|
20
|
+
(0, swagger_1.ApiProperty)({
|
21
|
+
description: "The name of the customer",
|
22
|
+
example: "Jane Smith",
|
23
|
+
}),
|
24
|
+
(0, class_validator_1.IsNotEmpty)({ message: "Name must not be empty" }),
|
25
|
+
(0, class_validator_1.IsString)({ message: "Name must be a valid string" }),
|
26
|
+
(0, class_validator_1.Length)(1, 50, { message: "Name must be between 1 and 50 characters" }),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], InvoiceCustomerDto.prototype, "name", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, swagger_1.ApiProperty)({
|
31
|
+
description: "The email address of the customer",
|
32
|
+
example: "janesmith@example.com",
|
33
|
+
required: false,
|
34
|
+
}),
|
35
|
+
(0, class_validator_1.IsString)({ message: "Email address must be a valid string" }),
|
36
|
+
(0, class_validator_1.Length)(1, 50, { message: "Email address must be between 1 and 50 characters" }),
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
38
|
+
__metadata("design:type", String)
|
39
|
+
], InvoiceCustomerDto.prototype, "emailAddress", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, swagger_1.ApiProperty)({
|
42
|
+
description: "The phone number of the customer",
|
43
|
+
example: "+9876543210",
|
44
|
+
required: false,
|
45
|
+
}),
|
46
|
+
(0, class_validator_1.IsString)({ message: "Phone number must be a valid string" }),
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
48
|
+
__metadata("design:type", String)
|
49
|
+
], InvoiceCustomerDto.prototype, "phoneNumber", void 0);
|
50
|
+
__decorate([
|
51
|
+
(0, swagger_1.ApiProperty)({
|
52
|
+
description: "Address of the customer",
|
53
|
+
example: "12 Fremont lane, New York",
|
54
|
+
required: false,
|
55
|
+
}),
|
56
|
+
(0, class_validator_1.IsString)({ message: "Address must be a valid string" }),
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
58
|
+
__metadata("design:type", String)
|
59
|
+
], InvoiceCustomerDto.prototype, "address", void 0);
|
16
60
|
class CreateInvoiceDto extends dto_type_1.BaseDTO {
|
17
61
|
}
|
18
62
|
exports.CreateInvoiceDto = CreateInvoiceDto;
|
@@ -185,47 +229,3 @@ __decorate([
|
|
185
229
|
(0, class_validator_1.IsOptional)(),
|
186
230
|
__metadata("design:type", String)
|
187
231
|
], UpdateInvoiceDto.prototype, "status", void 0);
|
188
|
-
class InvoiceCustomerDto extends dto_type_1.BaseDTO {
|
189
|
-
}
|
190
|
-
exports.InvoiceCustomerDto = InvoiceCustomerDto;
|
191
|
-
__decorate([
|
192
|
-
(0, swagger_1.ApiProperty)({
|
193
|
-
description: "The name of the customer",
|
194
|
-
example: "Jane Smith",
|
195
|
-
}),
|
196
|
-
(0, class_validator_1.IsNotEmpty)({ message: "Name must not be empty" }),
|
197
|
-
(0, class_validator_1.IsString)({ message: "Name must be a valid string" }),
|
198
|
-
(0, class_validator_1.Length)(1, 50, { message: "Name must be between 1 and 50 characters" }),
|
199
|
-
__metadata("design:type", String)
|
200
|
-
], InvoiceCustomerDto.prototype, "name", void 0);
|
201
|
-
__decorate([
|
202
|
-
(0, swagger_1.ApiProperty)({
|
203
|
-
description: "The email address of the customer",
|
204
|
-
example: "janesmith@example.com",
|
205
|
-
required: false,
|
206
|
-
}),
|
207
|
-
(0, class_validator_1.IsString)({ message: "Email address must be a valid string" }),
|
208
|
-
(0, class_validator_1.Length)(1, 50, { message: "Email address must be between 1 and 50 characters" }),
|
209
|
-
(0, class_validator_1.IsOptional)(),
|
210
|
-
__metadata("design:type", String)
|
211
|
-
], InvoiceCustomerDto.prototype, "emailAddress", void 0);
|
212
|
-
__decorate([
|
213
|
-
(0, swagger_1.ApiProperty)({
|
214
|
-
description: "The phone number of the customer",
|
215
|
-
example: "+9876543210",
|
216
|
-
required: false,
|
217
|
-
}),
|
218
|
-
(0, class_validator_1.IsString)({ message: "Phone number must be a valid string" }),
|
219
|
-
(0, class_validator_1.IsOptional)(),
|
220
|
-
__metadata("design:type", String)
|
221
|
-
], InvoiceCustomerDto.prototype, "phoneNumber", void 0);
|
222
|
-
__decorate([
|
223
|
-
(0, swagger_1.ApiProperty)({
|
224
|
-
description: "Address of the customer",
|
225
|
-
example: "12 Fremont lane, New York",
|
226
|
-
required: false,
|
227
|
-
}),
|
228
|
-
(0, class_validator_1.IsString)({ message: "Address must be a valid string" }),
|
229
|
-
(0, class_validator_1.IsOptional)(),
|
230
|
-
__metadata("design:type", String)
|
231
|
-
], InvoiceCustomerDto.prototype, "address", void 0);
|
package/package.json
CHANGED
@@ -12,6 +12,45 @@ import {
|
|
12
12
|
} from "class-validator";
|
13
13
|
import { BaseDTO } from "../types/dto.type";
|
14
14
|
|
15
|
+
export class InvoiceCustomerDto extends BaseDTO {
|
16
|
+
@ApiProperty({
|
17
|
+
description: "The name of the customer",
|
18
|
+
example: "Jane Smith",
|
19
|
+
})
|
20
|
+
@IsNotEmpty({ message: "Name must not be empty" })
|
21
|
+
@IsString({ message: "Name must be a valid string" })
|
22
|
+
@Length(1, 50, { message: "Name must be between 1 and 50 characters" })
|
23
|
+
name: string;
|
24
|
+
|
25
|
+
@ApiProperty({
|
26
|
+
description: "The email address of the customer",
|
27
|
+
example: "janesmith@example.com",
|
28
|
+
required: false,
|
29
|
+
})
|
30
|
+
@IsString({ message: "Email address must be a valid string" })
|
31
|
+
@Length(1, 50, { message: "Email address must be between 1 and 50 characters" })
|
32
|
+
@IsOptional()
|
33
|
+
emailAddress?: string;
|
34
|
+
|
35
|
+
@ApiProperty({
|
36
|
+
description: "The phone number of the customer",
|
37
|
+
example: "+9876543210",
|
38
|
+
required: false,
|
39
|
+
})
|
40
|
+
@IsString({ message: "Phone number must be a valid string" })
|
41
|
+
@IsOptional()
|
42
|
+
phoneNumber?: string;
|
43
|
+
|
44
|
+
@ApiProperty({
|
45
|
+
description: "Address of the customer",
|
46
|
+
example: "12 Fremont lane, New York",
|
47
|
+
required: false,
|
48
|
+
})
|
49
|
+
@IsString({ message: "Address must be a valid string" })
|
50
|
+
@IsOptional()
|
51
|
+
address?: string;
|
52
|
+
}
|
53
|
+
|
15
54
|
export class CreateInvoiceDto extends BaseDTO {
|
16
55
|
@ApiProperty({
|
17
56
|
description: "The ID of the biller",
|
@@ -161,42 +200,3 @@ export class UpdateInvoiceDto extends BaseDTO {
|
|
161
200
|
@IsOptional()
|
162
201
|
status?: string;
|
163
202
|
}
|
164
|
-
|
165
|
-
export class InvoiceCustomerDto extends BaseDTO {
|
166
|
-
@ApiProperty({
|
167
|
-
description: "The name of the customer",
|
168
|
-
example: "Jane Smith",
|
169
|
-
})
|
170
|
-
@IsNotEmpty({ message: "Name must not be empty" })
|
171
|
-
@IsString({ message: "Name must be a valid string" })
|
172
|
-
@Length(1, 50, { message: "Name must be between 1 and 50 characters" })
|
173
|
-
name: string;
|
174
|
-
|
175
|
-
@ApiProperty({
|
176
|
-
description: "The email address of the customer",
|
177
|
-
example: "janesmith@example.com",
|
178
|
-
required: false,
|
179
|
-
})
|
180
|
-
@IsString({ message: "Email address must be a valid string" })
|
181
|
-
@Length(1, 50, { message: "Email address must be between 1 and 50 characters" })
|
182
|
-
@IsOptional()
|
183
|
-
emailAddress?: string;
|
184
|
-
|
185
|
-
@ApiProperty({
|
186
|
-
description: "The phone number of the customer",
|
187
|
-
example: "+9876543210",
|
188
|
-
required: false,
|
189
|
-
})
|
190
|
-
@IsString({ message: "Phone number must be a valid string" })
|
191
|
-
@IsOptional()
|
192
|
-
phoneNumber?: string;
|
193
|
-
|
194
|
-
@ApiProperty({
|
195
|
-
description: "Address of the customer",
|
196
|
-
example: "12 Fremont lane, New York",
|
197
|
-
required: false,
|
198
|
-
})
|
199
|
-
@IsString({ message: "Address must be a valid string" })
|
200
|
-
@IsOptional()
|
201
|
-
address?: string;
|
202
|
-
}
|