gs2-cdk 1.0.44 → 1.0.46
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/stampSheet/AddEntriesByUserId.js +3 -1
- package/dictionary/stampSheet/AddEntriesByUserId.js.map +1 -1
- package/dictionary/stampSheet/AddEntriesByUserId.ts +3 -1
- package/dictionary/stampSheet/DeleteEntriesByUserId.js +3 -1
- package/dictionary/stampSheet/DeleteEntriesByUserId.js.map +1 -1
- package/dictionary/stampSheet/DeleteEntriesByUserId.ts +3 -1
- package/enchant/stampSheet/ReDrawBalanceParameterStatusByUserId.js +3 -1
- package/enchant/stampSheet/ReDrawBalanceParameterStatusByUserId.js.map +1 -1
- package/enchant/stampSheet/ReDrawBalanceParameterStatusByUserId.ts +3 -1
- package/enchant/stampSheet/ReDrawRarityParameterStatusByUserId.js +3 -1
- package/enchant/stampSheet/ReDrawRarityParameterStatusByUserId.js.map +1 -1
- package/enchant/stampSheet/ReDrawRarityParameterStatusByUserId.ts +3 -1
- package/enchant/stampSheet/SetBalanceParameterStatusByUserId.js +3 -1
- package/enchant/stampSheet/SetBalanceParameterStatusByUserId.js.map +1 -1
- package/enchant/stampSheet/SetBalanceParameterStatusByUserId.ts +4 -1
- package/enchant/stampSheet/SetRarityParameterStatusByUserId.js +3 -1
- package/enchant/stampSheet/SetRarityParameterStatusByUserId.js.map +1 -1
- package/enchant/stampSheet/SetRarityParameterStatusByUserId.ts +4 -1
- package/enhance/stampSheet/CreateProgressByUserId.js +3 -1
- package/enhance/stampSheet/CreateProgressByUserId.js.map +1 -1
- package/enhance/stampSheet/CreateProgressByUserId.ts +4 -1
- package/enhance/stampSheet/DirectEnhanceByUserId.js +6 -2
- package/enhance/stampSheet/DirectEnhanceByUserId.js.map +1 -1
- package/enhance/stampSheet/DirectEnhanceByUserId.ts +8 -2
- package/exchange/stampSheet/ExchangeByUserId.js +3 -1
- package/exchange/stampSheet/ExchangeByUserId.js.map +1 -1
- package/exchange/stampSheet/ExchangeByUserId.ts +4 -1
- package/exchange/stampSheet/IncrementalExchangeByUserId.js +3 -1
- package/exchange/stampSheet/IncrementalExchangeByUserId.js.map +1 -1
- package/exchange/stampSheet/IncrementalExchangeByUserId.ts +4 -1
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.js +3 -1
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.js.map +1 -1
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.ts +4 -1
- package/formation/stampSheet/AcquireActionsToFormProperties.js +6 -2
- package/formation/stampSheet/AcquireActionsToFormProperties.js.map +1 -1
- package/formation/stampSheet/AcquireActionsToFormProperties.ts +8 -2
- package/formation/stampSheet/AcquireActionsToPropertyFormProperties.js +6 -2
- package/formation/stampSheet/AcquireActionsToPropertyFormProperties.js.map +1 -1
- package/formation/stampSheet/AcquireActionsToPropertyFormProperties.ts +8 -2
- package/inbox/stampSheet/SendMessageByUserId.js +6 -2
- package/inbox/stampSheet/SendMessageByUserId.js.map +1 -1
- package/inbox/stampSheet/SendMessageByUserId.ts +8 -2
- package/inventory/model/HeldCount.d.ts +9 -0
- package/inventory/model/HeldCount.js +20 -0
- package/inventory/model/HeldCount.js.map +1 -0
- package/inventory/model/HeldCount.ts +44 -0
- package/inventory/model/index.d.ts +3 -1
- package/inventory/model/index.js +3 -1
- package/inventory/model/index.js.map +1 -1
- package/inventory/model/index.ts +4 -0
- package/inventory/model/options/HeldCountOptions.d.ts +2 -0
- package/inventory/model/options/HeldCountOptions.js +18 -0
- package/inventory/model/options/HeldCountOptions.js.map +1 -0
- package/inventory/model/options/HeldCountOptions.ts +19 -0
- package/inventory/ref/BigInventoryModelRef.d.ts +2 -0
- package/inventory/ref/BigInventoryModelRef.js +4 -0
- package/inventory/ref/BigInventoryModelRef.js.map +1 -1
- package/inventory/ref/BigInventoryModelRef.ts +15 -0
- package/inventory/ref/BigItemModelRef.d.ts +2 -0
- package/inventory/ref/BigItemModelRef.js +4 -0
- package/inventory/ref/BigItemModelRef.js.map +1 -1
- package/inventory/ref/BigItemModelRef.ts +14 -0
- package/inventory/stampSheet/AcquireSimpleItemsByUserId.js +3 -1
- package/inventory/stampSheet/AcquireSimpleItemsByUserId.js.map +1 -1
- package/inventory/stampSheet/AcquireSimpleItemsByUserId.ts +4 -1
- package/inventory/stampSheet/ConsumeSimpleItemsByUserId.js +3 -1
- package/inventory/stampSheet/ConsumeSimpleItemsByUserId.js.map +1 -1
- package/inventory/stampSheet/ConsumeSimpleItemsByUserId.ts +4 -1
- package/inventory/stampSheet/SetBigItemByUserId.d.ts +4 -0
- package/inventory/stampSheet/SetBigItemByUserId.js +31 -0
- package/inventory/stampSheet/SetBigItemByUserId.js.map +1 -0
- package/inventory/stampSheet/SetBigItemByUserId.ts +41 -0
- package/inventory/stampSheet/SetSimpleItemsByUserId.d.ts +5 -0
- package/inventory/stampSheet/SetSimpleItemsByUserId.js +32 -0
- package/inventory/stampSheet/SetSimpleItemsByUserId.js.map +1 -0
- package/inventory/stampSheet/SetSimpleItemsByUserId.ts +43 -0
- package/inventory/stampSheet/index.d.ts +3 -1
- package/inventory/stampSheet/index.js +5 -1
- package/inventory/stampSheet/index.js.map +1 -1
- package/inventory/stampSheet/index.ts +4 -0
- package/jobQueue/stampSheet/PushByUserId.js +3 -1
- package/jobQueue/stampSheet/PushByUserId.js.map +1 -1
- package/jobQueue/stampSheet/PushByUserId.ts +4 -1
- package/lottery/stampSheet/DrawByUserId.js +3 -1
- package/lottery/stampSheet/DrawByUserId.js.map +1 -1
- package/lottery/stampSheet/DrawByUserId.ts +4 -1
- package/package.json +1 -1
- package/quest/stampSheet/CreateProgressByUserId.js +3 -1
- package/quest/stampSheet/CreateProgressByUserId.js.map +1 -1
- package/quest/stampSheet/CreateProgressByUserId.ts +4 -1
- package/skillTree/stampSheet/MarkReleaseByUserId.js +3 -1
- package/skillTree/stampSheet/MarkReleaseByUserId.js.map +1 -1
- package/skillTree/stampSheet/MarkReleaseByUserId.ts +3 -1
- package/skillTree/stampSheet/MarkRestrainByUserId.js +3 -1
- package/skillTree/stampSheet/MarkRestrainByUserId.js.map +1 -1
- package/skillTree/stampSheet/MarkRestrainByUserId.ts +3 -1
package/inventory/model/index.ts
CHANGED
|
@@ -31,6 +31,8 @@ import AcquireCount from "./AcquireCount";
|
|
|
31
31
|
import { AcquireCountOptions } from "./options/AcquireCountOptions";
|
|
32
32
|
import ConsumeCount from "./ConsumeCount";
|
|
33
33
|
import { ConsumeCountOptions } from "./options/ConsumeCountOptions";
|
|
34
|
+
import HeldCount from "./HeldCount";
|
|
35
|
+
import { HeldCountOptions } from "./options/HeldCountOptions";
|
|
34
36
|
import CurrentMasterData from "./CurrentMasterData";
|
|
35
37
|
|
|
36
38
|
export {
|
|
@@ -52,5 +54,7 @@ export {
|
|
|
52
54
|
AcquireCountOptions,
|
|
53
55
|
ConsumeCount,
|
|
54
56
|
ConsumeCountOptions,
|
|
57
|
+
HeldCount,
|
|
58
|
+
HeldCountOptions,
|
|
55
59
|
CurrentMasterData,
|
|
56
60
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=HeldCountOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeldCountOptions.js","sourceRoot":"","sources":["HeldCountOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export interface HeldCountOptions {
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import BigItemModelRef from "./BigItemModelRef";
|
|
2
2
|
import AcquireBigItemByUserId from "../stampSheet/AcquireBigItemByUserId";
|
|
3
|
+
import SetBigItemByUserId from "../stampSheet/SetBigItemByUserId";
|
|
3
4
|
import ConsumeBigItemByUserId from "../stampSheet/ConsumeBigItemByUserId";
|
|
4
5
|
import VerifyBigItemByUserId from "../stampSheet/VerifyBigItemByUserId";
|
|
5
6
|
export default class BigInventoryModelRef {
|
|
@@ -8,6 +9,7 @@ export default class BigInventoryModelRef {
|
|
|
8
9
|
constructor(namespaceName: string, inventoryName: string);
|
|
9
10
|
bigItemModel(itemName: string): BigItemModelRef;
|
|
10
11
|
acquireBigItem(itemName: string, acquireCount: string, userId?: string | null): AcquireBigItemByUserId;
|
|
12
|
+
setBigItem(itemName: string, count: string, userId?: string | null): SetBigItemByUserId;
|
|
11
13
|
consumeBigItem(itemName: string, consumeCount: string, userId?: string | null): ConsumeBigItemByUserId;
|
|
12
14
|
verifyBigItem(itemName: string, verifyType: string, count: string, userId?: string | null): VerifyBigItemByUserId;
|
|
13
15
|
grn(): string;
|
|
@@ -19,6 +19,7 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
const func_1 = require("../../core/func");
|
|
20
20
|
const BigItemModelRef_1 = tslib_1.__importDefault(require("./BigItemModelRef"));
|
|
21
21
|
const AcquireBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/AcquireBigItemByUserId"));
|
|
22
|
+
const SetBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/SetBigItemByUserId"));
|
|
22
23
|
const ConsumeBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ConsumeBigItemByUserId"));
|
|
23
24
|
const VerifyBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyBigItemByUserId"));
|
|
24
25
|
class BigInventoryModelRef {
|
|
@@ -32,6 +33,9 @@ class BigInventoryModelRef {
|
|
|
32
33
|
acquireBigItem(itemName, acquireCount, userId = "#{userId}") {
|
|
33
34
|
return new AcquireBigItemByUserId_1.default(this.namespaceName, this.inventoryName, itemName, acquireCount, userId);
|
|
34
35
|
}
|
|
36
|
+
setBigItem(itemName, count, userId = "#{userId}") {
|
|
37
|
+
return new SetBigItemByUserId_1.default(this.namespaceName, this.inventoryName, itemName, count, userId);
|
|
38
|
+
}
|
|
35
39
|
consumeBigItem(itemName, consumeCount, userId = "#{userId}") {
|
|
36
40
|
return new ConsumeBigItemByUserId_1.default(this.namespaceName, this.inventoryName, itemName, consumeCount, userId);
|
|
37
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BigInventoryModelRef.js","sourceRoot":"","sources":["BigInventoryModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,gFAAgD;AAChD,0GAA0E;AA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ACT,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,WAAW;YACX,IAAI,CAAC,aAAa;YAClB,KAAK;YACL,OAAO;YACP,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAtGD,uCAsGC"}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
import BigItemModelRef from "./BigItemModelRef";
|
|
19
19
|
import AcquireBigItemByUserId from "../stampSheet/AcquireBigItemByUserId";
|
|
20
|
+
import SetBigItemByUserId from "../stampSheet/SetBigItemByUserId";
|
|
20
21
|
import ConsumeBigItemByUserId from "../stampSheet/ConsumeBigItemByUserId";
|
|
21
22
|
import VerifyBigItemByUserId from "../stampSheet/VerifyBigItemByUserId";
|
|
22
23
|
|
|
@@ -56,6 +57,20 @@ export default class BigInventoryModelRef {
|
|
|
56
57
|
);
|
|
57
58
|
}
|
|
58
59
|
|
|
60
|
+
public setBigItem(
|
|
61
|
+
itemName: string,
|
|
62
|
+
count: string,
|
|
63
|
+
userId: string|null = "#{userId}",
|
|
64
|
+
): SetBigItemByUserId {
|
|
65
|
+
return new SetBigItemByUserId(
|
|
66
|
+
this.namespaceName,
|
|
67
|
+
this.inventoryName,
|
|
68
|
+
itemName,
|
|
69
|
+
count,
|
|
70
|
+
userId,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
59
74
|
public consumeBigItem(
|
|
60
75
|
itemName: string,
|
|
61
76
|
consumeCount: string,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import AcquireBigItemByUserId from "../stampSheet/AcquireBigItemByUserId";
|
|
2
|
+
import SetBigItemByUserId from "../stampSheet/SetBigItemByUserId";
|
|
2
3
|
import ConsumeBigItemByUserId from "../stampSheet/ConsumeBigItemByUserId";
|
|
3
4
|
import VerifyBigItemByUserId from "../stampSheet/VerifyBigItemByUserId";
|
|
4
5
|
export default class BigItemModelRef {
|
|
@@ -7,6 +8,7 @@ export default class BigItemModelRef {
|
|
|
7
8
|
private readonly itemName;
|
|
8
9
|
constructor(namespaceName: string, inventoryName: string, itemName: string);
|
|
9
10
|
acquireBigItem(acquireCount: string, userId?: string | null): AcquireBigItemByUserId;
|
|
11
|
+
setBigItem(count: string, userId?: string | null): SetBigItemByUserId;
|
|
10
12
|
consumeBigItem(consumeCount: string, userId?: string | null): ConsumeBigItemByUserId;
|
|
11
13
|
verifyBigItem(verifyType: string, count: string, userId?: string | null): VerifyBigItemByUserId;
|
|
12
14
|
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 AcquireBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/AcquireBigItemByUserId"));
|
|
21
|
+
const SetBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/SetBigItemByUserId"));
|
|
21
22
|
const ConsumeBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ConsumeBigItemByUserId"));
|
|
22
23
|
const VerifyBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyBigItemByUserId"));
|
|
23
24
|
class BigItemModelRef {
|
|
@@ -29,6 +30,9 @@ class BigItemModelRef {
|
|
|
29
30
|
acquireBigItem(acquireCount, userId = "#{userId}") {
|
|
30
31
|
return new AcquireBigItemByUserId_1.default(this.namespaceName, this.inventoryName, this.itemName, acquireCount, userId);
|
|
31
32
|
}
|
|
33
|
+
setBigItem(count, userId = "#{userId}") {
|
|
34
|
+
return new SetBigItemByUserId_1.default(this.namespaceName, this.inventoryName, this.itemName, count, userId);
|
|
35
|
+
}
|
|
32
36
|
consumeBigItem(consumeCount, userId = "#{userId}") {
|
|
33
37
|
return new ConsumeBigItemByUserId_1.default(this.namespaceName, this.inventoryName, this.itemName, consumeCount, userId);
|
|
34
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BigItemModelRef.js","sourceRoot":"","sources":["BigItemModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0GAA0E;AAC1E,0GAA0E;AAC1E,wGAAwE;AAExE,MAAqB,eAAe;IAKhC,YACI,aAAqB,EACrB,aAAqB,EACrB,QAAgB;QAEhB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAEM,cAAc,CACjB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,QAAQ,EACb,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,QAAQ,EACb,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,UAAkB,EAClB,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,QAAQ,EACb,UAAU,EACV,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,CA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EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,QAAQ,EACb,UAAU,EACV,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,WAAW;YACX,IAAI,CAAC,aAAa;YAClB,KAAK;YACL,OAAO;YACP,IAAI,CAAC,aAAa;YAClB,MAAM;YACN,IAAI,CAAC,QAAQ;SAChB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA7FD,kCA6FC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
import AcquireBigItemByUserId from "../stampSheet/AcquireBigItemByUserId";
|
|
19
|
+
import SetBigItemByUserId from "../stampSheet/SetBigItemByUserId";
|
|
19
20
|
import ConsumeBigItemByUserId from "../stampSheet/ConsumeBigItemByUserId";
|
|
20
21
|
import VerifyBigItemByUserId from "../stampSheet/VerifyBigItemByUserId";
|
|
21
22
|
|
|
@@ -47,6 +48,19 @@ export default class BigItemModelRef {
|
|
|
47
48
|
);
|
|
48
49
|
}
|
|
49
50
|
|
|
51
|
+
public setBigItem(
|
|
52
|
+
count: string,
|
|
53
|
+
userId: string|null = "#{userId}",
|
|
54
|
+
): SetBigItemByUserId {
|
|
55
|
+
return new SetBigItemByUserId(
|
|
56
|
+
this.namespaceName,
|
|
57
|
+
this.inventoryName,
|
|
58
|
+
this.itemName,
|
|
59
|
+
count,
|
|
60
|
+
userId,
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
50
64
|
public consumeBigItem(
|
|
51
65
|
consumeCount: string,
|
|
52
66
|
userId: string|null = "#{userId}",
|
|
@@ -21,7 +21,9 @@ class AcquireSimpleItemsByUserId extends model_1.AcquireAction {
|
|
|
21
21
|
let properties = {};
|
|
22
22
|
properties["namespaceName"] = namespaceName;
|
|
23
23
|
properties["inventoryName"] = inventoryName;
|
|
24
|
-
|
|
24
|
+
if (acquireCounts != null) {
|
|
25
|
+
properties["acquireCounts"] = acquireCounts.map(v => v.properties());
|
|
26
|
+
}
|
|
25
27
|
properties["userId"] = userId;
|
|
26
28
|
super("Gs2Inventory:AcquireSimpleItemsByUserId", properties);
|
|
27
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcquireSimpleItemsByUserId.js","sourceRoot":"","sources":["AcquireSimpleItemsByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,0BAA2B,SAAQ,qBAAa;IAEjE,YACI,aAAqB,EACrB,aAAqB,EACrB,aAA6B,EAC7B,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"AcquireSimpleItemsByUserId.js","sourceRoot":"","sources":["AcquireSimpleItemsByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,0BAA2B,SAAQ,qBAAa;IAEjE,YACI,aAAqB,EACrB,aAAqB,EACrB,aAA6B,EAC7B,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,IAAI,aAAa,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC5D,CAAC,CAAC;SACV;QACD,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,yCAAyC,EACzC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAvBD,6CAuBC"}
|
|
@@ -29,7 +29,10 @@ export default class AcquireSimpleItemsByUserId extends AcquireAction {
|
|
|
29
29
|
|
|
30
30
|
properties["namespaceName"] = namespaceName
|
|
31
31
|
properties["inventoryName"] = inventoryName
|
|
32
|
-
|
|
32
|
+
if (acquireCounts != null) {
|
|
33
|
+
properties["acquireCounts"] = acquireCounts.map(v => v.properties(
|
|
34
|
+
));
|
|
35
|
+
}
|
|
33
36
|
properties["userId"] = userId
|
|
34
37
|
|
|
35
38
|
super(
|
|
@@ -21,7 +21,9 @@ class ConsumeSimpleItemsByUserId extends model_1.ConsumeAction {
|
|
|
21
21
|
let properties = {};
|
|
22
22
|
properties["namespaceName"] = namespaceName;
|
|
23
23
|
properties["inventoryName"] = inventoryName;
|
|
24
|
-
|
|
24
|
+
if (consumeCounts != null) {
|
|
25
|
+
properties["consumeCounts"] = consumeCounts.map(v => v.properties());
|
|
26
|
+
}
|
|
25
27
|
properties["userId"] = userId;
|
|
26
28
|
super("Gs2Inventory:ConsumeSimpleItemsByUserId", properties);
|
|
27
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumeSimpleItemsByUserId.js","sourceRoot":"","sources":["ConsumeSimpleItemsByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,0BAA2B,SAAQ,qBAAa;IAEjE,YACI,aAAqB,EACrB,aAAqB,EACrB,aAA6B,EAC7B,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"ConsumeSimpleItemsByUserId.js","sourceRoot":"","sources":["ConsumeSimpleItemsByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,0BAA2B,SAAQ,qBAAa;IAEjE,YACI,aAAqB,EACrB,aAAqB,EACrB,aAA6B,EAC7B,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,IAAI,aAAa,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC5D,CAAC,CAAC;SACV;QACD,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,yCAAyC,EACzC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAvBD,6CAuBC"}
|
|
@@ -29,7 +29,10 @@ export default class ConsumeSimpleItemsByUserId extends ConsumeAction {
|
|
|
29
29
|
|
|
30
30
|
properties["namespaceName"] = namespaceName
|
|
31
31
|
properties["inventoryName"] = inventoryName
|
|
32
|
-
|
|
32
|
+
if (consumeCounts != null) {
|
|
33
|
+
properties["consumeCounts"] = consumeCounts.map(v => v.properties(
|
|
34
|
+
));
|
|
35
|
+
}
|
|
33
36
|
properties["userId"] = userId
|
|
34
37
|
|
|
35
38
|
super(
|
|
@@ -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 SetBigItemByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, inventoryName, itemName, count, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["inventoryName"] = inventoryName;
|
|
24
|
+
properties["itemName"] = itemName;
|
|
25
|
+
properties["count"] = count;
|
|
26
|
+
properties["userId"] = userId;
|
|
27
|
+
super("Gs2Inventory:SetBigItemByUserId", properties);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.default = SetBigItemByUserId;
|
|
31
|
+
//# sourceMappingURL=SetBigItemByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetBigItemByUserId.js","sourceRoot":"","sources":["SetBigItemByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,kBAAmB,SAAQ,qBAAa;IAEzD,YACI,aAAqB,EACrB,aAAqB,EACrB,QAAgB,EAChB,KAAa,EACb,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAA;QACjC,UAAU,CAAC,OAAO,CAAC,GAAG,KAAK,CAAA;QAC3B,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,iCAAiC,EACjC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAtBD,qCAsBC"}
|
|
@@ -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 SetBigItemByUserId extends AcquireAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
inventoryName: string,
|
|
24
|
+
itemName: string,
|
|
25
|
+
count: string,
|
|
26
|
+
userId: string|null = "#{userId}",
|
|
27
|
+
) {
|
|
28
|
+
let properties: {[name: string]: any} = {};
|
|
29
|
+
|
|
30
|
+
properties["namespaceName"] = namespaceName
|
|
31
|
+
properties["inventoryName"] = inventoryName
|
|
32
|
+
properties["itemName"] = itemName
|
|
33
|
+
properties["count"] = count
|
|
34
|
+
properties["userId"] = userId
|
|
35
|
+
|
|
36
|
+
super(
|
|
37
|
+
"Gs2Inventory:SetBigItemByUserId",
|
|
38
|
+
properties,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AcquireAction } from "../../core/model";
|
|
2
|
+
import HeldCount from "../model/HeldCount";
|
|
3
|
+
export default class SetSimpleItemsByUserId extends AcquireAction {
|
|
4
|
+
constructor(namespaceName: string, inventoryName: string, counts: HeldCount[], userId?: string | null);
|
|
5
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 SetSimpleItemsByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, inventoryName, counts, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["inventoryName"] = inventoryName;
|
|
24
|
+
if (counts != null) {
|
|
25
|
+
properties["counts"] = counts.map(v => v.properties());
|
|
26
|
+
}
|
|
27
|
+
properties["userId"] = userId;
|
|
28
|
+
super("Gs2Inventory:SetSimpleItemsByUserId", properties);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.default = SetSimpleItemsByUserId;
|
|
32
|
+
//# sourceMappingURL=SetSimpleItemsByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetSimpleItemsByUserId.js","sourceRoot":"","sources":["SetSimpleItemsByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,sBAAuB,SAAQ,qBAAa;IAE7D,YACI,aAAqB,EACrB,aAAqB,EACrB,MAAmB,EACnB,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,IAAI,MAAM,IAAI,IAAI,EAAE;YAChB,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC9C,CAAC,CAAC;SACV;QACD,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,qCAAqC,EACrC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAvBD,yCAuBC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import {AcquireAction, ConsumeAction} from "../../core/model";
|
|
18
|
+
import HeldCount from "../model/HeldCount";
|
|
19
|
+
|
|
20
|
+
export default class SetSimpleItemsByUserId extends AcquireAction {
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
namespaceName: string,
|
|
24
|
+
inventoryName: string,
|
|
25
|
+
counts: HeldCount[],
|
|
26
|
+
userId: string|null = "#{userId}",
|
|
27
|
+
) {
|
|
28
|
+
let properties: {[name: string]: any} = {};
|
|
29
|
+
|
|
30
|
+
properties["namespaceName"] = namespaceName
|
|
31
|
+
properties["inventoryName"] = inventoryName
|
|
32
|
+
if (counts != null) {
|
|
33
|
+
properties["counts"] = counts.map(v => v.properties(
|
|
34
|
+
));
|
|
35
|
+
}
|
|
36
|
+
properties["userId"] = userId
|
|
37
|
+
|
|
38
|
+
super(
|
|
39
|
+
"Gs2Inventory:SetSimpleItemsByUserId",
|
|
40
|
+
properties,
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -4,7 +4,9 @@ import AcquireItemSetByUserId from "./AcquireItemSetByUserId";
|
|
|
4
4
|
import AddReferenceOfByUserId from "./AddReferenceOfByUserId";
|
|
5
5
|
import DeleteReferenceOfByUserId from "./DeleteReferenceOfByUserId";
|
|
6
6
|
import AcquireSimpleItemsByUserId from "./AcquireSimpleItemsByUserId";
|
|
7
|
+
import SetSimpleItemsByUserId from "./SetSimpleItemsByUserId";
|
|
7
8
|
import AcquireBigItemByUserId from "./AcquireBigItemByUserId";
|
|
9
|
+
import SetBigItemByUserId from "./SetBigItemByUserId";
|
|
8
10
|
import VerifyInventoryCurrentMaxCapacityByUserId from "./VerifyInventoryCurrentMaxCapacityByUserId";
|
|
9
11
|
import ConsumeItemSetByUserId from "./ConsumeItemSetByUserId";
|
|
10
12
|
import VerifyItemSetByUserId from "./VerifyItemSetByUserId";
|
|
@@ -13,4 +15,4 @@ import ConsumeSimpleItemsByUserId from "./ConsumeSimpleItemsByUserId";
|
|
|
13
15
|
import VerifySimpleItemByUserId from "./VerifySimpleItemByUserId";
|
|
14
16
|
import ConsumeBigItemByUserId from "./ConsumeBigItemByUserId";
|
|
15
17
|
import VerifyBigItemByUserId from "./VerifyBigItemByUserId";
|
|
16
|
-
export { AddCapacityByUserId, SetCapacityByUserId, AcquireItemSetByUserId, AddReferenceOfByUserId, DeleteReferenceOfByUserId, AcquireSimpleItemsByUserId, AcquireBigItemByUserId, VerifyInventoryCurrentMaxCapacityByUserId, ConsumeItemSetByUserId, VerifyItemSetByUserId, VerifyReferenceOfByUserId, ConsumeSimpleItemsByUserId, VerifySimpleItemByUserId, ConsumeBigItemByUserId, VerifyBigItemByUserId, };
|
|
18
|
+
export { AddCapacityByUserId, SetCapacityByUserId, AcquireItemSetByUserId, 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.AcquireBigItemByUserId = 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.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
|
|
@@ -29,8 +29,12 @@ const DeleteReferenceOfByUserId_1 = tslib_1.__importDefault(require("./DeleteRef
|
|
|
29
29
|
exports.DeleteReferenceOfByUserId = DeleteReferenceOfByUserId_1.default;
|
|
30
30
|
const AcquireSimpleItemsByUserId_1 = tslib_1.__importDefault(require("./AcquireSimpleItemsByUserId"));
|
|
31
31
|
exports.AcquireSimpleItemsByUserId = AcquireSimpleItemsByUserId_1.default;
|
|
32
|
+
const SetSimpleItemsByUserId_1 = tslib_1.__importDefault(require("./SetSimpleItemsByUserId"));
|
|
33
|
+
exports.SetSimpleItemsByUserId = SetSimpleItemsByUserId_1.default;
|
|
32
34
|
const AcquireBigItemByUserId_1 = tslib_1.__importDefault(require("./AcquireBigItemByUserId"));
|
|
33
35
|
exports.AcquireBigItemByUserId = AcquireBigItemByUserId_1.default;
|
|
36
|
+
const SetBigItemByUserId_1 = tslib_1.__importDefault(require("./SetBigItemByUserId"));
|
|
37
|
+
exports.SetBigItemByUserId = SetBigItemByUserId_1.default;
|
|
34
38
|
const VerifyInventoryCurrentMaxCapacityByUserId_1 = tslib_1.__importDefault(require("./VerifyInventoryCurrentMaxCapacityByUserId"));
|
|
35
39
|
exports.VerifyInventoryCurrentMaxCapacityByUserId = VerifyInventoryCurrentMaxCapacityByUserId_1.default;
|
|
36
40
|
const ConsumeItemSetByUserId_1 = tslib_1.__importDefault(require("./ConsumeItemSetByUserId"));
|
|
@@ -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;AAmBpD,8BAnBG,6BAAmB,CAmBH;AAlBvB,wFAAwD;AAmBpD,8BAnBG,6BAAmB,CAmBH;AAlBvB,8FAA8D;AAmB1D,iCAnBG,gCAAsB,CAmBH;AAlB1B,8FAA8D;AAmB1D,iCAnBG,gCAAsB,CAmBH;AAlB1B,oGAAoE;AAmBhE,oCAnBG,mCAAyB,CAmBH;AAlB7B,sGAAsE;AAmBlE,qCAnBG,oCAA0B,CAmBH;AAlB9B,8FAA8D;AAmB1D,iCAnBG,gCAAsB,CAmBH;AAlB1B,8FAA8D;AAmB1D,iCAnBG,gCAAsB,CAmBH;AAlB1B,sFAAsD;AAmBlD,6BAnBG,4BAAkB,CAmBH;AAlBtB,oIAAoG;AAmBhG,oDAnBG,mDAAyC,CAmBH;AAlB7C,8FAA8D;AAmB1D,iCAnBG,gCAAsB,CAmBH;AAlB1B,4FAA4D;AAmBxD,gCAnBG,+BAAqB,CAmBH;AAlBzB,oGAAoE;AAmBhE,oCAnBG,mCAAyB,CAmBH;AAlB7B,sGAAsE;AAmBlE,qCAnBG,oCAA0B,CAmBH;AAlB9B,kGAAkE;AAmB9D,mCAnBG,kCAAwB,CAmBH;AAlB5B,8FAA8D;AAmB1D,iCAnBG,gCAAsB,CAmBH;AAlB1B,4FAA4D;AAmBxD,gCAnBG,+BAAqB,CAmBH"}
|
|
@@ -19,7 +19,9 @@ import AcquireItemSetByUserId from "./AcquireItemSetByUserId";
|
|
|
19
19
|
import AddReferenceOfByUserId from "./AddReferenceOfByUserId";
|
|
20
20
|
import DeleteReferenceOfByUserId from "./DeleteReferenceOfByUserId";
|
|
21
21
|
import AcquireSimpleItemsByUserId from "./AcquireSimpleItemsByUserId";
|
|
22
|
+
import SetSimpleItemsByUserId from "./SetSimpleItemsByUserId";
|
|
22
23
|
import AcquireBigItemByUserId from "./AcquireBigItemByUserId";
|
|
24
|
+
import SetBigItemByUserId from "./SetBigItemByUserId";
|
|
23
25
|
import VerifyInventoryCurrentMaxCapacityByUserId from "./VerifyInventoryCurrentMaxCapacityByUserId";
|
|
24
26
|
import ConsumeItemSetByUserId from "./ConsumeItemSetByUserId";
|
|
25
27
|
import VerifyItemSetByUserId from "./VerifyItemSetByUserId";
|
|
@@ -36,7 +38,9 @@ export {
|
|
|
36
38
|
AddReferenceOfByUserId,
|
|
37
39
|
DeleteReferenceOfByUserId,
|
|
38
40
|
AcquireSimpleItemsByUserId,
|
|
41
|
+
SetSimpleItemsByUserId,
|
|
39
42
|
AcquireBigItemByUserId,
|
|
43
|
+
SetBigItemByUserId,
|
|
40
44
|
VerifyInventoryCurrentMaxCapacityByUserId,
|
|
41
45
|
ConsumeItemSetByUserId,
|
|
42
46
|
VerifyItemSetByUserId,
|
|
@@ -20,7 +20,9 @@ class PushByUserId extends model_1.AcquireAction {
|
|
|
20
20
|
constructor(namespaceName, jobs = null, userId = "#{userId}") {
|
|
21
21
|
let properties = {};
|
|
22
22
|
properties["namespaceName"] = namespaceName;
|
|
23
|
-
|
|
23
|
+
if (jobs != null) {
|
|
24
|
+
properties["jobs"] = jobs.map(v => v.properties());
|
|
25
|
+
}
|
|
24
26
|
properties["userId"] = userId;
|
|
25
27
|
super("Gs2JobQueue:PushByUserId", properties);
|
|
26
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushByUserId.js","sourceRoot":"","sources":["PushByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,YAAa,SAAQ,qBAAa;IAEnD,YACI,aAAqB,EACrB,OAAwB,IAAI,EAC5B,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"PushByUserId.js","sourceRoot":"","sources":["PushByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,YAAa,SAAQ,qBAAa;IAEnD,YACI,aAAqB,EACrB,OAAwB,IAAI,EAC5B,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,IAAI,IAAI,IAAI,IAAI,EAAE;YACd,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC1C,CAAC,CAAC;SACV;QACD,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,0BAA0B,EAC1B,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AArBD,+BAqBC"}
|
|
@@ -27,7 +27,10 @@ export default class PushByUserId extends AcquireAction {
|
|
|
27
27
|
let properties: {[name: string]: any} = {};
|
|
28
28
|
|
|
29
29
|
properties["namespaceName"] = namespaceName
|
|
30
|
-
|
|
30
|
+
if (jobs != null) {
|
|
31
|
+
properties["jobs"] = jobs.map(v => v.properties(
|
|
32
|
+
));
|
|
33
|
+
}
|
|
31
34
|
properties["userId"] = userId
|
|
32
35
|
|
|
33
36
|
super(
|
|
@@ -22,7 +22,9 @@ class DrawByUserId extends model_1.AcquireAction {
|
|
|
22
22
|
properties["namespaceName"] = namespaceName;
|
|
23
23
|
properties["lotteryName"] = lotteryName;
|
|
24
24
|
properties["count"] = count;
|
|
25
|
-
|
|
25
|
+
if (config != null) {
|
|
26
|
+
properties["config"] = config.map(v => v.properties());
|
|
27
|
+
}
|
|
26
28
|
properties["userId"] = userId;
|
|
27
29
|
super("Gs2Lottery:DrawByUserId", properties);
|
|
28
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawByUserId.js","sourceRoot":"","sources":["DrawByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,YAAa,SAAQ,qBAAa;IAEnD,YACI,aAAqB,EACrB,WAAmB,EACnB,KAAa,EACb,SAAwB,IAAI,EAC5B,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,
|
|
1
|
+
{"version":3,"file":"DrawByUserId.js","sourceRoot":"","sources":["DrawByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,YAAa,SAAQ,qBAAa;IAEnD,YACI,aAAqB,EACrB,WAAmB,EACnB,KAAa,EACb,SAAwB,IAAI,EAC5B,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,IAAI,MAAM,IAAI,IAAI,EAAE;YAChB,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC9C,CAAC,CAAC;SACV;QACD,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,yBAAyB,EACzB,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAzBD,+BAyBC"}
|
|
@@ -31,7 +31,10 @@ export default class DrawByUserId extends AcquireAction {
|
|
|
31
31
|
properties["namespaceName"] = namespaceName
|
|
32
32
|
properties["lotteryName"] = lotteryName
|
|
33
33
|
properties["count"] = count
|
|
34
|
-
|
|
34
|
+
if (config != null) {
|
|
35
|
+
properties["config"] = config.map(v => v.properties(
|
|
36
|
+
));
|
|
37
|
+
}
|
|
35
38
|
properties["userId"] = userId
|
|
36
39
|
|
|
37
40
|
super(
|
package/package.json
CHANGED
|
@@ -22,7 +22,9 @@ class CreateProgressByUserId extends model_1.AcquireAction {
|
|
|
22
22
|
properties["namespaceName"] = namespaceName;
|
|
23
23
|
properties["questModelId"] = questModelId;
|
|
24
24
|
properties["force"] = force;
|
|
25
|
-
|
|
25
|
+
if (config != null) {
|
|
26
|
+
properties["config"] = config.map(v => v.properties());
|
|
27
|
+
}
|
|
26
28
|
properties["userId"] = userId;
|
|
27
29
|
super("Gs2Quest:CreateProgressByUserId", properties);
|
|
28
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateProgressByUserId.js","sourceRoot":"","sources":["CreateProgressByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,sBAAuB,SAAQ,qBAAa;IAE7D,YACI,aAAqB,EACrB,YAAoB,EACpB,QAAsB,IAAI,EAC1B,SAAwB,IAAI,EAC5B,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,cAAc,CAAC,GAAG,YAAY,CAAA;QACzC,UAAU,CAAC,OAAO,CAAC,GAAG,KAAK,CAAA;QAC3B,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"CreateProgressByUserId.js","sourceRoot":"","sources":["CreateProgressByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,sBAAuB,SAAQ,qBAAa;IAE7D,YACI,aAAqB,EACrB,YAAoB,EACpB,QAAsB,IAAI,EAC1B,SAAwB,IAAI,EAC5B,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,cAAc,CAAC,GAAG,YAAY,CAAA;QACzC,UAAU,CAAC,OAAO,CAAC,GAAG,KAAK,CAAA;QAC3B,IAAI,MAAM,IAAI,IAAI,EAAE;YAChB,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC9C,CAAC,CAAC;SACV;QACD,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,iCAAiC,EACjC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAzBD,yCAyBC"}
|
|
@@ -31,7 +31,10 @@ export default class CreateProgressByUserId extends AcquireAction {
|
|
|
31
31
|
properties["namespaceName"] = namespaceName
|
|
32
32
|
properties["questModelId"] = questModelId
|
|
33
33
|
properties["force"] = force
|
|
34
|
-
|
|
34
|
+
if (config != null) {
|
|
35
|
+
properties["config"] = config.map(v => v.properties(
|
|
36
|
+
));
|
|
37
|
+
}
|
|
35
38
|
properties["userId"] = userId
|
|
36
39
|
|
|
37
40
|
super(
|