gs2 1.3.241 → 1.3.242

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.
@@ -15,6 +15,7 @@ permissions and limitations under the License.
15
15
  */
16
16
 
17
17
  import IModel from '../../core/interface/IModel';
18
+ import RepeatSetting from './RepeatSetting';
18
19
  const grnFormat: string = "grn:gs2:{region}:{ownerId}:schedule:{namespaceName}:event:{eventName}";
19
20
 
20
21
  export default class EventMaster implements IModel {
@@ -23,19 +24,20 @@ export default class EventMaster implements IModel {
23
24
  private description: string|null = null;
24
25
  private metadata: string|null = null;
25
26
  private scheduleType: string|null = null;
26
- private repeatType: string|null = null;
27
27
  private absoluteBegin: number|null = null;
28
28
  private absoluteEnd: number|null = null;
29
+ private relativeTriggerName: string|null = null;
30
+ private repeatSetting: RepeatSetting|null = null;
31
+ private createdAt: number|null = null;
32
+ private updatedAt: number|null = null;
33
+ private revision: number|null = null;
34
+ private repeatType: string|null = null;
29
35
  private repeatBeginDayOfMonth: number|null = null;
30
36
  private repeatEndDayOfMonth: number|null = null;
31
37
  private repeatBeginDayOfWeek: string|null = null;
32
38
  private repeatEndDayOfWeek: string|null = null;
33
39
  private repeatBeginHour: number|null = null;
34
40
  private repeatEndHour: number|null = null;
35
- private relativeTriggerName: string|null = null;
36
- private createdAt: number|null = null;
37
- private updatedAt: number|null = null;
38
- private revision: number|null = null;
39
41
 
40
42
  public static getRegion(grn: string): string|null {
41
43
  const match = grn.match(grnFormat
@@ -172,17 +174,6 @@ export default class EventMaster implements IModel {
172
174
  this.scheduleType = scheduleType;
173
175
  return this;
174
176
  }
175
- public getRepeatType(): string|null {
176
- return this.repeatType;
177
- }
178
- public setRepeatType(repeatType: string|null) {
179
- this.repeatType = repeatType;
180
- return this;
181
- }
182
- public withRepeatType(repeatType: string|null): this {
183
- this.repeatType = repeatType;
184
- return this;
185
- }
186
177
  public getAbsoluteBegin(): number|null {
187
178
  return this.absoluteBegin;
188
179
  }
@@ -205,116 +196,159 @@ export default class EventMaster implements IModel {
205
196
  this.absoluteEnd = absoluteEnd;
206
197
  return this;
207
198
  }
199
+ public getRelativeTriggerName(): string|null {
200
+ return this.relativeTriggerName;
201
+ }
202
+ public setRelativeTriggerName(relativeTriggerName: string|null) {
203
+ this.relativeTriggerName = relativeTriggerName;
204
+ return this;
205
+ }
206
+ public withRelativeTriggerName(relativeTriggerName: string|null): this {
207
+ this.relativeTriggerName = relativeTriggerName;
208
+ return this;
209
+ }
210
+ public getRepeatSetting(): RepeatSetting|null {
211
+ return this.repeatSetting;
212
+ }
213
+ public setRepeatSetting(repeatSetting: RepeatSetting|null) {
214
+ this.repeatSetting = repeatSetting;
215
+ return this;
216
+ }
217
+ public withRepeatSetting(repeatSetting: RepeatSetting|null): this {
218
+ this.repeatSetting = repeatSetting;
219
+ return this;
220
+ }
221
+ public getCreatedAt(): number|null {
222
+ return this.createdAt;
223
+ }
224
+ public setCreatedAt(createdAt: number|null) {
225
+ this.createdAt = createdAt;
226
+ return this;
227
+ }
228
+ public withCreatedAt(createdAt: number|null): this {
229
+ this.createdAt = createdAt;
230
+ return this;
231
+ }
232
+ public getUpdatedAt(): number|null {
233
+ return this.updatedAt;
234
+ }
235
+ public setUpdatedAt(updatedAt: number|null) {
236
+ this.updatedAt = updatedAt;
237
+ return this;
238
+ }
239
+ public withUpdatedAt(updatedAt: number|null): this {
240
+ this.updatedAt = updatedAt;
241
+ return this;
242
+ }
243
+ public getRevision(): number|null {
244
+ return this.revision;
245
+ }
246
+ public setRevision(revision: number|null) {
247
+ this.revision = revision;
248
+ return this;
249
+ }
250
+ public withRevision(revision: number|null): this {
251
+ this.revision = revision;
252
+ return this;
253
+ }
254
+ /** @deprecated */
255
+ public getRepeatType(): string|null {
256
+ return this.repeatType;
257
+ }
258
+ /** @deprecated */
259
+ public setRepeatType(repeatType: string|null) {
260
+ this.repeatType = repeatType;
261
+ return this;
262
+ }
263
+ /** @deprecated */
264
+ public withRepeatType(repeatType: string|null): this {
265
+ this.repeatType = repeatType;
266
+ return this;
267
+ }
268
+ /** @deprecated */
208
269
  public getRepeatBeginDayOfMonth(): number|null {
209
270
  return this.repeatBeginDayOfMonth;
210
271
  }
272
+ /** @deprecated */
211
273
  public setRepeatBeginDayOfMonth(repeatBeginDayOfMonth: number|null) {
212
274
  this.repeatBeginDayOfMonth = repeatBeginDayOfMonth;
213
275
  return this;
214
276
  }
277
+ /** @deprecated */
215
278
  public withRepeatBeginDayOfMonth(repeatBeginDayOfMonth: number|null): this {
216
279
  this.repeatBeginDayOfMonth = repeatBeginDayOfMonth;
217
280
  return this;
218
281
  }
282
+ /** @deprecated */
219
283
  public getRepeatEndDayOfMonth(): number|null {
220
284
  return this.repeatEndDayOfMonth;
221
285
  }
286
+ /** @deprecated */
222
287
  public setRepeatEndDayOfMonth(repeatEndDayOfMonth: number|null) {
223
288
  this.repeatEndDayOfMonth = repeatEndDayOfMonth;
224
289
  return this;
225
290
  }
291
+ /** @deprecated */
226
292
  public withRepeatEndDayOfMonth(repeatEndDayOfMonth: number|null): this {
227
293
  this.repeatEndDayOfMonth = repeatEndDayOfMonth;
228
294
  return this;
229
295
  }
296
+ /** @deprecated */
230
297
  public getRepeatBeginDayOfWeek(): string|null {
231
298
  return this.repeatBeginDayOfWeek;
232
299
  }
300
+ /** @deprecated */
233
301
  public setRepeatBeginDayOfWeek(repeatBeginDayOfWeek: string|null) {
234
302
  this.repeatBeginDayOfWeek = repeatBeginDayOfWeek;
235
303
  return this;
236
304
  }
305
+ /** @deprecated */
237
306
  public withRepeatBeginDayOfWeek(repeatBeginDayOfWeek: string|null): this {
238
307
  this.repeatBeginDayOfWeek = repeatBeginDayOfWeek;
239
308
  return this;
240
309
  }
310
+ /** @deprecated */
241
311
  public getRepeatEndDayOfWeek(): string|null {
242
312
  return this.repeatEndDayOfWeek;
243
313
  }
314
+ /** @deprecated */
244
315
  public setRepeatEndDayOfWeek(repeatEndDayOfWeek: string|null) {
245
316
  this.repeatEndDayOfWeek = repeatEndDayOfWeek;
246
317
  return this;
247
318
  }
319
+ /** @deprecated */
248
320
  public withRepeatEndDayOfWeek(repeatEndDayOfWeek: string|null): this {
249
321
  this.repeatEndDayOfWeek = repeatEndDayOfWeek;
250
322
  return this;
251
323
  }
324
+ /** @deprecated */
252
325
  public getRepeatBeginHour(): number|null {
253
326
  return this.repeatBeginHour;
254
327
  }
328
+ /** @deprecated */
255
329
  public setRepeatBeginHour(repeatBeginHour: number|null) {
256
330
  this.repeatBeginHour = repeatBeginHour;
257
331
  return this;
258
332
  }
333
+ /** @deprecated */
259
334
  public withRepeatBeginHour(repeatBeginHour: number|null): this {
260
335
  this.repeatBeginHour = repeatBeginHour;
261
336
  return this;
262
337
  }
338
+ /** @deprecated */
263
339
  public getRepeatEndHour(): number|null {
264
340
  return this.repeatEndHour;
265
341
  }
342
+ /** @deprecated */
266
343
  public setRepeatEndHour(repeatEndHour: number|null) {
267
344
  this.repeatEndHour = repeatEndHour;
268
345
  return this;
269
346
  }
347
+ /** @deprecated */
270
348
  public withRepeatEndHour(repeatEndHour: number|null): this {
271
349
  this.repeatEndHour = repeatEndHour;
272
350
  return this;
273
351
  }
274
- public getRelativeTriggerName(): string|null {
275
- return this.relativeTriggerName;
276
- }
277
- public setRelativeTriggerName(relativeTriggerName: string|null) {
278
- this.relativeTriggerName = relativeTriggerName;
279
- return this;
280
- }
281
- public withRelativeTriggerName(relativeTriggerName: string|null): this {
282
- this.relativeTriggerName = relativeTriggerName;
283
- return this;
284
- }
285
- public getCreatedAt(): number|null {
286
- return this.createdAt;
287
- }
288
- public setCreatedAt(createdAt: number|null) {
289
- this.createdAt = createdAt;
290
- return this;
291
- }
292
- public withCreatedAt(createdAt: number|null): this {
293
- this.createdAt = createdAt;
294
- return this;
295
- }
296
- public getUpdatedAt(): number|null {
297
- return this.updatedAt;
298
- }
299
- public setUpdatedAt(updatedAt: number|null) {
300
- this.updatedAt = updatedAt;
301
- return this;
302
- }
303
- public withUpdatedAt(updatedAt: number|null): this {
304
- this.updatedAt = updatedAt;
305
- return this;
306
- }
307
- public getRevision(): number|null {
308
- return this.revision;
309
- }
310
- public setRevision(revision: number|null) {
311
- this.revision = revision;
312
- return this;
313
- }
314
- public withRevision(revision: number|null): this {
315
- this.revision = revision;
316
- return this;
317
- }
318
352
 
319
353
  public static fromDict(data: {[key: string]: any}): EventMaster|null {
320
354
  if (data == undefined || data == null) {
@@ -326,19 +360,20 @@ export default class EventMaster implements IModel {
326
360
  .withDescription(data["description"])
327
361
  .withMetadata(data["metadata"])
328
362
  .withScheduleType(data["scheduleType"])
329
- .withRepeatType(data["repeatType"])
330
363
  .withAbsoluteBegin(data["absoluteBegin"])
331
364
  .withAbsoluteEnd(data["absoluteEnd"])
365
+ .withRelativeTriggerName(data["relativeTriggerName"])
366
+ .withRepeatSetting(RepeatSetting.fromDict(data["repeatSetting"]))
367
+ .withCreatedAt(data["createdAt"])
368
+ .withUpdatedAt(data["updatedAt"])
369
+ .withRevision(data["revision"])
370
+ .withRepeatType(data["repeatType"])
332
371
  .withRepeatBeginDayOfMonth(data["repeatBeginDayOfMonth"])
333
372
  .withRepeatEndDayOfMonth(data["repeatEndDayOfMonth"])
334
373
  .withRepeatBeginDayOfWeek(data["repeatBeginDayOfWeek"])
335
374
  .withRepeatEndDayOfWeek(data["repeatEndDayOfWeek"])
336
375
  .withRepeatBeginHour(data["repeatBeginHour"])
337
- .withRepeatEndHour(data["repeatEndHour"])
338
- .withRelativeTriggerName(data["relativeTriggerName"])
339
- .withCreatedAt(data["createdAt"])
340
- .withUpdatedAt(data["updatedAt"])
341
- .withRevision(data["revision"]);
376
+ .withRepeatEndHour(data["repeatEndHour"]);
342
377
  }
343
378
 
344
379
  public toDict(): {[key: string]: any} {
@@ -348,19 +383,20 @@ export default class EventMaster implements IModel {
348
383
  "description": this.getDescription(),
349
384
  "metadata": this.getMetadata(),
350
385
  "scheduleType": this.getScheduleType(),
351
- "repeatType": this.getRepeatType(),
352
386
  "absoluteBegin": this.getAbsoluteBegin(),
353
387
  "absoluteEnd": this.getAbsoluteEnd(),
388
+ "relativeTriggerName": this.getRelativeTriggerName(),
389
+ "repeatSetting": this.getRepeatSetting()?.toDict(),
390
+ "createdAt": this.getCreatedAt(),
391
+ "updatedAt": this.getUpdatedAt(),
392
+ "revision": this.getRevision(),
393
+ "repeatType": this.getRepeatType(),
354
394
  "repeatBeginDayOfMonth": this.getRepeatBeginDayOfMonth(),
355
395
  "repeatEndDayOfMonth": this.getRepeatEndDayOfMonth(),
356
396
  "repeatBeginDayOfWeek": this.getRepeatBeginDayOfWeek(),
357
397
  "repeatEndDayOfWeek": this.getRepeatEndDayOfWeek(),
358
398
  "repeatBeginHour": this.getRepeatBeginHour(),
359
399
  "repeatEndHour": this.getRepeatEndHour(),
360
- "relativeTriggerName": this.getRelativeTriggerName(),
361
- "createdAt": this.getCreatedAt(),
362
- "updatedAt": this.getUpdatedAt(),
363
- "revision": this.getRevision(),
364
400
  };
365
401
  }
366
402
  }
@@ -0,0 +1,37 @@
1
+ import IModel from '../../core/interface/IModel';
2
+ export default class RepeatSetting implements IModel {
3
+ private repeatType;
4
+ private beginDayOfMonth;
5
+ private endDayOfMonth;
6
+ private beginDayOfWeek;
7
+ private endDayOfWeek;
8
+ private beginHour;
9
+ private endHour;
10
+ getRepeatType(): string | null;
11
+ setRepeatType(repeatType: string | null): this;
12
+ withRepeatType(repeatType: string | null): this;
13
+ getBeginDayOfMonth(): number | null;
14
+ setBeginDayOfMonth(beginDayOfMonth: number | null): this;
15
+ withBeginDayOfMonth(beginDayOfMonth: number | null): this;
16
+ getEndDayOfMonth(): number | null;
17
+ setEndDayOfMonth(endDayOfMonth: number | null): this;
18
+ withEndDayOfMonth(endDayOfMonth: number | null): this;
19
+ getBeginDayOfWeek(): string | null;
20
+ setBeginDayOfWeek(beginDayOfWeek: string | null): this;
21
+ withBeginDayOfWeek(beginDayOfWeek: string | null): this;
22
+ getEndDayOfWeek(): string | null;
23
+ setEndDayOfWeek(endDayOfWeek: string | null): this;
24
+ withEndDayOfWeek(endDayOfWeek: string | null): this;
25
+ getBeginHour(): number | null;
26
+ setBeginHour(beginHour: number | null): this;
27
+ withBeginHour(beginHour: number | null): this;
28
+ getEndHour(): number | null;
29
+ setEndHour(endHour: number | null): this;
30
+ withEndHour(endHour: number | null): this;
31
+ static fromDict(data: {
32
+ [key: string]: any;
33
+ }): RepeatSetting | null;
34
+ toDict(): {
35
+ [key: string]: any;
36
+ };
37
+ }
@@ -0,0 +1,132 @@
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
+ var RepeatSetting = /** @class */ (function () {
19
+ function RepeatSetting() {
20
+ this.repeatType = null;
21
+ this.beginDayOfMonth = null;
22
+ this.endDayOfMonth = null;
23
+ this.beginDayOfWeek = null;
24
+ this.endDayOfWeek = null;
25
+ this.beginHour = null;
26
+ this.endHour = null;
27
+ }
28
+ RepeatSetting.prototype.getRepeatType = function () {
29
+ return this.repeatType;
30
+ };
31
+ RepeatSetting.prototype.setRepeatType = function (repeatType) {
32
+ this.repeatType = repeatType;
33
+ return this;
34
+ };
35
+ RepeatSetting.prototype.withRepeatType = function (repeatType) {
36
+ this.repeatType = repeatType;
37
+ return this;
38
+ };
39
+ RepeatSetting.prototype.getBeginDayOfMonth = function () {
40
+ return this.beginDayOfMonth;
41
+ };
42
+ RepeatSetting.prototype.setBeginDayOfMonth = function (beginDayOfMonth) {
43
+ this.beginDayOfMonth = beginDayOfMonth;
44
+ return this;
45
+ };
46
+ RepeatSetting.prototype.withBeginDayOfMonth = function (beginDayOfMonth) {
47
+ this.beginDayOfMonth = beginDayOfMonth;
48
+ return this;
49
+ };
50
+ RepeatSetting.prototype.getEndDayOfMonth = function () {
51
+ return this.endDayOfMonth;
52
+ };
53
+ RepeatSetting.prototype.setEndDayOfMonth = function (endDayOfMonth) {
54
+ this.endDayOfMonth = endDayOfMonth;
55
+ return this;
56
+ };
57
+ RepeatSetting.prototype.withEndDayOfMonth = function (endDayOfMonth) {
58
+ this.endDayOfMonth = endDayOfMonth;
59
+ return this;
60
+ };
61
+ RepeatSetting.prototype.getBeginDayOfWeek = function () {
62
+ return this.beginDayOfWeek;
63
+ };
64
+ RepeatSetting.prototype.setBeginDayOfWeek = function (beginDayOfWeek) {
65
+ this.beginDayOfWeek = beginDayOfWeek;
66
+ return this;
67
+ };
68
+ RepeatSetting.prototype.withBeginDayOfWeek = function (beginDayOfWeek) {
69
+ this.beginDayOfWeek = beginDayOfWeek;
70
+ return this;
71
+ };
72
+ RepeatSetting.prototype.getEndDayOfWeek = function () {
73
+ return this.endDayOfWeek;
74
+ };
75
+ RepeatSetting.prototype.setEndDayOfWeek = function (endDayOfWeek) {
76
+ this.endDayOfWeek = endDayOfWeek;
77
+ return this;
78
+ };
79
+ RepeatSetting.prototype.withEndDayOfWeek = function (endDayOfWeek) {
80
+ this.endDayOfWeek = endDayOfWeek;
81
+ return this;
82
+ };
83
+ RepeatSetting.prototype.getBeginHour = function () {
84
+ return this.beginHour;
85
+ };
86
+ RepeatSetting.prototype.setBeginHour = function (beginHour) {
87
+ this.beginHour = beginHour;
88
+ return this;
89
+ };
90
+ RepeatSetting.prototype.withBeginHour = function (beginHour) {
91
+ this.beginHour = beginHour;
92
+ return this;
93
+ };
94
+ RepeatSetting.prototype.getEndHour = function () {
95
+ return this.endHour;
96
+ };
97
+ RepeatSetting.prototype.setEndHour = function (endHour) {
98
+ this.endHour = endHour;
99
+ return this;
100
+ };
101
+ RepeatSetting.prototype.withEndHour = function (endHour) {
102
+ this.endHour = endHour;
103
+ return this;
104
+ };
105
+ RepeatSetting.fromDict = function (data) {
106
+ if (data == undefined || data == null) {
107
+ return null;
108
+ }
109
+ return new RepeatSetting()
110
+ .withRepeatType(data["repeatType"])
111
+ .withBeginDayOfMonth(data["beginDayOfMonth"])
112
+ .withEndDayOfMonth(data["endDayOfMonth"])
113
+ .withBeginDayOfWeek(data["beginDayOfWeek"])
114
+ .withEndDayOfWeek(data["endDayOfWeek"])
115
+ .withBeginHour(data["beginHour"])
116
+ .withEndHour(data["endHour"]);
117
+ };
118
+ RepeatSetting.prototype.toDict = function () {
119
+ return {
120
+ "repeatType": this.getRepeatType(),
121
+ "beginDayOfMonth": this.getBeginDayOfMonth(),
122
+ "endDayOfMonth": this.getEndDayOfMonth(),
123
+ "beginDayOfWeek": this.getBeginDayOfWeek(),
124
+ "endDayOfWeek": this.getEndDayOfWeek(),
125
+ "beginHour": this.getBeginHour(),
126
+ "endHour": this.getEndHour(),
127
+ };
128
+ };
129
+ return RepeatSetting;
130
+ }());
131
+ exports.default = RepeatSetting;
132
+ //# sourceMappingURL=RepeatSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RepeatSetting.js","sourceRoot":"","sources":["RepeatSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,eAAU,GAAgB,IAAI,CAAC;QAC/B,oBAAe,GAAgB,IAAI,CAAC;QACpC,kBAAa,GAAgB,IAAI,CAAC;QAClC,mBAAc,GAAgB,IAAI,CAAC;QACnC,iBAAY,GAAgB,IAAI,CAAC;QACjC,cAAS,GAAgB,IAAI,CAAC;QAC9B,YAAO,GAAgB,IAAI,CAAC;IAwGxC,CAAC;IAvGU,qCAAa,GAApB;QACI,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IACM,qCAAa,GAApB,UAAqB,UAAuB;QACxC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B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ACH,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;YAC5C,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,EAAE;YAC1C,cAAc,EAAE,IAAI,CAAC,eAAe,EAAE;YACtC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;SAC/B,CAAC;IACN,CAAC;IACL,oBAAC;AAAD,CAAC,AA/GD,IA+GC"}
@@ -0,0 +1,130 @@
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
+ import IModel from '../../core/interface/IModel';
18
+
19
+ export default class RepeatSetting implements IModel {
20
+ private repeatType: string|null = null;
21
+ private beginDayOfMonth: number|null = null;
22
+ private endDayOfMonth: number|null = null;
23
+ private beginDayOfWeek: string|null = null;
24
+ private endDayOfWeek: string|null = null;
25
+ private beginHour: number|null = null;
26
+ private endHour: number|null = null;
27
+ public getRepeatType(): string|null {
28
+ return this.repeatType;
29
+ }
30
+ public setRepeatType(repeatType: string|null) {
31
+ this.repeatType = repeatType;
32
+ return this;
33
+ }
34
+ public withRepeatType(repeatType: string|null): this {
35
+ this.repeatType = repeatType;
36
+ return this;
37
+ }
38
+ public getBeginDayOfMonth(): number|null {
39
+ return this.beginDayOfMonth;
40
+ }
41
+ public setBeginDayOfMonth(beginDayOfMonth: number|null) {
42
+ this.beginDayOfMonth = beginDayOfMonth;
43
+ return this;
44
+ }
45
+ public withBeginDayOfMonth(beginDayOfMonth: number|null): this {
46
+ this.beginDayOfMonth = beginDayOfMonth;
47
+ return this;
48
+ }
49
+ public getEndDayOfMonth(): number|null {
50
+ return this.endDayOfMonth;
51
+ }
52
+ public setEndDayOfMonth(endDayOfMonth: number|null) {
53
+ this.endDayOfMonth = endDayOfMonth;
54
+ return this;
55
+ }
56
+ public withEndDayOfMonth(endDayOfMonth: number|null): this {
57
+ this.endDayOfMonth = endDayOfMonth;
58
+ return this;
59
+ }
60
+ public getBeginDayOfWeek(): string|null {
61
+ return this.beginDayOfWeek;
62
+ }
63
+ public setBeginDayOfWeek(beginDayOfWeek: string|null) {
64
+ this.beginDayOfWeek = beginDayOfWeek;
65
+ return this;
66
+ }
67
+ public withBeginDayOfWeek(beginDayOfWeek: string|null): this {
68
+ this.beginDayOfWeek = beginDayOfWeek;
69
+ return this;
70
+ }
71
+ public getEndDayOfWeek(): string|null {
72
+ return this.endDayOfWeek;
73
+ }
74
+ public setEndDayOfWeek(endDayOfWeek: string|null) {
75
+ this.endDayOfWeek = endDayOfWeek;
76
+ return this;
77
+ }
78
+ public withEndDayOfWeek(endDayOfWeek: string|null): this {
79
+ this.endDayOfWeek = endDayOfWeek;
80
+ return this;
81
+ }
82
+ public getBeginHour(): number|null {
83
+ return this.beginHour;
84
+ }
85
+ public setBeginHour(beginHour: number|null) {
86
+ this.beginHour = beginHour;
87
+ return this;
88
+ }
89
+ public withBeginHour(beginHour: number|null): this {
90
+ this.beginHour = beginHour;
91
+ return this;
92
+ }
93
+ public getEndHour(): number|null {
94
+ return this.endHour;
95
+ }
96
+ public setEndHour(endHour: number|null) {
97
+ this.endHour = endHour;
98
+ return this;
99
+ }
100
+ public withEndHour(endHour: number|null): this {
101
+ this.endHour = endHour;
102
+ return this;
103
+ }
104
+
105
+ public static fromDict(data: {[key: string]: any}): RepeatSetting|null {
106
+ if (data == undefined || data == null) {
107
+ return null;
108
+ }
109
+ return new RepeatSetting()
110
+ .withRepeatType(data["repeatType"])
111
+ .withBeginDayOfMonth(data["beginDayOfMonth"])
112
+ .withEndDayOfMonth(data["endDayOfMonth"])
113
+ .withBeginDayOfWeek(data["beginDayOfWeek"])
114
+ .withEndDayOfWeek(data["endDayOfWeek"])
115
+ .withBeginHour(data["beginHour"])
116
+ .withEndHour(data["endHour"]);
117
+ }
118
+
119
+ public toDict(): {[key: string]: any} {
120
+ return {
121
+ "repeatType": this.getRepeatType(),
122
+ "beginDayOfMonth": this.getBeginDayOfMonth(),
123
+ "endDayOfMonth": this.getEndDayOfMonth(),
124
+ "beginDayOfWeek": this.getBeginDayOfWeek(),
125
+ "endDayOfWeek": this.getEndDayOfWeek(),
126
+ "beginHour": this.getBeginHour(),
127
+ "endHour": this.getEndHour(),
128
+ };
129
+ }
130
+ }
@@ -2,8 +2,9 @@ import Namespace from "./Namespace";
2
2
  import EventMaster from "./EventMaster";
3
3
  import Trigger from "./Trigger";
4
4
  import Event from "./Event";
5
+ import RepeatSetting from "./RepeatSetting";
6
+ import RepeatSchedule from "./RepeatSchedule";
5
7
  import CurrentEventMaster from "./CurrentEventMaster";
6
8
  import GitHubCheckoutSetting from "./GitHubCheckoutSetting";
7
9
  import LogSetting from "./LogSetting";
8
- import RepeatSchedule from "./RepeatSchedule";
9
- export { Namespace, EventMaster, Trigger, Event, CurrentEventMaster, GitHubCheckoutSetting, LogSetting, RepeatSchedule, };
10
+ export { Namespace, EventMaster, Trigger, Event, RepeatSetting, RepeatSchedule, CurrentEventMaster, GitHubCheckoutSetting, LogSetting, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RepeatSchedule = exports.LogSetting = exports.GitHubCheckoutSetting = exports.CurrentEventMaster = exports.Event = exports.Trigger = exports.EventMaster = exports.Namespace = void 0;
3
+ exports.LogSetting = exports.GitHubCheckoutSetting = exports.CurrentEventMaster = exports.RepeatSchedule = exports.RepeatSetting = exports.Event = exports.Trigger = exports.EventMaster = exports.Namespace = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  /*
6
6
  Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
@@ -25,12 +25,14 @@ var Trigger_1 = tslib_1.__importDefault(require("./Trigger"));
25
25
  exports.Trigger = Trigger_1.default;
26
26
  var Event_1 = tslib_1.__importDefault(require("./Event"));
27
27
  exports.Event = Event_1.default;
28
+ var RepeatSetting_1 = tslib_1.__importDefault(require("./RepeatSetting"));
29
+ exports.RepeatSetting = RepeatSetting_1.default;
30
+ var RepeatSchedule_1 = tslib_1.__importDefault(require("./RepeatSchedule"));
31
+ exports.RepeatSchedule = RepeatSchedule_1.default;
28
32
  var CurrentEventMaster_1 = tslib_1.__importDefault(require("./CurrentEventMaster"));
29
33
  exports.CurrentEventMaster = CurrentEventMaster_1.default;
30
34
  var GitHubCheckoutSetting_1 = tslib_1.__importDefault(require("./GitHubCheckoutSetting"));
31
35
  exports.GitHubCheckoutSetting = GitHubCheckoutSetting_1.default;
32
36
  var LogSetting_1 = tslib_1.__importDefault(require("./LogSetting"));
33
37
  exports.LogSetting = LogSetting_1.default;
34
- var RepeatSchedule_1 = tslib_1.__importDefault(require("./RepeatSchedule"));
35
- exports.RepeatSchedule = RepeatSchedule_1.default;
36
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;AAU/B,oBAVG,mBAAS,CAUH;AATb,sEAAuC;AAUnC,sBAVG,qBAAW,CAUH;AATf,8DAA+B;AAU3B,kBAVG,iBAAO,CAUH;AATX,0DAA2B;AAUvB,gBAVG,eAAK,CAUH;AATT,oFAAqD;AAUjD,6BAVG,4BAAkB,CAUH;AATtB,0FAA2D;AAUvD,gCAVG,+BAAqB,CAUH;AATzB,oEAAqC;AAUjC,qBAVG,oBAAU,CAUH;AATd,4EAA6C;AAUzC,yBAVG,wBAAc,CAUH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;AAW/B,oBAXG,mBAAS,CAWH;AAVb,sEAAuC;AAWnC,sBAXG,qBAAW,CAWH;AAVf,8DAA+B;AAW3B,kBAXG,iBAAO,CAWH;AAVX,0DAA2B;AAWvB,gBAXG,eAAK,CAWH;AAVT,0EAA2C;AAWvC,wBAXG,uBAAa,CAWH;AAVjB,4EAA6C;AAWzC,yBAXG,wBAAc,CAWH;AAVlB,oFAAqD;AAWjD,6BAXG,4BAAkB,CAWH;AAVtB,0FAA2D;AAWvD,gCAXG,+BAAqB,CAWH;AAVzB,oEAAqC;AAWjC,qBAXG,oBAAU,CAWH"}
@@ -17,18 +17,20 @@ import Namespace from "./Namespace"
17
17
  import EventMaster from "./EventMaster"
18
18
  import Trigger from "./Trigger"
19
19
  import Event from "./Event"
20
+ import RepeatSetting from "./RepeatSetting"
21
+ import RepeatSchedule from "./RepeatSchedule"
20
22
  import CurrentEventMaster from "./CurrentEventMaster"
21
23
  import GitHubCheckoutSetting from "./GitHubCheckoutSetting"
22
24
  import LogSetting from "./LogSetting"
23
- import RepeatSchedule from "./RepeatSchedule"
24
25
 
25
26
  export {
26
27
  Namespace,
27
28
  EventMaster,
28
29
  Trigger,
29
30
  Event,
31
+ RepeatSetting,
32
+ RepeatSchedule,
30
33
  CurrentEventMaster,
31
34
  GitHubCheckoutSetting,
32
35
  LogSetting,
33
- RepeatSchedule,
34
36
  };