@fiado/type-kit 1.8.16 → 1.8.18

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,9 +1,11 @@
1
1
  import { CountryId } from "../../country";
2
2
  import { BankAccountP2pTransferType } from "../enums/BankAccountP2pTransferType";
3
+ import { Provider } from "../../provider";
3
4
  export declare class ExecuteP2pOperationRequest {
4
5
  transferType: BankAccountP2pTransferType;
5
6
  source: string;
6
7
  target: string;
7
8
  amount: number;
8
9
  currencyId: CountryId;
10
+ provider: Provider;
9
11
  }
@@ -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: ServiceProviderEnum;
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)(ServiceProviderEnum_1.ServiceProviderEnum),
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?: ServiceProviderEnum;
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)(ServiceProviderEnum_1.ServiceProviderEnum),
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([
@@ -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';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.8.16",
3
+ "version": "1.8.18",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,5 +1,6 @@
1
1
  import {CountryId} from "../../country";
2
2
  import {BankAccountP2pTransferType} from "../enums/BankAccountP2pTransferType";
3
+ import {Provider} from "../../provider";
3
4
 
4
5
  export class ExecuteP2pOperationRequest {
5
6
  transferType: BankAccountP2pTransferType;
@@ -7,4 +8,5 @@ export class ExecuteP2pOperationRequest {
7
8
  target: string;
8
9
  amount: number;
9
10
  currencyId: CountryId;
11
+ provider: Provider;
10
12
  }
@@ -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(ServiceProviderEnum)
45
- provider: ServiceProviderEnum;
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(ServiceProviderEnum)
45
- provider?: ServiceProviderEnum;
44
+ @IsEnum(Provider)
45
+ provider?: Provider;
46
46
 
47
47
  @IsOptional()
48
48
  @IsString()
@@ -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
 
@@ -1,5 +0,0 @@
1
- export enum ServiceProviderEnum {
2
- CP = "CP",
3
- TERN = "TERN",
4
- PAGOCONFIADO = "PAGOCONFIADO"
5
- }