gs2-cdk 1.0.26 → 1.0.28
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/ref/MoldModelRef.d.ts +2 -0
- package/formation/ref/MoldModelRef.js +4 -0
- package/formation/ref/MoldModelRef.js.map +1 -1
- package/formation/ref/MoldModelRef.ts +13 -0
- package/formation/ref/NamespaceRef.d.ts +2 -0
- package/formation/ref/NamespaceRef.js +4 -0
- package/formation/ref/NamespaceRef.js.map +1 -1
- package/formation/ref/NamespaceRef.ts +14 -0
- 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 +4 -0
- package/schedule/ref/NamespaceRef.js +9 -0
- package/schedule/ref/NamespaceRef.js.map +1 -1
- package/schedule/ref/NamespaceRef.ts +28 -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/TriggerByUserId.d.ts +4 -0
- package/schedule/stampSheet/TriggerByUserId.js +31 -0
- package/schedule/stampSheet/TriggerByUserId.js.map +1 -0
- package/schedule/stampSheet/TriggerByUserId.ts +41 -0
- package/schedule/stampSheet/index.d.ts +3 -1
- package/schedule/stampSheet/index.js +7 -1
- package/schedule/stampSheet/index.js.map +1 -1
- package/schedule/stampSheet/index.ts +4 -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
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
import PushByUserId from "../stampSheet/PushByUserId";
|
|
19
19
|
import JobEntry from "../model/JobEntry";
|
|
20
|
+
import DeleteJobByUserId from "../stampSheet/DeleteJobByUserId";
|
|
20
21
|
|
|
21
22
|
export default class NamespaceRef {
|
|
22
23
|
private readonly namespaceName: string;
|
|
@@ -38,6 +39,17 @@ export default class NamespaceRef {
|
|
|
38
39
|
);
|
|
39
40
|
}
|
|
40
41
|
|
|
42
|
+
public deleteJob(
|
|
43
|
+
jobName: string,
|
|
44
|
+
userId: string|null = "#{userId}",
|
|
45
|
+
): DeleteJobByUserId {
|
|
46
|
+
return new DeleteJobByUserId(
|
|
47
|
+
this.namespaceName,
|
|
48
|
+
jobName,
|
|
49
|
+
userId,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
41
53
|
public grn(
|
|
42
54
|
): string {
|
|
43
55
|
return new Join(
|
|
@@ -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 DeleteJobByUserId extends model_1.ConsumeAction {
|
|
20
|
+
constructor(namespaceName, jobName = null, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["jobName"] = jobName;
|
|
24
|
+
properties["userId"] = userId;
|
|
25
|
+
super("Gs2JobQueue:DeleteJobByUserId", properties);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.default = DeleteJobByUserId;
|
|
29
|
+
//# sourceMappingURL=DeleteJobByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteJobByUserId.js","sourceRoot":"","sources":["DeleteJobByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,iBAAkB,SAAQ,qBAAa;IAExD,YACI,aAAqB,EACrB,UAAuB,IAAI,EAC3B,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,+BAA+B,EAC/B,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAlBD,oCAkBC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 DeleteJobByUserId extends ConsumeAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
jobName: string|null = null,
|
|
24
|
+
userId: string|null = "#{userId}",
|
|
25
|
+
) {
|
|
26
|
+
let properties: {[name: string]: any} = {};
|
|
27
|
+
|
|
28
|
+
properties["namespaceName"] = namespaceName
|
|
29
|
+
properties["jobName"] = jobName
|
|
30
|
+
properties["userId"] = userId
|
|
31
|
+
|
|
32
|
+
super(
|
|
33
|
+
"Gs2JobQueue:DeleteJobByUserId",
|
|
34
|
+
properties,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PushByUserId = void 0;
|
|
3
|
+
exports.DeleteJobByUserId = exports.PushByUserId = 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,4 +19,6 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
*/
|
|
20
20
|
const PushByUserId_1 = tslib_1.__importDefault(require("./PushByUserId"));
|
|
21
21
|
exports.PushByUserId = PushByUserId_1.default;
|
|
22
|
+
const DeleteJobByUserId_1 = tslib_1.__importDefault(require("./DeleteJobByUserId"));
|
|
23
|
+
exports.DeleteJobByUserId = DeleteJobByUserId_1.default;
|
|
22
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAItC,uBAJG,sBAAY,CAIH;AAHhB,oFAAoD;AAIhD,4BAJG,2BAAiB,CAIH"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import LimitModelRef from "./LimitModelRef";
|
|
2
|
+
import CountDownByUserId from "../stampSheet/CountDownByUserId";
|
|
2
3
|
import DeleteCounterByUserId from "../stampSheet/DeleteCounterByUserId";
|
|
3
4
|
import CountUpByUserId from "../stampSheet/CountUpByUserId";
|
|
4
5
|
export default class NamespaceRef {
|
|
5
6
|
private readonly namespaceName;
|
|
6
7
|
constructor(namespaceName: string);
|
|
7
8
|
limitModel(limitName: string): LimitModelRef;
|
|
9
|
+
countDown(limitName: string, counterName: string, countDownValue: number, userId?: string | null): CountDownByUserId;
|
|
8
10
|
deleteCounter(limitName: string, counterName: string, userId?: string | null): DeleteCounterByUserId;
|
|
9
11
|
countUp(limitName: string, counterName: string, countUpValue: number, maxValue?: number | null, userId?: string | null): CountUpByUserId;
|
|
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 LimitModelRef_1 = tslib_1.__importDefault(require("./LimitModelRef"));
|
|
21
|
+
const CountDownByUserId_1 = tslib_1.__importDefault(require("../stampSheet/CountDownByUserId"));
|
|
21
22
|
const DeleteCounterByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DeleteCounterByUserId"));
|
|
22
23
|
const CountUpByUserId_1 = tslib_1.__importDefault(require("../stampSheet/CountUpByUserId"));
|
|
23
24
|
class NamespaceRef {
|
|
@@ -27,6 +28,9 @@ class NamespaceRef {
|
|
|
27
28
|
limitModel(limitName) {
|
|
28
29
|
return new LimitModelRef_1.default(this.namespaceName, limitName);
|
|
29
30
|
}
|
|
31
|
+
countDown(limitName, counterName, countDownValue, userId = "#{userId}") {
|
|
32
|
+
return new CountDownByUserId_1.default(this.namespaceName, limitName, counterName, countDownValue, userId);
|
|
33
|
+
}
|
|
30
34
|
deleteCounter(limitName, counterName, userId = "#{userId}") {
|
|
31
35
|
return new DeleteCounterByUserId_1.default(this.namespaceName, limitName, counterName, userId);
|
|
32
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4EAA4C;AAC5C,wGAAwE;AACxE,4FAA4D;AAE5D,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,UAAU,CACb,SAAiB;QAEjB,OAAO,IAAI,uBAAa,CACpB,IAAI,CAAC,aAAa,EAClB,SAAS,CACZ,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,SAAiB,EACjB,WAAmB,EACnB,SAAsB,WAAW;QAEjC,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,WAAW,EACX,MAAM,CACT,CAAC;IACN,CAAC;IAEM,OAAO,CACV,SAAiB,EACjB,WAAmB,EACnB,YAAoB,EACpB,WAAwB,IAAI,EAC5B,SAAsB,WAAW;QAEjC,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,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,4EAA4C;AAC5C,gGAAgE;AAChE,wGAAwE;AACxE,4FAA4D;AAE5D,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,UAAU,CACb,SAAiB;QAEjB,OAAO,IAAI,uBAAa,CACpB,IAAI,CAAC,aAAa,EAClB,SAAS,CACZ,CAAC;IACN,CAAC;IAEM,SAAS,CACZ,SAAiB,EACjB,WAAmB,EACnB,cAAsB,EACtB,SAAsB,WAAW;QAEjC,OAAO,IAAI,2BAAiB,CACxB,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,WAAW,EACX,cAAc,EACd,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,SAAiB,EACjB,WAAmB,EACnB,SAAsB,WAAW;QAEjC,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,WAAW,EACX,MAAM,CACT,CAAC;IACN,CAAC;IAEM,OAAO,CACV,SAAiB,EACjB,WAAmB,EACnB,YAAoB,EACpB,WAAwB,IAAI,EAC5B,SAAsB,WAAW;QAEjC,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,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 LimitModelRef from "./LimitModelRef";
|
|
19
|
+
import CountDownByUserId from "../stampSheet/CountDownByUserId";
|
|
19
20
|
import DeleteCounterByUserId from "../stampSheet/DeleteCounterByUserId";
|
|
20
21
|
import CountUpByUserId from "../stampSheet/CountUpByUserId";
|
|
21
22
|
|
|
@@ -37,6 +38,21 @@ export default class NamespaceRef {
|
|
|
37
38
|
);
|
|
38
39
|
}
|
|
39
40
|
|
|
41
|
+
public countDown(
|
|
42
|
+
limitName: string,
|
|
43
|
+
counterName: string,
|
|
44
|
+
countDownValue: number,
|
|
45
|
+
userId: string|null = "#{userId}",
|
|
46
|
+
): CountDownByUserId {
|
|
47
|
+
return new CountDownByUserId(
|
|
48
|
+
this.namespaceName,
|
|
49
|
+
limitName,
|
|
50
|
+
counterName,
|
|
51
|
+
countDownValue,
|
|
52
|
+
userId,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
40
56
|
public deleteCounter(
|
|
41
57
|
limitName: string,
|
|
42
58
|
counterName: string,
|
|
@@ -0,0 +1,31 @@
|
|
|
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 CountDownByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, limitName, counterName, countDownValue = null, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["limitName"] = limitName;
|
|
24
|
+
properties["counterName"] = counterName;
|
|
25
|
+
properties["countDownValue"] = countDownValue;
|
|
26
|
+
properties["userId"] = userId;
|
|
27
|
+
super("Gs2Limit:CountDownByUserId", properties);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.default = CountDownByUserId;
|
|
31
|
+
//# sourceMappingURL=CountDownByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CountDownByUserId.js","sourceRoot":"","sources":["CountDownByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,iBAAkB,SAAQ,qBAAa;IAExD,YACI,aAAqB,EACrB,SAAiB,EACjB,WAAmB,EACnB,iBAA8B,IAAI,EAClC,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,WAAW,CAAC,GAAG,SAAS,CAAA;QACnC,UAAU,CAAC,aAAa,CAAC,GAAG,WAAW,CAAA;QACvC,UAAU,CAAC,gBAAgB,CAAC,GAAG,cAAc,CAAA;QAC7C,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,4BAA4B,EAC5B,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAtBD,oCAsBC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 CountDownByUserId extends AcquireAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
limitName: string,
|
|
24
|
+
counterName: string,
|
|
25
|
+
countDownValue: number|null = null,
|
|
26
|
+
userId: string|null = "#{userId}",
|
|
27
|
+
) {
|
|
28
|
+
let properties: {[name: string]: any} = {};
|
|
29
|
+
|
|
30
|
+
properties["namespaceName"] = namespaceName
|
|
31
|
+
properties["limitName"] = limitName
|
|
32
|
+
properties["counterName"] = counterName
|
|
33
|
+
properties["countDownValue"] = countDownValue
|
|
34
|
+
properties["userId"] = userId
|
|
35
|
+
|
|
36
|
+
super(
|
|
37
|
+
"Gs2Limit:CountDownByUserId",
|
|
38
|
+
properties,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import CountDownByUserId from "./CountDownByUserId";
|
|
1
2
|
import DeleteCounterByUserId from "./DeleteCounterByUserId";
|
|
2
3
|
import CountUpByUserId from "./CountUpByUserId";
|
|
3
|
-
export { DeleteCounterByUserId, CountUpByUserId, };
|
|
4
|
+
export { CountDownByUserId, DeleteCounterByUserId, CountUpByUserId, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CountUpByUserId = exports.DeleteCounterByUserId = void 0;
|
|
3
|
+
exports.CountUpByUserId = exports.DeleteCounterByUserId = exports.CountDownByUserId = 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,6 +17,8 @@ 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 CountDownByUserId_1 = tslib_1.__importDefault(require("./CountDownByUserId"));
|
|
21
|
+
exports.CountDownByUserId = CountDownByUserId_1.default;
|
|
20
22
|
const DeleteCounterByUserId_1 = tslib_1.__importDefault(require("./DeleteCounterByUserId"));
|
|
21
23
|
exports.DeleteCounterByUserId = DeleteCounterByUserId_1.default;
|
|
22
24
|
const CountUpByUserId_1 = tslib_1.__importDefault(require("./CountUpByUserId"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4FAA4D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oFAAoD;AAKhD,4BALG,2BAAiB,CAKH;AAJrB,4FAA4D;AAKxD,gCALG,+BAAqB,CAKH;AAJzB,gFAAgD;AAK5C,0BALG,yBAAe,CAKH"}
|
|
@@ -13,10 +13,12 @@
|
|
|
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 CountDownByUserId from "./CountDownByUserId";
|
|
16
17
|
import DeleteCounterByUserId from "./DeleteCounterByUserId";
|
|
17
18
|
import CountUpByUserId from "./CountUpByUserId";
|
|
18
19
|
|
|
19
20
|
export {
|
|
21
|
+
CountDownByUserId,
|
|
20
22
|
DeleteCounterByUserId,
|
|
21
23
|
CountUpByUserId,
|
|
22
24
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import BonusModelRef from "./BonusModelRef";
|
|
2
2
|
import DeleteReceiveStatusByUserId from "../stampSheet/DeleteReceiveStatusByUserId";
|
|
3
|
+
import UnmarkReceivedByUserId from "../stampSheet/UnmarkReceivedByUserId";
|
|
3
4
|
import MarkReceivedByUserId from "../stampSheet/MarkReceivedByUserId";
|
|
4
5
|
export default class NamespaceRef {
|
|
5
6
|
private readonly namespaceName;
|
|
6
7
|
constructor(namespaceName: string);
|
|
7
8
|
bonusModel(bonusModelName: string): BonusModelRef;
|
|
8
9
|
deleteReceiveStatus(bonusModelName: string, userId?: string | null): DeleteReceiveStatusByUserId;
|
|
10
|
+
unmarkReceived(bonusModelName: string, stepNumber: number, userId?: string | null): UnmarkReceivedByUserId;
|
|
9
11
|
markReceived(bonusModelName: string, stepNumber: number, userId?: string | null): MarkReceivedByUserId;
|
|
10
12
|
grn(): string;
|
|
11
13
|
}
|
|
@@ -19,6 +19,7 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
const func_1 = require("../../core/func");
|
|
20
20
|
const BonusModelRef_1 = tslib_1.__importDefault(require("./BonusModelRef"));
|
|
21
21
|
const DeleteReceiveStatusByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DeleteReceiveStatusByUserId"));
|
|
22
|
+
const UnmarkReceivedByUserId_1 = tslib_1.__importDefault(require("../stampSheet/UnmarkReceivedByUserId"));
|
|
22
23
|
const MarkReceivedByUserId_1 = tslib_1.__importDefault(require("../stampSheet/MarkReceivedByUserId"));
|
|
23
24
|
class NamespaceRef {
|
|
24
25
|
constructor(namespaceName) {
|
|
@@ -30,6 +31,9 @@ class NamespaceRef {
|
|
|
30
31
|
deleteReceiveStatus(bonusModelName, userId = "#{userId}") {
|
|
31
32
|
return new DeleteReceiveStatusByUserId_1.default(this.namespaceName, bonusModelName, userId);
|
|
32
33
|
}
|
|
34
|
+
unmarkReceived(bonusModelName, stepNumber, userId = "#{userId}") {
|
|
35
|
+
return new UnmarkReceivedByUserId_1.default(this.namespaceName, bonusModelName, stepNumber, userId);
|
|
36
|
+
}
|
|
33
37
|
markReceived(bonusModelName, stepNumber, userId = "#{userId}") {
|
|
34
38
|
return new MarkReceivedByUserId_1.default(this.namespaceName, bonusModelName, stepNumber, userId);
|
|
35
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4EAA4C;AAC5C,oHAAoF;AACpF,sGAAsE;AAEtE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,UAAU,CACb,cAAsB;QAEtB,OAAO,IAAI,uBAAa,CACpB,IAAI,CAAC,aAAa,EAClB,cAAc,CACjB,CAAC;IACN,CAAC;IAEM,mBAAmB,CACtB,cAAsB,EACtB,SAAsB,WAAW;QAEjC,OAAO,IAAI,qCAA2B,CAClC,IAAI,CAAC,aAAa,EAClB,cAAc,EACd,MAAM,CACT,CAAC;IACN,CAAC;IAEM,YAAY,CACf,cAAsB,EACtB,UAAkB,EAClB,SAAsB,WAAW;QAEjC,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,cAAc,EACd,UAAU,EACV,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,aAAa;YACb,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,4EAA4C;AAC5C,oHAAoF;AACpF,0GAA0E;AAC1E,sGAAsE;AAEtE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,UAAU,CACb,cAAsB;QAEtB,OAAO,IAAI,uBAAa,CACpB,IAAI,CAAC,aAAa,EAClB,cAAc,CACjB,CAAC;IACN,CAAC;IAEM,mBAAmB,CACtB,cAAsB,EACtB,SAAsB,WAAW;QAEjC,OAAO,IAAI,qCAA2B,CAClC,IAAI,CAAC,aAAa,EAClB,cAAc,EACd,MAAM,CACT,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,cAAsB,EACtB,UAAkB,EAClB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,cAAc,EACd,UAAU,EACV,MAAM,CACT,CAAC;IACN,CAAC;IAEM,YAAY,CACf,cAAsB,EACtB,UAAkB,EAClB,SAAsB,WAAW;QAEjC,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,cAAc,EACd,UAAU,EACV,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,aAAa;YACb,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA1ED,+BA0EC"}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
import BonusModelRef from "./BonusModelRef";
|
|
19
19
|
import DeleteReceiveStatusByUserId from "../stampSheet/DeleteReceiveStatusByUserId";
|
|
20
|
+
import UnmarkReceivedByUserId from "../stampSheet/UnmarkReceivedByUserId";
|
|
20
21
|
import MarkReceivedByUserId from "../stampSheet/MarkReceivedByUserId";
|
|
21
22
|
|
|
22
23
|
export default class NamespaceRef {
|
|
@@ -48,6 +49,19 @@ export default class NamespaceRef {
|
|
|
48
49
|
);
|
|
49
50
|
}
|
|
50
51
|
|
|
52
|
+
public unmarkReceived(
|
|
53
|
+
bonusModelName: string,
|
|
54
|
+
stepNumber: number,
|
|
55
|
+
userId: string|null = "#{userId}",
|
|
56
|
+
): UnmarkReceivedByUserId {
|
|
57
|
+
return new UnmarkReceivedByUserId(
|
|
58
|
+
this.namespaceName,
|
|
59
|
+
bonusModelName,
|
|
60
|
+
stepNumber,
|
|
61
|
+
userId,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
51
65
|
public markReceived(
|
|
52
66
|
bonusModelName: string,
|
|
53
67
|
stepNumber: number,
|
|
@@ -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
|
}
|