@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
package/src/mdm/dtos/MdmError.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MdmErrorCodeEnum } from "../enums/MdmErrorCodeEnum";
|
|
2
|
-
|
|
3
|
-
export class MdmError {
|
|
4
|
-
code: MdmErrorCodeEnum;
|
|
5
|
-
message: string;
|
|
6
|
-
providerDetails?: string;
|
|
7
|
-
}
|
|
1
|
+
import { MdmErrorCodeEnum } from "../enums/MdmErrorCodeEnum";
|
|
2
|
+
|
|
3
|
+
export class MdmError {
|
|
4
|
+
code: MdmErrorCodeEnum;
|
|
5
|
+
message: string;
|
|
6
|
+
providerDetails?: string;
|
|
7
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export enum DeviceEnrollmentModeEnum {
|
|
2
|
-
INITIATED_BY_API = "INITIATED_BY_API",
|
|
3
|
-
PENDING_FROM_DEVICE = "PENDING_FROM_DEVICE"
|
|
4
|
-
}
|
|
1
|
+
export enum DeviceEnrollmentModeEnum {
|
|
2
|
+
INITIATED_BY_API = "INITIATED_BY_API",
|
|
3
|
+
PENDING_FROM_DEVICE = "PENDING_FROM_DEVICE"
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export enum DeviceLockModeEnum {
|
|
2
|
-
TEMPORARY = "TEMPORARY",
|
|
3
|
-
FIRM = "FIRM"
|
|
4
|
-
}
|
|
1
|
+
export enum DeviceLockModeEnum {
|
|
2
|
+
TEMPORARY = "TEMPORARY",
|
|
3
|
+
FIRM = "FIRM"
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export enum DeviceNotifyIntensityEnum {
|
|
2
|
-
BANNER = "BANNER",
|
|
3
|
-
FULLSCREEN = "FULLSCREEN"
|
|
4
|
-
}
|
|
1
|
+
export enum DeviceNotifyIntensityEnum {
|
|
2
|
+
BANNER = "BANNER",
|
|
3
|
+
FULLSCREEN = "FULLSCREEN"
|
|
4
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export enum DeviceReleaseReasonEnum {
|
|
2
|
-
CREDIT_PAID_OFF = "CREDIT_PAID_OFF",
|
|
3
|
-
ACCOUNTING_WRITE_OFF = "ACCOUNTING_WRITE_OFF",
|
|
4
|
-
OTHER = "OTHER"
|
|
5
|
-
}
|
|
1
|
+
export enum DeviceReleaseReasonEnum {
|
|
2
|
+
CREDIT_PAID_OFF = "CREDIT_PAID_OFF",
|
|
3
|
+
ACCOUNTING_WRITE_OFF = "ACCOUNTING_WRITE_OFF",
|
|
4
|
+
OTHER = "OTHER"
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export enum DeviceServiceDeactivateReasonEnum {
|
|
2
|
-
TENURE_END = "TENURE_END",
|
|
3
|
-
CASH_SALE = "CASH_SALE",
|
|
4
|
-
OTHER = "OTHER"
|
|
5
|
-
}
|
|
1
|
+
export enum DeviceServiceDeactivateReasonEnum {
|
|
2
|
+
TENURE_END = "TENURE_END",
|
|
3
|
+
CASH_SALE = "CASH_SALE",
|
|
4
|
+
OTHER = "OTHER"
|
|
5
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export enum MdmDeviceStatusEnum {
|
|
2
|
-
NOT_ENROLLED = "NOT_ENROLLED",
|
|
3
|
-
ENROLLMENT_PENDING = "ENROLLMENT_PENDING",
|
|
4
|
-
ACTIVE = "ACTIVE",
|
|
5
|
-
NOTIFIED = "NOTIFIED",
|
|
6
|
-
APPS_RESTRICTED = "APPS_RESTRICTED",
|
|
7
|
-
LOCKED = "LOCKED",
|
|
8
|
-
RELEASED = "RELEASED",
|
|
9
|
-
UNKNOWN = "UNKNOWN"
|
|
10
|
-
}
|
|
1
|
+
export enum MdmDeviceStatusEnum {
|
|
2
|
+
NOT_ENROLLED = "NOT_ENROLLED",
|
|
3
|
+
ENROLLMENT_PENDING = "ENROLLMENT_PENDING",
|
|
4
|
+
ACTIVE = "ACTIVE",
|
|
5
|
+
NOTIFIED = "NOTIFIED",
|
|
6
|
+
APPS_RESTRICTED = "APPS_RESTRICTED",
|
|
7
|
+
LOCKED = "LOCKED",
|
|
8
|
+
RELEASED = "RELEASED",
|
|
9
|
+
UNKNOWN = "UNKNOWN"
|
|
10
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export enum MdmErrorCodeEnum {
|
|
2
|
-
PROVIDER_NOT_SUPPORTED = "PROVIDER_NOT_SUPPORTED",
|
|
3
|
-
DEVICE_NOT_FOUND = "DEVICE_NOT_FOUND",
|
|
4
|
-
DEVICE_NOT_ENROLLED = "DEVICE_NOT_ENROLLED",
|
|
5
|
-
INVALID_REQUEST = "INVALID_REQUEST",
|
|
6
|
-
PROVIDER_ERROR = "PROVIDER_ERROR",
|
|
7
|
-
PROVIDER_TIMEOUT = "PROVIDER_TIMEOUT",
|
|
8
|
-
PROVIDER_RATE_LIMITED = "PROVIDER_RATE_LIMITED",
|
|
9
|
-
PROVIDER_TRANSIENT_ERROR = "PROVIDER_TRANSIENT_ERROR",
|
|
10
|
-
PROVIDER_UNREACHABLE = "PROVIDER_UNREACHABLE",
|
|
11
|
-
PROVIDER_CLIENT_ERROR = "PROVIDER_CLIENT_ERROR",
|
|
12
|
-
AUTH_FAILED = "AUTH_FAILED",
|
|
13
|
-
FORBIDDEN = "FORBIDDEN",
|
|
14
|
-
RESOURCE_NOT_FOUND = "RESOURCE_NOT_FOUND",
|
|
15
|
-
CONFLICT = "CONFLICT",
|
|
16
|
-
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
17
|
-
}
|
|
1
|
+
export enum MdmErrorCodeEnum {
|
|
2
|
+
PROVIDER_NOT_SUPPORTED = "PROVIDER_NOT_SUPPORTED",
|
|
3
|
+
DEVICE_NOT_FOUND = "DEVICE_NOT_FOUND",
|
|
4
|
+
DEVICE_NOT_ENROLLED = "DEVICE_NOT_ENROLLED",
|
|
5
|
+
INVALID_REQUEST = "INVALID_REQUEST",
|
|
6
|
+
PROVIDER_ERROR = "PROVIDER_ERROR",
|
|
7
|
+
PROVIDER_TIMEOUT = "PROVIDER_TIMEOUT",
|
|
8
|
+
PROVIDER_RATE_LIMITED = "PROVIDER_RATE_LIMITED",
|
|
9
|
+
PROVIDER_TRANSIENT_ERROR = "PROVIDER_TRANSIENT_ERROR",
|
|
10
|
+
PROVIDER_UNREACHABLE = "PROVIDER_UNREACHABLE",
|
|
11
|
+
PROVIDER_CLIENT_ERROR = "PROVIDER_CLIENT_ERROR",
|
|
12
|
+
AUTH_FAILED = "AUTH_FAILED",
|
|
13
|
+
FORBIDDEN = "FORBIDDEN",
|
|
14
|
+
RESOURCE_NOT_FOUND = "RESOURCE_NOT_FOUND",
|
|
15
|
+
CONFLICT = "CONFLICT",
|
|
16
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
17
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export enum MdmOperationStatusEnum {
|
|
2
|
-
SUCCESS = "SUCCESS",
|
|
3
|
-
PENDING = "PENDING",
|
|
4
|
-
ERROR = "ERROR"
|
|
5
|
-
}
|
|
1
|
+
export enum MdmOperationStatusEnum {
|
|
2
|
+
SUCCESS = "SUCCESS",
|
|
3
|
+
PENDING = "PENDING",
|
|
4
|
+
ERROR = "ERROR"
|
|
5
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export enum MdmOperationTypeEnum {
|
|
2
|
-
STATUS = "STATUS",
|
|
3
|
-
LAST_SEEN = "LAST_SEEN",
|
|
4
|
-
PIN_UNLOCK = "PIN_UNLOCK",
|
|
5
|
-
LOCK = "LOCK",
|
|
6
|
-
UNLOCK = "UNLOCK",
|
|
7
|
-
NOTIFY = "NOTIFY",
|
|
8
|
-
ENROLL = "ENROLL",
|
|
9
|
-
RELEASE = "RELEASE",
|
|
10
|
-
ARCHIVE = "ARCHIVE",
|
|
11
|
-
DEACTIVATE = "DEACTIVATE",
|
|
12
|
-
RESTRICT_APPS = "RESTRICT_APPS",
|
|
13
|
-
AUTO_LOCK_SCHEDULE = "AUTO_LOCK_SCHEDULE",
|
|
14
|
-
LOG = "LOG"
|
|
15
|
-
}
|
|
1
|
+
export enum MdmOperationTypeEnum {
|
|
2
|
+
STATUS = "STATUS",
|
|
3
|
+
LAST_SEEN = "LAST_SEEN",
|
|
4
|
+
PIN_UNLOCK = "PIN_UNLOCK",
|
|
5
|
+
LOCK = "LOCK",
|
|
6
|
+
UNLOCK = "UNLOCK",
|
|
7
|
+
NOTIFY = "NOTIFY",
|
|
8
|
+
ENROLL = "ENROLL",
|
|
9
|
+
RELEASE = "RELEASE",
|
|
10
|
+
ARCHIVE = "ARCHIVE",
|
|
11
|
+
DEACTIVATE = "DEACTIVATE",
|
|
12
|
+
RESTRICT_APPS = "RESTRICT_APPS",
|
|
13
|
+
AUTO_LOCK_SCHEDULE = "AUTO_LOCK_SCHEDULE",
|
|
14
|
+
LOG = "LOG"
|
|
15
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export enum MdmProviderEnum {
|
|
2
|
-
TRUSTONIC = "TRUSTONIC",
|
|
3
|
-
DATACULTR = "DATACULTR"
|
|
4
|
-
}
|
|
1
|
+
export enum MdmProviderEnum {
|
|
2
|
+
TRUSTONIC = "TRUSTONIC",
|
|
3
|
+
DATACULTR = "DATACULTR"
|
|
4
|
+
}
|
package/src/mdm/index.ts
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
// dtos
|
|
2
|
-
export * from "./dtos/MdmError";
|
|
3
|
-
export * from "./dtos/DeviceLockScreenMessage";
|
|
4
|
-
|
|
5
|
-
// dtos — bloque A (cobranza)
|
|
6
|
-
export * from "./dtos/DeviceNotifyRequest";
|
|
7
|
-
export * from "./dtos/DeviceNotifyResponse";
|
|
8
|
-
export * from "./dtos/DeviceRestrictAppsRequest";
|
|
9
|
-
export * from "./dtos/DeviceRestrictAppsResponse";
|
|
10
|
-
export * from "./dtos/DeviceLockRequest";
|
|
11
|
-
export * from "./dtos/DeviceLockResponse";
|
|
12
|
-
export * from "./dtos/DeviceUnlockRequest";
|
|
13
|
-
export * from "./dtos/DeviceUnlockResponse";
|
|
14
|
-
export * from "./dtos/DevicePinUnlockRequest";
|
|
15
|
-
export * from "./dtos/DevicePinUnlockResponse";
|
|
16
|
-
|
|
17
|
-
// dtos — bloque B (consulta)
|
|
18
|
-
export * from "./dtos/DeviceStatusRequest";
|
|
19
|
-
export * from "./dtos/DeviceStatusResponse";
|
|
20
|
-
|
|
21
|
-
// dtos — bloque C (ciclo de vida)
|
|
22
|
-
export * from "./dtos/DeviceEnrollRequest";
|
|
23
|
-
export * from "./dtos/DeviceEnrollInitiateResponse";
|
|
24
|
-
export * from "./dtos/DeviceEnrollStatusRequest";
|
|
25
|
-
export * from "./dtos/DeviceEnrollStatusResponse";
|
|
26
|
-
export * from "./dtos/DeviceReleaseRequest";
|
|
27
|
-
export * from "./dtos/DeviceReleaseInitiateResponse";
|
|
28
|
-
export * from "./dtos/DeviceReleaseStatusRequest";
|
|
29
|
-
export * from "./dtos/DeviceReleaseStatusResponse";
|
|
30
|
-
export * from "./dtos/DeviceServiceDeactivateRequest";
|
|
31
|
-
export * from "./dtos/DeviceServiceDeactivateInitiateResponse";
|
|
32
|
-
export * from "./dtos/DeviceServiceDeactivateStatusRequest";
|
|
33
|
-
export * from "./dtos/DeviceServiceDeactivateStatusResponse";
|
|
34
|
-
export * from "./dtos/DeviceArchiveRequest";
|
|
35
|
-
export * from "./dtos/DeviceArchiveResponse";
|
|
36
|
-
|
|
37
|
-
// dtos — bloque D (datacultr-specific)
|
|
38
|
-
export * from "./dtos/DeviceAutoLockScheduleRequest";
|
|
39
|
-
export * from "./dtos/DeviceAutoLockScheduleResponse";
|
|
40
|
-
export * from "./dtos/DeviceLastSeenRequest";
|
|
41
|
-
export * from "./dtos/DeviceLastSeenResponse";
|
|
42
|
-
export * from "./dtos/DeviceLogRequest";
|
|
43
|
-
export * from "./dtos/DeviceLogResponse";
|
|
44
|
-
export * from "./dtos/DeviceLogEntry";
|
|
45
|
-
|
|
46
|
-
// dtos — eventos entrantes (webhooks de datacultr)
|
|
47
|
-
export * from "./dtos/DeviceEnrollmentCompletedEvent";
|
|
48
|
-
export * from "./dtos/DeviceReleaseCompletedEvent";
|
|
49
|
-
|
|
50
|
-
// enums
|
|
51
|
-
export * from "./enums/DeviceLockModeEnum";
|
|
52
|
-
export * from "./enums/DeviceNotifyIntensityEnum";
|
|
53
|
-
export * from "./enums/DeviceEnrollmentModeEnum";
|
|
54
|
-
export * from "./enums/DeviceReleaseReasonEnum";
|
|
55
|
-
export * from "./enums/DeviceServiceDeactivateReasonEnum";
|
|
56
|
-
export * from "./enums/MdmDeviceStatusEnum";
|
|
57
|
-
export * from "./enums/MdmOperationStatusEnum";
|
|
58
|
-
export * from "./enums/MdmErrorCodeEnum";
|
|
59
|
-
export * from "./enums/MdmProviderEnum";
|
|
60
|
-
export * from "./enums/MdmOperationTypeEnum";
|
|
1
|
+
// dtos
|
|
2
|
+
export * from "./dtos/MdmError";
|
|
3
|
+
export * from "./dtos/DeviceLockScreenMessage";
|
|
4
|
+
|
|
5
|
+
// dtos — bloque A (cobranza)
|
|
6
|
+
export * from "./dtos/DeviceNotifyRequest";
|
|
7
|
+
export * from "./dtos/DeviceNotifyResponse";
|
|
8
|
+
export * from "./dtos/DeviceRestrictAppsRequest";
|
|
9
|
+
export * from "./dtos/DeviceRestrictAppsResponse";
|
|
10
|
+
export * from "./dtos/DeviceLockRequest";
|
|
11
|
+
export * from "./dtos/DeviceLockResponse";
|
|
12
|
+
export * from "./dtos/DeviceUnlockRequest";
|
|
13
|
+
export * from "./dtos/DeviceUnlockResponse";
|
|
14
|
+
export * from "./dtos/DevicePinUnlockRequest";
|
|
15
|
+
export * from "./dtos/DevicePinUnlockResponse";
|
|
16
|
+
|
|
17
|
+
// dtos — bloque B (consulta)
|
|
18
|
+
export * from "./dtos/DeviceStatusRequest";
|
|
19
|
+
export * from "./dtos/DeviceStatusResponse";
|
|
20
|
+
|
|
21
|
+
// dtos — bloque C (ciclo de vida)
|
|
22
|
+
export * from "./dtos/DeviceEnrollRequest";
|
|
23
|
+
export * from "./dtos/DeviceEnrollInitiateResponse";
|
|
24
|
+
export * from "./dtos/DeviceEnrollStatusRequest";
|
|
25
|
+
export * from "./dtos/DeviceEnrollStatusResponse";
|
|
26
|
+
export * from "./dtos/DeviceReleaseRequest";
|
|
27
|
+
export * from "./dtos/DeviceReleaseInitiateResponse";
|
|
28
|
+
export * from "./dtos/DeviceReleaseStatusRequest";
|
|
29
|
+
export * from "./dtos/DeviceReleaseStatusResponse";
|
|
30
|
+
export * from "./dtos/DeviceServiceDeactivateRequest";
|
|
31
|
+
export * from "./dtos/DeviceServiceDeactivateInitiateResponse";
|
|
32
|
+
export * from "./dtos/DeviceServiceDeactivateStatusRequest";
|
|
33
|
+
export * from "./dtos/DeviceServiceDeactivateStatusResponse";
|
|
34
|
+
export * from "./dtos/DeviceArchiveRequest";
|
|
35
|
+
export * from "./dtos/DeviceArchiveResponse";
|
|
36
|
+
|
|
37
|
+
// dtos — bloque D (datacultr-specific)
|
|
38
|
+
export * from "./dtos/DeviceAutoLockScheduleRequest";
|
|
39
|
+
export * from "./dtos/DeviceAutoLockScheduleResponse";
|
|
40
|
+
export * from "./dtos/DeviceLastSeenRequest";
|
|
41
|
+
export * from "./dtos/DeviceLastSeenResponse";
|
|
42
|
+
export * from "./dtos/DeviceLogRequest";
|
|
43
|
+
export * from "./dtos/DeviceLogResponse";
|
|
44
|
+
export * from "./dtos/DeviceLogEntry";
|
|
45
|
+
|
|
46
|
+
// dtos — eventos entrantes (webhooks de datacultr)
|
|
47
|
+
export * from "./dtos/DeviceEnrollmentCompletedEvent";
|
|
48
|
+
export * from "./dtos/DeviceReleaseCompletedEvent";
|
|
49
|
+
|
|
50
|
+
// enums
|
|
51
|
+
export * from "./enums/DeviceLockModeEnum";
|
|
52
|
+
export * from "./enums/DeviceNotifyIntensityEnum";
|
|
53
|
+
export * from "./enums/DeviceEnrollmentModeEnum";
|
|
54
|
+
export * from "./enums/DeviceReleaseReasonEnum";
|
|
55
|
+
export * from "./enums/DeviceServiceDeactivateReasonEnum";
|
|
56
|
+
export * from "./enums/MdmDeviceStatusEnum";
|
|
57
|
+
export * from "./enums/MdmOperationStatusEnum";
|
|
58
|
+
export * from "./enums/MdmErrorCodeEnum";
|
|
59
|
+
export * from "./enums/MdmProviderEnum";
|
|
60
|
+
export * from "./enums/MdmOperationTypeEnum";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NotificationResponse } from './NotificationResponse';
|
|
2
|
-
|
|
3
|
-
export class MessagesByDestinationResponse {
|
|
4
|
-
items!: NotificationResponse[];
|
|
5
|
-
}
|
|
1
|
+
import { NotificationResponse } from './NotificationResponse';
|
|
2
|
+
|
|
3
|
+
export class MessagesByDestinationResponse {
|
|
4
|
+
items!: NotificationResponse[];
|
|
5
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { IsEnum, IsNotEmpty, IsObject, IsOptional, IsString, Validate } from 'class-validator';
|
|
2
|
-
import { Expose } from 'class-transformer';
|
|
3
|
-
import { DeliveryChannelExtendedEnum } from '../enums/DeliveryChannelExtendedEnum';
|
|
4
|
-
import { IsStringValueRecord } from '../validators/IsStringValueRecord';
|
|
5
|
-
|
|
6
|
-
export class NotificationQueueMessageRequestV2 {
|
|
7
|
-
@Expose()
|
|
8
|
-
@IsString()
|
|
9
|
-
@IsNotEmpty()
|
|
10
|
-
templateId!: string;
|
|
11
|
-
|
|
12
|
-
@Expose()
|
|
13
|
-
@IsEnum(DeliveryChannelExtendedEnum)
|
|
14
|
-
channelType!: DeliveryChannelExtendedEnum;
|
|
15
|
-
|
|
16
|
-
@Expose()
|
|
17
|
-
@IsString()
|
|
18
|
-
@IsNotEmpty()
|
|
19
|
-
language!: string;
|
|
20
|
-
|
|
21
|
-
@Expose()
|
|
22
|
-
@IsString()
|
|
23
|
-
@IsNotEmpty()
|
|
24
|
-
country!: string;
|
|
25
|
-
|
|
26
|
-
@Expose()
|
|
27
|
-
@IsString()
|
|
28
|
-
@IsNotEmpty()
|
|
29
|
-
typeOfDirectoryId!: string;
|
|
30
|
-
|
|
31
|
-
@Expose()
|
|
32
|
-
@IsString()
|
|
33
|
-
@IsNotEmpty()
|
|
34
|
-
directoryId!: string;
|
|
35
|
-
|
|
36
|
-
@Expose()
|
|
37
|
-
@IsString()
|
|
38
|
-
@IsNotEmpty()
|
|
39
|
-
destination!: string;
|
|
40
|
-
|
|
41
|
-
@Expose()
|
|
42
|
-
@IsObject()
|
|
43
|
-
@Validate(IsStringValueRecord)
|
|
44
|
-
variables!: Record<string, string>;
|
|
45
|
-
|
|
46
|
-
@Expose()
|
|
47
|
-
@IsOptional()
|
|
48
|
-
@IsString()
|
|
49
|
-
referenceMessageId?: string;
|
|
50
|
-
|
|
51
|
-
@Expose()
|
|
52
|
-
@IsOptional()
|
|
53
|
-
data?: unknown;
|
|
54
|
-
}
|
|
1
|
+
import { IsEnum, IsNotEmpty, IsObject, IsOptional, IsString, Validate } from 'class-validator';
|
|
2
|
+
import { Expose } from 'class-transformer';
|
|
3
|
+
import { DeliveryChannelExtendedEnum } from '../enums/DeliveryChannelExtendedEnum';
|
|
4
|
+
import { IsStringValueRecord } from '../validators/IsStringValueRecord';
|
|
5
|
+
|
|
6
|
+
export class NotificationQueueMessageRequestV2 {
|
|
7
|
+
@Expose()
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
templateId!: string;
|
|
11
|
+
|
|
12
|
+
@Expose()
|
|
13
|
+
@IsEnum(DeliveryChannelExtendedEnum)
|
|
14
|
+
channelType!: DeliveryChannelExtendedEnum;
|
|
15
|
+
|
|
16
|
+
@Expose()
|
|
17
|
+
@IsString()
|
|
18
|
+
@IsNotEmpty()
|
|
19
|
+
language!: string;
|
|
20
|
+
|
|
21
|
+
@Expose()
|
|
22
|
+
@IsString()
|
|
23
|
+
@IsNotEmpty()
|
|
24
|
+
country!: string;
|
|
25
|
+
|
|
26
|
+
@Expose()
|
|
27
|
+
@IsString()
|
|
28
|
+
@IsNotEmpty()
|
|
29
|
+
typeOfDirectoryId!: string;
|
|
30
|
+
|
|
31
|
+
@Expose()
|
|
32
|
+
@IsString()
|
|
33
|
+
@IsNotEmpty()
|
|
34
|
+
directoryId!: string;
|
|
35
|
+
|
|
36
|
+
@Expose()
|
|
37
|
+
@IsString()
|
|
38
|
+
@IsNotEmpty()
|
|
39
|
+
destination!: string;
|
|
40
|
+
|
|
41
|
+
@Expose()
|
|
42
|
+
@IsObject()
|
|
43
|
+
@Validate(IsStringValueRecord)
|
|
44
|
+
variables!: Record<string, string>;
|
|
45
|
+
|
|
46
|
+
@Expose()
|
|
47
|
+
@IsOptional()
|
|
48
|
+
@IsString()
|
|
49
|
+
referenceMessageId?: string;
|
|
50
|
+
|
|
51
|
+
@Expose()
|
|
52
|
+
@IsOptional()
|
|
53
|
+
data?: unknown;
|
|
54
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { DeliveryChannelExtendedEnum } from '../enums/DeliveryChannelExtendedEnum';
|
|
2
|
-
|
|
3
|
-
export class NotificationResponse {
|
|
4
|
-
id!: string;
|
|
5
|
-
directoryId!: string;
|
|
6
|
-
typeOfDirectoryId!: string;
|
|
7
|
-
destination!: string;
|
|
8
|
-
channelType!: DeliveryChannelExtendedEnum;
|
|
9
|
-
messageType!: string;
|
|
10
|
-
renderedMessage!: string;
|
|
11
|
-
status!: string;
|
|
12
|
-
/** Typo heredado del legacy fiado-messages-lambda. NO renombrar sin migrar callers HTTP. */
|
|
13
|
-
readed!: boolean;
|
|
14
|
-
createdAt!: string;
|
|
15
|
-
beneficiaryDirectoryId?: string;
|
|
16
|
-
beneficiaryTypeOfDirectoryId?: string;
|
|
17
|
-
transactionNumber?: string;
|
|
18
|
-
variables?: Record<string, string>;
|
|
19
|
-
}
|
|
1
|
+
import { DeliveryChannelExtendedEnum } from '../enums/DeliveryChannelExtendedEnum';
|
|
2
|
+
|
|
3
|
+
export class NotificationResponse {
|
|
4
|
+
id!: string;
|
|
5
|
+
directoryId!: string;
|
|
6
|
+
typeOfDirectoryId!: string;
|
|
7
|
+
destination!: string;
|
|
8
|
+
channelType!: DeliveryChannelExtendedEnum;
|
|
9
|
+
messageType!: string;
|
|
10
|
+
renderedMessage!: string;
|
|
11
|
+
status!: string;
|
|
12
|
+
/** Typo heredado del legacy fiado-messages-lambda. NO renombrar sin migrar callers HTTP. */
|
|
13
|
+
readed!: boolean;
|
|
14
|
+
createdAt!: string;
|
|
15
|
+
beneficiaryDirectoryId?: string;
|
|
16
|
+
beneficiaryTypeOfDirectoryId?: string;
|
|
17
|
+
transactionNumber?: string;
|
|
18
|
+
variables?: Record<string, string>;
|
|
19
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NotificationResponse } from './NotificationResponse';
|
|
2
|
-
|
|
3
|
-
export class NotificationsCursorResponse {
|
|
4
|
-
items!: NotificationResponse[];
|
|
5
|
-
lastEvaluatedKey!: string | null;
|
|
6
|
-
}
|
|
1
|
+
import { NotificationResponse } from './NotificationResponse';
|
|
2
|
+
|
|
3
|
+
export class NotificationsCursorResponse {
|
|
4
|
+
items!: NotificationResponse[];
|
|
5
|
+
lastEvaluatedKey!: string | null;
|
|
6
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NotificationResponse } from './NotificationResponse';
|
|
2
|
-
|
|
3
|
-
export class NotificationsPageResponse {
|
|
4
|
-
page!: NotificationResponse[];
|
|
5
|
-
row_count!: number;
|
|
6
|
-
prev_page!: number | null;
|
|
7
|
-
next_page!: number | null;
|
|
8
|
-
totalPages!: number;
|
|
9
|
-
totalRecords!: number;
|
|
10
|
-
}
|
|
1
|
+
import { NotificationResponse } from './NotificationResponse';
|
|
2
|
+
|
|
3
|
+
export class NotificationsPageResponse {
|
|
4
|
+
page!: NotificationResponse[];
|
|
5
|
+
row_count!: number;
|
|
6
|
+
prev_page!: number | null;
|
|
7
|
+
next_page!: number | null;
|
|
8
|
+
totalPages!: number;
|
|
9
|
+
totalRecords!: number;
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NotificationResponse } from './NotificationResponse';
|
|
2
|
-
|
|
3
|
-
export class NotificationsV3Response {
|
|
4
|
-
items!: NotificationResponse[];
|
|
5
|
-
}
|
|
1
|
+
import { NotificationResponse } from './NotificationResponse';
|
|
2
|
+
|
|
3
|
+
export class NotificationsV3Response {
|
|
4
|
+
items!: NotificationResponse[];
|
|
5
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export class OtpValidatedResponse {
|
|
2
|
-
id!: string;
|
|
3
|
-
directoryId!: string;
|
|
4
|
-
typeOfDirectoryId!: string;
|
|
5
|
-
otpCode!: string;
|
|
6
|
-
status!: string;
|
|
7
|
-
isExpired!: boolean;
|
|
8
|
-
createdAt!: string;
|
|
9
|
-
}
|
|
1
|
+
export class OtpValidatedResponse {
|
|
2
|
+
id!: string;
|
|
3
|
+
directoryId!: string;
|
|
4
|
+
typeOfDirectoryId!: string;
|
|
5
|
+
otpCode!: string;
|
|
6
|
+
status!: string;
|
|
7
|
+
isExpired!: boolean;
|
|
8
|
+
createdAt!: string;
|
|
9
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DeliveryChannelExtendedEnum } from '../enums/DeliveryChannelExtendedEnum';
|
|
2
|
-
|
|
3
|
-
export class SendMessageResponse {
|
|
4
|
-
messageId!: string;
|
|
5
|
-
channel!: DeliveryChannelExtendedEnum;
|
|
6
|
-
logId!: string;
|
|
7
|
-
maxRequests?: number;
|
|
8
|
-
waitingTime?: number;
|
|
9
|
-
expirationTime?: number;
|
|
10
|
-
}
|
|
1
|
+
import { DeliveryChannelExtendedEnum } from '../enums/DeliveryChannelExtendedEnum';
|
|
2
|
+
|
|
3
|
+
export class SendMessageResponse {
|
|
4
|
+
messageId!: string;
|
|
5
|
+
channel!: DeliveryChannelExtendedEnum;
|
|
6
|
+
logId!: string;
|
|
7
|
+
maxRequests?: number;
|
|
8
|
+
waitingTime?: number;
|
|
9
|
+
expirationTime?: number;
|
|
10
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { Expose } from 'class-transformer';
|
|
2
|
-
import { IsEnum, IsNotEmpty, IsOptional, IsString, Validate } from 'class-validator';
|
|
3
|
-
import { ContentTypeEnum, DeliveryChannelEnum } from '../../messaging';
|
|
4
|
-
import { IsTemplatePlaceholders } from '../validators/IsTemplatePlaceholders';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Body para POST /templates (backoffice). Identifica un template por sus 4
|
|
8
|
-
* componentes de PK (messageType, channelType, language, country) + campos
|
|
9
|
-
* de contenido. `typeOfDirectoryId` es campo no-key del Row (ver TD pendiente).
|
|
10
|
-
*/
|
|
11
|
-
export class TemplateMessageCreateRequest {
|
|
12
|
-
@Expose()
|
|
13
|
-
@IsString()
|
|
14
|
-
@IsNotEmpty()
|
|
15
|
-
messageType!: string;
|
|
16
|
-
|
|
17
|
-
@Expose()
|
|
18
|
-
@IsEnum(DeliveryChannelEnum)
|
|
19
|
-
channelType!: DeliveryChannelEnum;
|
|
20
|
-
|
|
21
|
-
@Expose()
|
|
22
|
-
@IsString()
|
|
23
|
-
@IsNotEmpty()
|
|
24
|
-
language!: string;
|
|
25
|
-
|
|
26
|
-
@Expose()
|
|
27
|
-
@IsString()
|
|
28
|
-
@IsNotEmpty()
|
|
29
|
-
country!: string;
|
|
30
|
-
|
|
31
|
-
@Expose()
|
|
32
|
-
@IsString()
|
|
33
|
-
@IsNotEmpty()
|
|
34
|
-
typeOfDirectoryId!: string;
|
|
35
|
-
|
|
36
|
-
@Expose()
|
|
37
|
-
@IsString()
|
|
38
|
-
@IsNotEmpty()
|
|
39
|
-
@Validate(IsTemplatePlaceholders)
|
|
40
|
-
template!: string;
|
|
41
|
-
|
|
42
|
-
@Expose()
|
|
43
|
-
@IsEnum(ContentTypeEnum)
|
|
44
|
-
contentType!: ContentTypeEnum;
|
|
45
|
-
|
|
46
|
-
@Expose()
|
|
47
|
-
@IsOptional()
|
|
48
|
-
@IsString()
|
|
49
|
-
@Validate(IsTemplatePlaceholders)
|
|
50
|
-
subject?: string;
|
|
51
|
-
}
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsEnum, IsNotEmpty, IsOptional, IsString, Validate } from 'class-validator';
|
|
3
|
+
import { ContentTypeEnum, DeliveryChannelEnum } from '../../messaging';
|
|
4
|
+
import { IsTemplatePlaceholders } from '../validators/IsTemplatePlaceholders';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Body para POST /templates (backoffice). Identifica un template por sus 4
|
|
8
|
+
* componentes de PK (messageType, channelType, language, country) + campos
|
|
9
|
+
* de contenido. `typeOfDirectoryId` es campo no-key del Row (ver TD pendiente).
|
|
10
|
+
*/
|
|
11
|
+
export class TemplateMessageCreateRequest {
|
|
12
|
+
@Expose()
|
|
13
|
+
@IsString()
|
|
14
|
+
@IsNotEmpty()
|
|
15
|
+
messageType!: string;
|
|
16
|
+
|
|
17
|
+
@Expose()
|
|
18
|
+
@IsEnum(DeliveryChannelEnum)
|
|
19
|
+
channelType!: DeliveryChannelEnum;
|
|
20
|
+
|
|
21
|
+
@Expose()
|
|
22
|
+
@IsString()
|
|
23
|
+
@IsNotEmpty()
|
|
24
|
+
language!: string;
|
|
25
|
+
|
|
26
|
+
@Expose()
|
|
27
|
+
@IsString()
|
|
28
|
+
@IsNotEmpty()
|
|
29
|
+
country!: string;
|
|
30
|
+
|
|
31
|
+
@Expose()
|
|
32
|
+
@IsString()
|
|
33
|
+
@IsNotEmpty()
|
|
34
|
+
typeOfDirectoryId!: string;
|
|
35
|
+
|
|
36
|
+
@Expose()
|
|
37
|
+
@IsString()
|
|
38
|
+
@IsNotEmpty()
|
|
39
|
+
@Validate(IsTemplatePlaceholders)
|
|
40
|
+
template!: string;
|
|
41
|
+
|
|
42
|
+
@Expose()
|
|
43
|
+
@IsEnum(ContentTypeEnum)
|
|
44
|
+
contentType!: ContentTypeEnum;
|
|
45
|
+
|
|
46
|
+
@Expose()
|
|
47
|
+
@IsOptional()
|
|
48
|
+
@IsString()
|
|
49
|
+
@Validate(IsTemplatePlaceholders)
|
|
50
|
+
subject?: string;
|
|
51
|
+
}
|