gs2-cdk 1.0.51 → 1.0.53
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/enhance/model/CurrentMasterData.d.ts +3 -1
- package/enhance/model/CurrentMasterData.js +5 -1
- package/enhance/model/CurrentMasterData.js.map +1 -1
- package/enhance/model/CurrentMasterData.ts +8 -0
- package/enhance/model/Namespace.d.ts +2 -1
- package/enhance/model/Namespace.js +2 -2
- package/enhance/model/Namespace.js.map +1 -1
- package/enhance/model/Namespace.ts +3 -0
- package/enhance/model/UnleashRateEntryModel.d.ts +9 -0
- package/enhance/model/UnleashRateEntryModel.js +20 -0
- package/enhance/model/UnleashRateEntryModel.js.map +1 -0
- package/enhance/model/UnleashRateEntryModel.ts +44 -0
- package/enhance/model/UnleashRateModel.d.ts +14 -0
- package/enhance/model/UnleashRateModel.js +39 -0
- package/enhance/model/UnleashRateModel.js.map +1 -0
- package/enhance/model/UnleashRateModel.ts +68 -0
- package/enhance/model/index.d.ts +5 -1
- package/enhance/model/index.js +5 -1
- package/enhance/model/index.js.map +1 -1
- package/enhance/model/index.ts +8 -0
- package/enhance/model/options/UnleashRateEntryModelOptions.d.ts +2 -0
- package/enhance/model/options/UnleashRateEntryModelOptions.js +18 -0
- package/enhance/model/options/UnleashRateEntryModelOptions.js.map +1 -0
- package/enhance/model/options/UnleashRateEntryModelOptions.ts +19 -0
- package/enhance/model/options/UnleashRateModelOptions.d.ts +4 -0
- package/enhance/model/options/UnleashRateModelOptions.js +3 -0
- package/enhance/model/options/UnleashRateModelOptions.js.map +1 -0
- package/enhance/model/options/UnleashRateModelOptions.ts +22 -0
- package/enhance/ref/NamespaceRef.d.ts +2 -0
- package/enhance/ref/NamespaceRef.js +4 -0
- package/enhance/ref/NamespaceRef.js.map +1 -1
- package/enhance/ref/NamespaceRef.ts +10 -0
- package/enhance/ref/UnleashRateModelRef.d.ts +6 -0
- package/enhance/ref/UnleashRateModelRef.js +38 -0
- package/enhance/ref/UnleashRateModelRef.js.map +1 -0
- package/enhance/ref/UnleashRateModelRef.ts +52 -0
- package/enhance/ref/index.d.ts +2 -1
- package/enhance/ref/index.js +3 -1
- package/enhance/ref/index.js.map +1 -1
- package/enhance/ref/index.ts +2 -0
- package/enhance/stampSheet/UnleashByUserId.d.ts +15 -0
- package/enhance/stampSheet/UnleashByUserId.js +57 -0
- package/enhance/stampSheet/UnleashByUserId.js.map +1 -0
- package/enhance/stampSheet/UnleashByUserId.ts +77 -0
- package/enhance/stampSheet/index.d.ts +2 -1
- package/enhance/stampSheet/index.js +3 -1
- package/enhance/stampSheet/index.js.map +1 -1
- package/enhance/stampSheet/index.ts +2 -0
- package/grade/model/GradeEntryModel.d.ts +2 -2
- package/grade/model/GradeEntryModel.js +3 -4
- package/grade/model/GradeEntryModel.js.map +1 -1
- package/grade/model/GradeEntryModel.ts +3 -2
- package/grade/model/options/GradeEntryModelOptions.d.ts +0 -1
- package/grade/model/options/GradeEntryModelOptions.ts +0 -1
- package/inventory/ref/InventoryModelRef.d.ts +2 -0
- package/inventory/ref/InventoryModelRef.js +4 -0
- package/inventory/ref/InventoryModelRef.js.map +1 -1
- package/inventory/ref/InventoryModelRef.ts +17 -0
- package/inventory/ref/ItemModelRef.d.ts +2 -0
- package/inventory/ref/ItemModelRef.js +4 -0
- package/inventory/ref/ItemModelRef.js.map +1 -1
- package/inventory/ref/ItemModelRef.ts +16 -0
- package/inventory/ref/NamespaceRef.d.ts +2 -0
- package/inventory/ref/NamespaceRef.js +4 -0
- package/inventory/ref/NamespaceRef.js.map +1 -1
- package/inventory/ref/NamespaceRef.ts +18 -0
- package/inventory/stampSheet/AcquireItemSetWithGradeByUserId.d.ts +14 -0
- package/inventory/stampSheet/AcquireItemSetWithGradeByUserId.js +56 -0
- package/inventory/stampSheet/AcquireItemSetWithGradeByUserId.js.map +1 -0
- package/inventory/stampSheet/AcquireItemSetWithGradeByUserId.ts +75 -0
- package/inventory/stampSheet/index.d.ts +2 -1
- package/inventory/stampSheet/index.js +3 -1
- package/inventory/stampSheet/index.js.map +1 -1
- package/inventory/stampSheet/index.ts +2 -0
- package/lottery/ref/NamespaceRef.d.ts +2 -0
- package/lottery/ref/NamespaceRef.js +4 -0
- package/lottery/ref/NamespaceRef.js.map +1 -1
- package/lottery/ref/NamespaceRef.ts +12 -0
- package/lottery/stampSheet/ResetBoxByUserId.d.ts +11 -0
- package/lottery/stampSheet/ResetBoxByUserId.js +44 -0
- package/lottery/stampSheet/ResetBoxByUserId.js.map +1 -0
- package/lottery/stampSheet/ResetBoxByUserId.ts +57 -0
- package/lottery/stampSheet/index.d.ts +2 -1
- package/lottery/stampSheet/index.js +3 -1
- package/lottery/stampSheet/index.js.map +1 -1
- package/lottery/stampSheet/index.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AcquireAction } from "../../core/model";
|
|
2
|
+
export default class AcquireItemSetWithGradeByUserId extends AcquireAction {
|
|
3
|
+
private readonly namespaceName;
|
|
4
|
+
private readonly inventoryName;
|
|
5
|
+
private readonly itemName;
|
|
6
|
+
private readonly userId;
|
|
7
|
+
private readonly gradeModelId;
|
|
8
|
+
private readonly gradeValue;
|
|
9
|
+
constructor(namespaceName: string, inventoryName: string, itemName: string, gradeModelId: string, gradeValue: number, userId?: string);
|
|
10
|
+
request(): {
|
|
11
|
+
[name: string]: any;
|
|
12
|
+
};
|
|
13
|
+
action(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 AcquireItemSetWithGradeByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, inventoryName, itemName, gradeModelId, gradeValue, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.namespaceName = namespaceName;
|
|
23
|
+
this.inventoryName = inventoryName;
|
|
24
|
+
this.itemName = itemName;
|
|
25
|
+
this.gradeModelId = gradeModelId;
|
|
26
|
+
this.gradeValue = gradeValue;
|
|
27
|
+
this.userId = userId;
|
|
28
|
+
}
|
|
29
|
+
request() {
|
|
30
|
+
let properties = {};
|
|
31
|
+
if (this.namespaceName != null) {
|
|
32
|
+
properties["namespaceName"] = this.namespaceName;
|
|
33
|
+
}
|
|
34
|
+
if (this.inventoryName != null) {
|
|
35
|
+
properties["inventoryName"] = this.inventoryName;
|
|
36
|
+
}
|
|
37
|
+
if (this.itemName != null) {
|
|
38
|
+
properties["itemName"] = this.itemName;
|
|
39
|
+
}
|
|
40
|
+
if (this.userId != null) {
|
|
41
|
+
properties["userId"] = this.userId;
|
|
42
|
+
}
|
|
43
|
+
if (this.gradeModelId != null) {
|
|
44
|
+
properties["gradeModelId"] = this.gradeModelId;
|
|
45
|
+
}
|
|
46
|
+
if (this.gradeValue != null) {
|
|
47
|
+
properties["gradeValue"] = this.gradeValue;
|
|
48
|
+
}
|
|
49
|
+
return properties;
|
|
50
|
+
}
|
|
51
|
+
action() {
|
|
52
|
+
return "Gs2Inventory:AcquireItemSetWithGradeByUserId";
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.default = AcquireItemSetWithGradeByUserId;
|
|
56
|
+
//# sourceMappingURL=AcquireItemSetWithGradeByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcquireItemSetWithGradeByUserId.js","sourceRoot":"","sources":["AcquireItemSetWithGradeByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,+BAAgC,SAAQ,qBAAa;IAStE,YACI,aAAqB,EACrB,aAAqB,EACrB,QAAgB,EAChB,YAAoB,EACpB,UAAkB,EAClB,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,OAAO;QAEV,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC;SAClD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,8CAA8C,CAAC;IAC1D,CAAC;CACJ;AAxDD,kDAwDC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 AcquireItemSetWithGradeByUserId extends AcquireAction {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly inventoryName: string;
|
|
22
|
+
private readonly itemName: string;
|
|
23
|
+
private readonly userId: string;
|
|
24
|
+
private readonly gradeModelId: string;
|
|
25
|
+
private readonly gradeValue: number;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
public constructor(
|
|
29
|
+
namespaceName: string,
|
|
30
|
+
inventoryName: string,
|
|
31
|
+
itemName: string,
|
|
32
|
+
gradeModelId: string,
|
|
33
|
+
gradeValue: number,
|
|
34
|
+
userId: string = "#{userId}",
|
|
35
|
+
) {
|
|
36
|
+
super();
|
|
37
|
+
|
|
38
|
+
this.namespaceName = namespaceName;
|
|
39
|
+
this.inventoryName = inventoryName;
|
|
40
|
+
this.itemName = itemName;
|
|
41
|
+
this.gradeModelId = gradeModelId;
|
|
42
|
+
this.gradeValue = gradeValue;
|
|
43
|
+
this.userId = userId;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public request(
|
|
47
|
+
): {[name: string]: any} {
|
|
48
|
+
let properties: {[name: string]: any} = {};
|
|
49
|
+
|
|
50
|
+
if (this.namespaceName != null) {
|
|
51
|
+
properties["namespaceName"] = this.namespaceName;
|
|
52
|
+
}
|
|
53
|
+
if (this.inventoryName != null) {
|
|
54
|
+
properties["inventoryName"] = this.inventoryName;
|
|
55
|
+
}
|
|
56
|
+
if (this.itemName != null) {
|
|
57
|
+
properties["itemName"] = this.itemName;
|
|
58
|
+
}
|
|
59
|
+
if (this.userId != null) {
|
|
60
|
+
properties["userId"] = this.userId;
|
|
61
|
+
}
|
|
62
|
+
if (this.gradeModelId != null) {
|
|
63
|
+
properties["gradeModelId"] = this.gradeModelId;
|
|
64
|
+
}
|
|
65
|
+
if (this.gradeValue != null) {
|
|
66
|
+
properties["gradeValue"] = this.gradeValue;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return properties;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public action(): string {
|
|
73
|
+
return "Gs2Inventory:AcquireItemSetWithGradeByUserId";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import AddCapacityByUserId from "./AddCapacityByUserId";
|
|
2
2
|
import SetCapacityByUserId from "./SetCapacityByUserId";
|
|
3
3
|
import AcquireItemSetByUserId from "./AcquireItemSetByUserId";
|
|
4
|
+
import AcquireItemSetWithGradeByUserId from "./AcquireItemSetWithGradeByUserId";
|
|
4
5
|
import AddReferenceOfByUserId from "./AddReferenceOfByUserId";
|
|
5
6
|
import DeleteReferenceOfByUserId from "./DeleteReferenceOfByUserId";
|
|
6
7
|
import AcquireSimpleItemsByUserId from "./AcquireSimpleItemsByUserId";
|
|
@@ -15,4 +16,4 @@ import ConsumeSimpleItemsByUserId from "./ConsumeSimpleItemsByUserId";
|
|
|
15
16
|
import VerifySimpleItemByUserId from "./VerifySimpleItemByUserId";
|
|
16
17
|
import ConsumeBigItemByUserId from "./ConsumeBigItemByUserId";
|
|
17
18
|
import VerifyBigItemByUserId from "./VerifyBigItemByUserId";
|
|
18
|
-
export { AddCapacityByUserId, SetCapacityByUserId, AcquireItemSetByUserId, AddReferenceOfByUserId, DeleteReferenceOfByUserId, AcquireSimpleItemsByUserId, SetSimpleItemsByUserId, AcquireBigItemByUserId, SetBigItemByUserId, VerifyInventoryCurrentMaxCapacityByUserId, ConsumeItemSetByUserId, VerifyItemSetByUserId, VerifyReferenceOfByUserId, ConsumeSimpleItemsByUserId, VerifySimpleItemByUserId, ConsumeBigItemByUserId, VerifyBigItemByUserId, };
|
|
19
|
+
export { AddCapacityByUserId, SetCapacityByUserId, AcquireItemSetByUserId, AcquireItemSetWithGradeByUserId, AddReferenceOfByUserId, DeleteReferenceOfByUserId, AcquireSimpleItemsByUserId, SetSimpleItemsByUserId, AcquireBigItemByUserId, SetBigItemByUserId, VerifyInventoryCurrentMaxCapacityByUserId, ConsumeItemSetByUserId, VerifyItemSetByUserId, VerifyReferenceOfByUserId, ConsumeSimpleItemsByUserId, VerifySimpleItemByUserId, ConsumeBigItemByUserId, VerifyBigItemByUserId, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerifyBigItemByUserId = exports.ConsumeBigItemByUserId = exports.VerifySimpleItemByUserId = exports.ConsumeSimpleItemsByUserId = exports.VerifyReferenceOfByUserId = exports.VerifyItemSetByUserId = exports.ConsumeItemSetByUserId = exports.VerifyInventoryCurrentMaxCapacityByUserId = exports.SetBigItemByUserId = exports.AcquireBigItemByUserId = exports.SetSimpleItemsByUserId = exports.AcquireSimpleItemsByUserId = exports.DeleteReferenceOfByUserId = exports.AddReferenceOfByUserId = exports.AcquireItemSetByUserId = exports.SetCapacityByUserId = exports.AddCapacityByUserId = void 0;
|
|
3
|
+
exports.VerifyBigItemByUserId = exports.ConsumeBigItemByUserId = exports.VerifySimpleItemByUserId = exports.ConsumeSimpleItemsByUserId = exports.VerifyReferenceOfByUserId = exports.VerifyItemSetByUserId = exports.ConsumeItemSetByUserId = exports.VerifyInventoryCurrentMaxCapacityByUserId = exports.SetBigItemByUserId = exports.AcquireBigItemByUserId = exports.SetSimpleItemsByUserId = exports.AcquireSimpleItemsByUserId = exports.DeleteReferenceOfByUserId = exports.AddReferenceOfByUserId = exports.AcquireItemSetWithGradeByUserId = exports.AcquireItemSetByUserId = exports.SetCapacityByUserId = exports.AddCapacityByUserId = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -23,6 +23,8 @@ const SetCapacityByUserId_1 = tslib_1.__importDefault(require("./SetCapacityByUs
|
|
|
23
23
|
exports.SetCapacityByUserId = SetCapacityByUserId_1.default;
|
|
24
24
|
const AcquireItemSetByUserId_1 = tslib_1.__importDefault(require("./AcquireItemSetByUserId"));
|
|
25
25
|
exports.AcquireItemSetByUserId = AcquireItemSetByUserId_1.default;
|
|
26
|
+
const AcquireItemSetWithGradeByUserId_1 = tslib_1.__importDefault(require("./AcquireItemSetWithGradeByUserId"));
|
|
27
|
+
exports.AcquireItemSetWithGradeByUserId = AcquireItemSetWithGradeByUserId_1.default;
|
|
26
28
|
const AddReferenceOfByUserId_1 = tslib_1.__importDefault(require("./AddReferenceOfByUserId"));
|
|
27
29
|
exports.AddReferenceOfByUserId = AddReferenceOfByUserId_1.default;
|
|
28
30
|
const DeleteReferenceOfByUserId_1 = tslib_1.__importDefault(require("./DeleteReferenceOfByUserId"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wFAAwD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wFAAwD;AAoBpD,8BApBG,6BAAmB,CAoBH;AAnBvB,wFAAwD;AAoBpD,8BApBG,6BAAmB,CAoBH;AAnBvB,8FAA8D;AAoB1D,iCApBG,gCAAsB,CAoBH;AAnB1B,gHAAgF;AAoB5E,0CApBG,yCAA+B,CAoBH;AAnBnC,8FAA8D;AAoB1D,iCApBG,gCAAsB,CAoBH;AAnB1B,oGAAoE;AAoBhE,oCApBG,mCAAyB,CAoBH;AAnB7B,sGAAsE;AAoBlE,qCApBG,oCAA0B,CAoBH;AAnB9B,8FAA8D;AAoB1D,iCApBG,gCAAsB,CAoBH;AAnB1B,8FAA8D;AAoB1D,iCApBG,gCAAsB,CAoBH;AAnB1B,sFAAsD;AAoBlD,6BApBG,4BAAkB,CAoBH;AAnBtB,oIAAoG;AAoBhG,oDApBG,mDAAyC,CAoBH;AAnB7C,8FAA8D;AAoB1D,iCApBG,gCAAsB,CAoBH;AAnB1B,4FAA4D;AAoBxD,gCApBG,+BAAqB,CAoBH;AAnBzB,oGAAoE;AAoBhE,oCApBG,mCAAyB,CAoBH;AAnB7B,sGAAsE;AAoBlE,qCApBG,oCAA0B,CAoBH;AAnB9B,kGAAkE;AAoB9D,mCApBG,kCAAwB,CAoBH;AAnB5B,8FAA8D;AAoB1D,iCApBG,gCAAsB,CAoBH;AAnB1B,4FAA4D;AAoBxD,gCApBG,+BAAqB,CAoBH"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import AddCapacityByUserId from "./AddCapacityByUserId";
|
|
17
17
|
import SetCapacityByUserId from "./SetCapacityByUserId";
|
|
18
18
|
import AcquireItemSetByUserId from "./AcquireItemSetByUserId";
|
|
19
|
+
import AcquireItemSetWithGradeByUserId from "./AcquireItemSetWithGradeByUserId";
|
|
19
20
|
import AddReferenceOfByUserId from "./AddReferenceOfByUserId";
|
|
20
21
|
import DeleteReferenceOfByUserId from "./DeleteReferenceOfByUserId";
|
|
21
22
|
import AcquireSimpleItemsByUserId from "./AcquireSimpleItemsByUserId";
|
|
@@ -35,6 +36,7 @@ export {
|
|
|
35
36
|
AddCapacityByUserId,
|
|
36
37
|
SetCapacityByUserId,
|
|
37
38
|
AcquireItemSetByUserId,
|
|
39
|
+
AcquireItemSetWithGradeByUserId,
|
|
38
40
|
AddReferenceOfByUserId,
|
|
39
41
|
DeleteReferenceOfByUserId,
|
|
40
42
|
AcquireSimpleItemsByUserId,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import PrizeTableRef from "./PrizeTableRef";
|
|
2
2
|
import LotteryModelRef from "./LotteryModelRef";
|
|
3
|
+
import ResetBoxByUserId from "../stampSheet/ResetBoxByUserId";
|
|
3
4
|
export default class NamespaceRef {
|
|
4
5
|
private readonly namespaceName;
|
|
5
6
|
constructor(namespaceName: string);
|
|
6
7
|
prizeTable(prizeTableName: string): PrizeTableRef;
|
|
7
8
|
lotteryModel(lotteryName: string): LotteryModelRef;
|
|
9
|
+
resetBox(prizeTableName: string, userId?: string): ResetBoxByUserId;
|
|
8
10
|
grn(): string;
|
|
9
11
|
}
|
|
@@ -19,6 +19,7 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
const func_1 = require("../../core/func");
|
|
20
20
|
const PrizeTableRef_1 = tslib_1.__importDefault(require("./PrizeTableRef"));
|
|
21
21
|
const LotteryModelRef_1 = tslib_1.__importDefault(require("./LotteryModelRef"));
|
|
22
|
+
const ResetBoxByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ResetBoxByUserId"));
|
|
22
23
|
class NamespaceRef {
|
|
23
24
|
constructor(namespaceName) {
|
|
24
25
|
this.namespaceName = namespaceName;
|
|
@@ -29,6 +30,9 @@ class NamespaceRef {
|
|
|
29
30
|
lotteryModel(lotteryName) {
|
|
30
31
|
return new LotteryModelRef_1.default(this.namespaceName, lotteryName);
|
|
31
32
|
}
|
|
33
|
+
resetBox(prizeTableName, userId = "#{userId}") {
|
|
34
|
+
return new ResetBoxByUserId_1.default(this.namespaceName, prizeTableName, userId);
|
|
35
|
+
}
|
|
32
36
|
grn() {
|
|
33
37
|
return new func_1.Join(":", [
|
|
34
38
|
"grn",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4EAA4C;AAC5C,gFAAgD;
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4EAA4C;AAC5C,gFAAgD;AAChD,8FAA8D;AAE9D,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,YAAY,CACf,WAAmB;QAEnB,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,WAAW,CACd,CAAC;IACN,CAAC;IAEM,QAAQ,CACX,cAAsB,EACtB,SAAiB,WAAW;QAE5B,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,cAAc,EACd,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;AAzDD,+BAyDC"}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
import PrizeTableRef from "./PrizeTableRef";
|
|
19
19
|
import LotteryModelRef from "./LotteryModelRef";
|
|
20
|
+
import ResetBoxByUserId from "../stampSheet/ResetBoxByUserId";
|
|
20
21
|
|
|
21
22
|
export default class NamespaceRef {
|
|
22
23
|
private readonly namespaceName: string;
|
|
@@ -45,6 +46,17 @@ export default class NamespaceRef {
|
|
|
45
46
|
);
|
|
46
47
|
}
|
|
47
48
|
|
|
49
|
+
public resetBox(
|
|
50
|
+
prizeTableName: string,
|
|
51
|
+
userId: string = "#{userId}",
|
|
52
|
+
): ResetBoxByUserId {
|
|
53
|
+
return new ResetBoxByUserId(
|
|
54
|
+
this.namespaceName,
|
|
55
|
+
prizeTableName,
|
|
56
|
+
userId,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
48
60
|
public grn(
|
|
49
61
|
): string {
|
|
50
62
|
return new Join(
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AcquireAction } from "../../core/model";
|
|
2
|
+
export default class ResetBoxByUserId extends AcquireAction {
|
|
3
|
+
private readonly namespaceName;
|
|
4
|
+
private readonly prizeTableName;
|
|
5
|
+
private readonly userId;
|
|
6
|
+
constructor(namespaceName: string, prizeTableName: string, userId?: string);
|
|
7
|
+
request(): {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
};
|
|
10
|
+
action(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 ResetBoxByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, prizeTableName, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.namespaceName = namespaceName;
|
|
23
|
+
this.prizeTableName = prizeTableName;
|
|
24
|
+
this.userId = userId;
|
|
25
|
+
}
|
|
26
|
+
request() {
|
|
27
|
+
let properties = {};
|
|
28
|
+
if (this.namespaceName != null) {
|
|
29
|
+
properties["namespaceName"] = this.namespaceName;
|
|
30
|
+
}
|
|
31
|
+
if (this.prizeTableName != null) {
|
|
32
|
+
properties["prizeTableName"] = this.prizeTableName;
|
|
33
|
+
}
|
|
34
|
+
if (this.userId != null) {
|
|
35
|
+
properties["userId"] = this.userId;
|
|
36
|
+
}
|
|
37
|
+
return properties;
|
|
38
|
+
}
|
|
39
|
+
action() {
|
|
40
|
+
return "Gs2Lottery:ResetBoxByUserId";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.default = ResetBoxByUserId;
|
|
44
|
+
//# sourceMappingURL=ResetBoxByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResetBoxByUserId.js","sourceRoot":"","sources":["ResetBoxByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,gBAAiB,SAAQ,qBAAa;IAMvD,YACI,aAAqB,EACrB,cAAsB,EACtB,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,OAAO;QAEV,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,6BAA6B,CAAC;IACzC,CAAC;CACJ;AAtCD,mCAsCC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 ResetBoxByUserId extends AcquireAction {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly prizeTableName: string;
|
|
22
|
+
private readonly userId: string;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
public constructor(
|
|
26
|
+
namespaceName: string,
|
|
27
|
+
prizeTableName: string,
|
|
28
|
+
userId: string = "#{userId}",
|
|
29
|
+
) {
|
|
30
|
+
super();
|
|
31
|
+
|
|
32
|
+
this.namespaceName = namespaceName;
|
|
33
|
+
this.prizeTableName = prizeTableName;
|
|
34
|
+
this.userId = userId;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public request(
|
|
38
|
+
): {[name: string]: any} {
|
|
39
|
+
let properties: {[name: string]: any} = {};
|
|
40
|
+
|
|
41
|
+
if (this.namespaceName != null) {
|
|
42
|
+
properties["namespaceName"] = this.namespaceName;
|
|
43
|
+
}
|
|
44
|
+
if (this.prizeTableName != null) {
|
|
45
|
+
properties["prizeTableName"] = this.prizeTableName;
|
|
46
|
+
}
|
|
47
|
+
if (this.userId != null) {
|
|
48
|
+
properties["userId"] = this.userId;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return properties;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public action(): string {
|
|
55
|
+
return "Gs2Lottery:ResetBoxByUserId";
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DrawByUserId = void 0;
|
|
3
|
+
exports.ResetBoxByUserId = exports.DrawByUserId = 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 DrawByUserId_1 = tslib_1.__importDefault(require("./DrawByUserId"));
|
|
21
21
|
exports.DrawByUserId = DrawByUserId_1.default;
|
|
22
|
+
const ResetBoxByUserId_1 = tslib_1.__importDefault(require("./ResetBoxByUserId"));
|
|
23
|
+
exports.ResetBoxByUserId = ResetBoxByUserId_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,kFAAkD;AAI9C,2BAJG,0BAAgB,CAIH"}
|