gs2-cdk 1.0.19 → 1.0.21
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/account/model/Namespace.js +1 -1
- package/account/model/Namespace.js.map +1 -1
- package/account/model/Namespace.ts +2 -2
- package/auth/model/AccessToken.d.ts +1 -2
- package/auth/model/AccessToken.js +1 -5
- package/auth/model/AccessToken.js.map +1 -1
- package/auth/model/AccessToken.ts +0 -6
- package/chat/model/Namespace.js +1 -1
- package/chat/model/Namespace.js.map +1 -1
- package/chat/model/Namespace.ts +2 -2
- package/datastore/model/Namespace.js +1 -1
- package/datastore/model/Namespace.js.map +1 -1
- package/datastore/model/Namespace.ts +2 -2
- package/dictionary/model/Namespace.js +1 -1
- package/dictionary/model/Namespace.js.map +1 -1
- package/dictionary/model/Namespace.ts +2 -2
- package/distributor/model/Namespace.js +1 -1
- package/distributor/model/Namespace.js.map +1 -1
- package/distributor/model/Namespace.ts +2 -2
- package/distributor/model/StampSheetResult.d.ts +1 -3
- package/distributor/model/StampSheetResult.js +1 -9
- package/distributor/model/StampSheetResult.js.map +1 -1
- package/distributor/model/StampSheetResult.ts +0 -12
- package/enhance/model/Namespace.js +1 -1
- package/enhance/model/Namespace.js.map +1 -1
- package/enhance/model/Namespace.ts +2 -2
- package/exchange/model/Namespace.js +1 -1
- package/exchange/model/Namespace.js.map +1 -1
- package/exchange/model/Namespace.ts +2 -2
- package/experience/model/AcquireActionRate.d.ts +9 -0
- package/experience/model/AcquireActionRate.js +20 -0
- package/experience/model/AcquireActionRate.js.map +1 -0
- package/experience/model/AcquireActionRate.ts +44 -0
- package/experience/model/ExperienceModel.d.ts +1 -0
- package/experience/model/ExperienceModel.js +6 -1
- package/experience/model/ExperienceModel.js.map +1 -1
- package/experience/model/ExperienceModel.ts +7 -0
- package/experience/model/Namespace.d.ts +1 -0
- package/experience/model/Namespace.js +19 -14
- package/experience/model/Namespace.js.map +1 -1
- package/experience/model/Namespace.ts +9 -2
- package/experience/model/index.d.ts +3 -1
- package/experience/model/index.js +3 -1
- package/experience/model/index.js.map +1 -1
- package/experience/model/index.ts +4 -0
- package/experience/model/options/AcquireActionRateOptions.d.ts +2 -0
- package/experience/model/options/AcquireActionRateOptions.js +18 -0
- package/experience/model/options/AcquireActionRateOptions.js.map +1 -0
- package/experience/model/options/AcquireActionRateOptions.ts +19 -0
- package/experience/model/options/ExperienceModelOptions.d.ts +2 -0
- package/experience/model/options/ExperienceModelOptions.ts +2 -0
- package/experience/model/options/NamespaceOptions.d.ts +2 -0
- package/experience/model/options/NamespaceOptions.ts +2 -0
- package/experience/ref/NamespaceRef.d.ts +3 -0
- package/experience/ref/NamespaceRef.js +4 -0
- package/experience/ref/NamespaceRef.js.map +1 -1
- package/experience/ref/NamespaceRef.ts +19 -0
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.d.ts +4 -0
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.js +32 -0
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.js.map +1 -0
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.ts +43 -0
- package/experience/stampSheet/index.d.ts +2 -1
- package/experience/stampSheet/index.js +3 -1
- package/experience/stampSheet/index.js.map +1 -1
- package/experience/stampSheet/index.ts +2 -0
- package/formation/model/Namespace.js +1 -1
- package/formation/model/Namespace.js.map +1 -1
- package/formation/model/Namespace.ts +2 -2
- package/friend/model/Namespace.js +1 -1
- package/friend/model/Namespace.js.map +1 -1
- package/friend/model/Namespace.ts +2 -2
- package/gateway/model/Namespace.js +1 -1
- package/gateway/model/Namespace.js.map +1 -1
- package/gateway/model/Namespace.ts +2 -2
- package/identifier/model/Identifier.js +2 -2
- package/identifier/model/Identifier.js.map +1 -1
- package/identifier/model/Identifier.ts +4 -4
- package/identifier/model/Password.js +1 -1
- package/identifier/model/Password.js.map +1 -1
- package/identifier/model/Password.ts +2 -2
- package/identifier/model/SecurityPolicy.js +1 -1
- package/identifier/model/SecurityPolicy.js.map +1 -1
- package/identifier/model/SecurityPolicy.ts +2 -2
- package/identifier/model/User.js +1 -1
- package/identifier/model/User.js.map +1 -1
- package/identifier/model/User.ts +2 -2
- package/inbox/model/Namespace.js +1 -1
- package/inbox/model/Namespace.js.map +1 -1
- package/inbox/model/Namespace.ts +2 -2
- package/inventory/model/Namespace.js +1 -1
- package/inventory/model/Namespace.js.map +1 -1
- package/inventory/model/Namespace.ts +2 -2
- package/jobQueue/model/JobResultBody.d.ts +1 -2
- package/jobQueue/model/JobResultBody.js +1 -5
- package/jobQueue/model/JobResultBody.js.map +1 -1
- package/jobQueue/model/JobResultBody.ts +0 -6
- package/jobQueue/model/Namespace.js +1 -1
- package/jobQueue/model/Namespace.js.map +1 -1
- package/jobQueue/model/Namespace.ts +2 -2
- package/key/model/GitHubApiKey.d.ts +1 -3
- package/key/model/GitHubApiKey.js +1 -9
- package/key/model/GitHubApiKey.js.map +1 -1
- package/key/model/GitHubApiKey.ts +0 -12
- package/key/model/Key.js +1 -1
- package/key/model/Key.js.map +1 -1
- package/key/model/Key.ts +2 -2
- package/key/model/Namespace.js +1 -1
- package/key/model/Namespace.js.map +1 -1
- package/key/model/Namespace.ts +2 -2
- package/limit/model/Namespace.js +1 -1
- package/limit/model/Namespace.js.map +1 -1
- package/limit/model/Namespace.ts +2 -2
- package/lock/model/Namespace.js +1 -1
- package/lock/model/Namespace.js.map +1 -1
- package/lock/model/Namespace.ts +2 -2
- package/log/model/Namespace.js +1 -1
- package/log/model/Namespace.js.map +1 -1
- package/log/model/Namespace.ts +2 -2
- package/lottery/model/Namespace.js +1 -1
- package/lottery/model/Namespace.js.map +1 -1
- package/lottery/model/Namespace.ts +2 -2
- package/lottery/model/PrizeLimit.d.ts +1 -3
- package/lottery/model/PrizeLimit.js +1 -9
- package/lottery/model/PrizeLimit.js.map +1 -1
- package/lottery/model/PrizeLimit.ts +0 -12
- package/matchmaking/model/Namespace.js +1 -1
- package/matchmaking/model/Namespace.js.map +1 -1
- package/matchmaking/model/Namespace.ts +2 -2
- package/megaField/model/Layer.d.ts +1 -2
- package/megaField/model/Layer.js +1 -5
- package/megaField/model/Layer.js.map +1 -1
- package/megaField/model/Layer.ts +0 -6
- package/megaField/model/Namespace.js +1 -1
- package/megaField/model/Namespace.js.map +1 -1
- package/megaField/model/Namespace.ts +2 -2
- package/mission/model/CurrentMasterData.d.ts +3 -3
- package/mission/model/CurrentMasterData.js +7 -7
- package/mission/model/CurrentMasterData.js.map +1 -1
- package/mission/model/CurrentMasterData.ts +10 -10
- package/mission/model/Namespace.d.ts +1 -1
- package/mission/model/Namespace.js +3 -3
- package/mission/model/Namespace.js.map +1 -1
- package/mission/model/Namespace.ts +6 -6
- package/mission/model/ScopedValue.d.ts +1 -2
- package/mission/model/ScopedValue.js +1 -5
- package/mission/model/ScopedValue.js.map +1 -1
- package/mission/model/ScopedValue.ts +0 -6
- package/money/model/Namespace.js +1 -1
- package/money/model/Namespace.js.map +1 -1
- package/money/model/Namespace.ts +2 -2
- package/news/model/Namespace.js +1 -1
- package/news/model/Namespace.js.map +1 -1
- package/news/model/Namespace.ts +2 -2
- package/news/model/Output.d.ts +1 -3
- package/news/model/Output.js +1 -9
- package/news/model/Output.js.map +1 -1
- package/news/model/Output.ts +0 -12
- package/news/model/Progress.d.ts +1 -3
- package/news/model/Progress.js +1 -9
- package/news/model/Progress.js.map +1 -1
- package/news/model/Progress.ts +0 -12
- package/package.json +1 -1
- package/quest/model/Namespace.js +1 -1
- package/quest/model/Namespace.js.map +1 -1
- package/quest/model/Namespace.ts +2 -2
- package/ranking/model/Namespace.js +1 -1
- package/ranking/model/Namespace.js.map +1 -1
- package/ranking/model/Namespace.ts +2 -2
- package/realtime/model/Namespace.js +1 -1
- package/realtime/model/Namespace.js.map +1 -1
- package/realtime/model/Namespace.ts +2 -2
- package/realtime/model/Room.js +1 -1
- package/realtime/model/Room.js.map +1 -1
- package/realtime/model/Room.ts +2 -2
- package/schedule/model/Namespace.js +1 -1
- package/schedule/model/Namespace.js.map +1 -1
- package/schedule/model/Namespace.ts +2 -2
- package/script/model/Script.js +1 -1
- package/script/model/Script.js.map +1 -1
- package/script/model/Script.ts +2 -2
- package/serialKey/model/IssueJob.d.ts +1 -2
- package/serialKey/model/IssueJob.js +1 -5
- package/serialKey/model/IssueJob.js.map +1 -1
- package/serialKey/model/IssueJob.ts +0 -6
- package/serialKey/model/Namespace.js +1 -1
- package/serialKey/model/Namespace.js.map +1 -1
- package/serialKey/model/Namespace.ts +2 -2
- package/showcase/model/CurrentMasterData.d.ts +3 -1
- package/showcase/model/CurrentMasterData.js +5 -1
- package/showcase/model/CurrentMasterData.js.map +1 -1
- package/showcase/model/CurrentMasterData.ts +8 -0
- package/showcase/model/Namespace.d.ts +2 -1
- package/showcase/model/Namespace.js +3 -3
- package/showcase/model/Namespace.js.map +1 -1
- package/showcase/model/Namespace.ts +5 -2
- package/showcase/model/PurchaseCount.d.ts +9 -0
- package/showcase/model/PurchaseCount.js +20 -0
- package/showcase/model/PurchaseCount.js.map +1 -0
- package/showcase/model/PurchaseCount.ts +44 -0
- package/showcase/model/RandomDisplayItemModel.d.ts +14 -0
- package/showcase/model/RandomDisplayItemModel.js +39 -0
- package/showcase/model/RandomDisplayItemModel.js.map +1 -0
- package/showcase/model/RandomDisplayItemModel.ts +70 -0
- package/showcase/model/RandomShowcase.d.ts +15 -0
- package/showcase/model/RandomShowcase.js +43 -0
- package/showcase/model/RandomShowcase.js.map +1 -0
- package/showcase/model/RandomShowcase.ts +76 -0
- package/showcase/model/index.d.ts +7 -1
- package/showcase/model/index.js +7 -1
- package/showcase/model/index.js.map +1 -1
- package/showcase/model/index.ts +12 -0
- package/showcase/model/options/PurchaseCountOptions.d.ts +2 -0
- package/showcase/model/options/PurchaseCountOptions.js +18 -0
- package/showcase/model/options/PurchaseCountOptions.js.map +1 -0
- package/showcase/model/options/PurchaseCountOptions.ts +19 -0
- package/showcase/model/options/RandomDisplayItemModelOptions.d.ts +5 -0
- package/showcase/model/options/RandomDisplayItemModelOptions.js +3 -0
- package/showcase/model/options/RandomDisplayItemModelOptions.js.map +1 -0
- package/showcase/model/options/RandomDisplayItemModelOptions.ts +23 -0
- package/showcase/model/options/RandomShowcaseOptions.d.ts +4 -0
- package/showcase/model/options/RandomShowcaseOptions.js +3 -0
- package/showcase/model/options/RandomShowcaseOptions.js.map +1 -0
- package/showcase/model/options/RandomShowcaseOptions.ts +24 -0
- package/showcase/ref/NamespaceRef.d.ts +4 -0
- package/showcase/ref/NamespaceRef.js +9 -0
- package/showcase/ref/NamespaceRef.js.map +1 -1
- package/showcase/ref/NamespaceRef.ts +28 -0
- package/showcase/stampSheet/ForceReDrawByUserId.d.ts +4 -0
- package/showcase/stampSheet/ForceReDrawByUserId.js +29 -0
- package/showcase/stampSheet/ForceReDrawByUserId.js.map +1 -0
- package/showcase/stampSheet/ForceReDrawByUserId.ts +37 -0
- package/showcase/stampSheet/IncrementPurchaseCountByUserId.d.ts +4 -0
- package/showcase/stampSheet/IncrementPurchaseCountByUserId.js +31 -0
- package/showcase/stampSheet/IncrementPurchaseCountByUserId.js.map +1 -0
- package/showcase/stampSheet/IncrementPurchaseCountByUserId.ts +41 -0
- package/showcase/stampSheet/index.d.ts +3 -1
- package/showcase/stampSheet/index.js +7 -1
- package/showcase/stampSheet/index.js.map +1 -1
- package/showcase/stampSheet/index.ts +4 -0
- package/stamina/model/Namespace.js +1 -1
- package/stamina/model/Namespace.js.map +1 -1
- package/stamina/model/Namespace.ts +2 -2
- package/version/model/Namespace.js +1 -1
- package/version/model/Namespace.js.map +1 -1
- package/version/model/Namespace.ts +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class PurchaseCount {
|
|
4
|
+
constructor(name, count, options = null) {
|
|
5
|
+
this.name = name;
|
|
6
|
+
this.count = count;
|
|
7
|
+
}
|
|
8
|
+
properties() {
|
|
9
|
+
let properties = {};
|
|
10
|
+
if (this.name != null) {
|
|
11
|
+
properties["name"] = this.name;
|
|
12
|
+
}
|
|
13
|
+
if (this.count != null) {
|
|
14
|
+
properties["count"] = this.count;
|
|
15
|
+
}
|
|
16
|
+
return properties;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = PurchaseCount;
|
|
20
|
+
//# sourceMappingURL=PurchaseCount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseCount.js","sourceRoot":"","sources":["PurchaseCount.ts"],"names":[],"mappings":";;AAiBA,MAAqB,aAAa;IAI9B,YACI,IAAY,EACZ,KAAa,EACb,UAAqC,IAAI;QAEzC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,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,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,gCA0BC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { PurchaseCountOptions } from "./options/PurchaseCountOptions";
|
|
17
|
+
|
|
18
|
+
export default class PurchaseCount {
|
|
19
|
+
private readonly name: string;
|
|
20
|
+
private readonly count: number;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
name: string,
|
|
24
|
+
count: number,
|
|
25
|
+
options: PurchaseCountOptions|null = null,
|
|
26
|
+
) {
|
|
27
|
+
this.name = name;
|
|
28
|
+
this.count = count;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.name != null) {
|
|
36
|
+
properties["name"] = this.name;
|
|
37
|
+
}
|
|
38
|
+
if (this.count != null) {
|
|
39
|
+
properties["count"] = this.count;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return properties;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AcquireAction } from "../../core/model";
|
|
2
|
+
import { RandomDisplayItemModelOptions } from "./options/RandomDisplayItemModelOptions";
|
|
3
|
+
export default class RandomDisplayItemModel {
|
|
4
|
+
private readonly name;
|
|
5
|
+
private readonly acquireActions;
|
|
6
|
+
private readonly stock;
|
|
7
|
+
private readonly weight;
|
|
8
|
+
private readonly metadata;
|
|
9
|
+
private readonly consumeActions;
|
|
10
|
+
constructor(name: string, acquireActions: AcquireAction[], stock: number, weight: number, options?: RandomDisplayItemModelOptions | null);
|
|
11
|
+
properties(): {
|
|
12
|
+
[name: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class RandomDisplayItemModel {
|
|
4
|
+
constructor(name, acquireActions, stock, weight, options = null) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
this.metadata = null;
|
|
7
|
+
this.consumeActions = null;
|
|
8
|
+
this.name = name;
|
|
9
|
+
this.acquireActions = acquireActions;
|
|
10
|
+
this.stock = stock;
|
|
11
|
+
this.weight = weight;
|
|
12
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
13
|
+
this.consumeActions = (_b = options === null || options === void 0 ? void 0 : options.consumeActions) !== null && _b !== void 0 ? _b : null;
|
|
14
|
+
}
|
|
15
|
+
properties() {
|
|
16
|
+
let properties = {};
|
|
17
|
+
if (this.name != null) {
|
|
18
|
+
properties["name"] = this.name;
|
|
19
|
+
}
|
|
20
|
+
if (this.metadata != null) {
|
|
21
|
+
properties["metadata"] = this.metadata;
|
|
22
|
+
}
|
|
23
|
+
if (this.consumeActions != null) {
|
|
24
|
+
properties["consumeActions"] = this.consumeActions.map(v => v.properties());
|
|
25
|
+
}
|
|
26
|
+
if (this.acquireActions != null) {
|
|
27
|
+
properties["acquireActions"] = this.acquireActions.map(v => v.properties());
|
|
28
|
+
}
|
|
29
|
+
if (this.stock != null) {
|
|
30
|
+
properties["stock"] = this.stock;
|
|
31
|
+
}
|
|
32
|
+
if (this.weight != null) {
|
|
33
|
+
properties["weight"] = this.weight;
|
|
34
|
+
}
|
|
35
|
+
return properties;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.default = RandomDisplayItemModel;
|
|
39
|
+
//# sourceMappingURL=RandomDisplayItemModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RandomDisplayItemModel.js","sourceRoot":"","sources":["RandomDisplayItemModel.ts"],"names":[],"mappings":";;AAmBA,MAAqB,sBAAsB;IAQvC,YACI,IAAY,EACZ,cAA+B,EAC/B,KAAa,EACb,MAAc,EACd,UAA8C,IAAI;;QARrC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,mBAAc,GAAyB,IAAI,CAAC;QASzD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,IAAI,CAAC;IAC1D,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,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAlDD,yCAkDC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { ConsumeAction } from "../../core/model";
|
|
17
|
+
import { AcquireAction } from "../../core/model";
|
|
18
|
+
import { RandomDisplayItemModelOptions } from "./options/RandomDisplayItemModelOptions";
|
|
19
|
+
|
|
20
|
+
export default class RandomDisplayItemModel {
|
|
21
|
+
private readonly name: string;
|
|
22
|
+
private readonly acquireActions: AcquireAction[];
|
|
23
|
+
private readonly stock: number;
|
|
24
|
+
private readonly weight: number;
|
|
25
|
+
private readonly metadata: string|null = null;
|
|
26
|
+
private readonly consumeActions: ConsumeAction[]|null = null;
|
|
27
|
+
|
|
28
|
+
public constructor(
|
|
29
|
+
name: string,
|
|
30
|
+
acquireActions: AcquireAction[],
|
|
31
|
+
stock: number,
|
|
32
|
+
weight: number,
|
|
33
|
+
options: RandomDisplayItemModelOptions|null = null,
|
|
34
|
+
) {
|
|
35
|
+
this.name = name;
|
|
36
|
+
this.acquireActions = acquireActions;
|
|
37
|
+
this.stock = stock;
|
|
38
|
+
this.weight = weight;
|
|
39
|
+
this.metadata = options?.metadata ?? null;
|
|
40
|
+
this.consumeActions = options?.consumeActions ?? null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public properties(
|
|
44
|
+
): {[name: string]: any} {
|
|
45
|
+
let properties: {[name: string]: any} = {};
|
|
46
|
+
|
|
47
|
+
if (this.name != null) {
|
|
48
|
+
properties["name"] = this.name;
|
|
49
|
+
}
|
|
50
|
+
if (this.metadata != null) {
|
|
51
|
+
properties["metadata"] = this.metadata;
|
|
52
|
+
}
|
|
53
|
+
if (this.consumeActions != null) {
|
|
54
|
+
properties["consumeActions"] = this.consumeActions.map(v => v.properties(
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
if (this.acquireActions != null) {
|
|
58
|
+
properties["acquireActions"] = this.acquireActions.map(v => v.properties(
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
if (this.stock != null) {
|
|
62
|
+
properties["stock"] = this.stock;
|
|
63
|
+
}
|
|
64
|
+
if (this.weight != null) {
|
|
65
|
+
properties["weight"] = this.weight;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return properties;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import RandomDisplayItemModel from "./RandomDisplayItemModel";
|
|
2
|
+
import { RandomShowcaseOptions } from "./options/RandomShowcaseOptions";
|
|
3
|
+
export default class RandomShowcase {
|
|
4
|
+
private readonly name;
|
|
5
|
+
private readonly maximumNumberOfChoice;
|
|
6
|
+
private readonly displayItems;
|
|
7
|
+
private readonly baseTimestamp;
|
|
8
|
+
private readonly resetIntervalHours;
|
|
9
|
+
private readonly metadata;
|
|
10
|
+
private readonly salesPeriodEventId;
|
|
11
|
+
constructor(name: string, maximumNumberOfChoice: number, displayItems: RandomDisplayItemModel[], baseTimestamp: number, resetIntervalHours: number, options?: RandomShowcaseOptions | null);
|
|
12
|
+
properties(): {
|
|
13
|
+
[name: string]: any;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class RandomShowcase {
|
|
4
|
+
constructor(name, maximumNumberOfChoice, displayItems, baseTimestamp, resetIntervalHours, options = null) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
this.metadata = null;
|
|
7
|
+
this.salesPeriodEventId = null;
|
|
8
|
+
this.name = name;
|
|
9
|
+
this.maximumNumberOfChoice = maximumNumberOfChoice;
|
|
10
|
+
this.displayItems = displayItems;
|
|
11
|
+
this.baseTimestamp = baseTimestamp;
|
|
12
|
+
this.resetIntervalHours = resetIntervalHours;
|
|
13
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
14
|
+
this.salesPeriodEventId = (_b = options === null || options === void 0 ? void 0 : options.salesPeriodEventId) !== null && _b !== void 0 ? _b : null;
|
|
15
|
+
}
|
|
16
|
+
properties() {
|
|
17
|
+
let properties = {};
|
|
18
|
+
if (this.name != null) {
|
|
19
|
+
properties["name"] = this.name;
|
|
20
|
+
}
|
|
21
|
+
if (this.metadata != null) {
|
|
22
|
+
properties["metadata"] = this.metadata;
|
|
23
|
+
}
|
|
24
|
+
if (this.maximumNumberOfChoice != null) {
|
|
25
|
+
properties["maximumNumberOfChoice"] = this.maximumNumberOfChoice;
|
|
26
|
+
}
|
|
27
|
+
if (this.displayItems != null) {
|
|
28
|
+
properties["displayItems"] = this.displayItems.map(v => v.properties());
|
|
29
|
+
}
|
|
30
|
+
if (this.baseTimestamp != null) {
|
|
31
|
+
properties["baseTimestamp"] = this.baseTimestamp;
|
|
32
|
+
}
|
|
33
|
+
if (this.resetIntervalHours != null) {
|
|
34
|
+
properties["resetIntervalHours"] = this.resetIntervalHours;
|
|
35
|
+
}
|
|
36
|
+
if (this.salesPeriodEventId != null) {
|
|
37
|
+
properties["salesPeriodEventId"] = this.salesPeriodEventId;
|
|
38
|
+
}
|
|
39
|
+
return properties;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.default = RandomShowcase;
|
|
43
|
+
//# sourceMappingURL=RandomShowcase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RandomShowcase.js","sourceRoot":"","sources":["RandomShowcase.ts"],"names":[],"mappings":";;AAoBA,MAAqB,cAAc;IAS/B,YACI,IAAY,EACZ,qBAA6B,EAC7B,YAAsC,EACtC,aAAqB,EACrB,kBAA0B,EAC1B,UAAsC,IAAI;;QAT7B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,uBAAkB,GAAgB,IAAI,CAAC;QAUpD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,IAAI,CAAC;IAClE,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,qBAAqB,IAAI,IAAI,EAAE;YACpC,UAAU,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC;SACpE;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC/D,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAvDD,iCAuDC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 { ConsumeAction } from "../../core/model";
|
|
17
|
+
import { AcquireAction } from "../../core/model";
|
|
18
|
+
import RandomDisplayItemModel from "./RandomDisplayItemModel";
|
|
19
|
+
import { RandomShowcaseOptions } from "./options/RandomShowcaseOptions";
|
|
20
|
+
|
|
21
|
+
export default class RandomShowcase {
|
|
22
|
+
private readonly name: string;
|
|
23
|
+
private readonly maximumNumberOfChoice: number;
|
|
24
|
+
private readonly displayItems: RandomDisplayItemModel[];
|
|
25
|
+
private readonly baseTimestamp: number;
|
|
26
|
+
private readonly resetIntervalHours: number;
|
|
27
|
+
private readonly metadata: string|null = null;
|
|
28
|
+
private readonly salesPeriodEventId: string|null = null;
|
|
29
|
+
|
|
30
|
+
public constructor(
|
|
31
|
+
name: string,
|
|
32
|
+
maximumNumberOfChoice: number,
|
|
33
|
+
displayItems: RandomDisplayItemModel[],
|
|
34
|
+
baseTimestamp: number,
|
|
35
|
+
resetIntervalHours: number,
|
|
36
|
+
options: RandomShowcaseOptions|null = null,
|
|
37
|
+
) {
|
|
38
|
+
this.name = name;
|
|
39
|
+
this.maximumNumberOfChoice = maximumNumberOfChoice;
|
|
40
|
+
this.displayItems = displayItems;
|
|
41
|
+
this.baseTimestamp = baseTimestamp;
|
|
42
|
+
this.resetIntervalHours = resetIntervalHours;
|
|
43
|
+
this.metadata = options?.metadata ?? null;
|
|
44
|
+
this.salesPeriodEventId = options?.salesPeriodEventId ?? null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public properties(
|
|
48
|
+
): {[name: string]: any} {
|
|
49
|
+
let properties: {[name: string]: any} = {};
|
|
50
|
+
|
|
51
|
+
if (this.name != null) {
|
|
52
|
+
properties["name"] = this.name;
|
|
53
|
+
}
|
|
54
|
+
if (this.metadata != null) {
|
|
55
|
+
properties["metadata"] = this.metadata;
|
|
56
|
+
}
|
|
57
|
+
if (this.maximumNumberOfChoice != null) {
|
|
58
|
+
properties["maximumNumberOfChoice"] = this.maximumNumberOfChoice;
|
|
59
|
+
}
|
|
60
|
+
if (this.displayItems != null) {
|
|
61
|
+
properties["displayItems"] = this.displayItems.map(v => v.properties(
|
|
62
|
+
));
|
|
63
|
+
}
|
|
64
|
+
if (this.baseTimestamp != null) {
|
|
65
|
+
properties["baseTimestamp"] = this.baseTimestamp;
|
|
66
|
+
}
|
|
67
|
+
if (this.resetIntervalHours != null) {
|
|
68
|
+
properties["resetIntervalHours"] = this.resetIntervalHours;
|
|
69
|
+
}
|
|
70
|
+
if (this.salesPeriodEventId != null) {
|
|
71
|
+
properties["salesPeriodEventId"] = this.salesPeriodEventId;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return properties;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -11,5 +11,11 @@ import { DisplayItemOptions } from "./options/DisplayItemOptions";
|
|
|
11
11
|
import { DisplayItemType } from "./enum/DisplayItemType";
|
|
12
12
|
import { DisplayItemTypeIsSalesItemOptions } from "./options/DisplayItemTypeIsSalesItemOptions";
|
|
13
13
|
import { DisplayItemTypeIsSalesItemGroupOptions } from "./options/DisplayItemTypeIsSalesItemGroupOptions";
|
|
14
|
+
import RandomShowcase from "./RandomShowcase";
|
|
15
|
+
import { RandomShowcaseOptions } from "./options/RandomShowcaseOptions";
|
|
16
|
+
import PurchaseCount from "./PurchaseCount";
|
|
17
|
+
import { PurchaseCountOptions } from "./options/PurchaseCountOptions";
|
|
18
|
+
import RandomDisplayItemModel from "./RandomDisplayItemModel";
|
|
19
|
+
import { RandomDisplayItemModelOptions } from "./options/RandomDisplayItemModelOptions";
|
|
14
20
|
import CurrentMasterData from "./CurrentMasterData";
|
|
15
|
-
export { Namespace, NamespaceOptions, SalesItem, SalesItemOptions, SalesItemGroup, SalesItemGroupOptions, Showcase, ShowcaseOptions, DisplayItem, DisplayItemOptions, DisplayItemType, DisplayItemTypeIsSalesItemOptions, DisplayItemTypeIsSalesItemGroupOptions, CurrentMasterData, };
|
|
21
|
+
export { Namespace, NamespaceOptions, SalesItem, SalesItemOptions, SalesItemGroup, SalesItemGroupOptions, Showcase, ShowcaseOptions, DisplayItem, DisplayItemOptions, DisplayItemType, DisplayItemTypeIsSalesItemOptions, DisplayItemTypeIsSalesItemGroupOptions, RandomShowcase, RandomShowcaseOptions, PurchaseCount, PurchaseCountOptions, RandomDisplayItemModel, RandomDisplayItemModelOptions, CurrentMasterData, };
|
package/showcase/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CurrentMasterData = exports.DisplayItemType = exports.DisplayItem = exports.Showcase = exports.SalesItemGroup = exports.SalesItem = exports.Namespace = void 0;
|
|
3
|
+
exports.CurrentMasterData = exports.RandomDisplayItemModel = exports.PurchaseCount = exports.RandomShowcase = exports.DisplayItemType = exports.DisplayItem = exports.Showcase = exports.SalesItemGroup = exports.SalesItem = 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
|
|
@@ -29,6 +29,12 @@ const DisplayItem_1 = tslib_1.__importDefault(require("./DisplayItem"));
|
|
|
29
29
|
exports.DisplayItem = DisplayItem_1.default;
|
|
30
30
|
const DisplayItemType_1 = require("./enum/DisplayItemType");
|
|
31
31
|
Object.defineProperty(exports, "DisplayItemType", { enumerable: true, get: function () { return DisplayItemType_1.DisplayItemType; } });
|
|
32
|
+
const RandomShowcase_1 = tslib_1.__importDefault(require("./RandomShowcase"));
|
|
33
|
+
exports.RandomShowcase = RandomShowcase_1.default;
|
|
34
|
+
const PurchaseCount_1 = tslib_1.__importDefault(require("./PurchaseCount"));
|
|
35
|
+
exports.PurchaseCount = PurchaseCount_1.default;
|
|
36
|
+
const RandomDisplayItemModel_1 = tslib_1.__importDefault(require("./RandomDisplayItemModel"));
|
|
37
|
+
exports.RandomDisplayItemModel = RandomDisplayItemModel_1.default;
|
|
32
38
|
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
33
39
|
exports.CurrentMasterData = CurrentMasterData_1.default;
|
|
34
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -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;AAsBhC,oBAtBG,mBAAS,CAsBH;AApBb,oEAAoC;AAsBhC,oBAtBG,mBAAS,CAsBH;AApBb,8EAA8C;AAsB1C,yBAtBG,wBAAc,CAsBH;AApBlB,kEAAkC;AAsB9B,mBAtBG,kBAAQ,CAsBH;AApBZ,wEAAwC;AAsBpC,sBAtBG,qBAAW,CAsBH;AApBf,4DAAyD;AAsBrD,gGAtBK,iCAAe,OAsBL;AAnBnB,8EAA8C;AAsB1C,yBAtBG,wBAAc,CAsBH;AApBlB,4EAA4C;AAsBxC,wBAtBG,uBAAa,CAsBH;AApBjB,8FAA8D;AAsB1D,iCAtBG,gCAAsB,CAsBH;AApB1B,oFAAoD;AAsBhD,4BAtBG,2BAAiB,CAsBH"}
|
package/showcase/model/index.ts
CHANGED
|
@@ -26,6 +26,12 @@ import { DisplayItemOptions } from "./options/DisplayItemOptions";
|
|
|
26
26
|
import { DisplayItemType } from "./enum/DisplayItemType";
|
|
27
27
|
import { DisplayItemTypeIsSalesItemOptions } from "./options/DisplayItemTypeIsSalesItemOptions"
|
|
28
28
|
import { DisplayItemTypeIsSalesItemGroupOptions } from "./options/DisplayItemTypeIsSalesItemGroupOptions"
|
|
29
|
+
import RandomShowcase from "./RandomShowcase";
|
|
30
|
+
import { RandomShowcaseOptions } from "./options/RandomShowcaseOptions";
|
|
31
|
+
import PurchaseCount from "./PurchaseCount";
|
|
32
|
+
import { PurchaseCountOptions } from "./options/PurchaseCountOptions";
|
|
33
|
+
import RandomDisplayItemModel from "./RandomDisplayItemModel";
|
|
34
|
+
import { RandomDisplayItemModelOptions } from "./options/RandomDisplayItemModelOptions";
|
|
29
35
|
import CurrentMasterData from "./CurrentMasterData";
|
|
30
36
|
|
|
31
37
|
export {
|
|
@@ -42,5 +48,11 @@ export {
|
|
|
42
48
|
DisplayItemType,
|
|
43
49
|
DisplayItemTypeIsSalesItemOptions,
|
|
44
50
|
DisplayItemTypeIsSalesItemGroupOptions,
|
|
51
|
+
RandomShowcase,
|
|
52
|
+
RandomShowcaseOptions,
|
|
53
|
+
PurchaseCount,
|
|
54
|
+
PurchaseCountOptions,
|
|
55
|
+
RandomDisplayItemModel,
|
|
56
|
+
RandomDisplayItemModelOptions,
|
|
45
57
|
CurrentMasterData,
|
|
46
58
|
}
|
|
@@ -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=PurchaseCountOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseCountOptions.js","sourceRoot":"","sources":["PurchaseCountOptions.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 PurchaseCountOptions {
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RandomDisplayItemModelOptions.js","sourceRoot":"","sources":["RandomDisplayItemModelOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { ConsumeAction } from "../../../core/model";
|
|
17
|
+
import { AcquireAction } from "../../../core/model";
|
|
18
|
+
|
|
19
|
+
export interface RandomDisplayItemModelOptions {
|
|
20
|
+
metadata?: string|null;
|
|
21
|
+
consumeActions?: ConsumeAction[]|null;
|
|
22
|
+
}
|
|
23
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RandomShowcaseOptions.js","sourceRoot":"","sources":["RandomShowcaseOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { ConsumeAction } from "../../../core/model";
|
|
17
|
+
import { AcquireAction } from "../../../core/model";
|
|
18
|
+
import RandomDisplayItemModel from "../RandomDisplayItemModel";
|
|
19
|
+
|
|
20
|
+
export interface RandomShowcaseOptions {
|
|
21
|
+
metadata?: string|null;
|
|
22
|
+
salesPeriodEventId?: string|null;
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import ForceReDrawByUserId from "../stampSheet/ForceReDrawByUserId";
|
|
2
|
+
import IncrementPurchaseCountByUserId from "../stampSheet/IncrementPurchaseCountByUserId";
|
|
1
3
|
export default class NamespaceRef {
|
|
2
4
|
private readonly namespaceName;
|
|
3
5
|
constructor(namespaceName: string);
|
|
6
|
+
forceReDraw(showcaseName: string, userId?: string | null): ForceReDrawByUserId;
|
|
7
|
+
incrementPurchaseCount(showcaseName: string, displayItemName: string, count: number, userId?: string | null): IncrementPurchaseCountByUserId;
|
|
4
8
|
grn(): string;
|
|
5
9
|
}
|
|
@@ -15,11 +15,20 @@
|
|
|
15
15
|
* permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const tslib_1 = require("tslib");
|
|
18
19
|
const func_1 = require("../../core/func");
|
|
20
|
+
const ForceReDrawByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ForceReDrawByUserId"));
|
|
21
|
+
const IncrementPurchaseCountByUserId_1 = tslib_1.__importDefault(require("../stampSheet/IncrementPurchaseCountByUserId"));
|
|
19
22
|
class NamespaceRef {
|
|
20
23
|
constructor(namespaceName) {
|
|
21
24
|
this.namespaceName = namespaceName;
|
|
22
25
|
}
|
|
26
|
+
forceReDraw(showcaseName, userId = "#{userId}") {
|
|
27
|
+
return new ForceReDrawByUserId_1.default(this.namespaceName, showcaseName, userId);
|
|
28
|
+
}
|
|
29
|
+
incrementPurchaseCount(showcaseName, displayItemName, count, userId = "#{userId}") {
|
|
30
|
+
return new IncrementPurchaseCountByUserId_1.default(this.namespaceName, showcaseName, displayItemName, count, userId);
|
|
31
|
+
}
|
|
23
32
|
grn() {
|
|
24
33
|
return new func_1.Join(":", [
|
|
25
34
|
"grn",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,oGAAoE;AACpE,0HAA0F;AAE1F,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,WAAW,CACd,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,6BAAmB,CAC1B,IAAI,CAAC,aAAa,EAClB,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,sBAAsB,CACzB,YAAoB,EACpB,eAAuB,EACvB,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,wCAA8B,CACrC,IAAI,CAAC,aAAa,EAClB,YAAY,EACZ,eAAe,EACf,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,UAAU;YACV,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAtDD,+BAsDC"}
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
|
+
import ForceReDrawByUserId from "../stampSheet/ForceReDrawByUserId";
|
|
19
|
+
import IncrementPurchaseCountByUserId from "../stampSheet/IncrementPurchaseCountByUserId";
|
|
18
20
|
|
|
19
21
|
export default class NamespaceRef {
|
|
20
22
|
private readonly namespaceName: string;
|
|
@@ -25,6 +27,32 @@ export default class NamespaceRef {
|
|
|
25
27
|
this.namespaceName = namespaceName;
|
|
26
28
|
}
|
|
27
29
|
|
|
30
|
+
public forceReDraw(
|
|
31
|
+
showcaseName: string,
|
|
32
|
+
userId: string|null = "#{userId}",
|
|
33
|
+
): ForceReDrawByUserId {
|
|
34
|
+
return new ForceReDrawByUserId(
|
|
35
|
+
this.namespaceName,
|
|
36
|
+
showcaseName,
|
|
37
|
+
userId,
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public incrementPurchaseCount(
|
|
42
|
+
showcaseName: string,
|
|
43
|
+
displayItemName: string,
|
|
44
|
+
count: number,
|
|
45
|
+
userId: string|null = "#{userId}",
|
|
46
|
+
): IncrementPurchaseCountByUserId {
|
|
47
|
+
return new IncrementPurchaseCountByUserId(
|
|
48
|
+
this.namespaceName,
|
|
49
|
+
showcaseName,
|
|
50
|
+
displayItemName,
|
|
51
|
+
count,
|
|
52
|
+
userId,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
28
56
|
public grn(
|
|
29
57
|
): string {
|
|
30
58
|
return new Join(
|