@fiado/type-kit 3.225.0 → 3.227.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/identity/index.d.ts +0 -2
- package/bin/identity/index.js +0 -2
- package/bin/phoneSales/DeviceVariantImageUploadUrlRequestDto.d.ts +4 -0
- package/bin/phoneSales/DeviceVariantImageUploadUrlRequestDto.js +21 -0
- package/bin/phoneSales/DeviceVariantImageUploadUrlResponseDto.d.ts +5 -0
- package/bin/phoneSales/DeviceVariantImageUploadUrlResponseDto.js +2 -0
- package/bin/phoneSales/DeviceVariantResponseDto.d.ts +5 -0
- package/bin/phoneSales/enums/DeviceImageContentTypeEnum.d.ts +5 -0
- package/bin/phoneSales/enums/DeviceImageContentTypeEnum.js +9 -0
- package/bin/phoneSales/index.d.ts +3 -0
- package/bin/phoneSales/index.js +3 -0
- package/package.json +1 -1
- package/src/identity/index.ts +0 -2
- package/src/phoneSales/DeviceVariantImageUploadUrlRequestDto.ts +7 -0
- package/src/phoneSales/DeviceVariantImageUploadUrlResponseDto.ts +5 -0
- package/src/phoneSales/DeviceVariantResponseDto.ts +5 -0
- package/src/phoneSales/enums/DeviceImageContentTypeEnum.ts +5 -0
- package/src/phoneSales/index.ts +3 -0
- package/src/identity/dtos/PeopleSelfieResponse.ts +0 -36
- package/src/identity/enums/SelfieSourceEnum.ts +0 -10
package/bin/identity/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export * from './dtos/UploadDocumentFile';
|
|
|
10
10
|
export * from './dtos/PeopleSelfVerifiedRequest';
|
|
11
11
|
export * from './dtos/AgentDocumentKeyResponse';
|
|
12
12
|
export * from './dtos/DocumentUploadResponse';
|
|
13
|
-
export * from './dtos/PeopleSelfieResponse';
|
|
14
13
|
export * from './enums/IdentificationDocumentStatus';
|
|
15
14
|
export * from './enums/SexDocument';
|
|
16
15
|
export * from './enums/InfoSelfVerifiedStatus';
|
|
@@ -18,4 +17,3 @@ export * from './enums/AuthorizationNeededMXNStatus';
|
|
|
18
17
|
export * from './enums/DocumentSideEnum';
|
|
19
18
|
export * from './enums/CPStatusEnum';
|
|
20
19
|
export * from './enums/AccountRequirementStatusEnum';
|
|
21
|
-
export * from './enums/SelfieSourceEnum';
|
package/bin/identity/index.js
CHANGED
|
@@ -27,7 +27,6 @@ __exportStar(require("./dtos/UploadDocumentFile"), exports);
|
|
|
27
27
|
__exportStar(require("./dtos/PeopleSelfVerifiedRequest"), exports);
|
|
28
28
|
__exportStar(require("./dtos/AgentDocumentKeyResponse"), exports);
|
|
29
29
|
__exportStar(require("./dtos/DocumentUploadResponse"), exports);
|
|
30
|
-
__exportStar(require("./dtos/PeopleSelfieResponse"), exports);
|
|
31
30
|
//enums
|
|
32
31
|
__exportStar(require("./enums/IdentificationDocumentStatus"), exports);
|
|
33
32
|
__exportStar(require("./enums/SexDocument"), exports);
|
|
@@ -36,4 +35,3 @@ __exportStar(require("./enums/AuthorizationNeededMXNStatus"), exports);
|
|
|
36
35
|
__exportStar(require("./enums/DocumentSideEnum"), exports);
|
|
37
36
|
__exportStar(require("./enums/CPStatusEnum"), exports);
|
|
38
37
|
__exportStar(require("./enums/AccountRequirementStatusEnum"), exports);
|
|
39
|
-
__exportStar(require("./enums/SelfieSourceEnum"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
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.DeviceVariantImageUploadUrlRequestDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const DeviceImageContentTypeEnum_1 = require("./enums/DeviceImageContentTypeEnum");
|
|
15
|
+
class DeviceVariantImageUploadUrlRequestDto {
|
|
16
|
+
}
|
|
17
|
+
exports.DeviceVariantImageUploadUrlRequestDto = DeviceVariantImageUploadUrlRequestDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsEnum)(DeviceImageContentTypeEnum_1.DeviceImageContentTypeEnum),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], DeviceVariantImageUploadUrlRequestDto.prototype, "contentType", void 0);
|
|
@@ -5,4 +5,9 @@ export declare class DeviceVariantResponseDto {
|
|
|
5
5
|
storage: string;
|
|
6
6
|
price: number;
|
|
7
7
|
stock: number;
|
|
8
|
+
/**
|
|
9
|
+
* Presigned GET URL (S3, expira en 1h) — nunca la URL directa del bucket.
|
|
10
|
+
* Ver PhotoStorageService.signPhotoUrl (fiado-network-business) para el patrón de firma.
|
|
11
|
+
*/
|
|
12
|
+
imageUrl?: string;
|
|
8
13
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceImageContentTypeEnum = void 0;
|
|
4
|
+
var DeviceImageContentTypeEnum;
|
|
5
|
+
(function (DeviceImageContentTypeEnum) {
|
|
6
|
+
DeviceImageContentTypeEnum["JPEG"] = "image/jpeg";
|
|
7
|
+
DeviceImageContentTypeEnum["PNG"] = "image/png";
|
|
8
|
+
DeviceImageContentTypeEnum["WEBP"] = "image/webp";
|
|
9
|
+
})(DeviceImageContentTypeEnum || (exports.DeviceImageContentTypeEnum = DeviceImageContentTypeEnum = {}));
|
|
@@ -3,3 +3,6 @@ export * from './CreateDeviceVariantRequestDto';
|
|
|
3
3
|
export * from './CreateSaleRequestDto';
|
|
4
4
|
export * from './SaleResponseDto';
|
|
5
5
|
export * from './RedeemSaleCodeRequestDto';
|
|
6
|
+
export * from './DeviceVariantImageUploadUrlRequestDto';
|
|
7
|
+
export * from './DeviceVariantImageUploadUrlResponseDto';
|
|
8
|
+
export * from './enums/DeviceImageContentTypeEnum';
|
package/bin/phoneSales/index.js
CHANGED
|
@@ -19,3 +19,6 @@ __exportStar(require("./CreateDeviceVariantRequestDto"), exports);
|
|
|
19
19
|
__exportStar(require("./CreateSaleRequestDto"), exports);
|
|
20
20
|
__exportStar(require("./SaleResponseDto"), exports);
|
|
21
21
|
__exportStar(require("./RedeemSaleCodeRequestDto"), exports);
|
|
22
|
+
__exportStar(require("./DeviceVariantImageUploadUrlRequestDto"), exports);
|
|
23
|
+
__exportStar(require("./DeviceVariantImageUploadUrlResponseDto"), exports);
|
|
24
|
+
__exportStar(require("./enums/DeviceImageContentTypeEnum"), exports);
|
package/package.json
CHANGED
package/src/identity/index.ts
CHANGED
|
@@ -12,7 +12,6 @@ export * from './dtos/UploadDocumentFile';
|
|
|
12
12
|
export * from './dtos/PeopleSelfVerifiedRequest';
|
|
13
13
|
export * from './dtos/AgentDocumentKeyResponse';
|
|
14
14
|
export * from './dtos/DocumentUploadResponse';
|
|
15
|
-
export * from './dtos/PeopleSelfieResponse';
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
//enums
|
|
@@ -23,4 +22,3 @@ export * from './enums/AuthorizationNeededMXNStatus';
|
|
|
23
22
|
export * from './enums/DocumentSideEnum';
|
|
24
23
|
export * from './enums/CPStatusEnum';
|
|
25
24
|
export * from './enums/AccountRequirementStatusEnum';
|
|
26
|
-
export * from './enums/SelfieSourceEnum';
|
|
@@ -5,4 +5,9 @@ export class DeviceVariantResponseDto {
|
|
|
5
5
|
storage!: string;
|
|
6
6
|
price!: number;
|
|
7
7
|
stock!: number;
|
|
8
|
+
/**
|
|
9
|
+
* Presigned GET URL (S3, expira en 1h) — nunca la URL directa del bucket.
|
|
10
|
+
* Ver PhotoStorageService.signPhotoUrl (fiado-network-business) para el patrón de firma.
|
|
11
|
+
*/
|
|
12
|
+
imageUrl?: string;
|
|
8
13
|
}
|
package/src/phoneSales/index.ts
CHANGED
|
@@ -3,3 +3,6 @@ export * from './CreateDeviceVariantRequestDto';
|
|
|
3
3
|
export * from './CreateSaleRequestDto';
|
|
4
4
|
export * from './SaleResponseDto';
|
|
5
5
|
export * from './RedeemSaleCodeRequestDto';
|
|
6
|
+
export * from './DeviceVariantImageUploadUrlRequestDto';
|
|
7
|
+
export * from './DeviceVariantImageUploadUrlResponseDto';
|
|
8
|
+
export * from './enums/DeviceImageContentTypeEnum';
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { SelfieSourceEnum } from '../enums/SelfieSourceEnum';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* `GET /identities/private/people/{directoryId}/selfie` — la selfie guardada del usuario.
|
|
5
|
-
*
|
|
6
|
-
* Devuelve una URL firmada temporal, no la imagen. Pensada para alimentar el `userPhotoLink` del
|
|
7
|
-
* facematch de Metamap: se pasa a `buildFacematchSignature` del metamap-connector para obtener el
|
|
8
|
-
* `userPhotoLinkHash`, y el par va en el `metadata` de la verificación con `customInput: true`.
|
|
9
|
-
*
|
|
10
|
-
* Solo responde a usuarios con cuenta (`MEX_DebitAccount` o `USA_DebitAccount`); si no, el endpoint
|
|
11
|
-
* devuelve 401 con code `NO_ACCOUNT`. Si el usuario tiene cuenta pero no hay imagen de selfie,
|
|
12
|
-
* devuelve code `SELFIE_NOT_FOUND`. fiado-identity-lambda.
|
|
13
|
-
*/
|
|
14
|
-
export class PeopleSelfieResponse {
|
|
15
|
-
directoryId: string;
|
|
16
|
-
|
|
17
|
-
/** Nombre del archivo en S3, sin el prefijo `USER/{directoryId}/`. */
|
|
18
|
-
key: string;
|
|
19
|
-
|
|
20
|
-
/** Presigned de S3. Es el valor a usar como `userPhotoLink`. */
|
|
21
|
-
url: string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Vigencia del presigned. La emite fiado-s3-lambda y hoy es 3600; el facematch tiene que
|
|
25
|
-
* dispararse dentro de esa ventana o Metamap no podrá descargar la foto.
|
|
26
|
-
*/
|
|
27
|
-
expiresInSeconds: number;
|
|
28
|
-
|
|
29
|
-
/** Verificación de Metamap a la que pertenece la selfie. `null` si no se pudo determinar. */
|
|
30
|
-
verificationId: string | null;
|
|
31
|
-
|
|
32
|
-
/** Fecha ISO de última modificación del objeto en S3. `null` si S3 no la reportó. */
|
|
33
|
-
lastModified: string | null;
|
|
34
|
-
|
|
35
|
-
source: SelfieSourceEnum;
|
|
36
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Con qué criterio se resolvió cuál archivo de S3 es la selfie del usuario.
|
|
3
|
-
* Le dice al consumidor qué tan confiable es el match antes de mandarla a un facematch.
|
|
4
|
-
*/
|
|
5
|
-
export enum SelfieSourceEnum {
|
|
6
|
-
/** Matcheó el verificationId de la verificación vigente en People. */
|
|
7
|
-
VERIFICATION = 'VERIFICATION',
|
|
8
|
-
/** No hubo match por verificación: se tomó el archivo de selfie más reciente del bucket. */
|
|
9
|
-
LATEST = 'LATEST'
|
|
10
|
-
}
|