@fiado/type-kit 3.48.0 → 3.50.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/_test_/unit/cognitoBackofficeConnector/dtos/Introspect.test.ts +30 -30
- package/_test_/unit/platformRbac/auth/dtos.test.ts +42 -42
- package/_test_/unit/platformRbac/dtos/AuthorizeRequest.test.ts +30 -30
- package/_test_/unit/platformRbac/dtos/AuthorizeResponse.test.ts +25 -25
- package/bin/platformRbac/mfa/VerifyTotpEnrollmentRequest.d.ts +6 -0
- package/bin/platformRbac/mfa/VerifyTotpEnrollmentRequest.js +4 -0
- package/bin/provider/enums/Provider.d.ts +2 -1
- package/bin/provider/enums/Provider.js +1 -0
- package/bin/remittance/dtos/RemittancePayRequest.d.ts +20 -0
- package/bin/remittance/dtos/RemittancePayRequest.js +43 -0
- package/bin/remittance/dtos/RemittancePayResponse.d.ts +23 -0
- package/bin/remittance/dtos/RemittancePayResponse.js +14 -0
- package/bin/remittance/dtos/index.d.ts +2 -0
- package/bin/remittance/dtos/index.js +2 -0
- package/package.json +1 -1
- package/src/cognitoBackofficeConnector/dtos/InitiateAuthRequest.ts +12 -12
- package/src/cognitoBackofficeConnector/dtos/IntrospectRequest.ts +10 -10
- package/src/cognitoBackofficeConnector/dtos/IntrospectResponse.ts +10 -10
- package/src/cognitoBackofficeConnector/dtos/VerifyPasswordRequest.ts +15 -15
- package/src/cognitoBackofficeConnector/dtos/VerifyPasswordResponse.ts +6 -6
- package/src/cognitoBackofficeConnector/enums/CognitoChallengeType.ts +24 -24
- package/src/cognitoBackofficeConnector/enums/IntrospectFailReason.ts +11 -11
- package/src/mdm/README.md +78 -78
- package/src/mdm/dtos/DeviceArchiveRequest.ts +14 -14
- package/src/mdm/dtos/DeviceArchiveResponse.ts +10 -10
- package/src/mdm/dtos/DeviceAutoLockScheduleRequest.ts +18 -18
- package/src/mdm/dtos/DeviceAutoLockScheduleResponse.ts +10 -10
- package/src/mdm/dtos/DeviceEnrollInitiateResponse.ts +9 -9
- package/src/mdm/dtos/DeviceEnrollRequest.ts +38 -38
- package/src/mdm/dtos/DeviceEnrollStatusRequest.ts +14 -14
- package/src/mdm/dtos/DeviceEnrollStatusResponse.ts +15 -15
- package/src/mdm/dtos/DeviceEnrollmentCompletedEvent.ts +8 -8
- package/src/mdm/dtos/DeviceLastSeenRequest.ts +9 -9
- package/src/mdm/dtos/DeviceLastSeenResponse.ts +9 -9
- package/src/mdm/dtos/DeviceLockRequest.ts +46 -46
- package/src/mdm/dtos/DeviceLockResponse.ts +12 -12
- package/src/mdm/dtos/DeviceLockScreenMessage.ts +14 -14
- package/src/mdm/dtos/DeviceLogEntry.ts +5 -5
- package/src/mdm/dtos/DeviceLogRequest.ts +19 -19
- package/src/mdm/dtos/DeviceLogResponse.ts +10 -10
- package/src/mdm/dtos/DeviceNotifyRequest.ts +47 -47
- package/src/mdm/dtos/DeviceNotifyResponse.ts +10 -10
- package/src/mdm/dtos/DevicePinUnlockRequest.ts +19 -19
- package/src/mdm/dtos/DevicePinUnlockResponse.ts +12 -12
- package/src/mdm/dtos/DeviceReleaseCompletedEvent.ts +6 -6
- package/src/mdm/dtos/DeviceReleaseInitiateResponse.ts +10 -10
- package/src/mdm/dtos/DeviceReleaseRequest.ts +24 -24
- package/src/mdm/dtos/DeviceReleaseStatusRequest.ts +14 -14
- package/src/mdm/dtos/DeviceReleaseStatusResponse.ts +10 -10
- package/src/mdm/dtos/DeviceRestrictAppsRequest.ts +19 -19
- package/src/mdm/dtos/DeviceRestrictAppsResponse.ts +10 -10
- package/src/mdm/dtos/DeviceServiceDeactivateInitiateResponse.ts +9 -9
- package/src/mdm/dtos/DeviceServiceDeactivateRequest.ts +19 -19
- package/src/mdm/dtos/DeviceServiceDeactivateStatusRequest.ts +14 -14
- package/src/mdm/dtos/DeviceServiceDeactivateStatusResponse.ts +10 -10
- package/src/mdm/dtos/DeviceStatusRequest.ts +9 -9
- package/src/mdm/dtos/DeviceStatusResponse.ts +16 -16
- package/src/mdm/dtos/DeviceUnlockRequest.ts +14 -14
- package/src/mdm/dtos/DeviceUnlockResponse.ts +10 -10
- package/src/mdm/dtos/MdmError.ts +7 -7
- package/src/mdm/enums/DeviceEnrollmentModeEnum.ts +4 -4
- package/src/mdm/enums/DeviceLockModeEnum.ts +4 -4
- package/src/mdm/enums/DeviceNotifyIntensityEnum.ts +4 -4
- package/src/mdm/enums/DeviceReleaseReasonEnum.ts +5 -5
- package/src/mdm/enums/DeviceServiceDeactivateReasonEnum.ts +5 -5
- package/src/mdm/enums/MdmDeviceStatusEnum.ts +10 -10
- package/src/mdm/enums/MdmErrorCodeEnum.ts +17 -17
- package/src/mdm/enums/MdmOperationStatusEnum.ts +5 -5
- package/src/mdm/enums/MdmOperationTypeEnum.ts +15 -15
- package/src/mdm/enums/MdmProviderEnum.ts +4 -4
- package/src/mdm/index.ts +60 -60
- package/src/messagesConnector/dtos/MessagesByDestinationResponse.ts +5 -5
- package/src/messagesConnector/dtos/NotificationQueueMessageRequestV2.ts +54 -54
- package/src/messagesConnector/dtos/NotificationResponse.ts +19 -19
- package/src/messagesConnector/dtos/NotificationsCursorResponse.ts +6 -6
- package/src/messagesConnector/dtos/NotificationsPageResponse.ts +10 -10
- package/src/messagesConnector/dtos/NotificationsV3Response.ts +5 -5
- package/src/messagesConnector/dtos/OtpValidatedResponse.ts +9 -9
- package/src/messagesConnector/dtos/SendMessageResponse.ts +10 -10
- package/src/messagesConnector/dtos/TemplateMessageCreateRequest.ts +51 -51
- package/src/messagesConnector/dtos/TemplateMessageListFiltersRequest.ts +47 -47
- package/src/messagesConnector/dtos/TemplateMessageListResponse.ts +16 -16
- package/src/messagesConnector/dtos/TemplateMessageResponse.ts +52 -52
- package/src/messagesConnector/dtos/TemplateMessageUpdateRequest.ts +39 -39
- package/src/messagesConnector/dtos/VerifyOtpResponse.ts +5 -5
- package/src/messagesConnector/enums/DeliveryChannelExtendedEnum.ts +5 -5
- package/src/messagesConnector/validators/IsStringValueRecord.ts +12 -12
- package/src/messagesConnector/validators/IsTemplatePlaceholders.ts +45 -45
- package/src/messaging/dtos/MessageDeliveryRequest.ts +29 -29
- package/src/messaging/dtos/MessageDeliveryResponse.ts +6 -6
- package/src/messaging/enums/ContentTypeEnum.ts +4 -4
- package/src/messaging/enums/DeliveryChannelEnum.ts +4 -4
- package/src/messaging/index.ts +6 -6
- package/src/messaging/validators/IsDestinationByChannel.ts +61 -61
- package/src/messaging/validators/IsNotBlank.ts +31 -31
- package/src/platformRbac/auth/DefineNextChallengeRequest.ts +25 -25
- package/src/platformRbac/auth/DefineNextChallengeResponse.ts +14 -14
- package/src/platformRbac/auth/NewPasswordRequest.ts +10 -10
- package/src/platformRbac/auth/PrepareChallengeRequest.ts +13 -13
- package/src/platformRbac/auth/PrepareChallengeResponse.ts +9 -9
- package/src/platformRbac/auth/ResetPasswordRequest.ts +14 -14
- package/src/platformRbac/auth/VerifyChallengeRequest.ts +16 -16
- package/src/platformRbac/auth/VerifyChallengeResponse.ts +6 -6
- package/src/platformRbac/dtos/AuthorizeRequest.ts +14 -14
- package/src/platformRbac/dtos/AuthorizeResponse.ts +16 -16
- package/src/platformRbac/enums/AuthorizeDenyReason.ts +10 -10
- package/src/platformRbac/enums/ChallengeNameEnum.ts +7 -7
- package/src/platformRbac/enums/MfaMethodEnum.ts +4 -4
- package/src/platformRbac/mfa/ChangeMfaMethodRequest.ts +10 -10
- package/src/platformRbac/mfa/EnrollTotpResponse.ts +12 -12
- package/src/platformRbac/mfa/MfaStatusResponse.ts +14 -14
- package/src/platformRbac/mfa/VerifyTotpEnrollmentRequest.ts +15 -7
- package/src/provider/enums/Provider.ts +2 -1
- package/src/remittance/dtos/RemittancePayRequest.ts +30 -0
- package/src/remittance/dtos/RemittancePayResponse.ts +24 -0
- package/src/remittance/dtos/index.ts +2 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Expose } from "class-transformer";
|
|
2
|
-
import { IsString, IsNotEmpty, IsISO8601, IsOptional } from "class-validator";
|
|
3
|
-
|
|
4
|
-
export class DeviceLogRequest {
|
|
5
|
-
@Expose()
|
|
6
|
-
@IsString()
|
|
7
|
-
@IsNotEmpty()
|
|
8
|
-
imei: string;
|
|
9
|
-
|
|
10
|
-
@Expose()
|
|
11
|
-
@IsISO8601()
|
|
12
|
-
@IsOptional()
|
|
13
|
-
from?: string;
|
|
14
|
-
|
|
15
|
-
@Expose()
|
|
16
|
-
@IsISO8601()
|
|
17
|
-
@IsOptional()
|
|
18
|
-
to?: string;
|
|
19
|
-
}
|
|
1
|
+
import { Expose } from "class-transformer";
|
|
2
|
+
import { IsString, IsNotEmpty, IsISO8601, IsOptional } from "class-validator";
|
|
3
|
+
|
|
4
|
+
export class DeviceLogRequest {
|
|
5
|
+
@Expose()
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsNotEmpty()
|
|
8
|
+
imei: string;
|
|
9
|
+
|
|
10
|
+
@Expose()
|
|
11
|
+
@IsISO8601()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
from?: string;
|
|
14
|
+
|
|
15
|
+
@Expose()
|
|
16
|
+
@IsISO8601()
|
|
17
|
+
@IsOptional()
|
|
18
|
+
to?: string;
|
|
19
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
-
import { DeviceLogEntry } from "./DeviceLogEntry";
|
|
3
|
-
import { MdmError } from "./MdmError";
|
|
4
|
-
|
|
5
|
-
export class DeviceLogResponse {
|
|
6
|
-
imei: string;
|
|
7
|
-
status: MdmOperationStatusEnum;
|
|
8
|
-
entries?: DeviceLogEntry[];
|
|
9
|
-
error?: MdmError;
|
|
10
|
-
}
|
|
1
|
+
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
+
import { DeviceLogEntry } from "./DeviceLogEntry";
|
|
3
|
+
import { MdmError } from "./MdmError";
|
|
4
|
+
|
|
5
|
+
export class DeviceLogResponse {
|
|
6
|
+
imei: string;
|
|
7
|
+
status: MdmOperationStatusEnum;
|
|
8
|
+
entries?: DeviceLogEntry[];
|
|
9
|
+
error?: MdmError;
|
|
10
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { Expose } from "class-transformer";
|
|
2
|
-
import { IsString, IsNotEmpty, IsEnum } from "class-validator";
|
|
3
|
-
import { DeviceNotifyIntensityEnum } from "../enums/DeviceNotifyIntensityEnum";
|
|
4
|
-
|
|
5
|
-
export class DeviceNotifyRequest {
|
|
6
|
-
@Expose()
|
|
7
|
-
@IsString()
|
|
8
|
-
@IsNotEmpty()
|
|
9
|
-
imei: string;
|
|
10
|
-
|
|
11
|
-
@Expose()
|
|
12
|
-
@IsEnum(DeviceNotifyIntensityEnum)
|
|
13
|
-
intensity: DeviceNotifyIntensityEnum;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Código de notificación del catálogo (usado por Datacultr en su catálogo de mensajes
|
|
17
|
-
* predefinidos). Trustonic lo ignora porque exige texto crudo en `title + content`.
|
|
18
|
-
* Ver `trustonic-connector/docs/ARCHITECTURE.md` §7.6.
|
|
19
|
-
*/
|
|
20
|
-
@Expose()
|
|
21
|
-
@IsString()
|
|
22
|
-
@IsNotEmpty()
|
|
23
|
-
notificationCode: string;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Título de la notificación. Usado por Trustonic (`notificationTitle`). Datacultr lo
|
|
27
|
-
* ignora — el texto del título vive en su catálogo indexado por `notificationCode`.
|
|
28
|
-
*/
|
|
29
|
-
@Expose()
|
|
30
|
-
@IsString()
|
|
31
|
-
@IsNotEmpty()
|
|
32
|
-
title: string;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Cuerpo de la notificación. Usado por Trustonic (`notificationContent`). Datacultr lo
|
|
36
|
-
* ignora.
|
|
37
|
-
*/
|
|
38
|
-
@Expose()
|
|
39
|
-
@IsString()
|
|
40
|
-
@IsNotEmpty()
|
|
41
|
-
content: string;
|
|
42
|
-
|
|
43
|
-
@Expose()
|
|
44
|
-
@IsString()
|
|
45
|
-
@IsNotEmpty()
|
|
46
|
-
operationReference: string;
|
|
47
|
-
}
|
|
1
|
+
import { Expose } from "class-transformer";
|
|
2
|
+
import { IsString, IsNotEmpty, IsEnum } from "class-validator";
|
|
3
|
+
import { DeviceNotifyIntensityEnum } from "../enums/DeviceNotifyIntensityEnum";
|
|
4
|
+
|
|
5
|
+
export class DeviceNotifyRequest {
|
|
6
|
+
@Expose()
|
|
7
|
+
@IsString()
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
imei: string;
|
|
10
|
+
|
|
11
|
+
@Expose()
|
|
12
|
+
@IsEnum(DeviceNotifyIntensityEnum)
|
|
13
|
+
intensity: DeviceNotifyIntensityEnum;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Código de notificación del catálogo (usado por Datacultr en su catálogo de mensajes
|
|
17
|
+
* predefinidos). Trustonic lo ignora porque exige texto crudo en `title + content`.
|
|
18
|
+
* Ver `trustonic-connector/docs/ARCHITECTURE.md` §7.6.
|
|
19
|
+
*/
|
|
20
|
+
@Expose()
|
|
21
|
+
@IsString()
|
|
22
|
+
@IsNotEmpty()
|
|
23
|
+
notificationCode: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Título de la notificación. Usado por Trustonic (`notificationTitle`). Datacultr lo
|
|
27
|
+
* ignora — el texto del título vive en su catálogo indexado por `notificationCode`.
|
|
28
|
+
*/
|
|
29
|
+
@Expose()
|
|
30
|
+
@IsString()
|
|
31
|
+
@IsNotEmpty()
|
|
32
|
+
title: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Cuerpo de la notificación. Usado por Trustonic (`notificationContent`). Datacultr lo
|
|
36
|
+
* ignora.
|
|
37
|
+
*/
|
|
38
|
+
@Expose()
|
|
39
|
+
@IsString()
|
|
40
|
+
@IsNotEmpty()
|
|
41
|
+
content: string;
|
|
42
|
+
|
|
43
|
+
@Expose()
|
|
44
|
+
@IsString()
|
|
45
|
+
@IsNotEmpty()
|
|
46
|
+
operationReference: string;
|
|
47
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
-
import { MdmError } from "./MdmError";
|
|
3
|
-
|
|
4
|
-
export class DeviceNotifyResponse {
|
|
5
|
-
imei: string;
|
|
6
|
-
operationReference: string;
|
|
7
|
-
status: MdmOperationStatusEnum;
|
|
8
|
-
sentAt?: string;
|
|
9
|
-
error?: MdmError;
|
|
10
|
-
}
|
|
1
|
+
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
+
import { MdmError } from "./MdmError";
|
|
3
|
+
|
|
4
|
+
export class DeviceNotifyResponse {
|
|
5
|
+
imei: string;
|
|
6
|
+
operationReference: string;
|
|
7
|
+
status: MdmOperationStatusEnum;
|
|
8
|
+
sentAt?: string;
|
|
9
|
+
error?: MdmError;
|
|
10
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Expose } from "class-transformer";
|
|
2
|
-
import { IsString, IsNotEmpty, IsOptional } from "class-validator";
|
|
3
|
-
|
|
4
|
-
export class DevicePinUnlockRequest {
|
|
5
|
-
@Expose()
|
|
6
|
-
@IsString()
|
|
7
|
-
@IsNotEmpty()
|
|
8
|
-
imei: string;
|
|
9
|
-
|
|
10
|
-
@Expose()
|
|
11
|
-
@IsString()
|
|
12
|
-
@IsOptional()
|
|
13
|
-
devicePasskey?: string;
|
|
14
|
-
|
|
15
|
-
@Expose()
|
|
16
|
-
@IsString()
|
|
17
|
-
@IsNotEmpty()
|
|
18
|
-
operationReference: string;
|
|
19
|
-
}
|
|
1
|
+
import { Expose } from "class-transformer";
|
|
2
|
+
import { IsString, IsNotEmpty, IsOptional } from "class-validator";
|
|
3
|
+
|
|
4
|
+
export class DevicePinUnlockRequest {
|
|
5
|
+
@Expose()
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsNotEmpty()
|
|
8
|
+
imei: string;
|
|
9
|
+
|
|
10
|
+
@Expose()
|
|
11
|
+
@IsString()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
devicePasskey?: string;
|
|
14
|
+
|
|
15
|
+
@Expose()
|
|
16
|
+
@IsString()
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
operationReference: string;
|
|
19
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
-
import { MdmError } from "./MdmError";
|
|
3
|
-
|
|
4
|
-
export class DevicePinUnlockResponse {
|
|
5
|
-
imei: string;
|
|
6
|
-
operationReference: string;
|
|
7
|
-
status: MdmOperationStatusEnum;
|
|
8
|
-
pin?: string;
|
|
9
|
-
validitySeconds?: number;
|
|
10
|
-
generatedAt?: string;
|
|
11
|
-
error?: MdmError;
|
|
12
|
-
}
|
|
1
|
+
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
+
import { MdmError } from "./MdmError";
|
|
3
|
+
|
|
4
|
+
export class DevicePinUnlockResponse {
|
|
5
|
+
imei: string;
|
|
6
|
+
operationReference: string;
|
|
7
|
+
status: MdmOperationStatusEnum;
|
|
8
|
+
pin?: string;
|
|
9
|
+
validitySeconds?: number;
|
|
10
|
+
generatedAt?: string;
|
|
11
|
+
error?: MdmError;
|
|
12
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export class DeviceReleaseCompletedEvent {
|
|
2
|
-
imei: string;
|
|
3
|
-
releasedAt: string;
|
|
4
|
-
successful: boolean;
|
|
5
|
-
provider: string;
|
|
6
|
-
}
|
|
1
|
+
export class DeviceReleaseCompletedEvent {
|
|
2
|
+
imei: string;
|
|
3
|
+
releasedAt: string;
|
|
4
|
+
successful: boolean;
|
|
5
|
+
provider: string;
|
|
6
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
-
import { MdmError } from "./MdmError";
|
|
3
|
-
|
|
4
|
-
export class DeviceReleaseInitiateResponse {
|
|
5
|
-
imei: string;
|
|
6
|
-
operationReference: string;
|
|
7
|
-
status: MdmOperationStatusEnum;
|
|
8
|
-
releasedAt?: string;
|
|
9
|
-
error?: MdmError;
|
|
10
|
-
}
|
|
1
|
+
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
+
import { MdmError } from "./MdmError";
|
|
3
|
+
|
|
4
|
+
export class DeviceReleaseInitiateResponse {
|
|
5
|
+
imei: string;
|
|
6
|
+
operationReference: string;
|
|
7
|
+
status: MdmOperationStatusEnum;
|
|
8
|
+
releasedAt?: string;
|
|
9
|
+
error?: MdmError;
|
|
10
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Expose } from "class-transformer";
|
|
2
|
-
import { IsString, IsNotEmpty, IsEnum, IsOptional } from "class-validator";
|
|
3
|
-
import { DeviceReleaseReasonEnum } from "../enums/DeviceReleaseReasonEnum";
|
|
4
|
-
|
|
5
|
-
export class DeviceReleaseRequest {
|
|
6
|
-
@Expose()
|
|
7
|
-
@IsString()
|
|
8
|
-
@IsNotEmpty()
|
|
9
|
-
imei: string;
|
|
10
|
-
|
|
11
|
-
@Expose()
|
|
12
|
-
@IsEnum(DeviceReleaseReasonEnum)
|
|
13
|
-
reason: DeviceReleaseReasonEnum;
|
|
14
|
-
|
|
15
|
-
@Expose()
|
|
16
|
-
@IsString()
|
|
17
|
-
@IsOptional()
|
|
18
|
-
comment?: string;
|
|
19
|
-
|
|
20
|
-
@Expose()
|
|
21
|
-
@IsString()
|
|
22
|
-
@IsNotEmpty()
|
|
23
|
-
operationReference: string;
|
|
24
|
-
}
|
|
1
|
+
import { Expose } from "class-transformer";
|
|
2
|
+
import { IsString, IsNotEmpty, IsEnum, IsOptional } from "class-validator";
|
|
3
|
+
import { DeviceReleaseReasonEnum } from "../enums/DeviceReleaseReasonEnum";
|
|
4
|
+
|
|
5
|
+
export class DeviceReleaseRequest {
|
|
6
|
+
@Expose()
|
|
7
|
+
@IsString()
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
imei: string;
|
|
10
|
+
|
|
11
|
+
@Expose()
|
|
12
|
+
@IsEnum(DeviceReleaseReasonEnum)
|
|
13
|
+
reason: DeviceReleaseReasonEnum;
|
|
14
|
+
|
|
15
|
+
@Expose()
|
|
16
|
+
@IsString()
|
|
17
|
+
@IsOptional()
|
|
18
|
+
comment?: string;
|
|
19
|
+
|
|
20
|
+
@Expose()
|
|
21
|
+
@IsString()
|
|
22
|
+
@IsNotEmpty()
|
|
23
|
+
operationReference: string;
|
|
24
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Expose } from "class-transformer";
|
|
2
|
-
import { IsString, IsNotEmpty } from "class-validator";
|
|
3
|
-
|
|
4
|
-
export class DeviceReleaseStatusRequest {
|
|
5
|
-
@Expose()
|
|
6
|
-
@IsString()
|
|
7
|
-
@IsNotEmpty()
|
|
8
|
-
imei: string;
|
|
9
|
-
|
|
10
|
-
@Expose()
|
|
11
|
-
@IsString()
|
|
12
|
-
@IsNotEmpty()
|
|
13
|
-
operationReference: string;
|
|
14
|
-
}
|
|
1
|
+
import { Expose } from "class-transformer";
|
|
2
|
+
import { IsString, IsNotEmpty } from "class-validator";
|
|
3
|
+
|
|
4
|
+
export class DeviceReleaseStatusRequest {
|
|
5
|
+
@Expose()
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsNotEmpty()
|
|
8
|
+
imei: string;
|
|
9
|
+
|
|
10
|
+
@Expose()
|
|
11
|
+
@IsString()
|
|
12
|
+
@IsNotEmpty()
|
|
13
|
+
operationReference: string;
|
|
14
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
-
import { MdmError } from "./MdmError";
|
|
3
|
-
|
|
4
|
-
export class DeviceReleaseStatusResponse {
|
|
5
|
-
imei: string;
|
|
6
|
-
operationReference: string;
|
|
7
|
-
status: MdmOperationStatusEnum;
|
|
8
|
-
releasedAt?: string;
|
|
9
|
-
error?: MdmError;
|
|
10
|
-
}
|
|
1
|
+
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
+
import { MdmError } from "./MdmError";
|
|
3
|
+
|
|
4
|
+
export class DeviceReleaseStatusResponse {
|
|
5
|
+
imei: string;
|
|
6
|
+
operationReference: string;
|
|
7
|
+
status: MdmOperationStatusEnum;
|
|
8
|
+
releasedAt?: string;
|
|
9
|
+
error?: MdmError;
|
|
10
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Expose } from "class-transformer";
|
|
2
|
-
import { IsString, IsNotEmpty } from "class-validator";
|
|
3
|
-
|
|
4
|
-
export class DeviceRestrictAppsRequest {
|
|
5
|
-
@Expose()
|
|
6
|
-
@IsString()
|
|
7
|
-
@IsNotEmpty()
|
|
8
|
-
imei: string;
|
|
9
|
-
|
|
10
|
-
@Expose()
|
|
11
|
-
@IsString()
|
|
12
|
-
@IsNotEmpty()
|
|
13
|
-
restrictionCode: string;
|
|
14
|
-
|
|
15
|
-
@Expose()
|
|
16
|
-
@IsString()
|
|
17
|
-
@IsNotEmpty()
|
|
18
|
-
operationReference: string;
|
|
19
|
-
}
|
|
1
|
+
import { Expose } from "class-transformer";
|
|
2
|
+
import { IsString, IsNotEmpty } from "class-validator";
|
|
3
|
+
|
|
4
|
+
export class DeviceRestrictAppsRequest {
|
|
5
|
+
@Expose()
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsNotEmpty()
|
|
8
|
+
imei: string;
|
|
9
|
+
|
|
10
|
+
@Expose()
|
|
11
|
+
@IsString()
|
|
12
|
+
@IsNotEmpty()
|
|
13
|
+
restrictionCode: string;
|
|
14
|
+
|
|
15
|
+
@Expose()
|
|
16
|
+
@IsString()
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
operationReference: string;
|
|
19
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
-
import { MdmError } from "./MdmError";
|
|
3
|
-
|
|
4
|
-
export class DeviceRestrictAppsResponse {
|
|
5
|
-
imei: string;
|
|
6
|
-
operationReference: string;
|
|
7
|
-
status: MdmOperationStatusEnum;
|
|
8
|
-
appliedAt?: string;
|
|
9
|
-
error?: MdmError;
|
|
10
|
-
}
|
|
1
|
+
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
+
import { MdmError } from "./MdmError";
|
|
3
|
+
|
|
4
|
+
export class DeviceRestrictAppsResponse {
|
|
5
|
+
imei: string;
|
|
6
|
+
operationReference: string;
|
|
7
|
+
status: MdmOperationStatusEnum;
|
|
8
|
+
appliedAt?: string;
|
|
9
|
+
error?: MdmError;
|
|
10
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
-
import { MdmError } from "./MdmError";
|
|
3
|
-
|
|
4
|
-
export class DeviceServiceDeactivateInitiateResponse {
|
|
5
|
-
imei: string;
|
|
6
|
-
operationReference: string;
|
|
7
|
-
status: MdmOperationStatusEnum;
|
|
8
|
-
error?: MdmError;
|
|
9
|
-
}
|
|
1
|
+
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
+
import { MdmError } from "./MdmError";
|
|
3
|
+
|
|
4
|
+
export class DeviceServiceDeactivateInitiateResponse {
|
|
5
|
+
imei: string;
|
|
6
|
+
operationReference: string;
|
|
7
|
+
status: MdmOperationStatusEnum;
|
|
8
|
+
error?: MdmError;
|
|
9
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Expose } from "class-transformer";
|
|
2
|
-
import { IsString, IsNotEmpty, IsEnum } from "class-validator";
|
|
3
|
-
import { DeviceServiceDeactivateReasonEnum } from "../enums/DeviceServiceDeactivateReasonEnum";
|
|
4
|
-
|
|
5
|
-
export class DeviceServiceDeactivateRequest {
|
|
6
|
-
@Expose()
|
|
7
|
-
@IsString()
|
|
8
|
-
@IsNotEmpty()
|
|
9
|
-
imei: string;
|
|
10
|
-
|
|
11
|
-
@Expose()
|
|
12
|
-
@IsEnum(DeviceServiceDeactivateReasonEnum)
|
|
13
|
-
reason: DeviceServiceDeactivateReasonEnum;
|
|
14
|
-
|
|
15
|
-
@Expose()
|
|
16
|
-
@IsString()
|
|
17
|
-
@IsNotEmpty()
|
|
18
|
-
operationReference: string;
|
|
19
|
-
}
|
|
1
|
+
import { Expose } from "class-transformer";
|
|
2
|
+
import { IsString, IsNotEmpty, IsEnum } from "class-validator";
|
|
3
|
+
import { DeviceServiceDeactivateReasonEnum } from "../enums/DeviceServiceDeactivateReasonEnum";
|
|
4
|
+
|
|
5
|
+
export class DeviceServiceDeactivateRequest {
|
|
6
|
+
@Expose()
|
|
7
|
+
@IsString()
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
imei: string;
|
|
10
|
+
|
|
11
|
+
@Expose()
|
|
12
|
+
@IsEnum(DeviceServiceDeactivateReasonEnum)
|
|
13
|
+
reason: DeviceServiceDeactivateReasonEnum;
|
|
14
|
+
|
|
15
|
+
@Expose()
|
|
16
|
+
@IsString()
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
operationReference: string;
|
|
19
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Expose } from "class-transformer";
|
|
2
|
-
import { IsString, IsNotEmpty } from "class-validator";
|
|
3
|
-
|
|
4
|
-
export class DeviceServiceDeactivateStatusRequest {
|
|
5
|
-
@Expose()
|
|
6
|
-
@IsString()
|
|
7
|
-
@IsNotEmpty()
|
|
8
|
-
imei: string;
|
|
9
|
-
|
|
10
|
-
@Expose()
|
|
11
|
-
@IsString()
|
|
12
|
-
@IsNotEmpty()
|
|
13
|
-
operationReference: string;
|
|
14
|
-
}
|
|
1
|
+
import { Expose } from "class-transformer";
|
|
2
|
+
import { IsString, IsNotEmpty } from "class-validator";
|
|
3
|
+
|
|
4
|
+
export class DeviceServiceDeactivateStatusRequest {
|
|
5
|
+
@Expose()
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsNotEmpty()
|
|
8
|
+
imei: string;
|
|
9
|
+
|
|
10
|
+
@Expose()
|
|
11
|
+
@IsString()
|
|
12
|
+
@IsNotEmpty()
|
|
13
|
+
operationReference: string;
|
|
14
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
-
import { MdmError } from "./MdmError";
|
|
3
|
-
|
|
4
|
-
export class DeviceServiceDeactivateStatusResponse {
|
|
5
|
-
imei: string;
|
|
6
|
-
operationReference: string;
|
|
7
|
-
status: MdmOperationStatusEnum;
|
|
8
|
-
deactivatedAt?: string;
|
|
9
|
-
error?: MdmError;
|
|
10
|
-
}
|
|
1
|
+
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
+
import { MdmError } from "./MdmError";
|
|
3
|
+
|
|
4
|
+
export class DeviceServiceDeactivateStatusResponse {
|
|
5
|
+
imei: string;
|
|
6
|
+
operationReference: string;
|
|
7
|
+
status: MdmOperationStatusEnum;
|
|
8
|
+
deactivatedAt?: string;
|
|
9
|
+
error?: MdmError;
|
|
10
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Expose } from "class-transformer";
|
|
2
|
-
import { IsString, IsNotEmpty } from "class-validator";
|
|
3
|
-
|
|
4
|
-
export class DeviceStatusRequest {
|
|
5
|
-
@Expose()
|
|
6
|
-
@IsString()
|
|
7
|
-
@IsNotEmpty()
|
|
8
|
-
imei: string;
|
|
9
|
-
}
|
|
1
|
+
import { Expose } from "class-transformer";
|
|
2
|
+
import { IsString, IsNotEmpty } from "class-validator";
|
|
3
|
+
|
|
4
|
+
export class DeviceStatusRequest {
|
|
5
|
+
@Expose()
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsNotEmpty()
|
|
8
|
+
imei: string;
|
|
9
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { MdmDeviceStatusEnum } from "../enums/MdmDeviceStatusEnum";
|
|
2
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
3
|
-
import { MdmError } from "./MdmError";
|
|
4
|
-
|
|
5
|
-
export class DeviceStatusResponse {
|
|
6
|
-
imei: string;
|
|
7
|
-
status: MdmOperationStatusEnum;
|
|
8
|
-
deviceStatus?: MdmDeviceStatusEnum;
|
|
9
|
-
brand?: string;
|
|
10
|
-
model?: string;
|
|
11
|
-
marketName?: string;
|
|
12
|
-
lastSeenAt?: string;
|
|
13
|
-
lastTransition?: string;
|
|
14
|
-
enrolledAt?: string;
|
|
15
|
-
error?: MdmError;
|
|
16
|
-
}
|
|
1
|
+
import { MdmDeviceStatusEnum } from "../enums/MdmDeviceStatusEnum";
|
|
2
|
+
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
3
|
+
import { MdmError } from "./MdmError";
|
|
4
|
+
|
|
5
|
+
export class DeviceStatusResponse {
|
|
6
|
+
imei: string;
|
|
7
|
+
status: MdmOperationStatusEnum;
|
|
8
|
+
deviceStatus?: MdmDeviceStatusEnum;
|
|
9
|
+
brand?: string;
|
|
10
|
+
model?: string;
|
|
11
|
+
marketName?: string;
|
|
12
|
+
lastSeenAt?: string;
|
|
13
|
+
lastTransition?: string;
|
|
14
|
+
enrolledAt?: string;
|
|
15
|
+
error?: MdmError;
|
|
16
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Expose } from "class-transformer";
|
|
2
|
-
import { IsString, IsNotEmpty } from "class-validator";
|
|
3
|
-
|
|
4
|
-
export class DeviceUnlockRequest {
|
|
5
|
-
@Expose()
|
|
6
|
-
@IsString()
|
|
7
|
-
@IsNotEmpty()
|
|
8
|
-
imei: string;
|
|
9
|
-
|
|
10
|
-
@Expose()
|
|
11
|
-
@IsString()
|
|
12
|
-
@IsNotEmpty()
|
|
13
|
-
operationReference: string;
|
|
14
|
-
}
|
|
1
|
+
import { Expose } from "class-transformer";
|
|
2
|
+
import { IsString, IsNotEmpty } from "class-validator";
|
|
3
|
+
|
|
4
|
+
export class DeviceUnlockRequest {
|
|
5
|
+
@Expose()
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsNotEmpty()
|
|
8
|
+
imei: string;
|
|
9
|
+
|
|
10
|
+
@Expose()
|
|
11
|
+
@IsString()
|
|
12
|
+
@IsNotEmpty()
|
|
13
|
+
operationReference: string;
|
|
14
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
-
import { MdmError } from "./MdmError";
|
|
3
|
-
|
|
4
|
-
export class DeviceUnlockResponse {
|
|
5
|
-
imei: string;
|
|
6
|
-
operationReference: string;
|
|
7
|
-
status: MdmOperationStatusEnum;
|
|
8
|
-
unlockedAt?: string;
|
|
9
|
-
error?: MdmError;
|
|
10
|
-
}
|
|
1
|
+
import { MdmOperationStatusEnum } from "../enums/MdmOperationStatusEnum";
|
|
2
|
+
import { MdmError } from "./MdmError";
|
|
3
|
+
|
|
4
|
+
export class DeviceUnlockResponse {
|
|
5
|
+
imei: string;
|
|
6
|
+
operationReference: string;
|
|
7
|
+
status: MdmOperationStatusEnum;
|
|
8
|
+
unlockedAt?: string;
|
|
9
|
+
error?: MdmError;
|
|
10
|
+
}
|