@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.
Files changed (116) hide show
  1. package/_test_/unit/cognitoBackofficeConnector/dtos/Introspect.test.ts +30 -30
  2. package/_test_/unit/platformRbac/auth/dtos.test.ts +42 -42
  3. package/_test_/unit/platformRbac/dtos/AuthorizeRequest.test.ts +30 -30
  4. package/_test_/unit/platformRbac/dtos/AuthorizeResponse.test.ts +25 -25
  5. package/bin/platformRbac/mfa/VerifyTotpEnrollmentRequest.d.ts +6 -0
  6. package/bin/platformRbac/mfa/VerifyTotpEnrollmentRequest.js +4 -0
  7. package/bin/provider/enums/Provider.d.ts +2 -1
  8. package/bin/provider/enums/Provider.js +1 -0
  9. package/bin/remittance/dtos/RemittancePayRequest.d.ts +20 -0
  10. package/bin/remittance/dtos/RemittancePayRequest.js +43 -0
  11. package/bin/remittance/dtos/RemittancePayResponse.d.ts +23 -0
  12. package/bin/remittance/dtos/RemittancePayResponse.js +14 -0
  13. package/bin/remittance/dtos/index.d.ts +2 -0
  14. package/bin/remittance/dtos/index.js +2 -0
  15. package/package.json +1 -1
  16. package/src/cognitoBackofficeConnector/dtos/InitiateAuthRequest.ts +12 -12
  17. package/src/cognitoBackofficeConnector/dtos/IntrospectRequest.ts +10 -10
  18. package/src/cognitoBackofficeConnector/dtos/IntrospectResponse.ts +10 -10
  19. package/src/cognitoBackofficeConnector/dtos/VerifyPasswordRequest.ts +15 -15
  20. package/src/cognitoBackofficeConnector/dtos/VerifyPasswordResponse.ts +6 -6
  21. package/src/cognitoBackofficeConnector/enums/CognitoChallengeType.ts +24 -24
  22. package/src/cognitoBackofficeConnector/enums/IntrospectFailReason.ts +11 -11
  23. package/src/mdm/README.md +78 -78
  24. package/src/mdm/dtos/DeviceArchiveRequest.ts +14 -14
  25. package/src/mdm/dtos/DeviceArchiveResponse.ts +10 -10
  26. package/src/mdm/dtos/DeviceAutoLockScheduleRequest.ts +18 -18
  27. package/src/mdm/dtos/DeviceAutoLockScheduleResponse.ts +10 -10
  28. package/src/mdm/dtos/DeviceEnrollInitiateResponse.ts +9 -9
  29. package/src/mdm/dtos/DeviceEnrollRequest.ts +38 -38
  30. package/src/mdm/dtos/DeviceEnrollStatusRequest.ts +14 -14
  31. package/src/mdm/dtos/DeviceEnrollStatusResponse.ts +15 -15
  32. package/src/mdm/dtos/DeviceEnrollmentCompletedEvent.ts +8 -8
  33. package/src/mdm/dtos/DeviceLastSeenRequest.ts +9 -9
  34. package/src/mdm/dtos/DeviceLastSeenResponse.ts +9 -9
  35. package/src/mdm/dtos/DeviceLockRequest.ts +46 -46
  36. package/src/mdm/dtos/DeviceLockResponse.ts +12 -12
  37. package/src/mdm/dtos/DeviceLockScreenMessage.ts +14 -14
  38. package/src/mdm/dtos/DeviceLogEntry.ts +5 -5
  39. package/src/mdm/dtos/DeviceLogRequest.ts +19 -19
  40. package/src/mdm/dtos/DeviceLogResponse.ts +10 -10
  41. package/src/mdm/dtos/DeviceNotifyRequest.ts +47 -47
  42. package/src/mdm/dtos/DeviceNotifyResponse.ts +10 -10
  43. package/src/mdm/dtos/DevicePinUnlockRequest.ts +19 -19
  44. package/src/mdm/dtos/DevicePinUnlockResponse.ts +12 -12
  45. package/src/mdm/dtos/DeviceReleaseCompletedEvent.ts +6 -6
  46. package/src/mdm/dtos/DeviceReleaseInitiateResponse.ts +10 -10
  47. package/src/mdm/dtos/DeviceReleaseRequest.ts +24 -24
  48. package/src/mdm/dtos/DeviceReleaseStatusRequest.ts +14 -14
  49. package/src/mdm/dtos/DeviceReleaseStatusResponse.ts +10 -10
  50. package/src/mdm/dtos/DeviceRestrictAppsRequest.ts +19 -19
  51. package/src/mdm/dtos/DeviceRestrictAppsResponse.ts +10 -10
  52. package/src/mdm/dtos/DeviceServiceDeactivateInitiateResponse.ts +9 -9
  53. package/src/mdm/dtos/DeviceServiceDeactivateRequest.ts +19 -19
  54. package/src/mdm/dtos/DeviceServiceDeactivateStatusRequest.ts +14 -14
  55. package/src/mdm/dtos/DeviceServiceDeactivateStatusResponse.ts +10 -10
  56. package/src/mdm/dtos/DeviceStatusRequest.ts +9 -9
  57. package/src/mdm/dtos/DeviceStatusResponse.ts +16 -16
  58. package/src/mdm/dtos/DeviceUnlockRequest.ts +14 -14
  59. package/src/mdm/dtos/DeviceUnlockResponse.ts +10 -10
  60. package/src/mdm/dtos/MdmError.ts +7 -7
  61. package/src/mdm/enums/DeviceEnrollmentModeEnum.ts +4 -4
  62. package/src/mdm/enums/DeviceLockModeEnum.ts +4 -4
  63. package/src/mdm/enums/DeviceNotifyIntensityEnum.ts +4 -4
  64. package/src/mdm/enums/DeviceReleaseReasonEnum.ts +5 -5
  65. package/src/mdm/enums/DeviceServiceDeactivateReasonEnum.ts +5 -5
  66. package/src/mdm/enums/MdmDeviceStatusEnum.ts +10 -10
  67. package/src/mdm/enums/MdmErrorCodeEnum.ts +17 -17
  68. package/src/mdm/enums/MdmOperationStatusEnum.ts +5 -5
  69. package/src/mdm/enums/MdmOperationTypeEnum.ts +15 -15
  70. package/src/mdm/enums/MdmProviderEnum.ts +4 -4
  71. package/src/mdm/index.ts +60 -60
  72. package/src/messagesConnector/dtos/MessagesByDestinationResponse.ts +5 -5
  73. package/src/messagesConnector/dtos/NotificationQueueMessageRequestV2.ts +54 -54
  74. package/src/messagesConnector/dtos/NotificationResponse.ts +19 -19
  75. package/src/messagesConnector/dtos/NotificationsCursorResponse.ts +6 -6
  76. package/src/messagesConnector/dtos/NotificationsPageResponse.ts +10 -10
  77. package/src/messagesConnector/dtos/NotificationsV3Response.ts +5 -5
  78. package/src/messagesConnector/dtos/OtpValidatedResponse.ts +9 -9
  79. package/src/messagesConnector/dtos/SendMessageResponse.ts +10 -10
  80. package/src/messagesConnector/dtos/TemplateMessageCreateRequest.ts +51 -51
  81. package/src/messagesConnector/dtos/TemplateMessageListFiltersRequest.ts +47 -47
  82. package/src/messagesConnector/dtos/TemplateMessageListResponse.ts +16 -16
  83. package/src/messagesConnector/dtos/TemplateMessageResponse.ts +52 -52
  84. package/src/messagesConnector/dtos/TemplateMessageUpdateRequest.ts +39 -39
  85. package/src/messagesConnector/dtos/VerifyOtpResponse.ts +5 -5
  86. package/src/messagesConnector/enums/DeliveryChannelExtendedEnum.ts +5 -5
  87. package/src/messagesConnector/validators/IsStringValueRecord.ts +12 -12
  88. package/src/messagesConnector/validators/IsTemplatePlaceholders.ts +45 -45
  89. package/src/messaging/dtos/MessageDeliveryRequest.ts +29 -29
  90. package/src/messaging/dtos/MessageDeliveryResponse.ts +6 -6
  91. package/src/messaging/enums/ContentTypeEnum.ts +4 -4
  92. package/src/messaging/enums/DeliveryChannelEnum.ts +4 -4
  93. package/src/messaging/index.ts +6 -6
  94. package/src/messaging/validators/IsDestinationByChannel.ts +61 -61
  95. package/src/messaging/validators/IsNotBlank.ts +31 -31
  96. package/src/platformRbac/auth/DefineNextChallengeRequest.ts +25 -25
  97. package/src/platformRbac/auth/DefineNextChallengeResponse.ts +14 -14
  98. package/src/platformRbac/auth/NewPasswordRequest.ts +10 -10
  99. package/src/platformRbac/auth/PrepareChallengeRequest.ts +13 -13
  100. package/src/platformRbac/auth/PrepareChallengeResponse.ts +9 -9
  101. package/src/platformRbac/auth/ResetPasswordRequest.ts +14 -14
  102. package/src/platformRbac/auth/VerifyChallengeRequest.ts +16 -16
  103. package/src/platformRbac/auth/VerifyChallengeResponse.ts +6 -6
  104. package/src/platformRbac/dtos/AuthorizeRequest.ts +14 -14
  105. package/src/platformRbac/dtos/AuthorizeResponse.ts +16 -16
  106. package/src/platformRbac/enums/AuthorizeDenyReason.ts +10 -10
  107. package/src/platformRbac/enums/ChallengeNameEnum.ts +7 -7
  108. package/src/platformRbac/enums/MfaMethodEnum.ts +4 -4
  109. package/src/platformRbac/mfa/ChangeMfaMethodRequest.ts +10 -10
  110. package/src/platformRbac/mfa/EnrollTotpResponse.ts +12 -12
  111. package/src/platformRbac/mfa/MfaStatusResponse.ts +14 -14
  112. package/src/platformRbac/mfa/VerifyTotpEnrollmentRequest.ts +15 -7
  113. package/src/provider/enums/Provider.ts +2 -1
  114. package/src/remittance/dtos/RemittancePayRequest.ts +30 -0
  115. package/src/remittance/dtos/RemittancePayResponse.ts +24 -0
  116. 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
+ }