gs2-cdk 1.0.25 → 1.0.27
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/schedule/ref/NamespaceRef.d.ts +2 -0
- package/schedule/ref/NamespaceRef.js +5 -0
- package/schedule/ref/NamespaceRef.js.map +1 -1
- package/schedule/ref/NamespaceRef.ts +16 -0
- package/schedule/stampSheet/TriggerByUserId.d.ts +4 -0
- package/schedule/stampSheet/TriggerByUserId.js +31 -0
- package/schedule/stampSheet/TriggerByUserId.js.map +1 -0
- package/schedule/stampSheet/TriggerByUserId.ts +41 -0
- package/schedule/stampSheet/index.d.ts +2 -1
- package/schedule/stampSheet/index.js +5 -1
- package/schedule/stampSheet/index.js.map +1 -1
- package/schedule/stampSheet/index.ts +2 -0
- 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
|
@@ -8,6 +8,7 @@ export default class StampSheetResult {
|
|
|
8
8
|
private readonly taskResults;
|
|
9
9
|
private readonly sheetResult;
|
|
10
10
|
private readonly nextTransactionId;
|
|
11
|
+
private readonly revision;
|
|
11
12
|
constructor(userId: string, transactionId: string, sheetRequest: AcquireAction, options?: StampSheetResultOptions | null);
|
|
12
13
|
properties(): {
|
|
13
14
|
[name: string]: any;
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class StampSheetResult {
|
|
4
4
|
constructor(userId, transactionId, sheetRequest, options = null) {
|
|
5
|
-
var _a, _b, _c, _d;
|
|
5
|
+
var _a, _b, _c, _d, _e;
|
|
6
6
|
this.taskRequests = null;
|
|
7
7
|
this.taskResults = null;
|
|
8
8
|
this.sheetResult = null;
|
|
9
9
|
this.nextTransactionId = null;
|
|
10
|
+
this.revision = null;
|
|
10
11
|
this.userId = userId;
|
|
11
12
|
this.transactionId = transactionId;
|
|
12
13
|
this.sheetRequest = sheetRequest;
|
|
@@ -14,6 +15,7 @@ class StampSheetResult {
|
|
|
14
15
|
this.taskResults = (_b = options === null || options === void 0 ? void 0 : options.taskResults) !== null && _b !== void 0 ? _b : null;
|
|
15
16
|
this.sheetResult = (_c = options === null || options === void 0 ? void 0 : options.sheetResult) !== null && _c !== void 0 ? _c : null;
|
|
16
17
|
this.nextTransactionId = (_d = options === null || options === void 0 ? void 0 : options.nextTransactionId) !== null && _d !== void 0 ? _d : null;
|
|
18
|
+
this.revision = (_e = options === null || options === void 0 ? void 0 : options.revision) !== null && _e !== void 0 ? _e : null;
|
|
17
19
|
}
|
|
18
20
|
properties() {
|
|
19
21
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StampSheetResult.js","sourceRoot":"","sources":["StampSheetResult.ts"],"names":[],"mappings":";;AAmBA,MAAqB,gBAAgB;
|
|
1
|
+
{"version":3,"file":"StampSheetResult.js","sourceRoot":"","sources":["StampSheetResult.ts"],"names":[],"mappings":";;AAmBA,MAAqB,gBAAgB;IAUjC,YACI,MAAc,EACd,aAAqB,EACrB,YAA2B,EAC3B,UAAwC,IAAI;;QAV/B,iBAAY,GAAyB,IAAI,CAAC;QAC1C,gBAAW,GAAkB,IAAI,CAAC;QAClC,gBAAW,GAAgB,IAAI,CAAC;QAChC,sBAAiB,GAAgB,IAAI,CAAC;QACtC,aAAQ,GAAgB,IAAI,CAAC;QAQ1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,YAAY,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,mCAAI,IAAI,CAAC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C,WAAW,CAAC;SAChD;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;AAxDD,mCAwDC"}
|
|
@@ -25,6 +25,7 @@ export default class StampSheetResult {
|
|
|
25
25
|
private readonly taskResults: string[]|null = null;
|
|
26
26
|
private readonly sheetResult: string|null = null;
|
|
27
27
|
private readonly nextTransactionId: string|null = null;
|
|
28
|
+
private readonly revision: number|null = null;
|
|
28
29
|
|
|
29
30
|
public constructor(
|
|
30
31
|
userId: string,
|
|
@@ -39,6 +40,7 @@ export default class StampSheetResult {
|
|
|
39
40
|
this.taskResults = options?.taskResults ?? null;
|
|
40
41
|
this.sheetResult = options?.sheetResult ?? null;
|
|
41
42
|
this.nextTransactionId = options?.nextTransactionId ?? null;
|
|
43
|
+
this.revision = options?.revision ?? null;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
public properties(
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import BigItemModel from "./BigItemModel";
|
|
2
|
+
import { BigInventoryModelOptions } from "./options/BigInventoryModelOptions";
|
|
3
|
+
export default class BigInventoryModel {
|
|
4
|
+
private readonly name;
|
|
5
|
+
private readonly bigItemModels;
|
|
6
|
+
private readonly metadata;
|
|
7
|
+
constructor(name: string, bigItemModels: BigItemModel[], options?: BigInventoryModelOptions | null);
|
|
8
|
+
properties(): {
|
|
9
|
+
[name: string]: any;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class BigInventoryModel {
|
|
4
|
+
constructor(name, bigItemModels, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.metadata = null;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.bigItemModels = bigItemModels;
|
|
9
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
10
|
+
}
|
|
11
|
+
properties() {
|
|
12
|
+
let properties = {};
|
|
13
|
+
if (this.name != null) {
|
|
14
|
+
properties["name"] = this.name;
|
|
15
|
+
}
|
|
16
|
+
if (this.metadata != null) {
|
|
17
|
+
properties["metadata"] = this.metadata;
|
|
18
|
+
}
|
|
19
|
+
if (this.bigItemModels != null) {
|
|
20
|
+
properties["bigItemModels"] = this.bigItemModels.map(v => v.properties());
|
|
21
|
+
}
|
|
22
|
+
return properties;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.default = BigInventoryModel;
|
|
26
|
+
//# sourceMappingURL=BigInventoryModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BigInventoryModel.js","sourceRoot":"","sources":["BigInventoryModel.ts"],"names":[],"mappings":";;AAkBA,MAAqB,iBAAiB;IAKlC,YACI,IAAY,EACZ,aAA6B,EAC7B,UAAyC,IAAI;;QALhC,aAAQ,GAAgB,IAAI,CAAC;QAO1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,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,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACjE,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,oCAgCC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
import BigItemModel from "./BigItemModel";
|
|
17
|
+
import { BigInventoryModelOptions } from "./options/BigInventoryModelOptions";
|
|
18
|
+
|
|
19
|
+
export default class BigInventoryModel {
|
|
20
|
+
private readonly name: string;
|
|
21
|
+
private readonly bigItemModels: BigItemModel[];
|
|
22
|
+
private readonly metadata: string|null = null;
|
|
23
|
+
|
|
24
|
+
public constructor(
|
|
25
|
+
name: string,
|
|
26
|
+
bigItemModels: BigItemModel[],
|
|
27
|
+
options: BigInventoryModelOptions|null = null,
|
|
28
|
+
) {
|
|
29
|
+
this.name = name;
|
|
30
|
+
this.bigItemModels = bigItemModels;
|
|
31
|
+
this.metadata = options?.metadata ?? null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public properties(
|
|
35
|
+
): {[name: string]: any} {
|
|
36
|
+
let properties: {[name: string]: any} = {};
|
|
37
|
+
|
|
38
|
+
if (this.name != null) {
|
|
39
|
+
properties["name"] = this.name;
|
|
40
|
+
}
|
|
41
|
+
if (this.metadata != null) {
|
|
42
|
+
properties["metadata"] = this.metadata;
|
|
43
|
+
}
|
|
44
|
+
if (this.bigItemModels != null) {
|
|
45
|
+
properties["bigItemModels"] = this.bigItemModels.map(v => v.properties(
|
|
46
|
+
));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return properties;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BigItemModelOptions } from "./options/BigItemModelOptions";
|
|
2
|
+
export default class BigItemModel {
|
|
3
|
+
private readonly name;
|
|
4
|
+
private readonly metadata;
|
|
5
|
+
constructor(name: string, options?: BigItemModelOptions | null);
|
|
6
|
+
properties(): {
|
|
7
|
+
[name: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class BigItemModel {
|
|
4
|
+
constructor(name, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.metadata = null;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
9
|
+
}
|
|
10
|
+
properties() {
|
|
11
|
+
let properties = {};
|
|
12
|
+
if (this.name != null) {
|
|
13
|
+
properties["name"] = this.name;
|
|
14
|
+
}
|
|
15
|
+
if (this.metadata != null) {
|
|
16
|
+
properties["metadata"] = this.metadata;
|
|
17
|
+
}
|
|
18
|
+
return properties;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = BigItemModel;
|
|
22
|
+
//# sourceMappingURL=BigItemModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BigItemModel.js","sourceRoot":"","sources":["BigItemModel.ts"],"names":[],"mappings":";;AAiBA,MAAqB,YAAY;IAI7B,YACI,IAAY,EACZ,UAAoC,IAAI;;QAJ3B,aAAQ,GAAgB,IAAI,CAAC;QAM1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,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,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAzBD,+BAyBC"}
|
|
@@ -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
|
+
import { BigItemModelOptions } from "./options/BigItemModelOptions";
|
|
17
|
+
|
|
18
|
+
export default class BigItemModel {
|
|
19
|
+
private readonly name: string;
|
|
20
|
+
private readonly metadata: string|null = null;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
name: string,
|
|
24
|
+
options: BigItemModelOptions|null = null,
|
|
25
|
+
) {
|
|
26
|
+
this.name = name;
|
|
27
|
+
this.metadata = options?.metadata ?? null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public properties(
|
|
31
|
+
): {[name: string]: any} {
|
|
32
|
+
let properties: {[name: string]: any} = {};
|
|
33
|
+
|
|
34
|
+
if (this.name != null) {
|
|
35
|
+
properties["name"] = this.name;
|
|
36
|
+
}
|
|
37
|
+
if (this.metadata != null) {
|
|
38
|
+
properties["metadata"] = this.metadata;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return properties;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { CdkResource, Stack } from "../../core/model";
|
|
2
2
|
import InventoryModel from "./InventoryModel";
|
|
3
3
|
import SimpleInventoryModel from "./SimpleInventoryModel";
|
|
4
|
+
import BigInventoryModel from "./BigInventoryModel";
|
|
4
5
|
export default class CurrentMasterData extends CdkResource {
|
|
5
6
|
private readonly version;
|
|
6
7
|
private readonly namespaceName;
|
|
7
8
|
private readonly inventoryModels;
|
|
8
9
|
private readonly simpleInventoryModels;
|
|
9
|
-
|
|
10
|
+
private readonly bigInventoryModels;
|
|
11
|
+
constructor(stack: Stack, namespaceName: string, inventoryModels: InventoryModel[], simpleInventoryModels: SimpleInventoryModel[], bigInventoryModels: BigInventoryModel[]);
|
|
10
12
|
alternateKeys(): string;
|
|
11
13
|
resourceType(): string;
|
|
12
14
|
properties(): {
|
|
@@ -17,12 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
*/
|
|
18
18
|
const model_1 = require("../../core/model");
|
|
19
19
|
class CurrentMasterData extends model_1.CdkResource {
|
|
20
|
-
constructor(stack, namespaceName, inventoryModels, simpleInventoryModels) {
|
|
20
|
+
constructor(stack, namespaceName, inventoryModels, simpleInventoryModels, bigInventoryModels) {
|
|
21
21
|
super("Inventory_CurrentItemModelMaster_" + namespaceName);
|
|
22
22
|
this.version = "2019-02-05";
|
|
23
23
|
this.namespaceName = namespaceName;
|
|
24
24
|
this.inventoryModels = inventoryModels;
|
|
25
25
|
this.simpleInventoryModels = simpleInventoryModels;
|
|
26
|
+
this.bigInventoryModels = bigInventoryModels;
|
|
26
27
|
stack.addResource(this);
|
|
27
28
|
}
|
|
28
29
|
alternateKeys() {
|
|
@@ -41,6 +42,9 @@ class CurrentMasterData extends model_1.CdkResource {
|
|
|
41
42
|
if (this.simpleInventoryModels != null) {
|
|
42
43
|
settings["simpleInventoryModels"] = this.simpleInventoryModels.map(v => v.properties());
|
|
43
44
|
}
|
|
45
|
+
if (this.bigInventoryModels != null) {
|
|
46
|
+
settings["bigInventoryModels"] = this.bigInventoryModels.map(v => v.properties());
|
|
47
|
+
}
|
|
44
48
|
if (this.namespaceName != null) {
|
|
45
49
|
properties["NamespaceName"] = this.namespaceName;
|
|
46
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrentMasterData.js","sourceRoot":"","sources":["CurrentMasterData.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AACH,4CAAoD;
|
|
1
|
+
{"version":3,"file":"CurrentMasterData.js","sourceRoot":"","sources":["CurrentMasterData.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AACH,4CAAoD;AAKpD,MAAqB,iBAAkB,SAAQ,mBAAW;IAOtD,YACI,KAAY,EACZ,aAAqB,EACrB,eAAiC,EACjC,qBAA6C,EAC7C,kBAAuC;QAEvC,KAAK,CACD,mCAAmC,GAAG,aAAa,CACtD,CAAC;QAfW,YAAO,GAAU,YAAY,CAAC;QAiB3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,C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
|
17
17
|
import InventoryModel from "./InventoryModel";
|
|
18
18
|
import SimpleInventoryModel from "./SimpleInventoryModel";
|
|
19
|
+
import BigInventoryModel from "./BigInventoryModel";
|
|
19
20
|
|
|
20
21
|
export default class CurrentMasterData extends CdkResource {
|
|
21
22
|
private readonly version: string= "2019-02-05";
|
|
22
23
|
private readonly namespaceName: string;
|
|
23
24
|
private readonly inventoryModels: InventoryModel[];
|
|
24
25
|
private readonly simpleInventoryModels: SimpleInventoryModel[];
|
|
26
|
+
private readonly bigInventoryModels: BigInventoryModel[];
|
|
25
27
|
|
|
26
28
|
public constructor(
|
|
27
29
|
stack: Stack,
|
|
28
30
|
namespaceName: string,
|
|
29
31
|
inventoryModels: InventoryModel[],
|
|
30
32
|
simpleInventoryModels: SimpleInventoryModel[],
|
|
33
|
+
bigInventoryModels: BigInventoryModel[],
|
|
31
34
|
) {
|
|
32
35
|
super(
|
|
33
36
|
"Inventory_CurrentItemModelMaster_" + namespaceName
|
|
@@ -36,6 +39,7 @@ export default class CurrentMasterData extends CdkResource {
|
|
|
36
39
|
this.namespaceName = namespaceName;
|
|
37
40
|
this.inventoryModels = inventoryModels;
|
|
38
41
|
this.simpleInventoryModels = simpleInventoryModels;
|
|
42
|
+
this.bigInventoryModels = bigInventoryModels;
|
|
39
43
|
stack.addResource(
|
|
40
44
|
this,
|
|
41
45
|
);
|
|
@@ -65,6 +69,10 @@ export default class CurrentMasterData extends CdkResource {
|
|
|
65
69
|
settings["simpleInventoryModels"] = this.simpleInventoryModels.map(v => v.properties(
|
|
66
70
|
));
|
|
67
71
|
}
|
|
72
|
+
if (this.bigInventoryModels != null) {
|
|
73
|
+
settings["bigInventoryModels"] = this.bigInventoryModels.map(v => v.properties(
|
|
74
|
+
));
|
|
75
|
+
}
|
|
68
76
|
|
|
69
77
|
if (this.namespaceName != null) {
|
|
70
78
|
properties["NamespaceName"] = this.namespaceName;
|
|
@@ -3,6 +3,7 @@ import { GetAttr } from "../../core/func";
|
|
|
3
3
|
import NamespaceRef from "../ref/NamespaceRef";
|
|
4
4
|
import InventoryModel from "./InventoryModel";
|
|
5
5
|
import SimpleInventoryModel from "./SimpleInventoryModel";
|
|
6
|
+
import BigInventoryModel from "./BigInventoryModel";
|
|
6
7
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
7
8
|
export default class Namespace extends CdkResource {
|
|
8
9
|
private readonly stack;
|
|
@@ -20,5 +21,5 @@ export default class Namespace extends CdkResource {
|
|
|
20
21
|
};
|
|
21
22
|
ref(): NamespaceRef;
|
|
22
23
|
getAttrNamespaceId(): GetAttr;
|
|
23
|
-
masterData(inventoryModels: InventoryModel[], simpleInventoryModels: SimpleInventoryModel[]): Namespace;
|
|
24
|
+
masterData(inventoryModels: InventoryModel[], simpleInventoryModels: SimpleInventoryModel[], bigInventoryModels: BigInventoryModel[]): Namespace;
|
|
24
25
|
}
|
|
@@ -73,8 +73,8 @@ class Namespace extends model_1.CdkResource {
|
|
|
73
73
|
getAttrNamespaceId() {
|
|
74
74
|
return new func_1.GetAttr(this, "Item.NamespaceId", null);
|
|
75
75
|
}
|
|
76
|
-
masterData(inventoryModels, simpleInventoryModels) {
|
|
77
|
-
new CurrentMasterData_1.default(this.stack, this.name, inventoryModels, simpleInventoryModels).addDependsOn(this);
|
|
76
|
+
masterData(inventoryModels, simpleInventoryModels, bigInventoryModels) {
|
|
77
|
+
new CurrentMasterData_1.default(this.stack, this.name, inventoryModels, simpleInventoryModels, bigInventoryModels).addDependsOn(this);
|
|
78
78
|
return this;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAIxC,+EAA+C;AAC/C,oFAAoD;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;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"../ref/NamespaceRef";
|
|
|
23
23
|
import CurrentMasterData from "./CurrentMasterData";
|
|
24
24
|
import InventoryModel from "./InventoryModel";
|
|
25
25
|
import SimpleInventoryModel from "./SimpleInventoryModel";
|
|
26
|
+
import BigInventoryModel from "./BigInventoryModel";
|
|
26
27
|
|
|
27
28
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
28
29
|
|
|
@@ -116,12 +117,14 @@ export default class Namespace extends CdkResource {
|
|
|
116
117
|
public masterData(
|
|
117
118
|
inventoryModels: InventoryModel[],
|
|
118
119
|
simpleInventoryModels: SimpleInventoryModel[],
|
|
120
|
+
bigInventoryModels: BigInventoryModel[],
|
|
119
121
|
): Namespace {
|
|
120
122
|
new CurrentMasterData(
|
|
121
123
|
this.stack,
|
|
122
124
|
this.name,
|
|
123
125
|
inventoryModels,
|
|
124
126
|
simpleInventoryModels,
|
|
127
|
+
bigInventoryModels,
|
|
125
128
|
).addDependsOn(
|
|
126
129
|
this,
|
|
127
130
|
);
|
|
@@ -8,9 +8,13 @@ import SimpleInventoryModel from "./SimpleInventoryModel";
|
|
|
8
8
|
import { SimpleInventoryModelOptions } from "./options/SimpleInventoryModelOptions";
|
|
9
9
|
import SimpleItemModel from "./SimpleItemModel";
|
|
10
10
|
import { SimpleItemModelOptions } from "./options/SimpleItemModelOptions";
|
|
11
|
+
import BigInventoryModel from "./BigInventoryModel";
|
|
12
|
+
import { BigInventoryModelOptions } from "./options/BigInventoryModelOptions";
|
|
13
|
+
import BigItemModel from "./BigItemModel";
|
|
14
|
+
import { BigItemModelOptions } from "./options/BigItemModelOptions";
|
|
11
15
|
import AcquireCount from "./AcquireCount";
|
|
12
16
|
import { AcquireCountOptions } from "./options/AcquireCountOptions";
|
|
13
17
|
import ConsumeCount from "./ConsumeCount";
|
|
14
18
|
import { ConsumeCountOptions } from "./options/ConsumeCountOptions";
|
|
15
19
|
import CurrentMasterData from "./CurrentMasterData";
|
|
16
|
-
export { Namespace, NamespaceOptions, InventoryModel, InventoryModelOptions, ItemModel, ItemModelOptions, SimpleInventoryModel, SimpleInventoryModelOptions, SimpleItemModel, SimpleItemModelOptions, AcquireCount, AcquireCountOptions, ConsumeCount, ConsumeCountOptions, CurrentMasterData, };
|
|
20
|
+
export { Namespace, NamespaceOptions, InventoryModel, InventoryModelOptions, ItemModel, ItemModelOptions, SimpleInventoryModel, SimpleInventoryModelOptions, SimpleItemModel, SimpleItemModelOptions, BigInventoryModel, BigInventoryModelOptions, BigItemModel, BigItemModelOptions, AcquireCount, AcquireCountOptions, ConsumeCount, ConsumeCountOptions, CurrentMasterData, };
|
package/inventory/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CurrentMasterData = exports.ConsumeCount = exports.AcquireCount = exports.SimpleItemModel = exports.SimpleInventoryModel = exports.ItemModel = exports.InventoryModel = exports.Namespace = void 0;
|
|
3
|
+
exports.CurrentMasterData = exports.ConsumeCount = exports.AcquireCount = exports.BigItemModel = exports.BigInventoryModel = exports.SimpleItemModel = exports.SimpleInventoryModel = exports.ItemModel = exports.InventoryModel = exports.Namespace = 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,6 +27,10 @@ const SimpleInventoryModel_1 = tslib_1.__importDefault(require("./SimpleInventor
|
|
|
27
27
|
exports.SimpleInventoryModel = SimpleInventoryModel_1.default;
|
|
28
28
|
const SimpleItemModel_1 = tslib_1.__importDefault(require("./SimpleItemModel"));
|
|
29
29
|
exports.SimpleItemModel = SimpleItemModel_1.default;
|
|
30
|
+
const BigInventoryModel_1 = tslib_1.__importDefault(require("./BigInventoryModel"));
|
|
31
|
+
exports.BigInventoryModel = BigInventoryModel_1.default;
|
|
32
|
+
const BigItemModel_1 = tslib_1.__importDefault(require("./BigItemModel"));
|
|
33
|
+
exports.BigItemModel = BigItemModel_1.default;
|
|
30
34
|
const AcquireCount_1 = tslib_1.__importDefault(require("./AcquireCount"));
|
|
31
35
|
exports.AcquireCount = AcquireCount_1.default;
|
|
32
36
|
const ConsumeCount_1 = tslib_1.__importDefault(require("./ConsumeCount"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAqBhC,oBArBG,mBAAS,CAqBH;AAnBb,8EAA8C;AAqB1C,yBArBG,wBAAc,CAqBH;AAnBlB,oEAAoC;AAqBhC,oBArBG,mBAAS,CAqBH;AAnBb,0FAA0D;AAqBtD,+BArBG,8BAAoB,CAqBH;AAnBxB,gFAAgD;AAqB5C,0BArBG,yBAAe,CAqBH;AAnBnB,oFAAoD;AAqBhD,4BArBG,2BAAiB,CAqBH;AAnBrB,0EAA0C;AAqBtC,uBArBG,sBAAY,CAqBH;AAnBhB,0EAA0C;AAqBtC,uBArBG,sBAAY,CAqBH;AAnBhB,0EAA0C;AAqBtC,uBArBG,sBAAY,CAqBH;AAnBhB,oFAAoD;AAqBhD,4BArBG,2BAAiB,CAqBH"}
|
package/inventory/model/index.ts
CHANGED
|
@@ -23,6 +23,10 @@ import SimpleInventoryModel from "./SimpleInventoryModel";
|
|
|
23
23
|
import { SimpleInventoryModelOptions } from "./options/SimpleInventoryModelOptions";
|
|
24
24
|
import SimpleItemModel from "./SimpleItemModel";
|
|
25
25
|
import { SimpleItemModelOptions } from "./options/SimpleItemModelOptions";
|
|
26
|
+
import BigInventoryModel from "./BigInventoryModel";
|
|
27
|
+
import { BigInventoryModelOptions } from "./options/BigInventoryModelOptions";
|
|
28
|
+
import BigItemModel from "./BigItemModel";
|
|
29
|
+
import { BigItemModelOptions } from "./options/BigItemModelOptions";
|
|
26
30
|
import AcquireCount from "./AcquireCount";
|
|
27
31
|
import { AcquireCountOptions } from "./options/AcquireCountOptions";
|
|
28
32
|
import ConsumeCount from "./ConsumeCount";
|
|
@@ -40,6 +44,10 @@ export {
|
|
|
40
44
|
SimpleInventoryModelOptions,
|
|
41
45
|
SimpleItemModel,
|
|
42
46
|
SimpleItemModelOptions,
|
|
47
|
+
BigInventoryModel,
|
|
48
|
+
BigInventoryModelOptions,
|
|
49
|
+
BigItemModel,
|
|
50
|
+
BigItemModelOptions,
|
|
43
51
|
AcquireCount,
|
|
44
52
|
AcquireCountOptions,
|
|
45
53
|
ConsumeCount,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BigInventoryModelOptions.js","sourceRoot":"","sources":["BigInventoryModelOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
import BigItemModel from "../BigItemModel";
|
|
17
|
+
|
|
18
|
+
export interface BigInventoryModelOptions {
|
|
19
|
+
metadata?: string|null;
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -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=BigItemModelOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BigItemModelOptions.js","sourceRoot":"","sources":["BigItemModelOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 BigItemModelOptions {
|
|
18
|
+
metadata?: string|null;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import BigItemModelRef from "./BigItemModelRef";
|
|
2
|
+
import AcquireBigItemByUserId from "../stampSheet/AcquireBigItemByUserId";
|
|
3
|
+
import ConsumeBigItemByUserId from "../stampSheet/ConsumeBigItemByUserId";
|
|
4
|
+
export default class BigInventoryModelRef {
|
|
5
|
+
private readonly namespaceName;
|
|
6
|
+
private readonly inventoryName;
|
|
7
|
+
constructor(namespaceName: string, inventoryName: string);
|
|
8
|
+
bigItemModel(itemName: string): BigItemModelRef;
|
|
9
|
+
acquireBigItem(itemName: string, acquireCount: string, userId?: string | null): AcquireBigItemByUserId;
|
|
10
|
+
consumeBigItem(itemName: string, consumeCount: string, userId?: string | null): ConsumeBigItemByUserId;
|
|
11
|
+
grn(): string;
|
|
12
|
+
}
|