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
|
@@ -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"}
|
|
@@ -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 RevertRecordReceipt extends AcquireAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
receipt: string,
|
|
24
|
+
userId: string|null = "#{userId}",
|
|
25
|
+
) {
|
|
26
|
+
let properties: {[name: string]: any} = {};
|
|
27
|
+
|
|
28
|
+
properties["namespaceName"] = namespaceName
|
|
29
|
+
properties["receipt"] = receipt
|
|
30
|
+
properties["userId"] = userId
|
|
31
|
+
|
|
32
|
+
super(
|
|
33
|
+
"Gs2Money:RevertRecordReceipt",
|
|
34
|
+
properties,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import DepositByUserId from "./DepositByUserId";
|
|
2
|
+
import RevertRecordReceipt from "./RevertRecordReceipt";
|
|
2
3
|
import WithdrawByUserId from "./WithdrawByUserId";
|
|
3
4
|
import RecordReceipt from "./RecordReceipt";
|
|
4
|
-
export { DepositByUserId, WithdrawByUserId, RecordReceipt, };
|
|
5
|
+
export { DepositByUserId, RevertRecordReceipt, WithdrawByUserId, RecordReceipt, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RecordReceipt = exports.WithdrawByUserId = exports.DepositByUserId = void 0;
|
|
3
|
+
exports.RecordReceipt = exports.WithdrawByUserId = exports.RevertRecordReceipt = exports.DepositByUserId = 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 DepositByUserId_1 = tslib_1.__importDefault(require("./DepositByUserId"));
|
|
21
21
|
exports.DepositByUserId = DepositByUserId_1.default;
|
|
22
|
+
const RevertRecordReceipt_1 = tslib_1.__importDefault(require("./RevertRecordReceipt"));
|
|
23
|
+
exports.RevertRecordReceipt = RevertRecordReceipt_1.default;
|
|
22
24
|
const WithdrawByUserId_1 = tslib_1.__importDefault(require("./WithdrawByUserId"));
|
|
23
25
|
exports.WithdrawByUserId = WithdrawByUserId_1.default;
|
|
24
26
|
const RecordReceipt_1 = tslib_1.__importDefault(require("./RecordReceipt"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gFAAgD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gFAAgD;AAM5C,0BANG,yBAAe,CAMH;AALnB,wFAAwD;AAMpD,8BANG,6BAAmB,CAMH;AALvB,kFAAkD;AAM9C,2BANG,0BAAgB,CAMH;AALpB,4EAA4C;AAMxC,wBANG,uBAAa,CAMH"}
|
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import DepositByUserId from "./DepositByUserId";
|
|
17
|
+
import RevertRecordReceipt from "./RevertRecordReceipt";
|
|
17
18
|
import WithdrawByUserId from "./WithdrawByUserId";
|
|
18
19
|
import RecordReceipt from "./RecordReceipt";
|
|
19
20
|
|
|
20
21
|
export {
|
|
21
22
|
DepositByUserId,
|
|
23
|
+
RevertRecordReceipt,
|
|
22
24
|
WithdrawByUserId,
|
|
23
25
|
RecordReceipt,
|
|
24
26
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import TriggerByUserId from "../stampSheet/TriggerByUserId";
|
|
2
|
+
import DeleteTriggerByUserId from "../stampSheet/DeleteTriggerByUserId";
|
|
1
3
|
export default class NamespaceRef {
|
|
2
4
|
private readonly namespaceName;
|
|
3
5
|
constructor(namespaceName: string);
|
|
6
|
+
trigger(triggerName: string, triggerStrategy: string, ttl: number, userId?: string | null): TriggerByUserId;
|
|
7
|
+
deleteTrigger(triggerName: string, userId?: string | null): DeleteTriggerByUserId;
|
|
4
8
|
grn(): string;
|
|
5
9
|
}
|
|
@@ -15,11 +15,20 @@
|
|
|
15
15
|
* permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const tslib_1 = require("tslib");
|
|
18
19
|
const func_1 = require("../../core/func");
|
|
20
|
+
const TriggerByUserId_1 = tslib_1.__importDefault(require("../stampSheet/TriggerByUserId"));
|
|
21
|
+
const DeleteTriggerByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DeleteTriggerByUserId"));
|
|
19
22
|
class NamespaceRef {
|
|
20
23
|
constructor(namespaceName) {
|
|
21
24
|
this.namespaceName = namespaceName;
|
|
22
25
|
}
|
|
26
|
+
trigger(triggerName, triggerStrategy, ttl, userId = "#{userId}") {
|
|
27
|
+
return new TriggerByUserId_1.default(this.namespaceName, triggerName, triggerStrategy, ttl, userId);
|
|
28
|
+
}
|
|
29
|
+
deleteTrigger(triggerName, userId = "#{userId}") {
|
|
30
|
+
return new DeleteTriggerByUserId_1.default(this.namespaceName, triggerName, userId);
|
|
31
|
+
}
|
|
23
32
|
grn() {
|
|
24
33
|
return new func_1.Join(":", [
|
|
25
34
|
"grn",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4FAA4D;AAC5D,wGAAwE;AAExE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,OAAO,CACV,WAAmB,EACnB,eAAuB,EACvB,GAAW,EACX,SAAsB,WAAW;QAEjC,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,eAAe,EACf,GAAG,EACH,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,WAAmB,EACnB,SAAsB,WAAW;QAEjC,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,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,UAAU;YACV,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAtDD,+BAsDC"}
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
|
+
import TriggerByUserId from "../stampSheet/TriggerByUserId";
|
|
19
|
+
import DeleteTriggerByUserId from "../stampSheet/DeleteTriggerByUserId";
|
|
18
20
|
|
|
19
21
|
export default class NamespaceRef {
|
|
20
22
|
private readonly namespaceName: string;
|
|
@@ -25,6 +27,32 @@ export default class NamespaceRef {
|
|
|
25
27
|
this.namespaceName = namespaceName;
|
|
26
28
|
}
|
|
27
29
|
|
|
30
|
+
public trigger(
|
|
31
|
+
triggerName: string,
|
|
32
|
+
triggerStrategy: string,
|
|
33
|
+
ttl: number,
|
|
34
|
+
userId: string|null = "#{userId}",
|
|
35
|
+
): TriggerByUserId {
|
|
36
|
+
return new TriggerByUserId(
|
|
37
|
+
this.namespaceName,
|
|
38
|
+
triggerName,
|
|
39
|
+
triggerStrategy,
|
|
40
|
+
ttl,
|
|
41
|
+
userId,
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public deleteTrigger(
|
|
46
|
+
triggerName: string,
|
|
47
|
+
userId: string|null = "#{userId}",
|
|
48
|
+
): DeleteTriggerByUserId {
|
|
49
|
+
return new DeleteTriggerByUserId(
|
|
50
|
+
this.namespaceName,
|
|
51
|
+
triggerName,
|
|
52
|
+
userId,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
28
56
|
public grn(
|
|
29
57
|
): string {
|
|
30
58
|
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 DeleteTriggerByUserId extends model_1.ConsumeAction {
|
|
20
|
+
constructor(namespaceName, triggerName, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["triggerName"] = triggerName;
|
|
24
|
+
properties["userId"] = userId;
|
|
25
|
+
super("Gs2Schedule:DeleteTriggerByUserId", properties);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.default = DeleteTriggerByUserId;
|
|
29
|
+
//# sourceMappingURL=DeleteTriggerByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteTriggerByUserId.js","sourceRoot":"","sources":["DeleteTriggerByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,qBAAsB,SAAQ,qBAAa;IAE5D,YACI,aAAqB,EACrB,WAAmB,EACnB,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,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,mCAAmC,EACnC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAlBD,wCAkBC"}
|