gs2-cdk 1.0.24 → 1.0.26
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/distributor/model/StampSheetResult.d.ts +1 -0
- package/distributor/model/StampSheetResult.js +3 -1
- package/distributor/model/StampSheetResult.js.map +1 -1
- package/distributor/model/StampSheetResult.ts +2 -0
- package/distributor/model/options/StampSheetResultOptions.d.ts +1 -0
- package/distributor/model/options/StampSheetResultOptions.ts +1 -0
- package/identifier/model/options/AttachSecurityPolicyOptions.d.ts +1 -0
- package/identifier/model/options/AttachSecurityPolicyOptions.ts +1 -0
- package/inventory/model/BigInventoryModel.d.ts +11 -0
- package/inventory/model/BigInventoryModel.js +26 -0
- package/inventory/model/BigInventoryModel.js.map +1 -0
- package/inventory/model/BigInventoryModel.ts +51 -0
- package/inventory/model/BigItemModel.d.ts +9 -0
- package/inventory/model/BigItemModel.js +22 -0
- package/inventory/model/BigItemModel.js.map +1 -0
- package/inventory/model/BigItemModel.ts +43 -0
- package/inventory/model/CurrentMasterData.d.ts +3 -1
- package/inventory/model/CurrentMasterData.js +5 -1
- package/inventory/model/CurrentMasterData.js.map +1 -1
- package/inventory/model/CurrentMasterData.ts +8 -0
- package/inventory/model/Namespace.d.ts +2 -1
- package/inventory/model/Namespace.js +2 -2
- package/inventory/model/Namespace.js.map +1 -1
- package/inventory/model/Namespace.ts +3 -0
- package/inventory/model/index.d.ts +5 -1
- package/inventory/model/index.js +5 -1
- package/inventory/model/index.js.map +1 -1
- package/inventory/model/index.ts +8 -0
- package/inventory/model/options/BigInventoryModelOptions.d.ts +3 -0
- package/inventory/model/options/BigInventoryModelOptions.js +3 -0
- package/inventory/model/options/BigInventoryModelOptions.js.map +1 -0
- package/inventory/model/options/BigInventoryModelOptions.ts +21 -0
- package/inventory/model/options/BigItemModelOptions.d.ts +3 -0
- package/inventory/model/options/BigItemModelOptions.js +18 -0
- package/inventory/model/options/BigItemModelOptions.js.map +1 -0
- package/inventory/model/options/BigItemModelOptions.ts +20 -0
- package/inventory/ref/BigInventoryModelRef.d.ts +12 -0
- package/inventory/ref/BigInventoryModelRef.js +52 -0
- package/inventory/ref/BigInventoryModelRef.js.map +1 -0
- package/inventory/ref/BigInventoryModelRef.ts +94 -0
- package/inventory/ref/BigItemModelRef.d.ts +11 -0
- package/inventory/ref/BigItemModelRef.js +51 -0
- package/inventory/ref/BigItemModelRef.js.map +1 -0
- package/inventory/ref/BigItemModelRef.ts +86 -0
- package/inventory/ref/index.d.ts +3 -1
- package/inventory/ref/index.js +5 -1
- package/inventory/ref/index.js.map +1 -1
- package/inventory/ref/index.ts +4 -0
- package/inventory/stampSheet/AcquireBigItemByUserId.d.ts +4 -0
- package/inventory/stampSheet/AcquireBigItemByUserId.js +31 -0
- package/inventory/stampSheet/AcquireBigItemByUserId.js.map +1 -0
- package/inventory/stampSheet/AcquireBigItemByUserId.ts +41 -0
- package/inventory/stampSheet/ConsumeBigItemByUserId.d.ts +4 -0
- package/inventory/stampSheet/ConsumeBigItemByUserId.js +31 -0
- package/inventory/stampSheet/ConsumeBigItemByUserId.js.map +1 -0
- package/inventory/stampSheet/ConsumeBigItemByUserId.ts +41 -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/key/model/GitHubApiKey.d.ts +1 -0
- package/key/model/GitHubApiKey.js +3 -1
- package/key/model/GitHubApiKey.js.map +1 -1
- package/key/model/GitHubApiKey.ts +2 -0
- package/key/model/options/GitHubApiKeyOptions.d.ts +1 -0
- package/key/model/options/GitHubApiKeyOptions.ts +1 -0
- package/log/model/options/NamespaceTypeIsBigqueryOptions.d.ts +1 -0
- package/log/model/options/NamespaceTypeIsBigqueryOptions.ts +1 -0
- package/log/model/options/NamespaceTypeIsFirehoseOptions.d.ts +1 -0
- package/log/model/options/NamespaceTypeIsFirehoseOptions.ts +1 -0
- package/log/model/options/NamespaceTypeIsGs2Options.d.ts +1 -0
- package/log/model/options/NamespaceTypeIsGs2Options.ts +1 -0
- package/lottery/model/PrizeLimit.d.ts +1 -0
- package/lottery/model/PrizeLimit.js +3 -0
- package/lottery/model/PrizeLimit.js.map +1 -1
- package/lottery/model/PrizeLimit.ts +2 -0
- package/lottery/model/options/PrizeLimitOptions.d.ts +1 -0
- package/lottery/model/options/PrizeLimitOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2RealtimeOptions.d.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2RealtimeOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2ScriptOptions.d.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2ScriptOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsNoneOptions.d.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsNoneOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2RealtimeOptions.d.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2RealtimeOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2ScriptOptions.d.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2ScriptOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsNoneOptions.d.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsNoneOptions.ts +1 -0
- package/news/model/Output.d.ts +1 -0
- package/news/model/Output.js +3 -0
- package/news/model/Output.js.map +1 -1
- package/news/model/Output.ts +2 -0
- package/news/model/Progress.d.ts +1 -0
- package/news/model/Progress.js +3 -0
- package/news/model/Progress.js.map +1 -1
- package/news/model/Progress.ts +2 -0
- package/news/model/options/OutputOptions.d.ts +1 -0
- package/news/model/options/OutputOptions.ts +1 -0
- package/news/model/options/ProgressOptions.d.ts +1 -0
- package/news/model/options/ProgressOptions.ts +1 -0
- package/package.json +1 -1
- package/serialKey/model/IssueJob.d.ts +1 -0
- package/serialKey/model/IssueJob.js +3 -1
- package/serialKey/model/IssueJob.js.map +1 -1
- package/serialKey/model/IssueJob.ts +2 -0
- package/serialKey/model/options/IssueJobOptions.d.ts +1 -0
- package/serialKey/model/options/IssueJobOptions.ts +1 -0
- package/stamina/ref/MaxStaminaTableRef.d.ts +1 -4
- package/stamina/ref/MaxStaminaTableRef.js +1 -16
- package/stamina/ref/MaxStaminaTableRef.js.map +1 -1
- package/stamina/ref/MaxStaminaTableRef.ts +0 -28
- package/stamina/ref/NamespaceRef.d.ts +0 -6
- package/stamina/ref/NamespaceRef.js +0 -12
- package/stamina/ref/NamespaceRef.js.map +1 -1
- package/stamina/ref/NamespaceRef.ts +0 -30
- package/stamina/ref/RecoverIntervalTableRef.d.ts +1 -4
- package/stamina/ref/RecoverIntervalTableRef.js +1 -16
- package/stamina/ref/RecoverIntervalTableRef.js.map +1 -1
- package/stamina/ref/RecoverIntervalTableRef.ts +0 -28
- package/stamina/ref/RecoverValueTableRef.d.ts +1 -4
- package/stamina/ref/RecoverValueTableRef.js +1 -16
- package/stamina/ref/RecoverValueTableRef.js.map +1 -1
- package/stamina/ref/RecoverValueTableRef.ts +0 -28
|
@@ -0,0 +1,52 @@
|
|
|
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 tslib_1 = require("tslib");
|
|
19
|
+
const func_1 = require("../../core/func");
|
|
20
|
+
const BigItemModelRef_1 = tslib_1.__importDefault(require("./BigItemModelRef"));
|
|
21
|
+
const AcquireBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/AcquireBigItemByUserId"));
|
|
22
|
+
const ConsumeBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ConsumeBigItemByUserId"));
|
|
23
|
+
class BigInventoryModelRef {
|
|
24
|
+
constructor(namespaceName, inventoryName) {
|
|
25
|
+
this.namespaceName = namespaceName;
|
|
26
|
+
this.inventoryName = inventoryName;
|
|
27
|
+
}
|
|
28
|
+
bigItemModel(itemName) {
|
|
29
|
+
return new BigItemModelRef_1.default(this.namespaceName, this.inventoryName, itemName);
|
|
30
|
+
}
|
|
31
|
+
acquireBigItem(itemName, acquireCount, userId = "#{userId}") {
|
|
32
|
+
return new AcquireBigItemByUserId_1.default(this.namespaceName, this.inventoryName, itemName, acquireCount, userId);
|
|
33
|
+
}
|
|
34
|
+
consumeBigItem(itemName, consumeCount, userId = "#{userId}") {
|
|
35
|
+
return new ConsumeBigItemByUserId_1.default(this.namespaceName, this.inventoryName, itemName, consumeCount, userId);
|
|
36
|
+
}
|
|
37
|
+
grn() {
|
|
38
|
+
return new func_1.Join(":", [
|
|
39
|
+
"grn",
|
|
40
|
+
"gs2",
|
|
41
|
+
func_1.GetAttr.region().str(),
|
|
42
|
+
func_1.GetAttr.ownerId().str(),
|
|
43
|
+
"inventory",
|
|
44
|
+
this.namespaceName,
|
|
45
|
+
"big",
|
|
46
|
+
"model",
|
|
47
|
+
this.inventoryName,
|
|
48
|
+
]).str();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.default = BigInventoryModelRef;
|
|
52
|
+
//# sourceMappingURL=BigInventoryModelRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BigInventoryModelRef.js","sourceRoot":"","sources":["BigInventoryModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,gFAAgD;AAChD,0GAA0E;AAC1E,0GAA0E;AAE1E,MAAqB,oBAAoB;IAIrC,YACI,aAAqB,EACrB,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,YAAY,CACf,QAAgB;QAEhB,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,CACX,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,QAAgB,EAChB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,QAAgB,EAChB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,YAAY,EACZ,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;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAxED,uCAwEC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 {GetAttr, Join} from "../../core/func";
|
|
18
|
+
import BigItemModelRef from "./BigItemModelRef";
|
|
19
|
+
import AcquireBigItemByUserId from "../stampSheet/AcquireBigItemByUserId";
|
|
20
|
+
import ConsumeBigItemByUserId from "../stampSheet/ConsumeBigItemByUserId";
|
|
21
|
+
|
|
22
|
+
export default class BigInventoryModelRef {
|
|
23
|
+
private readonly namespaceName: string;
|
|
24
|
+
private readonly inventoryName: string;
|
|
25
|
+
|
|
26
|
+
public constructor(
|
|
27
|
+
namespaceName: string,
|
|
28
|
+
inventoryName: string,
|
|
29
|
+
) {
|
|
30
|
+
this.namespaceName = namespaceName;
|
|
31
|
+
this.inventoryName = inventoryName;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public bigItemModel(
|
|
35
|
+
itemName: string,
|
|
36
|
+
): BigItemModelRef {
|
|
37
|
+
return new BigItemModelRef(
|
|
38
|
+
this.namespaceName,
|
|
39
|
+
this.inventoryName,
|
|
40
|
+
itemName,
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public acquireBigItem(
|
|
45
|
+
itemName: string,
|
|
46
|
+
acquireCount: string,
|
|
47
|
+
userId: string|null = "#{userId}",
|
|
48
|
+
): AcquireBigItemByUserId {
|
|
49
|
+
return new AcquireBigItemByUserId(
|
|
50
|
+
this.namespaceName,
|
|
51
|
+
this.inventoryName,
|
|
52
|
+
itemName,
|
|
53
|
+
acquireCount,
|
|
54
|
+
userId,
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public consumeBigItem(
|
|
59
|
+
itemName: string,
|
|
60
|
+
consumeCount: string,
|
|
61
|
+
userId: string|null = "#{userId}",
|
|
62
|
+
): ConsumeBigItemByUserId {
|
|
63
|
+
return new ConsumeBigItemByUserId(
|
|
64
|
+
this.namespaceName,
|
|
65
|
+
this.inventoryName,
|
|
66
|
+
itemName,
|
|
67
|
+
consumeCount,
|
|
68
|
+
userId,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public grn(
|
|
73
|
+
): string {
|
|
74
|
+
return new Join(
|
|
75
|
+
":",
|
|
76
|
+
[
|
|
77
|
+
"grn",
|
|
78
|
+
"gs2",
|
|
79
|
+
GetAttr.region(
|
|
80
|
+
).str(
|
|
81
|
+
),
|
|
82
|
+
GetAttr.ownerId(
|
|
83
|
+
).str(
|
|
84
|
+
),
|
|
85
|
+
"inventory",
|
|
86
|
+
this.namespaceName,
|
|
87
|
+
"big",
|
|
88
|
+
"model",
|
|
89
|
+
this.inventoryName,
|
|
90
|
+
],
|
|
91
|
+
).str(
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import AcquireBigItemByUserId from "../stampSheet/AcquireBigItemByUserId";
|
|
2
|
+
import ConsumeBigItemByUserId from "../stampSheet/ConsumeBigItemByUserId";
|
|
3
|
+
export default class BigItemModelRef {
|
|
4
|
+
private readonly namespaceName;
|
|
5
|
+
private readonly inventoryName;
|
|
6
|
+
private readonly itemName;
|
|
7
|
+
constructor(namespaceName: string, inventoryName: string, itemName: string);
|
|
8
|
+
acquireBigItem(acquireCount: string, userId?: string | null): AcquireBigItemByUserId;
|
|
9
|
+
consumeBigItem(consumeCount: string, userId?: string | null): ConsumeBigItemByUserId;
|
|
10
|
+
grn(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 tslib_1 = require("tslib");
|
|
19
|
+
const func_1 = require("../../core/func");
|
|
20
|
+
const AcquireBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/AcquireBigItemByUserId"));
|
|
21
|
+
const ConsumeBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ConsumeBigItemByUserId"));
|
|
22
|
+
class BigItemModelRef {
|
|
23
|
+
constructor(namespaceName, inventoryName, itemName) {
|
|
24
|
+
this.namespaceName = namespaceName;
|
|
25
|
+
this.inventoryName = inventoryName;
|
|
26
|
+
this.itemName = itemName;
|
|
27
|
+
}
|
|
28
|
+
acquireBigItem(acquireCount, userId = "#{userId}") {
|
|
29
|
+
return new AcquireBigItemByUserId_1.default(this.namespaceName, this.inventoryName, this.itemName, acquireCount, userId);
|
|
30
|
+
}
|
|
31
|
+
consumeBigItem(consumeCount, userId = "#{userId}") {
|
|
32
|
+
return new ConsumeBigItemByUserId_1.default(this.namespaceName, this.inventoryName, this.itemName, consumeCount, userId);
|
|
33
|
+
}
|
|
34
|
+
grn() {
|
|
35
|
+
return new func_1.Join(":", [
|
|
36
|
+
"grn",
|
|
37
|
+
"gs2",
|
|
38
|
+
func_1.GetAttr.region().str(),
|
|
39
|
+
func_1.GetAttr.ownerId().str(),
|
|
40
|
+
"inventory",
|
|
41
|
+
this.namespaceName,
|
|
42
|
+
"big",
|
|
43
|
+
"model",
|
|
44
|
+
this.inventoryName,
|
|
45
|
+
"item",
|
|
46
|
+
this.itemName,
|
|
47
|
+
]).str();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.default = BigItemModelRef;
|
|
51
|
+
//# sourceMappingURL=BigItemModelRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BigItemModelRef.js","sourceRoot":"","sources":["BigItemModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0GAA0E;AAC1E,0GAA0E;AAE1E,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,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;AAjED,kCAiEC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 {GetAttr, Join} from "../../core/func";
|
|
18
|
+
import AcquireBigItemByUserId from "../stampSheet/AcquireBigItemByUserId";
|
|
19
|
+
import ConsumeBigItemByUserId from "../stampSheet/ConsumeBigItemByUserId";
|
|
20
|
+
|
|
21
|
+
export default class BigItemModelRef {
|
|
22
|
+
private readonly namespaceName: string;
|
|
23
|
+
private readonly inventoryName: string;
|
|
24
|
+
private readonly itemName: string;
|
|
25
|
+
|
|
26
|
+
public constructor(
|
|
27
|
+
namespaceName: string,
|
|
28
|
+
inventoryName: string,
|
|
29
|
+
itemName: string,
|
|
30
|
+
) {
|
|
31
|
+
this.namespaceName = namespaceName;
|
|
32
|
+
this.inventoryName = inventoryName;
|
|
33
|
+
this.itemName = itemName;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public acquireBigItem(
|
|
37
|
+
acquireCount: string,
|
|
38
|
+
userId: string|null = "#{userId}",
|
|
39
|
+
): AcquireBigItemByUserId {
|
|
40
|
+
return new AcquireBigItemByUserId(
|
|
41
|
+
this.namespaceName,
|
|
42
|
+
this.inventoryName,
|
|
43
|
+
this.itemName,
|
|
44
|
+
acquireCount,
|
|
45
|
+
userId,
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public consumeBigItem(
|
|
50
|
+
consumeCount: string,
|
|
51
|
+
userId: string|null = "#{userId}",
|
|
52
|
+
): ConsumeBigItemByUserId {
|
|
53
|
+
return new ConsumeBigItemByUserId(
|
|
54
|
+
this.namespaceName,
|
|
55
|
+
this.inventoryName,
|
|
56
|
+
this.itemName,
|
|
57
|
+
consumeCount,
|
|
58
|
+
userId,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
public grn(
|
|
63
|
+
): string {
|
|
64
|
+
return new Join(
|
|
65
|
+
":",
|
|
66
|
+
[
|
|
67
|
+
"grn",
|
|
68
|
+
"gs2",
|
|
69
|
+
GetAttr.region(
|
|
70
|
+
).str(
|
|
71
|
+
),
|
|
72
|
+
GetAttr.ownerId(
|
|
73
|
+
).str(
|
|
74
|
+
),
|
|
75
|
+
"inventory",
|
|
76
|
+
this.namespaceName,
|
|
77
|
+
"big",
|
|
78
|
+
"model",
|
|
79
|
+
this.inventoryName,
|
|
80
|
+
"item",
|
|
81
|
+
this.itemName,
|
|
82
|
+
],
|
|
83
|
+
).str(
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
}
|
package/inventory/ref/index.d.ts
CHANGED
|
@@ -3,4 +3,6 @@ import InventoryModelRef from "./InventoryModelRef";
|
|
|
3
3
|
import ItemModelRef from "./ItemModelRef";
|
|
4
4
|
import SimpleInventoryModelRef from "./SimpleInventoryModelRef";
|
|
5
5
|
import SimpleItemModelRef from "./SimpleItemModelRef";
|
|
6
|
-
|
|
6
|
+
import BigInventoryModelRef from "./BigInventoryModelRef";
|
|
7
|
+
import BigItemModelRef from "./BigItemModelRef";
|
|
8
|
+
export { NamespaceRef, InventoryModelRef, ItemModelRef, SimpleInventoryModelRef, SimpleItemModelRef, BigInventoryModelRef, BigItemModelRef, };
|
package/inventory/ref/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SimpleItemModelRef = exports.SimpleInventoryModelRef = exports.ItemModelRef = exports.InventoryModelRef = exports.NamespaceRef = void 0;
|
|
3
|
+
exports.BigItemModelRef = exports.BigInventoryModelRef = exports.SimpleItemModelRef = exports.SimpleInventoryModelRef = exports.ItemModelRef = exports.InventoryModelRef = exports.NamespaceRef = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -27,4 +27,8 @@ const SimpleInventoryModelRef_1 = tslib_1.__importDefault(require("./SimpleInven
|
|
|
27
27
|
exports.SimpleInventoryModelRef = SimpleInventoryModelRef_1.default;
|
|
28
28
|
const SimpleItemModelRef_1 = tslib_1.__importDefault(require("./SimpleItemModelRef"));
|
|
29
29
|
exports.SimpleItemModelRef = SimpleItemModelRef_1.default;
|
|
30
|
+
const BigInventoryModelRef_1 = tslib_1.__importDefault(require("./BigInventoryModelRef"));
|
|
31
|
+
exports.BigInventoryModelRef = BigInventoryModelRef_1.default;
|
|
32
|
+
const BigItemModelRef_1 = tslib_1.__importDefault(require("./BigItemModelRef"));
|
|
33
|
+
exports.BigItemModelRef = BigItemModelRef_1.default;
|
|
30
34
|
//# 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;AAStC,uBATG,sBAAY,CASH;AARhB,oFAAoD;AAShD,4BATG,2BAAiB,CASH;AARrB,0EAA0C;AAStC,uBATG,sBAAY,CASH;AARhB,gGAAgE;AAS5D,kCATG,iCAAuB,CASH;AAR3B,sFAAsD;AASlD,6BATG,4BAAkB,CASH;AARtB,0FAA0D;AAStD,+BATG,8BAAoB,CASH;AARxB,gFAAgD;AAS5C,0BATG,yBAAe,CASH"}
|
package/inventory/ref/index.ts
CHANGED
|
@@ -18,6 +18,8 @@ import InventoryModelRef from "./InventoryModelRef";
|
|
|
18
18
|
import ItemModelRef from "./ItemModelRef";
|
|
19
19
|
import SimpleInventoryModelRef from "./SimpleInventoryModelRef";
|
|
20
20
|
import SimpleItemModelRef from "./SimpleItemModelRef";
|
|
21
|
+
import BigInventoryModelRef from "./BigInventoryModelRef";
|
|
22
|
+
import BigItemModelRef from "./BigItemModelRef";
|
|
21
23
|
|
|
22
24
|
export {
|
|
23
25
|
NamespaceRef,
|
|
@@ -25,4 +27,6 @@ export {
|
|
|
25
27
|
ItemModelRef,
|
|
26
28
|
SimpleInventoryModelRef,
|
|
27
29
|
SimpleItemModelRef,
|
|
30
|
+
BigInventoryModelRef,
|
|
31
|
+
BigItemModelRef,
|
|
28
32
|
}
|
|
@@ -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 AcquireBigItemByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, inventoryName, itemName, acquireCount, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["inventoryName"] = inventoryName;
|
|
24
|
+
properties["itemName"] = itemName;
|
|
25
|
+
properties["acquireCount"] = acquireCount;
|
|
26
|
+
properties["userId"] = userId;
|
|
27
|
+
super("Gs2Inventory:AcquireBigItemByUserId", properties);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.default = AcquireBigItemByUserId;
|
|
31
|
+
//# sourceMappingURL=AcquireBigItemByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcquireBigItemByUserId.js","sourceRoot":"","sources":["AcquireBigItemByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,sBAAuB,SAAQ,qBAAa;IAE7D,YACI,aAAqB,EACrB,aAAqB,EACrB,QAAgB,EAChB,YAAoB,EACpB,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,cAAc,CAAC,GAAG,YAAY,CAAA;QACzC,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,qCAAqC,EACrC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAtBD,yCAsBC"}
|
|
@@ -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 AcquireBigItemByUserId extends AcquireAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
inventoryName: string,
|
|
24
|
+
itemName: string,
|
|
25
|
+
acquireCount: 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["acquireCount"] = acquireCount
|
|
34
|
+
properties["userId"] = userId
|
|
35
|
+
|
|
36
|
+
super(
|
|
37
|
+
"Gs2Inventory:AcquireBigItemByUserId",
|
|
38
|
+
properties,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -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 ConsumeBigItemByUserId extends model_1.ConsumeAction {
|
|
20
|
+
constructor(namespaceName, inventoryName, itemName, consumeCount, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["inventoryName"] = inventoryName;
|
|
24
|
+
properties["itemName"] = itemName;
|
|
25
|
+
properties["consumeCount"] = consumeCount;
|
|
26
|
+
properties["userId"] = userId;
|
|
27
|
+
super("Gs2Inventory:ConsumeBigItemByUserId", properties);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.default = ConsumeBigItemByUserId;
|
|
31
|
+
//# sourceMappingURL=ConsumeBigItemByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsumeBigItemByUserId.js","sourceRoot":"","sources":["ConsumeBigItemByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,sBAAuB,SAAQ,qBAAa;IAE7D,YACI,aAAqB,EACrB,aAAqB,EACrB,QAAgB,EAChB,YAAoB,EACpB,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,cAAc,CAAC,GAAG,YAAY,CAAA;QACzC,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,qCAAqC,EACrC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAtBD,yCAsBC"}
|
|
@@ -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 ConsumeBigItemByUserId extends ConsumeAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
inventoryName: string,
|
|
24
|
+
itemName: string,
|
|
25
|
+
consumeCount: 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["consumeCount"] = consumeCount
|
|
34
|
+
properties["userId"] = userId
|
|
35
|
+
|
|
36
|
+
super(
|
|
37
|
+
"Gs2Inventory:ConsumeBigItemByUserId",
|
|
38
|
+
properties,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -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 AcquireBigItemByUserId from "./AcquireBigItemByUserId";
|
|
7
8
|
import ConsumeItemSetByUserId from "./ConsumeItemSetByUserId";
|
|
8
9
|
import VerifyReferenceOfByUserId from "./VerifyReferenceOfByUserId";
|
|
9
10
|
import ConsumeSimpleItemsByUserId from "./ConsumeSimpleItemsByUserId";
|
|
10
|
-
|
|
11
|
+
import ConsumeBigItemByUserId from "./ConsumeBigItemByUserId";
|
|
12
|
+
export { AddCapacityByUserId, SetCapacityByUserId, AcquireItemSetByUserId, AddReferenceOfByUserId, DeleteReferenceOfByUserId, AcquireSimpleItemsByUserId, AcquireBigItemByUserId, ConsumeItemSetByUserId, VerifyReferenceOfByUserId, ConsumeSimpleItemsByUserId, ConsumeBigItemByUserId, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConsumeSimpleItemsByUserId = exports.VerifyReferenceOfByUserId = exports.ConsumeItemSetByUserId = exports.AcquireSimpleItemsByUserId = exports.DeleteReferenceOfByUserId = exports.AddReferenceOfByUserId = exports.AcquireItemSetByUserId = exports.SetCapacityByUserId = exports.AddCapacityByUserId = void 0;
|
|
3
|
+
exports.ConsumeBigItemByUserId = exports.ConsumeSimpleItemsByUserId = exports.VerifyReferenceOfByUserId = exports.ConsumeItemSetByUserId = exports.AcquireBigItemByUserId = 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,10 +29,14 @@ 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 AcquireBigItemByUserId_1 = tslib_1.__importDefault(require("./AcquireBigItemByUserId"));
|
|
33
|
+
exports.AcquireBigItemByUserId = AcquireBigItemByUserId_1.default;
|
|
32
34
|
const ConsumeItemSetByUserId_1 = tslib_1.__importDefault(require("./ConsumeItemSetByUserId"));
|
|
33
35
|
exports.ConsumeItemSetByUserId = ConsumeItemSetByUserId_1.default;
|
|
34
36
|
const VerifyReferenceOfByUserId_1 = tslib_1.__importDefault(require("./VerifyReferenceOfByUserId"));
|
|
35
37
|
exports.VerifyReferenceOfByUserId = VerifyReferenceOfByUserId_1.default;
|
|
36
38
|
const ConsumeSimpleItemsByUserId_1 = tslib_1.__importDefault(require("./ConsumeSimpleItemsByUserId"));
|
|
37
39
|
exports.ConsumeSimpleItemsByUserId = ConsumeSimpleItemsByUserId_1.default;
|
|
40
|
+
const ConsumeBigItemByUserId_1 = tslib_1.__importDefault(require("./ConsumeBigItemByUserId"));
|
|
41
|
+
exports.ConsumeBigItemByUserId = ConsumeBigItemByUserId_1.default;
|
|
38
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -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;AAapD,8BAbG,6BAAmB,CAaH;AAZvB,wFAAwD;AAapD,8BAbG,6BAAmB,CAaH;AAZvB,8FAA8D;AAa1D,iCAbG,gCAAsB,CAaH;AAZ1B,8FAA8D;AAa1D,iCAbG,gCAAsB,CAaH;AAZ1B,oGAAoE;AAahE,oCAbG,mCAAyB,CAaH;AAZ7B,sGAAsE;AAalE,qCAbG,oCAA0B,CAaH;AAZ9B,8FAA8D;AAa1D,iCAbG,gCAAsB,CAaH;AAZ1B,8FAA8D;AAa1D,iCAbG,gCAAsB,CAaH;AAZ1B,oGAAoE;AAahE,oCAbG,mCAAyB,CAaH;AAZ7B,sGAAsE;AAalE,qCAbG,oCAA0B,CAaH;AAZ9B,8FAA8D;AAa1D,iCAbG,gCAAsB,CAaH"}
|
|
@@ -19,9 +19,11 @@ import AcquireItemSetByUserId from "./AcquireItemSetByUserId";
|
|
|
19
19
|
import AddReferenceOfByUserId from "./AddReferenceOfByUserId";
|
|
20
20
|
import DeleteReferenceOfByUserId from "./DeleteReferenceOfByUserId";
|
|
21
21
|
import AcquireSimpleItemsByUserId from "./AcquireSimpleItemsByUserId";
|
|
22
|
+
import AcquireBigItemByUserId from "./AcquireBigItemByUserId";
|
|
22
23
|
import ConsumeItemSetByUserId from "./ConsumeItemSetByUserId";
|
|
23
24
|
import VerifyReferenceOfByUserId from "./VerifyReferenceOfByUserId";
|
|
24
25
|
import ConsumeSimpleItemsByUserId from "./ConsumeSimpleItemsByUserId";
|
|
26
|
+
import ConsumeBigItemByUserId from "./ConsumeBigItemByUserId";
|
|
25
27
|
|
|
26
28
|
export {
|
|
27
29
|
AddCapacityByUserId,
|
|
@@ -30,7 +32,9 @@ export {
|
|
|
30
32
|
AddReferenceOfByUserId,
|
|
31
33
|
DeleteReferenceOfByUserId,
|
|
32
34
|
AcquireSimpleItemsByUserId,
|
|
35
|
+
AcquireBigItemByUserId,
|
|
33
36
|
ConsumeItemSetByUserId,
|
|
34
37
|
VerifyReferenceOfByUserId,
|
|
35
38
|
ConsumeSimpleItemsByUserId,
|
|
39
|
+
ConsumeBigItemByUserId,
|
|
36
40
|
}
|
|
@@ -4,6 +4,7 @@ export default class GitHubApiKey {
|
|
|
4
4
|
private readonly apiKey;
|
|
5
5
|
private readonly encryptionKeyName;
|
|
6
6
|
private readonly description;
|
|
7
|
+
private readonly revision;
|
|
7
8
|
constructor(name: string, apiKey: string, encryptionKeyName: string, options?: GitHubApiKeyOptions | null);
|
|
8
9
|
properties(): {
|
|
9
10
|
[name: string]: any;
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class GitHubApiKey {
|
|
4
4
|
constructor(name, apiKey, encryptionKeyName, options = null) {
|
|
5
|
-
var _a;
|
|
5
|
+
var _a, _b;
|
|
6
6
|
this.description = null;
|
|
7
|
+
this.revision = null;
|
|
7
8
|
this.name = name;
|
|
8
9
|
this.apiKey = apiKey;
|
|
9
10
|
this.encryptionKeyName = encryptionKeyName;
|
|
10
11
|
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
12
|
+
this.revision = (_b = options === null || options === void 0 ? void 0 : options.revision) !== null && _b !== void 0 ? _b : null;
|
|
11
13
|
}
|
|
12
14
|
properties() {
|
|
13
15
|
let properties = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitHubApiKey.js","sourceRoot":"","sources":["GitHubApiKey.ts"],"names":[],"mappings":";;AAiBA,MAAqB,YAAY;
|
|
1
|
+
{"version":3,"file":"GitHubApiKey.js","sourceRoot":"","sources":["GitHubApiKey.ts"],"names":[],"mappings":";;AAiBA,MAAqB,YAAY;IAO7B,YACI,IAAY,EACZ,MAAc,EACd,iBAAyB,EACzB,UAAoC,IAAI;;QAP3B,gBAAW,GAAgB,IAAI,CAAC;QAChC,aAAQ,GAAgB,IAAI,CAAC;QAQ1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAvCD,+BAuCC"}
|
|
@@ -20,6 +20,7 @@ export default class GitHubApiKey {
|
|
|
20
20
|
private readonly apiKey: string;
|
|
21
21
|
private readonly encryptionKeyName: string;
|
|
22
22
|
private readonly description: string|null = null;
|
|
23
|
+
private readonly revision: number|null = null;
|
|
23
24
|
|
|
24
25
|
public constructor(
|
|
25
26
|
name: string,
|
|
@@ -31,6 +32,7 @@ export default class GitHubApiKey {
|
|
|
31
32
|
this.apiKey = apiKey;
|
|
32
33
|
this.encryptionKeyName = encryptionKeyName;
|
|
33
34
|
this.description = options?.description ?? null;
|
|
35
|
+
this.revision = options?.revision ?? null;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
public properties(
|