@tudopz/model 2.27.24 → 2.27.25
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/package.json +1 -1
- package/src/model/gmail-message.d.ts +16 -0
- package/src/model/gmail-message.js +65 -0
- package/src/model/gmail-message.js.map +1 -0
- package/src/model/google-user.d.ts +8 -0
- package/src/model/google-user.js +36 -0
- package/src/model/google-user.js.map +1 -0
- package/src/models.d.ts +2 -0
- package/src/models.js +2 -0
- package/src/models.js.map +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GoogleUser } from './google-user';
|
|
2
|
+
export declare class GmailMessage {
|
|
3
|
+
id: number;
|
|
4
|
+
messageId: string;
|
|
5
|
+
threadId: string;
|
|
6
|
+
historyId: string;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
snippet: string;
|
|
9
|
+
subject: string;
|
|
10
|
+
from: string;
|
|
11
|
+
to: string;
|
|
12
|
+
cc: string;
|
|
13
|
+
date: string;
|
|
14
|
+
googleUserId: number;
|
|
15
|
+
googleUser: GoogleUser;
|
|
16
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GmailMessage = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const google_user_1 = require("./google-user");
|
|
7
|
+
let GmailMessage = class GmailMessage {
|
|
8
|
+
};
|
|
9
|
+
tslib_1.__decorate([
|
|
10
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
11
|
+
tslib_1.__metadata("design:type", Number)
|
|
12
|
+
], GmailMessage.prototype, "id", void 0);
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], GmailMessage.prototype, "messageId", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
20
|
+
], GmailMessage.prototype, "threadId", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
24
|
+
], GmailMessage.prototype, "historyId", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
27
|
+
tslib_1.__metadata("design:type", String)
|
|
28
|
+
], GmailMessage.prototype, "timestamp", void 0);
|
|
29
|
+
tslib_1.__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
31
|
+
tslib_1.__metadata("design:type", String)
|
|
32
|
+
], GmailMessage.prototype, "snippet", void 0);
|
|
33
|
+
tslib_1.__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
|
+
], GmailMessage.prototype, "subject", void 0);
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
39
|
+
tslib_1.__metadata("design:type", String)
|
|
40
|
+
], GmailMessage.prototype, "from", void 0);
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
44
|
+
], GmailMessage.prototype, "to", void 0);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
47
|
+
tslib_1.__metadata("design:type", String)
|
|
48
|
+
], GmailMessage.prototype, "cc", void 0);
|
|
49
|
+
tslib_1.__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
51
|
+
tslib_1.__metadata("design:type", String)
|
|
52
|
+
], GmailMessage.prototype, "date", void 0);
|
|
53
|
+
tslib_1.__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
55
|
+
tslib_1.__metadata("design:type", Number)
|
|
56
|
+
], GmailMessage.prototype, "googleUserId", void 0);
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
(0, typeorm_1.ManyToOne)(() => google_user_1.GoogleUser),
|
|
59
|
+
tslib_1.__metadata("design:type", google_user_1.GoogleUser)
|
|
60
|
+
], GmailMessage.prototype, "googleUser", void 0);
|
|
61
|
+
GmailMessage = tslib_1.__decorate([
|
|
62
|
+
(0, typeorm_1.Entity)({ name: 'gmail_messages' })
|
|
63
|
+
], GmailMessage);
|
|
64
|
+
exports.GmailMessage = GmailMessage;
|
|
65
|
+
//# sourceMappingURL=gmail-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gmail-message.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/gmail-message.ts"],"names":[],"mappings":";;;;AAAA,qCAA4E;AAE5E,+CAA2C;AAGpC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAuCxB,CAAA;AAtCC;IAAC,IAAA,gCAAsB,GAAE;;wCACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;+CACtB;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;8CACvB;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;+CACtB;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;+CACtB;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;6CACzB;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;6CACzB;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;0CAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;wCAC9B;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;wCAC9B;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;0CAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;kDACH;AAErB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;sCAChB,wBAAU;gDAAC;AAtCZ,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;GACtB,YAAY,CAuCxB;AAvCY,oCAAY"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GoogleUser = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
let GoogleUser = class GoogleUser {
|
|
7
|
+
};
|
|
8
|
+
tslib_1.__decorate([
|
|
9
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
10
|
+
tslib_1.__metadata("design:type", Number)
|
|
11
|
+
], GoogleUser.prototype, "id", void 0);
|
|
12
|
+
tslib_1.__decorate([
|
|
13
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
14
|
+
tslib_1.__metadata("design:type", String)
|
|
15
|
+
], GoogleUser.prototype, "userId", void 0);
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
18
|
+
tslib_1.__metadata("design:type", String)
|
|
19
|
+
], GoogleUser.prototype, "primaryEmail", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 256 }),
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
|
+
], GoogleUser.prototype, "fullName", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 256 }),
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
27
|
+
], GoogleUser.prototype, "familyName", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 256 }),
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
|
+
], GoogleUser.prototype, "givenName", void 0);
|
|
32
|
+
GoogleUser = tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Entity)({ name: 'google_users' })
|
|
34
|
+
], GoogleUser);
|
|
35
|
+
exports.GoogleUser = GoogleUser;
|
|
36
|
+
//# sourceMappingURL=google-user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-user.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/google-user.ts"],"names":[],"mappings":";;;;AAAA,qCAAiE;AAG1D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAkBtB,CAAA;AAjBC;IAAC,IAAA,gCAAsB,GAAE;;sCACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;0CACzB;AAEf;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;gDACnB;AAErB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;4CACxB;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;8CACtB;AAEnB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;6CACvB;AAjBP,UAAU;IADtB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;GACpB,UAAU,CAkBtB;AAlBY,gCAAU"}
|
package/src/models.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export * from './model/extracurricular-activity';
|
|
|
14
14
|
export * from './model/file-access';
|
|
15
15
|
export * from './model/file-category';
|
|
16
16
|
export * from './model/file';
|
|
17
|
+
export * from './model/gmail-message';
|
|
18
|
+
export * from './model/google-user';
|
|
17
19
|
export * from './model/log';
|
|
18
20
|
export * from './model/guardian';
|
|
19
21
|
export * from './model/high-school-record';
|
package/src/models.js
CHANGED
|
@@ -17,6 +17,8 @@ tslib_1.__exportStar(require("./model/extracurricular-activity"), exports);
|
|
|
17
17
|
tslib_1.__exportStar(require("./model/file-access"), exports);
|
|
18
18
|
tslib_1.__exportStar(require("./model/file-category"), exports);
|
|
19
19
|
tslib_1.__exportStar(require("./model/file"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./model/gmail-message"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./model/google-user"), exports);
|
|
20
22
|
tslib_1.__exportStar(require("./model/log"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./model/guardian"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./model/high-school-record"), exports);
|
package/src/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../libs/model/src/models.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,+DAAqC;AACrC,6DAAmC;AACnC,6DAAmC;AACnC,mEAAyC;AACzC,wEAA8C;AAC9C,kEAAwC;AACxC,4DAAkC;AAClC,mEAAyC;AACzC,4DAAkC;AAClC,gEAAsC;AACtC,wDAA8B;AAC9B,2EAAiD;AACjD,8DAAoC;AACpC,gEAAsC;AACtC,uDAA6B;AAC7B,sDAA4B;AAC5B,2DAAiC;AACjC,qEAA2C;AAC3C,gEAAsC;AACtC,qEAA2C;AAC3C,0DAAgC;AAChC,kEAAwC;AACxC,kEAAwC;AACxC,4DAAkC;AAClC,6DAAmC;AACnC,uDAA6B;AAC7B,8DAAoC;AACpC,0DAAgC;AAChC,0DAAgC;AAChC,2DAAiC;AACjC,6DAAmC;AACnC,uDAA6B;AAC7B,yDAA+B;AAC/B,qEAA2C;AAC3C,6DAAmC;AACnC,oEAA0C;AAC1C,iEAAuC;AACvC,iEAAuC;AACvC,qEAA2C;AAC3C,gEAAsC;AACtC,+DAAqC;AACrC,8EAAoD;AACpD,+DAAqC;AACrC,iFAAuD;AACvD,6EAAmD;AACnD,kEAAwC;AACxC,iEAAuC;AACvC,+DAAqC;AACrC,gEAAsC;AACtC,gEAAsC;AACtC,8DAAoC;AACpC,6DAAmC;AACnC,+DAAqC;AACrC,uDAA6B;AAC7B,wEAA8C;AAC9C,kEAAwC;AACxC,mEAAyC;AACzC,uDAA6B;AAC7B,4DAAkC"}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../libs/model/src/models.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,+DAAqC;AACrC,6DAAmC;AACnC,6DAAmC;AACnC,mEAAyC;AACzC,wEAA8C;AAC9C,kEAAwC;AACxC,4DAAkC;AAClC,mEAAyC;AACzC,4DAAkC;AAClC,gEAAsC;AACtC,wDAA8B;AAC9B,2EAAiD;AACjD,8DAAoC;AACpC,gEAAsC;AACtC,uDAA6B;AAC7B,gEAAsC;AACtC,8DAAoC;AACpC,sDAA4B;AAC5B,2DAAiC;AACjC,qEAA2C;AAC3C,gEAAsC;AACtC,qEAA2C;AAC3C,0DAAgC;AAChC,kEAAwC;AACxC,kEAAwC;AACxC,4DAAkC;AAClC,6DAAmC;AACnC,uDAA6B;AAC7B,8DAAoC;AACpC,0DAAgC;AAChC,0DAAgC;AAChC,2DAAiC;AACjC,6DAAmC;AACnC,uDAA6B;AAC7B,yDAA+B;AAC/B,qEAA2C;AAC3C,6DAAmC;AACnC,oEAA0C;AAC1C,iEAAuC;AACvC,iEAAuC;AACvC,qEAA2C;AAC3C,gEAAsC;AACtC,+DAAqC;AACrC,8EAAoD;AACpD,+DAAqC;AACrC,iFAAuD;AACvD,6EAAmD;AACnD,kEAAwC;AACxC,iEAAuC;AACvC,+DAAqC;AACrC,gEAAsC;AACtC,gEAAsC;AACtC,8DAAoC;AACpC,6DAAmC;AACnC,+DAAqC;AACrC,uDAA6B;AAC7B,wEAA8C;AAC9C,kEAAwC;AACxC,mEAAyC;AACzC,uDAA6B;AAC7B,4DAAkC"}
|