@fiado/type-kit 1.0.55 → 1.0.57
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/account/dtos/AccountCreateRequest.d.ts +5 -0
- package/bin/account/dtos/AccountCreateRequest.js +18 -0
- package/bin/account/dtos/AccountCreateResponse.d.ts +7 -2
- package/bin/account/dtos/AccountCreateResponse.js +1 -2
- package/bin/card/enums/CreditOrDebit.d.ts +4 -0
- package/bin/card/enums/CreditOrDebit.js +8 -0
- package/bin/card/enums/NominatedOrInnominated.d.ts +4 -0
- package/bin/card/enums/NominatedOrInnominated.js +8 -0
- package/bin/card/enums/ShippingStatus.d.ts +6 -0
- package/bin/card/enums/ShippingStatus.js +10 -0
- package/bin/card/enums/VirtualOrPhysical.d.ts +4 -0
- package/bin/card/enums/VirtualOrPhysical.js +8 -0
- package/bin/card/index.d.ts +5 -0
- package/bin/card/index.js +5 -0
- package/package.json +1 -1
- package/src/account/dtos/AccountCreateRequest.ts +15 -2
- package/src/account/dtos/AccountCreateResponse.ts +7 -5
- package/src/card/enums/CreditOrDebit.ts +6 -0
- package/src/card/enums/NominatedOrInnominated.ts +9 -0
- package/src/card/enums/ShippingStatus.ts +9 -0
- package/src/card/enums/VirtualOrPhysical.ts +7 -0
- package/src/card/index.ts +7 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +0 -22
- package/src/account/dtos/AccountResponse.ts +0 -26
- package/src/account/dtos/PocketCreateRequest.ts +0 -19
- package/src/account/dtos/PocketCreateResponse.ts +0 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AddressResponse } from "../../address/dtos/AddressResponse";
|
|
2
2
|
import { Country } from "../../country/enums/Country";
|
|
3
|
+
import { SexDocument } from '../../identity';
|
|
3
4
|
export declare class AccountCreateRequest {
|
|
4
5
|
directoryId: string;
|
|
5
6
|
typeOfDirectoryId: string;
|
|
@@ -10,5 +11,9 @@ export declare class AccountCreateRequest {
|
|
|
10
11
|
email: string;
|
|
11
12
|
dob: string;
|
|
12
13
|
documentNumber: string;
|
|
14
|
+
documentType: string;
|
|
15
|
+
gender: SexDocument;
|
|
16
|
+
externalClientId: string;
|
|
17
|
+
externalUserId: string;
|
|
13
18
|
countryId: Country;
|
|
14
19
|
}
|
|
@@ -16,6 +16,7 @@ const Country_1 = require("../../country/enums/Country");
|
|
|
16
16
|
const regex_1 = require("../../helpers/constans/regex");
|
|
17
17
|
const TypeOfDirectoryId_1 = require("../../directory/enums/TypeOfDirectoryId");
|
|
18
18
|
const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
|
|
19
|
+
const identity_1 = require("../../identity");
|
|
19
20
|
class AccountCreateRequest {
|
|
20
21
|
}
|
|
21
22
|
exports.AccountCreateRequest = AccountCreateRequest;
|
|
@@ -59,6 +60,23 @@ __decorate([
|
|
|
59
60
|
(0, class_validator_1.Length)(1, 30),
|
|
60
61
|
__metadata("design:type", String)
|
|
61
62
|
], AccountCreateRequest.prototype, "documentNumber", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
(0, class_validator_1.Length)(1, 30),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], AccountCreateRequest.prototype, "documentType", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsEnum)(identity_1.SexDocument),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], AccountCreateRequest.prototype, "gender", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], AccountCreateRequest.prototype, "externalClientId", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], AccountCreateRequest.prototype, "externalUserId", void 0);
|
|
62
80
|
__decorate([
|
|
63
81
|
(0, class_validator_1.IsEnum)(Country_1.Country),
|
|
64
82
|
__metadata("design:type", String)
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare class AccountCreateResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
externalId: string;
|
|
4
|
+
externalUserId: string;
|
|
5
|
+
directoryId: string;
|
|
6
|
+
typeOfDirectoryId: string;
|
|
7
|
+
countryId: string;
|
|
3
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AccountCreateResponse = void 0;
|
|
4
|
-
|
|
5
|
-
class AccountCreateResponse extends AccountResponse_1.AccountResponse {
|
|
4
|
+
class AccountCreateResponse {
|
|
6
5
|
}
|
|
7
6
|
exports.AccountCreateResponse = AccountCreateResponse;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditOrDebit = void 0;
|
|
4
|
+
var CreditOrDebit;
|
|
5
|
+
(function (CreditOrDebit) {
|
|
6
|
+
CreditOrDebit["CREDIT"] = "CREDIT";
|
|
7
|
+
CreditOrDebit["DEBIT"] = "DEBIT";
|
|
8
|
+
})(CreditOrDebit || (exports.CreditOrDebit = CreditOrDebit = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NominatedOrInnominated = void 0;
|
|
4
|
+
var NominatedOrInnominated;
|
|
5
|
+
(function (NominatedOrInnominated) {
|
|
6
|
+
NominatedOrInnominated["NOMINATED"] = "NOMINATED";
|
|
7
|
+
NominatedOrInnominated["INNOMINATED"] = "INNOMINATED";
|
|
8
|
+
})(NominatedOrInnominated || (exports.NominatedOrInnominated = NominatedOrInnominated = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShippinStatus = void 0;
|
|
4
|
+
var ShippinStatus;
|
|
5
|
+
(function (ShippinStatus) {
|
|
6
|
+
ShippinStatus["REQUESTED"] = "REQUESTED";
|
|
7
|
+
ShippinStatus["IN_TRANSIT"] = "IN_TRANSIT";
|
|
8
|
+
ShippinStatus["DELIVERED"] = "DELIVERED";
|
|
9
|
+
ShippinStatus["WITH_ISSUE"] = "WITH_ISSUE";
|
|
10
|
+
})(ShippinStatus || (exports.ShippinStatus = ShippinStatus = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VirtualOrPhysical = void 0;
|
|
4
|
+
var VirtualOrPhysical;
|
|
5
|
+
(function (VirtualOrPhysical) {
|
|
6
|
+
VirtualOrPhysical["VIRTUAL"] = "VIRTUAL";
|
|
7
|
+
VirtualOrPhysical["PHYSICAL"] = "PHYSICAL";
|
|
8
|
+
})(VirtualOrPhysical || (exports.VirtualOrPhysical = VirtualOrPhysical = {}));
|
package/bin/card/index.d.ts
CHANGED
|
@@ -15,3 +15,8 @@ export * from './enums/OwnershipType';
|
|
|
15
15
|
export * from './enums/Brand';
|
|
16
16
|
export * from './enums/UpdateKey';
|
|
17
17
|
export * from './enums/CardIssuanceStatus';
|
|
18
|
+
export * from './enums/NominatedOrInnominated';
|
|
19
|
+
export * from './enums/CreditOrDebit';
|
|
20
|
+
export * from './enums/ShippingStatus';
|
|
21
|
+
export * from './enums/Status';
|
|
22
|
+
export * from './enums/VirtualOrPhysical';
|
package/bin/card/index.js
CHANGED
|
@@ -33,3 +33,8 @@ __exportStar(require("./enums/OwnershipType"), exports);
|
|
|
33
33
|
__exportStar(require("./enums/Brand"), exports);
|
|
34
34
|
__exportStar(require("./enums/UpdateKey"), exports);
|
|
35
35
|
__exportStar(require("./enums/CardIssuanceStatus"), exports);
|
|
36
|
+
__exportStar(require("./enums/NominatedOrInnominated"), exports);
|
|
37
|
+
__exportStar(require("./enums/CreditOrDebit"), exports);
|
|
38
|
+
__exportStar(require("./enums/ShippingStatus"), exports);
|
|
39
|
+
__exportStar(require("./enums/Status"), exports);
|
|
40
|
+
__exportStar(require("./enums/VirtualOrPhysical"), exports);
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import { Country } from "../../country/enums/Country";
|
|
|
4
4
|
import { regexUuidV4 } from '../../helpers/constans/regex';
|
|
5
5
|
import { TypeOfDirectoryId } from '../../directory/enums/TypeOfDirectoryId';
|
|
6
6
|
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
7
|
+
import { SexDocument } from '../../identity';
|
|
7
8
|
|
|
8
9
|
export class AccountCreateRequest {
|
|
9
10
|
|
|
@@ -21,7 +22,6 @@ export class AccountCreateRequest {
|
|
|
21
22
|
firstName: string;
|
|
22
23
|
|
|
23
24
|
@IsString()
|
|
24
|
-
|
|
25
25
|
lastName: string;
|
|
26
26
|
|
|
27
27
|
@IsPhoneNumberFiado()
|
|
@@ -40,6 +40,19 @@ export class AccountCreateRequest {
|
|
|
40
40
|
@Length(1, 30)
|
|
41
41
|
documentNumber: string;
|
|
42
42
|
|
|
43
|
+
@IsString()
|
|
44
|
+
@Length(1, 30)
|
|
45
|
+
documentType: string;
|
|
46
|
+
|
|
47
|
+
@IsEnum(SexDocument)
|
|
48
|
+
gender: SexDocument;
|
|
49
|
+
|
|
50
|
+
@IsString()
|
|
51
|
+
externalClientId: string;
|
|
52
|
+
|
|
53
|
+
@IsString()
|
|
54
|
+
externalUserId: string;
|
|
55
|
+
|
|
43
56
|
@IsEnum(Country)
|
|
44
57
|
countryId: Country;
|
|
45
|
-
}
|
|
58
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export class AccountCreateResponse{
|
|
2
|
+
id: string;
|
|
3
|
+
externalId: string;
|
|
4
|
+
externalUserId: string;
|
|
5
|
+
directoryId:string;
|
|
6
|
+
typeOfDirectoryId:string
|
|
7
|
+
countryId:string
|
|
6
8
|
}
|
package/src/card/index.ts
CHANGED
|
@@ -19,3 +19,10 @@ export * from './enums/OwnershipType';
|
|
|
19
19
|
export * from './enums/Brand';
|
|
20
20
|
export * from './enums/UpdateKey';
|
|
21
21
|
export * from './enums/CardIssuanceStatus';
|
|
22
|
+
export * from './enums/NominatedOrInnominated'
|
|
23
|
+
export * from './enums/CreditOrDebit'
|
|
24
|
+
export * from './enums/ShippingStatus'
|
|
25
|
+
export * from './enums/Status'
|
|
26
|
+
export * from './enums/VirtualOrPhysical'
|
|
27
|
+
|
|
28
|
+
|
|
@@ -1,22 +0,0 @@
|
|
|
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.GroupDirectoryRetationsUpdateRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class GroupDirectoryRetationsUpdateRequest {
|
|
15
|
-
}
|
|
16
|
-
exports.GroupDirectoryRetationsUpdateRequest = GroupDirectoryRetationsUpdateRequest;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsOptional)(),
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
(0, class_validator_1.Length)(1, 20),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], GroupDirectoryRetationsUpdateRequest.prototype, "agent", void 0);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Provider } from '../../provider/enums/Provider';
|
|
4
|
-
import { Country } from '../../country/enums/Country';
|
|
5
|
-
import { AccountStatus } from '../enums/AccountStatus';
|
|
6
|
-
import { TypeOfDirectoryId } from '../../directory/enums/TypeOfDirectoryId';
|
|
7
|
-
|
|
8
|
-
export class AccountResponse {
|
|
9
|
-
|
|
10
|
-
id: string;
|
|
11
|
-
typeOfAccountId: string;
|
|
12
|
-
externalAccountId: string;
|
|
13
|
-
externalSubAccountId: string | null;
|
|
14
|
-
provider: Provider;
|
|
15
|
-
directoryId: string;
|
|
16
|
-
typeOfDirectoryId: TypeOfDirectoryId;
|
|
17
|
-
currentBalance: number;
|
|
18
|
-
balanceLock: number;
|
|
19
|
-
countryId: Country;
|
|
20
|
-
createDate: string;
|
|
21
|
-
lastUpdateDate: string;
|
|
22
|
-
accountNumber: string
|
|
23
|
-
routingNumber: string;
|
|
24
|
-
status: AccountStatus;
|
|
25
|
-
|
|
26
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { IsString, Matches } from "class-validator";
|
|
2
|
-
import { regexUuidV4 } from "../../helpers/constans/regex";
|
|
3
|
-
|
|
4
|
-
export class PocketCreateRequest {
|
|
5
|
-
|
|
6
|
-
@IsString()
|
|
7
|
-
@Matches(regexUuidV4,
|
|
8
|
-
{
|
|
9
|
-
message: 'beneficiaryDirectoryId must be a valid UUID v4',
|
|
10
|
-
})
|
|
11
|
-
beneficiaryDirectoryId?: string;
|
|
12
|
-
|
|
13
|
-
@IsString()
|
|
14
|
-
@Matches(regexUuidV4,
|
|
15
|
-
{
|
|
16
|
-
message: 'accountId must be a valid UUID v4',
|
|
17
|
-
})
|
|
18
|
-
accountId: string;
|
|
19
|
-
}
|