gs2-cdk 1.0.148 → 1.0.150
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/package.json +1 -1
- package/realtime/model/Namespace.d.ts +1 -0
- package/realtime/model/Namespace.js +11 -6
- package/realtime/model/Namespace.js.map +1 -1
- package/realtime/model/Namespace.ts +7 -0
- package/realtime/model/ParticipantSetting.d.ts +9 -0
- package/realtime/model/ParticipantSetting.js +20 -0
- package/realtime/model/ParticipantSetting.js.map +1 -0
- package/realtime/model/ParticipantSetting.ts +44 -0
- package/realtime/model/index.d.ts +10 -1
- package/realtime/model/index.js +7 -1
- package/realtime/model/index.js.map +1 -1
- package/realtime/model/index.ts +18 -0
- package/realtime/model/options/NamespaceOptions.d.ts +2 -0
- package/realtime/model/options/NamespaceOptions.ts +2 -0
- package/realtime/model/options/NamespaceServerTypeIsRelayOptions.d.ts +2 -0
- package/realtime/model/options/NamespaceServerTypeIsRelayOptions.ts +2 -0
- package/realtime/model/options/NamespaceServerTypeIsStateMachineOptions.d.ts +2 -0
- package/realtime/model/options/NamespaceServerTypeIsStateMachineOptions.ts +2 -0
- package/realtime/model/options/NamespaceServerTypeIsSyncOptions.d.ts +2 -0
- package/realtime/model/options/NamespaceServerTypeIsSyncOptions.ts +2 -0
- package/realtime/model/options/ParticipantSettingOptions.d.ts +2 -0
- package/realtime/model/options/ParticipantSettingOptions.js +18 -0
- package/realtime/model/options/ParticipantSettingOptions.js.map +1 -0
- package/realtime/model/options/ParticipantSettingOptions.ts +19 -0
- package/showcase/model/Bonus.d.ts +10 -0
- package/showcase/model/Bonus.js +20 -0
- package/showcase/model/Bonus.js.map +1 -0
- package/showcase/model/Bonus.ts +46 -0
- package/showcase/model/DisplayItem.js.map +1 -1
- package/showcase/model/DisplayItem.ts +1 -0
- package/showcase/model/SalesItem.d.ts +1 -0
- package/showcase/model/SalesItem.js +6 -1
- package/showcase/model/SalesItem.js.map +1 -1
- package/showcase/model/SalesItem.ts +7 -0
- package/showcase/model/SalesItemGroup.js.map +1 -1
- package/showcase/model/SalesItemGroup.ts +1 -0
- package/showcase/model/Showcase.js.map +1 -1
- package/showcase/model/Showcase.ts +1 -0
- package/showcase/model/index.d.ts +3 -1
- package/showcase/model/index.js +3 -1
- package/showcase/model/index.js.map +1 -1
- package/showcase/model/index.ts +4 -0
- package/showcase/model/options/BonusOptions.d.ts +2 -0
- package/showcase/model/options/BonusOptions.js +3 -0
- package/showcase/model/options/BonusOptions.js.map +1 -0
- package/showcase/model/options/BonusOptions.ts +20 -0
- package/showcase/model/options/DisplayItemOptions.ts +1 -0
- package/showcase/model/options/DisplayItemTypeIsSalesItemGroupOptions.ts +1 -0
- package/showcase/model/options/DisplayItemTypeIsSalesItemOptions.ts +1 -0
- package/showcase/model/options/SalesItemGroupOptions.ts +1 -0
- package/showcase/model/options/SalesItemOptions.d.ts +2 -0
- package/showcase/model/options/SalesItemOptions.ts +2 -0
- package/showcase/model/options/ShowcaseOptions.ts +1 -0
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ export default class Namespace extends CdkResource {
|
|
|
15
15
|
private readonly transactionSettingV2;
|
|
16
16
|
private readonly syncSetting;
|
|
17
17
|
private readonly stateMachineSetting;
|
|
18
|
+
private readonly participantSetting;
|
|
18
19
|
private readonly createNotification;
|
|
19
20
|
private readonly logSetting;
|
|
20
21
|
constructor(stack: Stack, name: string, serverType: NamespaceServerType, serverSpec: NamespaceServerSpec, options?: NamespaceOptions | null);
|
|
@@ -21,7 +21,7 @@ const func_1 = require("../../core/func");
|
|
|
21
21
|
const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
|
|
22
22
|
class Namespace extends model_1.CdkResource {
|
|
23
23
|
constructor(stack, name, serverType, serverSpec, options = null) {
|
|
24
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
24
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
25
25
|
super("Realtime_Namespace_" + name);
|
|
26
26
|
this.description = null;
|
|
27
27
|
/** @deprecated */
|
|
@@ -29,6 +29,7 @@ class Namespace extends model_1.CdkResource {
|
|
|
29
29
|
this.transactionSettingV2 = null;
|
|
30
30
|
this.syncSetting = null;
|
|
31
31
|
this.stateMachineSetting = null;
|
|
32
|
+
this.participantSetting = null;
|
|
32
33
|
this.createNotification = null;
|
|
33
34
|
this.logSetting = null;
|
|
34
35
|
this.stack = stack;
|
|
@@ -40,8 +41,9 @@ class Namespace extends model_1.CdkResource {
|
|
|
40
41
|
this.transactionSettingV2 = (_c = options === null || options === void 0 ? void 0 : options.transactionSettingV2) !== null && _c !== void 0 ? _c : null;
|
|
41
42
|
this.syncSetting = (_d = options === null || options === void 0 ? void 0 : options.syncSetting) !== null && _d !== void 0 ? _d : null;
|
|
42
43
|
this.stateMachineSetting = (_e = options === null || options === void 0 ? void 0 : options.stateMachineSetting) !== null && _e !== void 0 ? _e : null;
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
44
|
+
this.participantSetting = (_f = options === null || options === void 0 ? void 0 : options.participantSetting) !== null && _f !== void 0 ? _f : null;
|
|
45
|
+
this.createNotification = (_g = options === null || options === void 0 ? void 0 : options.createNotification) !== null && _g !== void 0 ? _g : null;
|
|
46
|
+
this.logSetting = (_h = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _h !== void 0 ? _h : null;
|
|
45
47
|
stack.addResource(this);
|
|
46
48
|
}
|
|
47
49
|
alternateKeys() {
|
|
@@ -51,7 +53,7 @@ class Namespace extends model_1.CdkResource {
|
|
|
51
53
|
return "GS2::Realtime::Namespace";
|
|
52
54
|
}
|
|
53
55
|
properties() {
|
|
54
|
-
var _a, _b, _c, _d, _e, _f;
|
|
56
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
55
57
|
let properties = {};
|
|
56
58
|
if (this.name != null) {
|
|
57
59
|
properties["Name"] = this.name;
|
|
@@ -77,11 +79,14 @@ class Namespace extends model_1.CdkResource {
|
|
|
77
79
|
if (this.stateMachineSetting != null) {
|
|
78
80
|
properties["StateMachineSetting"] = (_d = this.stateMachineSetting) === null || _d === void 0 ? void 0 : _d.properties();
|
|
79
81
|
}
|
|
82
|
+
if (this.participantSetting != null) {
|
|
83
|
+
properties["ParticipantSetting"] = (_e = this.participantSetting) === null || _e === void 0 ? void 0 : _e.properties();
|
|
84
|
+
}
|
|
80
85
|
if (this.createNotification != null) {
|
|
81
|
-
properties["CreateNotification"] = (
|
|
86
|
+
properties["CreateNotification"] = (_f = this.createNotification) === null || _f === void 0 ? void 0 : _f.properties();
|
|
82
87
|
}
|
|
83
88
|
if (this.logSetting != null) {
|
|
84
|
-
properties["LogSetting"] = (
|
|
89
|
+
properties["LogSetting"] = (_g = this.logSetting) === null || _g === void 0 ? void 0 : _g.properties();
|
|
85
90
|
}
|
|
86
91
|
return properties;
|
|
87
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AASxC,+EAA+C;AAM/C,MAAqB,SAAU,SAAQ,mBAAW;IAe9C,YACI,KAAY,EACZ,IAAY,EACZ,UAA+B,EAC/B,UAA+B,EAC/B,UAAiC,IAAI;;QAErC,KAAK,CACD,qBAAqB,GAAG,IAAI,CAC/B,CAAC;QAnBW,gBAAW,GAAgB,IAAI,CAAC;QACjD,kBAAkB;QACD,uBAAkB,GAA4B,IAAI,CAAC;QACnD,yBAAoB,GAA8B,IAAI,CAAC;QACvD,gBAAW,GAAqB,IAAI,CAAC;QACrC,wBAAmB,GAA6B,IAAI,CAAC;QACrD,uBAAkB,GAA4B,IAAI,CAAC;QACnD,uBAAkB,GAA6B,IAAI,CAAC;QAC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C,oBAAoB,CAAC,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,UAAU,EACrE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;CACJ;AArHD,4BAqHC"}
|
|
@@ -20,6 +20,7 @@ import TransactionSetting from "../../core/model/TransactionSetting";
|
|
|
20
20
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
21
21
|
import SyncSetting from "./SyncSetting";
|
|
22
22
|
import StateMachineSetting from "./StateMachineSetting";
|
|
23
|
+
import ParticipantSetting from "./ParticipantSetting";
|
|
23
24
|
import NotificationSetting from "../../core/model/NotificationSetting";
|
|
24
25
|
import LogSetting from "../../core/model/LogSetting";
|
|
25
26
|
|
|
@@ -40,6 +41,7 @@ export default class Namespace extends CdkResource {
|
|
|
40
41
|
private readonly transactionSettingV2: TransactionSettingV2|null = null;
|
|
41
42
|
private readonly syncSetting: SyncSetting|null = null;
|
|
42
43
|
private readonly stateMachineSetting: StateMachineSetting|null = null;
|
|
44
|
+
private readonly participantSetting: ParticipantSetting|null = null;
|
|
43
45
|
private readonly createNotification: NotificationSetting|null = null;
|
|
44
46
|
private readonly logSetting: LogSetting|null = null;
|
|
45
47
|
|
|
@@ -63,6 +65,7 @@ export default class Namespace extends CdkResource {
|
|
|
63
65
|
this.transactionSettingV2 = options?.transactionSettingV2 ?? null;
|
|
64
66
|
this.syncSetting = options?.syncSetting ?? null;
|
|
65
67
|
this.stateMachineSetting = options?.stateMachineSetting ?? null;
|
|
68
|
+
this.participantSetting = options?.participantSetting ?? null;
|
|
66
69
|
this.createNotification = options?.createNotification ?? null;
|
|
67
70
|
this.logSetting = options?.logSetting ?? null;
|
|
68
71
|
stack.addResource(
|
|
@@ -113,6 +116,10 @@ export default class Namespace extends CdkResource {
|
|
|
113
116
|
properties["StateMachineSetting"] = this.stateMachineSetting?.properties(
|
|
114
117
|
);
|
|
115
118
|
}
|
|
119
|
+
if (this.participantSetting != null) {
|
|
120
|
+
properties["ParticipantSetting"] = this.participantSetting?.properties(
|
|
121
|
+
);
|
|
122
|
+
}
|
|
116
123
|
if (this.createNotification != null) {
|
|
117
124
|
properties["CreateNotification"] = this.createNotification?.properties(
|
|
118
125
|
);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ParticipantSettingOptions } from "./options/ParticipantSettingOptions";
|
|
2
|
+
export default class ParticipantSetting {
|
|
3
|
+
private readonly userId;
|
|
4
|
+
private readonly scriptId;
|
|
5
|
+
constructor(userId: string, scriptId: string, options?: ParticipantSettingOptions | null);
|
|
6
|
+
properties(): {
|
|
7
|
+
[name: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class ParticipantSetting {
|
|
4
|
+
constructor(userId, scriptId, options = null) {
|
|
5
|
+
this.userId = userId;
|
|
6
|
+
this.scriptId = scriptId;
|
|
7
|
+
}
|
|
8
|
+
properties() {
|
|
9
|
+
let properties = {};
|
|
10
|
+
if (this.userId != null) {
|
|
11
|
+
properties["userId"] = this.userId;
|
|
12
|
+
}
|
|
13
|
+
if (this.scriptId != null) {
|
|
14
|
+
properties["scriptId"] = this.scriptId;
|
|
15
|
+
}
|
|
16
|
+
return properties;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = ParticipantSetting;
|
|
20
|
+
//# sourceMappingURL=ParticipantSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParticipantSetting.js","sourceRoot":"","sources":["ParticipantSetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,kBAAkB;IAInC,YACI,MAAc,EACd,QAAgB,EAChB,UAA0C,IAAI;QAE9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;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;AA1BD,qCA0BC"}
|
|
@@ -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 { ParticipantSettingOptions } from "./options/ParticipantSettingOptions";
|
|
17
|
+
|
|
18
|
+
export default class ParticipantSetting {
|
|
19
|
+
private readonly userId: string;
|
|
20
|
+
private readonly scriptId: string;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
userId: string,
|
|
24
|
+
scriptId: string,
|
|
25
|
+
options: ParticipantSettingOptions|null = null,
|
|
26
|
+
) {
|
|
27
|
+
this.userId = userId;
|
|
28
|
+
this.scriptId = scriptId;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.userId != null) {
|
|
36
|
+
properties["userId"] = this.userId;
|
|
37
|
+
}
|
|
38
|
+
if (this.scriptId != null) {
|
|
39
|
+
properties["scriptId"] = this.scriptId;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return properties;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import Namespace from "./Namespace";
|
|
2
2
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
3
3
|
import { NamespaceServerType } from "./enums/NamespaceServerType";
|
|
4
|
+
import { NamespaceServerTypeIsRelayOptions } from "./options/NamespaceServerTypeIsRelayOptions";
|
|
5
|
+
import { NamespaceServerTypeIsSyncOptions } from "./options/NamespaceServerTypeIsSyncOptions";
|
|
6
|
+
import { NamespaceServerTypeIsStateMachineOptions } from "./options/NamespaceServerTypeIsStateMachineOptions";
|
|
4
7
|
import { NamespaceServerSpec } from "./enums/NamespaceServerSpec";
|
|
8
|
+
import SyncSetting from "./SyncSetting";
|
|
9
|
+
import { SyncSettingOptions } from "./options/SyncSettingOptions";
|
|
10
|
+
import StateMachineSetting from "./StateMachineSetting";
|
|
11
|
+
import { StateMachineSettingOptions } from "./options/StateMachineSettingOptions";
|
|
12
|
+
import MobileNotificationMessage from "./MobileNotificationMessage";
|
|
13
|
+
import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
|
|
5
14
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
6
15
|
import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
|
|
7
|
-
export { Namespace, NamespaceOptions, NamespaceServerType, NamespaceServerSpec, TransactionSettingV2, TransactionSettingV2Options, };
|
|
16
|
+
export { Namespace, NamespaceOptions, NamespaceServerType, NamespaceServerTypeIsRelayOptions, NamespaceServerTypeIsSyncOptions, NamespaceServerTypeIsStateMachineOptions, NamespaceServerSpec, SyncSetting, SyncSettingOptions, StateMachineSetting, StateMachineSettingOptions, MobileNotificationMessage, MobileNotificationMessageOptions, TransactionSettingV2, TransactionSettingV2Options, };
|
package/realtime/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionSettingV2 = exports.NamespaceServerSpec = exports.NamespaceServerType = exports.Namespace = void 0;
|
|
3
|
+
exports.TransactionSettingV2 = exports.MobileNotificationMessage = exports.StateMachineSetting = exports.SyncSetting = exports.NamespaceServerSpec = exports.NamespaceServerType = 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
|
|
@@ -25,6 +25,12 @@ const NamespaceServerType_1 = require("./enums/NamespaceServerType");
|
|
|
25
25
|
Object.defineProperty(exports, "NamespaceServerType", { enumerable: true, get: function () { return NamespaceServerType_1.NamespaceServerType; } });
|
|
26
26
|
const NamespaceServerSpec_1 = require("./enums/NamespaceServerSpec");
|
|
27
27
|
Object.defineProperty(exports, "NamespaceServerSpec", { enumerable: true, get: function () { return NamespaceServerSpec_1.NamespaceServerSpec; } });
|
|
28
|
+
const SyncSetting_1 = tslib_1.__importDefault(require("./SyncSetting"));
|
|
29
|
+
exports.SyncSetting = SyncSetting_1.default;
|
|
30
|
+
const StateMachineSetting_1 = tslib_1.__importDefault(require("./StateMachineSetting"));
|
|
31
|
+
exports.StateMachineSetting = StateMachineSetting_1.default;
|
|
32
|
+
const MobileNotificationMessage_1 = tslib_1.__importDefault(require("./MobileNotificationMessage"));
|
|
33
|
+
exports.MobileNotificationMessage = MobileNotificationMessage_1.default;
|
|
28
34
|
const TransactionSettingV2_1 = tslib_1.__importDefault(require("./TransactionSettingV2"));
|
|
29
35
|
exports.TransactionSettingV2 = TransactionSettingV2_1.default;
|
|
30
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,oEAAoC;AAiBhC,oBAjBG,mBAAS,CAiBH;AAfb,qEAAkE;AAiB9D,oGAjBK,yCAAmB,OAiBL;AAbvB,qEAAkE;AAiB9D,oGAjBK,yCAAmB,OAiBL;AAhBvB,wEAAwC;AAiBpC,sBAjBG,qBAAW,CAiBH;AAff,wFAAwD;AAiBpD,8BAjBG,6BAAmB,CAiBH;AAfvB,oGAAoE;AAiBhE,oCAjBG,mCAAyB,CAiBH;AAf7B,0FAA0D;AAiBtD,+BAjBG,8BAAoB,CAiBH"}
|
package/realtime/model/index.ts
CHANGED
|
@@ -18,7 +18,16 @@
|
|
|
18
18
|
import Namespace from "./Namespace";
|
|
19
19
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
20
20
|
import { NamespaceServerType } from "./enums/NamespaceServerType";
|
|
21
|
+
import { NamespaceServerTypeIsRelayOptions } from "./options/NamespaceServerTypeIsRelayOptions"
|
|
22
|
+
import { NamespaceServerTypeIsSyncOptions } from "./options/NamespaceServerTypeIsSyncOptions"
|
|
23
|
+
import { NamespaceServerTypeIsStateMachineOptions } from "./options/NamespaceServerTypeIsStateMachineOptions"
|
|
21
24
|
import { NamespaceServerSpec } from "./enums/NamespaceServerSpec";
|
|
25
|
+
import SyncSetting from "./SyncSetting";
|
|
26
|
+
import { SyncSettingOptions } from "./options/SyncSettingOptions";
|
|
27
|
+
import StateMachineSetting from "./StateMachineSetting";
|
|
28
|
+
import { StateMachineSettingOptions } from "./options/StateMachineSettingOptions";
|
|
29
|
+
import MobileNotificationMessage from "./MobileNotificationMessage";
|
|
30
|
+
import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
|
|
22
31
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
23
32
|
import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
|
|
24
33
|
|
|
@@ -26,7 +35,16 @@ export {
|
|
|
26
35
|
Namespace,
|
|
27
36
|
NamespaceOptions,
|
|
28
37
|
NamespaceServerType,
|
|
38
|
+
NamespaceServerTypeIsRelayOptions,
|
|
39
|
+
NamespaceServerTypeIsSyncOptions,
|
|
40
|
+
NamespaceServerTypeIsStateMachineOptions,
|
|
29
41
|
NamespaceServerSpec,
|
|
42
|
+
SyncSetting,
|
|
43
|
+
SyncSettingOptions,
|
|
44
|
+
StateMachineSetting,
|
|
45
|
+
StateMachineSettingOptions,
|
|
46
|
+
MobileNotificationMessage,
|
|
47
|
+
MobileNotificationMessageOptions,
|
|
30
48
|
TransactionSettingV2,
|
|
31
49
|
TransactionSettingV2Options,
|
|
32
50
|
}
|
|
@@ -2,6 +2,7 @@ import TransactionSetting from "../../../core/model/TransactionSetting";
|
|
|
2
2
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
3
3
|
import SyncSetting from "../SyncSetting";
|
|
4
4
|
import StateMachineSetting from "../StateMachineSetting";
|
|
5
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
5
6
|
import NotificationSetting from "../../../core/model/NotificationSetting";
|
|
6
7
|
import LogSetting from "../../../core/model/LogSetting";
|
|
7
8
|
export interface NamespaceOptions {
|
|
@@ -11,6 +12,7 @@ export interface NamespaceOptions {
|
|
|
11
12
|
transactionSettingV2?: TransactionSettingV2 | null;
|
|
12
13
|
syncSetting?: SyncSetting | null;
|
|
13
14
|
stateMachineSetting?: StateMachineSetting | null;
|
|
15
|
+
participantSetting?: ParticipantSetting | null;
|
|
14
16
|
createNotification?: NotificationSetting | null;
|
|
15
17
|
logSetting?: LogSetting | null;
|
|
16
18
|
}
|
|
@@ -17,6 +17,7 @@ import TransactionSetting from "../../../core/model/TransactionSetting";
|
|
|
17
17
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
18
18
|
import SyncSetting from "../SyncSetting";
|
|
19
19
|
import StateMachineSetting from "../StateMachineSetting";
|
|
20
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
20
21
|
import NotificationSetting from "../../../core/model/NotificationSetting";
|
|
21
22
|
import LogSetting from "../../../core/model/LogSetting";
|
|
22
23
|
import { NamespaceServerType } from "../enums/NamespaceServerType";
|
|
@@ -29,6 +30,7 @@ export interface NamespaceOptions {
|
|
|
29
30
|
transactionSettingV2?: TransactionSettingV2|null;
|
|
30
31
|
syncSetting?: SyncSetting|null;
|
|
31
32
|
stateMachineSetting?: StateMachineSetting|null;
|
|
33
|
+
participantSetting?: ParticipantSetting|null;
|
|
32
34
|
createNotification?: NotificationSetting|null;
|
|
33
35
|
logSetting?: LogSetting|null;
|
|
34
36
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TransactionSetting } from "../../../core/model";
|
|
2
2
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
3
3
|
import SyncSetting from "../SyncSetting";
|
|
4
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
4
5
|
import { NotificationSetting } from "../../../core/model";
|
|
5
6
|
import { LogSetting } from "../../../core/model";
|
|
6
7
|
export interface NamespaceServerTypeIsRelayOptions {
|
|
@@ -8,6 +9,7 @@ export interface NamespaceServerTypeIsRelayOptions {
|
|
|
8
9
|
transactionSetting?: TransactionSetting | null;
|
|
9
10
|
transactionSettingV2?: TransactionSettingV2 | null;
|
|
10
11
|
syncSetting?: SyncSetting | null;
|
|
12
|
+
participantSetting?: ParticipantSetting | null;
|
|
11
13
|
createNotification?: NotificationSetting | null;
|
|
12
14
|
logSetting?: LogSetting | null;
|
|
13
15
|
revision?: number | null;
|
|
@@ -17,6 +17,7 @@ import { TransactionSetting } from "../../../core/model";
|
|
|
17
17
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
18
18
|
import SyncSetting from "../SyncSetting";
|
|
19
19
|
import StateMachineSetting from "../StateMachineSetting";
|
|
20
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
20
21
|
import MobileNotificationMessage from "../MobileNotificationMessage";
|
|
21
22
|
import { NotificationSetting } from "../../../core/model";
|
|
22
23
|
import { LogSetting } from "../../../core/model";
|
|
@@ -28,6 +29,7 @@ export interface NamespaceServerTypeIsRelayOptions {
|
|
|
28
29
|
transactionSetting?: TransactionSetting|null;
|
|
29
30
|
transactionSettingV2?: TransactionSettingV2|null;
|
|
30
31
|
syncSetting?: SyncSetting|null;
|
|
32
|
+
participantSetting?: ParticipantSetting|null;
|
|
31
33
|
createNotification?: NotificationSetting|null;
|
|
32
34
|
logSetting?: LogSetting|null;
|
|
33
35
|
revision?: number|null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TransactionSetting } from "../../../core/model";
|
|
2
2
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
3
3
|
import SyncSetting from "../SyncSetting";
|
|
4
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
4
5
|
import { NotificationSetting } from "../../../core/model";
|
|
5
6
|
import { LogSetting } from "../../../core/model";
|
|
6
7
|
export interface NamespaceServerTypeIsStateMachineOptions {
|
|
@@ -8,6 +9,7 @@ export interface NamespaceServerTypeIsStateMachineOptions {
|
|
|
8
9
|
transactionSetting?: TransactionSetting | null;
|
|
9
10
|
transactionSettingV2?: TransactionSettingV2 | null;
|
|
10
11
|
syncSetting?: SyncSetting | null;
|
|
12
|
+
participantSetting?: ParticipantSetting | null;
|
|
11
13
|
createNotification?: NotificationSetting | null;
|
|
12
14
|
logSetting?: LogSetting | null;
|
|
13
15
|
revision?: number | null;
|
|
@@ -17,6 +17,7 @@ import { TransactionSetting } from "../../../core/model";
|
|
|
17
17
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
18
18
|
import SyncSetting from "../SyncSetting";
|
|
19
19
|
import StateMachineSetting from "../StateMachineSetting";
|
|
20
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
20
21
|
import MobileNotificationMessage from "../MobileNotificationMessage";
|
|
21
22
|
import { NotificationSetting } from "../../../core/model";
|
|
22
23
|
import { LogSetting } from "../../../core/model";
|
|
@@ -28,6 +29,7 @@ export interface NamespaceServerTypeIsStateMachineOptions {
|
|
|
28
29
|
transactionSetting?: TransactionSetting|null;
|
|
29
30
|
transactionSettingV2?: TransactionSettingV2|null;
|
|
30
31
|
syncSetting?: SyncSetting|null;
|
|
32
|
+
participantSetting?: ParticipantSetting|null;
|
|
31
33
|
createNotification?: NotificationSetting|null;
|
|
32
34
|
logSetting?: LogSetting|null;
|
|
33
35
|
revision?: number|null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TransactionSetting } from "../../../core/model";
|
|
2
2
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
3
3
|
import SyncSetting from "../SyncSetting";
|
|
4
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
4
5
|
import { NotificationSetting } from "../../../core/model";
|
|
5
6
|
import { LogSetting } from "../../../core/model";
|
|
6
7
|
export interface NamespaceServerTypeIsSyncOptions {
|
|
@@ -8,6 +9,7 @@ export interface NamespaceServerTypeIsSyncOptions {
|
|
|
8
9
|
transactionSetting?: TransactionSetting | null;
|
|
9
10
|
transactionSettingV2?: TransactionSettingV2 | null;
|
|
10
11
|
syncSetting?: SyncSetting | null;
|
|
12
|
+
participantSetting?: ParticipantSetting | null;
|
|
11
13
|
createNotification?: NotificationSetting | null;
|
|
12
14
|
logSetting?: LogSetting | null;
|
|
13
15
|
revision?: number | null;
|
|
@@ -17,6 +17,7 @@ import { TransactionSetting } from "../../../core/model";
|
|
|
17
17
|
import TransactionSettingV2 from "../TransactionSettingV2";
|
|
18
18
|
import SyncSetting from "../SyncSetting";
|
|
19
19
|
import StateMachineSetting from "../StateMachineSetting";
|
|
20
|
+
import ParticipantSetting from "../ParticipantSetting";
|
|
20
21
|
import MobileNotificationMessage from "../MobileNotificationMessage";
|
|
21
22
|
import { NotificationSetting } from "../../../core/model";
|
|
22
23
|
import { LogSetting } from "../../../core/model";
|
|
@@ -28,6 +29,7 @@ export interface NamespaceServerTypeIsSyncOptions {
|
|
|
28
29
|
transactionSetting?: TransactionSetting|null;
|
|
29
30
|
transactionSettingV2?: TransactionSettingV2|null;
|
|
30
31
|
syncSetting?: SyncSetting|null;
|
|
32
|
+
participantSetting?: ParticipantSetting|null;
|
|
31
33
|
createNotification?: NotificationSetting|null;
|
|
32
34
|
logSetting?: LogSetting|null;
|
|
33
35
|
revision?: number|null;
|
|
@@ -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=ParticipantSettingOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParticipantSettingOptions.js","sourceRoot":"","sources":["ParticipantSettingOptions.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 ParticipantSettingOptions {
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AcquireAction } from "../../core/model";
|
|
2
|
+
import { BonusOptions } from "./options/BonusOptions";
|
|
3
|
+
export default class Bonus {
|
|
4
|
+
private readonly routeKey;
|
|
5
|
+
private readonly acquireActions;
|
|
6
|
+
constructor(routeKey: string, acquireActions: AcquireAction[], options?: BonusOptions | null);
|
|
7
|
+
properties(): {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class Bonus {
|
|
4
|
+
constructor(routeKey, acquireActions, options = null) {
|
|
5
|
+
this.routeKey = routeKey;
|
|
6
|
+
this.acquireActions = acquireActions;
|
|
7
|
+
}
|
|
8
|
+
properties() {
|
|
9
|
+
let properties = {};
|
|
10
|
+
if (this.routeKey != null) {
|
|
11
|
+
properties["routeKey"] = this.routeKey;
|
|
12
|
+
}
|
|
13
|
+
if (this.acquireActions != null) {
|
|
14
|
+
properties["acquireActions"] = this.acquireActions.map(v => v.properties());
|
|
15
|
+
}
|
|
16
|
+
return properties;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = Bonus;
|
|
20
|
+
//# sourceMappingURL=Bonus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bonus.js","sourceRoot":"","sources":["Bonus.ts"],"names":[],"mappings":";;AAkBA,MAAqB,KAAK;IAItB,YACI,QAAgB,EAChB,cAA+B,EAC/B,UAA6B,IAAI;QAEjC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACzC,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,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;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA3BD,wBA2BC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { AcquireAction } from "../../core/model";
|
|
17
|
+
import { BonusOptions } from "./options/BonusOptions";
|
|
18
|
+
|
|
19
|
+
export default class Bonus {
|
|
20
|
+
private readonly routeKey: string;
|
|
21
|
+
private readonly acquireActions: AcquireAction[];
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
routeKey: string,
|
|
25
|
+
acquireActions: AcquireAction[],
|
|
26
|
+
options: BonusOptions|null = null,
|
|
27
|
+
) {
|
|
28
|
+
this.routeKey = routeKey;
|
|
29
|
+
this.acquireActions = acquireActions;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public properties(
|
|
33
|
+
): {[name: string]: any} {
|
|
34
|
+
let properties: {[name: string]: any} = {};
|
|
35
|
+
|
|
36
|
+
if (this.routeKey != null) {
|
|
37
|
+
properties["routeKey"] = this.routeKey;
|
|
38
|
+
}
|
|
39
|
+
if (this.acquireActions != null) {
|
|
40
|
+
properties["acquireActions"] = this.acquireActions.map(v => v.properties(
|
|
41
|
+
));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return properties;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayItem.js","sourceRoot":"","sources":["DisplayItem.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"DisplayItem.js","sourceRoot":"","sources":["DisplayItem.ts"],"names":[],"mappings":";;AAwBA,6DAA0D;AAE1D,MAAqB,WAAW;IAO5B,YACI,aAAqB,EACrB,IAAqB,EACrB,UAAmC,IAAI;;QAP1B,cAAS,GAAmB,IAAI,CAAC;QACjC,mBAAc,GAAwB,IAAI,CAAC;QAC3C,uBAAkB,G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I,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,MAAA,IAAI,CAAC,SAAS,0CAAE,UAAU,EACnD,CAAC;SACL;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,MAAA,IAAI,CAAC,cAAc,0CAAE,UAAU,EAC7D,CAAC;SACL;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;AAzED,8BAyEC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { VerifyAction } from "../../core/model";
|
|
17
17
|
import { ConsumeAction } from "../../core/model";
|
|
18
18
|
import { AcquireAction } from "../../core/model";
|
|
19
|
+
import Bonus from "./Bonus";
|
|
19
20
|
import SalesItem from "./SalesItem";
|
|
20
21
|
import SalesItemGroup from "./SalesItemGroup";
|
|
21
22
|
import { DisplayItemOptions } from "./options/DisplayItemOptions";
|
|
@@ -6,6 +6,7 @@ export default class SalesItem {
|
|
|
6
6
|
private readonly metadata;
|
|
7
7
|
private readonly verifyActions;
|
|
8
8
|
private readonly consumeActions;
|
|
9
|
+
private readonly bonuses;
|
|
9
10
|
constructor(name: string, acquireActions: AcquireAction[], options?: SalesItemOptions | null);
|
|
10
11
|
properties(): {
|
|
11
12
|
[name: string]: any;
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class SalesItem {
|
|
4
4
|
constructor(name, acquireActions, options = null) {
|
|
5
|
-
var _a, _b, _c;
|
|
5
|
+
var _a, _b, _c, _d;
|
|
6
6
|
this.metadata = null;
|
|
7
7
|
this.verifyActions = null;
|
|
8
8
|
this.consumeActions = null;
|
|
9
|
+
this.bonuses = null;
|
|
9
10
|
this.name = name;
|
|
10
11
|
this.acquireActions = acquireActions;
|
|
11
12
|
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
12
13
|
this.verifyActions = (_b = options === null || options === void 0 ? void 0 : options.verifyActions) !== null && _b !== void 0 ? _b : null;
|
|
13
14
|
this.consumeActions = (_c = options === null || options === void 0 ? void 0 : options.consumeActions) !== null && _c !== void 0 ? _c : null;
|
|
15
|
+
this.bonuses = (_d = options === null || options === void 0 ? void 0 : options.bonuses) !== null && _d !== void 0 ? _d : null;
|
|
14
16
|
}
|
|
15
17
|
properties() {
|
|
16
18
|
let properties = {};
|
|
@@ -29,6 +31,9 @@ class SalesItem {
|
|
|
29
31
|
if (this.acquireActions != null) {
|
|
30
32
|
properties["acquireActions"] = this.acquireActions.map(v => v.properties());
|
|
31
33
|
}
|
|
34
|
+
if (this.bonuses != null) {
|
|
35
|
+
properties["bonuses"] = this.bonuses.map(v => v.properties());
|
|
36
|
+
}
|
|
32
37
|
return properties;
|
|
33
38
|
}
|
|
34
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SalesItem.js","sourceRoot":"","sources":["SalesItem.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"SalesItem.js","sourceRoot":"","sources":["SalesItem.ts"],"names":[],"mappings":";;AAqBA,MAAqB,SAAS;IAQ1B,YACI,IAAY,EACZ,cAA+B,EAC/B,UAAiC,IAAI;;QARxB,aAAQ,GAAgB,IAAI,CAAC;QAC7B,kBAAa,GAAwB,IAAI,CAAC;QAC1C,mBAAc,GAAyB,IAAI,CAAC;QAC5C,YAAO,GAAiB,IAAI,CAAC;QAO1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAA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CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACrD,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAlDD,4BAkDC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { VerifyAction } from "../../core/model";
|
|
17
17
|
import { ConsumeAction } from "../../core/model";
|
|
18
18
|
import { AcquireAction } from "../../core/model";
|
|
19
|
+
import Bonus from "./Bonus";
|
|
19
20
|
import { SalesItemOptions } from "./options/SalesItemOptions";
|
|
20
21
|
|
|
21
22
|
export default class SalesItem {
|
|
@@ -24,6 +25,7 @@ export default class SalesItem {
|
|
|
24
25
|
private readonly metadata: string|null = null;
|
|
25
26
|
private readonly verifyActions: VerifyAction[]|null = null;
|
|
26
27
|
private readonly consumeActions: ConsumeAction[]|null = null;
|
|
28
|
+
private readonly bonuses: Bonus[]|null = null;
|
|
27
29
|
|
|
28
30
|
public constructor(
|
|
29
31
|
name: string,
|
|
@@ -35,6 +37,7 @@ export default class SalesItem {
|
|
|
35
37
|
this.metadata = options?.metadata ?? null;
|
|
36
38
|
this.verifyActions = options?.verifyActions ?? null;
|
|
37
39
|
this.consumeActions = options?.consumeActions ?? null;
|
|
40
|
+
this.bonuses = options?.bonuses ?? null;
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
public properties(
|
|
@@ -59,6 +62,10 @@ export default class SalesItem {
|
|
|
59
62
|
properties["acquireActions"] = this.acquireActions.map(v => v.properties(
|
|
60
63
|
));
|
|
61
64
|
}
|
|
65
|
+
if (this.bonuses != null) {
|
|
66
|
+
properties["bonuses"] = this.bonuses.map(v => v.properties(
|
|
67
|
+
));
|
|
68
|
+
}
|
|
62
69
|
|
|
63
70
|
return properties;
|
|
64
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SalesItemGroup.js","sourceRoot":"","sources":["SalesItemGroup.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"SalesItemGroup.js","sourceRoot":"","sources":["SalesItemGroup.ts"],"names":[],"mappings":";;AAsBA,MAAqB,cAAc;IAK/B,YACI,IAAY,EACZ,UAAuB,EACvB,UAAsC,IAAI;;QAL7B,aAAQ,GAAgB,IAAI,CAAC;QAO1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,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,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC3D,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,iCAgCC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { VerifyAction } from "../../core/model";
|
|
17
17
|
import { ConsumeAction } from "../../core/model";
|
|
18
18
|
import { AcquireAction } from "../../core/model";
|
|
19
|
+
import Bonus from "./Bonus";
|
|
19
20
|
import SalesItem from "./SalesItem";
|
|
20
21
|
import { SalesItemGroupOptions } from "./options/SalesItemGroupOptions";
|
|
21
22
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Showcase.js","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|
|
|
16
16
|
import { VerifyAction } from "../../core/model";
|
|
17
17
|
import { ConsumeAction } from "../../core/model";
|
|
18
18
|
import { AcquireAction } from "../../core/model";
|
|
19
|
+
import Bonus from "./Bonus";
|
|
19
20
|
import SalesItem from "./SalesItem";
|
|
20
21
|
import SalesItemGroup from "./SalesItemGroup";
|
|
21
22
|
import DisplayItem from "./DisplayItem";
|
|
@@ -17,6 +17,8 @@ import PurchaseCount from "./PurchaseCount";
|
|
|
17
17
|
import { PurchaseCountOptions } from "./options/PurchaseCountOptions";
|
|
18
18
|
import RandomDisplayItemModel from "./RandomDisplayItemModel";
|
|
19
19
|
import { RandomDisplayItemModelOptions } from "./options/RandomDisplayItemModelOptions";
|
|
20
|
+
import Bonus from "./Bonus";
|
|
21
|
+
import { BonusOptions } from "./options/BonusOptions";
|
|
20
22
|
import VerifyActionResult from "./VerifyActionResult";
|
|
21
23
|
import { VerifyActionResultOptions } from "./options/VerifyActionResultOptions";
|
|
22
24
|
import ConsumeActionResult from "./ConsumeActionResult";
|
|
@@ -28,4 +30,4 @@ import { TransactionResultOptions } from "./options/TransactionResultOptions";
|
|
|
28
30
|
import TransactionSettingV2 from "./TransactionSettingV2";
|
|
29
31
|
import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
|
|
30
32
|
import CurrentMasterData from "./CurrentMasterData";
|
|
31
|
-
export { Namespace, NamespaceOptions, SalesItem, SalesItemOptions, SalesItemGroup, SalesItemGroupOptions, Showcase, ShowcaseOptions, DisplayItem, DisplayItemOptions, DisplayItemType, DisplayItemTypeIsSalesItemOptions, DisplayItemTypeIsSalesItemGroupOptions, RandomShowcase, RandomShowcaseOptions, PurchaseCount, PurchaseCountOptions, RandomDisplayItemModel, RandomDisplayItemModelOptions, VerifyActionResult, VerifyActionResultOptions, ConsumeActionResult, ConsumeActionResultOptions, AcquireActionResult, AcquireActionResultOptions, TransactionResult, TransactionResultOptions, TransactionSettingV2, TransactionSettingV2Options, CurrentMasterData, };
|
|
33
|
+
export { Namespace, NamespaceOptions, SalesItem, SalesItemOptions, SalesItemGroup, SalesItemGroupOptions, Showcase, ShowcaseOptions, DisplayItem, DisplayItemOptions, DisplayItemType, DisplayItemTypeIsSalesItemOptions, DisplayItemTypeIsSalesItemGroupOptions, RandomShowcase, RandomShowcaseOptions, PurchaseCount, PurchaseCountOptions, RandomDisplayItemModel, RandomDisplayItemModelOptions, Bonus, BonusOptions, VerifyActionResult, VerifyActionResultOptions, ConsumeActionResult, ConsumeActionResultOptions, AcquireActionResult, AcquireActionResultOptions, TransactionResult, TransactionResultOptions, TransactionSettingV2, TransactionSettingV2Options, 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.TransactionSettingV2 = exports.TransactionResult = exports.AcquireActionResult = exports.ConsumeActionResult = exports.VerifyActionResult = exports.RandomDisplayItemModel = exports.PurchaseCount = exports.RandomShowcase = exports.DisplayItemType = exports.DisplayItem = exports.Showcase = exports.SalesItemGroup = exports.SalesItem = exports.Namespace = void 0;
|
|
3
|
+
exports.CurrentMasterData = exports.TransactionSettingV2 = exports.TransactionResult = exports.AcquireActionResult = exports.ConsumeActionResult = exports.VerifyActionResult = exports.Bonus = 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
|
|
@@ -35,6 +35,8 @@ const PurchaseCount_1 = tslib_1.__importDefault(require("./PurchaseCount"));
|
|
|
35
35
|
exports.PurchaseCount = PurchaseCount_1.default;
|
|
36
36
|
const RandomDisplayItemModel_1 = tslib_1.__importDefault(require("./RandomDisplayItemModel"));
|
|
37
37
|
exports.RandomDisplayItemModel = RandomDisplayItemModel_1.default;
|
|
38
|
+
const Bonus_1 = tslib_1.__importDefault(require("./Bonus"));
|
|
39
|
+
exports.Bonus = Bonus_1.default;
|
|
38
40
|
const VerifyActionResult_1 = tslib_1.__importDefault(require("./VerifyActionResult"));
|
|
39
41
|
exports.VerifyActionResult = VerifyActionResult_1.default;
|
|
40
42
|
const ConsumeActionResult_1 = tslib_1.__importDefault(require("./ConsumeActionResult"));
|
|
@@ -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;AAkChC,oBAlCG,mBAAS,CAkCH;AAhCb,oEAAoC;AAkChC,oBAlCG,mBAAS,CAkCH;AAhCb,8EAA8C;AAkC1C,yBAlCG,wBAAc,CAkCH;AAhClB,kEAAkC;AAkC9B,mBAlCG,kBAAQ,CAkCH;AAhCZ,wEAAwC;AAkCpC,sBAlCG,qBAAW,CAkCH;AAhCf,6DAA0D;AAkCtD,gGAlCK,iCAAe,OAkCL;AA/BnB,8EAA8C;AAkC1C,yBAlCG,wBAAc,CAkCH;AAhClB,4EAA4C;AAkCxC,wBAlCG,uBAAa,CAkCH;AAhCjB,8FAA8D;AAkC1D,iCAlCG,gCAAsB,CAkCH;AAhC1B,4DAA4B;AAkCxB,gBAlCG,eAAK,CAkCH;AAhCT,sFAAsD;AAkClD,6BAlCG,4BAAkB,CAkCH;AAhCtB,wFAAwD;AAkCpD,8BAlCG,6BAAmB,CAkCH;AAhCvB,wFAAwD;AAkCpD,8BAlCG,6BAAmB,CAkCH;AAhCvB,oFAAoD;AAkChD,4BAlCG,2BAAiB,CAkCH;AAhCrB,0FAA0D;AAkCtD,+BAlCG,8BAAoB,CAkCH;AAhCxB,oFAAoD;AAkChD,4BAlCG,2BAAiB,CAkCH"}
|
package/showcase/model/index.ts
CHANGED
|
@@ -32,6 +32,8 @@ import PurchaseCount from "./PurchaseCount";
|
|
|
32
32
|
import { PurchaseCountOptions } from "./options/PurchaseCountOptions";
|
|
33
33
|
import RandomDisplayItemModel from "./RandomDisplayItemModel";
|
|
34
34
|
import { RandomDisplayItemModelOptions } from "./options/RandomDisplayItemModelOptions";
|
|
35
|
+
import Bonus from "./Bonus";
|
|
36
|
+
import { BonusOptions } from "./options/BonusOptions";
|
|
35
37
|
import VerifyActionResult from "./VerifyActionResult";
|
|
36
38
|
import { VerifyActionResultOptions } from "./options/VerifyActionResultOptions";
|
|
37
39
|
import ConsumeActionResult from "./ConsumeActionResult";
|
|
@@ -64,6 +66,8 @@ export {
|
|
|
64
66
|
PurchaseCountOptions,
|
|
65
67
|
RandomDisplayItemModel,
|
|
66
68
|
RandomDisplayItemModelOptions,
|
|
69
|
+
Bonus,
|
|
70
|
+
BonusOptions,
|
|
67
71
|
VerifyActionResult,
|
|
68
72
|
VerifyActionResultOptions,
|
|
69
73
|
ConsumeActionResult,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BonusOptions.js","sourceRoot":"","sources":["BonusOptions.ts"],"names":[],"mappings":""}
|
|
@@ -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
|
+
import { AcquireAction } from "../../../core/model";
|
|
17
|
+
|
|
18
|
+
export interface BonusOptions {
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { VerifyAction } from "../../../core/model";
|
|
17
17
|
import { ConsumeAction } from "../../../core/model";
|
|
18
18
|
import { AcquireAction } from "../../../core/model";
|
|
19
|
+
import Bonus from "../Bonus";
|
|
19
20
|
import SalesItem from "../SalesItem";
|
|
20
21
|
import SalesItemGroup from "../SalesItemGroup";
|
|
21
22
|
import { DisplayItemType } from "../enums/DisplayItemType";
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { VerifyAction } from "../../../core/model";
|
|
17
17
|
import { ConsumeAction } from "../../../core/model";
|
|
18
18
|
import { AcquireAction } from "../../../core/model";
|
|
19
|
+
import Bonus from "../Bonus";
|
|
19
20
|
import SalesItem from "../SalesItem";
|
|
20
21
|
import SalesItemGroup from "../SalesItemGroup";
|
|
21
22
|
import { DisplayItemType } from "../enums/DisplayItemType";
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { VerifyAction } from "../../../core/model";
|
|
17
17
|
import { ConsumeAction } from "../../../core/model";
|
|
18
18
|
import { AcquireAction } from "../../../core/model";
|
|
19
|
+
import Bonus from "../Bonus";
|
|
19
20
|
import SalesItem from "../SalesItem";
|
|
20
21
|
import SalesItemGroup from "../SalesItemGroup";
|
|
21
22
|
import { DisplayItemType } from "../enums/DisplayItemType";
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { VerifyAction } from "../../../core/model";
|
|
17
17
|
import { ConsumeAction } from "../../../core/model";
|
|
18
18
|
import { AcquireAction } from "../../../core/model";
|
|
19
|
+
import Bonus from "../Bonus";
|
|
19
20
|
import SalesItem from "../SalesItem";
|
|
20
21
|
|
|
21
22
|
export interface SalesItemGroupOptions {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { VerifyAction } from "../../../core/model";
|
|
2
2
|
import { ConsumeAction } from "../../../core/model";
|
|
3
|
+
import Bonus from "../Bonus";
|
|
3
4
|
export interface SalesItemOptions {
|
|
4
5
|
metadata?: string | null;
|
|
5
6
|
verifyActions?: VerifyAction[] | null;
|
|
6
7
|
consumeActions?: ConsumeAction[] | null;
|
|
8
|
+
bonuses?: Bonus[] | null;
|
|
7
9
|
}
|
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
import { VerifyAction } from "../../../core/model";
|
|
17
17
|
import { ConsumeAction } from "../../../core/model";
|
|
18
18
|
import { AcquireAction } from "../../../core/model";
|
|
19
|
+
import Bonus from "../Bonus";
|
|
19
20
|
|
|
20
21
|
export interface SalesItemOptions {
|
|
21
22
|
metadata?: string|null;
|
|
22
23
|
verifyActions?: VerifyAction[]|null;
|
|
23
24
|
consumeActions?: ConsumeAction[]|null;
|
|
25
|
+
bonuses?: Bonus[]|null;
|
|
24
26
|
}
|
|
25
27
|
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { VerifyAction } from "../../../core/model";
|
|
17
17
|
import { ConsumeAction } from "../../../core/model";
|
|
18
18
|
import { AcquireAction } from "../../../core/model";
|
|
19
|
+
import Bonus from "../Bonus";
|
|
19
20
|
import SalesItem from "../SalesItem";
|
|
20
21
|
import SalesItemGroup from "../SalesItemGroup";
|
|
21
22
|
import DisplayItem from "../DisplayItem";
|