@ludeo/cloud-common 1.2.178-beta.2 → 1.2.178
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/tsconfig.tsbuildinfo +1 -1
- package/dist/v2/contexts/cloud-session-context.d.ts +5 -0
- package/dist/v2/contexts/cloud-session-context.js +25 -0
- package/dist/v2/contexts/cloud-session-context.js.map +1 -1
- package/dist/v4/contexts/cloud-session-context.d.ts +0 -2
- package/dist/v4/contexts/cloud-session-context.js +0 -8
- package/dist/v4/contexts/cloud-session-context.js.map +1 -1
- package/package.json +2 -2
- package/src/v2/contexts/cloud-session-context.ts +20 -1
- package/src/v4/contexts/cloud-session-context.ts +1 -8
- package/dist/v4/contexts/client-geo-data.d.ts +0 -7
- package/dist/v4/contexts/client-geo-data.js +0 -42
- package/dist/v4/contexts/client-geo-data.js.map +0 -1
- package/src/v4/contexts/client-geo-data.ts +0 -23
|
@@ -68,4 +68,29 @@ __decorate([
|
|
|
68
68
|
(0, class_validator_1.IsString)(),
|
|
69
69
|
__metadata("design:type", String)
|
|
70
70
|
], CloudSessionContext.prototype, "streamSessionId", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
73
|
+
(0, class_validator_1.IsNumber)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], CloudSessionContext.prototype, "userLatitude", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
(0, class_validator_1.IsNumber)(),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], CloudSessionContext.prototype, "userLongitude", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_validator_1.IsString)(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], CloudSessionContext.prototype, "userContinent", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
(0, class_validator_1.IsString)(),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], CloudSessionContext.prototype, "userCountry", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
(0, class_validator_1.IsString)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], CloudSessionContext.prototype, "userCity", void 0);
|
|
71
96
|
//# sourceMappingURL=cloud-session-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v2/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v2/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiF;AACjF,oCAAyC;AAEzC,MAAa,mBAAmB;CA8D/B;AA9DD,kDA8DC;AA3DC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACoB;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB;AAGzB;IADC,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;oDACQ;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAGhB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0DACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACc;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACW;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACO"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CloudProvider } from "../types";
|
|
2
|
-
import { ClientGeoData } from "./client-geo-data";
|
|
3
2
|
export declare class CloudSessionContext {
|
|
4
3
|
allocationRequestId?: string;
|
|
5
4
|
clientRequestId?: string;
|
|
@@ -25,5 +24,4 @@ export declare class CloudSessionContext {
|
|
|
25
24
|
roomId?: string;
|
|
26
25
|
gameplayId?: string;
|
|
27
26
|
atpId?: string;
|
|
28
|
-
clientGeoData?: ClientGeoData;
|
|
29
27
|
}
|
|
@@ -11,9 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CloudSessionContext = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
14
|
const types_1 = require("../types");
|
|
16
|
-
const client_geo_data_1 = require("./client-geo-data");
|
|
17
15
|
class CloudSessionContext {
|
|
18
16
|
}
|
|
19
17
|
exports.CloudSessionContext = CloudSessionContext;
|
|
@@ -128,10 +126,4 @@ __decorate([
|
|
|
128
126
|
(0, class_validator_1.IsUUID)(),
|
|
129
127
|
__metadata("design:type", String)
|
|
130
128
|
], CloudSessionContext.prototype, "atpId", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, class_validator_1.IsOptional)(),
|
|
133
|
-
(0, class_validator_1.ValidateNested)(),
|
|
134
|
-
(0, class_transformer_1.Type)(() => client_geo_data_1.ClientGeoData),
|
|
135
|
-
__metadata("design:type", client_geo_data_1.ClientGeoData)
|
|
136
|
-
], CloudSessionContext.prototype, "clientGeoData", void 0);
|
|
137
129
|
//# sourceMappingURL=cloud-session-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,mBAAmB;CAwF/B;AAxFD,kDAwFC;AArFC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACoB;AAG7B;IADC,IAAA,4BAAU,GAAE;;4DACY;AAGzB;IADC,IAAA,wBAAM,GAAE;;2DACc;AAGvB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;oDACI;AAGjB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0DACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACc;AAKzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,4BAAU,GAAE;;yDACS;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACY;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB;AAGzB;IADC,IAAA,4BAAU,GAAE;;yDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kDACM"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ludeo/cloud-common",
|
|
3
|
-
"version": "1.2.178
|
|
3
|
+
"version": "1.2.178",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
|
-
"author": "
|
|
6
|
+
"author": "Niv Raviv",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "rm -rf dist && tsc",
|
|
9
9
|
"test": "jest",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsEnum, IsOptional, IsString, IsUUID } from "class-validator";
|
|
1
|
+
import { IsEnum, IsNumber, IsOptional, IsString, IsUUID } from "class-validator";
|
|
2
2
|
import { CloudProvider } from "../types";
|
|
3
3
|
|
|
4
4
|
export class CloudSessionContext {
|
|
@@ -44,4 +44,23 @@ export class CloudSessionContext {
|
|
|
44
44
|
@IsString()
|
|
45
45
|
streamSessionId?: string;
|
|
46
46
|
|
|
47
|
+
@IsOptional()
|
|
48
|
+
@IsNumber()
|
|
49
|
+
userLatitude?: number;
|
|
50
|
+
|
|
51
|
+
@IsOptional()
|
|
52
|
+
@IsNumber()
|
|
53
|
+
userLongitude?: number;
|
|
54
|
+
|
|
55
|
+
@IsOptional()
|
|
56
|
+
@IsString()
|
|
57
|
+
userContinent?: string;
|
|
58
|
+
|
|
59
|
+
@IsOptional()
|
|
60
|
+
@IsString()
|
|
61
|
+
userCountry?: string;
|
|
62
|
+
|
|
63
|
+
@IsOptional()
|
|
64
|
+
@IsString()
|
|
65
|
+
userCity?: string;
|
|
47
66
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { IsEnum,
|
|
2
|
-
import { Type } from "class-transformer";
|
|
1
|
+
import { IsEnum, IsOptional, IsString, IsUUID } from "class-validator";
|
|
3
2
|
import { CloudProvider } from "../types";
|
|
4
|
-
import { ClientGeoData } from "./client-geo-data";
|
|
5
3
|
|
|
6
4
|
export class CloudSessionContext {
|
|
7
5
|
@IsOptional()
|
|
@@ -91,9 +89,4 @@ export class CloudSessionContext {
|
|
|
91
89
|
@IsOptional()
|
|
92
90
|
@IsUUID()
|
|
93
91
|
atpId?: string;
|
|
94
|
-
|
|
95
|
-
@IsOptional()
|
|
96
|
-
@ValidateNested()
|
|
97
|
-
@Type(() => ClientGeoData)
|
|
98
|
-
clientGeoData?: ClientGeoData;
|
|
99
92
|
}
|
|
@@ -1,42 +0,0 @@
|
|
|
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.ClientGeoData = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class ClientGeoData {
|
|
15
|
-
}
|
|
16
|
-
exports.ClientGeoData = ClientGeoData;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsOptional)(),
|
|
19
|
-
(0, class_validator_1.IsNumber)(),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], ClientGeoData.prototype, "latitude", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsOptional)(),
|
|
24
|
-
(0, class_validator_1.IsNumber)(),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], ClientGeoData.prototype, "longitude", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], ClientGeoData.prototype, "continent", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_validator_1.IsOptional)(),
|
|
34
|
-
(0, class_validator_1.IsString)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], ClientGeoData.prototype, "country", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsOptional)(),
|
|
39
|
-
(0, class_validator_1.IsString)(),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], ClientGeoData.prototype, "city", void 0);
|
|
42
|
-
//# sourceMappingURL=client-geo-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client-geo-data.js","sourceRoot":"","sources":["../../../src/v4/contexts/client-geo-data.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AAEjE,MAAa,aAAa;CAoBvB;AApBH,sCAoBG;AAjBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACG"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { IsNumber, IsOptional, IsString } from "class-validator";
|
|
2
|
-
|
|
3
|
-
export class ClientGeoData {
|
|
4
|
-
@IsOptional()
|
|
5
|
-
@IsNumber()
|
|
6
|
-
latitude?: number;
|
|
7
|
-
|
|
8
|
-
@IsOptional()
|
|
9
|
-
@IsNumber()
|
|
10
|
-
longitude?: number;
|
|
11
|
-
|
|
12
|
-
@IsOptional()
|
|
13
|
-
@IsString()
|
|
14
|
-
continent?: string;
|
|
15
|
-
|
|
16
|
-
@IsOptional()
|
|
17
|
-
@IsString()
|
|
18
|
-
country?: string;
|
|
19
|
-
|
|
20
|
-
@IsOptional()
|
|
21
|
-
@IsString()
|
|
22
|
-
city?: string;
|
|
23
|
-
}
|