@fiado/type-kit 1.0.62 → 1.0.64
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 +2 -2
- package/bin/account/dtos/AccountCreateRequest.js +6 -6
- package/bin/account/entities/AccountEntityBase.d.ts +10 -0
- package/bin/account/entities/AccountEntityBase.js +6 -0
- package/bin/account/enums/AccountEntityStatusEnum.d.ts +4 -0
- package/bin/account/enums/AccountEntityStatusEnum.js +8 -0
- package/bin/account/index.d.ts +4 -0
- package/bin/account/index.js +5 -0
- package/bin/address/dtos/AddressShippingCardRequest.d.ts +9 -0
- package/bin/address/dtos/AddressShippingCardRequest.js +7 -0
- package/bin/address/index.d.ts +1 -0
- package/bin/address/index.js +1 -0
- package/bin/card/enums/DeliveryChannel.d.ts +5 -0
- package/bin/card/enums/DeliveryChannel.js +9 -0
- package/bin/card/enums/ExternalShippingStatus.d.ts +14 -0
- package/bin/card/enums/ExternalShippingStatus.js +18 -0
- package/bin/card/enums/ExternalShippingStatusDetails.d.ts +54 -0
- package/bin/card/enums/ExternalShippingStatusDetails.js +58 -0
- package/bin/card/index.d.ts +3 -0
- package/bin/card/index.js +3 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
- package/bin/identity/dtos/PeopleUpdateRequest.d.ts +73 -0
- package/bin/identity/dtos/PeopleUpdateRequest.js +6 -0
- package/bin/identity/index.d.ts +1 -0
- package/bin/identity/index.js +1 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +2 -1
- package/bin/tern/dtos/TernAddress.d.ts +8 -0
- package/bin/tern/dtos/TernAddress.js +40 -0
- package/bin/tern/dtos/TernCreateAccountRequest.d.ts +7 -0
- package/bin/tern/dtos/TernCreateAccountRequest.js +33 -0
- package/bin/tern/dtos/TernCreateAccountResponse.d.ts +5 -0
- package/bin/tern/dtos/TernCreateAccountResponse.js +25 -0
- package/bin/tern/dtos/TernCreateUserRequest.d.ts +15 -0
- package/bin/tern/dtos/TernCreateUserRequest.js +70 -0
- package/bin/tern/dtos/TernCreateUserResponse.d.ts +8 -0
- package/bin/tern/dtos/TernCreateUserResponse.js +37 -0
- package/bin/tern/dtos/TernGetAccountRequest.d.ts +5 -0
- package/bin/tern/dtos/TernGetAccountRequest.js +25 -0
- package/bin/tern/dtos/TernGetAccountResponse.d.ts +22 -0
- package/bin/tern/dtos/TernGetAccountResponse.js +87 -0
- package/bin/tern/dtos/TernGetUserRequest.d.ts +3 -0
- package/bin/tern/dtos/TernGetUserRequest.js +20 -0
- package/bin/tern/dtos/TernGetUserResponse.d.ts +24 -0
- package/bin/tern/dtos/TernGetUserResponse.js +96 -0
- package/bin/tern/enums/TernAccountStatusEnum.d.ts +4 -0
- package/bin/tern/enums/TernAccountStatusEnum.js +8 -0
- package/bin/tern/enums/TernAccountTypeEnum.d.ts +5 -0
- package/bin/tern/enums/TernAccountTypeEnum.js +9 -0
- package/bin/tern/index.d.ts +11 -0
- package/bin/tern/index.js +29 -0
- package/package.json +1 -1
- package/src/account/entities/AccountEntityBase.ts +11 -0
- package/src/account/enums/AccountEntityStatusEnum.ts +4 -0
- package/src/account/index.ts +7 -0
- package/src/identity/dtos/PeopleUpdateRequest.ts +76 -0
- package/src/identity/index.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AddressResponse } from "../../address
|
|
2
|
-
import { Country } from "../../country
|
|
1
|
+
import { AddressResponse } from "../../address";
|
|
2
|
+
import { Country } from "../../country";
|
|
3
3
|
import { SexDocument } from '../../identity';
|
|
4
4
|
export declare class AccountCreateRequest {
|
|
5
5
|
directoryId: string;
|
|
@@ -11,10 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AccountCreateRequest = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
14
|
+
const address_1 = require("../../address");
|
|
15
|
+
const country_1 = require("../../country");
|
|
16
16
|
const regex_1 = require("../../helpers/constans/regex");
|
|
17
|
-
const
|
|
17
|
+
const directory_1 = require("../../directory");
|
|
18
18
|
const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
|
|
19
19
|
const identity_1 = require("../../identity");
|
|
20
20
|
class AccountCreateRequest {
|
|
@@ -28,7 +28,7 @@ __decorate([
|
|
|
28
28
|
__metadata("design:type", String)
|
|
29
29
|
], AccountCreateRequest.prototype, "directoryId", void 0);
|
|
30
30
|
__decorate([
|
|
31
|
-
(0, class_validator_1.IsEnum)(
|
|
31
|
+
(0, class_validator_1.IsEnum)(directory_1.TypeOfDirectoryId),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], AccountCreateRequest.prototype, "typeOfDirectoryId", void 0);
|
|
34
34
|
__decorate([
|
|
@@ -45,7 +45,7 @@ __decorate([
|
|
|
45
45
|
], AccountCreateRequest.prototype, "phoneNumber", void 0);
|
|
46
46
|
__decorate([
|
|
47
47
|
(0, class_validator_1.ValidateNested)(),
|
|
48
|
-
__metadata("design:type",
|
|
48
|
+
__metadata("design:type", address_1.AddressResponse)
|
|
49
49
|
], AccountCreateRequest.prototype, "address", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, class_validator_1.IsEmail)(),
|
|
@@ -78,6 +78,6 @@ __decorate([
|
|
|
78
78
|
__metadata("design:type", String)
|
|
79
79
|
], AccountCreateRequest.prototype, "externalUserId", void 0);
|
|
80
80
|
__decorate([
|
|
81
|
-
(0, class_validator_1.IsEnum)(
|
|
81
|
+
(0, class_validator_1.IsEnum)(country_1.Country),
|
|
82
82
|
__metadata("design:type", String)
|
|
83
83
|
], AccountCreateRequest.prototype, "countryId", void 0);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AccountEntityStatusEnum } from "../enums/AccountEntityStatusEnum";
|
|
2
|
+
export declare class AccountEntityBase {
|
|
3
|
+
id: string;
|
|
4
|
+
directoryId: string;
|
|
5
|
+
typeOfDirectoryId: string;
|
|
6
|
+
peopleId: string;
|
|
7
|
+
currencyId: string;
|
|
8
|
+
status: AccountEntityStatusEnum;
|
|
9
|
+
tenantId: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountEntityStatusEnum = void 0;
|
|
4
|
+
var AccountEntityStatusEnum;
|
|
5
|
+
(function (AccountEntityStatusEnum) {
|
|
6
|
+
AccountEntityStatusEnum["ENABLED"] = "ENABLED";
|
|
7
|
+
AccountEntityStatusEnum["DISABLED"] = "DISABLED";
|
|
8
|
+
})(AccountEntityStatusEnum || (exports.AccountEntityStatusEnum = AccountEntityStatusEnum = {}));
|
package/bin/account/index.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export * from './dtos/AccountCreateRequest';
|
|
2
|
+
export * from './dtos/CreateBankAccountInput';
|
|
3
|
+
export * from './dtos/CreateBankAccountUserInput';
|
|
2
4
|
export * from './dtos/AccountCreateResponse';
|
|
5
|
+
export * from './entities/AccountEntityBase';
|
|
6
|
+
export * from './enums/BankAccountTypeEnum';
|
package/bin/account/index.js
CHANGED
|
@@ -16,4 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
//dtos
|
|
18
18
|
__exportStar(require("./dtos/AccountCreateRequest"), exports);
|
|
19
|
+
__exportStar(require("./dtos/CreateBankAccountInput"), exports);
|
|
20
|
+
__exportStar(require("./dtos/CreateBankAccountUserInput"), exports);
|
|
19
21
|
__exportStar(require("./dtos/AccountCreateResponse"), exports);
|
|
22
|
+
__exportStar(require("./entities/AccountEntityBase"), exports);
|
|
23
|
+
//Enums
|
|
24
|
+
__exportStar(require("./enums/BankAccountTypeEnum"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CountryId } from "../../country";
|
|
2
|
+
export declare class AddressShippingCardRequest {
|
|
3
|
+
addressId: string | null;
|
|
4
|
+
addressServiceLocationId: string | null;
|
|
5
|
+
provider: string | null;
|
|
6
|
+
serviceType: string | null;
|
|
7
|
+
countryId: CountryId;
|
|
8
|
+
directoryId: string;
|
|
9
|
+
}
|
package/bin/address/index.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export * from './dtos/Timezone';
|
|
|
7
7
|
export * from './dtos/OfficeDetails';
|
|
8
8
|
export * from './dtos/OperationSchedule';
|
|
9
9
|
export * from './dtos/AddressShippingCardResponse';
|
|
10
|
+
export * from './dtos/AddressShippingCardRequest';
|
|
10
11
|
export * from './enums/AddressStatus';
|
|
11
12
|
export * from './enums/AddressProvider';
|
package/bin/address/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./dtos/Timezone"), exports);
|
|
|
24
24
|
__exportStar(require("./dtos/OfficeDetails"), exports);
|
|
25
25
|
__exportStar(require("./dtos/OperationSchedule"), exports);
|
|
26
26
|
__exportStar(require("./dtos/AddressShippingCardResponse"), exports);
|
|
27
|
+
__exportStar(require("./dtos/AddressShippingCardRequest"), exports);
|
|
27
28
|
//enums
|
|
28
29
|
__exportStar(require("./enums/AddressStatus"), exports);
|
|
29
30
|
__exportStar(require("./enums/AddressProvider"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeliveryChannel = void 0;
|
|
4
|
+
var DeliveryChannel;
|
|
5
|
+
(function (DeliveryChannel) {
|
|
6
|
+
DeliveryChannel["OCURRE"] = "OCURRE";
|
|
7
|
+
DeliveryChannel["DOMICILIO"] = "DOMICILIO";
|
|
8
|
+
DeliveryChannel["AGENT"] = "AGENT";
|
|
9
|
+
})(DeliveryChannel || (exports.DeliveryChannel = DeliveryChannel = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum ExternalShippingStatus {
|
|
2
|
+
CREATED = "CREATED",
|
|
3
|
+
PENDING = "PENDING",
|
|
4
|
+
TRACKED = "TRACKED",
|
|
5
|
+
REJECTED = "REJECTED",
|
|
6
|
+
IN_TRANSIT = "IN_TRANSIT",
|
|
7
|
+
FAILED_DELIVERY_ATTEMPT = "FAILED_DELIVERY_ATTEMPT",
|
|
8
|
+
DELIVERED = "DELIVERED",
|
|
9
|
+
NOT_DELIVERED = "NOT_DELIVERED",
|
|
10
|
+
START_OF_CUSTODY = "START_OF_CUSTODY",
|
|
11
|
+
DESTRUCTION = "DESTRUCTION",
|
|
12
|
+
ACCIDENT = "ACCIDENT",
|
|
13
|
+
UNKNOWN = "UNKNOWN"
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalShippingStatus = void 0;
|
|
4
|
+
var ExternalShippingStatus;
|
|
5
|
+
(function (ExternalShippingStatus) {
|
|
6
|
+
ExternalShippingStatus["CREATED"] = "CREATED";
|
|
7
|
+
ExternalShippingStatus["PENDING"] = "PENDING";
|
|
8
|
+
ExternalShippingStatus["TRACKED"] = "TRACKED";
|
|
9
|
+
ExternalShippingStatus["REJECTED"] = "REJECTED";
|
|
10
|
+
ExternalShippingStatus["IN_TRANSIT"] = "IN_TRANSIT";
|
|
11
|
+
ExternalShippingStatus["FAILED_DELIVERY_ATTEMPT"] = "FAILED_DELIVERY_ATTEMPT";
|
|
12
|
+
ExternalShippingStatus["DELIVERED"] = "DELIVERED";
|
|
13
|
+
ExternalShippingStatus["NOT_DELIVERED"] = "NOT_DELIVERED";
|
|
14
|
+
ExternalShippingStatus["START_OF_CUSTODY"] = "START_OF_CUSTODY";
|
|
15
|
+
ExternalShippingStatus["DESTRUCTION"] = "DESTRUCTION";
|
|
16
|
+
ExternalShippingStatus["ACCIDENT"] = "ACCIDENT";
|
|
17
|
+
ExternalShippingStatus["UNKNOWN"] = "UNKNOWN";
|
|
18
|
+
})(ExternalShippingStatus || (exports.ExternalShippingStatus = ExternalShippingStatus = {}));
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare enum ExternalShippingStatusDetail {
|
|
2
|
+
CREATED = "CREATED",
|
|
3
|
+
PENDING = "PENDING",
|
|
4
|
+
READY_FOR_DISTRIBUTION = "READY_FOR_DISTRIBUTION",
|
|
5
|
+
ROAD_TO_PICKUP = "ROAD_TO_PICKUP",
|
|
6
|
+
UNSUCCESSFUL_PICKUP = "UNSUCCESSFUL_PICKUP",
|
|
7
|
+
ROAD_TO_RETURN = "ROAD_TO_RETURN",
|
|
8
|
+
UNSUCCESSFUL_RETURN = "UNSUCCESSFUL_RETURN",
|
|
9
|
+
REJECTED = "REJECTED",
|
|
10
|
+
SHIPMENT_SENT = "SHIPMENT_SENT",
|
|
11
|
+
SHIPMENT_CONFIRMED = "SHIPMENT_CONFIRMED",
|
|
12
|
+
IN_TRANSIT = "IN_TRANSIT",
|
|
13
|
+
RECEIVED_BY_CARRIER = "RECEIVED_BY_CARRIER",
|
|
14
|
+
FAILED_DELIVERY_ATTEMPT = "FAILED_DELIVERY_ATTEMPT",
|
|
15
|
+
WRONG_ADDRESS = "WRONG_ADDRESS",
|
|
16
|
+
DELIVERED = "DELIVERED",
|
|
17
|
+
NOT_DELIVERED = "NOT_DELIVERED",
|
|
18
|
+
DESTRUCTION = "DESTRUCTION",
|
|
19
|
+
ACCIDENT = "ACCIDENT",
|
|
20
|
+
STOLEN = "STOLEN",
|
|
21
|
+
VISIT_SCHEDULED = "VISIT_SCHEDULED",
|
|
22
|
+
CALL_SCHEDULED = "CALL_SCHEDULED",
|
|
23
|
+
VISIT_CONFIRMED = "VISIT_CONFIRMED",
|
|
24
|
+
CALL_FAILED_UNKNOWN = "CALL_FAILED_UNKNOWN",
|
|
25
|
+
NO_ACCESS = "NO_ACCESS",
|
|
26
|
+
FAILED_VISIT_DEAD = "FAILED_VISIT_DEAD",
|
|
27
|
+
WRONG_OPERATOR_ZONE = "WRONG_OPERATOR_ZONE",
|
|
28
|
+
CALL_RESCHEDULED = "CALL_RESCHEDULED",
|
|
29
|
+
CALL_FAILED_DEAD = "CALL_FAILED_DEAD",
|
|
30
|
+
CALL_FAILED = "CALL_FAILED",
|
|
31
|
+
WHATSAPP_FAILED = "WHATSAPP_FAILED",
|
|
32
|
+
COURIER_FAILED = "COURIER_FAILED",
|
|
33
|
+
MISSING_DOCUMENTS = "MISSING_DOCUMENTS",
|
|
34
|
+
RETURNED_TO_WAREHOUSE = "RETURNED_TO_WAREHOUSE",
|
|
35
|
+
CLIENT_NOT_PRESENT = "CLIENT_NOT_PRESENT",
|
|
36
|
+
INCOMPLETE_ADDRESS = "INCOMPLETE_ADDRESS",
|
|
37
|
+
COVERAGE = "COVERAGE",
|
|
38
|
+
OPERATOR_REASSIGNED = "OPERATOR_REASSIGNED",
|
|
39
|
+
CLIENT_UNKNOWN = "CLIENT_UNKNOWN",
|
|
40
|
+
NO_CALL = "NO_CALL",
|
|
41
|
+
ZONE_PROBLEMS = "ZONE_PROBLEMS",
|
|
42
|
+
CLIENT_WORK = "CLIENT_WORK",
|
|
43
|
+
FRAUD = "FRAUD",
|
|
44
|
+
FRAUD_CLIENT = "FRAUD_CLIENT",
|
|
45
|
+
MISSING_NUMBER = "MISSING_NUMBER",
|
|
46
|
+
CLIENT_CANCELED = "CLIENT_CANCELED",
|
|
47
|
+
DESTROYED_BY_CLIENT = "DESTROYED_BY_CLIENT",
|
|
48
|
+
WEATHER = "WEATHER",
|
|
49
|
+
LOST = "LOST",
|
|
50
|
+
CLIENT_TRIP = "CLIENT_TRIP",
|
|
51
|
+
FAILED_VISIT_UNKNOWN = "FAILED_VISIT_UNKNOWN",
|
|
52
|
+
RETURNED = "RETURNED",
|
|
53
|
+
OTHER = "OTHER"
|
|
54
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalShippingStatusDetail = void 0;
|
|
4
|
+
var ExternalShippingStatusDetail;
|
|
5
|
+
(function (ExternalShippingStatusDetail) {
|
|
6
|
+
ExternalShippingStatusDetail["CREATED"] = "CREATED";
|
|
7
|
+
ExternalShippingStatusDetail["PENDING"] = "PENDING";
|
|
8
|
+
ExternalShippingStatusDetail["READY_FOR_DISTRIBUTION"] = "READY_FOR_DISTRIBUTION";
|
|
9
|
+
ExternalShippingStatusDetail["ROAD_TO_PICKUP"] = "ROAD_TO_PICKUP";
|
|
10
|
+
ExternalShippingStatusDetail["UNSUCCESSFUL_PICKUP"] = "UNSUCCESSFUL_PICKUP";
|
|
11
|
+
ExternalShippingStatusDetail["ROAD_TO_RETURN"] = "ROAD_TO_RETURN";
|
|
12
|
+
ExternalShippingStatusDetail["UNSUCCESSFUL_RETURN"] = "UNSUCCESSFUL_RETURN";
|
|
13
|
+
ExternalShippingStatusDetail["REJECTED"] = "REJECTED";
|
|
14
|
+
ExternalShippingStatusDetail["SHIPMENT_SENT"] = "SHIPMENT_SENT";
|
|
15
|
+
ExternalShippingStatusDetail["SHIPMENT_CONFIRMED"] = "SHIPMENT_CONFIRMED";
|
|
16
|
+
ExternalShippingStatusDetail["IN_TRANSIT"] = "IN_TRANSIT";
|
|
17
|
+
ExternalShippingStatusDetail["RECEIVED_BY_CARRIER"] = "RECEIVED_BY_CARRIER";
|
|
18
|
+
ExternalShippingStatusDetail["FAILED_DELIVERY_ATTEMPT"] = "FAILED_DELIVERY_ATTEMPT";
|
|
19
|
+
ExternalShippingStatusDetail["WRONG_ADDRESS"] = "WRONG_ADDRESS";
|
|
20
|
+
ExternalShippingStatusDetail["DELIVERED"] = "DELIVERED";
|
|
21
|
+
ExternalShippingStatusDetail["NOT_DELIVERED"] = "NOT_DELIVERED";
|
|
22
|
+
ExternalShippingStatusDetail["DESTRUCTION"] = "DESTRUCTION";
|
|
23
|
+
ExternalShippingStatusDetail["ACCIDENT"] = "ACCIDENT";
|
|
24
|
+
ExternalShippingStatusDetail["STOLEN"] = "STOLEN";
|
|
25
|
+
ExternalShippingStatusDetail["VISIT_SCHEDULED"] = "VISIT_SCHEDULED";
|
|
26
|
+
ExternalShippingStatusDetail["CALL_SCHEDULED"] = "CALL_SCHEDULED";
|
|
27
|
+
ExternalShippingStatusDetail["VISIT_CONFIRMED"] = "VISIT_CONFIRMED";
|
|
28
|
+
ExternalShippingStatusDetail["CALL_FAILED_UNKNOWN"] = "CALL_FAILED_UNKNOWN";
|
|
29
|
+
ExternalShippingStatusDetail["NO_ACCESS"] = "NO_ACCESS";
|
|
30
|
+
ExternalShippingStatusDetail["FAILED_VISIT_DEAD"] = "FAILED_VISIT_DEAD";
|
|
31
|
+
ExternalShippingStatusDetail["WRONG_OPERATOR_ZONE"] = "WRONG_OPERATOR_ZONE";
|
|
32
|
+
ExternalShippingStatusDetail["CALL_RESCHEDULED"] = "CALL_RESCHEDULED";
|
|
33
|
+
ExternalShippingStatusDetail["CALL_FAILED_DEAD"] = "CALL_FAILED_DEAD";
|
|
34
|
+
ExternalShippingStatusDetail["CALL_FAILED"] = "CALL_FAILED";
|
|
35
|
+
ExternalShippingStatusDetail["WHATSAPP_FAILED"] = "WHATSAPP_FAILED";
|
|
36
|
+
ExternalShippingStatusDetail["COURIER_FAILED"] = "COURIER_FAILED";
|
|
37
|
+
ExternalShippingStatusDetail["MISSING_DOCUMENTS"] = "MISSING_DOCUMENTS";
|
|
38
|
+
ExternalShippingStatusDetail["RETURNED_TO_WAREHOUSE"] = "RETURNED_TO_WAREHOUSE";
|
|
39
|
+
ExternalShippingStatusDetail["CLIENT_NOT_PRESENT"] = "CLIENT_NOT_PRESENT";
|
|
40
|
+
ExternalShippingStatusDetail["INCOMPLETE_ADDRESS"] = "INCOMPLETE_ADDRESS";
|
|
41
|
+
ExternalShippingStatusDetail["COVERAGE"] = "COVERAGE";
|
|
42
|
+
ExternalShippingStatusDetail["OPERATOR_REASSIGNED"] = "OPERATOR_REASSIGNED";
|
|
43
|
+
ExternalShippingStatusDetail["CLIENT_UNKNOWN"] = "CLIENT_UNKNOWN";
|
|
44
|
+
ExternalShippingStatusDetail["NO_CALL"] = "NO_CALL";
|
|
45
|
+
ExternalShippingStatusDetail["ZONE_PROBLEMS"] = "ZONE_PROBLEMS";
|
|
46
|
+
ExternalShippingStatusDetail["CLIENT_WORK"] = "CLIENT_WORK";
|
|
47
|
+
ExternalShippingStatusDetail["FRAUD"] = "FRAUD";
|
|
48
|
+
ExternalShippingStatusDetail["FRAUD_CLIENT"] = "FRAUD_CLIENT";
|
|
49
|
+
ExternalShippingStatusDetail["MISSING_NUMBER"] = "MISSING_NUMBER";
|
|
50
|
+
ExternalShippingStatusDetail["CLIENT_CANCELED"] = "CLIENT_CANCELED";
|
|
51
|
+
ExternalShippingStatusDetail["DESTROYED_BY_CLIENT"] = "DESTROYED_BY_CLIENT";
|
|
52
|
+
ExternalShippingStatusDetail["WEATHER"] = "WEATHER";
|
|
53
|
+
ExternalShippingStatusDetail["LOST"] = "LOST";
|
|
54
|
+
ExternalShippingStatusDetail["CLIENT_TRIP"] = "CLIENT_TRIP";
|
|
55
|
+
ExternalShippingStatusDetail["FAILED_VISIT_UNKNOWN"] = "FAILED_VISIT_UNKNOWN";
|
|
56
|
+
ExternalShippingStatusDetail["RETURNED"] = "RETURNED";
|
|
57
|
+
ExternalShippingStatusDetail["OTHER"] = "OTHER";
|
|
58
|
+
})(ExternalShippingStatusDetail || (exports.ExternalShippingStatusDetail = ExternalShippingStatusDetail = {}));
|
package/bin/card/index.d.ts
CHANGED
|
@@ -20,3 +20,6 @@ export * from './enums/CreditOrDebit';
|
|
|
20
20
|
export * from './enums/ShippingStatus';
|
|
21
21
|
export * from './enums/Status';
|
|
22
22
|
export * from './enums/VirtualOrPhysical';
|
|
23
|
+
export * from './enums/DeliveryChannel';
|
|
24
|
+
export * from './enums/ExternalShippingStatus';
|
|
25
|
+
export * from './enums/ExternalShippingStatusDetails';
|
package/bin/card/index.js
CHANGED
|
@@ -38,3 +38,6 @@ __exportStar(require("./enums/CreditOrDebit"), exports);
|
|
|
38
38
|
__exportStar(require("./enums/ShippingStatus"), exports);
|
|
39
39
|
__exportStar(require("./enums/Status"), exports);
|
|
40
40
|
__exportStar(require("./enums/VirtualOrPhysical"), exports);
|
|
41
|
+
__exportStar(require("./enums/DeliveryChannel"), exports);
|
|
42
|
+
__exportStar(require("./enums/ExternalShippingStatus"), exports);
|
|
43
|
+
__exportStar(require("./enums/ExternalShippingStatusDetails"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
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);
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { SexDocument } from "../enums/SexDocument";
|
|
2
|
+
import { IdentificationDocument } from "./IdentificationDocument";
|
|
3
|
+
export declare class PeopleUpdateRequest {
|
|
4
|
+
id?: string;
|
|
5
|
+
creationMethod?: string;
|
|
6
|
+
indexName?: string | null;
|
|
7
|
+
preferredName?: string | null;
|
|
8
|
+
usSuffix?: string | null;
|
|
9
|
+
usLastNames?: string | null;
|
|
10
|
+
usNames?: string | null;
|
|
11
|
+
latNames?: string | null;
|
|
12
|
+
latLastNamePaternal?: string | null;
|
|
13
|
+
latLastNameMaternal?: string | null;
|
|
14
|
+
aliasNames?: string[] | null;
|
|
15
|
+
preferredPronoun?: string | null;
|
|
16
|
+
SSN_ITIN?: string | null;
|
|
17
|
+
rfc?: string | null;
|
|
18
|
+
curp?: string | null;
|
|
19
|
+
passportNumber?: string | null;
|
|
20
|
+
countryOfPassport?: string | null;
|
|
21
|
+
documents?: IdentificationDocument[] | null;
|
|
22
|
+
countryOfBirth?: string | null;
|
|
23
|
+
dateOfBirth?: string | null;
|
|
24
|
+
stateOfBirth?: string | null;
|
|
25
|
+
nationalities?: string[] | null;
|
|
26
|
+
docSex?: SexDocument | null;
|
|
27
|
+
internalEmail?: string | null;
|
|
28
|
+
occupation?: string | null;
|
|
29
|
+
incomeSource?: string | null;
|
|
30
|
+
operationId?: string | null;
|
|
31
|
+
tenantId?: string | null;
|
|
32
|
+
photoOfpersonImageName?: string | null;
|
|
33
|
+
videoOfPersonImageName?: string | null;
|
|
34
|
+
USA_DebitAccount?: boolean;
|
|
35
|
+
MEX_DebitAccount?: boolean;
|
|
36
|
+
MEX_CreditClient?: boolean;
|
|
37
|
+
MEX_CreditAdditional?: boolean;
|
|
38
|
+
magicNumber?: boolean;
|
|
39
|
+
USA_UploadDocument?: boolean;
|
|
40
|
+
MEX_UploadDocument?: boolean;
|
|
41
|
+
videoSelfieVerified?: boolean;
|
|
42
|
+
MEX_ValidDocument?: string;
|
|
43
|
+
USA_ValidDocument?: string;
|
|
44
|
+
USA_FacematchVerified?: boolean | null;
|
|
45
|
+
MEX_FacematchVerified?: boolean | null;
|
|
46
|
+
fiadoListApproved?: boolean | null;
|
|
47
|
+
ofacListApproved?: boolean | null;
|
|
48
|
+
cnbvListApproved?: boolean | null;
|
|
49
|
+
blackListApproved?: boolean | null;
|
|
50
|
+
whiteList?: boolean | null;
|
|
51
|
+
hasOwner?: boolean;
|
|
52
|
+
older18?: boolean | null;
|
|
53
|
+
USA_Address?: boolean;
|
|
54
|
+
MEX_Address?: boolean;
|
|
55
|
+
COL_Address?: boolean;
|
|
56
|
+
GTM_Address?: boolean;
|
|
57
|
+
HND_Address?: boolean;
|
|
58
|
+
CRI_Address?: boolean;
|
|
59
|
+
PER_Address?: boolean;
|
|
60
|
+
MEX_ProofAddress?: boolean;
|
|
61
|
+
MEX_SendWish?: boolean;
|
|
62
|
+
COL_SendWish?: boolean;
|
|
63
|
+
GTM_SendWish?: boolean;
|
|
64
|
+
HND_SendWish?: boolean;
|
|
65
|
+
CRI_SendWish?: boolean;
|
|
66
|
+
PER_SendWish?: boolean;
|
|
67
|
+
USA_DebitAccountWish?: boolean;
|
|
68
|
+
MEX_DebitAccountWish?: boolean;
|
|
69
|
+
MEX_CreditAdditionalWish?: boolean;
|
|
70
|
+
MEX_CreditClientWish?: boolean;
|
|
71
|
+
SSN_ITINRequired?: boolean | null;
|
|
72
|
+
duplicateUserDetection?: boolean | null;
|
|
73
|
+
}
|
package/bin/identity/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export * from './dtos/IdentificationDocument';
|
|
|
2
2
|
export * from './dtos/PeopleCreateRequest';
|
|
3
3
|
export * from './dtos/PeopleResponse';
|
|
4
4
|
export * from './dtos/TypeOfDocument';
|
|
5
|
+
export * from './dtos/PeopleUpdateRequest';
|
|
5
6
|
export * from './enums/IdentificationDocumentStatus';
|
|
6
7
|
export * from './enums/SexDocument';
|
package/bin/identity/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./dtos/IdentificationDocument"), exports);
|
|
|
19
19
|
__exportStar(require("./dtos/PeopleCreateRequest"), exports);
|
|
20
20
|
__exportStar(require("./dtos/PeopleResponse"), exports);
|
|
21
21
|
__exportStar(require("./dtos/TypeOfDocument"), exports);
|
|
22
|
+
__exportStar(require("./dtos/PeopleUpdateRequest"), exports);
|
|
22
23
|
//enums
|
|
23
24
|
__exportStar(require("./enums/IdentificationDocumentStatus"), exports);
|
|
24
25
|
__exportStar(require("./enums/SexDocument"), exports);
|
package/bin/index.d.ts
CHANGED
package/bin/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Pomelo = 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.Account = void 0;
|
|
26
|
+
exports.Tern = exports.Pomelo = 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.Account = void 0;
|
|
27
27
|
exports.Account = __importStar(require("./account"));
|
|
28
28
|
exports.Address = __importStar(require("./address"));
|
|
29
29
|
exports.App = __importStar(require("./app"));
|
|
@@ -43,3 +43,4 @@ exports.SessionActivity = __importStar(require("./sessionActivity"));
|
|
|
43
43
|
exports.EventBridgeMessage = __importStar(require("./eventBridge"));
|
|
44
44
|
exports.GenericMessage = __importStar(require("./genericMessage"));
|
|
45
45
|
exports.Pomelo = __importStar(require("./pomelo"));
|
|
46
|
+
exports.Tern = __importStar(require("./tern"));
|
|
@@ -0,0 +1,40 @@
|
|
|
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.TernAddress = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class TernAddress {
|
|
15
|
+
}
|
|
16
|
+
exports.TernAddress = TernAddress;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], TernAddress.prototype, "address1", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], TernAddress.prototype, "address2", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], TernAddress.prototype, "city", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], TernAddress.prototype, "province", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], TernAddress.prototype, "postalCode", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], TernAddress.prototype, "country", void 0);
|
|
@@ -0,0 +1,33 @@
|
|
|
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.TernCreateAccountRequest = void 0;
|
|
13
|
+
const TernAccountTypeEnum_1 = require("../enums/TernAccountTypeEnum");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class TernCreateAccountRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.TernCreateAccountRequest = TernCreateAccountRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], TernCreateAccountRequest.prototype, "externalUserId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], TernCreateAccountRequest.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], TernCreateAccountRequest.prototype, "lastName", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsEnum)(TernAccountTypeEnum_1.TernAccountTypeEnum),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], TernCreateAccountRequest.prototype, "type", void 0);
|
|
@@ -0,0 +1,25 @@
|
|
|
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.TernCreateAccountResponse = void 0;
|
|
13
|
+
const provider_1 = require("../../provider");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class TernCreateAccountResponse {
|
|
16
|
+
}
|
|
17
|
+
exports.TernCreateAccountResponse = TernCreateAccountResponse;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], TernCreateAccountResponse.prototype, "externalAccountId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEnum)(provider_1.Provider),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], TernCreateAccountResponse.prototype, "provider", void 0);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SexDocument } from "../../identity";
|
|
2
|
+
import { AddressResponse } from "../../address";
|
|
3
|
+
export declare class TernCreateUserRequest {
|
|
4
|
+
directoryId: string;
|
|
5
|
+
typeOfDirectoryId: string;
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
phoneNumber: string;
|
|
9
|
+
address: AddressResponse;
|
|
10
|
+
email: string;
|
|
11
|
+
dob: string;
|
|
12
|
+
documentNumber: string;
|
|
13
|
+
documentType?: string;
|
|
14
|
+
gender?: SexDocument;
|
|
15
|
+
}
|