@fiado/type-kit 2.1.6 → 2.1.8
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/authentication/dtos/SignUpUserBackofficeRequest.d.ts +13 -0
- package/bin/authentication/dtos/SignUpUserBackofficeRequest.js +71 -0
- package/bin/authentication/index.d.ts +1 -0
- package/bin/authentication/index.js +1 -0
- package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/cognitoConnector/index.d.ts +0 -1
- package/bin/cognitoConnector/index.js +0 -1
- package/bin/index.js +17 -7
- package/package.json +1 -1
- package/src/{cognitoConnector/dtos/SignUpBackofficeRequest.ts → authentication/dtos/SignUpUserBackofficeRequest.ts} +11 -2
- package/src/authentication/index.ts +4 -0
- package/src/cognitoConnector/index.ts +0 -1
- package/bin/bankAccount/dtos/ExternalAccountType.d.ts +0 -4
- package/bin/bankAccount/dtos/ExternalAccountType.js +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.d.ts +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.js +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.d.ts +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.js +0 -6
- package/bin/directorySetting/dtos/DirectorySettingCreateResponse.d.ts +0 -0
- package/bin/directorySetting/dtos/DirectorySettingCreateResponse.js +0 -0
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +0 -28
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +0 -6
- package/bin/services/dtos/GetMembershipListAppResponse.d.ts +0 -4
- package/bin/services/dtos/GetMembershipListAppResponse.js +0 -6
- package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +0 -4
- package/bin/services/dtos/GetServiceMembershipListAResponse.js +0 -6
- package/bin/services/enums/ServiceProviderEnum.d.ts +0 -5
- package/bin/services/enums/ServiceProviderEnum.js +0 -9
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class SignUpUserBackofficeRequest {
|
|
2
|
+
name: string;
|
|
3
|
+
phoneNumber: string;
|
|
4
|
+
countryOfBirth: string;
|
|
5
|
+
MEX_DebitAccountWish: boolean;
|
|
6
|
+
USA_DebitAccountWish: boolean;
|
|
7
|
+
countryOfDomicile: string;
|
|
8
|
+
myReferralCode?: string;
|
|
9
|
+
referralCode?: string;
|
|
10
|
+
groupId?: string;
|
|
11
|
+
isAgent: boolean;
|
|
12
|
+
agentGroupId?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SignUpUserBackofficeRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SignUpUserBackofficeRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.SignUpUserBackofficeRequest = SignUpUserBackofficeRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], SignUpUserBackofficeRequest.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SignUpUserBackofficeRequest.prototype, "phoneNumber", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SignUpUserBackofficeRequest.prototype, "countryOfBirth", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsBoolean)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], SignUpUserBackofficeRequest.prototype, "MEX_DebitAccountWish", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsBoolean)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], SignUpUserBackofficeRequest.prototype, "USA_DebitAccountWish", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], SignUpUserBackofficeRequest.prototype, "countryOfDomicile", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], SignUpUserBackofficeRequest.prototype, "myReferralCode", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], SignUpUserBackofficeRequest.prototype, "referralCode", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], SignUpUserBackofficeRequest.prototype, "groupId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsBoolean)(),
|
|
64
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
65
|
+
__metadata("design:type", Boolean)
|
|
66
|
+
], SignUpUserBackofficeRequest.prototype, "isAgent", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsString)(),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], SignUpUserBackofficeRequest.prototype, "agentGroupId", void 0);
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./dtos/SignUpAdditionalRequest"), exports);
|
|
|
23
23
|
__exportStar(require("./dtos/SignUpAdditionalResponse"), exports);
|
|
24
24
|
__exportStar(require("./dtos/SignUpRequest"), exports);
|
|
25
25
|
__exportStar(require("./dtos/UserConfirmRequest"), exports);
|
|
26
|
+
__exportStar(require("./dtos/SignUpUserBackofficeRequest"), exports);
|
|
@@ -6,7 +6,8 @@ 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.
|
|
9
|
+
exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
|
|
10
|
+
exports.IsValueValid = IsValueValid;
|
|
10
11
|
const class_validator_1 = require("class-validator");
|
|
11
12
|
const Status_1 = require("../enums/Status");
|
|
12
13
|
const UpdateKey_1 = require("../enums/UpdateKey");
|
|
@@ -70,4 +71,3 @@ function IsValueValid(validationOptions) {
|
|
|
70
71
|
});
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
|
-
exports.IsValueValid = IsValueValid;
|
|
@@ -6,7 +6,8 @@ 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.
|
|
9
|
+
exports.IsPhoneNumberConstraint = void 0;
|
|
10
|
+
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
10
11
|
const class_validator_1 = require("class-validator");
|
|
11
12
|
const regex_1 = require("../../helpers/constans/regex");
|
|
12
13
|
let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
|
|
@@ -36,4 +37,3 @@ function IsPhoneNumberFiado(validationOptions) {
|
|
|
36
37
|
});
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
@@ -10,5 +10,4 @@ export * from '../cognitoConnector/dtos/SignInResponse';
|
|
|
10
10
|
export * from '../cognitoConnector/dtos/SignUpConfirmRequest';
|
|
11
11
|
export * from '../cognitoConnector/dtos/SignUpRequest';
|
|
12
12
|
export * from '../cognitoConnector/dtos/SignUpResponse';
|
|
13
|
-
export * from '../cognitoConnector/dtos/SignUpBackofficeRequest';
|
|
14
13
|
export * from '../cognitoConnector/enums/SyncStatus';
|
|
@@ -27,6 +27,5 @@ __exportStar(require("../cognitoConnector/dtos/SignInResponse"), exports);
|
|
|
27
27
|
__exportStar(require("../cognitoConnector/dtos/SignUpConfirmRequest"), exports);
|
|
28
28
|
__exportStar(require("../cognitoConnector/dtos/SignUpRequest"), exports);
|
|
29
29
|
__exportStar(require("../cognitoConnector/dtos/SignUpResponse"), exports);
|
|
30
|
-
__exportStar(require("../cognitoConnector/dtos/SignUpBackofficeRequest"), exports);
|
|
31
30
|
//enums
|
|
32
31
|
__exportStar(require("../cognitoConnector/enums/SyncStatus"), exports);
|
package/bin/index.js
CHANGED
|
@@ -15,13 +15,23 @@ 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) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
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
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
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;
|
|
27
37
|
exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsArray,IsNotEmpty, IsOptional, IsEnum, IsString, IsBoolean } from "class-validator";
|
|
2
|
+
import { Scope } from "../../directory/enums/Scope";
|
|
2
3
|
|
|
3
|
-
export class
|
|
4
|
+
export class SignUpUserBackofficeRequest {
|
|
4
5
|
|
|
5
6
|
@IsString()
|
|
6
7
|
@IsNotEmpty()
|
|
@@ -45,5 +46,13 @@ export class SignUpBackofficeRequest {
|
|
|
45
46
|
@IsString()
|
|
46
47
|
@IsOptional()
|
|
47
48
|
agentGroupId?: string
|
|
49
|
+
|
|
50
|
+
@IsOptional()
|
|
51
|
+
@IsArray()
|
|
52
|
+
@IsEnum(Scope, { each: true })
|
|
53
|
+
scope?: Array<Scope>;
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
48
57
|
}
|
|
49
58
|
|
|
@@ -5,10 +5,14 @@ export * from './dtos/RefreshTokenRequest';
|
|
|
5
5
|
export * from './dtos/RespondToAuthChallengeRequest';
|
|
6
6
|
export * from './dtos/SignInRequest';
|
|
7
7
|
|
|
8
|
+
|
|
8
9
|
export * from './dtos/SignUpAdditionalRequest';
|
|
9
10
|
export * from './dtos/SignUpAdditionalResponse';
|
|
10
11
|
export * from './dtos/SignUpRequest';
|
|
11
12
|
export * from './dtos/UserConfirmRequest';
|
|
12
13
|
|
|
14
|
+
export * from './dtos/SignUpUserBackofficeRequest';
|
|
15
|
+
|
|
16
|
+
|
|
13
17
|
|
|
14
18
|
|
|
@@ -13,7 +13,6 @@ export * from '../cognitoConnector/dtos/SignInResponse';
|
|
|
13
13
|
export * from '../cognitoConnector/dtos/SignUpConfirmRequest';
|
|
14
14
|
export * from '../cognitoConnector/dtos/SignUpRequest';
|
|
15
15
|
export * from '../cognitoConnector/dtos/SignUpResponse';
|
|
16
|
-
export * from '../cognitoConnector/dtos/SignUpBackofficeRequest';
|
|
17
16
|
|
|
18
17
|
//enums
|
|
19
18
|
export * from '../cognitoConnector/enums/SyncStatus';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IdentificationDocument } from "../../identity";
|
|
2
|
-
import { CentralPaymentsDocumentImages } from "./CentralPaymentsDocumentImages";
|
|
3
|
-
export declare class CentralPaymentsDocumentUploadRequest {
|
|
4
|
-
documentInfo: IdentificationDocument;
|
|
5
|
-
documentImages: CentralPaymentsDocumentImages[];
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CentralPaymentsDocumentUploadRequest = void 0;
|
|
4
|
-
class CentralPaymentsDocumentUploadRequest {
|
|
5
|
-
}
|
|
6
|
-
exports.CentralPaymentsDocumentUploadRequest = CentralPaymentsDocumentUploadRequest;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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 = {}));
|