gs2 1.3.244 → 1.3.245

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 (32) hide show
  1. package/package.json +1 -1
  2. package/ranking/model/CategoryModel.d.ts +38 -12
  3. package/ranking/model/CategoryModel.js +79 -42
  4. package/ranking/model/CategoryModel.js.map +1 -1
  5. package/ranking/model/CategoryModel.ts +79 -42
  6. package/ranking/model/CategoryModelMaster.d.ts +38 -12
  7. package/ranking/model/CategoryModelMaster.js +79 -42
  8. package/ranking/model/CategoryModelMaster.js.map +1 -1
  9. package/ranking/model/CategoryModelMaster.ts +79 -42
  10. package/ranking/model/FixedTiming.d.ts +17 -0
  11. package/ranking/model/FixedTiming.js +62 -0
  12. package/ranking/model/FixedTiming.js.map +1 -0
  13. package/ranking/model/FixedTiming.ts +60 -0
  14. package/ranking/model/GlobalRankingSetting.d.ts +35 -0
  15. package/ranking/model/GlobalRankingSetting.js +134 -0
  16. package/ranking/model/GlobalRankingSetting.js.map +1 -0
  17. package/ranking/model/GlobalRankingSetting.ts +134 -0
  18. package/ranking/model/index.d.ts +4 -2
  19. package/ranking/model/index.js +7 -3
  20. package/ranking/model/index.js.map +1 -1
  21. package/ranking/model/index.ts +6 -2
  22. package/ranking/request/CreateCategoryModelMasterRequest.d.ts +33 -8
  23. package/ranking/request/CreateCategoryModelMasterRequest.js +64 -28
  24. package/ranking/request/CreateCategoryModelMasterRequest.js.map +1 -1
  25. package/ranking/request/CreateCategoryModelMasterRequest.ts +63 -28
  26. package/ranking/request/UpdateCategoryModelMasterRequest.d.ts +33 -8
  27. package/ranking/request/UpdateCategoryModelMasterRequest.js +64 -28
  28. package/ranking/request/UpdateCategoryModelMasterRequest.js.map +1 -1
  29. package/ranking/request/UpdateCategoryModelMasterRequest.ts +63 -28
  30. package/ranking/rest.js +24 -22
  31. package/ranking/rest.js.map +1 -1
  32. package/ranking/rest.ts +6 -4
@@ -15,7 +15,9 @@ permissions and limitations under the License.
15
15
  */
16
16
 
17
17
  import IModel from '../../core/interface/IModel';
18
+ import FixedTiming from './FixedTiming';
18
19
  import Scope from './Scope';
20
+ import GlobalRankingSetting from './GlobalRankingSetting';
19
21
  const grnFormat: string = "grn:gs2:{region}:{ownerId}:ranking:{namespaceName}:categoryModel:{categoryName}";
20
22
 
