gs2 1.3.240 → 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.
- package/matchmaking/model/Namespace.d.ts +8 -0
- package/matchmaking/model/Namespace.js +28 -0
- package/matchmaking/model/Namespace.js.map +1 -1
- package/matchmaking/model/Namespace.ts +28 -0
- package/matchmaking/model/Player.d.ts +4 -0
- package/matchmaking/model/Player.js +15 -1
- package/matchmaking/model/Player.js.map +1 -1
- package/matchmaking/model/Player.ts +15 -1
- package/matchmaking/request/CreateNamespaceRequest.d.ts +8 -0
- package/matchmaking/request/CreateNamespaceRequest.js +28 -0
- package/matchmaking/request/CreateNamespaceRequest.js.map +1 -1
- package/matchmaking/request/CreateNamespaceRequest.ts +28 -0
- package/matchmaking/request/PingByUserIdRequest.d.ts +37 -0
- package/matchmaking/request/PingByUserIdRequest.js +123 -0
- package/matchmaking/request/PingByUserIdRequest.js.map +1 -0
- package/matchmaking/request/PingByUserIdRequest.ts +133 -0
- package/matchmaking/request/PingRequest.d.ts +33 -0
- package/matchmaking/request/PingRequest.js +109 -0
- package/matchmaking/request/PingRequest.js.map +1 -0
- package/matchmaking/request/PingRequest.ts +119 -0
- package/matchmaking/request/UpdateNamespaceRequest.d.ts +8 -0
- package/matchmaking/request/UpdateNamespaceRequest.js +28 -0
- package/matchmaking/request/UpdateNamespaceRequest.js.map +1 -1
- package/matchmaking/request/UpdateNamespaceRequest.ts +28 -0
- package/matchmaking/request/index.d.ts +3 -1
- package/matchmaking/request/index.js +6 -1
- package/matchmaking/request/index.js.map +1 -1
- package/matchmaking/request/index.ts +4 -0
- package/matchmaking/rest.d.ts +2 -0
- package/matchmaking/rest.js +103 -32
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +79 -0
- package/matchmaking/result/PingByUserIdResult.d.ts +14 -0
- package/matchmaking/result/PingByUserIdResult.js +48 -0
- package/matchmaking/result/PingByUserIdResult.js.map +1 -0
- package/matchmaking/result/PingByUserIdResult.ts +47 -0
- package/matchmaking/result/PingResult.d.ts +14 -0
- package/matchmaking/result/PingResult.js +48 -0
- package/matchmaking/result/PingResult.js.map +1 -0
- package/matchmaking/result/PingResult.ts +47 -0
- package/matchmaking/result/index.d.ts +3 -1
- package/matchmaking/result/index.js +6 -1
- package/matchmaking/result/index.js.map +1 -1
- package/matchmaking/result/index.ts +4 -0
- package/package.json +1 -1
- package/schedule/model/Event.d.ts +34 -8
- package/schedule/model/Event.js +67 -29
- package/schedule/model/Event.js.map +1 -1
- package/schedule/model/Event.ts +65 -29
- package/schedule/model/EventMaster.d.ts +46 -20
- package/schedule/model/EventMaster.js +109 -71
- package/schedule/model/EventMaster.js.map +1 -1
- package/schedule/model/EventMaster.ts +107 -71
- package/schedule/model/RepeatSetting.d.ts +37 -0
- package/schedule/model/RepeatSetting.js +132 -0
- package/schedule/model/RepeatSetting.js.map +1 -0
- package/schedule/model/RepeatSetting.ts +130 -0
- package/schedule/model/index.d.ts +3 -2
- package/schedule/model/index.js +5 -3
- package/schedule/model/index.js.map +1 -1
- package/schedule/model/index.ts +4 -2
- package/schedule/request/CreateEventMasterRequest.d.ts +26 -0
- package/schedule/request/CreateEventMasterRequest.js +39 -1
- package/schedule/request/CreateEventMasterRequest.js.map +1 -1
- package/schedule/request/CreateEventMasterRequest.ts +36 -1
- package/schedule/request/UpdateEventMasterRequest.d.ts +26 -0
- package/schedule/request/UpdateEventMasterRequest.js +39 -1
- package/schedule/request/UpdateEventMasterRequest.js.map +1 -1
- package/schedule/request/UpdateEventMasterRequest.ts +36 -1
- package/schedule/rest.js +4 -2
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +2 -0
|
@@ -15,6 +15,8 @@ express or implied. See the License for the specific language governing
|
|
|
15
15
|
permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var RepeatSetting_1 = tslib_1.__importDefault(require("./RepeatSetting"));
|
|
18
20
|
var grnFormat = "grn:gs2:{region}:{ownerId}:schedule:{namespaceName}:event:{eventName}";
|
|
19
21
|
var EventMaster = /** @class */ (function () {
|
|
20
22
|
function EventMaster() {
|
|
@@ -23,19 +25,20 @@ var EventMaster = /** @class */ (function () {
|
|
|
23
25
|
this.description = null;
|
|
24
26
|
this.metadata = null;
|
|
25
27
|
this.scheduleType = null;
|
|
26
|
-
this.repeatType = null;
|
|
27
28
|
this.absoluteBegin = null;
|
|
28
29
|
this.absoluteEnd = null;
|
|
30
|
+
this.relativeTriggerName = null;
|
|
31
|
+
this.repeatSetting = null;
|
|
32
|
+
this.createdAt = null;
|
|
33
|
+
this.updatedAt = null;
|
|
34
|
+
this.revision = null;
|
|
35
|
+
this.repeatType = null;
|
|
29
36
|
this.repeatBeginDayOfMonth = null;
|
|
30
37
|
this.repeatEndDayOfMonth = null;
|
|
31
38
|
this.repeatBeginDayOfWeek = null;
|
|
32
39
|
this.repeatEndDayOfWeek = null;
|
|
33
40
|
this.repeatBeginHour = null;
|
|
34
41
|
this.repeatEndHour = null;
|
|
35
|
-
this.relativeTriggerName = null;
|
|
36
|
-
this.createdAt = null;
|
|
37
|
-
this.updatedAt = null;
|
|
38
|
-
this.revision = null;
|
|
39
42
|
}
|
|
40
43
|
EventMaster.getRegion = function (grn) {
|
|
41
44
|
var match = grn.match(grnFormat
|
|
@@ -158,17 +161,6 @@ var EventMaster = /** @class */ (function () {
|
|
|
158
161
|
this.scheduleType = scheduleType;
|
|
159
162
|
return this;
|
|
160
163
|
};
|
|
161
|
-
EventMaster.prototype.getRepeatType = function () {
|
|
162
|
-
return this.repeatType;
|
|
163
|
-
};
|
|
164
|
-
EventMaster.prototype.setRepeatType = function (repeatType) {
|
|
165
|
-
this.repeatType = repeatType;
|
|
166
|
-
return this;
|
|
167
|
-
};
|
|
168
|
-
EventMaster.prototype.withRepeatType = function (repeatType) {
|
|
169
|
-
this.repeatType = repeatType;
|
|
170
|
-
return this;
|
|
171
|
-
};
|
|
172
164
|
EventMaster.prototype.getAbsoluteBegin = function () {
|
|
173
165
|
return this.absoluteBegin;
|
|
174
166
|
};
|
|
@@ -191,116 +183,159 @@ var EventMaster = /** @class */ (function () {
|
|
|
191
183
|
this.absoluteEnd = absoluteEnd;
|
|
192
184
|
return this;
|
|
193
185
|
};
|
|
186
|
+
EventMaster.prototype.getRelativeTriggerName = function () {
|
|
187
|
+
return this.relativeTriggerName;
|
|
188
|
+
};
|
|
189
|
+
EventMaster.prototype.setRelativeTriggerName = function (relativeTriggerName) {
|
|
190
|
+
this.relativeTriggerName = relativeTriggerName;
|
|
191
|
+
return this;
|
|
192
|
+
};
|
|
193
|
+
EventMaster.prototype.withRelativeTriggerName = function (relativeTriggerName) {
|
|
194
|
+
this.relativeTriggerName = relativeTriggerName;
|
|
195
|
+
return this;
|
|
196
|
+
};
|
|
197
|
+
EventMaster.prototype.getRepeatSetting = function () {
|
|
198
|
+
return this.repeatSetting;
|
|
199
|
+
};
|
|
200
|
+
EventMaster.prototype.setRepeatSetting = function (repeatSetting) {
|
|
201
|
+
this.repeatSetting = repeatSetting;
|
|
202
|
+
return this;
|
|
203
|
+
};
|
|
204
|
+
EventMaster.prototype.withRepeatSetting = function (repeatSetting) {
|
|
205
|
+
this.repeatSetting = repeatSetting;
|
|
206
|
+
return this;
|
|
207
|
+
};
|
|
208
|
+
EventMaster.prototype.getCreatedAt = function () {
|
|
209
|
+
return this.createdAt;
|
|
210
|
+
};
|
|
211
|
+
EventMaster.prototype.setCreatedAt = function (createdAt) {
|
|
212
|
+
this.createdAt = createdAt;
|
|
213
|
+
return this;
|
|
214
|
+
};
|
|
215
|
+
EventMaster.prototype.withCreatedAt = function (createdAt) {
|
|
216
|
+
this.createdAt = createdAt;
|
|
217
|
+
return this;
|
|
218
|
+
};
|
|
219
|
+
EventMaster.prototype.getUpdatedAt = function () {
|
|
220
|
+
return this.updatedAt;
|
|
221
|
+
};
|
|
222
|
+
EventMaster.prototype.setUpdatedAt = function (updatedAt) {
|
|
223
|
+
this.updatedAt = updatedAt;
|
|
224
|
+
return this;
|
|
225
|
+
};
|
|
226
|
+
EventMaster.prototype.withUpdatedAt = function (updatedAt) {
|
|
227
|
+
this.updatedAt = updatedAt;
|
|
228
|
+
return this;
|
|
229
|
+
};
|
|
230
|
+
EventMaster.prototype.getRevision = function () {
|
|
231
|
+
return this.revision;
|
|
232
|
+
};
|
|
233
|
+
EventMaster.prototype.setRevision = function (revision) {
|
|
234
|
+
this.revision = revision;
|
|
235
|
+
return this;
|
|
236
|
+
};
|
|
237
|
+
EventMaster.prototype.withRevision = function (revision) {
|
|
238
|
+
this.revision = revision;
|
|
239
|
+
return this;
|
|
240
|
+
};
|
|
241
|
+
/** @deprecated */
|
|
242
|
+
EventMaster.prototype.getRepeatType = function () {
|
|
243
|
+
return this.repeatType;
|
|
244
|
+
};
|
|
245
|
+
/** @deprecated */
|
|
246
|
+
EventMaster.prototype.setRepeatType = function (repeatType) {
|
|
247
|
+
this.repeatType = repeatType;
|
|
248
|
+
return this;
|
|
249
|
+
};
|
|
250
|
+
/** @deprecated */
|
|
251
|
+
EventMaster.prototype.withRepeatType = function (repeatType) {
|
|
252
|
+
this.repeatType = repeatType;
|
|
253
|
+
return this;
|
|
254
|
+
};
|
|
255
|
+
/** @deprecated */
|
|
194
256
|
EventMaster.prototype.getRepeatBeginDayOfMonth = function () {
|
|
195
257
|
return this.repeatBeginDayOfMonth;
|
|
196
258
|
};
|
|
259
|
+
/** @deprecated */
|
|
197
260
|
EventMaster.prototype.setRepeatBeginDayOfMonth = function (repeatBeginDayOfMonth) {
|
|
198
261
|
this.repeatBeginDayOfMonth = repeatBeginDayOfMonth;
|
|
199
262
|
return this;
|
|
200
263
|
};
|
|
264
|
+
/** @deprecated */
|
|
201
265
|
EventMaster.prototype.withRepeatBeginDayOfMonth = function (repeatBeginDayOfMonth) {
|
|
202
266
|
this.repeatBeginDayOfMonth = repeatBeginDayOfMonth;
|
|
203
267
|
return this;
|
|
204
268
|
};
|
|
269
|
+
/** @deprecated */
|
|
205
270
|
EventMaster.prototype.getRepeatEndDayOfMonth = function () {
|
|
206
271
|
return this.repeatEndDayOfMonth;
|
|
207
272
|
};
|
|
273
|
+
/** @deprecated */
|
|
208
274
|
EventMaster.prototype.setRepeatEndDayOfMonth = function (repeatEndDayOfMonth) {
|
|
209
275
|
this.repeatEndDayOfMonth = repeatEndDayOfMonth;
|
|
210
276
|
return this;
|
|
211
277
|
};
|
|
278
|
+
/** @deprecated */
|
|
212
279
|
EventMaster.prototype.withRepeatEndDayOfMonth = function (repeatEndDayOfMonth) {
|
|
213
280
|
this.repeatEndDayOfMonth = repeatEndDayOfMonth;
|
|
214
281
|
return this;
|
|
215
282
|
};
|
|
283
|
+
/** @deprecated */
|
|
216
284
|
EventMaster.prototype.getRepeatBeginDayOfWeek = function () {
|
|
217
285
|
return this.repeatBeginDayOfWeek;
|
|
218
286
|
};
|
|
287
|
+
/** @deprecated */
|
|
219
288
|
EventMaster.prototype.setRepeatBeginDayOfWeek = function (repeatBeginDayOfWeek) {
|
|
220
289
|
this.repeatBeginDayOfWeek = repeatBeginDayOfWeek;
|
|
221
290
|
return this;
|
|
222
291
|
};
|
|
292
|
+
/** @deprecated */
|
|
223
293
|
EventMaster.prototype.withRepeatBeginDayOfWeek = function (repeatBeginDayOfWeek) {
|
|
224
294
|
this.repeatBeginDayOfWeek = repeatBeginDayOfWeek;
|
|
225
295
|
return this;
|
|
226
296
|
};
|
|
297
|
+
/** @deprecated */
|
|
227
298
|
EventMaster.prototype.getRepeatEndDayOfWeek = function () {
|
|
228
299
|
return this.repeatEndDayOfWeek;
|
|
229
300
|
};
|
|
301
|
+
/** @deprecated */
|
|
230
302
|
EventMaster.prototype.setRepeatEndDayOfWeek = function (repeatEndDayOfWeek) {
|
|
231
303
|
this.repeatEndDayOfWeek = repeatEndDayOfWeek;
|
|
232
304
|
return this;
|
|
233
305
|
};
|
|
306
|
+
/** @deprecated */
|
|
234
307
|
EventMaster.prototype.withRepeatEndDayOfWeek = function (repeatEndDayOfWeek) {
|
|
235
308
|
this.repeatEndDayOfWeek = repeatEndDayOfWeek;
|
|
236
309
|
return this;
|
|
237
310
|
};
|
|
311
|
+
/** @deprecated */
|
|
238
312
|
EventMaster.prototype.getRepeatBeginHour = function () {
|
|
239
313
|
return this.repeatBeginHour;
|
|
240
314
|
};
|
|
315
|
+
/** @deprecated */
|
|
241
316
|
EventMaster.prototype.setRepeatBeginHour = function (repeatBeginHour) {
|
|
242
317
|
this.repeatBeginHour = repeatBeginHour;
|
|
243
318
|
return this;
|
|
244
319
|
};
|
|
320
|
+
/** @deprecated */
|
|
245
321
|
EventMaster.prototype.withRepeatBeginHour = function (repeatBeginHour) {
|
|
246
322
|
this.repeatBeginHour = repeatBeginHour;
|
|
247
323
|
return this;
|
|
248
324
|
};
|
|
325
|
+
/** @deprecated */
|
|
249
326
|
EventMaster.prototype.getRepeatEndHour = function () {
|
|
250
327
|
return this.repeatEndHour;
|
|
251
328
|
};
|
|
329
|
+
/** @deprecated */
|
|
252
330
|
EventMaster.prototype.setRepeatEndHour = function (repeatEndHour) {
|
|
253
331
|
this.repeatEndHour = repeatEndHour;
|
|
254
332
|
return this;
|
|
255
333
|
};
|
|
334
|
+
/** @deprecated */
|
|
256
335
|
EventMaster.prototype.withRepeatEndHour = function (repeatEndHour) {
|
|
257
336
|
this.repeatEndHour = repeatEndHour;
|
|
258
337
|
return this;
|
|
259
338
|
};
|
|
260
|
-
EventMaster.prototype.getRelativeTriggerName = function () {
|
|
261
|
-
return this.relativeTriggerName;
|
|
262
|
-
};
|
|
263
|
-
EventMaster.prototype.setRelativeTriggerName = function (relativeTriggerName) {
|
|
264
|
-
this.relativeTriggerName = relativeTriggerName;
|
|
265
|
-
return this;
|
|
266
|
-
};
|
|
267
|
-
EventMaster.prototype.withRelativeTriggerName = function (relativeTriggerName) {
|
|
268
|
-
this.relativeTriggerName = relativeTriggerName;
|
|
269
|
-
return this;
|
|
270
|
-
};
|
|
271
|
-
EventMaster.prototype.getCreatedAt = function () {
|
|
272
|
-
return this.createdAt;
|
|
273
|
-
};
|
|
274
|
-
EventMaster.prototype.setCreatedAt = function (createdAt) {
|
|
275
|
-
this.createdAt = createdAt;
|
|
276
|
-
return this;
|
|
277
|
-
};
|
|
278
|
-
EventMaster.prototype.withCreatedAt = function (createdAt) {
|
|
279
|
-
this.createdAt = createdAt;
|
|
280
|
-
return this;
|
|
281
|
-
};
|
|
282
|
-
EventMaster.prototype.getUpdatedAt = function () {
|
|
283
|
-
return this.updatedAt;
|
|
284
|
-
};
|
|
285
|
-
EventMaster.prototype.setUpdatedAt = function (updatedAt) {
|
|
286
|
-
this.updatedAt = updatedAt;
|
|
287
|
-
return this;
|
|
288
|
-
};
|
|
289
|
-
EventMaster.prototype.withUpdatedAt = function (updatedAt) {
|
|
290
|
-
this.updatedAt = updatedAt;
|
|
291
|
-
return this;
|
|
292
|
-
};
|
|
293
|
-
EventMaster.prototype.getRevision = function () {
|
|
294
|
-
return this.revision;
|
|
295
|
-
};
|
|
296
|
-
EventMaster.prototype.setRevision = function (revision) {
|
|
297
|
-
this.revision = revision;
|
|
298
|
-
return this;
|
|
299
|
-
};
|
|
300
|
-
EventMaster.prototype.withRevision = function (revision) {
|
|
301
|
-
this.revision = revision;
|
|
302
|
-
return this;
|
|
303
|
-
};
|
|
304
339
|
EventMaster.fromDict = function (data) {
|
|
305
340
|
if (data == undefined || data == null) {
|
|
306
341
|
return null;
|
|
@@ -311,40 +346,43 @@ var EventMaster = /** @class */ (function () {
|
|
|
311
346
|
.withDescription(data["description"])
|
|
312
347
|
.withMetadata(data["metadata"])
|
|
313
348
|
.withScheduleType(data["scheduleType"])
|
|
314
|
-
.withRepeatType(data["repeatType"])
|
|
315
349
|
.withAbsoluteBegin(data["absoluteBegin"])
|
|
316
350
|
.withAbsoluteEnd(data["absoluteEnd"])
|
|
351
|
+
.withRelativeTriggerName(data["relativeTriggerName"])
|
|
352
|
+
.withRepeatSetting(RepeatSetting_1.default.fromDict(data["repeatSetting"]))
|
|
353
|
+
.withCreatedAt(data["createdAt"])
|
|
354
|
+
.withUpdatedAt(data["updatedAt"])
|
|
355
|
+
.withRevision(data["revision"])
|
|
356
|
+
.withRepeatType(data["repeatType"])
|
|
317
357
|
.withRepeatBeginDayOfMonth(data["repeatBeginDayOfMonth"])
|
|
318
358
|
.withRepeatEndDayOfMonth(data["repeatEndDayOfMonth"])
|
|
319
359
|
.withRepeatBeginDayOfWeek(data["repeatBeginDayOfWeek"])
|
|
320
360
|
.withRepeatEndDayOfWeek(data["repeatEndDayOfWeek"])
|
|
321
361
|
.withRepeatBeginHour(data["repeatBeginHour"])
|
|
322
|
-
.withRepeatEndHour(data["repeatEndHour"])
|
|
323
|
-
.withRelativeTriggerName(data["relativeTriggerName"])
|
|
324
|
-
.withCreatedAt(data["createdAt"])
|
|
325
|
-
.withUpdatedAt(data["updatedAt"])
|
|
326
|
-
.withRevision(data["revision"]);
|
|
362
|
+
.withRepeatEndHour(data["repeatEndHour"]);
|
|
327
363
|
};
|
|
328
364
|
EventMaster.prototype.toDict = function () {
|
|
365
|
+
var _a;
|
|
329
366
|
return {
|
|
330
367
|
"eventId": this.getEventId(),
|
|
331
368
|
"name": this.getName(),
|
|
332
369
|
"description": this.getDescription(),
|
|
333
370
|
"metadata": this.getMetadata(),
|
|
334
371
|
"scheduleType": this.getScheduleType(),
|
|
335
|
-
"repeatType": this.getRepeatType(),
|
|
336
372
|
"absoluteBegin": this.getAbsoluteBegin(),
|
|
337
373
|
"absoluteEnd": this.getAbsoluteEnd(),
|
|
374
|
+
"relativeTriggerName": this.getRelativeTriggerName(),
|
|
375
|
+
"repeatSetting": (_a = this.getRepeatSetting()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
376
|
+
"createdAt": this.getCreatedAt(),
|
|
377
|
+
"updatedAt": this.getUpdatedAt(),
|
|
378
|
+
"revision": this.getRevision(),
|
|
379
|
+
"repeatType": this.getRepeatType(),
|
|
338
380
|
"repeatBeginDayOfMonth": this.getRepeatBeginDayOfMonth(),
|
|
339
381
|
"repeatEndDayOfMonth": this.getRepeatEndDayOfMonth(),
|
|
340
382
|
"repeatBeginDayOfWeek": this.getRepeatBeginDayOfWeek(),
|
|
341
383
|
"repeatEndDayOfWeek": this.getRepeatEndDayOfWeek(),
|
|
342
384
|
"repeatBeginHour": this.getRepeatBeginHour(),
|
|
343
385
|
"repeatEndHour": this.getRepeatEndHour(),
|
|
344
|
-
"relativeTriggerName": this.getRelativeTriggerName(),
|
|
345
|
-
"createdAt": this.getCreatedAt(),
|
|
346
|
-
"updatedAt": this.getUpdatedAt(),
|
|
347
|
-
"revision": this.getRevision(),
|
|
348
386
|
};
|
|
349
387
|
};
|
|
350
388
|
return EventMaster;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventMaster.js","sourceRoot":"","sources":["EventMaster.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"EventMaster.js","sourceRoot":"","sources":["EventMaster.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,0EAA4C;AAC5C,IAAM,SAAS,GAAW,uEAAuE,CAAC;AAElG;IAAA;QACY,YAAO,GAAgB,IAAI,CAAC;QAC5B,SAAI,GAAgB,IAAI,CAAC;QACzB,gBAAW,GAAgB,IAAI,CAAC;QAChC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,gBAAW,GAAgB,IAAI,CAAC;QAChC,wBAAmB,GAAgB,IAAI,CAAC;QACxC,kBAAa,GAAuB,IAAI,CAAC;QACzC,cAAS,GAAgB,IAAI,CAAC;QAC9B,cAAS,GAAgB,IAAI,CAAC;QAC9B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,eAAU,GAAgB,IAAI,CAAC;QAC/B,0BAAqB,GAAgB,IAAI,CAAC;QA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,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;IAClD,CAAC;IAEM,4BAAM,GAAb;;QACI,OAAO;YACH,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;YAC5B,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,cAAc,EAAE,IAAI,CAAC,eAAe,EAAE;YACtC,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,qBAAqB,EAAE,IAAI,CAAC,sBAAsB,EAAE;YACpD,eAAe,EAAE,MAAA,IAAI,CAAC,gBAAgB,EAAE,0CAAE,MAAM,EAAE;YAClD,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,uBAAuB,EAAE,IAAI,CAAC,wBAAwB,EAAE;YACxD,qBAAqB,EAAE,IAAI,CAAC,sBAAsB,EAAE;YACpD,sBAAsB,EAAE,IAAI,CAAC,uBAAuB,EAAE;YACtD,oBAAoB,EAAE,IAAI,CAAC,qBAAqB,EAAE;YAClD,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;YAC5C,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;SAC3C,CAAC;IACN,CAAC;IACL,kBAAC;AAAD,CAAC,AA7XD,IA6XC"}
|
|
@@ -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
|
}
|