gs2 1.3.195 → 1.3.197
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/inventory/rest.js +1 -1
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +1 -1
- package/package.json +1 -1
- package/stateMachine/model/AutoRunTransactionSetting.d.ts +17 -0
- package/stateMachine/model/AutoRunTransactionSetting.js +62 -0
- package/stateMachine/model/AutoRunTransactionSetting.js.map +1 -0
- package/stateMachine/model/AutoRunTransactionSetting.ts +60 -0
- package/stateMachine/model/ChangeStateEvent.d.ts +21 -0
- package/stateMachine/model/ChangeStateEvent.js +76 -0
- package/stateMachine/model/ChangeStateEvent.js.map +1 -0
- package/stateMachine/model/ChangeStateEvent.ts +74 -0
- package/stateMachine/model/EmitEvent.d.ts +21 -0
- package/stateMachine/model/EmitEvent.js +76 -0
- package/stateMachine/model/EmitEvent.js.map +1 -0
- package/stateMachine/model/EmitEvent.ts +74 -0
- package/stateMachine/model/Event.d.ts +23 -0
- package/stateMachine/model/Event.js +80 -0
- package/stateMachine/model/Event.js.map +1 -0
- package/stateMachine/model/Event.ts +76 -0
- package/stateMachine/model/Namespace.d.ts +9 -0
- package/stateMachine/model/Namespace.js +34 -5
- package/stateMachine/model/Namespace.js.map +1 -1
- package/stateMachine/model/Namespace.ts +29 -0
- package/stateMachine/model/RandomStatus.d.ts +18 -0
- package/stateMachine/model/RandomStatus.js +70 -0
- package/stateMachine/model/RandomStatus.js.map +1 -0
- package/stateMachine/model/RandomStatus.ts +69 -0
- package/stateMachine/model/RandomUsed.d.ts +17 -0
- package/stateMachine/model/RandomUsed.js +62 -0
- package/stateMachine/model/RandomUsed.js.map +1 -0
- package/stateMachine/model/RandomUsed.ts +60 -0
- package/stateMachine/model/Status.d.ts +13 -0
- package/stateMachine/model/Status.js +44 -0
- package/stateMachine/model/Status.js.map +1 -1
- package/stateMachine/model/Status.ts +44 -0
- package/stateMachine/model/TransactionSetting.d.ts +28 -0
- package/stateMachine/model/TransactionSetting.js +93 -0
- package/stateMachine/model/TransactionSetting.js.map +1 -0
- package/stateMachine/model/TransactionSetting.ts +91 -0
- package/stateMachine/model/index.d.ts +7 -1
- package/stateMachine/model/index.js +13 -1
- package/stateMachine/model/index.js.map +1 -1
- package/stateMachine/model/index.ts +12 -0
- package/stateMachine/request/CreateNamespaceRequest.d.ts +8 -0
- package/stateMachine/request/CreateNamespaceRequest.js +33 -5
- package/stateMachine/request/CreateNamespaceRequest.js.map +1 -1
- package/stateMachine/request/CreateNamespaceRequest.ts +28 -0
- package/stateMachine/request/ReportByUserIdRequest.d.ts +38 -0
- package/stateMachine/request/ReportByUserIdRequest.js +131 -0
- package/stateMachine/request/ReportByUserIdRequest.js.map +1 -0
- package/stateMachine/request/ReportByUserIdRequest.ts +141 -0
- package/stateMachine/request/ReportRequest.d.ts +38 -0
- package/stateMachine/request/ReportRequest.js +131 -0
- package/stateMachine/request/ReportRequest.js.map +1 -0
- package/stateMachine/request/ReportRequest.ts +141 -0
- package/stateMachine/request/UpdateNamespaceRequest.d.ts +8 -0
- package/stateMachine/request/UpdateNamespaceRequest.js +33 -5
- package/stateMachine/request/UpdateNamespaceRequest.js.map +1 -1
- package/stateMachine/request/UpdateNamespaceRequest.ts +28 -0
- package/stateMachine/request/index.d.ts +3 -1
- package/stateMachine/request/index.js +5 -1
- package/stateMachine/request/index.js.map +1 -1
- package/stateMachine/request/index.ts +4 -0
- package/stateMachine/rest.d.ts +2 -0
- package/stateMachine/rest.js +82 -12
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +78 -0
- package/stateMachine/result/ReportByUserIdResult.d.ts +14 -0
- package/stateMachine/result/ReportByUserIdResult.js +48 -0
- package/stateMachine/result/ReportByUserIdResult.js.map +1 -0
- package/stateMachine/result/ReportByUserIdResult.ts +48 -0
- package/stateMachine/result/ReportResult.d.ts +14 -0
- package/stateMachine/result/ReportResult.js +48 -0
- package/stateMachine/result/ReportResult.js.map +1 -0
- package/stateMachine/result/ReportResult.ts +48 -0
- package/stateMachine/result/index.d.ts +3 -1
- package/stateMachine/result/index.js +5 -1
- package/stateMachine/result/index.js.map +1 -1
- package/stateMachine/result/index.ts +4 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
import ChangeStateEvent from './ChangeStateEvent';
|
|
19
|
+
import EmitEvent from './EmitEvent';
|
|
20
|
+
|
|
21
|
+
export default class Event implements IModel {
|
|
22
|
+
private eventType: string|null = null;
|
|
23
|
+
private changeStateEvent: ChangeStateEvent|null = null;
|
|
24
|
+
private emitEvent: EmitEvent|null = null;
|
|
25
|
+
public getEventType(): string|null {
|
|
26
|
+
return this.eventType;
|
|
27
|
+
}
|
|
28
|
+
public setEventType(eventType: string|null) {
|
|
29
|
+
this.eventType = eventType;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
public withEventType(eventType: string|null): this {
|
|
33
|
+
this.eventType = eventType;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
public getChangeStateEvent(): ChangeStateEvent|null {
|
|
37
|
+
return this.changeStateEvent;
|
|
38
|
+
}
|
|
39
|
+
public setChangeStateEvent(changeStateEvent: ChangeStateEvent|null) {
|
|
40
|
+
this.changeStateEvent = changeStateEvent;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
public withChangeStateEvent(changeStateEvent: ChangeStateEvent|null): this {
|
|
44
|
+
this.changeStateEvent = changeStateEvent;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
public getEmitEvent(): EmitEvent|null {
|
|
48
|
+
return this.emitEvent;
|
|
49
|
+
}
|
|
50
|
+
public setEmitEvent(emitEvent: EmitEvent|null) {
|
|
51
|
+
this.emitEvent = emitEvent;
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
public withEmitEvent(emitEvent: EmitEvent|null): this {
|
|
55
|
+
this.emitEvent = emitEvent;
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
public static fromDict(data: {[key: string]: any}): Event|null {
|
|
60
|
+
if (data == undefined || data == null) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return new Event()
|
|
64
|
+
.withEventType(data["eventType"])
|
|
65
|
+
.withChangeStateEvent(ChangeStateEvent.fromDict(data["changeStateEvent"]))
|
|
66
|
+
.withEmitEvent(EmitEvent.fromDict(data["emitEvent"]));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
public toDict(): {[key: string]: any} {
|
|
70
|
+
return {
|
|
71
|
+
"eventType": this.getEventType(),
|
|
72
|
+
"changeStateEvent": this.getChangeStateEvent()?.toDict(),
|
|
73
|
+
"emitEvent": this.getEmitEvent()?.toDict(),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import TransactionSetting from './TransactionSetting';
|
|
2
3
|
import ScriptSetting from './ScriptSetting';
|
|
3
4
|
import LogSetting from './LogSetting';
|
|
4
5
|
export default class Namespace implements IModel {
|
|
5
6
|
private namespaceId;
|
|
6
7
|
private name;
|
|
7
8
|
private description;
|
|
9
|
+
private supportSpeculativeExecution;
|
|
10
|
+
private transactionSetting;
|
|
8
11
|
private startScript;
|
|
9
12
|
private passScript;
|
|
10
13
|
private errorScript;
|
|
@@ -27,6 +30,12 @@ export default class Namespace implements IModel {
|
|
|
27
30
|
getDescription(): string | null;
|
|
28
31
|
setDescription(description: string | null): this;
|
|
29
32
|
withDescription(description: string | null): this;
|
|
33
|
+
getSupportSpeculativeExecution(): string | null;
|
|
34
|
+
setSupportSpeculativeExecution(supportSpeculativeExecution: string | null): this;
|
|
35
|
+
withSupportSpeculativeExecution(supportSpeculativeExecution: string | null): this;
|
|
36
|
+
getTransactionSetting(): TransactionSetting | null;
|
|
37
|
+
setTransactionSetting(transactionSetting: TransactionSetting | null): this;
|
|
38
|
+
withTransactionSetting(transactionSetting: TransactionSetting | null): this;
|
|
30
39
|
getStartScript(): ScriptSetting | null;
|
|
31
40
|
setStartScript(startScript: ScriptSetting | null): this;
|
|
32
41
|
withStartScript(startScript: ScriptSetting | null): this;
|
|
@@ -16,6 +16,7 @@ permissions and limitations under the License.
|
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var tslib_1 = require("tslib");
|
|
19
|
+
var TransactionSetting_1 = tslib_1.__importDefault(require("./TransactionSetting"));
|
|
19
20
|
var ScriptSetting_1 = tslib_1.__importDefault(require("./ScriptSetting"));
|
|
20
21
|
var LogSetting_1 = tslib_1.__importDefault(require("./LogSetting"));
|
|
21
22
|
var grnFormat = "grn:gs2:{region}:{ownerId}:stateMachine:{namespaceName}";
|
|
@@ -24,6 +25,8 @@ var Namespace = /** @class */ (function () {
|
|
|
24
25
|
this.namespaceId = null;
|
|
25
26
|
this.name = null;
|
|
26
27
|
this.description = null;
|
|
28
|
+
this.supportSpeculativeExecution = null;
|
|
29
|
+
this.transactionSetting = null;
|
|
27
30
|
this.startScript = null;
|
|
28
31
|
this.passScript = null;
|
|
29
32
|
this.errorScript = null;
|
|
@@ -114,6 +117,28 @@ var Namespace = /** @class */ (function () {
|
|
|
114
117
|
this.description = description;
|
|
115
118
|
return this;
|
|
116
119
|
};
|
|
120
|
+
Namespace.prototype.getSupportSpeculativeExecution = function () {
|
|
121
|
+
return this.supportSpeculativeExecution;
|
|
122
|
+
};
|
|
123
|
+
Namespace.prototype.setSupportSpeculativeExecution = function (supportSpeculativeExecution) {
|
|
124
|
+
this.supportSpeculativeExecution = supportSpeculativeExecution;
|
|
125
|
+
return this;
|
|
126
|
+
};
|
|
127
|
+
Namespace.prototype.withSupportSpeculativeExecution = function (supportSpeculativeExecution) {
|
|
128
|
+
this.supportSpeculativeExecution = supportSpeculativeExecution;
|
|
129
|
+
return this;
|
|
130
|
+
};
|
|
131
|
+
Namespace.prototype.getTransactionSetting = function () {
|
|
132
|
+
return this.transactionSetting;
|
|
133
|
+
};
|
|
134
|
+
Namespace.prototype.setTransactionSetting = function (transactionSetting) {
|
|
135
|
+
this.transactionSetting = transactionSetting;
|
|
136
|
+
return this;
|
|
137
|
+
};
|
|
138
|
+
Namespace.prototype.withTransactionSetting = function (transactionSetting) {
|
|
139
|
+
this.transactionSetting = transactionSetting;
|
|
140
|
+
return this;
|
|
141
|
+
};
|
|
117
142
|
Namespace.prototype.getStartScript = function () {
|
|
118
143
|
return this.startScript;
|
|
119
144
|
};
|
|
@@ -210,6 +235,8 @@ var Namespace = /** @class */ (function () {
|
|
|
210
235
|
.withNamespaceId(data["namespaceId"])
|
|
211
236
|
.withName(data["name"])
|
|
212
237
|
.withDescription(data["description"])
|
|
238
|
+
.withSupportSpeculativeExecution(data["supportSpeculativeExecution"])
|
|
239
|
+
.withTransactionSetting(TransactionSetting_1.default.fromDict(data["transactionSetting"]))
|
|
213
240
|
.withStartScript(ScriptSetting_1.default.fromDict(data["startScript"]))
|
|
214
241
|
.withPassScript(ScriptSetting_1.default.fromDict(data["passScript"]))
|
|
215
242
|
.withErrorScript(ScriptSetting_1.default.fromDict(data["errorScript"]))
|
|
@@ -220,16 +247,18 @@ var Namespace = /** @class */ (function () {
|
|
|
220
247
|
.withRevision(data["revision"]);
|
|
221
248
|
};
|
|
222
249
|
Namespace.prototype.toDict = function () {
|
|
223
|
-
var _a, _b, _c, _d;
|
|
250
|
+
var _a, _b, _c, _d, _e;
|
|
224
251
|
return {
|
|
225
252
|
"namespaceId": this.getNamespaceId(),
|
|
226
253
|
"name": this.getName(),
|
|
227
254
|
"description": this.getDescription(),
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
"
|
|
255
|
+
"supportSpeculativeExecution": this.getSupportSpeculativeExecution(),
|
|
256
|
+
"transactionSetting": (_a = this.getTransactionSetting()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
257
|
+
"startScript": (_b = this.getStartScript()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
258
|
+
"passScript": (_c = this.getPassScript()) === null || _c === void 0 ? void 0 : _c.toDict(),
|
|
259
|
+
"errorScript": (_d = this.getErrorScript()) === null || _d === void 0 ? void 0 : _d.toDict(),
|
|
231
260
|
"lowestStateMachineVersion": this.getLowestStateMachineVersion(),
|
|
232
|
-
"logSetting": (
|
|
261
|
+
"logSetting": (_e = this.getLogSetting()) === null || _e === void 0 ? void 0 : _e.toDict(),
|
|
233
262
|
"createdAt": this.getCreatedAt(),
|
|
234
263
|
"updatedAt": this.getUpdatedAt(),
|
|
235
264
|
"revision": this.getRevision(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,0EAA4C;AAC5C,oEAAsC;AACtC,IAAM,SAAS,GAAW,yDAAyD,CAAC;AAEpF;IAAA;QACY,gBAAW,GAAgB,IAAI,CAAC;QAChC,SAAI,GAAgB,IAAI,CAAC;QACzB,gBAAW,GAAgB,IAAI,CAAC;QAChC,gBAAW,GAAuB,IAAI,CAAC;QACvC,eAAU,GAAuB,IAAI,CAAC;QACtC,gBAAW,GAAuB,IA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AAC,CAAC;aAChC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACxC,CAAC;IAEM,0BAAM,GAAb;;QACI,OAAO;YACH,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,6BAA6B,EAAE,IAAI,CAAC,8BAA8B,EAAE;YACpE,oBAAoB,EAAE,MAAA,IAAI,CAAC,qBAAqB,EAAE,0CAAE,MAAM,EAAE;YAC5D,aAAa,EAAE,MAAA,IAAI,CAAC,cAAc,EAAE,0CAAE,MAAM,EAAE;YAC9C,YAAY,EAAE,MAAA,IAAI,CAAC,aAAa,EAAE,0CAAE,MAAM,EAAE;YAC5C,aAAa,EAAE,MAAA,IAAI,CAAC,cAAc,EAAE,0CAAE,MAAM,EAAE;YAC9C,2BAA2B,EAAE,IAAI,CAAC,4BAA4B,EAAE;YAChE,YAAY,EAAE,MAAA,IAAI,CAAC,aAAa,EAAE,0CAAE,MAAM,EAAE;YAC5C,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;SACjC,CAAC;IACN,CAAC;IACL,gBAAC;AAAD,CAAC,AA/PD,IA+PC"}
|
|
@@ -15,6 +15,7 @@ permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
|
+
import TransactionSetting from './TransactionSetting';
|
|
18
19
|
import ScriptSetting from './ScriptSetting';
|
|
19
20
|
import LogSetting from './LogSetting';
|
|
20
21
|
const grnFormat: string = "grn:gs2:{region}:{ownerId}:stateMachine:{namespaceName}";
|
|
@@ -23,6 +24,8 @@ export default class Namespace implements IModel {
|
|
|
23
24
|
private namespaceId: string|null = null;
|
|
24
25
|
private name: string|null = null;
|
|
25
26
|
private description: string|null = null;
|
|
27
|
+
private supportSpeculativeExecution: string|null = null;
|
|
28
|
+
private transactionSetting: TransactionSetting|null = null;
|
|
26
29
|
private startScript: ScriptSetting|null = null;
|
|
27
30
|
private passScript: ScriptSetting|null = null;
|
|
28
31
|
private errorScript: ScriptSetting|null = null;
|
|
@@ -124,6 +127,28 @@ export default class Namespace implements IModel {
|
|
|
124
127
|
this.description = description;
|
|
125
128
|
return this;
|
|
126
129
|
}
|
|
130
|
+
public getSupportSpeculativeExecution(): string|null {
|
|
131
|
+
return this.supportSpeculativeExecution;
|
|
132
|
+
}
|
|
133
|
+
public setSupportSpeculativeExecution(supportSpeculativeExecution: string|null) {
|
|
134
|
+
this.supportSpeculativeExecution = supportSpeculativeExecution;
|
|
135
|
+
return this;
|
|
136
|
+
}
|
|
137
|
+
public withSupportSpeculativeExecution(supportSpeculativeExecution: string|null): this {
|
|
138
|
+
this.supportSpeculativeExecution = supportSpeculativeExecution;
|
|
139
|
+
return this;
|
|
140
|
+
}
|
|
141
|
+
public getTransactionSetting(): TransactionSetting|null {
|
|
142
|
+
return this.transactionSetting;
|
|
143
|
+
}
|
|
144
|
+
public setTransactionSetting(transactionSetting: TransactionSetting|null) {
|
|
145
|
+
this.transactionSetting = transactionSetting;
|
|
146
|
+
return this;
|
|
147
|
+
}
|
|
148
|
+
public withTransactionSetting(transactionSetting: TransactionSetting|null): this {
|
|
149
|
+
this.transactionSetting = transactionSetting;
|
|
150
|
+
return this;
|
|
151
|
+
}
|
|
127
152
|
public getStartScript(): ScriptSetting|null {
|
|
128
153
|
return this.startScript;
|
|
129
154
|
}
|
|
@@ -221,6 +246,8 @@ export default class Namespace implements IModel {
|
|
|
221
246
|
.withNamespaceId(data["namespaceId"])
|
|
222
247
|
.withName(data["name"])
|
|
223
248
|
.withDescription(data["description"])
|
|
249
|
+
.withSupportSpeculativeExecution(data["supportSpeculativeExecution"])
|
|
250
|
+
.withTransactionSetting(TransactionSetting.fromDict(data["transactionSetting"]))
|
|
224
251
|
.withStartScript(ScriptSetting.fromDict(data["startScript"]))
|
|
225
252
|
.withPassScript(ScriptSetting.fromDict(data["passScript"]))
|
|
226
253
|
.withErrorScript(ScriptSetting.fromDict(data["errorScript"]))
|
|
@@ -236,6 +263,8 @@ export default class Namespace implements IModel {
|
|
|
236
263
|
"namespaceId": this.getNamespaceId(),
|
|
237
264
|
"name": this.getName(),
|
|
238
265
|
"description": this.getDescription(),
|
|
266
|
+
"supportSpeculativeExecution": this.getSupportSpeculativeExecution(),
|
|
267
|
+
"transactionSetting": this.getTransactionSetting()?.toDict(),
|
|
239
268
|
"startScript": this.getStartScript()?.toDict(),
|
|
240
269
|
"passScript": this.getPassScript()?.toDict(),
|
|
241
270
|
"errorScript": this.getErrorScript()?.toDict(),
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import RandomUsed from './RandomUsed';
|
|
3
|
+
export default class RandomStatus implements IModel {
|
|
4
|
+
private seed;
|
|
5
|
+
private used;
|
|
6
|
+
getSeed(): number | null;
|
|
7
|
+
setSeed(seed: number | null): this;
|
|
8
|
+
withSeed(seed: number | null): this;
|
|
9
|
+
getUsed(): RandomUsed[] | null;
|
|
10
|
+
setUsed(used: RandomUsed[] | null): this;
|
|
11
|
+
withUsed(used: RandomUsed[] | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): RandomStatus | null;
|
|
15
|
+
toDict(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var RandomUsed_1 = tslib_1.__importDefault(require("./RandomUsed"));
|
|
20
|
+
var RandomStatus = /** @class */ (function () {
|
|
21
|
+
function RandomStatus() {
|
|
22
|
+
this.seed = null;
|
|
23
|
+
this.used = null;
|
|
24
|
+
}
|
|
25
|
+
RandomStatus.prototype.getSeed = function () {
|
|
26
|
+
return this.seed;
|
|
27
|
+
};
|
|
28
|
+
RandomStatus.prototype.setSeed = function (seed) {
|
|
29
|
+
this.seed = seed;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
RandomStatus.prototype.withSeed = function (seed) {
|
|
33
|
+
this.seed = seed;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
RandomStatus.prototype.getUsed = function () {
|
|
37
|
+
return this.used;
|
|
38
|
+
};
|
|
39
|
+
RandomStatus.prototype.setUsed = function (used) {
|
|
40
|
+
this.used = used;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
RandomStatus.prototype.withUsed = function (used) {
|
|
44
|
+
this.used = used;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
RandomStatus.fromDict = function (data) {
|
|
48
|
+
if (data == undefined || data == null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return new RandomStatus()
|
|
52
|
+
.withSeed(data["seed"])
|
|
53
|
+
.withUsed(data.used ?
|
|
54
|
+
data.used.map(function (item) {
|
|
55
|
+
return RandomUsed_1.default.fromDict(item);
|
|
56
|
+
}) : []);
|
|
57
|
+
};
|
|
58
|
+
RandomStatus.prototype.toDict = function () {
|
|
59
|
+
return {
|
|
60
|
+
"seed": this.getSeed(),
|
|
61
|
+
"used": this.getUsed() ?
|
|
62
|
+
this.getUsed().map(function (item) {
|
|
63
|
+
return item.toDict();
|
|
64
|
+
}) : [],
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
return RandomStatus;
|
|
68
|
+
}());
|
|
69
|
+
exports.default = RandomStatus;
|
|
70
|
+
//# sourceMappingURL=RandomStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RandomStatus.js","sourceRoot":"","sources":["RandomStatus.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,oEAAsC;AAEtC;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,SAAI,GAAsB,IAAI,CAAC;IA+C3C,CAAC;IA9CU,8BAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,8BAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,+BAAQ,GAAf,UAAgB,IAAiB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8BAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,8BAAO,GAAd,UAAe,IAAuB;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,+BAAQ,GAAf,UAAgB,IAAuB;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,qBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,YAAY,EAAE;aACpB,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACjB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACrC,OAAO,oBAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrC,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,6BAAM,GAAb;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;gBACpB,IAAI,CAAC,OAAO,EAAG,CAAC,GAAG,CAAC,UAAC,IAAgB;oBACjC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,mBAAC;AAAD,CAAC,AAjDD,IAiDC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
import RandomUsed from './RandomUsed';
|
|
19
|
+
|
|
20
|
+
export default class RandomStatus implements IModel {
|
|
21
|
+
private seed: number|null = null;
|
|
22
|
+
private used: RandomUsed[]|null = null;
|
|
23
|
+
public getSeed(): number|null {
|
|
24
|
+
return this.seed;
|
|
25
|
+
}
|
|
26
|
+
public setSeed(seed: number|null) {
|
|
27
|
+
this.seed = seed;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
public withSeed(seed: number|null): this {
|
|
31
|
+
this.seed = seed;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
public getUsed(): RandomUsed[]|null {
|
|
35
|
+
return this.used;
|
|
36
|
+
}
|
|
37
|
+
public setUsed(used: RandomUsed[]|null) {
|
|
38
|
+
this.used = used;
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
public withUsed(used: RandomUsed[]|null): this {
|
|
42
|
+
this.used = used;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public static fromDict(data: {[key: string]: any}): RandomStatus|null {
|
|
47
|
+
if (data == undefined || data == null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return new RandomStatus()
|
|
51
|
+
.withSeed(data["seed"])
|
|
52
|
+
.withUsed(data.used ?
|
|
53
|
+
data.used.map((item: {[key: string]: any}) => {
|
|
54
|
+
return RandomUsed.fromDict(item);
|
|
55
|
+
}
|
|
56
|
+
) : []);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
public toDict(): {[key: string]: any} {
|
|
60
|
+
return {
|
|
61
|
+
"seed": this.getSeed(),
|
|
62
|
+
"used": this.getUsed() ?
|
|
63
|
+
this.getUsed()!.map((item: RandomUsed) => {
|
|
64
|
+
return item.toDict();
|
|
65
|
+
}
|
|
66
|
+
) : [],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class RandomUsed implements IModel {
|
|
3
|
+
private category;
|
|
4
|
+
private used;
|
|
5
|
+
getCategory(): number | null;
|
|
6
|
+
setCategory(category: number | null): this;
|
|
7
|
+
withCategory(category: number | null): this;
|
|
8
|
+
getUsed(): number | null;
|
|
9
|
+
setUsed(used: number | null): this;
|
|
10
|
+
withUsed(used: number | null): this;
|
|
11
|
+
static fromDict(data: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}): RandomUsed | null;
|
|
14
|
+
toDict(): {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var RandomUsed = /** @class */ (function () {
|
|
19
|
+
function RandomUsed() {
|
|
20
|
+
this.category = null;
|
|
21
|
+
this.used = null;
|
|
22
|
+
}
|
|
23
|
+
RandomUsed.prototype.getCategory = function () {
|
|
24
|
+
return this.category;
|
|
25
|
+
};
|
|
26
|
+
RandomUsed.prototype.setCategory = function (category) {
|
|
27
|
+
this.category = category;
|
|
28
|
+
return this;
|
|
29
|
+
};
|
|
30
|
+
RandomUsed.prototype.withCategory = function (category) {
|
|
31
|
+
this.category = category;
|
|
32
|
+
return this;
|
|
33
|
+
};
|
|
34
|
+
RandomUsed.prototype.getUsed = function () {
|
|
35
|
+
return this.used;
|
|
36
|
+
};
|
|
37
|
+
RandomUsed.prototype.setUsed = function (used) {
|
|
38
|
+
this.used = used;
|
|
39
|
+
return this;
|
|
40
|
+
};
|
|
41
|
+
RandomUsed.prototype.withUsed = function (used) {
|
|
42
|
+
this.used = used;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
RandomUsed.fromDict = function (data) {
|
|
46
|
+
if (data == undefined || data == null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return new RandomUsed()
|
|
50
|
+
.withCategory(data["category"])
|
|
51
|
+
.withUsed(data["used"]);
|
|
52
|
+
};
|
|
53
|
+
RandomUsed.prototype.toDict = function () {
|
|
54
|
+
return {
|
|
55
|
+
"category": this.getCategory(),
|
|
56
|
+
"used": this.getUsed(),
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
return RandomUsed;
|
|
60
|
+
}());
|
|
61
|
+
exports.default = RandomUsed;
|
|
62
|
+
//# sourceMappingURL=RandomUsed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RandomUsed.js","sourceRoot":"","sources":["RandomUsed.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,aAAQ,GAAgB,IAAI,CAAC;QAC7B,SAAI,GAAgB,IAAI,CAAC;IAuCrC,CAAC;IAtCU,gCAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,gCAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,iCAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,4BAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,4BAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,6BAAQ,GAAf,UAAgB,IAAiB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,mBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,UAAU,EAAE;aAClB,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAChC,CAAC;IAEM,2BAAM,GAAb;QACI,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;SACzB,CAAC;IACN,CAAC;IACL,iBAAC;AAAD,CAAC,AAzCD,IAyCC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
|
|
19
|
+
export default class RandomUsed implements IModel {
|
|
20
|
+
private category: number|null = null;
|
|
21
|
+
private used: number|null = null;
|
|
22
|
+
public getCategory(): number|null {
|
|
23
|
+
return this.category;
|
|
24
|
+
}
|
|
25
|
+
public setCategory(category: number|null) {
|
|
26
|
+
this.category = category;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
public withCategory(category: number|null): this {
|
|
30
|
+
this.category = category;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
public getUsed(): number|null {
|
|
34
|
+
return this.used;
|
|
35
|
+
}
|
|
36
|
+
public setUsed(used: number|null) {
|
|
37
|
+
this.used = used;
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
public withUsed(used: number|null): this {
|
|
41
|
+
this.used = used;
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public static fromDict(data: {[key: string]: any}): RandomUsed|null {
|
|
46
|
+
if (data == undefined || data == null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return new RandomUsed()
|
|
50
|
+
.withCategory(data["category"])
|
|
51
|
+
.withUsed(data["used"]);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public toDict(): {[key: string]: any} {
|
|
55
|
+
return {
|
|
56
|
+
"category": this.getCategory(),
|
|
57
|
+
"used": this.getUsed(),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import RandomStatus from './RandomStatus';
|
|
2
3
|
import StackEntry from './StackEntry';
|
|
3
4
|
import Variable from './Variable';
|
|
4
5
|
export default class Status implements IModel {
|
|
@@ -6,6 +7,9 @@ export default class Status implements IModel {
|
|
|
6
7
|
private userId;
|
|
7
8
|
private name;
|
|
8
9
|
private stateMachineVersion;
|
|
10
|
+
private enableSpeculativeExecution;
|
|
11
|
+
private stateMachineDefinition;
|
|
12
|
+
private randomStatus;
|
|
9
13
|
private stacks;
|
|
10
14
|
private variables;
|
|
11
15
|
private status;
|
|
@@ -32,6 +36,15 @@ export default class Status implements IModel {
|
|
|
32
36
|
getStateMachineVersion(): number | null;
|
|
33
37
|
setStateMachineVersion(stateMachineVersion: number | null): this;
|
|
34
38
|
withStateMachineVersion(stateMachineVersion: number | null): this;
|
|
39
|
+
getEnableSpeculativeExecution(): string | null;
|
|
40
|
+
setEnableSpeculativeExecution(enableSpeculativeExecution: string | null): this;
|
|
41
|
+
withEnableSpeculativeExecution(enableSpeculativeExecution: string | null): this;
|
|
42
|
+
getStateMachineDefinition(): string | null;
|
|
43
|
+
setStateMachineDefinition(stateMachineDefinition: string | null): this;
|
|
44
|
+
withStateMachineDefinition(stateMachineDefinition: string | null): this;
|
|
45
|
+
getRandomStatus(): RandomStatus | null;
|
|
46
|
+
setRandomStatus(randomStatus: RandomStatus | null): this;
|
|
47
|
+
withRandomStatus(randomStatus: RandomStatus | null): this;
|
|
35
48
|
getStacks(): StackEntry[] | null;
|
|
36
49
|
setStacks(stacks: StackEntry[] | null): this;
|
|
37
50
|
withStacks(stacks: StackEntry[] | null): this;
|