gs2-cdk 1.0.27 → 1.0.29
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/dictionary/ref/EntryModelRef.d.ts +2 -0
- package/dictionary/ref/EntryModelRef.js +4 -0
- package/dictionary/ref/EntryModelRef.js.map +1 -1
- package/dictionary/ref/EntryModelRef.ts +12 -0
- package/dictionary/ref/NamespaceRef.d.ts +2 -0
- package/dictionary/ref/NamespaceRef.js +4 -0
- package/dictionary/ref/NamespaceRef.js.map +1 -1
- package/dictionary/ref/NamespaceRef.ts +12 -0
- package/dictionary/stampSheet/DeleteEntriesByUserId.d.ts +4 -0
- package/dictionary/stampSheet/DeleteEntriesByUserId.js +29 -0
- package/dictionary/stampSheet/DeleteEntriesByUserId.js.map +1 -0
- package/dictionary/stampSheet/DeleteEntriesByUserId.ts +37 -0
- package/dictionary/stampSheet/index.d.ts +2 -1
- package/dictionary/stampSheet/index.js +3 -1
- package/dictionary/stampSheet/index.js.map +1 -1
- package/dictionary/stampSheet/index.ts +2 -0
- package/experience/ref/NamespaceRef.d.ts +4 -0
- package/experience/ref/NamespaceRef.js +8 -0
- package/experience/ref/NamespaceRef.js.map +1 -1
- package/experience/ref/NamespaceRef.ts +32 -0
- package/experience/stampSheet/SubExperienceByUserId.d.ts +4 -0
- package/experience/stampSheet/SubExperienceByUserId.js +31 -0
- package/experience/stampSheet/SubExperienceByUserId.js.map +1 -0
- package/experience/stampSheet/SubExperienceByUserId.ts +41 -0
- package/experience/stampSheet/SubRankCapByUserId.d.ts +4 -0
- package/experience/stampSheet/SubRankCapByUserId.js +31 -0
- package/experience/stampSheet/SubRankCapByUserId.js.map +1 -0
- package/experience/stampSheet/SubRankCapByUserId.ts +41 -0
- package/experience/stampSheet/index.d.ts +3 -1
- package/experience/stampSheet/index.js +5 -1
- package/experience/stampSheet/index.js.map +1 -1
- package/experience/stampSheet/index.ts +4 -0
- package/formation/model/CurrentMasterData.d.ts +3 -3
- package/formation/model/CurrentMasterData.js +4 -4
- package/formation/model/CurrentMasterData.js.map +1 -1
- package/formation/model/CurrentMasterData.ts +6 -6
- package/formation/model/Namespace.d.ts +2 -2
- package/formation/model/Namespace.js +2 -2
- package/formation/model/Namespace.js.map +1 -1
- package/formation/model/Namespace.ts +3 -3
- package/formation/model/PropertyFormModel.d.ts +11 -0
- package/formation/model/PropertyFormModel.js +26 -0
- package/formation/model/PropertyFormModel.js.map +1 -0
- package/formation/model/PropertyFormModel.ts +51 -0
- package/formation/model/index.d.ts +3 -1
- package/formation/model/index.js +3 -1
- package/formation/model/index.js.map +1 -1
- package/formation/model/index.ts +4 -0
- package/formation/model/options/PropertyFormModelOptions.d.ts +3 -0
- package/formation/model/options/PropertyFormModelOptions.js +3 -0
- package/formation/model/options/PropertyFormModelOptions.js.map +1 -0
- package/formation/model/options/PropertyFormModelOptions.ts +21 -0
- package/formation/ref/FormModelRef.d.ts +2 -1
- package/formation/ref/FormModelRef.js +5 -1
- package/formation/ref/FormModelRef.js.map +1 -1
- package/formation/ref/FormModelRef.ts +6 -0
- package/formation/ref/MoldModelRef.d.ts +9 -5
- package/formation/ref/MoldModelRef.js +17 -9
- package/formation/ref/MoldModelRef.js.map +1 -1
- package/formation/ref/MoldModelRef.ts +35 -7
- package/formation/ref/NamespaceRef.d.ts +6 -4
- package/formation/ref/NamespaceRef.js +11 -7
- package/formation/ref/NamespaceRef.js.map +1 -1
- package/formation/ref/NamespaceRef.ts +24 -10
- package/formation/ref/PropertyFormModelRef.d.ts +10 -0
- package/formation/ref/PropertyFormModelRef.js +44 -0
- package/formation/ref/PropertyFormModelRef.js.map +1 -0
- package/formation/ref/PropertyFormModelRef.ts +72 -0
- package/formation/ref/index.d.ts +2 -1
- package/formation/ref/index.js +3 -1
- package/formation/ref/index.js.map +1 -1
- package/formation/ref/index.ts +2 -0
- package/formation/stampSheet/AcquireActionsToPropertyFormProperties.d.ts +1 -1
- package/formation/stampSheet/AcquireActionsToPropertyFormProperties.js +2 -2
- package/formation/stampSheet/AcquireActionsToPropertyFormProperties.js.map +1 -1
- package/formation/stampSheet/AcquireActionsToPropertyFormProperties.ts +2 -2
- package/formation/stampSheet/SubMoldCapacityByUserId.d.ts +4 -0
- package/formation/stampSheet/SubMoldCapacityByUserId.js +30 -0
- package/formation/stampSheet/SubMoldCapacityByUserId.js.map +1 -0
- package/formation/stampSheet/SubMoldCapacityByUserId.ts +39 -0
- package/formation/stampSheet/index.d.ts +2 -1
- package/formation/stampSheet/index.js +3 -1
- package/formation/stampSheet/index.js.map +1 -1
- package/formation/stampSheet/index.ts +2 -0
- package/idle/ref/NamespaceRef.d.ts +2 -0
- package/idle/ref/NamespaceRef.js +4 -0
- package/idle/ref/NamespaceRef.js.map +1 -1
- package/idle/ref/NamespaceRef.ts +14 -0
- package/idle/stampSheet/DecreaseMaximumIdleMinutesByUserId.d.ts +4 -0
- package/idle/stampSheet/DecreaseMaximumIdleMinutesByUserId.js +30 -0
- package/idle/stampSheet/DecreaseMaximumIdleMinutesByUserId.js.map +1 -0
- package/idle/stampSheet/DecreaseMaximumIdleMinutesByUserId.ts +39 -0
- package/idle/stampSheet/index.d.ts +2 -1
- package/idle/stampSheet/index.js +3 -1
- package/idle/stampSheet/index.js.map +1 -1
- package/idle/stampSheet/index.ts +2 -0
- package/inbox/ref/NamespaceRef.d.ts +2 -0
- package/inbox/ref/NamespaceRef.js +4 -0
- package/inbox/ref/NamespaceRef.js.map +1 -1
- package/inbox/ref/NamespaceRef.ts +12 -0
- package/inbox/stampSheet/DeleteMessageByUserId.d.ts +4 -0
- package/inbox/stampSheet/DeleteMessageByUserId.js +29 -0
- package/inbox/stampSheet/DeleteMessageByUserId.js.map +1 -0
- package/inbox/stampSheet/DeleteMessageByUserId.ts +37 -0
- package/inbox/stampSheet/index.d.ts +2 -1
- package/inbox/stampSheet/index.js +3 -1
- package/inbox/stampSheet/index.js.map +1 -1
- package/inbox/stampSheet/index.ts +2 -0
- package/jobQueue/ref/NamespaceRef.d.ts +2 -0
- package/jobQueue/ref/NamespaceRef.js +4 -0
- package/jobQueue/ref/NamespaceRef.js.map +1 -1
- package/jobQueue/ref/NamespaceRef.ts +12 -0
- package/jobQueue/stampSheet/DeleteJobByUserId.d.ts +4 -0
- package/jobQueue/stampSheet/DeleteJobByUserId.js +29 -0
- package/jobQueue/stampSheet/DeleteJobByUserId.js.map +1 -0
- package/jobQueue/stampSheet/DeleteJobByUserId.ts +37 -0
- package/jobQueue/stampSheet/index.d.ts +2 -1
- package/jobQueue/stampSheet/index.js +3 -1
- package/jobQueue/stampSheet/index.js.map +1 -1
- package/jobQueue/stampSheet/index.ts +2 -0
- package/limit/ref/NamespaceRef.d.ts +2 -0
- package/limit/ref/NamespaceRef.js +4 -0
- package/limit/ref/NamespaceRef.js.map +1 -1
- package/limit/ref/NamespaceRef.ts +16 -0
- package/limit/stampSheet/CountDownByUserId.d.ts +4 -0
- package/limit/stampSheet/CountDownByUserId.js +31 -0
- package/limit/stampSheet/CountDownByUserId.js.map +1 -0
- package/limit/stampSheet/CountDownByUserId.ts +41 -0
- package/limit/stampSheet/index.d.ts +2 -1
- package/limit/stampSheet/index.js +3 -1
- package/limit/stampSheet/index.js.map +1 -1
- package/limit/stampSheet/index.ts +2 -0
- package/loginReward/ref/NamespaceRef.d.ts +2 -0
- package/loginReward/ref/NamespaceRef.js +4 -0
- package/loginReward/ref/NamespaceRef.js.map +1 -1
- package/loginReward/ref/NamespaceRef.ts +14 -0
- package/loginReward/stampSheet/UnmarkReceivedByUserId.d.ts +4 -0
- package/loginReward/stampSheet/UnmarkReceivedByUserId.js +30 -0
- package/loginReward/stampSheet/UnmarkReceivedByUserId.js.map +1 -0
- package/loginReward/stampSheet/UnmarkReceivedByUserId.ts +39 -0
- package/loginReward/stampSheet/index.d.ts +2 -1
- package/loginReward/stampSheet/index.js +3 -1
- package/loginReward/stampSheet/index.js.map +1 -1
- package/loginReward/stampSheet/index.ts +2 -0
- package/mission/ref/CounterModelRef.d.ts +2 -0
- package/mission/ref/CounterModelRef.js +4 -0
- package/mission/ref/CounterModelRef.js.map +1 -1
- package/mission/ref/CounterModelRef.ts +13 -0
- package/mission/ref/NamespaceRef.d.ts +4 -0
- package/mission/ref/NamespaceRef.js +8 -0
- package/mission/ref/NamespaceRef.js.map +1 -1
- package/mission/ref/NamespaceRef.ts +28 -0
- package/mission/stampSheet/DecreaseCounterByUserId.d.ts +4 -0
- package/mission/stampSheet/DecreaseCounterByUserId.js +30 -0
- package/mission/stampSheet/DecreaseCounterByUserId.js.map +1 -0
- package/mission/stampSheet/DecreaseCounterByUserId.ts +39 -0
- package/mission/stampSheet/RevertReceiveByUserId.d.ts +4 -0
- package/mission/stampSheet/RevertReceiveByUserId.js +30 -0
- package/mission/stampSheet/RevertReceiveByUserId.js.map +1 -0
- package/mission/stampSheet/RevertReceiveByUserId.ts +39 -0
- package/mission/stampSheet/index.d.ts +3 -1
- package/mission/stampSheet/index.js +5 -1
- package/mission/stampSheet/index.js.map +1 -1
- package/mission/stampSheet/index.ts +4 -0
- package/money/ref/NamespaceRef.d.ts +2 -0
- package/money/ref/NamespaceRef.js +4 -0
- package/money/ref/NamespaceRef.js.map +1 -1
- package/money/ref/NamespaceRef.ts +12 -0
- package/money/stampSheet/RevertRecordReceipt.d.ts +4 -0
- package/money/stampSheet/RevertRecordReceipt.js +29 -0
- package/money/stampSheet/RevertRecordReceipt.js.map +1 -0
- package/money/stampSheet/RevertRecordReceipt.ts +37 -0
- package/money/stampSheet/index.d.ts +2 -1
- package/money/stampSheet/index.js +3 -1
- package/money/stampSheet/index.js.map +1 -1
- package/money/stampSheet/index.ts +2 -0
- package/package.json +1 -1
- package/schedule/ref/NamespaceRef.d.ts +2 -0
- package/schedule/ref/NamespaceRef.js +4 -0
- package/schedule/ref/NamespaceRef.js.map +1 -1
- package/schedule/ref/NamespaceRef.ts +12 -0
- package/schedule/stampSheet/DeleteTriggerByUserId.d.ts +4 -0
- package/schedule/stampSheet/DeleteTriggerByUserId.js +29 -0
- package/schedule/stampSheet/DeleteTriggerByUserId.js.map +1 -0
- package/schedule/stampSheet/DeleteTriggerByUserId.ts +37 -0
- package/schedule/stampSheet/index.d.ts +2 -1
- package/schedule/stampSheet/index.js +3 -1
- package/schedule/stampSheet/index.js.map +1 -1
- package/schedule/stampSheet/index.ts +2 -0
- package/serialKey/ref/NamespaceRef.d.ts +2 -0
- package/serialKey/ref/NamespaceRef.js +4 -0
- package/serialKey/ref/NamespaceRef.js.map +1 -1
- package/serialKey/ref/NamespaceRef.ts +12 -0
- package/serialKey/stampSheet/RevertUseByUserId.d.ts +4 -0
- package/serialKey/stampSheet/RevertUseByUserId.js +29 -0
- package/serialKey/stampSheet/RevertUseByUserId.js.map +1 -0
- package/serialKey/stampSheet/RevertUseByUserId.ts +37 -0
- package/serialKey/stampSheet/index.d.ts +2 -1
- package/serialKey/stampSheet/index.js +3 -1
- package/serialKey/stampSheet/index.js.map +1 -1
- package/serialKey/stampSheet/index.ts +2 -0
- package/showcase/ref/NamespaceRef.d.ts +2 -0
- package/showcase/ref/NamespaceRef.js +4 -0
- package/showcase/ref/NamespaceRef.js.map +1 -1
- package/showcase/ref/NamespaceRef.ts +16 -0
- package/showcase/stampSheet/DecrementPurchaseCountByUserId.d.ts +4 -0
- package/showcase/stampSheet/DecrementPurchaseCountByUserId.js +31 -0
- package/showcase/stampSheet/DecrementPurchaseCountByUserId.js.map +1 -0
- package/showcase/stampSheet/DecrementPurchaseCountByUserId.ts +41 -0
- package/showcase/stampSheet/index.d.ts +2 -1
- package/showcase/stampSheet/index.js +3 -1
- package/showcase/stampSheet/index.js.map +1 -1
- package/showcase/stampSheet/index.ts +2 -0
- package/stamina/ref/NamespaceRef.d.ts +2 -0
- package/stamina/ref/NamespaceRef.js +4 -0
- package/stamina/ref/NamespaceRef.js.map +1 -1
- package/stamina/ref/NamespaceRef.ts +14 -0
- package/stamina/ref/StaminaModelRef.d.ts +2 -0
- package/stamina/ref/StaminaModelRef.js +4 -0
- package/stamina/ref/StaminaModelRef.js.map +1 -1
- package/stamina/ref/StaminaModelRef.ts +13 -0
- package/stamina/stampSheet/DecreaseMaxValueByUserId.d.ts +4 -0
- package/stamina/stampSheet/DecreaseMaxValueByUserId.js +30 -0
- package/stamina/stampSheet/DecreaseMaxValueByUserId.js.map +1 -0
- package/stamina/stampSheet/DecreaseMaxValueByUserId.ts +39 -0
- package/stamina/stampSheet/index.d.ts +2 -1
- package/stamina/stampSheet/index.js +3 -1
- package/stamina/stampSheet/index.js.map +1 -1
- package/stamina/stampSheet/index.ts +2 -0
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class UnmarkReceivedByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, bonusModelName, stepNumber, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["bonusModelName"] = bonusModelName;
|
|
24
|
+
properties["stepNumber"] = stepNumber;
|
|
25
|
+
properties["userId"] = userId;
|
|
26
|
+
super("Gs2LoginReward:UnmarkReceivedByUserId", properties);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.default = UnmarkReceivedByUserId;
|
|
30
|
+
//# sourceMappingURL=UnmarkReceivedByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnmarkReceivedByUserId.js","sourceRoot":"","sources":["UnmarkReceivedByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,sBAAuB,SAAQ,qBAAa;IAE7D,YACI,aAAqB,EACrB,cAAsB,EACtB,UAAkB,EAClB,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,gBAAgB,CAAC,GAAG,cAAc,CAAA;QAC7C,UAAU,CAAC,YAAY,CAAC,GAAG,UAAU,CAAA;QACrC,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,uCAAuC,EACvC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AApBD,yCAoBC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
|
|
19
|
+
export default class UnmarkReceivedByUserId extends AcquireAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
bonusModelName: string,
|
|
24
|
+
stepNumber: number,
|
|
25
|
+
userId: string|null = "#{userId}",
|
|
26
|
+
) {
|
|
27
|
+
let properties: {[name: string]: any} = {};
|
|
28
|
+
|
|
29
|
+
properties["namespaceName"] = namespaceName
|
|
30
|
+
properties["bonusModelName"] = bonusModelName
|
|
31
|
+
properties["stepNumber"] = stepNumber
|
|
32
|
+
properties["userId"] = userId
|
|
33
|
+
|
|
34
|
+
super(
|
|
35
|
+
"Gs2LoginReward:UnmarkReceivedByUserId",
|
|
36
|
+
properties,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import DeleteReceiveStatusByUserId from "./DeleteReceiveStatusByUserId";
|
|
2
|
+
import UnmarkReceivedByUserId from "./UnmarkReceivedByUserId";
|
|
2
3
|
import MarkReceivedByUserId from "./MarkReceivedByUserId";
|
|
3
|
-
export { DeleteReceiveStatusByUserId, MarkReceivedByUserId, };
|
|
4
|
+
export { DeleteReceiveStatusByUserId, UnmarkReceivedByUserId, MarkReceivedByUserId, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarkReceivedByUserId = exports.DeleteReceiveStatusByUserId = void 0;
|
|
3
|
+
exports.MarkReceivedByUserId = exports.UnmarkReceivedByUserId = exports.DeleteReceiveStatusByUserId = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -19,6 +19,8 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
*/
|
|
20
20
|
const DeleteReceiveStatusByUserId_1 = tslib_1.__importDefault(require("./DeleteReceiveStatusByUserId"));
|
|
21
21
|
exports.DeleteReceiveStatusByUserId = DeleteReceiveStatusByUserId_1.default;
|
|
22
|
+
const UnmarkReceivedByUserId_1 = tslib_1.__importDefault(require("./UnmarkReceivedByUserId"));
|
|
23
|
+
exports.UnmarkReceivedByUserId = UnmarkReceivedByUserId_1.default;
|
|
22
24
|
const MarkReceivedByUserId_1 = tslib_1.__importDefault(require("./MarkReceivedByUserId"));
|
|
23
25
|
exports.MarkReceivedByUserId = MarkReceivedByUserId_1.default;
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wGAAwE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wGAAwE;AAKpE,sCALG,qCAA2B,CAKH;AAJ/B,8FAA8D;AAK1D,iCALG,gCAAsB,CAKH;AAJ1B,0FAA0D;AAKtD,+BALG,8BAAoB,CAKH"}
|
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import DeleteReceiveStatusByUserId from "./DeleteReceiveStatusByUserId";
|
|
17
|
+
import UnmarkReceivedByUserId from "./UnmarkReceivedByUserId";
|
|
17
18
|
import MarkReceivedByUserId from "./MarkReceivedByUserId";
|
|
18
19
|
|
|
19
20
|
export {
|
|
20
21
|
DeleteReceiveStatusByUserId,
|
|
22
|
+
UnmarkReceivedByUserId,
|
|
21
23
|
MarkReceivedByUserId,
|
|
22
24
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import IncreaseCounterByUserId from "../stampSheet/IncreaseCounterByUserId";
|
|
2
|
+
import DecreaseCounterByUserId from "../stampSheet/DecreaseCounterByUserId";
|
|
2
3
|
export default class CounterModelRef {
|
|
3
4
|
private readonly namespaceName;
|
|
4
5
|
private readonly counterName;
|
|
5
6
|
constructor(namespaceName: string, counterName: string);
|
|
6
7
|
increaseCounter(value: number, userId?: string | null): IncreaseCounterByUserId;
|
|
8
|
+
decreaseCounter(value: number, userId?: string | null): DecreaseCounterByUserId;
|
|
7
9
|
grn(): string;
|
|
8
10
|
}
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const tslib_1 = require("tslib");
|
|
19
19
|
const func_1 = require("../../core/func");
|
|
20
20
|
const IncreaseCounterByUserId_1 = tslib_1.__importDefault(require("../stampSheet/IncreaseCounterByUserId"));
|
|
21
|
+
const DecreaseCounterByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DecreaseCounterByUserId"));
|
|
21
22
|
class CounterModelRef {
|
|
22
23
|
constructor(namespaceName, counterName) {
|
|
23
24
|
this.namespaceName = namespaceName;
|
|
@@ -26,6 +27,9 @@ class CounterModelRef {
|
|
|
26
27
|
increaseCounter(value, userId = "#{userId}") {
|
|
27
28
|
return new IncreaseCounterByUserId_1.default(this.namespaceName, this.counterName, value, userId);
|
|
28
29
|
}
|
|
30
|
+
decreaseCounter(value, userId = "#{userId}") {
|
|
31
|
+
return new DecreaseCounterByUserId_1.default(this.namespaceName, this.counterName, value, userId);
|
|
32
|
+
}
|
|
29
33
|
grn() {
|
|
30
34
|
return new func_1.Join(":", [
|
|
31
35
|
"grn",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CounterModelRef.js","sourceRoot":"","sources":["CounterModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4GAA4E;AAE5E,MAAqB,eAAe;IAIhC,YACI,aAAqB,EACrB,WAAmB;QAEnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAEM,eAAe,CAClB,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,SAAS;YACT,IAAI,CAAC,aAAa;YAClB,SAAS;YACT,IAAI,CAAC,WAAW;SACnB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"CounterModelRef.js","sourceRoot":"","sources":["CounterModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4GAA4E;AAC5E,4GAA4E;AAE5E,MAAqB,eAAe;IAIhC,YACI,aAAqB,EACrB,WAAmB;QAEnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAEM,eAAe,CAClB,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,SAAS;YACT,IAAI,CAAC,aAAa;YAClB,SAAS;YACT,IAAI,CAAC,WAAW;SACnB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAzDD,kCAyDC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
import IncreaseCounterByUserId from "../stampSheet/IncreaseCounterByUserId";
|
|
19
|
+
import DecreaseCounterByUserId from "../stampSheet/DecreaseCounterByUserId";
|
|
19
20
|
|
|
20
21
|
export default class CounterModelRef {
|
|
21
22
|
private readonly namespaceName: string;
|
|
@@ -41,6 +42,18 @@ export default class CounterModelRef {
|
|
|
41
42
|
);
|
|
42
43
|
}
|
|
43
44
|
|
|
45
|
+
public decreaseCounter(
|
|
46
|
+
value: number,
|
|
47
|
+
userId: string|null = "#{userId}",
|
|
48
|
+
): DecreaseCounterByUserId {
|
|
49
|
+
return new DecreaseCounterByUserId(
|
|
50
|
+
this.namespaceName,
|
|
51
|
+
this.counterName,
|
|
52
|
+
value,
|
|
53
|
+
userId,
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
44
57
|
public grn(
|
|
45
58
|
): string {
|
|
46
59
|
return new Join(
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import MissionGroupModelRef from "./MissionGroupModelRef";
|
|
2
2
|
import CounterModelRef from "./CounterModelRef";
|
|
3
|
+
import RevertReceiveByUserId from "../stampSheet/RevertReceiveByUserId";
|
|
3
4
|
import IncreaseCounterByUserId from "../stampSheet/IncreaseCounterByUserId";
|
|
4
5
|
import ReceiveByUserId from "../stampSheet/ReceiveByUserId";
|
|
6
|
+
import DecreaseCounterByUserId from "../stampSheet/DecreaseCounterByUserId";
|
|
5
7
|
export default class NamespaceRef {
|
|
6
8
|
private readonly namespaceName;
|
|
7
9
|
constructor(namespaceName: string);
|
|
8
10
|
missionGroupModel(missionGroupName: string): MissionGroupModelRef;
|
|
9
11
|
counterModel(counterName: string): CounterModelRef;
|
|
12
|
+
revertReceive(missionGroupName: string, missionTaskName: string, userId?: string | null): RevertReceiveByUserId;
|
|
10
13
|
increaseCounter(counterName: string, value: number, userId?: string | null): IncreaseCounterByUserId;
|
|
11
14
|
receive(missionGroupName: string, missionTaskName: string, userId?: string | null): ReceiveByUserId;
|
|
15
|
+
decreaseCounter(counterName: string, value: number, userId?: string | null): DecreaseCounterByUserId;
|
|
12
16
|
grn(): string;
|
|
13
17
|
}
|
|
@@ -19,8 +19,10 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
const func_1 = require("../../core/func");
|
|
20
20
|
const MissionGroupModelRef_1 = tslib_1.__importDefault(require("./MissionGroupModelRef"));
|
|
21
21
|
const CounterModelRef_1 = tslib_1.__importDefault(require("./CounterModelRef"));
|
|
22
|
+
const RevertReceiveByUserId_1 = tslib_1.__importDefault(require("../stampSheet/RevertReceiveByUserId"));
|
|
22
23
|
const IncreaseCounterByUserId_1 = tslib_1.__importDefault(require("../stampSheet/IncreaseCounterByUserId"));
|
|
23
24
|
const ReceiveByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ReceiveByUserId"));
|
|
25
|
+
const DecreaseCounterByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DecreaseCounterByUserId"));
|
|
24
26
|
class NamespaceRef {
|
|
25
27
|
constructor(namespaceName) {
|
|
26
28
|
this.namespaceName = namespaceName;
|
|
@@ -31,12 +33,18 @@ class NamespaceRef {
|
|
|
31
33
|
counterModel(counterName) {
|
|
32
34
|
return new CounterModelRef_1.default(this.namespaceName, counterName);
|
|
33
35
|
}
|
|
36
|
+
revertReceive(missionGroupName, missionTaskName, userId = "#{userId}") {
|
|
37
|
+
return new RevertReceiveByUserId_1.default(this.namespaceName, missionGroupName, missionTaskName, userId);
|
|
38
|
+
}
|
|
34
39
|
increaseCounter(counterName, value, userId = "#{userId}") {
|
|
35
40
|
return new IncreaseCounterByUserId_1.default(this.namespaceName, counterName, value, userId);
|
|
36
41
|
}
|
|
37
42
|
receive(missionGroupName, missionTaskName, userId = "#{userId}") {
|
|
38
43
|
return new ReceiveByUserId_1.default(this.namespaceName, missionGroupName, missionTaskName, userId);
|
|
39
44
|
}
|
|
45
|
+
decreaseCounter(counterName, value, userId = "#{userId}") {
|
|
46
|
+
return new DecreaseCounterByUserId_1.default(this.namespaceName, counterName, value, userId);
|
|
47
|
+
}
|
|
40
48
|
grn() {
|
|
41
49
|
return new func_1.Join(":", [
|
|
42
50
|
"grn",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0FAA0D;AAC1D,gFAAgD;AAChD,4GAA4E;AAC5E,4FAA4D;
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0FAA0D;AAC1D,gFAAgD;AAChD,wGAAwE;AACxE,4GAA4E;AAC5E,4FAA4D;AAC5D,4GAA4E;AAE5E,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,iBAAiB,CACpB,gBAAwB;QAExB,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,gBAAgB,CACnB,CAAC;IACN,CAAC;IAEM,YAAY,CACf,WAAmB;QAEnB,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,WAAW,CACd,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,gBAAwB,EACxB,eAAuB,EACvB,SAAsB,WAAW;QAEjC,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,gBAAgB,EAChB,eAAe,EACf,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,WAAmB,EACnB,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,OAAO,CACV,gBAAwB,EACxB,eAAuB,EACvB,SAAsB,WAAW;QAEjC,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,gBAAgB,EAChB,eAAe,EACf,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,WAAmB,EACnB,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,SAAS;YACT,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAlGD,+BAkGC"}
|
|
@@ -17,8 +17,10 @@
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
import MissionGroupModelRef from "./MissionGroupModelRef";
|
|
19
19
|
import CounterModelRef from "./CounterModelRef";
|
|
20
|
+
import RevertReceiveByUserId from "../stampSheet/RevertReceiveByUserId";
|
|
20
21
|
import IncreaseCounterByUserId from "../stampSheet/IncreaseCounterByUserId";
|
|
21
22
|
import ReceiveByUserId from "../stampSheet/ReceiveByUserId";
|
|
23
|
+
import DecreaseCounterByUserId from "../stampSheet/DecreaseCounterByUserId";
|
|
22
24
|
|
|
23
25
|
export default class NamespaceRef {
|
|
24
26
|
private readonly namespaceName: string;
|
|
@@ -47,6 +49,19 @@ export default class NamespaceRef {
|
|
|
47
49
|
);
|
|
48
50
|
}
|
|
49
51
|
|
|
52
|
+
public revertReceive(
|
|
53
|
+
missionGroupName: string,
|
|
54
|
+
missionTaskName: string,
|
|
55
|
+
userId: string|null = "#{userId}",
|
|
56
|
+
): RevertReceiveByUserId {
|
|
57
|
+
return new RevertReceiveByUserId(
|
|
58
|
+
this.namespaceName,
|
|
59
|
+
missionGroupName,
|
|
60
|
+
missionTaskName,
|
|
61
|
+
userId,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
50
65
|
public increaseCounter(
|
|
51
66
|
counterName: string,
|
|
52
67
|
value: number,
|
|
@@ -73,6 +88,19 @@ export default class NamespaceRef {
|
|
|
73
88
|
);
|
|
74
89
|
}
|
|
75
90
|
|
|
91
|
+
public decreaseCounter(
|
|
92
|
+
counterName: string,
|
|
93
|
+
value: number,
|
|
94
|
+
userId: string|null = "#{userId}",
|
|
95
|
+
): DecreaseCounterByUserId {
|
|
96
|
+
return new DecreaseCounterByUserId(
|
|
97
|
+
this.namespaceName,
|
|
98
|
+
counterName,
|
|
99
|
+
value,
|
|
100
|
+
userId,
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
76
104
|
public grn(
|
|
77
105
|
): string {
|
|
78
106
|
return new Join(
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class DecreaseCounterByUserId extends model_1.ConsumeAction {
|
|
20
|
+
constructor(namespaceName, counterName, value, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["counterName"] = counterName;
|
|
24
|
+
properties["value"] = value;
|
|
25
|
+
properties["userId"] = userId;
|
|
26
|
+
super("Gs2Mission:DecreaseCounterByUserId", properties);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.default = DecreaseCounterByUserId;
|
|
30
|
+
//# sourceMappingURL=DecreaseCounterByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DecreaseCounterByUserId.js","sourceRoot":"","sources":["DecreaseCounterByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,uBAAwB,SAAQ,qBAAa;IAE9D,YACI,aAAqB,EACrB,WAAmB,EACnB,KAAa,EACb,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,aAAa,CAAC,GAAG,WAAW,CAAA;QACvC,UAAU,CAAC,OAAO,CAAC,GAAG,KAAK,CAAA;QAC3B,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,oCAAoC,EACpC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AApBD,0CAoBC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
|
|
19
|
+
export default class DecreaseCounterByUserId extends ConsumeAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
counterName: string,
|
|
24
|
+
value: number,
|
|
25
|
+
userId: string|null = "#{userId}",
|
|
26
|
+
) {
|
|
27
|
+
let properties: {[name: string]: any} = {};
|
|
28
|
+
|
|
29
|
+
properties["namespaceName"] = namespaceName
|
|
30
|
+
properties["counterName"] = counterName
|
|
31
|
+
properties["value"] = value
|
|
32
|
+
properties["userId"] = userId
|
|
33
|
+
|
|
34
|
+
super(
|
|
35
|
+
"Gs2Mission:DecreaseCounterByUserId",
|
|
36
|
+
properties,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class RevertReceiveByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, missionGroupName, missionTaskName, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["missionGroupName"] = missionGroupName;
|
|
24
|
+
properties["missionTaskName"] = missionTaskName;
|
|
25
|
+
properties["userId"] = userId;
|
|
26
|
+
super("Gs2Mission:RevertReceiveByUserId", properties);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.default = RevertReceiveByUserId;
|
|
30
|
+
//# sourceMappingURL=RevertReceiveByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RevertReceiveByUserId.js","sourceRoot":"","sources":["RevertReceiveByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,qBAAsB,SAAQ,qBAAa;IAE5D,YACI,aAAqB,EACrB,gBAAwB,EACxB,eAAuB,EACvB,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,kBAAkB,CAAC,GAAG,gBAAgB,CAAA;QACjD,UAAU,CAAC,iBAAiB,CAAC,GAAG,eAAe,CAAA;QAC/C,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,kCAAkC,EAClC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AApBD,wCAoBC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
|
|
19
|
+
export default class RevertReceiveByUserId extends AcquireAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
missionGroupName: string,
|
|
24
|
+
missionTaskName: string,
|
|
25
|
+
userId: string|null = "#{userId}",
|
|
26
|
+
) {
|
|
27
|
+
let properties: {[name: string]: any} = {};
|
|
28
|
+
|
|
29
|
+
properties["namespaceName"] = namespaceName
|
|
30
|
+
properties["missionGroupName"] = missionGroupName
|
|
31
|
+
properties["missionTaskName"] = missionTaskName
|
|
32
|
+
properties["userId"] = userId
|
|
33
|
+
|
|
34
|
+
super(
|
|
35
|
+
"Gs2Mission:RevertReceiveByUserId",
|
|
36
|
+
properties,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import RevertReceiveByUserId from "./RevertReceiveByUserId";
|
|
1
2
|
import IncreaseCounterByUserId from "./IncreaseCounterByUserId";
|
|
2
3
|
import ReceiveByUserId from "./ReceiveByUserId";
|
|
3
|
-
|
|
4
|
+
import DecreaseCounterByUserId from "./DecreaseCounterByUserId";
|
|
5
|
+
export { RevertReceiveByUserId, IncreaseCounterByUserId, ReceiveByUserId, DecreaseCounterByUserId, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReceiveByUserId = exports.IncreaseCounterByUserId = void 0;
|
|
3
|
+
exports.DecreaseCounterByUserId = exports.ReceiveByUserId = exports.IncreaseCounterByUserId = exports.RevertReceiveByUserId = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -17,8 +17,12 @@ const tslib_1 = require("tslib");
|
|
|
17
17
|
* express or implied. See the License for the specific language governing
|
|
18
18
|
* permissions and limitations under the License.
|
|
19
19
|
*/
|
|
20
|
+
const RevertReceiveByUserId_1 = tslib_1.__importDefault(require("./RevertReceiveByUserId"));
|
|
21
|
+
exports.RevertReceiveByUserId = RevertReceiveByUserId_1.default;
|
|
20
22
|
const IncreaseCounterByUserId_1 = tslib_1.__importDefault(require("./IncreaseCounterByUserId"));
|
|
21
23
|
exports.IncreaseCounterByUserId = IncreaseCounterByUserId_1.default;
|
|
22
24
|
const ReceiveByUserId_1 = tslib_1.__importDefault(require("./ReceiveByUserId"));
|
|
23
25
|
exports.ReceiveByUserId = ReceiveByUserId_1.default;
|
|
26
|
+
const DecreaseCounterByUserId_1 = tslib_1.__importDefault(require("./DecreaseCounterByUserId"));
|
|
27
|
+
exports.DecreaseCounterByUserId = DecreaseCounterByUserId_1.default;
|
|
24
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gGAAgE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4FAA4D;AAMxD,gCANG,+BAAqB,CAMH;AALzB,gGAAgE;AAM5D,kCANG,iCAAuB,CAMH;AAL3B,gFAAgD;AAM5C,0BANG,yBAAe,CAMH;AALnB,gGAAgE;AAM5D,kCANG,iCAAuB,CAMH"}
|
|
@@ -13,10 +13,14 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import RevertReceiveByUserId from "./RevertReceiveByUserId";
|
|
16
17
|
import IncreaseCounterByUserId from "./IncreaseCounterByUserId";
|
|
17
18
|
import ReceiveByUserId from "./ReceiveByUserId";
|
|
19
|
+
import DecreaseCounterByUserId from "./DecreaseCounterByUserId";
|
|
18
20
|
|
|
19
21
|
export {
|
|
22
|
+
RevertReceiveByUserId,
|
|
20
23
|
IncreaseCounterByUserId,
|
|
21
24
|
ReceiveByUserId,
|
|
25
|
+
DecreaseCounterByUserId,
|
|
22
26
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import DepositByUserId from "../stampSheet/DepositByUserId";
|
|
2
|
+
import RevertRecordReceipt from "../stampSheet/RevertRecordReceipt";
|
|
2
3
|
import WithdrawByUserId from "../stampSheet/WithdrawByUserId";
|
|
3
4
|
import RecordReceipt from "../stampSheet/RecordReceipt";
|
|
4
5
|
export default class NamespaceRef {
|
|
5
6
|
private readonly namespaceName;
|
|
6
7
|
constructor(namespaceName: string);
|
|
7
8
|
deposit(slot: number, price: number, count: number, userId?: string | null): DepositByUserId;
|
|
9
|
+
revertRecordReceipt(receipt: string, userId?: string | null): RevertRecordReceipt;
|
|
8
10
|
withdraw(slot: number, count: number, paidOnly: boolean, userId?: string | null): WithdrawByUserId;
|
|
9
11
|
recordReceipt(contentsId: string, receipt: string, userId?: string | null): RecordReceipt;
|
|
10
12
|
grn(): string;
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const tslib_1 = require("tslib");
|
|
19
19
|
const func_1 = require("../../core/func");
|
|
20
20
|
const DepositByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DepositByUserId"));
|
|
21
|
+
const RevertRecordReceipt_1 = tslib_1.__importDefault(require("../stampSheet/RevertRecordReceipt"));
|
|
21
22
|
const WithdrawByUserId_1 = tslib_1.__importDefault(require("../stampSheet/WithdrawByUserId"));
|
|
22
23
|
const RecordReceipt_1 = tslib_1.__importDefault(require("../stampSheet/RecordReceipt"));
|
|
23
24
|
class NamespaceRef {
|
|
@@ -27,6 +28,9 @@ class NamespaceRef {
|
|
|
27
28
|
deposit(slot, price, count, userId = "#{userId}") {
|
|
28
29
|
return new DepositByUserId_1.default(this.namespaceName, slot, price, count, userId);
|
|
29
30
|
}
|
|
31
|
+
revertRecordReceipt(receipt, userId = "#{userId}") {
|
|
32
|
+
return new RevertRecordReceipt_1.default(this.namespaceName, receipt, userId);
|
|
33
|
+
}
|
|
30
34
|
withdraw(slot, count, paidOnly, userId = "#{userId}") {
|
|
31
35
|
return new WithdrawByUserId_1.default(this.namespaceName, slot, count, paidOnly, userId);
|
|
32
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4FAA4D;AAC5D,8FAA8D;AAC9D,wFAAwD;AAExD,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,OAAO,CACV,IAAY,EACZ,KAAa,EACb,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,KAAK,EACL,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,QAAQ,CACX,IAAY,EACZ,KAAa,EACb,QAAiB,EACjB,SAAsB,WAAW;QAEjC,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,UAAkB,EAClB,OAAe,EACf,SAAsB,WAAW;QAEjC,OAAO,IAAI,uBAAa,CACpB,IAAI,CAAC,aAAa,EAClB,UAAU,EACV,OAAO,EACP,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,OAAO;YACP,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4FAA4D;AAC5D,oGAAoE;AACpE,8FAA8D;AAC9D,wFAAwD;AAExD,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,OAAO,CACV,IAAY,EACZ,KAAa,EACb,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,KAAK,EACL,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,mBAAmB,CACtB,OAAe,EACf,SAAsB,WAAW;QAEjC,OAAO,IAAI,6BAAmB,CAC1B,IAAI,CAAC,aAAa,EAClB,OAAO,EACP,MAAM,CACT,CAAC;IACN,CAAC;IAEM,QAAQ,CACX,IAAY,EACZ,KAAa,EACb,QAAiB,EACjB,SAAsB,WAAW;QAEjC,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,UAAkB,EAClB,OAAe,EACf,SAAsB,WAAW;QAEjC,OAAO,IAAI,uBAAa,CACpB,IAAI,CAAC,aAAa,EAClB,UAAU,EACV,OAAO,EACP,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,OAAO;YACP,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAlFD,+BAkFC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
import DepositByUserId from "../stampSheet/DepositByUserId";
|
|
19
|
+
import RevertRecordReceipt from "../stampSheet/RevertRecordReceipt";
|
|
19
20
|
import WithdrawByUserId from "../stampSheet/WithdrawByUserId";
|
|
20
21
|
import RecordReceipt from "../stampSheet/RecordReceipt";
|
|
21
22
|
|
|
@@ -43,6 +44,17 @@ export default class NamespaceRef {
|
|
|
43
44
|
);
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
public revertRecordReceipt(
|
|
48
|
+
receipt: string,
|
|
49
|
+
userId: string|null = "#{userId}",
|
|
50
|
+
): RevertRecordReceipt {
|
|
51
|
+
return new RevertRecordReceipt(
|
|
52
|
+
this.namespaceName,
|
|
53
|
+
receipt,
|
|
54
|
+
userId,
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
46
58
|
public withdraw(
|
|
47
59
|
slot: number,
|
|
48
60
|
count: number,
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class RevertRecordReceipt extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, receipt, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["receipt"] = receipt;
|
|
24
|
+
properties["userId"] = userId;
|
|
25
|
+
super("Gs2Money:RevertRecordReceipt", properties);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.default = RevertRecordReceipt;
|
|
29
|
+
//# sourceMappingURL=RevertRecordReceipt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RevertRecordReceipt.js","sourceRoot":"","sources":["RevertRecordReceipt.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,mBAAoB,SAAQ,qBAAa;IAE1D,YACI,aAAqB,EACrB,OAAe,EACf,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,SAAS,CAAC,GAAG,OAAO,CAAA;QAC/B,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,8BAA8B,EAC9B,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAlBD,sCAkBC"}
|