gs2-cdk 1.0.58 → 1.0.60

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 (55) hide show
  1. package/buff/model/Namespace.d.ts +1 -0
  2. package/buff/model/Namespace.js +9 -4
  3. package/buff/model/Namespace.js.map +1 -1
  4. package/buff/model/Namespace.ts +7 -0
  5. package/buff/model/OverrideBuffRate.d.ts +9 -0
  6. package/buff/model/OverrideBuffRate.js +20 -0
  7. package/buff/model/OverrideBuffRate.js.map +1 -0
  8. package/buff/model/OverrideBuffRate.ts +44 -0
  9. package/buff/model/index.d.ts +3 -1
  10. package/buff/model/index.js +3 -1
  11. package/buff/model/index.js.map +1 -1
  12. package/buff/model/index.ts +4 -0
  13. package/buff/model/options/NamespaceOptions.d.ts +2 -0
  14. package/buff/model/options/NamespaceOptions.ts +2 -0
  15. package/buff/model/options/OverrideBuffRateOptions.d.ts +2 -0
  16. package/buff/model/options/OverrideBuffRateOptions.js +18 -0
  17. package/buff/model/options/OverrideBuffRateOptions.js.map +1 -0
  18. package/buff/model/options/OverrideBuffRateOptions.ts +19 -0
  19. package/package.json +1 -1
  20. package/ranking/model/CategoryModel.d.ts +8 -6
  21. package/ranking/model/CategoryModel.js +35 -29
  22. package/ranking/model/CategoryModel.js.map +1 -1
  23. package/ranking/model/CategoryModel.ts +34 -19
  24. package/ranking/model/FixedTiming.d.ts +9 -0
  25. package/ranking/model/FixedTiming.js +23 -0
  26. package/ranking/model/FixedTiming.js.map +1 -0
  27. package/ranking/model/FixedTiming.ts +42 -0
  28. package/ranking/model/GlobalRankingSetting.d.ts +13 -0
  29. package/ranking/model/GlobalRankingSetting.js +42 -0
  30. package/ranking/model/GlobalRankingSetting.js.map +1 -0
  31. package/ranking/model/GlobalRankingSetting.ts +68 -0
  32. package/ranking/model/index.d.ts +5 -1
  33. package/ranking/model/index.js +5 -1
  34. package/ranking/model/index.js.map +1 -1
  35. package/ranking/model/index.ts +8 -0
  36. package/ranking/model/options/CategoryModelOptions.d.ts +4 -3
  37. package/ranking/model/options/CategoryModelOptions.ts +5 -3
  38. package/ranking/model/options/CategoryModelScopeIsGlobalOptions.d.ts +2 -2
  39. package/ranking/model/options/CategoryModelScopeIsGlobalOptions.ts +4 -2
  40. package/ranking/model/options/CategoryModelScopeIsScopedOptions.d.ts +2 -2
  41. package/ranking/model/options/CategoryModelScopeIsScopedOptions.ts +4 -2
  42. package/ranking/model/options/FixedTimingOptions.d.ts +4 -0
  43. package/ranking/model/options/FixedTimingOptions.js +18 -0
  44. package/ranking/model/options/FixedTimingOptions.js.map +1 -0
  45. package/ranking/model/options/FixedTimingOptions.ts +21 -0
  46. package/ranking/model/options/GlobalRankingSettingOptions.d.ts +8 -0
  47. package/ranking/model/options/GlobalRankingSettingOptions.js +3 -0
  48. package/ranking/model/options/GlobalRankingSettingOptions.js.map +1 -0
  49. package/ranking/model/options/GlobalRankingSettingOptions.ts +25 -0
  50. package/schedule/model/options/EventOptions.d.ts +1 -1
  51. package/serialKey/ref/CampaignModelRef.js.map +1 -1
  52. package/serialKey/ref/IssueJobRef.js.map +1 -1
  53. package/showcase/ref/SalesItemGroupRef.js +2 -0
  54. package/showcase/ref/SalesItemGroupRef.js.map +1 -1
  55. package/showcase/ref/SalesItemGroupRef.ts +2 -0
@@ -13,7 +13,9 @@
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
15
  */
16
+ import FixedTiming from "./FixedTiming";
16
17
  import Scope from "./Scope";
