@fiado/type-kit 3.31.0 → 3.33.0
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/AccountInfo.d.ts +2 -1
- package/bin/account/dtos/AccountInfo.js +3 -1
- package/bin/account/dtos/ExchangeInfo.d.ts +2 -1
- package/bin/account/dtos/ExchangeInfo.js +3 -1
- package/bin/account/dtos/GetPocketResponse.d.ts +2 -1
- package/bin/account/dtos/GetPocketResponse.js +2 -0
- package/bin/account/dtos/PocketItem.d.ts +2 -1
- package/bin/account/dtos/PocketItem.js +3 -1
- package/bin/apiResponse/dtos/FiadoApiResponse.d.ts +2 -1
- package/bin/bankAccount/dtos/GetExternalBankAccountRequest.d.ts +2 -1
- package/bin/bankAccount/dtos/GetExternalBankAccountRequest.js +2 -0
- package/bin/bankAccount/dtos/GetExternalBankAccountResponse.d.ts +2 -1
- package/bin/bankAccount/dtos/GetExternalBankAccountResponse.js +2 -0
- package/bin/creditContract/dtos/CreditContractCreateRequest.d.ts +2 -1
- package/bin/creditContract/dtos/CreditContractCreateRequest.js +3 -1
- package/bin/exchangeRate/dtos/GetExchangeRatesRequest.d.ts +2 -1
- package/bin/exchangeRate/dtos/GetExchangeRatesRequest.js +2 -0
- package/bin/fraudPreventionEngine/dtos/CreateAccountLevelRequest.d.ts +2 -1
- package/bin/fraudPreventionEngine/dtos/CreateAccountLevelRequest.js +2 -0
- package/bin/fraudPreventionEngine/dtos/GetAccountLevelParams.d.ts +2 -1
- package/bin/fraudPreventionEngine/dtos/GetAccountLevelParams.js +2 -0
- package/bin/messagesConnector/dtos/SendMessageRequest.d.ts +20 -0
- package/bin/messagesConnector/dtos/SendMessageRequest.js +118 -0
- package/bin/messagesConnector/dtos/VerifyOtpRequest.d.ts +5 -0
- package/bin/{benefitCenter/dtos/InputSchemaOverrideRequest.js → messagesConnector/dtos/VerifyOtpRequest.js} +20 -15
- package/bin/messagesConnector/index.d.ts +2 -0
- package/bin/messagesConnector/index.js +2 -0
- package/bin/productCatalog/dtos/GetProductCatalogResponse.d.ts +2 -1
- package/bin/productCatalog/dtos/GetProductCatalogResponse.js +3 -1
- package/bin/riskProfile/dtos/UpdateAlarmProfileRequest.d.ts +2 -1
- package/bin/riskProfile/dtos/UpdateAlarmProfileRequest.js +2 -0
- package/bin/riskProfile/dtos/UpdateFactorInfo.d.ts +2 -1
- package/bin/riskProfile/dtos/UpdateFactorInfo.js +2 -0
- package/bin/riskProfile/dtos/UpdateRiskProfileRequest.d.ts +2 -1
- package/bin/riskProfile/dtos/UpdateRiskProfileRequest.js +2 -0
- package/bin/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.d.ts +2 -1
- package/bin/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.js +2 -0
- package/bin/transactionProcessor/dtos/ProcessUpdateLevelRequest.d.ts +2 -1
- package/bin/transactionProcessor/dtos/ProcessUpdateLevelRequest.js +2 -0
- package/fiado-type-kit-3.32.0.tgz +0 -0
- package/package.json +1 -1
- package/src/account/dtos/AccountInfo.ts +3 -2
- package/src/account/dtos/ExchangeInfo.ts +3 -2
- package/src/account/dtos/GetPocketResponse.ts +3 -2
- package/src/account/dtos/PocketItem.ts +3 -2
- package/src/apiResponse/dtos/FiadoApiResponse.ts +3 -2
- package/src/bankAccount/dtos/GetExternalBankAccountRequest.ts +3 -2
- package/src/bankAccount/dtos/GetExternalBankAccountResponse.ts +3 -2
- package/src/creditContract/dtos/CreditContractCreateRequest.ts +3 -2
- package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -2
- package/src/fraudPreventionEngine/dtos/CreateAccountLevelRequest.ts +3 -2
- package/src/fraudPreventionEngine/dtos/GetAccountLevelParams.ts +3 -2
- package/src/messagesConnector/dtos/SendMessageRequest.ts +23 -0
- package/src/messagesConnector/dtos/VerifyOtpRequest.ts +8 -0
- package/src/messagesConnector/index.ts +2 -0
- package/src/productCatalog/dtos/GetProductCatalogResponse.ts +3 -2
- package/src/riskProfile/dtos/UpdateAlarmProfileRequest.ts +3 -2
- package/src/riskProfile/dtos/UpdateFactorInfo.ts +3 -2
- package/src/riskProfile/dtos/UpdateRiskProfileRequest.ts +3 -2
- package/src/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.ts +3 -2
- package/src/transactionProcessor/dtos/ProcessUpdateLevelRequest.ts +3 -2
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.d.ts +0 -22
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.js +0 -91
- package/bin/benefitCenter/dtos/FieldOverrideRequest.d.ts +0 -19
- package/bin/benefitCenter/dtos/FieldOverrideRequest.js +0 -80
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.d.ts +0 -9
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.d.ts +0 -10
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.js +0 -14
- package/bin/mdm/dtos/DeviceEnrollResponse.d.ts +0 -11
- package/bin/mdm/dtos/DeviceEnrollResponse.js +0 -6
- package/bin/mdm/dtos/DeviceReleaseResponse.d.ts +0 -9
- package/bin/mdm/dtos/DeviceReleaseResponse.js +0 -6
- package/bin/mdm/dtos/DeviceServiceDeactivateResponse.d.ts +0 -9
- package/bin/mdm/dtos/DeviceServiceDeactivateResponse.js +0 -6
|
@@ -2,8 +2,9 @@ import AccountInfo from "./AccountInfo";
|
|
|
2
2
|
import PocketItem from "./PocketItem";
|
|
3
3
|
import ExchangeInfo from "./ExchangeInfo";
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export class GetPocketResponse {
|
|
6
6
|
accountInfo: AccountInfo;
|
|
7
7
|
pockets: PocketItem[];
|
|
8
8
|
exchangeInfo: ExchangeInfo;
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
|
+
export default GetPocketResponse;
|
|
@@ -2,7 +2,7 @@ import {IsBoolean, IsString, Matches, ValidateNested} from "class-validator";
|
|
|
2
2
|
import {regexUuidV4} from "../../helpers/constans/regex";
|
|
3
3
|
import {PocketBalanceItem} from "./PocketBalanceItem";
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export class PocketItem {
|
|
6
6
|
@IsString()
|
|
7
7
|
@Matches(regexUuidV4,
|
|
8
8
|
{
|
|
@@ -41,4 +41,5 @@ export default class PocketItem {
|
|
|
41
41
|
|
|
42
42
|
@ValidateNested()
|
|
43
43
|
pocketBalance: PocketBalanceItem[];
|
|
44
|
-
}
|
|
44
|
+
}
|
|
45
|
+
export default PocketItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export class GetExternalBankAccountRequest {
|
|
2
2
|
countryId?: string;
|
|
3
3
|
bankAccountId?: string;
|
|
4
4
|
accountNumber?: string;
|
|
@@ -9,4 +9,5 @@ export default class GetExternalBankAccountRequest {
|
|
|
9
9
|
accountHolderName?: string;
|
|
10
10
|
bankId?: string;
|
|
11
11
|
default?: boolean;
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
|
+
export default GetExternalBankAccountRequest;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExternalAccountOwnershipEnum } from "../enums/ExternalAccountOwnershipEnum";
|
|
2
2
|
import { ExternalAccountTypeEnum } from "../enums/ExternalAccountTypeEnum";
|
|
3
3
|
|
|
4
|
-
export
|
|
4
|
+
export class GetExternalBankAccountResponse {
|
|
5
5
|
id: string;
|
|
6
6
|
countryId: string;
|
|
7
7
|
accountNumber: string | null;
|
|
@@ -15,4 +15,5 @@ export default class GetExternalBankAccountResponse {
|
|
|
15
15
|
bankName: string | null;
|
|
16
16
|
iconUrl: string | null;
|
|
17
17
|
ownership?: ExternalAccountOwnershipEnum;
|
|
18
|
-
}
|
|
18
|
+
}
|
|
19
|
+
export default GetExternalBankAccountResponse;
|
|
@@ -2,7 +2,7 @@ import { IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString, Matches } from "cla
|
|
|
2
2
|
import { CountryId } from "../../country";
|
|
3
3
|
import { ProductTypeEnum } from "../../productCatalog";
|
|
4
4
|
import { Provider } from "../../provider";
|
|
5
|
-
export
|
|
5
|
+
export class CreditContractCreateRequest {
|
|
6
6
|
|
|
7
7
|
@IsString()
|
|
8
8
|
@IsNotEmpty()
|
|
@@ -64,4 +64,5 @@ export default class CreditContractCreateRequest {
|
|
|
64
64
|
@IsOptional()
|
|
65
65
|
relatedProductId?: string;
|
|
66
66
|
|
|
67
|
-
}
|
|
67
|
+
}
|
|
68
|
+
export default CreditContractCreateRequest;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {AccountLevelTenantEnum} from "../enums/AccountLevelTenantEnum";
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export class CreateAccountLevelRequest {
|
|
4
4
|
id: string;
|
|
5
5
|
amountUnit: string;
|
|
6
6
|
maxAvailableBalanceAmount: number;
|
|
7
7
|
maxMonthlyIncomingAmount: number;
|
|
8
8
|
maxMonthlyOutgoingAmount: number;
|
|
9
9
|
tenantId: AccountLevelTenantEnum;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
|
+
export default CreateAccountLevelRequest;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsEnum, IsNotEmpty, IsObject, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
3
|
+
import { DeliveryChannelEnum } from '../../messaging/enums/DeliveryChannelEnum';
|
|
4
|
+
|
|
5
|
+
export class SendMessageRequest {
|
|
6
|
+
@Expose() @IsEnum(DeliveryChannelEnum) channelType!: DeliveryChannelEnum;
|
|
7
|
+
@Expose() @IsString() @IsNotEmpty() messageType!: string;
|
|
8
|
+
@Expose() @IsUUID() directoryId!: string;
|
|
9
|
+
@Expose() @IsString() @IsNotEmpty() typeOfDirectory!: string;
|
|
10
|
+
@Expose() @IsString() @IsNotEmpty() language!: string;
|
|
11
|
+
@Expose() @IsString() @IsNotEmpty() country!: string;
|
|
12
|
+
@Expose() @IsOptional() @IsString() destination?: string;
|
|
13
|
+
@Expose() @IsOptional() @IsString() var1?: string;
|
|
14
|
+
@Expose() @IsOptional() @IsString() var2?: string;
|
|
15
|
+
@Expose() @IsOptional() @IsString() var3?: string;
|
|
16
|
+
@Expose() @IsOptional() @IsString() var4?: string;
|
|
17
|
+
@Expose() @IsOptional() @IsString() var5?: string;
|
|
18
|
+
@Expose() @IsOptional() @IsUUID() beneficiaryDirectoryId?: string;
|
|
19
|
+
@Expose() @IsOptional() @IsString() beneficiaryTypeOfDirectoryId?: string;
|
|
20
|
+
@Expose() @IsOptional() @IsObject() options?: Record<string, unknown>;
|
|
21
|
+
@Expose() @IsOptional() @IsUUID() referenceMessageId?: string;
|
|
22
|
+
@Expose() @IsOptional() @IsString() transactionNumber?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsNotEmpty, IsString, IsUUID } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class VerifyOtpRequest {
|
|
5
|
+
@Expose() @IsUUID() directoryId!: string;
|
|
6
|
+
@Expose() @IsString() @IsNotEmpty() typeOfDirectoryId!: string;
|
|
7
|
+
@Expose() @IsString() @IsNotEmpty() message!: string;
|
|
8
|
+
}
|
|
@@ -15,3 +15,5 @@ export * from './dtos/TemplateMessageUpdateRequest';
|
|
|
15
15
|
export * from './dtos/TemplateMessageResponse';
|
|
16
16
|
export * from './dtos/TemplateMessageListResponse';
|
|
17
17
|
export * from './dtos/TemplateMessageListFiltersRequest';
|
|
18
|
+
export * from './dtos/SendMessageRequest';
|
|
19
|
+
export * from './dtos/VerifyOtpRequest';
|
|
@@ -3,7 +3,7 @@ import {ProductTaxFeeTypeEnum} from "../enums/ProductTaxFeeTypeEnum";
|
|
|
3
3
|
import {IsEnum, IsNumber, IsString} from "class-validator";
|
|
4
4
|
import {ProductTypeEnum} from "../enums/ProductTypeEnum";
|
|
5
5
|
|
|
6
|
-
export
|
|
6
|
+
export class GetProductCatalogResponse {
|
|
7
7
|
@IsString()
|
|
8
8
|
id: string;
|
|
9
9
|
|
|
@@ -36,4 +36,5 @@ export default class GetProductCatalogResponse {
|
|
|
36
36
|
|
|
37
37
|
@IsString()
|
|
38
38
|
updatedAt: string;
|
|
39
|
-
}
|
|
39
|
+
}
|
|
40
|
+
export default GetProductCatalogResponse;
|
|
@@ -3,8 +3,9 @@ import { AlarmCategory } from "../enums/AlarmCategory";
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
export
|
|
6
|
+
export class UpdateAlarmProfileRequest {
|
|
7
7
|
directoryId: string;
|
|
8
8
|
category: AlarmCategory;
|
|
9
9
|
value: number;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
|
+
export default UpdateAlarmProfileRequest;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export class AuthorizeSpeiBankTransferRequest {
|
|
2
2
|
idempotencyKey: string;
|
|
3
3
|
productCatalogId: string;
|
|
4
4
|
targetBankAccountId: string;
|
|
5
5
|
amount: number;
|
|
6
6
|
concept: string | null;
|
|
7
7
|
secretNumber: string;
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
|
+
export default AuthorizeSpeiBankTransferRequest;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { InputSchemaOverrideRequest } from "./InputSchemaOverrideRequest";
|
|
2
|
-
/**
|
|
3
|
-
* Body de PUT /backoffice/leaves/{leafId}. Upsert parcial:
|
|
4
|
-
* - undefined → no se toca
|
|
5
|
-
* - string/number/boolean seteado → pisa el valor previo del override
|
|
6
|
-
* - null NO se acepta (para borrar un campo, usar DELETE /fields/{fieldName})
|
|
7
|
-
*
|
|
8
|
-
* Si todos los campos llegan undefined → 400 INVALID_PATCH_PAYLOAD.
|
|
9
|
-
*/
|
|
10
|
-
export declare class BackofficeLeafOverrideUpsertRequest {
|
|
11
|
-
serviceName?: string;
|
|
12
|
-
logo?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
helpText?: string;
|
|
15
|
-
serviceOrder?: number;
|
|
16
|
-
subcategoryOrder?: number;
|
|
17
|
-
enabled?: boolean;
|
|
18
|
-
category?: string;
|
|
19
|
-
subcategory?: string;
|
|
20
|
-
requiresReferenceVerification?: boolean;
|
|
21
|
-
inputSchema?: InputSchemaOverrideRequest;
|
|
22
|
-
}
|
|
@@ -1,91 +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.BackofficeLeafOverrideUpsertRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const InputSchemaOverrideRequest_1 = require("./InputSchemaOverrideRequest");
|
|
16
|
-
/**
|
|
17
|
-
* Body de PUT /backoffice/leaves/{leafId}. Upsert parcial:
|
|
18
|
-
* - undefined → no se toca
|
|
19
|
-
* - string/number/boolean seteado → pisa el valor previo del override
|
|
20
|
-
* - null NO se acepta (para borrar un campo, usar DELETE /fields/{fieldName})
|
|
21
|
-
*
|
|
22
|
-
* Si todos los campos llegan undefined → 400 INVALID_PATCH_PAYLOAD.
|
|
23
|
-
*/
|
|
24
|
-
class BackofficeLeafOverrideUpsertRequest {
|
|
25
|
-
}
|
|
26
|
-
exports.BackofficeLeafOverrideUpsertRequest = BackofficeLeafOverrideUpsertRequest;
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
(0, class_validator_1.MaxLength)(120),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "serviceName", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
|
35
|
-
(0, class_validator_1.IsUrl)({ protocols: ["https"], require_protocol: true }),
|
|
36
|
-
(0, class_validator_1.MaxLength)(500),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "logo", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, class_validator_1.IsOptional)(),
|
|
41
|
-
(0, class_validator_1.IsString)(),
|
|
42
|
-
(0, class_validator_1.MaxLength)(2000),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "description", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, class_validator_1.IsOptional)(),
|
|
47
|
-
(0, class_validator_1.IsString)(),
|
|
48
|
-
(0, class_validator_1.MaxLength)(1000),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "helpText", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, class_validator_1.IsOptional)(),
|
|
53
|
-
(0, class_validator_1.IsInt)(),
|
|
54
|
-
(0, class_validator_1.Min)(0),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "serviceOrder", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
(0, class_validator_1.IsInt)(),
|
|
60
|
-
(0, class_validator_1.Min)(0),
|
|
61
|
-
__metadata("design:type", Number)
|
|
62
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "subcategoryOrder", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsOptional)(),
|
|
65
|
-
(0, class_validator_1.IsBoolean)(),
|
|
66
|
-
__metadata("design:type", Boolean)
|
|
67
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "enabled", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, class_validator_1.IsOptional)(),
|
|
70
|
-
(0, class_validator_1.IsString)(),
|
|
71
|
-
(0, class_validator_1.MaxLength)(60),
|
|
72
|
-
(0, class_validator_1.Matches)(/^[A-Z][A-Z0-9_ ]*$/, { message: "category must be uppercase with underscores or spaces" }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "category", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsOptional)(),
|
|
77
|
-
(0, class_validator_1.IsString)(),
|
|
78
|
-
(0, class_validator_1.MaxLength)(60),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "subcategory", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, class_validator_1.IsOptional)(),
|
|
83
|
-
(0, class_validator_1.IsBoolean)(),
|
|
84
|
-
__metadata("design:type", Boolean)
|
|
85
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "requiresReferenceVerification", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, class_validator_1.IsOptional)(),
|
|
88
|
-
(0, class_validator_1.ValidateNested)(),
|
|
89
|
-
(0, class_transformer_1.Type)(() => InputSchemaOverrideRequest_1.InputSchemaOverrideRequest),
|
|
90
|
-
__metadata("design:type", InputSchemaOverrideRequest_1.InputSchemaOverrideRequest)
|
|
91
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "inputSchema", void 0);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { InputFieldTypeEnum } from "../enums/InputFieldTypeEnum";
|
|
2
|
-
import { InputValidation } from "./InputValidation";
|
|
3
|
-
import { SelectOption } from "./SelectOption";
|
|
4
|
-
/**
|
|
5
|
-
* Override parcial de un field individual del `inputSchema` por `key`.
|
|
6
|
-
* El admin no puede agregar ni quitar fields — solo editar los existentes.
|
|
7
|
-
*/
|
|
8
|
-
export declare class FieldOverrideRequest {
|
|
9
|
-
key: string;
|
|
10
|
-
type?: InputFieldTypeEnum;
|
|
11
|
-
label?: string;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
helpImage?: string;
|
|
15
|
-
showHelp?: boolean;
|
|
16
|
-
options?: SelectOption[];
|
|
17
|
-
dependsOn?: string;
|
|
18
|
-
validation?: InputValidation;
|
|
19
|
-
}
|
|
@@ -1,80 +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.FieldOverrideRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const InputFieldTypeEnum_1 = require("../enums/InputFieldTypeEnum");
|
|
16
|
-
const InputValidation_1 = require("./InputValidation");
|
|
17
|
-
const SelectOption_1 = require("./SelectOption");
|
|
18
|
-
/**
|
|
19
|
-
* Override parcial de un field individual del `inputSchema` por `key`.
|
|
20
|
-
* El admin no puede agregar ni quitar fields — solo editar los existentes.
|
|
21
|
-
*/
|
|
22
|
-
class FieldOverrideRequest {
|
|
23
|
-
}
|
|
24
|
-
exports.FieldOverrideRequest = FieldOverrideRequest;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], FieldOverrideRequest.prototype, "key", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
(0, class_validator_1.IsEnum)(InputFieldTypeEnum_1.InputFieldTypeEnum),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], FieldOverrideRequest.prototype, "type", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
(0, class_validator_1.IsString)(),
|
|
38
|
-
(0, class_validator_1.MaxLength)(120),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], FieldOverrideRequest.prototype, "label", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_validator_1.IsOptional)(),
|
|
43
|
-
(0, class_validator_1.IsString)(),
|
|
44
|
-
(0, class_validator_1.MaxLength)(120),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], FieldOverrideRequest.prototype, "placeholder", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsOptional)(),
|
|
49
|
-
(0, class_validator_1.IsBoolean)(),
|
|
50
|
-
__metadata("design:type", Boolean)
|
|
51
|
-
], FieldOverrideRequest.prototype, "required", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_1.IsOptional)(),
|
|
54
|
-
(0, class_validator_1.IsUrl)({ protocols: ["https"], require_protocol: true }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], FieldOverrideRequest.prototype, "helpImage", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
(0, class_validator_1.IsBoolean)(),
|
|
60
|
-
__metadata("design:type", Boolean)
|
|
61
|
-
], FieldOverrideRequest.prototype, "showHelp", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_validator_1.IsOptional)(),
|
|
64
|
-
(0, class_validator_1.IsArray)(),
|
|
65
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
66
|
-
(0, class_transformer_1.Type)(() => SelectOption_1.SelectOption),
|
|
67
|
-
__metadata("design:type", Array)
|
|
68
|
-
], FieldOverrideRequest.prototype, "options", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_validator_1.IsOptional)(),
|
|
71
|
-
(0, class_validator_1.IsString)(),
|
|
72
|
-
(0, class_validator_1.MaxLength)(60),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], FieldOverrideRequest.prototype, "dependsOn", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsOptional)(),
|
|
77
|
-
(0, class_validator_1.ValidateNested)(),
|
|
78
|
-
(0, class_transformer_1.Type)(() => InputValidation_1.InputValidation),
|
|
79
|
-
__metadata("design:type", InputValidation_1.InputValidation)
|
|
80
|
-
], FieldOverrideRequest.prototype, "validation", void 0);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FieldOverrideRequest } from "./FieldOverrideRequest";
|
|
2
|
-
/**
|
|
3
|
-
* Override del inputSchema completo. El array `fieldOverrides[]` lista overrides
|
|
4
|
-
* parciales por `key`. La validación cruzada de que cada `key` exista en el
|
|
5
|
-
* inputSchema del conector la hace el manager (no se puede expresar con class-validator).
|
|
6
|
-
*/
|
|
7
|
-
export declare class InputSchemaOverrideRequest {
|
|
8
|
-
fieldOverrides: FieldOverrideRequest[];
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Estado de un leaf en el listado del backoffice de overrides.
|
|
3
|
-
*
|
|
4
|
-
* - ACTIVE: el override (si existe) tiene un base correspondiente en el catálogo del conector.
|
|
5
|
-
* - ORPHANED: existe override pero el conector ya no devuelve este leafId — el provider lo retiró.
|
|
6
|
-
*/
|
|
7
|
-
export declare enum LeafOverrideStatusEnum {
|
|
8
|
-
ACTIVE = "ACTIVE",
|
|
9
|
-
ORPHANED = "ORPHANED"
|
|
10
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LeafOverrideStatusEnum = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Estado de un leaf en el listado del backoffice de overrides.
|
|
6
|
-
*
|
|
7
|
-
* - ACTIVE: el override (si existe) tiene un base correspondiente en el catálogo del conector.
|
|
8
|
-
* - ORPHANED: existe override pero el conector ya no devuelve este leafId — el provider lo retiró.
|
|
9
|
-
*/
|
|
10
|
-
var LeafOverrideStatusEnum;
|
|
11
|
-
(function (LeafOverrideStatusEnum) {
|
|
12
|
-
LeafOverrideStatusEnum["ACTIVE"] = "ACTIVE";
|
|
13
|
-
LeafOverrideStatusEnum["ORPHANED"] = "ORPHANED";
|
|
14
|
-
})(LeafOverrideStatusEnum || (exports.LeafOverrideStatusEnum = LeafOverrideStatusEnum = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DeviceEnrollmentModeEnum } from "../enums/DeviceEnrollmentModeEnum";
|
|
2
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
3
|
-
import { MdmError } from "./MdmError";
|
|
4
|
-
export declare class DeviceEnrollResponse {
|
|
5
|
-
imei: string;
|
|
6
|
-
operationReference: string;
|
|
7
|
-
status: MdmOperationStatusEnum;
|
|
8
|
-
enrollmentMode?: DeviceEnrollmentModeEnum;
|
|
9
|
-
enrollmentId?: string;
|
|
10
|
-
error?: MdmError;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
-
import { MdmError } from "./MdmError";
|
|
3
|
-
export declare class DeviceReleaseResponse {
|
|
4
|
-
imei: string;
|
|
5
|
-
operationReference: string;
|
|
6
|
-
status: MdmOperationStatusEnum;
|
|
7
|
-
releasedAt?: string;
|
|
8
|
-
error?: MdmError;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
-
import { MdmError } from "./MdmError";
|
|
3
|
-
export declare class DeviceServiceDeactivateResponse {
|
|
4
|
-
imei: string;
|
|
5
|
-
operationReference: string;
|
|
6
|
-
status: MdmOperationStatusEnum;
|
|
7
|
-
deactivatedAt?: string;
|
|
8
|
-
error?: MdmError;
|
|
9
|
-
}
|