gs2-cdk 1.0.49 → 1.0.50
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/package.json +1 -1
- package/script/model/Transaction.d.ts +9 -0
- package/script/model/Transaction.js +23 -0
- package/script/model/Transaction.js.map +1 -0
- package/script/model/Transaction.ts +46 -0
- package/script/model/index.d.ts +3 -1
- package/script/model/index.js +3 -1
- package/script/model/index.js.map +1 -1
- package/script/model/index.ts +4 -0
- package/script/model/options/TransactionOptions.d.ts +6 -0
- package/script/model/options/TransactionOptions.js +3 -0
- package/script/model/options/TransactionOptions.js.map +1 -0
- package/script/model/options/TransactionOptions.ts +23 -0
- package/stateMachine/model/AutoRunTransactionSetting.d.ts +9 -0
- package/stateMachine/model/AutoRunTransactionSetting.js +22 -0
- package/stateMachine/model/AutoRunTransactionSetting.js.map +1 -0
- package/stateMachine/model/AutoRunTransactionSetting.ts +43 -0
- package/stateMachine/model/ChangeStateEvent.d.ts +10 -0
- package/stateMachine/model/ChangeStateEvent.js +24 -0
- package/stateMachine/model/ChangeStateEvent.js.map +1 -0
- package/stateMachine/model/ChangeStateEvent.ts +50 -0
- package/stateMachine/model/EmitEvent.d.ts +10 -0
- package/stateMachine/model/EmitEvent.js +24 -0
- package/stateMachine/model/EmitEvent.js.map +1 -0
- package/stateMachine/model/EmitEvent.ts +50 -0
- package/stateMachine/model/Event.d.ts +17 -0
- package/stateMachine/model/Event.js +39 -0
- package/stateMachine/model/Event.js.map +1 -0
- package/stateMachine/model/Event.ts +79 -0
- package/stateMachine/model/RandomStatus.d.ts +9 -0
- package/stateMachine/model/RandomStatus.js +22 -0
- package/stateMachine/model/RandomStatus.js.map +1 -0
- package/stateMachine/model/RandomStatus.ts +45 -0
- package/stateMachine/model/RandomUsed.d.ts +9 -0
- package/stateMachine/model/RandomUsed.js +20 -0
- package/stateMachine/model/RandomUsed.js.map +1 -0
- package/stateMachine/model/RandomUsed.ts +44 -0
- package/stateMachine/model/enum/EventEventType.d.ts +5 -0
- package/stateMachine/model/enum/EventEventType.js +23 -0
- package/stateMachine/model/enum/EventEventType.js.map +1 -0
- package/stateMachine/model/enum/EventEventType.ts +23 -0
- package/stateMachine/model/enum/NamespaceSupportSpeculativeExecution.d.ts +5 -0
- package/stateMachine/model/enum/NamespaceSupportSpeculativeExecution.js +23 -0
- package/stateMachine/model/enum/NamespaceSupportSpeculativeExecution.js.map +1 -0
- package/stateMachine/model/enum/NamespaceSupportSpeculativeExecution.ts +23 -0
- package/stateMachine/model/index.d.ts +17 -1
- package/stateMachine/model/index.js +15 -1
- package/stateMachine/model/index.js.map +1 -1
- package/stateMachine/model/index.ts +32 -0
- package/stateMachine/model/options/AutoRunTransactionSettingOptions.d.ts +3 -0
- package/stateMachine/model/options/AutoRunTransactionSettingOptions.js +18 -0
- package/stateMachine/model/options/AutoRunTransactionSettingOptions.js.map +1 -0
- package/stateMachine/model/options/AutoRunTransactionSettingOptions.ts +20 -0
- package/stateMachine/model/options/ChangeStateEventOptions.d.ts +2 -0
- package/stateMachine/model/options/ChangeStateEventOptions.js +18 -0
- package/stateMachine/model/options/ChangeStateEventOptions.js.map +1 -0
- package/stateMachine/model/options/ChangeStateEventOptions.ts +19 -0
- package/stateMachine/model/options/EmitEventOptions.d.ts +2 -0
- package/stateMachine/model/options/EmitEventOptions.js +18 -0
- package/stateMachine/model/options/EmitEventOptions.js.map +1 -0
- package/stateMachine/model/options/EmitEventOptions.ts +19 -0
- package/stateMachine/model/options/EventEventTypeIsChangeStateOptions.d.ts +2 -0
- package/stateMachine/model/options/EventEventTypeIsChangeStateOptions.js +3 -0
- package/stateMachine/model/options/EventEventTypeIsChangeStateOptions.js.map +1 -0
- package/stateMachine/model/options/EventEventTypeIsChangeStateOptions.ts +21 -0
- package/stateMachine/model/options/EventEventTypeIsEmitOptions.d.ts +2 -0
- package/stateMachine/model/options/EventEventTypeIsEmitOptions.js +3 -0
- package/stateMachine/model/options/EventEventTypeIsEmitOptions.js.map +1 -0
- package/stateMachine/model/options/EventEventTypeIsEmitOptions.ts +21 -0
- package/stateMachine/model/options/EventOptions.d.ts +6 -0
- package/stateMachine/model/options/EventOptions.js +3 -0
- package/stateMachine/model/options/EventOptions.js.map +1 -0
- package/stateMachine/model/options/EventOptions.ts +24 -0
- package/stateMachine/model/options/NamespaceOptions.d.ts +4 -0
- package/stateMachine/model/options/NamespaceOptions.ts +4 -0
- package/stateMachine/model/options/NamespaceSupportSpeculativeExecutionIsDisableOptions.d.ts +13 -0
- package/stateMachine/model/options/NamespaceSupportSpeculativeExecutionIsDisableOptions.js +3 -0
- package/stateMachine/model/options/NamespaceSupportSpeculativeExecutionIsDisableOptions.js.map +1 -0
- package/stateMachine/model/options/NamespaceSupportSpeculativeExecutionIsDisableOptions.ts +30 -0
- package/stateMachine/model/options/NamespaceSupportSpeculativeExecutionIsEnableOptions.d.ts +13 -0
- package/stateMachine/model/options/NamespaceSupportSpeculativeExecutionIsEnableOptions.js +3 -0
- package/stateMachine/model/options/NamespaceSupportSpeculativeExecutionIsEnableOptions.js.map +1 -0
- package/stateMachine/model/options/NamespaceSupportSpeculativeExecutionIsEnableOptions.ts +30 -0
- package/stateMachine/model/options/RandomStatusOptions.d.ts +4 -0
- package/stateMachine/model/options/RandomStatusOptions.js +3 -0
- package/stateMachine/model/options/RandomStatusOptions.js.map +1 -0
- package/stateMachine/model/options/RandomStatusOptions.ts +21 -0
- package/stateMachine/model/options/RandomUsedOptions.d.ts +2 -0
- package/stateMachine/model/options/RandomUsedOptions.js +18 -0
- package/stateMachine/model/options/RandomUsedOptions.js.map +1 -0
- package/stateMachine/model/options/RandomUsedOptions.ts +19 -0
- package/stateMachine/ref/NamespaceRef.d.ts +2 -1
- package/stateMachine/ref/NamespaceRef.js +2 -2
- package/stateMachine/ref/NamespaceRef.js.map +1 -1
- package/stateMachine/ref/NamespaceRef.ts +3 -0
- package/stateMachine/stampSheet/StartStateMachineByUserId.d.ts +3 -1
- package/stateMachine/stampSheet/StartStateMachineByUserId.js +6 -1
- package/stateMachine/stampSheet/StartStateMachineByUserId.js.map +1 -1
- package/stateMachine/stampSheet/StartStateMachineByUserId.ts +7 -0
- package/stateMachine/stampSheet/enum/StatusEnableSpeculativeExecution.d.ts +5 -0
- package/stateMachine/stampSheet/enum/StatusEnableSpeculativeExecution.js +23 -0
- package/stateMachine/stampSheet/enum/StatusEnableSpeculativeExecution.js.map +1 -0
- package/stateMachine/stampSheet/enum/StatusEnableSpeculativeExecution.ts +23 -0
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TransactionOptions } from "./options/TransactionOptions";
|
|
2
|
+
export default class Transaction {
|
|
3
|
+
private readonly consumeActions;
|
|
4
|
+
private readonly acquireActions;
|
|
5
|
+
constructor(options?: TransactionOptions | null);
|
|
6
|
+
properties(): {
|
|
7
|
+
[name: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class Transaction {
|
|
4
|
+
constructor(options = null) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
this.consumeActions = null;
|
|
7
|
+
this.acquireActions = null;
|
|
8
|
+
this.consumeActions = (_a = options === null || options === void 0 ? void 0 : options.consumeActions) !== null && _a !== void 0 ? _a : null;
|
|
9
|
+
this.acquireActions = (_b = options === null || options === void 0 ? void 0 : options.acquireActions) !== null && _b !== void 0 ? _b : null;
|
|
10
|
+
}
|
|
11
|
+
properties() {
|
|
12
|
+
let properties = {};
|
|
13
|
+
if (this.consumeActions != null) {
|
|
14
|
+
properties["consumeActions"] = this.consumeActions.map(v => v.properties());
|
|
15
|
+
}
|
|
16
|
+
if (this.acquireActions != null) {
|
|
17
|
+
properties["acquireActions"] = this.acquireActions.map(v => v.properties());
|
|
18
|
+
}
|
|
19
|
+
return properties;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = Transaction;
|
|
23
|
+
//# sourceMappingURL=Transaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Transaction.js","sourceRoot":"","sources":["Transaction.ts"],"names":[],"mappings":";;AAmBA,MAAqB,WAAW;IAI5B,YACI,UAAmC,IAAI;;QAJ1B,mBAAc,GAAyB,IAAI,CAAC;QAC5C,mBAAc,GAAyB,IAAI,CAAC;QAKzD,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,IAAI,CAAC;QACtD,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,IAAI,CAAC;IAC1D,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,8BA0BC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import { ConsumeAction } from "../../core/model";
|
|
17
|
+
import { AcquireAction } from "../../core/model";
|
|
18
|
+
import { TransactionOptions } from "./options/TransactionOptions";
|
|
19
|
+
|
|
20
|
+
export default class Transaction {
|
|
21
|
+
private readonly consumeActions: ConsumeAction[]|null = null;
|
|
22
|
+
private readonly acquireActions: AcquireAction[]|null = null;
|
|
23
|
+
|
|
24
|
+
public constructor(
|
|
25
|
+
options: TransactionOptions|null = null,
|
|
26
|
+
) {
|
|
27
|
+
this.consumeActions = options?.consumeActions ?? null;
|
|
28
|
+
this.acquireActions = options?.acquireActions ?? null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.consumeActions != null) {
|
|
36
|
+
properties["consumeActions"] = this.consumeActions.map(v => v.properties(
|
|
37
|
+
));
|
|
38
|
+
}
|
|
39
|
+
if (this.acquireActions != null) {
|
|
40
|
+
properties["acquireActions"] = this.acquireActions.map(v => v.properties(
|
|
41
|
+
));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return properties;
|
|
45
|
+
}
|
|
46
|
+
}
|
package/script/model/index.d.ts
CHANGED
|
@@ -6,4 +6,6 @@ import RandomStatus from "./RandomStatus";
|
|
|
6
6
|
import { RandomStatusOptions } from "./options/RandomStatusOptions";
|
|
7
7
|
import RandomUsed from "./RandomUsed";
|
|
8
8
|
import { RandomUsedOptions } from "./options/RandomUsedOptions";
|
|
9
|
-
|
|
9
|
+
import Transaction from "./Transaction";
|
|
10
|
+
import { TransactionOptions } from "./options/TransactionOptions";
|
|
11
|
+
export { Namespace, NamespaceOptions, Script, ScriptOptions, RandomStatus, RandomStatusOptions, RandomUsed, RandomUsedOptions, Transaction, TransactionOptions, };
|
package/script/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RandomUsed = exports.RandomStatus = exports.Script = exports.Namespace = void 0;
|
|
3
|
+
exports.Transaction = exports.RandomUsed = exports.RandomStatus = exports.Script = exports.Namespace = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -25,4 +25,6 @@ const RandomStatus_1 = tslib_1.__importDefault(require("./RandomStatus"));
|
|
|
25
25
|
exports.RandomStatus = RandomStatus_1.default;
|
|
26
26
|
const RandomUsed_1 = tslib_1.__importDefault(require("./RandomUsed"));
|
|
27
27
|
exports.RandomUsed = RandomUsed_1.default;
|
|
28
|
+
const Transaction_1 = tslib_1.__importDefault(require("./Transaction"));
|
|
29
|
+
exports.Transaction = Transaction_1.default;
|
|
28
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAYhC,oBAZG,mBAAS,CAYH;AAVb,8DAA8B;AAY1B,iBAZG,gBAAM,CAYH;AAVV,0EAA0C;AAYtC,uBAZG,sBAAY,CAYH;AAVhB,sEAAsC;AAYlC,qBAZG,oBAAU,CAYH;AAVd,wEAAwC;AAYpC,sBAZG,qBAAW,CAYH"}
|
package/script/model/index.ts
CHANGED
|
@@ -21,6 +21,8 @@ import RandomStatus from "./RandomStatus";
|
|
|
21
21
|
import { RandomStatusOptions } from "./options/RandomStatusOptions";
|
|
22
22
|
import RandomUsed from "./RandomUsed";
|
|
23
23
|
import { RandomUsedOptions } from "./options/RandomUsedOptions";
|
|
24
|
+
import Transaction from "./Transaction";
|
|
25
|
+
import { TransactionOptions } from "./options/TransactionOptions";
|
|
24
26
|
|
|
25
27
|
export {
|
|
26
28
|
Namespace,
|
|
@@ -31,4 +33,6 @@ export {
|
|
|
31
33
|
RandomStatusOptions,
|
|
32
34
|
RandomUsed,
|
|
33
35
|
RandomUsedOptions,
|
|
36
|
+
Transaction,
|
|
37
|
+
TransactionOptions,
|
|
34
38
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionOptions.js","sourceRoot":"","sources":["TransactionOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
import { ConsumeAction } from "../../../core/model";
|
|
17
|
+
import { AcquireAction } from "../../../core/model";
|
|
18
|
+
|
|
19
|
+
export interface TransactionOptions {
|
|
20
|
+
consumeActions?: ConsumeAction[]|null;
|
|
21
|
+
acquireActions?: AcquireAction[]|null;
|
|
22
|
+
}
|
|
23
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AutoRunTransactionSettingOptions } from "./options/AutoRunTransactionSettingOptions";
|
|
2
|
+
export default class AutoRunTransactionSetting {
|
|
3
|
+
private readonly distributorNamespaceId;
|
|
4
|
+
private readonly queueNamespaceId;
|
|
5
|
+
constructor(distributorNamespaceId: string, options?: AutoRunTransactionSettingOptions | null);
|
|
6
|
+
properties(): {
|
|
7
|
+
[name: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class AutoRunTransactionSetting {
|
|
4
|
+
constructor(distributorNamespaceId, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.queueNamespaceId = null;
|
|
7
|
+
this.distributorNamespaceId = distributorNamespaceId;
|
|
8
|
+
this.queueNamespaceId = (_a = options === null || options === void 0 ? void 0 : options.queueNamespaceId) !== null && _a !== void 0 ? _a : null;
|
|
9
|
+
}
|
|
10
|
+
properties() {
|
|
11
|
+
let properties = {};
|
|
12
|
+
if (this.distributorNamespaceId != null) {
|
|
13
|
+
properties["distributorNamespaceId"] = this.distributorNamespaceId;
|
|
14
|
+
}
|
|
15
|
+
if (this.queueNamespaceId != null) {
|
|
16
|
+
properties["queueNamespaceId"] = this.queueNamespaceId;
|
|
17
|
+
}
|
|
18
|
+
return properties;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = AutoRunTransactionSetting;
|
|
22
|
+
//# sourceMappingURL=AutoRunTransactionSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoRunTransactionSetting.js","sourceRoot":"","sources":["AutoRunTransactionSetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,yBAAyB;IAI1C,YACI,sBAA8B,EAC9B,UAAiD,IAAI;;QAJxC,qBAAgB,GAAgB,IAAI,CAAC;QAMlD,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,IAAI,CAAC;IAC9D,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,UAAU,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;SACtE;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC;SAC1D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAzBD,4CAyBC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
import { AutoRunTransactionSettingOptions } from "./options/AutoRunTransactionSettingOptions";
|
|
17
|
+
|
|
18
|
+
export default class AutoRunTransactionSetting {
|
|
19
|
+
private readonly distributorNamespaceId: string;
|
|
20
|
+
private readonly queueNamespaceId: string|null = null;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
distributorNamespaceId: string,
|
|
24
|
+
options: AutoRunTransactionSettingOptions|null = null,
|
|
25
|
+
) {
|
|
26
|
+
this.distributorNamespaceId = distributorNamespaceId;
|
|
27
|
+
this.queueNamespaceId = options?.queueNamespaceId ?? null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public properties(
|
|
31
|
+
): {[name: string]: any} {
|
|
32
|
+
let properties: {[name: string]: any} = {};
|
|
33
|
+
|
|
34
|
+
if (this.distributorNamespaceId != null) {
|
|
35
|
+
properties["distributorNamespaceId"] = this.distributorNamespaceId;
|
|
36
|
+
}
|
|
37
|
+
if (this.queueNamespaceId != null) {
|
|
38
|
+
properties["queueNamespaceId"] = this.queueNamespaceId;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return properties;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChangeStateEventOptions } from "./options/ChangeStateEventOptions";
|
|
2
|
+
export default class ChangeStateEvent {
|
|
3
|
+
private readonly taskName;
|
|
4
|
+
private readonly hash;
|
|
5
|
+
private readonly timestamp;
|
|
6
|
+
constructor(taskName: string, hash: string, timestamp: number, options?: ChangeStateEventOptions | null);
|
|
7
|
+
properties(): {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class ChangeStateEvent {
|
|
4
|
+
constructor(taskName, hash, timestamp, options = null) {
|
|
5
|
+
this.taskName = taskName;
|
|
6
|
+
this.hash = hash;
|
|
7
|
+
this.timestamp = timestamp;
|
|
8
|
+
}
|
|
9
|
+
properties() {
|
|
10
|
+
let properties = {};
|
|
11
|
+
if (this.taskName != null) {
|
|
12
|
+
properties["taskName"] = this.taskName;
|
|
13
|
+
}
|
|
14
|
+
if (this.hash != null) {
|
|
15
|
+
properties["hash"] = this.hash;
|
|
16
|
+
}
|
|
17
|
+
if (this.timestamp != null) {
|
|
18
|
+
properties["timestamp"] = this.timestamp;
|
|
19
|
+
}
|
|
20
|
+
return properties;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = ChangeStateEvent;
|
|
24
|
+
//# sourceMappingURL=ChangeStateEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangeStateEvent.js","sourceRoot":"","sources":["ChangeStateEvent.ts"],"names":[],"mappings":";;AAiBA,MAAqB,gBAAgB;IAKjC,YACI,QAAgB,EAChB,IAAY,EACZ,SAAiB,EACjB,UAAwC,IAAI;QAE5C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,mCAgCC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import { ChangeStateEventOptions } from "./options/ChangeStateEventOptions";
|
|
17
|
+
|
|
18
|
+
export default class ChangeStateEvent {
|
|
19
|
+
private readonly taskName: string;
|
|
20
|
+
private readonly hash: string;
|
|
21
|
+
private readonly timestamp: number;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
taskName: string,
|
|
25
|
+
hash: string,
|
|
26
|
+
timestamp: number,
|
|
27
|
+
options: ChangeStateEventOptions|null = null,
|
|
28
|
+
) {
|
|
29
|
+
this.taskName = taskName;
|
|
30
|
+
this.hash = hash;
|
|
31
|
+
this.timestamp = timestamp;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public properties(
|
|
35
|
+
): {[name: string]: any} {
|
|
36
|
+
let properties: {[name: string]: any} = {};
|
|
37
|
+
|
|
38
|
+
if (this.taskName != null) {
|
|
39
|
+
properties["taskName"] = this.taskName;
|
|
40
|
+
}
|
|
41
|
+
if (this.hash != null) {
|
|
42
|
+
properties["hash"] = this.hash;
|
|
43
|
+
}
|
|
44
|
+
if (this.timestamp != null) {
|
|
45
|
+
properties["timestamp"] = this.timestamp;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return properties;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EmitEventOptions } from "./options/EmitEventOptions";
|
|
2
|
+
export default class EmitEvent {
|
|
3
|
+
private readonly event;
|
|
4
|
+
private readonly parameters;
|
|
5
|
+
private readonly timestamp;
|
|
6
|
+
constructor(event: string, parameters: string, timestamp: number, options?: EmitEventOptions | null);
|
|
7
|
+
properties(): {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class EmitEvent {
|
|
4
|
+
constructor(event, parameters, timestamp, options = null) {
|
|
5
|
+
this.event = event;
|
|
6
|
+
this.parameters = parameters;
|
|
7
|
+
this.timestamp = timestamp;
|
|
8
|
+
}
|
|
9
|
+
properties() {
|
|
10
|
+
let properties = {};
|
|
11
|
+
if (this.event != null) {
|
|
12
|
+
properties["event"] = this.event;
|
|
13
|
+
}
|
|
14
|
+
if (this.parameters != null) {
|
|
15
|
+
properties["parameters"] = this.parameters;
|
|
16
|
+
}
|
|
17
|
+
if (this.timestamp != null) {
|
|
18
|
+
properties["timestamp"] = this.timestamp;
|
|
19
|
+
}
|
|
20
|
+
return properties;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = EmitEvent;
|
|
24
|
+
//# sourceMappingURL=EmitEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmitEvent.js","sourceRoot":"","sources":["EmitEvent.ts"],"names":[],"mappings":";;AAiBA,MAAqB,SAAS;IAK1B,YACI,KAAa,EACb,UAAkB,EAClB,SAAiB,EACjB,UAAiC,IAAI;QAErC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,4BAgCC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import { EmitEventOptions } from "./options/EmitEventOptions";
|
|
17
|
+
|
|
18
|
+
export default class EmitEvent {
|
|
19
|
+
private readonly event: string;
|
|
20
|
+
private readonly parameters: string;
|
|
21
|
+
private readonly timestamp: number;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
event: string,
|
|
25
|
+
parameters: string,
|
|
26
|
+
timestamp: number,
|
|
27
|
+
options: EmitEventOptions|null = null,
|
|
28
|
+
) {
|
|
29
|
+
this.event = event;
|
|
30
|
+
this.parameters = parameters;
|
|
31
|
+
this.timestamp = timestamp;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public properties(
|
|
35
|
+
): {[name: string]: any} {
|
|
36
|
+
let properties: {[name: string]: any} = {};
|
|
37
|
+
|
|
38
|
+
if (this.event != null) {
|
|
39
|
+
properties["event"] = this.event;
|
|
40
|
+
}
|
|
41
|
+
if (this.parameters != null) {
|
|
42
|
+
properties["parameters"] = this.parameters;
|
|
43
|
+
}
|
|
44
|
+
if (this.timestamp != null) {
|
|
45
|
+
properties["timestamp"] = this.timestamp;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return properties;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import ChangeStateEvent from "./ChangeStateEvent";
|
|
2
|
+
import EmitEvent from "./EmitEvent";
|
|
3
|
+
import { EventOptions } from "./options/EventOptions";
|
|
4
|
+
import { EventEventTypeIsChangeStateOptions } from "./options/EventEventTypeIsChangeStateOptions";
|
|
5
|
+
import { EventEventTypeIsEmitOptions } from "./options/EventEventTypeIsEmitOptions";
|
|
6
|
+
import { EventEventType } from "./enum/EventEventType";
|
|
7
|
+
export default class Event {
|
|
8
|
+
private readonly eventType;
|
|
9
|
+
private readonly changeStateEvent;
|
|
10
|
+
private readonly emitEvent;
|
|
11
|
+
constructor(eventType: EventEventType, options?: EventOptions | null);
|
|
12
|
+
static eventTypeIsChangeState(changeStateEvent: ChangeStateEvent, options?: EventEventTypeIsChangeStateOptions | null): Event;
|
|
13
|
+
static eventTypeIsEmit(emitEvent: EmitEvent, options?: EventEventTypeIsEmitOptions | null): Event;
|
|
14
|
+
properties(): {
|
|
15
|
+
[name: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const EventEventType_1 = require("./enum/EventEventType");
|
|
4
|
+
class Event {
|
|
5
|
+
constructor(eventType, options = null) {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
this.changeStateEvent = null;
|
|
8
|
+
this.emitEvent = null;
|
|
9
|
+
this.eventType = eventType;
|
|
10
|
+
this.changeStateEvent = (_a = options === null || options === void 0 ? void 0 : options.changeStateEvent) !== null && _a !== void 0 ? _a : null;
|
|
11
|
+
this.emitEvent = (_b = options === null || options === void 0 ? void 0 : options.emitEvent) !== null && _b !== void 0 ? _b : null;
|
|
12
|
+
}
|
|
13
|
+
static eventTypeIsChangeState(changeStateEvent, options = null) {
|
|
14
|
+
return new Event(EventEventType_1.EventEventType.CHANGE_STATE, {
|
|
15
|
+
changeStateEvent: changeStateEvent,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
static eventTypeIsEmit(emitEvent, options = null) {
|
|
19
|
+
return new Event(EventEventType_1.EventEventType.EMIT, {
|
|
20
|
+
emitEvent: emitEvent,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
properties() {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
let properties = {};
|
|
26
|
+
if (this.eventType != null) {
|
|
27
|
+
properties["eventType"] = this.eventType;
|
|
28
|
+
}
|
|
29
|
+
if (this.changeStateEvent != null) {
|
|
30
|
+
properties["changeStateEvent"] = (_a = this.changeStateEvent) === null || _a === void 0 ? void 0 : _a.properties();
|
|
31
|
+
}
|
|
32
|
+
if (this.emitEvent != null) {
|
|
33
|
+
properties["emitEvent"] = (_b = this.emitEvent) === null || _b === void 0 ? void 0 : _b.properties();
|
|
34
|
+
}
|
|
35
|
+
return properties;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.default = Event;
|
|
39
|
+
//# sourceMappingURL=Event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Event.js","sourceRoot":"","sources":["Event.ts"],"names":[],"mappings":";;AAoBA,0DAAuD;AAEvD,MAAqB,KAAK;IAKtB,YACI,SAAyB,EACzB,UAA6B,IAAI;;QALpB,qBAAgB,GAA0B,IAAI,CAAC;QAC/C,cAAS,GAAmB,IAAI,CAAC;QAM9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,gBAAgB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,IAAI,CAAC;QAC1D,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,mCAAI,IAAI,CAAC;IAChD,CAAC;IAEM,MAAM,CAAC,sBAAsB,CAChC,gBAAkC,EAClC,UAAmD,IAAI;QAEvD,OAAO,IAAI,KAAK,CACZ,+BAAc,CAAC,YAAY,EAC3B;YACI,gBAAgB,EAAE,gBAAgB;SACrC,CACJ,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,eAAe,CACzB,SAAoB,EACpB,UAA4C,IAAI;QAEhD,OAAO,IAAI,KAAK,CACZ,+BAAc,CAAC,IAAI,EACnB;YACI,SAAS,EAAE,SAAS;SACvB,CACJ,CAAC;IACN,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EACjE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,MAAA,IAAI,CAAC,SAAS,0CAAE,UAAU,EACnD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAxDD,wBAwDC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
import ChangeStateEvent from "./ChangeStateEvent";
|
|
17
|
+
import EmitEvent from "./EmitEvent";
|
|
18
|
+
import { EventOptions } from "./options/EventOptions";
|
|
19
|
+
import { EventEventTypeIsChangeStateOptions } from "./options/EventEventTypeIsChangeStateOptions";
|
|
20
|
+
import { EventEventTypeIsEmitOptions } from "./options/EventEventTypeIsEmitOptions";
|
|
21
|
+
import { EventEventType } from "./enum/EventEventType";
|
|
22
|
+
|
|
23
|
+
export default class Event {
|
|
24
|
+
private readonly eventType: EventEventType;
|
|
25
|
+
private readonly changeStateEvent: ChangeStateEvent|null = null;
|
|
26
|
+
private readonly emitEvent: EmitEvent|null = null;
|
|
27
|
+
|
|
28
|
+
public constructor(
|
|
29
|
+
eventType: EventEventType,
|
|
30
|
+
options: EventOptions|null = null,
|
|
31
|
+
) {
|
|
32
|
+
this.eventType = eventType;
|
|
33
|
+
this.changeStateEvent = options?.changeStateEvent ?? null;
|
|
34
|
+
this.emitEvent = options?.emitEvent ?? null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public static eventTypeIsChangeState(
|
|
38
|
+
changeStateEvent: ChangeStateEvent,
|
|
39
|
+
options: EventEventTypeIsChangeStateOptions|null = null,
|
|
40
|
+
): Event {
|
|
41
|
+
return new Event(
|
|
42
|
+
EventEventType.CHANGE_STATE,
|
|
43
|
+
{
|
|
44
|
+
changeStateEvent: changeStateEvent,
|
|
45
|
+
},
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public static eventTypeIsEmit(
|
|
50
|
+
emitEvent: EmitEvent,
|
|
51
|
+
options: EventEventTypeIsEmitOptions|null = null,
|
|
52
|
+
): Event {
|
|
53
|
+
return new Event(
|
|
54
|
+
EventEventType.EMIT,
|
|
55
|
+
{
|
|
56
|
+
emitEvent: emitEvent,
|
|
57
|
+
},
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public properties(
|
|
62
|
+
): {[name: string]: any} {
|
|
63
|
+
let properties: {[name: string]: any} = {};
|
|
64
|
+
|
|
65
|
+
if (this.eventType != null) {
|
|
66
|
+
properties["eventType"] = this.eventType;
|
|
67
|
+
}
|
|
68
|
+
if (this.changeStateEvent != null) {
|
|
69
|
+
properties["changeStateEvent"] = this.changeStateEvent?.properties(
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
if (this.emitEvent != null) {
|
|
73
|
+
properties["emitEvent"] = this.emitEvent?.properties(
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return properties;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RandomStatusOptions } from "./options/RandomStatusOptions";
|
|
2
|
+
export default class RandomStatus {
|
|
3
|
+
private readonly seed;
|
|
4
|
+
private readonly used;
|
|
5
|
+
constructor(seed: number, options?: RandomStatusOptions | null);
|
|
6
|
+
properties(): {
|
|
7
|
+
[name: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class RandomStatus {
|
|
4
|
+
constructor(seed, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.used = null;
|
|
7
|
+
this.seed = seed;
|
|
8
|
+
this.used = (_a = options === null || options === void 0 ? void 0 : options.used) !== null && _a !== void 0 ? _a : null;
|
|
9
|
+
}
|
|
10
|
+
properties() {
|
|
11
|
+
let properties = {};
|
|
12
|
+
if (this.seed != null) {
|
|
13
|
+
properties["seed"] = this.seed;
|
|
14
|
+
}
|
|
15
|
+
if (this.used != null) {
|
|
16
|
+
properties["used"] = this.used.map(v => v.properties());
|
|
17
|
+
}
|
|
18
|
+
return properties;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = RandomStatus;
|
|
22
|
+
//# sourceMappingURL=RandomStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RandomStatus.js","sourceRoot":"","sources":["RandomStatus.ts"],"names":[],"mappings":";;AAkBA,MAAqB,YAAY;IAI7B,YACI,IAAY,EACZ,UAAoC,IAAI;;QAJ3B,SAAI,GAAsB,IAAI,CAAC;QAM5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,IAAI,CAAC;IACtC,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC/C,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,+BA0BC"}
|