@asumano/worklip-typeorm-db 1.1.115 → 1.1.117
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/dist/entities/ClientIdentity.d.ts +1 -0
- package/dist/entities/ClientIdentity.js +13 -2
- package/dist/entities/ServiceOrder.d.ts +1 -0
- package/dist/entities/ServiceOrder.js +9 -0
- package/dist/rules/client.link.rules.d.ts +1 -0
- package/dist/rules/client.link.rules.js +2 -0
- package/package.json +1 -1
|
@@ -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",
|
|
@@ -43,6 +43,7 @@ export declare class ServiceOrder {
|
|
|
43
43
|
estimated_unit: number | null;
|
|
44
44
|
initial_estimated_hours: number | null;
|
|
45
45
|
initial_estimated_unit: number | null;
|
|
46
|
+
client_notifications: number;
|
|
46
47
|
/**
|
|
47
48
|
* DOC: LA CALIFICACIÓN DEL CLIENTE. La deja él mismo desde su informe público, cuando ya
|
|
48
49
|
* recibió el vehículo, y solo si la plantilla de la visita la pide
|
|
@@ -285,6 +285,15 @@ __decorate([
|
|
|
285
285
|
}),
|
|
286
286
|
__metadata("design:type", Object)
|
|
287
287
|
], ServiceOrder.prototype, "initial_estimated_unit", void 0);
|
|
288
|
+
__decorate([
|
|
289
|
+
(0, typeorm_1.Column)({
|
|
290
|
+
default: 1,
|
|
291
|
+
type: "int",
|
|
292
|
+
width: 1,
|
|
293
|
+
comment: "Avisos al cliente de la visita:\n0: Silenciados (nació con la sede silenciada; solo envíos manuales y recordatorios).\n1: Activos.",
|
|
294
|
+
}),
|
|
295
|
+
__metadata("design:type", Number)
|
|
296
|
+
], ServiceOrder.prototype, "client_notifications", void 0);
|
|
288
297
|
__decorate([
|
|
289
298
|
(0, typeorm_1.Column)({
|
|
290
299
|
type: "tinyint",
|
|
@@ -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
|