@fiado/type-kit 1.8.13 → 1.8.14
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/bin/services/dtos/UpdateServiceMembershipRequest.d.ts +1 -5
- package/bin/services/dtos/UpdateServiceMembershipRequest.js +8 -20
- package/bin/services/dtos/UpdateServiceRequest.d.ts +7 -3
- package/bin/services/dtos/UpdateServiceRequest.js +28 -12
- package/package.json +1 -1
- package/src/services/dtos/UpdateServiceMembershipRequest.ts +1 -11
- package/src/services/dtos/UpdateServiceRequest.ts +18 -6
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { CountryId } from "../../country";
|
|
2
|
-
import { ServiceProviderEnum } from "../enums/ServiceProviderEnum";
|
|
3
1
|
import { ServiceMembershipStatusEnum } from "../enums/ServiceMembershipStatusEnum";
|
|
4
|
-
export declare class
|
|
2
|
+
export declare class UpdateServiceMembershipRequest {
|
|
5
3
|
serviceId?: string;
|
|
6
4
|
directoryId?: string;
|
|
7
5
|
peopleId?: string;
|
|
8
6
|
status?: ServiceMembershipStatusEnum;
|
|
9
|
-
provider?: ServiceProviderEnum;
|
|
10
7
|
collectorPreferredDay?: number;
|
|
11
|
-
countryId?: CountryId;
|
|
12
8
|
}
|
|
@@ -9,46 +9,34 @@ 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.UpdateServiceMembershipRequest = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const country_1 = require("../../country");
|
|
15
|
-
const ServiceProviderEnum_1 = require("../enums/ServiceProviderEnum");
|
|
16
14
|
const ServiceMembershipStatusEnum_1 = require("../enums/ServiceMembershipStatusEnum");
|
|
17
|
-
class
|
|
15
|
+
class UpdateServiceMembershipRequest {
|
|
18
16
|
}
|
|
19
|
-
exports.
|
|
17
|
+
exports.UpdateServiceMembershipRequest = UpdateServiceMembershipRequest;
|
|
20
18
|
__decorate([
|
|
21
19
|
(0, class_validator_1.IsOptional)(),
|
|
22
20
|
(0, class_validator_1.IsString)(),
|
|
23
21
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
22
|
+
], UpdateServiceMembershipRequest.prototype, "serviceId", void 0);
|
|
25
23
|
__decorate([
|
|
26
24
|
(0, class_validator_1.IsOptional)(),
|
|
27
25
|
(0, class_validator_1.IsString)(),
|
|
28
26
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
27
|
+
], UpdateServiceMembershipRequest.prototype, "directoryId", void 0);
|
|
30
28
|
__decorate([
|
|
31
29
|
(0, class_validator_1.IsOptional)(),
|
|
32
30
|
(0, class_validator_1.IsString)(),
|
|
33
31
|
__metadata("design:type", String)
|
|
34
|
-
],
|
|
32
|
+
], UpdateServiceMembershipRequest.prototype, "peopleId", void 0);
|
|
35
33
|
__decorate([
|
|
36
34
|
(0, class_validator_1.IsOptional)(),
|
|
37
35
|
(0, class_validator_1.IsEnum)(ServiceMembershipStatusEnum_1.ServiceMembershipStatusEnum),
|
|
38
36
|
__metadata("design:type", String)
|
|
39
|
-
],
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_validator_1.IsOptional)(),
|
|
42
|
-
(0, class_validator_1.IsEnum)(ServiceProviderEnum_1.ServiceProviderEnum),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], UpdateMembershipDirectoryUserRequest.prototype, "provider", void 0);
|
|
37
|
+
], UpdateServiceMembershipRequest.prototype, "status", void 0);
|
|
45
38
|
__decorate([
|
|
46
39
|
(0, class_validator_1.IsOptional)(),
|
|
47
40
|
(0, class_validator_1.IsNumber)(),
|
|
48
41
|
__metadata("design:type", Number)
|
|
49
|
-
],
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, class_validator_1.IsOptional)(),
|
|
52
|
-
(0, class_validator_1.IsEnum)(country_1.CountryId),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], UpdateMembershipDirectoryUserRequest.prototype, "countryId", void 0);
|
|
42
|
+
], UpdateServiceMembershipRequest.prototype, "collectorPreferredDay", void 0);
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { CountryId } from "../../country";
|
|
2
1
|
import { ServiceProviderEnum } from "../enums/ServiceProviderEnum";
|
|
3
2
|
import { ServiceFlowEnum } from "../enums/ServiceFlowEnum";
|
|
4
3
|
import { ServiceTypeEnum } from "../enums/ServiceTypeEnum";
|
|
5
4
|
import { ServiceStatusEnum } from "../enums/ServiceStatusEnum";
|
|
6
|
-
|
|
5
|
+
import { ServiceCompanyEnum } from "../enums/ServiceCompanyEnum";
|
|
6
|
+
import { ServiceRecurrenceEnum } from "../enums/ServiceRecurrenceEnum";
|
|
7
|
+
export declare class UpdateServiceRequest {
|
|
7
8
|
name?: string;
|
|
8
9
|
description?: string;
|
|
9
10
|
status?: ServiceStatusEnum;
|
|
10
11
|
type?: ServiceTypeEnum;
|
|
11
|
-
|
|
12
|
+
company?: ServiceCompanyEnum;
|
|
12
13
|
flow?: ServiceFlowEnum;
|
|
14
|
+
recurrence?: ServiceRecurrenceEnum;
|
|
15
|
+
defaultCollectorPreferredDay?: number;
|
|
13
16
|
provider?: ServiceProviderEnum;
|
|
17
|
+
category?: string;
|
|
14
18
|
}
|
|
@@ -9,48 +9,64 @@ 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.UpdateServiceRequest = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const country_1 = require("../../country");
|
|
15
14
|
const ServiceProviderEnum_1 = require("../enums/ServiceProviderEnum");
|
|
16
15
|
const ServiceFlowEnum_1 = require("../enums/ServiceFlowEnum");
|
|
17
16
|
const ServiceTypeEnum_1 = require("../enums/ServiceTypeEnum");
|
|
18
17
|
const ServiceStatusEnum_1 = require("../enums/ServiceStatusEnum");
|
|
19
|
-
|
|
18
|
+
const ServiceCompanyEnum_1 = require("../enums/ServiceCompanyEnum");
|
|
19
|
+
const ServiceRecurrenceEnum_1 = require("../enums/ServiceRecurrenceEnum");
|
|
20
|
+
class UpdateServiceRequest {
|
|
20
21
|
}
|
|
21
|
-
exports.
|
|
22
|
+
exports.UpdateServiceRequest = UpdateServiceRequest;
|
|
22
23
|
__decorate([
|
|
23
24
|
(0, class_validator_1.IsOptional)(),
|
|
24
25
|
(0, class_validator_1.IsString)(),
|
|
25
26
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
27
|
+
], UpdateServiceRequest.prototype, "name", void 0);
|
|
27
28
|
__decorate([
|
|
28
29
|
(0, class_validator_1.IsOptional)(),
|
|
29
30
|
(0, class_validator_1.IsString)(),
|
|
30
31
|
__metadata("design:type", String)
|
|
31
|
-
],
|
|
32
|
+
], UpdateServiceRequest.prototype, "description", void 0);
|
|
32
33
|
__decorate([
|
|
33
34
|
(0, class_validator_1.IsOptional)(),
|
|
34
35
|
(0, class_validator_1.IsEnum)(ServiceTypeEnum_1.ServiceTypeEnum),
|
|
35
36
|
__metadata("design:type", String)
|
|
36
|
-
],
|
|
37
|
+
], UpdateServiceRequest.prototype, "status", void 0);
|
|
37
38
|
__decorate([
|
|
38
39
|
(0, class_validator_1.IsOptional)(),
|
|
39
40
|
(0, class_validator_1.IsEnum)(ServiceTypeEnum_1.ServiceTypeEnum),
|
|
40
41
|
__metadata("design:type", String)
|
|
41
|
-
],
|
|
42
|
+
], UpdateServiceRequest.prototype, "type", void 0);
|
|
42
43
|
__decorate([
|
|
43
44
|
(0, class_validator_1.IsOptional)(),
|
|
44
|
-
(0, class_validator_1.IsEnum)(
|
|
45
|
+
(0, class_validator_1.IsEnum)(ServiceCompanyEnum_1.ServiceCompanyEnum),
|
|
45
46
|
__metadata("design:type", String)
|
|
46
|
-
],
|
|
47
|
+
], UpdateServiceRequest.prototype, "company", void 0);
|
|
47
48
|
__decorate([
|
|
48
49
|
(0, class_validator_1.IsOptional)(),
|
|
49
50
|
(0, class_validator_1.IsEnum)(ServiceFlowEnum_1.ServiceFlowEnum),
|
|
50
51
|
__metadata("design:type", String)
|
|
51
|
-
],
|
|
52
|
+
], UpdateServiceRequest.prototype, "flow", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsEnum)(ServiceRecurrenceEnum_1.ServiceRecurrenceEnum),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], UpdateServiceRequest.prototype, "recurrence", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsNumber)(),
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], UpdateServiceRequest.prototype, "defaultCollectorPreferredDay", void 0);
|
|
52
63
|
__decorate([
|
|
53
64
|
(0, class_validator_1.IsOptional)(),
|
|
54
65
|
(0, class_validator_1.IsEnum)(ServiceProviderEnum_1.ServiceProviderEnum),
|
|
55
66
|
__metadata("design:type", String)
|
|
56
|
-
],
|
|
67
|
+
], UpdateServiceRequest.prototype, "provider", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], UpdateServiceRequest.prototype, "category", void 0);
|
package/package.json
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { IsEnum, IsNumber, IsOptional, IsString} from "class-validator";
|
|
2
|
-
import { CountryId } from "../../country";
|
|
3
|
-
import { ServiceProviderEnum } from "../enums/ServiceProviderEnum";
|
|
4
2
|
import { ServiceMembershipStatusEnum } from "../enums/ServiceMembershipStatusEnum";
|
|
5
3
|
|
|
6
|
-
export class
|
|
4
|
+
export class UpdateServiceMembershipRequest {
|
|
7
5
|
|
|
8
6
|
@IsOptional()
|
|
9
7
|
@IsString()
|
|
@@ -21,16 +19,8 @@ export class UpdateMembershipDirectoryUserRequest {
|
|
|
21
19
|
@IsEnum(ServiceMembershipStatusEnum)
|
|
22
20
|
status?: ServiceMembershipStatusEnum;
|
|
23
21
|
|
|
24
|
-
@IsOptional()
|
|
25
|
-
@IsEnum(ServiceProviderEnum)
|
|
26
|
-
provider?: ServiceProviderEnum;
|
|
27
|
-
|
|
28
22
|
@IsOptional()
|
|
29
23
|
@IsNumber()
|
|
30
24
|
collectorPreferredDay?: number;
|
|
31
25
|
|
|
32
|
-
@IsOptional()
|
|
33
|
-
@IsEnum(CountryId)
|
|
34
|
-
countryId?: CountryId;
|
|
35
|
-
|
|
36
26
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IsEnum,IsOptional, IsString} from "class-validator";
|
|
2
|
-
import { CountryId } from "../../country";
|
|
1
|
+
import { IsEnum,IsNumber,IsOptional, IsString} from "class-validator";
|
|
3
2
|
import { ServiceProviderEnum } from "../enums/ServiceProviderEnum";
|
|
4
3
|
import { ServiceFlowEnum } from "../enums/ServiceFlowEnum";
|
|
5
4
|
import { ServiceTypeEnum } from "../enums/ServiceTypeEnum";
|
|
6
5
|
import { ServiceStatusEnum } from "../enums/ServiceStatusEnum";
|
|
6
|
+
import { ServiceCompanyEnum } from "../enums/ServiceCompanyEnum";
|
|
7
|
+
import { ServiceRecurrenceEnum } from "../enums/ServiceRecurrenceEnum";
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
export class UpdateMembershipRequest {
|
|
9
|
+
export class UpdateServiceRequest {
|
|
10
10
|
|
|
11
11
|
@IsOptional()
|
|
12
12
|
@IsString()
|
|
@@ -25,14 +25,26 @@ export class UpdateMembershipRequest {
|
|
|
25
25
|
type?: ServiceTypeEnum;
|
|
26
26
|
|
|
27
27
|
@IsOptional()
|
|
28
|
-
@IsEnum(
|
|
29
|
-
|
|
28
|
+
@IsEnum(ServiceCompanyEnum)
|
|
29
|
+
company?: ServiceCompanyEnum;
|
|
30
30
|
|
|
31
31
|
@IsOptional()
|
|
32
32
|
@IsEnum(ServiceFlowEnum)
|
|
33
33
|
flow?: ServiceFlowEnum;
|
|
34
34
|
|
|
35
|
+
@IsOptional()
|
|
36
|
+
@IsEnum(ServiceRecurrenceEnum)
|
|
37
|
+
recurrence?: ServiceRecurrenceEnum;
|
|
38
|
+
|
|
39
|
+
@IsNumber()
|
|
40
|
+
@IsOptional()
|
|
41
|
+
defaultCollectorPreferredDay?: number;
|
|
42
|
+
|
|
35
43
|
@IsOptional()
|
|
36
44
|
@IsEnum(ServiceProviderEnum)
|
|
37
45
|
provider?: ServiceProviderEnum;
|
|
46
|
+
|
|
47
|
+
@IsOptional()
|
|
48
|
+
@IsString()
|
|
49
|
+
category?: string;
|
|
38
50
|
}
|