gs2-cdk 1.0.148 → 1.0.149

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.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/realtime/model/index.d.ts +10 -1
  3. package/realtime/model/index.js +7 -1
  4. package/realtime/model/index.js.map +1 -1
  5. package/realtime/model/index.ts +18 -0
  6. package/showcase/model/Bonus.d.ts +10 -0
  7. package/showcase/model/Bonus.js +20 -0
  8. package/showcase/model/Bonus.js.map +1 -0
  9. package/showcase/model/Bonus.ts +46 -0
  10. package/showcase/model/DisplayItem.js.map +1 -1
  11. package/showcase/model/DisplayItem.ts +1 -0
  12. package/showcase/model/SalesItem.d.ts +1 -0
  13. package/showcase/model/SalesItem.js +6 -1
  14. package/showcase/model/SalesItem.js.map +1 -1
  15. package/showcase/model/SalesItem.ts +7 -0
  16. package/showcase/model/SalesItemGroup.js.map +1 -1
  17. package/showcase/model/SalesItemGroup.ts +1 -0
  18. package/showcase/model/Showcase.js.map +1 -1
  19. package/showcase/model/Showcase.ts +1 -0
  20. package/showcase/model/index.d.ts +3 -1
  21. package/showcase/model/index.js +3 -1
  22. package/showcase/model/index.js.map +1 -1
  23. package/showcase/model/index.ts +4 -0
  24. package/showcase/model/options/BonusOptions.d.ts +2 -0
  25. package/showcase/model/options/BonusOptions.js +3 -0
  26. package/showcase/model/options/BonusOptions.js.map +1 -0
  27. package/showcase/model/options/BonusOptions.ts +20 -0
  28. package/showcase/model/options/DisplayItemOptions.ts +1 -0
  29. package/showcase/model/options/DisplayItemTypeIsSalesItemGroupOptions.ts +1 -0
  30. package/showcase/model/options/DisplayItemTypeIsSalesItemOptions.ts +1 -0
  31. package/showcase/model/options/SalesItemGroupOptions.ts +1 -0
  32. package/showcase/model/options/SalesItemOptions.d.ts +2 -0
  33. package/showcase/model/options/SalesItemOptions.ts +2 -0
  34. package/showcase/model/options/ShowcaseOptions.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.148",
3
+ "version": "1.0.149",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -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, };
@@ -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;AAQhC,oBARG,mBAAS,CAQH;AANb,qEAAkE;AAQ9D,oGARK,yCAAmB,OAQL;AAPvB,qEAAkE;AAQ9D,oGARK,yCAAmB,OAQL;AAPvB,0FAA0D;AAQtD,+BARG,8BAAoB,CAQH"}
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"}
@@ -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
  }
@@ -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":";;AAuBA,6DAA0D;AAE1D,MAAqB,WAAW;IAO5B,YACI,aAAqB,EACrB,IAAqB,EACrB,UAAmC,IAAI;;QAP1B,cAAS,GAAmB,IAAI,CAAC;QACjC,mBAAc,GAAwB,IAAI,CAAC;QAC3C,uBAAkB,GAAgB,IAAI,CAAC;QAOpD,IAAI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S;YACpB,kBAAkB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB;SAClD,CACJ,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,oBAAoB,CAC9B,aAAqB,EACrB,cAA8B,EAC9B,UAAuD,IAAI;QAE3D,OAAO,IAAI,WAAW,CAClB,aAAa,EACb,iCAAe,CAAC,gBAAgB,EAChC;YACI,cAAc,EAAE,cAAc;YAC9B,kBAAkB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB;SAClD,CACJ,CAAC;IACN,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,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":";;AAoBA,MAAqB,SAAS;IAO1B,YACI,IAAY,EACZ,cAA+B,EAC/B,UAAiC,IAAI;;QAPxB,aAAQ,GAAgB,IAAI,CAAC;QA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;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACjE,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,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,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,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":";;AAqBA,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"}
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","sourceRoot":"","sources":["Showcase.ts"],"names":[],"mappings":";;AAuBA,MAAqB,QAAQ;IAMzB,YACI,IAAY,EACZ,YAA2B,EAC3B,UAAgC,IAAI;;QANv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AI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,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,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;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;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AArCD,2BAqCC"}
@@ -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";
@@ -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, };
@@ -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;AAgChC,oBAhCG,mBAAS,CAgCH;AA9Bb,oEAAoC;AAgChC,oBAhCG,mBAAS,CAgCH;AA9Bb,8EAA8C;AAgC1C,yBAhCG,wBAAc,CAgCH;AA9BlB,kEAAkC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B,wFAAwD;AAkCpD,8BAlCG,6BAAmB,CAkCH;AAhCvB,oFAAoD;AAkChD,4BAlCG,2BAAiB,CAkCH;AAhCrB,0FAA0D;AAkCtD,+BAlCG,8BAAoB,CAkCH;AAhCxB,oFAAoD;AAkChD,4BAlCG,2BAAiB,CAkCH"}
@@ -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,2 @@
1
+ export interface BonusOptions {
2
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BonusOptions.js.map
@@ -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";