easywork-common-lib 1.0.442 → 1.0.443
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/helpers/user/access_history.entity.d.ts +9 -0
- package/dist/entities/helpers/user/access_history.entity.js +58 -0
- package/dist/entities/helpers/user/access_history.entity.js.map +1 -0
- package/dist/grpc/drive/drive.proto +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
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.AccessHistory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const common_1 = require("../../../common");
|
|
16
|
+
const user_entity_1 = require("../../user.entity");
|
|
17
|
+
let AccessHistory = class AccessHistory extends common_1.EntityBase {
|
|
18
|
+
user;
|
|
19
|
+
ipAddress;
|
|
20
|
+
loginTime;
|
|
21
|
+
logoutTime;
|
|
22
|
+
duration;
|
|
23
|
+
};
|
|
24
|
+
exports.AccessHistory = AccessHistory;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'Usuario que realizó el acceso' }),
|
|
27
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
28
|
+
onDelete: "CASCADE",
|
|
29
|
+
onUpdate: "CASCADE",
|
|
30
|
+
eager: true
|
|
31
|
+
}),
|
|
32
|
+
(0, typeorm_1.JoinColumn)(),
|
|
33
|
+
__metadata("design:type", user_entity_1.User)
|
|
34
|
+
], AccessHistory.prototype, "user", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Dirección IP de acceso' }),
|
|
37
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 25 }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], AccessHistory.prototype, "ipAddress", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Fecha de acceso' }),
|
|
42
|
+
(0, typeorm_1.Column)({ type: "timestamp" }),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], AccessHistory.prototype, "loginTime", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Hora de inicio de sesión' }),
|
|
47
|
+
(0, typeorm_1.Column)({ type: "timestamp" }),
|
|
48
|
+
__metadata("design:type", Date)
|
|
49
|
+
], AccessHistory.prototype, "logoutTime", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Duración de la sesión' }),
|
|
52
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20 }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], AccessHistory.prototype, "duration", void 0);
|
|
55
|
+
exports.AccessHistory = AccessHistory = __decorate([
|
|
56
|
+
(0, typeorm_1.Entity)()
|
|
57
|
+
], AccessHistory);
|
|
58
|
+
//# sourceMappingURL=access_history.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access_history.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/user/access_history.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAgE;AAChE,6CAA8C;AAC9C,4CAA6C;AAC7C,mDAAyC;AAGlC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,mBAAU;IAQ3C,IAAI,CAAO;IAIX,SAAS,CAAS;IAIlB,SAAS,CAAO;IAIhB,UAAU,CAAO;IAIjB,QAAQ,CAAS;CAClB,CAAA;AAzBY,sCAAa;AAQxB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IAC/E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;IACD,IAAA,oBAAU,GAAE;8BACP,kBAAI;2CAAC;AAIX;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACpE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;gDACtB;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IAC3D,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACnB,IAAI;gDAAC;AAIhB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACtE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAClB,IAAI;iDAAC;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;IACnE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;+CACvB;wBAxBN,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAyBzB"}
|
|
@@ -93,7 +93,7 @@ message UploadFilesToReceiptResponse {
|
|
|
93
93
|
|
|
94
94
|
// Respuesta tras subir archivos a la carpeta de documentos de un recibo.
|
|
95
95
|
message UploadFilesToLeadResponse {
|
|
96
|
-
repeated
|
|
96
|
+
repeated FileResponse files = 1; // Identificadores de los archivos subidos
|
|
97
97
|
bool success = 2; // Indicador de éxito de la operación
|
|
98
98
|
string message = 3; // Mensaje de respuesta
|
|
99
99
|
int32 code = 4; // Código de respuesta
|