@fiado/type-kit 2.0.32 → 2.0.34
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/bankAccount/dtos/ExternalAccountType.d.ts +4 -0
- package/bin/bankAccount/dtos/ExternalAccountType.js +6 -0
- package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.d.ts +6 -0
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.js +6 -0
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.d.ts +6 -0
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.js +6 -0
- package/bin/group/dtos/GroupCreateRequest.d.ts +3 -1
- package/bin/group/dtos/GroupCreateRequest.js +9 -3
- package/bin/group/dtos/GroupResponse.d.ts +4 -1
- package/bin/group/dtos/GroupUpdateRequest.d.ts +3 -1
- package/bin/group/dtos/GroupUpdateRequest.js +9 -2
- package/bin/index.js +7 -17
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +28 -0
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +6 -0
- package/bin/services/dtos/GetMembershipListAppResponse.d.ts +4 -0
- package/bin/services/dtos/GetMembershipListAppResponse.js +6 -0
- package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +4 -0
- package/bin/services/dtos/GetServiceMembershipListAResponse.js +6 -0
- package/bin/services/enums/ServiceProviderEnum.d.ts +5 -0
- package/bin/services/enums/ServiceProviderEnum.js +9 -0
- package/package.json +1 -1
- package/src/group/dtos/GroupCreateRequest.ts +7 -3
- package/src/group/dtos/GroupResponse.ts +4 -2
- package/src/group/dtos/GroupUpdateRequest.ts +7 -2
|
@@ -6,8 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
|
|
10
|
-
exports.IsValueValid = IsValueValid;
|
|
9
|
+
exports.IsValueValid = exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
|
|
11
10
|
const class_validator_1 = require("class-validator");
|
|
12
11
|
const Status_1 = require("../enums/Status");
|
|
13
12
|
const UpdateKey_1 = require("../enums/UpdateKey");
|
|
@@ -71,3 +70,4 @@ function IsValueValid(validationOptions) {
|
|
|
71
70
|
});
|
|
72
71
|
};
|
|
73
72
|
}
|
|
73
|
+
exports.IsValueValid = IsValueValid;
|
|
@@ -6,8 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.IsPhoneNumberConstraint = void 0;
|
|
10
|
-
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
9
|
+
exports.IsPhoneNumberFiado = exports.IsPhoneNumberConstraint = void 0;
|
|
11
10
|
const class_validator_1 = require("class-validator");
|
|
12
11
|
const regex_1 = require("../../helpers/constans/regex");
|
|
13
12
|
let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
|
|
@@ -37,3 +36,4 @@ function IsPhoneNumberFiado(validationOptions) {
|
|
|
37
36
|
});
|
|
38
37
|
};
|
|
39
38
|
}
|
|
39
|
+
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IdentificationDocument } from "../../identity";
|
|
2
|
+
import { CentralPaymentsDocumentImages } from "./CentralPaymentsDocumentImages";
|
|
3
|
+
export declare class CentralPaymentsDocumentUploadRequest {
|
|
4
|
+
documentInfo: IdentificationDocument;
|
|
5
|
+
documentImages: CentralPaymentsDocumentImages[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CentralPaymentsDocumentUploadRequest = void 0;
|
|
4
|
+
class CentralPaymentsDocumentUploadRequest {
|
|
5
|
+
}
|
|
6
|
+
exports.CentralPaymentsDocumentUploadRequest = CentralPaymentsDocumentUploadRequest;
|
|
@@ -6,7 +6,9 @@ export declare class GroupCreateRequest {
|
|
|
6
6
|
leaderEmail?: string | null;
|
|
7
7
|
leaderDirectoryId?: string | null;
|
|
8
8
|
status: GroupStatus;
|
|
9
|
-
codeToRefer
|
|
9
|
+
codeToRefer?: Array<string>;
|
|
10
|
+
uniqueMainDirectory?: string;
|
|
11
|
+
authorizedAccounts?: Array<string>;
|
|
10
12
|
leaderNames?: string | null;
|
|
11
13
|
phoneNumber?: string | null;
|
|
12
14
|
category?: string | null;
|
|
@@ -50,10 +50,16 @@ __decorate([
|
|
|
50
50
|
], GroupCreateRequest.prototype, "status", void 0);
|
|
51
51
|
__decorate([
|
|
52
52
|
(0, class_validator_1.IsOptional)(),
|
|
53
|
-
(
|
|
54
|
-
(0, class_transformer_1.Transform)(({ value }) => value ?? null),
|
|
55
|
-
__metadata("design:type", String)
|
|
53
|
+
__metadata("design:type", Array)
|
|
56
54
|
], GroupCreateRequest.prototype, "codeToRefer", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], GroupCreateRequest.prototype, "uniqueMainDirectory", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
__metadata("design:type", Array)
|
|
62
|
+
], GroupCreateRequest.prototype, "authorizedAccounts", void 0);
|
|
57
63
|
__decorate([
|
|
58
64
|
(0, class_validator_1.IsOptional)(),
|
|
59
65
|
(0, class_validator_1.IsString)(),
|
|
@@ -8,5 +8,8 @@ export declare class GroupResponse {
|
|
|
8
8
|
phoneNumber: string | null;
|
|
9
9
|
leaderEmail: string | null;
|
|
10
10
|
leaderDirectoryId: string | null;
|
|
11
|
-
codesToRefer: string
|
|
11
|
+
codesToRefer: Array<string>;
|
|
12
|
+
uniqueMainDirectory: string | null;
|
|
13
|
+
authorizedAccounts: Array<string>;
|
|
14
|
+
category: string;
|
|
12
15
|
}
|
|
@@ -39,9 +39,16 @@ __decorate([
|
|
|
39
39
|
], GroupUpdateRequest.prototype, "status", void 0);
|
|
40
40
|
__decorate([
|
|
41
41
|
(0, class_validator_1.IsOptional)(),
|
|
42
|
-
(
|
|
43
|
-
__metadata("design:type", String)
|
|
42
|
+
__metadata("design:type", Array)
|
|
44
43
|
], GroupUpdateRequest.prototype, "codeToRefer", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], GroupUpdateRequest.prototype, "uniqueMainDirectory", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], GroupUpdateRequest.prototype, "authorizedAccounts", void 0);
|
|
45
52
|
__decorate([
|
|
46
53
|
(0, class_validator_1.IsOptional)(),
|
|
47
54
|
(0, class_validator_1.Length)(3, 20),
|
package/bin/index.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.InvoiceCollector = exports.Collector = exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Activity = exports.Account = void 0;
|
|
37
27
|
exports.Account = __importStar(require("./account"));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Company } from "../../company";
|
|
2
|
+
import { Provider } from "../../provider";
|
|
3
|
+
import { ServiceTypeEnum } from "../../services";
|
|
4
|
+
import { ServiceRecurrenceEnum } from "../../services/enums/ServiceRecurrenceEnum";
|
|
5
|
+
export declare class GetPriceListDirectoriesResponse {
|
|
6
|
+
serviceId: string;
|
|
7
|
+
company: Company;
|
|
8
|
+
provider: Provider;
|
|
9
|
+
type: ServiceTypeEnum;
|
|
10
|
+
basePrice: number;
|
|
11
|
+
recurrence: ServiceRecurrenceEnum;
|
|
12
|
+
currencyId: string;
|
|
13
|
+
fees: any;
|
|
14
|
+
taxes: any;
|
|
15
|
+
globalDiscounts: {
|
|
16
|
+
discountType: string;
|
|
17
|
+
discountValue: number;
|
|
18
|
+
}[];
|
|
19
|
+
directories: {
|
|
20
|
+
directoryId: string;
|
|
21
|
+
appliedDiscounts: {
|
|
22
|
+
discountType: string;
|
|
23
|
+
discountValue: number;
|
|
24
|
+
source: string;
|
|
25
|
+
referenceId: string;
|
|
26
|
+
}[];
|
|
27
|
+
}[];
|
|
28
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceProviderEnum = void 0;
|
|
4
|
+
var ServiceProviderEnum;
|
|
5
|
+
(function (ServiceProviderEnum) {
|
|
6
|
+
ServiceProviderEnum["CP"] = "CP";
|
|
7
|
+
ServiceProviderEnum["TERN"] = "TERN";
|
|
8
|
+
ServiceProviderEnum["PAGOCONFIADO"] = "PAGOCONFIADO";
|
|
9
|
+
})(ServiceProviderEnum || (exports.ServiceProviderEnum = ServiceProviderEnum = {}));
|
package/package.json
CHANGED
|
@@ -30,9 +30,13 @@ export class GroupCreateRequest {
|
|
|
30
30
|
status: GroupStatus;
|
|
31
31
|
|
|
32
32
|
@IsOptional()
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
codeToRefer?: Array<string>;
|
|
34
|
+
|
|
35
|
+
@IsOptional()
|
|
36
|
+
uniqueMainDirectory?: string;
|
|
37
|
+
|
|
38
|
+
@IsOptional()
|
|
39
|
+
authorizedAccounts?: Array<string>;
|
|
36
40
|
|
|
37
41
|
@IsOptional()
|
|
38
42
|
@IsString()
|
|
@@ -2,7 +2,6 @@ import { GroupStatus } from "../enums/GroupStatus"
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
export class GroupResponse {
|
|
5
|
-
|
|
6
5
|
id: string
|
|
7
6
|
name: string
|
|
8
7
|
description: string
|
|
@@ -11,7 +10,10 @@ export class GroupResponse {
|
|
|
11
10
|
phoneNumber: string | null
|
|
12
11
|
leaderEmail: string | null
|
|
13
12
|
leaderDirectoryId: string | null
|
|
14
|
-
codesToRefer: string
|
|
13
|
+
codesToRefer: Array<string>
|
|
14
|
+
uniqueMainDirectory: string | null
|
|
15
|
+
authorizedAccounts: Array<string>
|
|
16
|
+
category: string
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
|
|
@@ -22,8 +22,13 @@ export class GroupUpdateRequest {
|
|
|
22
22
|
status: GroupStatus
|
|
23
23
|
|
|
24
24
|
@IsOptional()
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
codeToRefer: Array<string>;
|
|
26
|
+
|
|
27
|
+
@IsOptional()
|
|
28
|
+
uniqueMainDirectory: string;
|
|
29
|
+
|
|
30
|
+
@IsOptional()
|
|
31
|
+
authorizedAccounts: Array<string>;
|
|
27
32
|
|
|
28
33
|
@IsOptional()
|
|
29
34
|
@Length(3, 20)
|