18
+ import GlobalRankingSetting from "./GlobalRankingSetting";
17
19
  import { CategoryModelOptions } from "./options/CategoryModelOptions";
18
20
  import { CategoryModelScopeIsGlobalOptions } from "./options/CategoryModelScopeIsGlobalOptions";
19
21
  import { CategoryModelScopeIsScopedOptions } from "./options/CategoryModelScopeIsScopedOptions";
@@ -22,68 +24,75 @@ import { CategoryModelScope } from "./enum/CategoryModelScope";
22
24
 
23
25
  export default class CategoryModel {
24
26
  private readonly name: string;
27
+ private readonly sum: boolean;
25
28
  private readonly orderDirection: CategoryModelOrderDirection;
26
29
  private readonly scope: CategoryModelScope;
27
30
  private readonly metadata: string|null = null;
28
31
  private readonly minimumValue: number|null = null;
29
32
  private readonly maximumValue: number|null = null;
33
+ private readonly globalRankingSetting: GlobalRankingSetting|null = null;
34
+ private readonly entryPeriodEventId: string|null = null;
35
+ private readonly accessPeriodEventId: string|null = null;
30
36
  private readonly uniqueByUserId: boolean|null = null;
31
- private readonly sum: boolean|null = null;
32
37
  private readonly calculateFixedTimingHour: number|null = null;
33
38
  private readonly calculateFixedTimingMinute: number|null = null;
34
39
  private readonly calculateIntervalMinutes: number|null = null;
35
40
  private readonly additionalScopes: Scope[]|null = null;
36
- private readonly entryPeriodEventId: string|null = null;
37
- private readonly accessPeriodEventId: string|null = null;
38
41
  private readonly ignoreUserIds: string[]|null = null;
39
42
  private readonly generation: string|null = null;
40
43
 
41
44
  public constructor(
42
45
  name: string,
46
+ sum: boolean,
43
47
  orderDirection: CategoryModelOrderDirection,
44
48
  scope: CategoryModelScope,
45
49
  options: CategoryModelOptions|null = null,
46
50
  ) {
47
51
  this.name = name;
52
+ this.sum = sum;
48
53
  this.orderDirection = orderDirection;
49
54
  this.scope = scope;
50
55
  this.metadata = options?.metadata ?? null;
51
56
  this.minimumValue = options?.minimumValue ?? null;
52
57
  this.maximumValue = options?.maximumValue ?? null;
58
+ this.globalRankingSetting = options?.globalRankingSetting ?? null;
59
+ this.entryPeriodEventId = options?.entryPeriodEventId ?? null;
60
+ this.accessPeriodEventId = options?.accessPeriodEventId ?? null;
53
61
  this.uniqueByUserId = options?.uniqueByUserId ?? null;
54
- this.sum = options?.sum ?? null;
55
62
  this.calculateFixedTimingHour = options?.calculateFixedTimingHour ?? null;
56
63
  this.calculateFixedTimingMinute = options?.calculateFixedTimingMinute ?? null;
57
64
  this.calculateIntervalMinutes = options?.calculateIntervalMinutes ?? null;
58
65
  this.additionalScopes = options?.additionalScopes ?? null;
59
- this.entryPeriodEventId = options?.entryPeriodEventId ?? null;
60
- this.accessPeriodEventId = options?.accessPeriodEventId ?? null;
61
66
  this.ignoreUserIds = options?.ignoreUserIds ?? null;
62
67
  this.generation = options?.generation ?? null;
63
68
  }
64
69
 
65
70
  public static scopeIsGlobal(
66
71
  name: string,
72
+ sum: boolean,
67
73
  orderDirection: CategoryModelOrderDirection,
74
+ globalRankingSetting: GlobalRankingSetting,
68
75
  uniqueByUserId: boolean,
69
76
  calculateIntervalMinutes: number,
70
77
  options: CategoryModelScopeIsGlobalOptions|null = null,
71
78
  ): CategoryModel {
72
79
  return new CategoryModel(
73
80
  name,
81
+ sum,
74
82
  orderDirection,
75
83
  CategoryModelScope.GLOBAL,
76
84
  {
85
+ globalRankingSetting: globalRankingSetting,
77
86
  uniqueByUserId: uniqueByUserId,
78
87
  calculateIntervalMinutes: calculateIntervalMinutes,
79
88
  metadata: options?.metadata,
80
89
  minimumValue: options?.minimumValue,
81
90
  maximumValue: options?.maximumValue,
91
+ entryPeriodEventId: options?.entryPeriodEventId,
92
+ accessPeriodEventId: options?.accessPeriodEventId,
82
93
  calculateFixedTimingHour: options?.calculateFixedTimingHour,
83
94
  calculateFixedTimingMinute: options?.calculateFixedTimingMinute,
84
95
  additionalScopes: options?.additionalScopes,
85
- entryPeriodEventId: options?.entryPeriodEventId,
86
- accessPeriodEventId: options?.accessPeriodEventId,
87
96
  ignoreUserIds: options?.ignoreUserIds,
88
97
  generation: options?.generation,
89
98
  },
@@ -92,22 +101,24 @@ export default class CategoryModel {
92
101
 
93
102
  public static scopeIsScoped(
94
103
  name: string,
104
+ sum: boolean,
95
105
  orderDirection: CategoryModelOrderDirection,
96
106
  options: CategoryModelScopeIsScopedOptions|null = null,
97
107
  ): CategoryModel {
98
108
  return new CategoryModel(
99
109
  name,
110
+ sum,
100
111
  orderDirection,
101
112
  CategoryModelScope.SCOPED,
102
113
  {
103
114
  metadata: options?.metadata,
104
115
  minimumValue: options?.minimumValue,
105
116
  maximumValue: options?.maximumValue,
117
+ entryPeriodEventId: options?.entryPeriodEventId,
118
+ accessPeriodEventId: options?.accessPeriodEventId,
106
119
  calculateFixedTimingHour: options?.calculateFixedTimingHour,
107
120
  calculateFixedTimingMinute: options?.calculateFixedTimingMinute,
108
121
  additionalScopes: options?.additionalScopes,
109
- entryPeriodEventId: options?.entryPeriodEventId,
110
- accessPeriodEventId: options?.accessPeriodEventId,
111
122
  ignoreUserIds: options?.ignoreUserIds,
112
123
  generation: options?.generation,
113
124
  },
@@ -130,18 +141,28 @@ export default class CategoryModel {
130
141
  if (this.maximumValue != null) {
131
142
  properties["maximumValue"] = this.maximumValue;
132
143
  }
144
+ if (this.sum != null) {
145
+ properties["sum"] = this.sum;
146
+ }
133
147
  if (this.orderDirection != null) {
134
148
  properties["orderDirection"] = this.orderDirection;
135
149
  }
136
150
  if (this.scope != null) {
137
151
  properties["scope"] = this.scope;
138
152
  }
153
+ if (this.globalRankingSetting != null) {
154
+ properties["globalRankingSetting"] = this.globalRankingSetting?.properties(
155
+ );
156
+ }
157
+ if (this.entryPeriodEventId != null) {
158
+ properties["entryPeriodEventId"] = this.entryPeriodEventId;
159
+ }
160
+ if (this.accessPeriodEventId != null) {
161
+ properties["accessPeriodEventId"] = this.accessPeriodEventId;
162
+ }
139
163
  if (this.uniqueByUserId != null) {
140
164
  properties["uniqueByUserId"] = this.uniqueByUserId;
141
165
  }
142
- if (this.sum != null) {
143
- properties["sum"] = this.sum;
144
- }
145
166
  if (this.calculateFixedTimingHour != null) {
146
167
  properties["calculateFixedTimingHour"] = this.calculateFixedTimingHour;
147
168
  }
@@ -155,12 +176,6 @@ export default class CategoryModel {
155
176
  properties["additionalScopes"] = this.additionalScopes.map(v => v.properties(
156
177
  ));
157
178
  }
158
- if (this.entryPeriodEventId != null) {
159
- properties["entryPeriodEventId"] = this.entryPeriodEventId;
160
- }
161
- if (this.accessPeriodEventId != null) {
162
- properties["accessPeriodEventId"] = this.accessPeriodEventId;
163
- }
164
179
  if (this.ignoreUserIds != null) {
165
180
  properties["ignoreUserIds"] = this.ignoreUserIds;
166
181
  }
@@ -0,0 +1,9 @@
1
+ import { FixedTimingOptions } from "./options/FixedTimingOptions";
2
+ export default class FixedTiming {
3
+ private readonly hour;
4
+ private readonly minute;
5
+ constructor(options?: FixedTimingOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class FixedTiming {
4
+ constructor(options = null) {
5
+ var _a, _b;
6
+ this.hour = null;
7
+ this.minute = null;
8
+ this.hour = (_a = options === null || options === void 0 ? void 0 : options.hour) !== null && _a !== void 0 ? _a : null;
9
+ this.minute = (_b = options === null || options === void 0 ? void 0 : options.minute) !== null && _b !== void 0 ? _b : null;
10
+ }
11
+ properties() {
12
+ let properties = {};
13
+ if (this.hour != null) {
14
+ properties["hour"] = this.hour;
15
+ }
16
+ if (this.minute != null) {
17
+ properties["minute"] = this.minute;
18
+ }
19
+ return properties;
20
+ }
21
+ }
22
+ exports.default = FixedTiming;
23
+ //# sourceMappingURL=FixedTiming.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FixedTiming.js","sourceRoot":"","sources":["FixedTiming.ts"],"names":[],"mappings":";;AAiBA,MAAqB,WAAW;IAI5B,YACI,UAAmC,IAAI;;QAJ1B,SAAI,GAAgB,IAAI,CAAC;QACzB,WAAM,GAAgB,IAAI,CAAC;QAKxC,IAAI,CAAC,IAAI,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,IAAI,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,IAAI,CAAC;IAC1C,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,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAxBD,8BAwBC"}
@@ -0,0 +1,42 @@
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 { FixedTimingOptions } from "./options/FixedTimingOptions";
17
+
18
+ export default class FixedTiming {
19
+ private readonly hour: number|null = null;
20
+ private readonly minute: number|null = null;
21
+
22
+ public constructor(
23
+ options: FixedTimingOptions|null = null,
24
+ ) {
25
+ this.hour = options?.hour ?? null;
26
+ this.minute = options?.minute ?? null;
27
+ }
28
+
29
+ public properties(
30
+ ): {[name: string]: any} {
31
+ let properties: {[name: string]: any} = {};
32
+
33
+ if (this.hour != null) {
34
+ properties["hour"] = this.hour;
35
+ }
36
+ if (this.minute != null) {
37
+ properties["minute"] = this.minute;
38
+ }
39
+
40
+ return properties;
41
+ }
42
+ }
@@ -0,0 +1,13 @@
1
+ import { GlobalRankingSettingOptions } from "./options/GlobalRankingSettingOptions";
2
+ export default class GlobalRankingSetting {
3
+ private readonly uniqueByUserId;
4
+ private readonly calculateIntervalMinutes;
5
+ private readonly calculateFixedTiming;
6
+ private readonly additionalScopes;
7
+ private readonly ignoreUserIds;
8
+ private readonly generation;
9
+ constructor(uniqueByUserId: boolean, calculateIntervalMinutes: number, options?: GlobalRankingSettingOptions | null);
10
+ properties(): {
11
+ [name: string]: any;
12
+ };
13
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class GlobalRankingSetting {
4
+ constructor(uniqueByUserId, calculateIntervalMinutes, options = null) {
5
+ var _a, _b, _c, _d;
6
+ this.calculateFixedTiming = null;
7
+ this.additionalScopes = null;
8
+ this.ignoreUserIds = null;
9
+ this.generation = null;
10
+ this.uniqueByUserId = uniqueByUserId;
11
+ this.calculateIntervalMinutes = calculateIntervalMinutes;
12
+ this.calculateFixedTiming = (_a = options === null || options === void 0 ? void 0 : options.calculateFixedTiming) !== null && _a !== void 0 ? _a : null;
13
+ this.additionalScopes = (_b = options === null || options === void 0 ? void 0 : options.additionalScopes) !== null && _b !== void 0 ? _b : null;
14
+ this.ignoreUserIds = (_c = options === null || options === void 0 ? void 0 : options.ignoreUserIds) !== null && _c !== void 0 ? _c : null;
15
+ this.generation = (_d = options === null || options === void 0 ? void 0 : options.generation) !== null && _d !== void 0 ? _d : null;
16
+ }
17
+ properties() {
18
+ var _a;
19
+ let properties = {};
20
+ if (this.uniqueByUserId != null) {
21
+ properties["uniqueByUserId"] = this.uniqueByUserId;
22
+ }
23
+ if (this.calculateIntervalMinutes != null) {
24
+ properties["calculateIntervalMinutes"] = this.calculateIntervalMinutes;
25
+ }
26
+ if (this.calculateFixedTiming != null) {
27
+ properties["calculateFixedTiming"] = (_a = this.calculateFixedTiming) === null || _a === void 0 ? void 0 : _a.properties();
28
+ }
29
+ if (this.additionalScopes != null) {
30
+ properties["additionalScopes"] = this.additionalScopes.map(v => v.properties());
31
+ }
32
+ if (this.ignoreUserIds != null) {
33
+ properties["ignoreUserIds"] = this.ignoreUserIds;
34
+ }
35
+ if (this.generation != null) {
36
+ properties["generation"] = this.generation;
37
+ }
38
+ return properties;
39
+ }
40
+ }
41
+ exports.default = GlobalRankingSetting;
42
+ //# sourceMappingURL=GlobalRankingSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalRankingSetting.js","sourceRoot":"","sources":["GlobalRankingSetting.ts"],"names":[],"mappings":";;AAmBA,MAAqB,oBAAoB;IAQrC,YACI,cAAuB,EACvB,wBAAgC,EAChC,UAA4C,IAAI;;QARnC,yBAAoB,GAAqB,IAAI,CAAC;QAC9C,qBAAgB,GAAiB,IAAI,CAAC;QACtC,kBAAa,GAAkB,IAAI,CAAC;QACpC,eAAU,GAAgB,IAAI,CAAC;QAO5C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;QACzD,IAAI,CAAC,oBAAoB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB,mCAAI,IAAI,CAAC;QAClE,IAAI,CAAC,gBAAgB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,IAAI,CAAC;QAC1D,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;IAClD,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,wBAAwB,IAAI,IAAI,EAAE;YACvC,UAAU,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC;SAC1E;QACD,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE;YACnC,UAAU,CAAC,sBAAsB,CAAC,GAAG,MAAA,IAAI,CAAC,oBAAoB,0CAAE,UAAU,EACzE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACvE,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,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhDD,uCAgDC"}
@@ -0,0 +1,68 @@
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 FixedTiming from "./FixedTiming";
17
+ import Scope from "./Scope";
18
+ import { GlobalRankingSettingOptions } from "./options/GlobalRankingSettingOptions";
19
+
20
+ export default class GlobalRankingSetting {
21
+ private readonly uniqueByUserId: boolean;
22
+ private readonly calculateIntervalMinutes: number;
23
+ private readonly calculateFixedTiming: FixedTiming|null = null;
24
+ private readonly additionalScopes: Scope[]|null = null;
25
+ private readonly ignoreUserIds: string[]|null = null;
26
+ private readonly generation: string|null = null;
27
+
28
+ public constructor(
29
+ uniqueByUserId: boolean,
30
+ calculateIntervalMinutes: number,
31
+ options: GlobalRankingSettingOptions|null = null,
32
+ ) {
33
+ this.uniqueByUserId = uniqueByUserId;
34
+ this.calculateIntervalMinutes = calculateIntervalMinutes;
35
+ this.calculateFixedTiming = options?.calculateFixedTiming ?? null;
36
+ this.additionalScopes = options?.additionalScopes ?? null;
37
+ this.ignoreUserIds = options?.ignoreUserIds ?? null;
38
+ this.generation = options?.generation ?? null;
39
+ }
40
+
41
+ public properties(
42
+ ): {[name: string]: any} {
43
+ let properties: {[name: string]: any} = {};
44
+
45
+ if (this.uniqueByUserId != null) {
46
+ properties["uniqueByUserId"] = this.uniqueByUserId;
47
+ }
48
+ if (this.calculateIntervalMinutes != null) {
49
+ properties["calculateIntervalMinutes"] = this.calculateIntervalMinutes;
50
+ }
51
+ if (this.calculateFixedTiming != null) {
52
+ properties["calculateFixedTiming"] = this.calculateFixedTiming?.properties(
53
+ );
54
+ }
55
+ if (this.additionalScopes != null) {
56
+ properties["additionalScopes"] = this.additionalScopes.map(v => v.properties(
57
+ ));
58
+ }
59
+ if (this.ignoreUserIds != null) {
60
+ properties["ignoreUserIds"] = this.ignoreUserIds;
61
+ }
62
+ if (this.generation != null) {
63
+ properties["generation"] = this.generation;
64
+ }
65
+
66
+ return properties;
67
+ }
68
+ }
@@ -8,7 +8,11 @@ import { CategoryModelScopeIsGlobalOptions } from "./options/CategoryModelScopeI
8
8
  import { CategoryModelScopeIsScopedOptions } from "./options/CategoryModelScopeIsScopedOptions";
9
9
  import Scope from "./Scope";
10
10
  import { ScopeOptions } from "./options/ScopeOptions";
11
+ import GlobalRankingSetting from "./GlobalRankingSetting";
12
+ import { GlobalRankingSettingOptions } from "./options/GlobalRankingSettingOptions";
13
+ import FixedTiming from "./FixedTiming";
14
+ import { FixedTimingOptions } from "./options/FixedTimingOptions";
11
15
  import CalculatedAt from "./CalculatedAt";
12
16
  import { CalculatedAtOptions } from "./options/CalculatedAtOptions";
13
17
  import CurrentMasterData from "./CurrentMasterData";
14
- export { Namespace, NamespaceOptions, CategoryModel, CategoryModelOptions, CategoryModelOrderDirection, CategoryModelScope, CategoryModelScopeIsGlobalOptions, CategoryModelScopeIsScopedOptions, Scope, ScopeOptions, CalculatedAt, CalculatedAtOptions, CurrentMasterData, };
18
+ export { Namespace, NamespaceOptions, CategoryModel, CategoryModelOptions, CategoryModelOrderDirection, CategoryModelScope, CategoryModelScopeIsGlobalOptions, CategoryModelScopeIsScopedOptions, Scope, ScopeOptions, GlobalRankingSetting, GlobalRankingSettingOptions, FixedTiming, FixedTimingOptions, CalculatedAt, CalculatedAtOptions, CurrentMasterData, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CurrentMasterData = exports.CalculatedAt = exports.Scope = exports.CategoryModelScope = exports.CategoryModelOrderDirection = exports.CategoryModel = exports.Namespace = void 0;
3
+ exports.CurrentMasterData = exports.CalculatedAt = exports.FixedTiming = exports.GlobalRankingSetting = exports.Scope = exports.CategoryModelScope = exports.CategoryModelOrderDirection = exports.CategoryModel = exports.Namespace = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -27,6 +27,10 @@ const CategoryModelScope_1 = require("./enum/CategoryModelScope");
27
27
  Object.defineProperty(exports, "CategoryModelScope", { enumerable: true, get: function () { return CategoryModelScope_1.CategoryModelScope; } });
28
28
  const Scope_1 = tslib_1.__importDefault(require("./Scope"));
29
29
  exports.Scope = Scope_1.default;
30
+ const GlobalRankingSetting_1 = tslib_1.__importDefault(require("./GlobalRankingSetting"));
31
+ exports.GlobalRankingSetting = GlobalRankingSetting_1.default;
32
+ const FixedTiming_1 = tslib_1.__importDefault(require("./FixedTiming"));
33
+ exports.FixedTiming = FixedTiming_1.default;
30
34
  const CalculatedAt_1 = tslib_1.__importDefault(require("./CalculatedAt"));
31
35
  exports.CalculatedAt = CalculatedAt_1.default;
32
36
  const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAehC,oBAfG,mBAAS,CAeH;AAbb,4EAA4C;AAexC,wBAfG,uBAAa,CAeH;AAbjB,oFAAiF;AAe7E,4GAfK,yDAA2B,OAeL;AAd/B,kEAA+D;AAe3D,mGAfK,uCAAkB,OAeL;AAZtB,4DAA4B;AAexB,gBAfG,eAAK,CAeH;AAbT,0EAA0C;AAetC,uBAfG,sBAAY,CAeH;AAbhB,oFAAoD;AAehD,4BAfG,2BAAiB,CAeH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAmBhC,oBAnBG,mBAAS,CAmBH;AAjBb,4EAA4C;AAmBxC,wBAnBG,uBAAa,CAmBH;AAjBjB,oFAAiF;AAmB7E,4GAnBK,yDAA2B,OAmBL;AAlB/B,kEAA+D;AAmB3D,mGAnBK,uCAAkB,OAmBL;AAhBtB,4DAA4B;AAmBxB,gBAnBG,eAAK,CAmBH;AAjBT,0FAA0D;AAmBtD,+BAnBG,8BAAoB,CAmBH;AAjBxB,wEAAwC;AAmBpC,sBAnBG,qBAAW,CAmBH;AAjBf,0EAA0C;AAmBtC,uBAnBG,sBAAY,CAmBH;AAjBhB,oFAAoD;AAmBhD,4BAnBG,2BAAiB,CAmBH"}
@@ -23,6 +23,10 @@ import { CategoryModelScopeIsGlobalOptions } from "./options/CategoryModelScopeI
23
23
  import { CategoryModelScopeIsScopedOptions } from "./options/CategoryModelScopeIsScopedOptions"
24
24
  import Scope from "./Scope";
25
25
  import { ScopeOptions } from "./options/ScopeOptions";
26
+ import GlobalRankingSetting from "./GlobalRankingSetting";
27
+ import { GlobalRankingSettingOptions } from "./options/GlobalRankingSettingOptions";
28
+ import FixedTiming from "./FixedTiming";
29
+ import { FixedTimingOptions } from "./options/FixedTimingOptions";
26
30
  import CalculatedAt from "./CalculatedAt";
27
31
  import { CalculatedAtOptions } from "./options/CalculatedAtOptions";
28
32
  import CurrentMasterData from "./CurrentMasterData";
@@ -38,6 +42,10 @@ export {
38
42
  CategoryModelScopeIsScopedOptions,
39
43
  Scope,
40
44
  ScopeOptions,
45
+ GlobalRankingSetting,
46
+ GlobalRankingSettingOptions,
47
+ FixedTiming,
48
+ FixedTimingOptions,
41
49
  CalculatedAt,
42
50
  CalculatedAtOptions,
43
51
  CurrentMasterData,
@@ -1,16 +1,17 @@
1
1
  import Scope from "../Scope";
2
+ import GlobalRankingSetting from "../GlobalRankingSetting";
2
3
  export interface CategoryModelOptions {
3
4
  metadata?: string | null;
4
5
  minimumValue?: number | null;
5
6
  maximumValue?: number | null;
7
+ globalRankingSetting?: GlobalRankingSetting | null;
8
+ entryPeriodEventId?: string | null;
9
+ accessPeriodEventId?: string | null;
6
10
  uniqueByUserId?: boolean | null;
7
- sum?: boolean | null;
8
11
  calculateFixedTimingHour?: number | null;
9
12
  calculateFixedTimingMinute?: number | null;
10
13
  calculateIntervalMinutes?: number | null;
11
14
  additionalScopes?: Scope[] | null;
12
- entryPeriodEventId?: string | null;
13
- accessPeriodEventId?: string | null;
14
15
  ignoreUserIds?: string[] | null;
15
16
  generation?: string | null;
16
17
  }
@@ -13,7 +13,9 @@
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
15
  */
16
+ import FixedTiming from "../FixedTiming";
16
17
  import Scope from "../Scope";
18
+ import GlobalRankingSetting from "../GlobalRankingSetting";
17
19
  import { CategoryModelOrderDirection } from "../enum/CategoryModelOrderDirection";
18
20
  import { CategoryModelScope } from "../enum/CategoryModelScope";
19
21
 
@@ -21,14 +23,14 @@ export interface CategoryModelOptions {
21
23
  metadata?: string|null;
22
24
  minimumValue?: number|null;
23
25
  maximumValue?: number|null;
26
+ globalRankingSetting?: GlobalRankingSetting|null;
27
+ entryPeriodEventId?: string|null;
28
+ accessPeriodEventId?: string|null;
24
29
  uniqueByUserId?: boolean|null;
25
- sum?: boolean|null;
26
30
  calculateFixedTimingHour?: number|null;
27
31
  calculateFixedTimingMinute?: number|null;
28
32
  calculateIntervalMinutes?: number|null;
29
33
  additionalScopes?: Scope[]|null;
30
- entryPeriodEventId?: string|null;
31
- accessPeriodEventId?: string|null;
32
34
  ignoreUserIds?: string[]|null;
33
35
  generation?: string|null;
34
36
  }
@@ -3,11 +3,11 @@ export interface CategoryModelScopeIsGlobalOptions {
3
3
  metadata?: string | null;
4
4
  minimumValue?: number | null;
5
5
  maximumValue?: number | null;
6
+ entryPeriodEventId?: string | null;
7
+ accessPeriodEventId?: string | null;
6
8
  calculateFixedTimingHour?: number | null;
7
9
  calculateFixedTimingMinute?: number | null;
8
10
  additionalScopes?: Scope[] | null;
9
- entryPeriodEventId?: string | null;
10
- accessPeriodEventId?: string | null;
11
11
  ignoreUserIds?: string[] | null;
12
12
  generation?: string | null;
13
13
  }
@@ -13,7 +13,9 @@
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
15
  */
16
+ import FixedTiming from "../FixedTiming";
16
17
  import Scope from "../Scope";
18
+ import GlobalRankingSetting from "../GlobalRankingSetting";
17
19
  import { CategoryModelOrderDirection } from "../enum/CategoryModelOrderDirection";
18
20
  import { CategoryModelScope } from "../enum/CategoryModelScope";
19
21
 
@@ -21,11 +23,11 @@ export interface CategoryModelScopeIsGlobalOptions {
21
23
  metadata?: string|null;
22
24
  minimumValue?: number|null;
23
25
  maximumValue?: number|null;
26
+ entryPeriodEventId?: string|null;
27
+ accessPeriodEventId?: string|null;
24
28
  calculateFixedTimingHour?: number|null;
25
29
  calculateFixedTimingMinute?: number|null;
26
30
  additionalScopes?: Scope[]|null;
27
- entryPeriodEventId?: string|null;
28
- accessPeriodEventId?: string|null;
29
31
  ignoreUserIds?: string[]|null;
30
32
  generation?: string|null;
31
33
  }
@@ -3,11 +3,11 @@ export interface CategoryModelScopeIsScopedOptions {
3
3
  metadata?: string | null;
4
4
  minimumValue?: number | null;
5
5
  maximumValue?: number | null;
6
+ entryPeriodEventId?: string | null;
7
+ accessPeriodEventId?: string | null;
6
8
  calculateFixedTimingHour?: number | null;
7
9
  calculateFixedTimingMinute?: number | null;
8
10
  additionalScopes?: Scope[] | null;
9
- entryPeriodEventId?: string | null;
10
- accessPeriodEventId?: string | null;
11
11
  ignoreUserIds?: string[] | null;
12
12
  generation?: string | null;
13
13
  }
@@ -13,7 +13,9 @@
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
15
  */
16
+ import FixedTiming from "../FixedTiming";
16
17
  import Scope from "../Scope";
18
+ import GlobalRankingSetting from "../GlobalRankingSetting";
17
19
  import { CategoryModelOrderDirection } from "../enum/CategoryModelOrderDirection";
18
20
  import { CategoryModelScope } from "../enum/CategoryModelScope";
19
21
 
@@ -21,11 +23,11 @@ export interface CategoryModelScopeIsScopedOptions {
21
23
  metadata?: string|null;
22
24
  minimumValue?: number|null;
23
25
  maximumValue?: number|null;
26
+ entryPeriodEventId?: string|null;
27
+ accessPeriodEventId?: string|null;
24
28
  calculateFixedTimingHour?: number|null;
25
29
  calculateFixedTimingMinute?: number|null;
26
30
  additionalScopes?: Scope[]|null;
27
- entryPeriodEventId?: string|null;
28
- accessPeriodEventId?: string|null;
29
31
  ignoreUserIds?: string[]|null;
30
32
  generation?: string|null;
31
33
  }
@@ -0,0 +1,4 @@
1
+ export interface FixedTimingOptions {
2
+ hour?: number | null;
3
+ minute?: number | null;
4
+ }
@@ -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=FixedTimingOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FixedTimingOptions.js","sourceRoot":"","sources":["FixedTimingOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ export interface FixedTimingOptions {
18
+ hour?: number|null;
19
+ minute?: number|null;
20
+ }
21
+
@@ -0,0 +1,8 @@
1
+ import FixedTiming from "../FixedTiming";
2
+ import Scope from "../Scope";
3
+ export interface GlobalRankingSettingOptions {
4
+ calculateFixedTiming?: FixedTiming | null;
5
+ additionalScopes?: Scope[] | null;
6
+ ignoreUserIds?: string[] | null;
7
+ generation?: string | null;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=GlobalRankingSettingOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalRankingSettingOptions.js","sourceRoot":"","sources":["GlobalRankingSettingOptions.ts"],"names":[],"mappings":""}