tabletcommand-backend-models 5.25.0 → 5.25.1
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/build/models/session.js
CHANGED
|
@@ -65,6 +65,10 @@ async function SessionModule(mongoose) {
|
|
|
65
65
|
type: String,
|
|
66
66
|
default: "",
|
|
67
67
|
},
|
|
68
|
+
authGroupExpireAt: {
|
|
69
|
+
type: Date,
|
|
70
|
+
default: helpers_1.currentDate,
|
|
71
|
+
},
|
|
68
72
|
// Store the refresh token, in use only when authSource is o-google or o-microsoft
|
|
69
73
|
oAuth: {
|
|
70
74
|
type: OAuthToken,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/models/session.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/models/session.ts"],"names":[],"mappings":";;;AAAA,wCAUoB;AACpB,6BAA6B;AAE7B,0CAAyC;AAElC,KAAK,UAAU,aAAa,CAAC,QAAwB;IAC1D,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC/B,MAAM,UAAU,GAAG,IAAA,eAAW,EAAC,QAAQ,CAAC,CAAC;IAEzC,SAAS,2BAA2B;QAClC,iDAAiD;QACjD,OAAO,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,CAAC;IAC1C,CAAC;IAED,MAAM,WAAW,GAAG,IAAA,sBAAY,EAAC,MAAM,EAAE;QACvC,GAAG,EAAE;YACH,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,IAAI,CAAC,EAAE;SACjB;QACD,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,KAAK;SACf;QACD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,IAAI,CAAC,EAA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,IAAI;QACd,UAAU,EAAE,KAAK;QACjB,SAAS,CAAC,GAA+C,EAAE,GAAiE;YAC1H,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEH,OAAO,IAAA,qBAAW,EAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AACvD,CAAC;AA/FD,sCA+FC;AAID,kBAAe,aAA2E,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="mongoose" />
|
|
2
|
-
import {
|
|
2
|
+
import { ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType } from "../helpers";
|
|
3
3
|
export declare function SessionModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
|
|
4
4
|
_id: string;
|
|
5
5
|
nick: string;
|
|
@@ -17,6 +17,7 @@ export declare function SessionModule(mongoose: MongooseModule): Promise<import(
|
|
|
17
17
|
deviceId: string;
|
|
18
18
|
authSource: string;
|
|
19
19
|
authGroupKey: string;
|
|
20
|
+
authGroupExpireAt: string;
|
|
20
21
|
oAuth: import("../helpers").MongooseInterface<{
|
|
21
22
|
accessToken: {
|
|
22
23
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/models/session.ts"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/models/session.ts"],"names":[],"mappings":";AAAA,OAAO,EAML,8BAA8B,EAC9B,+BAA+B,EAC/B,cAAc,EACd,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAKpB,wBAAsB,aAAa,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+F3D;AAED,MAAM,WAAW,OAAQ,SAAQ,8BAA8B,CAAC,OAAO,aAAa,CAAC;CAAI;AACzF,MAAM,WAAW,YAAa,SAAQ,+BAA+B,CAAC,OAAO,CAAC;CAAI;;AAClF,wBAA2F"}
|
package/package.json
CHANGED
package/src/models/session.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
MongooseModule,
|
|
3
|
-
createSchema,
|
|
4
2
|
createModel,
|
|
3
|
+
createSchema,
|
|
4
|
+
currentDate,
|
|
5
5
|
DocumentTypeFromSchema,
|
|
6
6
|
FieldsOfDocument,
|
|
7
|
-
ReplaceModelReturnType,
|
|
8
7
|
ItemTypeFromTypeSchemaFunction,
|
|
9
8
|
ModelTypeFromTypeSchemaFunction,
|
|
9
|
+
MongooseModule,
|
|
10
|
+
ReplaceModelReturnType,
|
|
10
11
|
} from "../helpers";
|
|
11
12
|
import * as uuid from "uuid";
|
|
12
13
|
|
|
@@ -75,6 +76,10 @@ export async function SessionModule(mongoose: MongooseModule) {
|
|
|
75
76
|
type: String,
|
|
76
77
|
default: "",
|
|
77
78
|
},
|
|
79
|
+
authGroupExpireAt: {
|
|
80
|
+
type: Date,
|
|
81
|
+
default: currentDate,
|
|
82
|
+
},
|
|
78
83
|
// Store the refresh token, in use only when authSource is o-google or o-microsoft
|
|
79
84
|
oAuth: {
|
|
80
85
|
type: OAuthToken,
|