@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.
@@ -4,6 +4,7 @@ export declare class ClientIdentity {
4
4
  client: Client;
5
5
  type: number;
6
6
  value: string;
7
+ secret: string | null;
7
8
  verified: Date;
8
9
  last_used: Date | null;
9
10
  created: Date;
@@ -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",
@@ -2,6 +2,7 @@ export declare const CLIENT_IDENTITY_TYPE: {
2
2
  readonly GOOGLE: 1;
3
3
  readonly EMAIL: 2;
4
4
  readonly WHATSAPP: 3;
5
+ readonly APPLE: 4;
5
6
  };
6
7
  export type TClientIdentityType = (typeof CLIENT_IDENTITY_TYPE)[keyof typeof CLIENT_IDENTITY_TYPE];
7
8
  /**
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asumano/worklip-typeorm-db",
3
- "version": "1.1.115",
3
+ "version": "1.1.116",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },