@fiado/type-kit 1.8.15 → 1.8.17
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/provider/enums/ProviderCode.d.ts +6 -0
- package/bin/provider/enums/ProviderCode.js +10 -0
- package/bin/provider/index.d.ts +1 -0
- package/bin/provider/index.js +1 -0
- package/bin/services/dtos/CreateServiceRequest.d.ts +2 -2
- package/bin/services/dtos/CreateServiceRequest.js +2 -2
- package/bin/services/dtos/UpdateServiceRequest.d.ts +2 -2
- package/bin/services/dtos/UpdateServiceRequest.js +2 -2
- package/bin/services/index.d.ts +0 -1
- package/bin/services/index.js +0 -1
- package/package.json +1 -1
- package/src/provider/enums/ProviderCode.ts +6 -0
- package/src/provider/index.ts +2 -1
- package/src/services/dtos/CreateServiceRequest.ts +3 -3
- package/src/services/dtos/UpdateServiceRequest.ts +3 -3
- package/src/services/index.ts +0 -1
- package/src/services/enums/ServiceProviderEnum.ts +0 -5
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProviderCode = void 0;
|
|
4
|
+
var ProviderCode;
|
|
5
|
+
(function (ProviderCode) {
|
|
6
|
+
ProviderCode["TERN"] = "K26Y1";
|
|
7
|
+
ProviderCode["POMELO"] = "Q8798";
|
|
8
|
+
ProviderCode["STP"] = "3B07O";
|
|
9
|
+
ProviderCode["CP"] = "7842J";
|
|
10
|
+
})(ProviderCode || (exports.ProviderCode = ProviderCode = {}));
|
package/bin/provider/index.d.ts
CHANGED
package/bin/provider/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ServiceTypeEnum } from "../enums/ServiceTypeEnum";
|
|
2
2
|
import { ServiceFlowEnum } from "../enums/ServiceFlowEnum";
|
|
3
|
-
import { ServiceProviderEnum } from "../enums/ServiceProviderEnum";
|
|
4
3
|
import { ServiceStatusEnum } from "../../centralPayments";
|
|
5
4
|
import { ServiceCompanyEnum } from "../enums/ServiceCompanyEnum";
|
|
6
5
|
import { ServiceRecurrenceEnum } from "../enums/ServiceRecurrenceEnum";
|
|
6
|
+
import { Provider } from "../../provider";
|
|
7
7
|
export declare class CreateServiceRequest {
|
|
8
8
|
name: string;
|
|
9
9
|
description: string;
|
|
@@ -13,6 +13,6 @@ export declare class CreateServiceRequest {
|
|
|
13
13
|
flow: ServiceFlowEnum;
|
|
14
14
|
recurrence: ServiceRecurrenceEnum;
|
|
15
15
|
defaultCollectorPreferredDay?: number;
|
|
16
|
-
provider:
|
|
16
|
+
provider: Provider;
|
|
17
17
|
category?: string;
|
|
18
18
|
}
|
|
@@ -13,10 +13,10 @@ exports.CreateServiceRequest = void 0;
|
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const ServiceTypeEnum_1 = require("../enums/ServiceTypeEnum");
|
|
15
15
|
const ServiceFlowEnum_1 = require("../enums/ServiceFlowEnum");
|
|
16
|
-
const ServiceProviderEnum_1 = require("../enums/ServiceProviderEnum");
|
|
17
16
|
const centralPayments_1 = require("../../centralPayments");
|
|
18
17
|
const ServiceCompanyEnum_1 = require("../enums/ServiceCompanyEnum");
|
|
19
18
|
const ServiceRecurrenceEnum_1 = require("../enums/ServiceRecurrenceEnum");
|
|
19
|
+
const provider_1 = require("../../provider");
|
|
20
20
|
class CreateServiceRequest {
|
|
21
21
|
}
|
|
22
22
|
exports.CreateServiceRequest = CreateServiceRequest;
|
|
@@ -62,7 +62,7 @@ __decorate([
|
|
|
62
62
|
], CreateServiceRequest.prototype, "defaultCollectorPreferredDay", void 0);
|
|
63
63
|
__decorate([
|
|
64
64
|
(0, class_validator_1.IsNotEmpty)(),
|
|
65
|
-
(0, class_validator_1.IsEnum)(
|
|
65
|
+
(0, class_validator_1.IsEnum)(provider_1.Provider),
|
|
66
66
|
__metadata("design:type", String)
|
|
67
67
|
], CreateServiceRequest.prototype, "provider", void 0);
|
|
68
68
|
__decorate([
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ServiceProviderEnum } from "../enums/ServiceProviderEnum";
|
|
2
1
|
import { ServiceFlowEnum } from "../enums/ServiceFlowEnum";
|
|
3
2
|
import { ServiceTypeEnum } from "../enums/ServiceTypeEnum";
|
|
4
3
|
import { ServiceStatusEnum } from "../enums/ServiceStatusEnum";
|
|
5
4
|
import { ServiceCompanyEnum } from "../enums/ServiceCompanyEnum";
|
|
6
5
|
import { ServiceRecurrenceEnum } from "../enums/ServiceRecurrenceEnum";
|
|
6
|
+
import { Provider } from "../../provider";
|
|
7
7
|
export declare class UpdateServiceRequest {
|
|
8
8
|
name?: string;
|
|
9
9
|
description?: string;
|
|
@@ -13,6 +13,6 @@ export declare class UpdateServiceRequest {
|
|
|
13
13
|
flow?: ServiceFlowEnum;
|
|
14
14
|
recurrence?: ServiceRecurrenceEnum;
|
|
15
15
|
defaultCollectorPreferredDay?: number;
|
|
16
|
-
provider?:
|
|
16
|
+
provider?: Provider;
|
|
17
17
|
category?: string;
|
|
18
18
|
}
|
|
@@ -11,12 +11,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UpdateServiceRequest = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const ServiceProviderEnum_1 = require("../enums/ServiceProviderEnum");
|
|
15
14
|
const ServiceFlowEnum_1 = require("../enums/ServiceFlowEnum");
|
|
16
15
|
const ServiceTypeEnum_1 = require("../enums/ServiceTypeEnum");
|
|
17
16
|
const ServiceStatusEnum_1 = require("../enums/ServiceStatusEnum");
|
|
18
17
|
const ServiceCompanyEnum_1 = require("../enums/ServiceCompanyEnum");
|
|
19
18
|
const ServiceRecurrenceEnum_1 = require("../enums/ServiceRecurrenceEnum");
|
|
19
|
+
const provider_1 = require("../../provider");
|
|
20
20
|
class UpdateServiceRequest {
|
|
21
21
|
}
|
|
22
22
|
exports.UpdateServiceRequest = UpdateServiceRequest;
|
|
@@ -62,7 +62,7 @@ __decorate([
|
|
|
62
62
|
], UpdateServiceRequest.prototype, "defaultCollectorPreferredDay", void 0);
|
|
63
63
|
__decorate([
|
|
64
64
|
(0, class_validator_1.IsOptional)(),
|
|
65
|
-
(0, class_validator_1.IsEnum)(
|
|
65
|
+
(0, class_validator_1.IsEnum)(provider_1.Provider),
|
|
66
66
|
__metadata("design:type", String)
|
|
67
67
|
], UpdateServiceRequest.prototype, "provider", void 0);
|
|
68
68
|
__decorate([
|
package/bin/services/index.d.ts
CHANGED
|
@@ -9,5 +9,4 @@ export * from './dtos/RegisterServiceMembershipRequest';
|
|
|
9
9
|
export * from './enums/ServiceFlowEnum';
|
|
10
10
|
export * from './enums/ServiceStatusEnum';
|
|
11
11
|
export * from './enums/ServiceTypeEnum';
|
|
12
|
-
export * from './enums/ServiceProviderEnum';
|
|
13
12
|
export * from './enums/ServiceMembershipStatusEnum';
|
package/bin/services/index.js
CHANGED
|
@@ -27,5 +27,4 @@ __exportStar(require("./dtos/RegisterServiceMembershipRequest"), exports);
|
|
|
27
27
|
__exportStar(require("./enums/ServiceFlowEnum"), exports);
|
|
28
28
|
__exportStar(require("./enums/ServiceStatusEnum"), exports);
|
|
29
29
|
__exportStar(require("./enums/ServiceTypeEnum"), exports);
|
|
30
|
-
__exportStar(require("./enums/ServiceProviderEnum"), exports);
|
|
31
30
|
__exportStar(require("./enums/ServiceMembershipStatusEnum"), exports);
|
package/package.json
CHANGED
package/src/provider/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString} from "class-validator";
|
|
2
2
|
import { ServiceTypeEnum } from "../enums/ServiceTypeEnum";
|
|
3
3
|
import { ServiceFlowEnum } from "../enums/ServiceFlowEnum";
|
|
4
|
-
import { ServiceProviderEnum } from "../enums/ServiceProviderEnum";
|
|
5
4
|
import { ServiceStatusEnum } from "../../centralPayments";
|
|
6
5
|
import { ServiceCompanyEnum } from "../enums/ServiceCompanyEnum";
|
|
7
6
|
import { ServiceRecurrenceEnum } from "../enums/ServiceRecurrenceEnum";
|
|
7
|
+
import { Provider } from "../../provider";
|
|
8
8
|
|
|
9
9
|
export class CreateServiceRequest {
|
|
10
10
|
|
|
@@ -41,8 +41,8 @@ export class CreateServiceRequest {
|
|
|
41
41
|
defaultCollectorPreferredDay?: number;
|
|
42
42
|
|
|
43
43
|
@IsNotEmpty()
|
|
44
|
-
@IsEnum(
|
|
45
|
-
provider:
|
|
44
|
+
@IsEnum(Provider)
|
|
45
|
+
provider: Provider;
|
|
46
46
|
|
|
47
47
|
@IsString()
|
|
48
48
|
@IsOptional()
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IsEnum,IsNumber,IsOptional, IsString} from "class-validator";
|
|
2
|
-
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";
|
|
7
6
|
import { ServiceRecurrenceEnum } from "../enums/ServiceRecurrenceEnum";
|
|
7
|
+
import { Provider } from "../../provider";
|
|
8
8
|
|
|
9
9
|
export class UpdateServiceRequest {
|
|
10
10
|
|
|
@@ -41,8 +41,8 @@ export class UpdateServiceRequest {
|
|
|
41
41
|
defaultCollectorPreferredDay?: number;
|
|
42
42
|
|
|
43
43
|
@IsOptional()
|
|
44
|
-
@IsEnum(
|
|
45
|
-
provider?:
|
|
44
|
+
@IsEnum(Provider)
|
|
45
|
+
provider?: Provider;
|
|
46
46
|
|
|
47
47
|
@IsOptional()
|
|
48
48
|
@IsString()
|
package/src/services/index.ts
CHANGED
|
@@ -15,7 +15,6 @@ export * from './dtos/RegisterServiceMembershipRequest';
|
|
|
15
15
|
export * from './enums/ServiceFlowEnum';
|
|
16
16
|
export * from './enums/ServiceStatusEnum';
|
|
17
17
|
export * from './enums/ServiceTypeEnum';
|
|
18
|
-
export * from './enums/ServiceProviderEnum';
|
|
19
18
|
export * from './enums/ServiceMembershipStatusEnum';
|
|
20
19
|
|
|
21
20
|
|