tering-serieuze-types 1.18.1 → 1.19.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/dist/index.js +7 -0
- package/package.json +1 -1
- package/src/session.ts +12 -0
package/dist/index.js
CHANGED
|
@@ -48,6 +48,7 @@ __export(src_exports, {
|
|
|
48
48
|
ToggleAbleUserPropertyEnum: () => ToggleAbleUserPropertyEnum,
|
|
49
49
|
ToggleBoolDto: () => ToggleBoolDto,
|
|
50
50
|
ToggleableUserProperties: () => ToggleableUserProperties,
|
|
51
|
+
TokenType: () => TokenType,
|
|
51
52
|
User: () => User,
|
|
52
53
|
VerificationResponseDto: () => VerificationResponseDto,
|
|
53
54
|
WebsocketAction: () => WebsocketAction,
|
|
@@ -120,6 +121,11 @@ var import_class_validator = require("class-validator");
|
|
|
120
121
|
|
|
121
122
|
// src/session.ts
|
|
122
123
|
var import_swagger3 = require("@nestjs/swagger");
|
|
124
|
+
var TokenType = /* @__PURE__ */ ((TokenType2) => {
|
|
125
|
+
TokenType2[TokenType2["Refresh"] = 0] = "Refresh";
|
|
126
|
+
TokenType2[TokenType2["Access"] = 1] = "Access";
|
|
127
|
+
return TokenType2;
|
|
128
|
+
})(TokenType || {});
|
|
123
129
|
var Session = class {
|
|
124
130
|
};
|
|
125
131
|
__decorateClass([
|
|
@@ -363,6 +369,7 @@ var P2000Payload = class {
|
|
|
363
369
|
ToggleAbleUserPropertyEnum,
|
|
364
370
|
ToggleBoolDto,
|
|
365
371
|
ToggleableUserProperties,
|
|
372
|
+
TokenType,
|
|
366
373
|
User,
|
|
367
374
|
VerificationResponseDto,
|
|
368
375
|
WebsocketAction,
|
package/package.json
CHANGED
package/src/session.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { ApiProperty } from '@nestjs/swagger';
|
|
2
2
|
|
|
3
|
+
export enum TokenType {
|
|
4
|
+
Refresh,
|
|
5
|
+
Access,
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type TokenContent = {
|
|
9
|
+
sessionId: string;
|
|
10
|
+
email: string;
|
|
11
|
+
tokenNumber: number;
|
|
12
|
+
type: TokenType;
|
|
13
|
+
};
|
|
14
|
+
|
|
3
15
|
export class Session {
|
|
4
16
|
@ApiProperty({ type: String, example: '1234567890abcdef', description: 'Session ID' })
|
|
5
17
|
id: string;
|