@asumano/worklip-typeorm-db 1.1.115 → 1.1.116
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.
|
@@ -37,7 +37,7 @@ __decorate([
|
|
|
37
37
|
(0, typeorm_1.Column)({
|
|
38
38
|
type: "int",
|
|
39
39
|
width: 1,
|
|
40
|
-
comment: "Tipo:\r\n1: Google.\r\n2: Correo electrónico.\r\n3: WhatsApp.",
|
|
40
|
+
comment: "Tipo:\r\n1: Google.\r\n2: Correo electrónico.\r\n3: WhatsApp.\r\n4: Apple.",
|
|
41
41
|
}),
|
|
42
42
|
__metadata("design:type", Number)
|
|
43
43
|
], ClientIdentity.prototype, "type", void 0);
|
|
@@ -45,10 +45,21 @@ __decorate([
|
|
|
45
45
|
(0, typeorm_1.Column)({
|
|
46
46
|
type: "varchar",
|
|
47
47
|
length: 255,
|
|
48
|
-
comment: "Valor normalizado: sub de Google, correo en minúscula o celular con indicativo.",
|
|
48
|
+
comment: "Valor normalizado: sub de Google o de Apple, correo en minúscula o celular con indicativo.",
|
|
49
49
|
}),
|
|
50
50
|
__metadata("design:type", String)
|
|
51
51
|
], ClientIdentity.prototype, "value", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({
|
|
54
|
+
type: "varchar",
|
|
55
|
+
length: 512,
|
|
56
|
+
nullable: true,
|
|
57
|
+
default: null,
|
|
58
|
+
select: false,
|
|
59
|
+
comment: "Solo Apple: refresh_token para revocar el acceso al eliminar la cuenta.",
|
|
60
|
+
}),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], ClientIdentity.prototype, "secret", void 0);
|
|
52
63
|
__decorate([
|
|
53
64
|
(0, typeorm_1.Column)({
|
|
54
65
|
type: "datetime",
|
|
@@ -11,6 +11,8 @@ exports.CLIENT_IDENTITY_TYPE = {
|
|
|
11
11
|
GOOGLE: 1,
|
|
12
12
|
EMAIL: 2,
|
|
13
13
|
WHATSAPP: 3,
|
|
14
|
+
// DOC: Iniciar sesión con Apple (solo iPhone, sql/109). El valor es el `sub` de Apple.
|
|
15
|
+
APPLE: 4,
|
|
14
16
|
};
|
|
15
17
|
/**
|
|
16
18
|
* DOC: Deja el valor de la identidad en su forma única. Sin esto el UNIQUE (type, value) no
|