21
23
  export default class CategoryModel implements IModel {
@@ -24,16 +26,17 @@ export default class CategoryModel implements IModel {
24
26
  private metadata: string|null = null;
25
27
  private minimumValue: number|null = null;
26
28
  private maximumValue: number|null = null;
29
+ private sum: boolean|null = null;
27
30
  private orderDirection: string|null = null;
28
31
  private scope: string|null = null;
32
+ private globalRankingSetting: GlobalRankingSetting|null = null;
33
+ private entryPeriodEventId: string|null = null;
34
+ private accessPeriodEventId: string|null = null;
29
35
  private uniqueByUserId: boolean|null = null;
30
- private sum: boolean|null = null;
31
36
  private calculateFixedTimingHour: number|null = null;
32
37
  private calculateFixedTimingMinute: number|null = null;
33
38
  private calculateIntervalMinutes: number|null = null;
34
39
  private additionalScopes: Scope[]|null = null;
35
- private entryPeriodEventId: string|null = null;
36
- private accessPeriodEventId: string|null = null;
37
40
  private ignoreUserIds: string[]|null = null;
38
41
  private generation: string|null = null;
39
42
 
@@ -172,6 +175,17 @@ export default class CategoryModel implements IModel {
172
175
  this.maximumValue = maximumValue;
173
176
  return this;
174
177
  }
178
+ public getSum(): boolean|null {
179
+ return this.sum;
180
+ }
181
+ public setSum(sum: boolean|null) {
182
+ this.sum = sum;
183
+ return this;
184
+ }
185
+ public withSum(sum: boolean|null): this {
186
+ this.sum = sum;
187
+ return this;
188
+ }
175
189
  public getOrderDirection(): string|null {
176
190
  return this.orderDirection;
177
191
  }
@@ -194,112 +208,133 @@ export default class CategoryModel implements IModel {
194
208
  this.scope = scope;
195
209
  return this;
196
210
  }
211
+ public getGlobalRankingSetting(): GlobalRankingSetting|null {
212
+ return this.globalRankingSetting;
213
+ }
214
+ public setGlobalRankingSetting(globalRankingSetting: GlobalRankingSetting|null) {
215
+ this.globalRankingSetting = globalRankingSetting;
216
+ return this;
217
+ }
218
+ public withGlobalRankingSetting(globalRankingSetting: GlobalRankingSetting|null): this {
219
+ this.globalRankingSetting = globalRankingSetting;
220
+ return this;
221
+ }
222
+ public getEntryPeriodEventId(): string|null {
223
+ return this.entryPeriodEventId;
224
+ }
225
+ public setEntryPeriodEventId(entryPeriodEventId: string|null) {
226
+ this.entryPeriodEventId = entryPeriodEventId;
227
+ return this;
228
+ }
229
+ public withEntryPeriodEventId(entryPeriodEventId: string|null): this {
230
+ this.entryPeriodEventId = entryPeriodEventId;
231
+ return this;
232
+ }
233
+ public getAccessPeriodEventId(): string|null {
234
+ return this.accessPeriodEventId;
235
+ }
236
+ public setAccessPeriodEventId(accessPeriodEventId: string|null) {
237
+ this.accessPeriodEventId = accessPeriodEventId;
238
+ return this;
239
+ }
240
+ public withAccessPeriodEventId(accessPeriodEventId: string|null): this {
241
+ this.accessPeriodEventId = accessPeriodEventId;
242
+ return this;
243
+ }
244
+ /** @deprecated */
197
245
  public getUniqueByUserId(): boolean|null {
198
246
  return this.uniqueByUserId;
199
247
  }
248
+ /** @deprecated */
200
249
  public setUniqueByUserId(uniqueByUserId: boolean|null) {
201
250
  this.uniqueByUserId = uniqueByUserId;
202
251
  return this;
203
252
  }
253
+ /** @deprecated */
204
254
  public withUniqueByUserId(uniqueByUserId: boolean|null): this {
205
255
  this.uniqueByUserId = uniqueByUserId;
206
256
  return this;
207
257
  }
208
- public getSum(): boolean|null {
209
- return this.sum;
210
- }
211
- public setSum(sum: boolean|null) {
212
- this.sum = sum;
213
- return this;
214
- }
215
- public withSum(sum: boolean|null): this {
216
- this.sum = sum;
217
- return this;
218
- }
258
+ /** @deprecated */
219
259
  public getCalculateFixedTimingHour(): number|null {
220
260
  return this.calculateFixedTimingHour;
221
261
  }
262
+ /** @deprecated */
222
263
  public setCalculateFixedTimingHour(calculateFixedTimingHour: number|null) {
223
264
  this.calculateFixedTimingHour = calculateFixedTimingHour;
224
265
  return this;
225
266
  }
267
+ /** @deprecated */
226
268
  public withCalculateFixedTimingHour(calculateFixedTimingHour: number|null): this {
227
269
  this.calculateFixedTimingHour = calculateFixedTimingHour;
228
270
  return this;
229
271
  }
272
+ /** @deprecated */
230
273
  public getCalculateFixedTimingMinute(): number|null {
231
274
  return this.calculateFixedTimingMinute;
232
275
  }
276
+ /** @deprecated */
233
277
  public setCalculateFixedTimingMinute(calculateFixedTimingMinute: number|null) {
234
278
  this.calculateFixedTimingMinute = calculateFixedTimingMinute;
235
279
  return this;
236
280
  }
281
+ /** @deprecated */
237
282
  public withCalculateFixedTimingMinute(calculateFixedTimingMinute: number|null): this {
238
283
  this.calculateFixedTimingMinute = calculateFixedTimingMinute;
239
284
  return this;
240
285
  }
286
+ /** @deprecated */
241
287
  public getCalculateIntervalMinutes(): number|null {
242
288
  return this.calculateIntervalMinutes;
243
289
  }
290
+ /** @deprecated */
244
291
  public setCalculateIntervalMinutes(calculateIntervalMinutes: number|null) {
245
292
  this.calculateIntervalMinutes = calculateIntervalMinutes;
246
293
  return this;
247
294
  }
295
+ /** @deprecated */
248
296
  public withCalculateIntervalMinutes(calculateIntervalMinutes: number|null): this {
249
297
  this.calculateIntervalMinutes = calculateIntervalMinutes;
250
298
  return this;
251
299
  }
300
+ /** @deprecated */
252
301
  public getAdditionalScopes(): Scope[]|null {
253
302
  return this.additionalScopes;
254
303
  }
304
+ /** @deprecated */
255
305
  public setAdditionalScopes(additionalScopes: Scope[]|null) {
256
306
  this.additionalScopes = additionalScopes;
257
307
  return this;
258
308
  }
309
+ /** @deprecated */
259
310
  public withAdditionalScopes(additionalScopes: Scope[]|null): this {
260
311
  this.additionalScopes = additionalScopes;
261
312
  return this;
262
313
  }
263
- public getEntryPeriodEventId(): string|null {
264
- return this.entryPeriodEventId;
265
- }
266
- public setEntryPeriodEventId(entryPeriodEventId: string|null) {
267
- this.entryPeriodEventId = entryPeriodEventId;
268
- return this;
269
- }
270
- public withEntryPeriodEventId(entryPeriodEventId: string|null): this {
271
- this.entryPeriodEventId = entryPeriodEventId;
272
- return this;
273
- }
274
- public getAccessPeriodEventId(): string|null {
275
- return this.accessPeriodEventId;
276
- }
277
- public setAccessPeriodEventId(accessPeriodEventId: string|null) {
278
- this.accessPeriodEventId = accessPeriodEventId;
279
- return this;
280
- }
281
- public withAccessPeriodEventId(accessPeriodEventId: string|null): this {
282
- this.accessPeriodEventId = accessPeriodEventId;
283
- return this;
284
- }
314
+ /** @deprecated */
285
315
  public getIgnoreUserIds(): string[]|null {
286
316
  return this.ignoreUserIds;
287
317
  }
318
+ /** @deprecated */
288
319
  public setIgnoreUserIds(ignoreUserIds: string[]|null) {
289
320
  this.ignoreUserIds = ignoreUserIds;
290
321
  return this;
291
322
  }
323
+ /** @deprecated */
292
324
  public withIgnoreUserIds(ignoreUserIds: string[]|null): this {
293
325
  this.ignoreUserIds = ignoreUserIds;
294
326
  return this;
295
327
  }
328
+ /** @deprecated */
296
329
  public getGeneration(): string|null {
297
330
  return this.generation;
298
331
  }
332
+ /** @deprecated */
299
333
  public setGeneration(generation: string|null) {
300
334
  this.generation = generation;
301
335
  return this;
302
336
  }
337
+ /** @deprecated */
303
338
  public withGeneration(generation: string|null): this {
304
339
  this.generation = generation;
305
340
  return this;
@@ -315,10 +350,13 @@ export default class CategoryModel implements IModel {
315
350
  .withMetadata(data["metadata"])
316
351
  .withMinimumValue(data["minimumValue"])
317
352
  .withMaximumValue(data["maximumValue"])
353
+ .withSum(data["sum"])
318
354
  .withOrderDirection(data["orderDirection"])
319
355
  .withScope(data["scope"])
356
+ .withGlobalRankingSetting(GlobalRankingSetting.fromDict(data["globalRankingSetting"]))
357
+ .withEntryPeriodEventId(data["entryPeriodEventId"])
358
+ .withAccessPeriodEventId(data["accessPeriodEventId"])
320
359
  .withUniqueByUserId(data["uniqueByUserId"])
321
- .withSum(data["sum"])
322
360
  .withCalculateFixedTimingHour(data["calculateFixedTimingHour"])
323
361
  .withCalculateFixedTimingMinute(data["calculateFixedTimingMinute"])
324
362
  .withCalculateIntervalMinutes(data["calculateIntervalMinutes"])
@@ -327,8 +365,6 @@ export default class CategoryModel implements IModel {
327
365
  return Scope.fromDict(item);
328
366
  }
329
367
  ) : [])
330
- .withEntryPeriodEventId(data["entryPeriodEventId"])
331
- .withAccessPeriodEventId(data["accessPeriodEventId"])
332
368
  .withIgnoreUserIds(data.ignoreUserIds ?
333
369
  data.ignoreUserIds.map((item: {[key: string]: any}) => {
334
370
  return item;
@@ -344,10 +380,13 @@ export default class CategoryModel implements IModel {
344
380
  "metadata": this.getMetadata(),
345
381
  "minimumValue": this.getMinimumValue(),
346
382
  "maximumValue": this.getMaximumValue(),
383
+ "sum": this.getSum(),
347
384
  "orderDirection": this.getOrderDirection(),
348
385
  "scope": this.getScope(),
386
+ "globalRankingSetting": this.getGlobalRankingSetting()?.toDict(),
387
+ "entryPeriodEventId": this.getEntryPeriodEventId(),
388
+ "accessPeriodEventId": this.getAccessPeriodEventId(),
349
389
  "uniqueByUserId": this.getUniqueByUserId(),
350
- "sum": this.getSum(),
351
390
  "calculateFixedTimingHour": this.getCalculateFixedTimingHour(),
352
391
  "calculateFixedTimingMinute": this.getCalculateFixedTimingMinute(),
353
392
  "calculateIntervalMinutes": this.getCalculateIntervalMinutes(),
@@ -356,8 +395,6 @@ export default class CategoryModel implements IModel {
356
395
  return item.toDict();
357
396
  }
358
397
  ) : [],
359
- "entryPeriodEventId": this.getEntryPeriodEventId(),
360
- "accessPeriodEventId": this.getAccessPeriodEventId(),
361
398
  "ignoreUserIds": this.getIgnoreUserIds() ?
362
399
  this.getIgnoreUserIds()!.map((item: string) => {
363
400
  return item;
@@ -1,5 +1,6 @@
1
1
  import IModel from '../../core/interface/IModel';
2
2
  import Scope from './Scope';
3
+ import GlobalRankingSetting from './GlobalRankingSetting';
3
4
  export default class CategoryModelMaster implements IModel {
4
5
  private categoryModelId;
5
6
  private name;
@@ -7,16 +8,17 @@ export default class CategoryModelMaster implements IModel {
7
8
  private metadata;
8
9
  private minimumValue;
9
10
  private maximumValue;
11
+ private sum;
10
12
  private orderDirection;
11
13
  private scope;
14
+ private globalRankingSetting;
15
+ private entryPeriodEventId;
16
+ private accessPeriodEventId;
12
17
  private uniqueByUserId;
13
- private sum;
14
18
  private calculateFixedTimingHour;
15
19
  private calculateFixedTimingMinute;
16
20
  private calculateIntervalMinutes;
17
21
  private additionalScopes;
18
- private entryPeriodEventId;
19
- private accessPeriodEventId;
20
22
  private ignoreUserIds;
21
23
  private generation;
22
24
  private createdAt;
@@ -46,41 +48,65 @@ export default class CategoryModelMaster implements IModel {
46
48
  getMaximumValue(): number | null;
47
49
  setMaximumValue(maximumValue: number | null): this;
48
50
  withMaximumValue(maximumValue: number | null): this;
51
+ getSum(): boolean | null;
52
+ setSum(sum: boolean | null): this;
53
+ withSum(sum: boolean | null): this;
49
54
  getOrderDirection(): string | null;
50
55
  setOrderDirection(orderDirection: string | null): this;
51
56
  withOrderDirection(orderDirection: string | null): this;
52
57
  getScope(): string | null;
53
58
  setScope(scope: string | null): this;
54
59
  withScope(scope: string | null): this;
60
+ getGlobalRankingSetting(): GlobalRankingSetting | null;
61
+ setGlobalRankingSetting(globalRankingSetting: GlobalRankingSetting | null): this;
62
+ withGlobalRankingSetting(globalRankingSetting: GlobalRankingSetting | null): this;
63
+ getEntryPeriodEventId(): string | null;
64
+ setEntryPeriodEventId(entryPeriodEventId: string | null): this;
65
+ withEntryPeriodEventId(entryPeriodEventId: string | null): this;
66
+ getAccessPeriodEventId(): string | null;
67
+ setAccessPeriodEventId(accessPeriodEventId: string | null): this;
68
+ withAccessPeriodEventId(accessPeriodEventId: string | null): this;
69
+ /** @deprecated */
55
70
  getUniqueByUserId(): boolean | null;
71
+ /** @deprecated */
56
72
  setUniqueByUserId(uniqueByUserId: boolean | null): this;
73
+ /** @deprecated */
57
74
  withUniqueByUserId(uniqueByUserId: boolean | null): this;
58
- getSum(): boolean | null;
59
- setSum(sum: boolean | null): this;
60
- withSum(sum: boolean | null): this;
75
+ /** @deprecated */
61
76
  getCalculateFixedTimingHour(): number | null;
77
+ /** @deprecated */
62
78
  setCalculateFixedTimingHour(calculateFixedTimingHour: number | null): this;
79
+ /** @deprecated */
63
80
  withCalculateFixedTimingHour(calculateFixedTimingHour: number | null): this;
81
+ /** @deprecated */
64
82
  getCalculateFixedTimingMinute(): number | null;
83
+ /** @deprecated */
65
84
  setCalculateFixedTimingMinute(calculateFixedTimingMinute: number | null): this;
85
+ /** @deprecated */
66
86
  withCalculateFixedTimingMinute(calculateFixedTimingMinute: number | null): this;
87
+ /** @deprecated */
67
88
  getCalculateIntervalMinutes(): number | null;
89
+ /** @deprecated */
68
90
  setCalculateIntervalMinutes(calculateIntervalMinutes: number | null): this;
91
+ /** @deprecated */
69
92
  withCalculateIntervalMinutes(calculateIntervalMinutes: number | null): this;
93
+ /** @deprecated */
70
94
  getAdditionalScopes(): Scope[] | null;
95
+ /** @deprecated */
71
96
  setAdditionalScopes(additionalScopes: Scope[] | null): this;
97
+ /** @deprecated */
72
98
  withAdditionalScopes(additionalScopes: Scope[] | null): this;
73
- getEntryPeriodEventId(): string | null;
74
- setEntryPeriodEventId(entryPeriodEventId: string | null): this;
75
- withEntryPeriodEventId(entryPeriodEventId: string | null): this;
76
- getAccessPeriodEventId(): string | null;
77
- setAccessPeriodEventId(accessPeriodEventId: string | null): this;
78
- withAccessPeriodEventId(accessPeriodEventId: string | null): this;
99
+ /** @deprecated */
79
100
  getIgnoreUserIds(): string[] | null;
101
+ /** @deprecated */
80
102
  setIgnoreUserIds(ignoreUserIds: string[] | null): this;
103
+ /** @deprecated */
81
104
  withIgnoreUserIds(ignoreUserIds: string[] | null): this;
105
+ /** @deprecated */
82
106
  getGeneration(): string | null;
107
+ /** @deprecated */
83
108
  setGeneration(generation: string | null): this;
109
+ /** @deprecated */
84
110
  withGeneration(generation: string | null): this;
85
111
  getCreatedAt(): number | null;
86
112
  setCreatedAt(createdAt: number | null): this;
@@ -17,6 +17,7 @@ permissions and limitations under the License.
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  var tslib_1 = require("tslib");
19
19
  var Scope_1 = tslib_1.__importDefault(require("./Scope"));
20
+ var GlobalRankingSetting_1 = tslib_1.__importDefault(require("./GlobalRankingSetting"));
20
21
  var grnFormat = "grn:gs2:{region}:{ownerId}:ranking:{namespaceName}:categoryModelMaster:{categoryName}";
21
22
  var CategoryModelMaster = /** @class */ (function () {
22
23
  function CategoryModelMaster() {
@@ -26,16 +27,17 @@ var CategoryModelMaster = /** @class */ (function () {
26
27
  this.metadata = null;
27
28
  this.minimumValue = null;
28
29
  this.maximumValue = null;
30
+ this.sum = null;
29
31
  this.orderDirection = null;
30
32
  this.scope = null;
33
+ this.globalRankingSetting = null;
34
+ this.entryPeriodEventId = null;
35
+ this.accessPeriodEventId = null;
31
36
  this.uniqueByUserId = null;
32
- this.sum = null;
33
37
  this.calculateFixedTimingHour = null;
34
38
  this.calculateFixedTimingMinute = null;
35
39
  this.calculateIntervalMinutes = null;
36
40
  this.additionalScopes = null;
37
- this.entryPeriodEventId = null;
38
- this.accessPeriodEventId = null;
39
41
  this.ignoreUserIds = null;
40
42
  this.generation = null;
41
43
  this.createdAt = null;
@@ -174,6 +176,17 @@ var CategoryModelMaster = /** @class */ (function () {
174
176
  this.maximumValue = maximumValue;
175
177
  return this;
176
178
  };
179
+ CategoryModelMaster.prototype.getSum = function () {
180
+ return this.sum;
181
+ };
182
+ CategoryModelMaster.prototype.setSum = function (sum) {
183
+ this.sum = sum;
184
+ return this;
185
+ };
186
+ CategoryModelMaster.prototype.withSum = function (sum) {
187
+ this.sum = sum;
188
+ return this;
189
+ };
177
190
  CategoryModelMaster.prototype.getOrderDirection = function () {
178
191
  return this.orderDirection;
179
192
  };
@@ -196,112 +209,133 @@ var CategoryModelMaster = /** @class */ (function () {
196
209
  this.scope = scope;
197
210
  return this;
198
211
  };
212
+ CategoryModelMaster.prototype.getGlobalRankingSetting = function () {
213
+ return this.globalRankingSetting;
214
+ };
215
+ CategoryModelMaster.prototype.setGlobalRankingSetting = function (globalRankingSetting) {
216
+ this.globalRankingSetting = globalRankingSetting;
217
+ return this;
218
+ };
219
+ CategoryModelMaster.prototype.withGlobalRankingSetting = function (globalRankingSetting) {
220
+ this.globalRankingSetting = globalRankingSetting;
221
+ return this;
222
+ };
223
+ CategoryModelMaster.prototype.getEntryPeriodEventId = function () {
224
+ return this.entryPeriodEventId;
225
+ };
226
+ CategoryModelMaster.prototype.setEntryPeriodEventId = function (entryPeriodEventId) {
227
+ this.entryPeriodEventId = entryPeriodEventId;
228
+ return this;
229
+ };
230
+ CategoryModelMaster.prototype.withEntryPeriodEventId = function (entryPeriodEventId) {
231
+ this.entryPeriodEventId = entryPeriodEventId;
232
+ return this;
233
+ };
234
+ CategoryModelMaster.prototype.getAccessPeriodEventId = function () {
235
+ return this.accessPeriodEventId;
236
+ };
237
+ CategoryModelMaster.prototype.setAccessPeriodEventId = function (accessPeriodEventId) {
238
+ this.accessPeriodEventId = accessPeriodEventId;
239
+ return this;
240
+ };
241
+ CategoryModelMaster.prototype.withAccessPeriodEventId = function (accessPeriodEventId) {
242
+ this.accessPeriodEventId = accessPeriodEventId;
243
+ return this;
244
+ };
245
+ /** @deprecated */
199
246
  CategoryModelMaster.prototype.getUniqueByUserId = function () {
200
247
  return this.uniqueByUserId;
201
248
  };
249
+ /** @deprecated */
202
250
  CategoryModelMaster.prototype.setUniqueByUserId = function (uniqueByUserId) {
203
251
  this.uniqueByUserId = uniqueByUserId;
204
252
  return this;
205
253
  };
254
+ /** @deprecated */
206
255
  CategoryModelMaster.prototype.withUniqueByUserId = function (uniqueByUserId) {
207
256
  this.uniqueByUserId = uniqueByUserId;
208
257
  return this;
209
258
  };
210
- CategoryModelMaster.prototype.getSum = function () {
211
- return this.sum;
212
- };
213
- CategoryModelMaster.prototype.setSum = function (sum) {
214
- this.sum = sum;
215
- return this;
216
- };
217
- CategoryModelMaster.prototype.withSum = function (sum) {
218
- this.sum = sum;
219
- return this;
220
- };
259
+ /** @deprecated */
221
260
  CategoryModelMaster.prototype.getCalculateFixedTimingHour = function () {
222
261
  return this.calculateFixedTimingHour;
223
262
  };
263
+ /** @deprecated */
224
264
  CategoryModelMaster.prototype.setCalculateFixedTimingHour = function (calculateFixedTimingHour) {
225
265
  this.calculateFixedTimingHour = calculateFixedTimingHour;
226
266
  return this;
227
267
  };
268
+ /** @deprecated */
228
269
  CategoryModelMaster.prototype.withCalculateFixedTimingHour = function (calculateFixedTimingHour) {
229
270
  this.calculateFixedTimingHour = calculateFixedTimingHour;
230
271
  return this;
231
272
  };
273
+ /** @deprecated */
232
274
  CategoryModelMaster.prototype.getCalculateFixedTimingMinute = function () {
233
275
  return this.calculateFixedTimingMinute;
234
276
  };
277
+ /** @deprecated */
235
278
  CategoryModelMaster.prototype.setCalculateFixedTimingMinute = function (calculateFixedTimingMinute) {
236
279
  this.calculateFixedTimingMinute = calculateFixedTimingMinute;
237
280
  return this;
238
281
  };
282
+ /** @deprecated */
239
283
  CategoryModelMaster.prototype.withCalculateFixedTimingMinute = function (calculateFixedTimingMinute) {
240
284
  this.calculateFixedTimingMinute = calculateFixedTimingMinute;
241
285
  return this;
242
286
  };
287
+ /** @deprecated */
243
288
  CategoryModelMaster.prototype.getCalculateIntervalMinutes = function () {
244
289
  return this.calculateIntervalMinutes;
245
290
  };
291
+ /** @deprecated */
246
292
  CategoryModelMaster.prototype.setCalculateIntervalMinutes = function (calculateIntervalMinutes) {
247
293
  this.calculateIntervalMinutes = calculateIntervalMinutes;
248
294
  return this;
249
295
  };
296
+ /** @deprecated */
250
297
  CategoryModelMaster.prototype.withCalculateIntervalMinutes = function (calculateIntervalMinutes) {
251
298
  this.calculateIntervalMinutes = calculateIntervalMinutes;
252
299
  return this;
253
300
  };
301
+ /** @deprecated */
254
302
  CategoryModelMaster.prototype.getAdditionalScopes = function () {
255
303
  return this.additionalScopes;
256
304
  };
305
+ /** @deprecated */
257
306
  CategoryModelMaster.prototype.setAdditionalScopes = function (additionalScopes) {
258
307
  this.additionalScopes = additionalScopes;
259
308
  return this;
260
309
  };
310
+ /** @deprecated */
261
311
  CategoryModelMaster.prototype.withAdditionalScopes = function (additionalScopes) {
262
312
  this.additionalScopes = additionalScopes;
263
313
  return this;
264
314
  };
265
- CategoryModelMaster.prototype.getEntryPeriodEventId = function () {
266
- return this.entryPeriodEventId;
267
- };
268
- CategoryModelMaster.prototype.setEntryPeriodEventId = function (entryPeriodEventId) {
269
- this.entryPeriodEventId = entryPeriodEventId;
270
- return this;
271
- };
272
- CategoryModelMaster.prototype.withEntryPeriodEventId = function (entryPeriodEventId) {
273
- this.entryPeriodEventId = entryPeriodEventId;
274
- return this;
275
- };
276
- CategoryModelMaster.prototype.getAccessPeriodEventId = function () {
277
- return this.accessPeriodEventId;
278
- };
279
- CategoryModelMaster.prototype.setAccessPeriodEventId = function (accessPeriodEventId) {
280
- this.accessPeriodEventId = accessPeriodEventId;
281
- return this;
282
- };
283
- CategoryModelMaster.prototype.withAccessPeriodEventId = function (accessPeriodEventId) {
284
- this.accessPeriodEventId = accessPeriodEventId;
285
- return this;
286
- };
315
+ /** @deprecated */
287
316
  CategoryModelMaster.prototype.getIgnoreUserIds = function () {
288
317
  return this.ignoreUserIds;
289
318
  };
319
+ /** @deprecated */
290
320
  CategoryModelMaster.prototype.setIgnoreUserIds = function (ignoreUserIds) {
291
321
  this.ignoreUserIds = ignoreUserIds;
292
322
  return this;
293
323
  };
324
+ /** @deprecated */
294
325
  CategoryModelMaster.prototype.withIgnoreUserIds = function (ignoreUserIds) {
295
326
  this.ignoreUserIds = ignoreUserIds;
296
327
  return this;
297
328
  };
329
+ /** @deprecated */
298
330
  CategoryModelMaster.prototype.getGeneration = function () {
299
331
  return this.generation;
300
332
  };
333
+ /** @deprecated */
301
334
  CategoryModelMaster.prototype.setGeneration = function (generation) {
302
335
  this.generation = generation;
303
336
  return this;
304
337
  };
338
+ /** @deprecated */
305
339
  CategoryModelMaster.prototype.withGeneration = function (generation) {
306
340
  this.generation = generation;
307
341
  return this;
@@ -350,10 +384,13 @@ var CategoryModelMaster = /** @class */ (function () {
350
384
  .withMetadata(data["metadata"])
351
385
  .withMinimumValue(data["minimumValue"])
352
386
  .withMaximumValue(data["maximumValue"])
387
+ .withSum(data["sum"])
353
388
  .withOrderDirection(data["orderDirection"])
354
389
  .withScope(data["scope"])
390
+ .withGlobalRankingSetting(GlobalRankingSetting_1.default.fromDict(data["globalRankingSetting"]))
391
+ .withEntryPeriodEventId(data["entryPeriodEventId"])
392
+ .withAccessPeriodEventId(data["accessPeriodEventId"])
355
393
  .withUniqueByUserId(data["uniqueByUserId"])
356
- .withSum(data["sum"])
357
394
  .withCalculateFixedTimingHour(data["calculateFixedTimingHour"])
358
395
  .withCalculateFixedTimingMinute(data["calculateFixedTimingMinute"])
359
396
  .withCalculateIntervalMinutes(data["calculateIntervalMinutes"])
@@ -361,8 +398,6 @@ var CategoryModelMaster = /** @class */ (function () {
361
398
  data.additionalScopes.map(function (item) {
362
399
  return Scope_1.default.fromDict(item);
363
400
  }) : [])
364
- .withEntryPeriodEventId(data["entryPeriodEventId"])
365
- .withAccessPeriodEventId(data["accessPeriodEventId"])
366
401
  .withIgnoreUserIds(data.ignoreUserIds ?
367
402
  data.ignoreUserIds.map(function (item) {
368
403
  return item;
@@ -373,6 +408,7 @@ var CategoryModelMaster = /** @class */ (function () {
373
408
  .withRevision(data["revision"]);
374
409
  };
375
410
  CategoryModelMaster.prototype.toDict = function () {
411
+ var _a;
376
412
  return {
377
413
  "categoryModelId": this.getCategoryModelId(),
378
414
  "name": this.getName(),
@@ -380,10 +416,13 @@ var CategoryModelMaster = /** @class */ (function () {
380
416
  "metadata": this.getMetadata(),
381
417
  "minimumValue": this.getMinimumValue(),
382
418
  "maximumValue": this.getMaximumValue(),
419
+ "sum": this.getSum(),
383
420
  "orderDirection": this.getOrderDirection(),
384
421
  "scope": this.getScope(),
422
+ "globalRankingSetting": (_a = this.getGlobalRankingSetting()) === null || _a === void 0 ? void 0 : _a.toDict(),
423
+ "entryPeriodEventId": this.getEntryPeriodEventId(),
424
+ "accessPeriodEventId": this.getAccessPeriodEventId(),
385
425
  "uniqueByUserId": this.getUniqueByUserId(),
386
- "sum": this.getSum(),
387
426
  "calculateFixedTimingHour": this.getCalculateFixedTimingHour(),
388
427
  "calculateFixedTimingMinute": this.getCalculateFixedTimingMinute(),
389
428
  "calculateIntervalMinutes": this.getCalculateIntervalMinutes(),
@@ -391,8 +430,6 @@ var CategoryModelMaster = /** @class */ (function () {
391
430
  this.getAdditionalScopes().map(function (item) {
392
431
  return item.toDict();
393
432
  }) : [],
394
- "entryPeriodEventId": this.getEntryPeriodEventId(),
395
- "accessPeriodEventId": this.getAccessPeriodEventId(),
396
433
  "ignoreUserIds": this.getIgnoreUserIds() ?
397
434
  this.getIgnoreUserIds().map(function (item) {
398
435
  return item;