gs2 1.3.241 → 1.3.243
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/adReward/model/Namespace.d.ts +9 -0
- package/adReward/model/Namespace.js +32 -3
- package/adReward/model/Namespace.js.map +1 -1
- package/adReward/model/Namespace.ts +29 -0
- package/adReward/model/ScriptSetting.d.ts +25 -0
- package/adReward/model/ScriptSetting.js +90 -0
- package/adReward/model/ScriptSetting.js.map +1 -0
- package/adReward/model/ScriptSetting.ts +88 -0
- package/adReward/model/index.d.ts +2 -1
- package/adReward/model/index.js +3 -1
- package/adReward/model/index.js.map +1 -1
- package/adReward/model/index.ts +2 -0
- package/adReward/request/CreateNamespaceRequest.d.ts +8 -0
- package/adReward/request/CreateNamespaceRequest.js +31 -3
- package/adReward/request/CreateNamespaceRequest.js.map +1 -1
- package/adReward/request/CreateNamespaceRequest.ts +28 -0
- package/adReward/request/UpdateNamespaceRequest.d.ts +8 -0
- package/adReward/request/UpdateNamespaceRequest.js +31 -3
- package/adReward/request/UpdateNamespaceRequest.js.map +1 -1
- package/adReward/request/UpdateNamespaceRequest.ts +28 -0
- package/adReward/rest.js +10 -6
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +4 -0
- package/inbox/model/GlobalMessage.d.ts +4 -0
- package/inbox/model/GlobalMessage.js +15 -1
- package/inbox/model/GlobalMessage.js.map +1 -1
- package/inbox/model/GlobalMessage.ts +15 -1
- package/inbox/model/GlobalMessageMaster.d.ts +8 -4
- package/inbox/model/GlobalMessageMaster.js +28 -14
- package/inbox/model/GlobalMessageMaster.js.map +1 -1
- package/inbox/model/GlobalMessageMaster.ts +28 -14
- package/inbox/request/CreateGlobalMessageMasterRequest.d.ts +4 -0
- package/inbox/request/CreateGlobalMessageMasterRequest.js +15 -1
- package/inbox/request/CreateGlobalMessageMasterRequest.js.map +1 -1
- package/inbox/request/CreateGlobalMessageMasterRequest.ts +15 -1
- package/inbox/request/UpdateGlobalMessageMasterRequest.d.ts +4 -0
- package/inbox/request/UpdateGlobalMessageMasterRequest.js +15 -1
- package/inbox/request/UpdateGlobalMessageMasterRequest.js.map +1 -1
- package/inbox/request/UpdateGlobalMessageMasterRequest.ts +15 -1
- package/inbox/rest.js +4 -2
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +2 -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
package/inbox/rest.ts
CHANGED
|
@@ -1165,6 +1165,7 @@ export default class Gs2InboxRestClient extends AbstractGs2RestClient {
|
|
|
1165
1165
|
'readAcquireActions': request.getReadAcquireActions()?.map((item) => item.toDict()) ?? null,
|
|
1166
1166
|
'expiresTimeSpan': request.getExpiresTimeSpan()?.toDict() ?? null,
|
|
1167
1167
|
'expiresAt': request.getExpiresAt() ?? null,
|
|
1168
|
+
'messageReceptionPeriodEventId': request.getMessageReceptionPeriodEventId() ?? null,
|
|
1168
1169
|
};
|
|
1169
1170
|
return axios.post(
|
|
1170
1171
|
url,
|
|
@@ -1227,6 +1228,7 @@ export default class Gs2InboxRestClient extends AbstractGs2RestClient {
|
|
|
1227
1228
|
'readAcquireActions': request.getReadAcquireActions()?.map((item) => item.toDict()) ?? null,
|
|
1228
1229
|
'expiresTimeSpan': request.getExpiresTimeSpan()?.toDict() ?? null,
|
|
1229
1230
|
'expiresAt': request.getExpiresAt() ?? null,
|
|
1231
|
+
'messageReceptionPeriodEventId': request.getMessageReceptionPeriodEventId() ?? null,
|
|
1230
1232
|
};
|
|
1231
1233
|
return axios.put(
|
|
1232
1234
|
url,
|
package/package.json
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import RepeatSetting from './RepeatSetting';
|
|
2
3
|
export default class Event implements IModel {
|
|
3
4
|
private eventId;
|
|
4
5
|
private name;
|
|
5
6
|
private metadata;
|
|
6
7
|
private scheduleType;
|
|
7
|
-
private repeatType;
|
|
8
8
|
private absoluteBegin;
|
|
9
9
|
private absoluteEnd;
|
|
10
|
+
private relativeTriggerName;
|
|
11
|
+
private repeatSetting;
|
|
12
|
+
private repeatType;
|
|
10
13
|
private repeatBeginDayOfMonth;
|
|
11
14
|
private repeatEndDayOfMonth;
|
|
12
15
|
private repeatBeginDayOfWeek;
|
|
13
16
|
private repeatEndDayOfWeek;
|
|
14
17
|
private repeatBeginHour;
|
|
15
18
|
private repeatEndHour;
|
|
16
|
-
private relativeTriggerName;
|
|
17
19
|
static getRegion(grn: string): string | null;
|
|
18
20
|
static getOwnerId(grn: string): string | null;
|
|
19
21
|
static getNamespaceName(grn: string): string | null;
|
|
@@ -32,36 +34,60 @@ export default class Event implements IModel {
|
|
|
32
34
|
getScheduleType(): string | null;
|
|
33
35
|
setScheduleType(scheduleType: string | null): this;
|
|
34
36
|
withScheduleType(scheduleType: string | null): this;
|
|
35
|
-
getRepeatType(): string | null;
|
|
36
|
-
setRepeatType(repeatType: string | null): this;
|
|
37
|
-
withRepeatType(repeatType: string | null): this;
|
|
38
37
|
getAbsoluteBegin(): number | null;
|
|
39
38
|
setAbsoluteBegin(absoluteBegin: number | null): this;
|
|
40
39
|
withAbsoluteBegin(absoluteBegin: number | null): this;
|
|
41
40
|
getAbsoluteEnd(): number | null;
|
|
42
41
|
setAbsoluteEnd(absoluteEnd: number | null): this;
|
|
43
42
|
withAbsoluteEnd(absoluteEnd: number | null): this;
|
|
43
|
+
getRelativeTriggerName(): string | null;
|
|
44
|
+
setRelativeTriggerName(relativeTriggerName: string | null): this;
|
|
45
|
+
withRelativeTriggerName(relativeTriggerName: string | null): this;
|
|
46
|
+
getRepeatSetting(): RepeatSetting | null;
|
|
47
|
+
setRepeatSetting(repeatSetting: RepeatSetting | null): this;
|
|
48
|
+
withRepeatSetting(repeatSetting: RepeatSetting | null): this;
|
|
49
|
+
/** @deprecated */
|
|
50
|
+
getRepeatType(): string | null;
|
|
51
|
+
/** @deprecated */
|
|
52
|
+
setRepeatType(repeatType: string | null): this;
|
|
53
|
+
/** @deprecated */
|
|
54
|
+
withRepeatType(repeatType: string | null): this;
|
|
55
|
+
/** @deprecated */
|
|
44
56
|
getRepeatBeginDayOfMonth(): number | null;
|
|
57
|
+
/** @deprecated */
|
|
45
58
|
setRepeatBeginDayOfMonth(repeatBeginDayOfMonth: number | null): this;
|
|
59
|
+
/** @deprecated */
|
|
46
60
|
withRepeatBeginDayOfMonth(repeatBeginDayOfMonth: number | null): this;
|
|
61
|
+
/** @deprecated */
|
|
47
62
|
getRepeatEndDayOfMonth(): number | null;
|
|
63
|
+
/** @deprecated */
|
|
48
64
|
setRepeatEndDayOfMonth(repeatEndDayOfMonth: number | null): this;
|
|
65
|
+
/** @deprecated */
|
|
49
66
|
withRepeatEndDayOfMonth(repeatEndDayOfMonth: number | null): this;
|
|
67
|
+
/** @deprecated */
|
|
50
68
|
getRepeatBeginDayOfWeek(): string | null;
|
|
69
|
+
/** @deprecated */
|
|
51
70
|
setRepeatBeginDayOfWeek(repeatBeginDayOfWeek: string | null): this;
|
|
71
|
+
/** @deprecated */
|
|
52
72
|
withRepeatBeginDayOfWeek(repeatBeginDayOfWeek: string | null): this;
|
|
73
|
+
/** @deprecated */
|
|
53
74
|
getRepeatEndDayOfWeek(): string | null;
|
|
75
|
+
/** @deprecated */
|
|
54
76
|
setRepeatEndDayOfWeek(repeatEndDayOfWeek: string | null): this;
|
|
77
|
+
/** @deprecated */
|
|
55
78
|
withRepeatEndDayOfWeek(repeatEndDayOfWeek: string | null): this;
|
|
79
|
+
/** @deprecated */
|
|
56
80
|
getRepeatBeginHour(): number | null;
|
|
81
|
+
/** @deprecated */
|
|
57
82
|
setRepeatBeginHour(repeatBeginHour: number | null): this;
|
|
83
|
+
/** @deprecated */
|
|
58
84
|
withRepeatBeginHour(repeatBeginHour: number | null): this;
|
|
85
|
+
/** @deprecated */
|
|
59
86
|
getRepeatEndHour(): number | null;
|
|
87
|
+
/** @deprecated */
|
|
60
88
|
setRepeatEndHour(repeatEndHour: number | null): this;
|
|
89
|
+
/** @deprecated */
|
|
61
90
|
withRepeatEndHour(repeatEndHour: number | null): this;
|
|
62
|
-
getRelativeTriggerName(): string | null;
|
|
63
|
-
setRelativeTriggerName(relativeTriggerName: string | null): this;
|
|
64
|
-
withRelativeTriggerName(relativeTriggerName: string | null): this;
|
|
65
91
|
static fromDict(data: {
|
|
66
92
|
[key: string]: any;
|
|
67
93
|
}): Event | null;
|
package/schedule/model/Event.js
CHANGED
|
@@ -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 Event = /** @class */ (function () {
|
|
20
22
|
function Event() {
|
|
@@ -22,16 +24,17 @@ var Event = /** @class */ (function () {
|
|
|
22
24
|
this.name = null;
|
|
23
25
|
this.metadata = null;
|
|
24
26
|
this.scheduleType = null;
|
|
25
|
-
this.repeatType = null;
|
|
26
27
|
this.absoluteBegin = null;
|
|
27
28
|
this.absoluteEnd = null;
|
|
29
|
+
this.relativeTriggerName = null;
|
|
30
|
+
this.repeatSetting = null;
|
|
31
|
+
this.repeatType = null;
|
|
28
32
|
this.repeatBeginDayOfMonth = null;
|
|
29
33
|
this.repeatEndDayOfMonth = null;
|
|
30
34
|
this.repeatBeginDayOfWeek = null;
|
|
31
35
|
this.repeatEndDayOfWeek = null;
|
|
32
36
|
this.repeatBeginHour = null;
|
|
33
37
|
this.repeatEndHour = null;
|
|
34
|
-
this.relativeTriggerName = null;
|
|
35
38
|
}
|
|
36
39
|
Event.getRegion = function (grn) {
|
|
37
40
|
var match = grn.match(grnFormat
|
|
@@ -143,17 +146,6 @@ var Event = /** @class */ (function () {
|
|
|
143
146
|
this.scheduleType = scheduleType;
|
|
144
147
|
return this;
|
|
145
148
|
};
|
|
146
|
-
Event.prototype.getRepeatType = function () {
|
|
147
|
-
return this.repeatType;
|
|
148
|
-
};
|
|
149
|
-
Event.prototype.setRepeatType = function (repeatType) {
|
|
150
|
-
this.repeatType = repeatType;
|
|
151
|
-
return this;
|
|
152
|
-
};
|
|
153
|
-
Event.prototype.withRepeatType = function (repeatType) {
|
|
154
|
-
this.repeatType = repeatType;
|
|
155
|
-
return this;
|
|
156
|
-
};
|
|
157
149
|
Event.prototype.getAbsoluteBegin = function () {
|
|
158
150
|
return this.absoluteBegin;
|
|
159
151
|
};
|
|
@@ -176,83 +168,126 @@ var Event = /** @class */ (function () {
|
|
|
176
168
|
this.absoluteEnd = absoluteEnd;
|
|
177
169
|
return this;
|
|
178
170
|
};
|
|
171
|
+
Event.prototype.getRelativeTriggerName = function () {
|
|
172
|
+
return this.relativeTriggerName;
|
|
173
|
+
};
|
|
174
|
+
Event.prototype.setRelativeTriggerName = function (relativeTriggerName) {
|
|
175
|
+
this.relativeTriggerName = relativeTriggerName;
|
|
176
|
+
return this;
|
|
177
|
+
};
|
|
178
|
+
Event.prototype.withRelativeTriggerName = function (relativeTriggerName) {
|
|
179
|
+
this.relativeTriggerName = relativeTriggerName;
|
|
180
|
+
return this;
|
|
181
|
+
};
|
|
182
|
+
Event.prototype.getRepeatSetting = function () {
|
|
183
|
+
return this.repeatSetting;
|
|
184
|
+
};
|
|
185
|
+
Event.prototype.setRepeatSetting = function (repeatSetting) {
|
|
186
|
+
this.repeatSetting = repeatSetting;
|
|
187
|
+
return this;
|
|
188
|
+
};
|
|
189
|
+
Event.prototype.withRepeatSetting = function (repeatSetting) {
|
|
190
|
+
this.repeatSetting = repeatSetting;
|
|
191
|
+
return this;
|
|
192
|
+
};
|
|
193
|
+
/** @deprecated */
|
|
194
|
+
Event.prototype.getRepeatType = function () {
|
|
195
|
+
return this.repeatType;
|
|
196
|
+
};
|
|
197
|
+
/** @deprecated */
|
|
198
|
+
Event.prototype.setRepeatType = function (repeatType) {
|
|
199
|
+
this.repeatType = repeatType;
|
|
200
|
+
return this;
|
|
201
|
+
};
|
|
202
|
+
/** @deprecated */
|
|
203
|
+
Event.prototype.withRepeatType = function (repeatType) {
|
|
204
|
+
this.repeatType = repeatType;
|
|
205
|
+
return this;
|
|
206
|
+
};
|
|
207
|
+
/** @deprecated */
|
|
179
208
|
Event.prototype.getRepeatBeginDayOfMonth = function () {
|
|
180
209
|
return this.repeatBeginDayOfMonth;
|
|
181
210
|
};
|
|
211
|
+
/** @deprecated */
|
|
182
212
|
Event.prototype.setRepeatBeginDayOfMonth = function (repeatBeginDayOfMonth) {
|
|
183
213
|
this.repeatBeginDayOfMonth = repeatBeginDayOfMonth;
|
|
184
214
|
return this;
|
|
185
215
|
};
|
|
216
|
+
/** @deprecated */
|
|
186
217
|
Event.prototype.withRepeatBeginDayOfMonth = function (repeatBeginDayOfMonth) {
|
|
187
218
|
this.repeatBeginDayOfMonth = repeatBeginDayOfMonth;
|
|
188
219
|
return this;
|
|
189
220
|
};
|
|
221
|
+
/** @deprecated */
|
|
190
222
|
Event.prototype.getRepeatEndDayOfMonth = function () {
|
|
191
223
|
return this.repeatEndDayOfMonth;
|
|
192
224
|
};
|
|
225
|
+
/** @deprecated */
|
|
193
226
|
Event.prototype.setRepeatEndDayOfMonth = function (repeatEndDayOfMonth) {
|
|
194
227
|
this.repeatEndDayOfMonth = repeatEndDayOfMonth;
|
|
195
228
|
return this;
|
|
196
229
|
};
|
|
230
|
+
/** @deprecated */
|
|
197
231
|
Event.prototype.withRepeatEndDayOfMonth = function (repeatEndDayOfMonth) {
|
|
198
232
|
this.repeatEndDayOfMonth = repeatEndDayOfMonth;
|
|
199
233
|
return this;
|
|
200
234
|
};
|
|
235
|
+
/** @deprecated */
|
|
201
236
|
Event.prototype.getRepeatBeginDayOfWeek = function () {
|
|
202
237
|
return this.repeatBeginDayOfWeek;
|
|
203
238
|
};
|
|
239
|
+
/** @deprecated */
|
|
204
240
|
Event.prototype.setRepeatBeginDayOfWeek = function (repeatBeginDayOfWeek) {
|
|
205
241
|
this.repeatBeginDayOfWeek = repeatBeginDayOfWeek;
|
|
206
242
|
return this;
|
|
207
243
|
};
|
|
244
|
+
/** @deprecated */
|
|
208
245
|
Event.prototype.withRepeatBeginDayOfWeek = function (repeatBeginDayOfWeek) {
|
|
209
246
|
this.repeatBeginDayOfWeek = repeatBeginDayOfWeek;
|
|
210
247
|
return this;
|
|
211
248
|
};
|
|
249
|
+
/** @deprecated */
|
|
212
250
|
Event.prototype.getRepeatEndDayOfWeek = function () {
|
|
213
251
|
return this.repeatEndDayOfWeek;
|
|
214
252
|
};
|
|
253
|
+
/** @deprecated */
|
|
215
254
|
Event.prototype.setRepeatEndDayOfWeek = function (repeatEndDayOfWeek) {
|
|
216
255
|
this.repeatEndDayOfWeek = repeatEndDayOfWeek;
|
|
217
256
|
return this;
|
|
218
257
|
};
|
|
258
|
+
/** @deprecated */
|
|
219
259
|
Event.prototype.withRepeatEndDayOfWeek = function (repeatEndDayOfWeek) {
|
|
220
260
|
this.repeatEndDayOfWeek = repeatEndDayOfWeek;
|
|
221
261
|
return this;
|
|
222
262
|
};
|
|
263
|
+
/** @deprecated */
|
|
223
264
|
Event.prototype.getRepeatBeginHour = function () {
|
|
224
265
|
return this.repeatBeginHour;
|
|
225
266
|
};
|
|
267
|
+
/** @deprecated */
|
|
226
268
|
Event.prototype.setRepeatBeginHour = function (repeatBeginHour) {
|
|
227
269
|
this.repeatBeginHour = repeatBeginHour;
|
|
228
270
|
return this;
|
|
229
271
|
};
|
|
272
|
+
/** @deprecated */
|
|
230
273
|
Event.prototype.withRepeatBeginHour = function (repeatBeginHour) {
|
|
231
274
|
this.repeatBeginHour = repeatBeginHour;
|
|
232
275
|
return this;
|
|
233
276
|
};
|
|
277
|
+
/** @deprecated */
|
|
234
278
|
Event.prototype.getRepeatEndHour = function () {
|
|
235
279
|
return this.repeatEndHour;
|
|
236
280
|
};
|
|
281
|
+
/** @deprecated */
|
|
237
282
|
Event.prototype.setRepeatEndHour = function (repeatEndHour) {
|
|
238
283
|
this.repeatEndHour = repeatEndHour;
|
|
239
284
|
return this;
|
|
240
285
|
};
|
|
286
|
+
/** @deprecated */
|
|
241
287
|
Event.prototype.withRepeatEndHour = function (repeatEndHour) {
|
|
242
288
|
this.repeatEndHour = repeatEndHour;
|
|
243
289
|
return this;
|
|
244
290
|
};
|
|
245
|
-
Event.prototype.getRelativeTriggerName = function () {
|
|
246
|
-
return this.relativeTriggerName;
|
|
247
|
-
};
|
|
248
|
-
Event.prototype.setRelativeTriggerName = function (relativeTriggerName) {
|
|
249
|
-
this.relativeTriggerName = relativeTriggerName;
|
|
250
|
-
return this;
|
|
251
|
-
};
|
|
252
|
-
Event.prototype.withRelativeTriggerName = function (relativeTriggerName) {
|
|
253
|
-
this.relativeTriggerName = relativeTriggerName;
|
|
254
|
-
return this;
|
|
255
|
-
};
|
|
256
291
|
Event.fromDict = function (data) {
|
|
257
292
|
if (data == undefined || data == null) {
|
|
258
293
|
return null;
|
|
@@ -262,33 +297,36 @@ var Event = /** @class */ (function () {
|
|
|
262
297
|
.withName(data["name"])
|
|
263
298
|
.withMetadata(data["metadata"])
|
|
264
299
|
.withScheduleType(data["scheduleType"])
|
|
265
|
-
.withRepeatType(data["repeatType"])
|
|
266
300
|
.withAbsoluteBegin(data["absoluteBegin"])
|
|
267
301
|
.withAbsoluteEnd(data["absoluteEnd"])
|
|
302
|
+
.withRelativeTriggerName(data["relativeTriggerName"])
|
|
303
|
+
.withRepeatSetting(RepeatSetting_1.default.fromDict(data["repeatSetting"]))
|
|
304
|
+
.withRepeatType(data["repeatType"])
|
|
268
305
|
.withRepeatBeginDayOfMonth(data["repeatBeginDayOfMonth"])
|
|
269
306
|
.withRepeatEndDayOfMonth(data["repeatEndDayOfMonth"])
|
|
270
307
|
.withRepeatBeginDayOfWeek(data["repeatBeginDayOfWeek"])
|
|
271
308
|
.withRepeatEndDayOfWeek(data["repeatEndDayOfWeek"])
|
|
272
309
|
.withRepeatBeginHour(data["repeatBeginHour"])
|
|
273
|
-
.withRepeatEndHour(data["repeatEndHour"])
|
|
274
|
-
.withRelativeTriggerName(data["relativeTriggerName"]);
|
|
310
|
+
.withRepeatEndHour(data["repeatEndHour"]);
|
|
275
311
|
};
|
|
276
312
|
Event.prototype.toDict = function () {
|
|
313
|
+
var _a;
|
|
277
314
|
return {
|
|
278
315
|
"eventId": this.getEventId(),
|
|
279
316
|
"name": this.getName(),
|
|
280
317
|
"metadata": this.getMetadata(),
|
|
281
318
|
"scheduleType": this.getScheduleType(),
|
|
282
|
-
"repeatType": this.getRepeatType(),
|
|
283
319
|
"absoluteBegin": this.getAbsoluteBegin(),
|
|
284
320
|
"absoluteEnd": this.getAbsoluteEnd(),
|
|
321
|
+
"relativeTriggerName": this.getRelativeTriggerName(),
|
|
322
|
+
"repeatSetting": (_a = this.getRepeatSetting()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
323
|
+
"repeatType": this.getRepeatType(),
|
|
285
324
|
"repeatBeginDayOfMonth": this.getRepeatBeginDayOfMonth(),
|
|
286
325
|
"repeatEndDayOfMonth": this.getRepeatEndDayOfMonth(),
|
|
287
326
|
"repeatBeginDayOfWeek": this.getRepeatBeginDayOfWeek(),
|
|
288
327
|
"repeatEndDayOfWeek": this.getRepeatEndDayOfWeek(),
|
|
289
328
|
"repeatBeginHour": this.getRepeatBeginHour(),
|
|
290
329
|
"repeatEndHour": this.getRepeatEndHour(),
|
|
291
|
-
"relativeTriggerName": this.getRelativeTriggerName(),
|
|
292
330
|
};
|
|
293
331
|
};
|
|
294
332
|
return Event;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Event.js","sourceRoot":"","sources":["Event.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"Event.js","sourceRoot":"","sources":["Event.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,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,eAAU,GAAgB,IAAI,CAAC;QAC/B,0BAAqB,GAAgB,IAAI,CAAC;QAC1C,wBAAmB,GAAgB,IAAI,CAAC;QACxC,yBAAoB,GAAgB,IAAI,CAAC;QACzC,uBAAk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AAE,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,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,YAAC;AAAD,CAAC,AArUD,IAqUC"}
|
package/schedule/model/Event.ts
CHANGED
|
@@ -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 Event implements IModel {
|
|
@@ -22,16 +23,17 @@ export default class Event implements IModel {
|
|
|
22
23
|
private name: string|null = null;
|
|
23
24
|
private metadata: string|null = null;
|
|
24
25
|
private scheduleType: string|null = null;
|
|
25
|
-
private repeatType: string|null = null;
|
|
26
26
|
private absoluteBegin: number|null = null;
|
|
27
27
|
private absoluteEnd: number|null = null;
|
|
28
|
+
private relativeTriggerName: string|null = null;
|
|
29
|
+
private repeatSetting: RepeatSetting|null = null;
|
|
30
|
+
private repeatType: string|null = null;
|
|
28
31
|
private repeatBeginDayOfMonth: number|null = null;
|
|
29
32
|
private repeatEndDayOfMonth: number|null = null;
|
|
30
33
|
private repeatBeginDayOfWeek: string|null = null;
|
|
31
34
|
private repeatEndDayOfWeek: string|null = null;
|
|
32
35
|
private repeatBeginHour: number|null = null;
|
|
33
36
|
private repeatEndHour: number|null = null;
|
|
34
|
-
private relativeTriggerName: string|null = null;
|
|
35
37
|
|
|
36
38
|
public static getRegion(grn: string): string|null {
|
|
37
39
|
const match = grn.match(grnFormat
|
|
@@ -157,17 +159,6 @@ export default class Event implements IModel {
|
|
|
157
159
|
this.scheduleType = scheduleType;
|
|
158
160
|
return this;
|
|
159
161
|
}
|
|
160
|
-
public getRepeatType(): string|null {
|
|
161
|
-
return this.repeatType;
|
|
162
|
-
}
|
|
163
|
-
public setRepeatType(repeatType: string|null) {
|
|
164
|
-
this.repeatType = repeatType;
|
|
165
|
-
return this;
|
|
166
|
-
}
|
|
167
|
-
public withRepeatType(repeatType: string|null): this {
|
|
168
|
-
this.repeatType = repeatType;
|
|
169
|
-
return this;
|
|
170
|
-
}
|
|
171
162
|
public getAbsoluteBegin(): number|null {
|
|
172
163
|
return this.absoluteBegin;
|
|
173
164
|
}
|
|
@@ -190,83 +181,126 @@ export default class Event implements IModel {
|
|
|
190
181
|
this.absoluteEnd = absoluteEnd;
|
|
191
182
|
return this;
|
|
192
183
|
}
|
|
184
|
+
public getRelativeTriggerName(): string|null {
|
|
185
|
+
return this.relativeTriggerName;
|
|
186
|
+
}
|
|
187
|
+
public setRelativeTriggerName(relativeTriggerName: string|null) {
|
|
188
|
+
this.relativeTriggerName = relativeTriggerName;
|
|
189
|
+
return this;
|
|
190
|
+
}
|
|
191
|
+
public withRelativeTriggerName(relativeTriggerName: string|null): this {
|
|
192
|
+
this.relativeTriggerName = relativeTriggerName;
|
|
193
|
+
return this;
|
|
194
|
+
}
|
|
195
|
+
public getRepeatSetting(): RepeatSetting|null {
|
|
196
|
+
return this.repeatSetting;
|
|
197
|
+
}
|
|
198
|
+
public setRepeatSetting(repeatSetting: RepeatSetting|null) {
|
|
199
|
+
this.repeatSetting = repeatSetting;
|
|
200
|
+
return this;
|
|
201
|
+
}
|
|
202
|
+
public withRepeatSetting(repeatSetting: RepeatSetting|null): this {
|
|
203
|
+
this.repeatSetting = repeatSetting;
|
|
204
|
+
return this;
|
|
205
|
+
}
|
|
206
|
+
/** @deprecated */
|
|
207
|
+
public getRepeatType(): string|null {
|
|
208
|
+
return this.repeatType;
|
|
209
|
+
}
|
|
210
|
+
/** @deprecated */
|
|
211
|
+
public setRepeatType(repeatType: string|null) {
|
|
212
|
+
this.repeatType = repeatType;
|
|
213
|
+
return this;
|
|
214
|
+
}
|
|
215
|
+
/** @deprecated */
|
|
216
|
+
public withRepeatType(repeatType: string|null): this {
|
|
217
|
+
this.repeatType = repeatType;
|
|
218
|
+
return this;
|
|
219
|
+
}
|
|
220
|
+
/** @deprecated */
|
|
193
221
|
public getRepeatBeginDayOfMonth(): number|null {
|
|
194
222
|
return this.repeatBeginDayOfMonth;
|
|
195
223
|
}
|
|
224
|
+
/** @deprecated */
|
|
196
225
|
public setRepeatBeginDayOfMonth(repeatBeginDayOfMonth: number|null) {
|
|
197
226
|
this.repeatBeginDayOfMonth = repeatBeginDayOfMonth;
|
|
198
227
|
return this;
|
|
199
228
|
}
|
|
229
|
+
/** @deprecated */
|
|
200
230
|
public withRepeatBeginDayOfMonth(repeatBeginDayOfMonth: number|null): this {
|
|
201
231
|
this.repeatBeginDayOfMonth = repeatBeginDayOfMonth;
|
|
202
232
|
return this;
|
|
203
233
|
}
|
|
234
|
+
/** @deprecated */
|
|
204
235
|
public getRepeatEndDayOfMonth(): number|null {
|
|
205
236
|
return this.repeatEndDayOfMonth;
|
|
206
237
|
}
|
|
238
|
+
/** @deprecated */
|
|
207
239
|
public setRepeatEndDayOfMonth(repeatEndDayOfMonth: number|null) {
|
|
208
240
|
this.repeatEndDayOfMonth = repeatEndDayOfMonth;
|
|
209
241
|
return this;
|
|
210
242
|
}
|
|
243
|
+
/** @deprecated */
|
|
211
244
|
public withRepeatEndDayOfMonth(repeatEndDayOfMonth: number|null): this {
|
|
212
245
|
this.repeatEndDayOfMonth = repeatEndDayOfMonth;
|
|
213
246
|
return this;
|
|
214
247
|
}
|
|
248
|
+
/** @deprecated */
|
|
215
249
|
public getRepeatBeginDayOfWeek(): string|null {
|
|
216
250
|
return this.repeatBeginDayOfWeek;
|
|
217
251
|
}
|
|
252
|
+
/** @deprecated */
|
|
218
253
|
public setRepeatBeginDayOfWeek(repeatBeginDayOfWeek: string|null) {
|
|
219
254
|
this.repeatBeginDayOfWeek = repeatBeginDayOfWeek;
|
|
220
255
|
return this;
|
|
221
256
|
}
|
|
257
|
+
/** @deprecated */
|
|
222
258
|
public withRepeatBeginDayOfWeek(repeatBeginDayOfWeek: string|null): this {
|
|
223
259
|
this.repeatBeginDayOfWeek = repeatBeginDayOfWeek;
|
|
224
260
|
return this;
|
|
225
261
|
}
|
|
262
|
+
/** @deprecated */
|
|
226
263
|
public getRepeatEndDayOfWeek(): string|null {
|
|
227
264
|
return this.repeatEndDayOfWeek;
|
|
228
265
|
}
|
|
266
|
+
/** @deprecated */
|
|
229
267
|
public setRepeatEndDayOfWeek(repeatEndDayOfWeek: string|null) {
|
|
230
268
|
this.repeatEndDayOfWeek = repeatEndDayOfWeek;
|
|
231
269
|
return this;
|
|
232
270
|
}
|
|
271
|
+
/** @deprecated */
|
|
233
272
|
public withRepeatEndDayOfWeek(repeatEndDayOfWeek: string|null): this {
|
|
234
273
|
this.repeatEndDayOfWeek = repeatEndDayOfWeek;
|
|
235
274
|
return this;
|
|
236
275
|
}
|
|
276
|
+
/** @deprecated */
|
|
237
277
|
public getRepeatBeginHour(): number|null {
|
|
238
278
|
return this.repeatBeginHour;
|
|
239
279
|
}
|
|
280
|
+
/** @deprecated */
|
|
240
281
|
public setRepeatBeginHour(repeatBeginHour: number|null) {
|
|
241
282
|
this.repeatBeginHour = repeatBeginHour;
|
|
242
283
|
return this;
|
|
243
284
|
}
|
|
285
|
+
/** @deprecated */
|
|
244
286
|
public withRepeatBeginHour(repeatBeginHour: number|null): this {
|
|
245
287
|
this.repeatBeginHour = repeatBeginHour;
|
|
246
288
|
return this;
|
|
247
289
|
}
|
|
290
|
+
/** @deprecated */
|
|
248
291
|
public getRepeatEndHour(): number|null {
|
|
249
292
|
return this.repeatEndHour;
|
|
250
293
|
}
|
|
294
|
+
/** @deprecated */
|
|
251
295
|
public setRepeatEndHour(repeatEndHour: number|null) {
|
|
252
296
|
this.repeatEndHour = repeatEndHour;
|
|
253
297
|
return this;
|
|
254
298
|
}
|
|
299
|
+
/** @deprecated */
|
|
255
300
|
public withRepeatEndHour(repeatEndHour: number|null): this {
|
|
256
301
|
this.repeatEndHour = repeatEndHour;
|
|
257
302
|
return this;
|
|
258
303
|
}
|
|
259
|
-
public getRelativeTriggerName(): string|null {
|
|
260
|
-
return this.relativeTriggerName;
|
|
261
|
-
}
|
|
262
|
-
public setRelativeTriggerName(relativeTriggerName: string|null) {
|
|
263
|
-
this.relativeTriggerName = relativeTriggerName;
|
|
264
|
-
return this;
|
|
265
|
-
}
|
|
266
|
-
public withRelativeTriggerName(relativeTriggerName: string|null): this {
|
|
267
|
-
this.relativeTriggerName = relativeTriggerName;
|
|
268
|
-
return this;
|
|
269
|
-
}
|
|
270
304
|
|
|
271
305
|
public static fromDict(data: {[key: string]: any}): Event|null {
|
|
272
306
|
if (data == undefined || data == null) {
|
|
@@ -277,16 +311,17 @@ export default class Event implements IModel {
|
|
|
277
311
|
.withName(data["name"])
|
|
278
312
|
.withMetadata(data["metadata"])
|
|
279
313
|
.withScheduleType(data["scheduleType"])
|
|
280
|
-
.withRepeatType(data["repeatType"])
|
|
281
314
|
.withAbsoluteBegin(data["absoluteBegin"])
|
|
282
315
|
.withAbsoluteEnd(data["absoluteEnd"])
|
|
316
|
+
.withRelativeTriggerName(data["relativeTriggerName"])
|
|
317
|
+
.withRepeatSetting(RepeatSetting.fromDict(data["repeatSetting"]))
|
|
318
|
+
.withRepeatType(data["repeatType"])
|
|
283
319
|
.withRepeatBeginDayOfMonth(data["repeatBeginDayOfMonth"])
|
|
284
320
|
.withRepeatEndDayOfMonth(data["repeatEndDayOfMonth"])
|
|
285
321
|
.withRepeatBeginDayOfWeek(data["repeatBeginDayOfWeek"])
|
|
286
322
|
.withRepeatEndDayOfWeek(data["repeatEndDayOfWeek"])
|
|
287
323
|
.withRepeatBeginHour(data["repeatBeginHour"])
|
|
288
|
-
.withRepeatEndHour(data["repeatEndHour"])
|
|
289
|
-
.withRelativeTriggerName(data["relativeTriggerName"]);
|
|
324
|
+
.withRepeatEndHour(data["repeatEndHour"]);
|
|
290
325
|
}
|
|
291
326
|
|
|
292
327
|
public toDict(): {[key: string]: any} {
|
|
@@ -295,16 +330,17 @@ export default class Event implements IModel {
|
|
|
295
330
|
"name": this.getName(),
|
|
296
331
|
"metadata": this.getMetadata(),
|
|
297
332
|
"scheduleType": this.getScheduleType(),
|
|
298
|
-
"repeatType": this.getRepeatType(),
|
|
299
333
|
"absoluteBegin": this.getAbsoluteBegin(),
|
|
300
334
|
"absoluteEnd": this.getAbsoluteEnd(),
|
|
335
|
+
"relativeTriggerName": this.getRelativeTriggerName(),
|
|
336
|
+
"repeatSetting": this.getRepeatSetting()?.toDict(),
|
|
337
|
+
"repeatType": this.getRepeatType(),
|
|
301
338
|
"repeatBeginDayOfMonth": this.getRepeatBeginDayOfMonth(),
|
|
302
339
|
"repeatEndDayOfMonth": this.getRepeatEndDayOfMonth(),
|
|
303
340
|
"repeatBeginDayOfWeek": this.getRepeatBeginDayOfWeek(),
|
|
304
341
|
"repeatEndDayOfWeek": this.getRepeatEndDayOfWeek(),
|
|
305
342
|
"repeatBeginHour": this.getRepeatBeginHour(),
|
|
306
343
|
"repeatEndHour": this.getRepeatEndHour(),
|
|
307
|
-
"relativeTriggerName": this.getRelativeTriggerName(),
|
|
308
344
|
};
|
|
309
345
|
}
|
|
310
346
|
}
|