tering-serieuze-types 1.18.0 → 1.19.0
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 +9 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/session.ts +12 -0
package/dist/index.js
CHANGED
|
@@ -42,11 +42,13 @@ __export(src_exports, {
|
|
|
42
42
|
PlayJingleDto: () => PlayJingleDto,
|
|
43
43
|
Pod: () => Pod,
|
|
44
44
|
RemoveUserDto: () => RemoveUserDto,
|
|
45
|
+
Session: () => Session,
|
|
45
46
|
SetChangelogIdDto: () => SetChangelogIdDto,
|
|
46
47
|
SetWindowStateDto: () => SetWindowStateDto,
|
|
47
48
|
ToggleAbleUserPropertyEnum: () => ToggleAbleUserPropertyEnum,
|
|
48
49
|
ToggleBoolDto: () => ToggleBoolDto,
|
|
49
50
|
ToggleableUserProperties: () => ToggleableUserProperties,
|
|
51
|
+
TokenType: () => TokenType,
|
|
50
52
|
User: () => User,
|
|
51
53
|
VerificationResponseDto: () => VerificationResponseDto,
|
|
52
54
|
WebsocketAction: () => WebsocketAction,
|
|
@@ -119,6 +121,11 @@ var import_class_validator = require("class-validator");
|
|
|
119
121
|
|
|
120
122
|
// src/session.ts
|
|
121
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 || {});
|
|
122
129
|
var Session = class {
|
|
123
130
|
};
|
|
124
131
|
__decorateClass([
|
|
@@ -356,11 +363,13 @@ var P2000Payload = class {
|
|
|
356
363
|
PlayJingleDto,
|
|
357
364
|
Pod,
|
|
358
365
|
RemoveUserDto,
|
|
366
|
+
Session,
|
|
359
367
|
SetChangelogIdDto,
|
|
360
368
|
SetWindowStateDto,
|
|
361
369
|
ToggleAbleUserPropertyEnum,
|
|
362
370
|
ToggleBoolDto,
|
|
363
371
|
ToggleableUserProperties,
|
|
372
|
+
TokenType,
|
|
364
373
|
User,
|
|
365
374
|
VerificationResponseDto,
|
|
366
375
|
WebsocketAction,
|
package/package.json
CHANGED
package/src/index.ts
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
|
+
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;
|