gs2-cdk 1.0.49 → 1.0.51
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/grade/index.d.ts +12 -0
- package/grade/index.js +32 -0
- package/grade/index.js.map +1 -0
- package/grade/index.ts +36 -0
- package/grade/model/AcquireActionRate.d.ts +16 -0
- package/grade/model/AcquireActionRate.js +42 -0
- package/grade/model/AcquireActionRate.js.map +1 -0
- package/grade/model/AcquireActionRate.ts +85 -0
- package/grade/model/CurrentMasterData.d.ts +13 -0
- package/grade/model/CurrentMasterData.js +50 -0
- package/grade/model/CurrentMasterData.js.map +1 -0
- package/grade/model/CurrentMasterData.ts +70 -0
- package/grade/model/DefaultGradeModel.d.ts +9 -0
- package/grade/model/DefaultGradeModel.js +20 -0
- package/grade/model/DefaultGradeModel.js.map +1 -0
- package/grade/model/DefaultGradeModel.ts +44 -0
- package/grade/model/GradeEntryModel.d.ts +11 -0
- package/grade/model/GradeEntryModel.js +31 -0
- package/grade/model/GradeEntryModel.js.map +1 -0
- package/grade/model/GradeEntryModel.ts +54 -0
- package/grade/model/GradeModel.d.ts +14 -0
- package/grade/model/GradeModel.js +40 -0
- package/grade/model/GradeModel.js.map +1 -0
- package/grade/model/GradeModel.ts +71 -0
- package/grade/model/Namespace.d.ts +22 -0
- package/grade/model/Namespace.js +77 -0
- package/grade/model/Namespace.js.map +1 -0
- package/grade/model/Namespace.ts +122 -0
- package/grade/model/enum/AcquireActionRateMode.d.ts +5 -0
- package/grade/model/enum/AcquireActionRateMode.js +23 -0
- package/grade/model/enum/AcquireActionRateMode.js.map +1 -0
- package/grade/model/enum/AcquireActionRateMode.ts +23 -0
- package/grade/model/index.d.ts +15 -0
- package/grade/model/index.js +34 -0
- package/grade/model/index.js.map +1 -0
- package/grade/model/index.ts +46 -0
- package/grade/model/options/AcquireActionRateModeIsBigOptions.d.ts +2 -0
- package/grade/model/options/AcquireActionRateModeIsBigOptions.js +3 -0
- package/grade/model/options/AcquireActionRateModeIsBigOptions.js.map +1 -0
- package/grade/model/options/AcquireActionRateModeIsBigOptions.ts +19 -0
- package/grade/model/options/AcquireActionRateModeIsDoubleOptions.d.ts +2 -0
- package/grade/model/options/AcquireActionRateModeIsDoubleOptions.js +3 -0
- package/grade/model/options/AcquireActionRateModeIsDoubleOptions.js.map +1 -0
- package/grade/model/options/AcquireActionRateModeIsDoubleOptions.ts +19 -0
- package/grade/model/options/AcquireActionRateOptions.d.ts +4 -0
- package/grade/model/options/AcquireActionRateOptions.js +3 -0
- package/grade/model/options/AcquireActionRateOptions.js.map +1 -0
- package/grade/model/options/AcquireActionRateOptions.ts +22 -0
- package/grade/model/options/DefaultGradeModelOptions.d.ts +2 -0
- package/grade/model/options/DefaultGradeModelOptions.js +18 -0
- package/grade/model/options/DefaultGradeModelOptions.js.map +1 -0
- package/grade/model/options/DefaultGradeModelOptions.ts +19 -0
- package/grade/model/options/GradeEntryModelOptions.d.ts +4 -0
- package/grade/model/options/GradeEntryModelOptions.js +18 -0
- package/grade/model/options/GradeEntryModelOptions.js.map +1 -0
- package/grade/model/options/GradeEntryModelOptions.ts +21 -0
- package/grade/model/options/GradeModelOptions.d.ts +7 -0
- package/grade/model/options/GradeModelOptions.js +3 -0
- package/grade/model/options/GradeModelOptions.js.map +1 -0
- package/grade/model/options/GradeModelOptions.ts +25 -0
- package/grade/model/options/NamespaceOptions.d.ts +9 -0
- package/grade/model/options/NamespaceOptions.js +3 -0
- package/grade/model/options/NamespaceOptions.js.map +1 -0
- package/grade/model/options/NamespaceOptions.ts +26 -0
- package/grade/ref/GradeModelRef.d.ts +6 -0
- package/grade/ref/GradeModelRef.js +38 -0
- package/grade/ref/GradeModelRef.js.map +1 -0
- package/grade/ref/GradeModelRef.ts +52 -0
- package/grade/ref/NamespaceRef.d.ts +21 -0
- package/grade/ref/NamespaceRef.js +64 -0
- package/grade/ref/NamespaceRef.js.map +1 -0
- package/grade/ref/NamespaceRef.ts +159 -0
- package/grade/ref/index.d.ts +3 -0
- package/grade/ref/index.js +24 -0
- package/grade/ref/index.js.map +1 -0
- package/grade/ref/index.ts +22 -0
- package/grade/stampSheet/AddGradeByUserId.d.ts +13 -0
- package/grade/stampSheet/AddGradeByUserId.js +53 -0
- package/grade/stampSheet/AddGradeByUserId.js.map +1 -0
- package/grade/stampSheet/AddGradeByUserId.ts +69 -0
- package/grade/stampSheet/ApplyRankCapByUserId.d.ts +12 -0
- package/grade/stampSheet/ApplyRankCapByUserId.js +48 -0
- package/grade/stampSheet/ApplyRankCapByUserId.js.map +1 -0
- package/grade/stampSheet/ApplyRankCapByUserId.ts +63 -0
- package/grade/stampSheet/MultiplyAcquireActionsByUserId.d.ts +14 -0
- package/grade/stampSheet/MultiplyAcquireActionsByUserId.js +57 -0
- package/grade/stampSheet/MultiplyAcquireActionsByUserId.js.map +1 -0
- package/grade/stampSheet/MultiplyAcquireActionsByUserId.ts +76 -0
- package/grade/stampSheet/SubGradeByUserId.d.ts +13 -0
- package/grade/stampSheet/SubGradeByUserId.js +53 -0
- package/grade/stampSheet/SubGradeByUserId.js.map +1 -0
- package/grade/stampSheet/SubGradeByUserId.ts +69 -0
- package/grade/stampSheet/VerifyGradeByUserId.d.ts +15 -0
- package/grade/stampSheet/VerifyGradeByUserId.js +57 -0
- package/grade/stampSheet/VerifyGradeByUserId.js.map +1 -0
- package/grade/stampSheet/VerifyGradeByUserId.ts +76 -0
- package/grade/stampSheet/VerifyGradeUpMaterialByUserId.d.ts +15 -0
- package/grade/stampSheet/VerifyGradeUpMaterialByUserId.js +56 -0
- package/grade/stampSheet/VerifyGradeUpMaterialByUserId.js.map +1 -0
- package/grade/stampSheet/VerifyGradeUpMaterialByUserId.ts +76 -0
- package/grade/stampSheet/enum/StatusVerifyType.d.ts +5 -0
- package/grade/stampSheet/enum/StatusVerifyType.js +23 -0
- package/grade/stampSheet/enum/StatusVerifyType.js.map +1 -0
- package/grade/stampSheet/enum/StatusVerifyType.ts +23 -0
- package/grade/stampSheet/index.d.ts +7 -0
- package/grade/stampSheet/index.js +32 -0
- package/grade/stampSheet/index.js.map +1 -0
- package/grade/stampSheet/index.ts +30 -0
- 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/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
|
@@ -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 {AcquireAction, ConsumeAction} from "../../core/model";
|
|
18
|
+
import { StatusVerifyType } from "./enum/StatusVerifyType";
|
|
19
|
+
|
|
20
|
+
export default class VerifyGradeUpMaterialByUserId extends ConsumeAction {
|
|
21
|
+
private readonly namespaceName: string;
|
|
22
|
+
private readonly userId: string;
|
|
23
|
+
private readonly gradeName: string;
|
|
24
|
+
private readonly verifyType: StatusVerifyType;
|
|
25
|
+
private readonly propertyId: string;
|
|
26
|
+
private readonly materialPropertyId: string;
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
public constructor(
|
|
30
|
+
namespaceName: string,
|
|
31
|
+
gradeName: string,
|
|
32
|
+
verifyType: StatusVerifyType,
|
|
33
|
+
propertyId: string,
|
|
34
|
+
materialPropertyId: string,
|
|
35
|
+
userId: string = "#{userId}",
|
|
36
|
+
) {
|
|
37
|
+
super();
|
|
38
|
+
|
|
39
|
+
this.namespaceName = namespaceName;
|
|
40
|
+
this.gradeName = gradeName;
|
|
41
|
+
this.verifyType = verifyType;
|
|
42
|
+
this.propertyId = propertyId;
|
|
43
|
+
this.materialPropertyId = materialPropertyId;
|
|
44
|
+
this.userId = userId;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public request(
|
|
48
|
+
): {[name: string]: any} {
|
|
49
|
+
let properties: {[name: string]: any} = {};
|
|
50
|
+
|
|
51
|
+
if (this.namespaceName != null) {
|
|
52
|
+
properties["namespaceName"] = this.namespaceName;
|
|
53
|
+
}
|
|
54
|
+
if (this.userId != null) {
|
|
55
|
+
properties["userId"] = this.userId;
|
|
56
|
+
}
|
|
57
|
+
if (this.gradeName != null) {
|
|
58
|
+
properties["gradeName"] = this.gradeName;
|
|
59
|
+
}
|
|
60
|
+
if (this.verifyType != null) {
|
|
61
|
+
properties["verifyType"] = this.verifyType;
|
|
62
|
+
}
|
|
63
|
+
if (this.propertyId != null) {
|
|
64
|
+
properties["propertyId"] = this.propertyId;
|
|
65
|
+
}
|
|
66
|
+
if (this.materialPropertyId != null) {
|
|
67
|
+
properties["materialPropertyId"] = this.materialPropertyId;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return properties;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
public action(): string {
|
|
74
|
+
return "Gs2Grade:VerifyGradeUpMaterialByUserId";
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
exports.StatusVerifyType = void 0;
|
|
19
|
+
exports.StatusVerifyType = {
|
|
20
|
+
MATCH: "match",
|
|
21
|
+
NOT_MATCH: "notMatch",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=StatusVerifyType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusVerifyType.js","sourceRoot":"","sources":["StatusVerifyType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,gBAAgB,GAAG;IAC5B,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,UAAU;CACf,CAAC"}
|
|
@@ -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
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export const StatusVerifyType = {
|
|
20
|
+
MATCH: "match",
|
|
21
|
+
NOT_MATCH: "notMatch",
|
|
22
|
+
} as const;
|
|
23
|
+
export type StatusVerifyType = typeof StatusVerifyType[keyof typeof StatusVerifyType];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import AddGradeByUserId from "./AddGradeByUserId";
|
|
2
|
+
import ApplyRankCapByUserId from "./ApplyRankCapByUserId";
|
|
3
|
+
import MultiplyAcquireActionsByUserId from "./MultiplyAcquireActionsByUserId";
|
|
4
|
+
import SubGradeByUserId from "./SubGradeByUserId";
|
|
5
|
+
import VerifyGradeByUserId from "./VerifyGradeByUserId";
|
|
6
|
+
import VerifyGradeUpMaterialByUserId from "./VerifyGradeUpMaterialByUserId";
|
|
7
|
+
export { AddGradeByUserId, ApplyRankCapByUserId, MultiplyAcquireActionsByUserId, SubGradeByUserId, VerifyGradeByUserId, VerifyGradeUpMaterialByUserId, };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerifyGradeUpMaterialByUserId = exports.VerifyGradeByUserId = exports.SubGradeByUserId = exports.MultiplyAcquireActionsByUserId = exports.ApplyRankCapByUserId = exports.AddGradeByUserId = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/*
|
|
6
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
7
|
+
* Reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
10
|
+
* You may not use this file except in compliance with the License.
|
|
11
|
+
* A copy of the License is located at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
16
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
17
|
+
* express or implied. See the License for the specific language governing
|
|
18
|
+
* permissions and limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
const AddGradeByUserId_1 = tslib_1.__importDefault(require("./AddGradeByUserId"));
|
|
21
|
+
exports.AddGradeByUserId = AddGradeByUserId_1.default;
|
|
22
|
+
const ApplyRankCapByUserId_1 = tslib_1.__importDefault(require("./ApplyRankCapByUserId"));
|
|
23
|
+
exports.ApplyRankCapByUserId = ApplyRankCapByUserId_1.default;
|
|
24
|
+
const MultiplyAcquireActionsByUserId_1 = tslib_1.__importDefault(require("./MultiplyAcquireActionsByUserId"));
|
|
25
|
+
exports.MultiplyAcquireActionsByUserId = MultiplyAcquireActionsByUserId_1.default;
|
|
26
|
+
const SubGradeByUserId_1 = tslib_1.__importDefault(require("./SubGradeByUserId"));
|
|
27
|
+
exports.SubGradeByUserId = SubGradeByUserId_1.default;
|
|
28
|
+
const VerifyGradeByUserId_1 = tslib_1.__importDefault(require("./VerifyGradeByUserId"));
|
|
29
|
+
exports.VerifyGradeByUserId = VerifyGradeByUserId_1.default;
|
|
30
|
+
const VerifyGradeUpMaterialByUserId_1 = tslib_1.__importDefault(require("./VerifyGradeUpMaterialByUserId"));
|
|
31
|
+
exports.VerifyGradeUpMaterialByUserId = VerifyGradeUpMaterialByUserId_1.default;
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kFAAkD;AAQ9C,2BARG,0BAAgB,CAQH;AAPpB,0FAA0D;AAQtD,+BARG,8BAAoB,CAQH;AAPxB,8GAA8E;AAQ1E,yCARG,wCAA8B,CAQH;AAPlC,kFAAkD;AAQ9C,2BARG,0BAAgB,CAQH;AAPpB,wFAAwD;AAQpD,8BARG,6BAAmB,CAQH;AAPvB,4GAA4E;AAQxE,wCARG,uCAA6B,CAQH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 AddGradeByUserId from "./AddGradeByUserId";
|
|
17
|
+
import ApplyRankCapByUserId from "./ApplyRankCapByUserId";
|
|
18
|
+
import MultiplyAcquireActionsByUserId from "./MultiplyAcquireActionsByUserId";
|
|
19
|
+
import SubGradeByUserId from "./SubGradeByUserId";
|
|
20
|
+
import VerifyGradeByUserId from "./VerifyGradeByUserId";
|
|
21
|
+
import VerifyGradeUpMaterialByUserId from "./VerifyGradeUpMaterialByUserId";
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
AddGradeByUserId,
|
|
25
|
+
ApplyRankCapByUserId,
|
|
26
|
+
MultiplyAcquireActionsByUserId,
|
|
27
|
+
SubGradeByUserId,
|
|
28
|
+
VerifyGradeByUserId,
|
|
29
|
+
VerifyGradeUpMaterialByUserId,
|
|
30
|
+
}
|
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"}
|