namirasoft-scheduler 1.4.0
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/dist/NamirasoftSchedulerServer.d.ts +13 -0
- package/dist/NamirasoftSchedulerServer.js +20 -0
- package/dist/NamirasoftSchedulerServer.js.map +1 -0
- package/dist/NamirasoftSchedulerServerBase.d.ts +5 -0
- package/dist/NamirasoftSchedulerServerBase.js +11 -0
- package/dist/NamirasoftSchedulerServerBase.js.map +1 -0
- package/dist/NamirasoftSchedulerServerHealthz.d.ts +7 -0
- package/dist/NamirasoftSchedulerServerHealthz.js +28 -0
- package/dist/NamirasoftSchedulerServerHealthz.js.map +1 -0
- package/dist/NamirasoftSchedulerServerMetrics.d.ts +7 -0
- package/dist/NamirasoftSchedulerServerMetrics.js +28 -0
- package/dist/NamirasoftSchedulerServerMetrics.js.map +1 -0
- package/dist/NamirasoftSchedulerServerScheduler.d.ts +19 -0
- package/dist/NamirasoftSchedulerServerScheduler.js +64 -0
- package/dist/NamirasoftSchedulerServerScheduler.js.map +1 -0
- package/dist/NamirasoftSchedulerServerValue.d.ts +7 -0
- package/dist/NamirasoftSchedulerServerValue.js +29 -0
- package/dist/NamirasoftSchedulerServerValue.js.map +1 -0
- package/dist/command/HealthzCommand.d.ts +4 -0
- package/dist/command/HealthzCommand.js +15 -0
- package/dist/command/HealthzCommand.js.map +1 -0
- package/dist/command/HealthzGetCommand.d.ts +5 -0
- package/dist/command/HealthzGetCommand.js +38 -0
- package/dist/command/HealthzGetCommand.js.map +1 -0
- package/dist/command/MetricsCommand.d.ts +4 -0
- package/dist/command/MetricsCommand.js +15 -0
- package/dist/command/MetricsCommand.js.map +1 -0
- package/dist/command/MetricsGetCommand.d.ts +5 -0
- package/dist/command/MetricsGetCommand.js +38 -0
- package/dist/command/MetricsGetCommand.js.map +1 -0
- package/dist/command/SchedulerCommand.d.ts +4 -0
- package/dist/command/SchedulerCommand.js +23 -0
- package/dist/command/SchedulerCommand.js.map +1 -0
- package/dist/command/SchedulerCreateCommand.d.ts +5 -0
- package/dist/command/SchedulerCreateCommand.js +292 -0
- package/dist/command/SchedulerCreateCommand.js.map +1 -0
- package/dist/command/SchedulerDeleteCommand.d.ts +5 -0
- package/dist/command/SchedulerDeleteCommand.js +38 -0
- package/dist/command/SchedulerDeleteCommand.js.map +1 -0
- package/dist/command/SchedulerGetCommand.d.ts +5 -0
- package/dist/command/SchedulerGetCommand.js +38 -0
- package/dist/command/SchedulerGetCommand.js.map +1 -0
- package/dist/command/SchedulerListCommand.d.ts +5 -0
- package/dist/command/SchedulerListCommand.js +38 -0
- package/dist/command/SchedulerListCommand.js.map +1 -0
- package/dist/command/SchedulerUpdateCommand.d.ts +5 -0
- package/dist/command/SchedulerUpdateCommand.js +292 -0
- package/dist/command/SchedulerUpdateCommand.js.map +1 -0
- package/dist/command/ValueCommand.d.ts +4 -0
- package/dist/command/ValueCommand.js +15 -0
- package/dist/command/ValueCommand.js.map +1 -0
- package/dist/command/ValueListCommand.d.ts +5 -0
- package/dist/command/ValueListCommand.js +38 -0
- package/dist/command/ValueListCommand.js.map +1 -0
- package/dist/command/cli.d.ts +2 -0
- package/dist/command/cli.js +20 -0
- package/dist/command/cli.js.map +1 -0
- package/dist/enum/SchedulerFrequencyMonthDays.d.ts +34 -0
- package/dist/enum/SchedulerFrequencyMonthDays.js +39 -0
- package/dist/enum/SchedulerFrequencyMonthDays.js.map +1 -0
- package/dist/enum/SchedulerFrequencyMonthNames.d.ts +13 -0
- package/dist/enum/SchedulerFrequencyMonthNames.js +18 -0
- package/dist/enum/SchedulerFrequencyMonthNames.js.map +1 -0
- package/dist/enum/SchedulerFrequencyMonthOnDays.d.ts +9 -0
- package/dist/enum/SchedulerFrequencyMonthOnDays.js +14 -0
- package/dist/enum/SchedulerFrequencyMonthOnDays.js.map +1 -0
- package/dist/enum/SchedulerFrequencyMonthOnWeek.d.ts +7 -0
- package/dist/enum/SchedulerFrequencyMonthOnWeek.js +12 -0
- package/dist/enum/SchedulerFrequencyMonthOnWeek.js.map +1 -0
- package/dist/enum/SchedulerFrequencyType.d.ts +5 -0
- package/dist/enum/SchedulerFrequencyType.js +10 -0
- package/dist/enum/SchedulerFrequencyType.js.map +1 -0
- package/dist/enum/SchedulerFrequencyWeekDays.d.ts +9 -0
- package/dist/enum/SchedulerFrequencyWeekDays.js +14 -0
- package/dist/enum/SchedulerFrequencyWeekDays.js.map +1 -0
- package/dist/enum/SchedulerRandomDelayUnit.d.ts +5 -0
- package/dist/enum/SchedulerRandomDelayUnit.js +10 -0
- package/dist/enum/SchedulerRandomDelayUnit.js.map +1 -0
- package/dist/enum/SchedulerRepeatEveryUnit.d.ts +5 -0
- package/dist/enum/SchedulerRepeatEveryUnit.js +10 -0
- package/dist/enum/SchedulerRepeatEveryUnit.js.map +1 -0
- package/dist/enum/SchedulerRepeatUntilUnit.d.ts +5 -0
- package/dist/enum/SchedulerRepeatUntilUnit.js +10 -0
- package/dist/enum/SchedulerRepeatUntilUnit.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -0
- package/dist/meta/NamirasoftSchedulerMetaDatabase.d.ts +13 -0
- package/dist/meta/NamirasoftSchedulerMetaDatabase.js +27 -0
- package/dist/meta/NamirasoftSchedulerMetaDatabase.js.map +1 -0
- package/dist/meta/SchedulerMetaTable.d.ts +43 -0
- package/dist/meta/SchedulerMetaTable.js +66 -0
- package/dist/meta/SchedulerMetaTable.js.map +1 -0
- package/dist/row/SchedulerFullRow.d.ts +45 -0
- package/dist/row/SchedulerFullRow.js +3 -0
- package/dist/row/SchedulerFullRow.js.map +1 -0
- package/dist/row/SchedulerInputRow.d.ts +39 -0
- package/dist/row/SchedulerInputRow.js +3 -0
- package/dist/row/SchedulerInputRow.js.map +1 -0
- package/dist/row/SchedulerRow.d.ts +45 -0
- package/dist/row/SchedulerRow.js +3 -0
- package/dist/row/SchedulerRow.js.map +1 -0
- package/logo.png +0 -0
- package/package.json +28 -0
- package/src/NamirasoftSchedulerServer.ts +42 -0
- package/src/NamirasoftSchedulerServerBase.ts +30 -0
- package/src/NamirasoftSchedulerServerHealthz.ts +37 -0
- package/src/NamirasoftSchedulerServerMetrics.ts +37 -0
- package/src/NamirasoftSchedulerServerScheduler.ts +72 -0
- package/src/NamirasoftSchedulerServerValue.ts +38 -0
- package/src/command/HealthzCommand.ts +32 -0
- package/src/command/HealthzGetCommand.ts +45 -0
- package/src/command/MetricsCommand.ts +32 -0
- package/src/command/MetricsGetCommand.ts +45 -0
- package/src/command/SchedulerCommand.ts +40 -0
- package/src/command/SchedulerCreateCommand.ts +299 -0
- package/src/command/SchedulerDeleteCommand.ts +45 -0
- package/src/command/SchedulerGetCommand.ts +45 -0
- package/src/command/SchedulerListCommand.ts +45 -0
- package/src/command/SchedulerUpdateCommand.ts +299 -0
- package/src/command/ValueCommand.ts +32 -0
- package/src/command/ValueListCommand.ts +45 -0
- package/src/command/cli.ts +39 -0
- package/src/enum/SchedulerFrequencyMonthDays.ts +55 -0
- package/src/enum/SchedulerFrequencyMonthNames.ts +34 -0
- package/src/enum/SchedulerFrequencyMonthOnDays.ts +30 -0
- package/src/enum/SchedulerFrequencyMonthOnWeek.ts +28 -0
- package/src/enum/SchedulerFrequencyType.ts +26 -0
- package/src/enum/SchedulerFrequencyWeekDays.ts +30 -0
- package/src/enum/SchedulerRandomDelayUnit.ts +26 -0
- package/src/enum/SchedulerRepeatEveryUnit.ts +26 -0
- package/src/enum/SchedulerRepeatUntilUnit.ts +26 -0
- package/src/index.ts +52 -0
- package/src/meta/NamirasoftSchedulerMetaDatabase.ts +51 -0
- package/src/meta/SchedulerMetaTable.ts +114 -0
- package/src/row/SchedulerFullRow.ts +67 -0
- package/src/row/SchedulerInputRow.ts +61 -0
- package/src/row/SchedulerRow.ts +67 -0
- package/tsconfig.json +42 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SchedulerUpdateCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftSchedulerServer_1 = require("../NamirasoftSchedulerServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class SchedulerUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["id"], [
|
|
20
|
+
{
|
|
21
|
+
name: "name",
|
|
22
|
+
short: "",
|
|
23
|
+
description: "Provides the value of 'name' in body",
|
|
24
|
+
optional: false,
|
|
25
|
+
args: ["name"],
|
|
26
|
+
defaults: [""]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "start_date",
|
|
30
|
+
short: "",
|
|
31
|
+
description: "Provides the value of 'start_date' in body",
|
|
32
|
+
optional: false,
|
|
33
|
+
args: ["start_date"],
|
|
34
|
+
defaults: [""]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "start_time",
|
|
38
|
+
short: "",
|
|
39
|
+
description: "Provides the value of 'start_time' in body",
|
|
40
|
+
optional: false,
|
|
41
|
+
args: ["start_time"],
|
|
42
|
+
defaults: [""]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "end_date",
|
|
46
|
+
short: "",
|
|
47
|
+
description: "Provides the value of 'end_date' in body",
|
|
48
|
+
optional: true,
|
|
49
|
+
args: ["end_date"],
|
|
50
|
+
defaults: [""]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "end_time",
|
|
54
|
+
short: "",
|
|
55
|
+
description: "Provides the value of 'end_time' in body",
|
|
56
|
+
optional: true,
|
|
57
|
+
args: ["end_time"],
|
|
58
|
+
defaults: [""]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "max_repeat_count",
|
|
62
|
+
short: "",
|
|
63
|
+
description: "Provides the value of 'max_repeat_count' in body",
|
|
64
|
+
optional: true,
|
|
65
|
+
args: ["max_repeat_count"],
|
|
66
|
+
defaults: [""]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "frequency_type",
|
|
70
|
+
short: "",
|
|
71
|
+
description: "Provides the value of 'frequency_type' in body",
|
|
72
|
+
optional: true,
|
|
73
|
+
args: ["frequency_type"],
|
|
74
|
+
defaults: [""]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "frequency_day_every",
|
|
78
|
+
short: "",
|
|
79
|
+
description: "Provides the value of 'frequency_day_every' in body",
|
|
80
|
+
optional: true,
|
|
81
|
+
args: ["frequency_day_every"],
|
|
82
|
+
defaults: [""]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "frequency_week_every",
|
|
86
|
+
short: "",
|
|
87
|
+
description: "Provides the value of 'frequency_week_every' in body",
|
|
88
|
+
optional: true,
|
|
89
|
+
args: ["frequency_week_every"],
|
|
90
|
+
defaults: [""]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "frequency_week_days",
|
|
94
|
+
short: "",
|
|
95
|
+
description: "Provides the value of 'frequency_week_days' in body",
|
|
96
|
+
optional: true,
|
|
97
|
+
args: ["frequency_week_days"],
|
|
98
|
+
defaults: [""]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "frequency_month_names",
|
|
102
|
+
short: "",
|
|
103
|
+
description: "Provides the value of 'frequency_month_names' in body",
|
|
104
|
+
optional: true,
|
|
105
|
+
args: ["frequency_month_names"],
|
|
106
|
+
defaults: [""]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "frequency_month_days",
|
|
110
|
+
short: "",
|
|
111
|
+
description: "Provides the value of 'frequency_month_days' in body",
|
|
112
|
+
optional: true,
|
|
113
|
+
args: ["frequency_month_days"],
|
|
114
|
+
defaults: [""]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "frequency_month_on_week",
|
|
118
|
+
short: "",
|
|
119
|
+
description: "Provides the value of 'frequency_month_on_week' in body",
|
|
120
|
+
optional: true,
|
|
121
|
+
args: ["frequency_month_on_week"],
|
|
122
|
+
defaults: [""]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: "frequency_month_on_days",
|
|
126
|
+
short: "",
|
|
127
|
+
description: "Provides the value of 'frequency_month_on_days' in body",
|
|
128
|
+
optional: true,
|
|
129
|
+
args: ["frequency_month_on_days"],
|
|
130
|
+
defaults: [""]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "repeat_every_value",
|
|
134
|
+
short: "",
|
|
135
|
+
description: "Provides the value of 'repeat_every_value' in body",
|
|
136
|
+
optional: true,
|
|
137
|
+
args: ["repeat_every_value"],
|
|
138
|
+
defaults: [""]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: "repeat_every_unit",
|
|
142
|
+
short: "",
|
|
143
|
+
description: "Provides the value of 'repeat_every_unit' in body",
|
|
144
|
+
optional: true,
|
|
145
|
+
args: ["repeat_every_unit"],
|
|
146
|
+
defaults: [""]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: "repeat_until_value",
|
|
150
|
+
short: "",
|
|
151
|
+
description: "Provides the value of 'repeat_until_value' in body",
|
|
152
|
+
optional: true,
|
|
153
|
+
args: ["repeat_until_value"],
|
|
154
|
+
defaults: [""]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "repeat_until_unit",
|
|
158
|
+
short: "",
|
|
159
|
+
description: "Provides the value of 'repeat_until_unit' in body",
|
|
160
|
+
optional: true,
|
|
161
|
+
args: ["repeat_until_unit"],
|
|
162
|
+
defaults: [""]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "random_delay_value",
|
|
166
|
+
short: "",
|
|
167
|
+
description: "Provides the value of 'random_delay_value' in body",
|
|
168
|
+
optional: true,
|
|
169
|
+
args: ["random_delay_value"],
|
|
170
|
+
defaults: [""]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: "random_delay_unit",
|
|
174
|
+
short: "",
|
|
175
|
+
description: "Provides the value of 'random_delay_unit' in body",
|
|
176
|
+
optional: true,
|
|
177
|
+
args: ["random_delay_unit"],
|
|
178
|
+
defaults: [""]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: "cron_year",
|
|
182
|
+
short: "",
|
|
183
|
+
description: "Provides the value of 'cron_year' in body",
|
|
184
|
+
optional: true,
|
|
185
|
+
args: ["cron_year"],
|
|
186
|
+
defaults: [""]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: "cron_month",
|
|
190
|
+
short: "",
|
|
191
|
+
description: "Provides the value of 'cron_month' in body",
|
|
192
|
+
optional: true,
|
|
193
|
+
args: ["cron_month"],
|
|
194
|
+
defaults: [""]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "cron_week",
|
|
198
|
+
short: "",
|
|
199
|
+
description: "Provides the value of 'cron_week' in body",
|
|
200
|
+
optional: true,
|
|
201
|
+
args: ["cron_week"],
|
|
202
|
+
defaults: [""]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "cron_day",
|
|
206
|
+
short: "",
|
|
207
|
+
description: "Provides the value of 'cron_day' in body",
|
|
208
|
+
optional: true,
|
|
209
|
+
args: ["cron_day"],
|
|
210
|
+
defaults: [""]
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: "cron_day_of_week",
|
|
214
|
+
short: "",
|
|
215
|
+
description: "Provides the value of 'cron_day_of_week' in body",
|
|
216
|
+
optional: true,
|
|
217
|
+
args: ["cron_day_of_week"],
|
|
218
|
+
defaults: [""]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: "cron_hour",
|
|
222
|
+
short: "",
|
|
223
|
+
description: "Provides the value of 'cron_hour' in body",
|
|
224
|
+
optional: true,
|
|
225
|
+
args: ["cron_hour"],
|
|
226
|
+
defaults: [""]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: "cron_minute",
|
|
230
|
+
short: "",
|
|
231
|
+
description: "Provides the value of 'cron_minute' in body",
|
|
232
|
+
optional: true,
|
|
233
|
+
args: ["cron_minute"],
|
|
234
|
+
defaults: [""]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: "description",
|
|
238
|
+
short: "",
|
|
239
|
+
description: "Provides the value of 'description' in body",
|
|
240
|
+
optional: true,
|
|
241
|
+
args: ["description"],
|
|
242
|
+
defaults: [""]
|
|
243
|
+
}
|
|
244
|
+
]);
|
|
245
|
+
}
|
|
246
|
+
exec() {
|
|
247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
248
|
+
let token = this.app.storage.getNSAToken();
|
|
249
|
+
if (token == null)
|
|
250
|
+
throw new Error("Token is not available. Please login first using:\nns-scheduler account config \nor \nns-scheduler account login.");
|
|
251
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
252
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
253
|
+
manager.setValue(token, false);
|
|
254
|
+
let url = this.app.storage.getItem("ns-scheduler-server-url");
|
|
255
|
+
let server = new NamirasoftSchedulerServer_1.NamirasoftSchedulerServer(url, manager, e => this.app.logger.error(e.message));
|
|
256
|
+
let ans = yield server.scheduler.Update(this.arg_values[0], {
|
|
257
|
+
name: this.option_values.name,
|
|
258
|
+
start_date: this.option_values.start_date,
|
|
259
|
+
start_time: this.option_values.start_time,
|
|
260
|
+
end_date: this.option_values.end_date,
|
|
261
|
+
end_time: this.option_values.end_time,
|
|
262
|
+
max_repeat_count: this.option_values.max_repeat_count,
|
|
263
|
+
frequency_type: this.option_values.frequency_type,
|
|
264
|
+
frequency_day_every: this.option_values.frequency_day_every,
|
|
265
|
+
frequency_week_every: this.option_values.frequency_week_every,
|
|
266
|
+
frequency_week_days: this.option_values.frequency_week_days,
|
|
267
|
+
frequency_month_names: this.option_values.frequency_month_names,
|
|
268
|
+
frequency_month_days: this.option_values.frequency_month_days,
|
|
269
|
+
frequency_month_on_week: this.option_values.frequency_month_on_week,
|
|
270
|
+
frequency_month_on_days: this.option_values.frequency_month_on_days,
|
|
271
|
+
repeat_every_value: this.option_values.repeat_every_value,
|
|
272
|
+
repeat_every_unit: this.option_values.repeat_every_unit,
|
|
273
|
+
repeat_until_value: this.option_values.repeat_until_value,
|
|
274
|
+
repeat_until_unit: this.option_values.repeat_until_unit,
|
|
275
|
+
random_delay_value: this.option_values.random_delay_value,
|
|
276
|
+
random_delay_unit: this.option_values.random_delay_unit,
|
|
277
|
+
cron_year: this.option_values.cron_year,
|
|
278
|
+
cron_month: this.option_values.cron_month,
|
|
279
|
+
cron_week: this.option_values.cron_week,
|
|
280
|
+
cron_day: this.option_values.cron_day,
|
|
281
|
+
cron_day_of_week: this.option_values.cron_day_of_week,
|
|
282
|
+
cron_hour: this.option_values.cron_hour,
|
|
283
|
+
cron_minute: this.option_values.cron_minute,
|
|
284
|
+
description: this.option_values.description
|
|
285
|
+
});
|
|
286
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
exports.SchedulerUpdateCommand = SchedulerUpdateCommand;
|
|
291
|
+
;
|
|
292
|
+
//# sourceMappingURL=SchedulerUpdateCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchedulerUpdateCommand.js","sourceRoot":"","sources":["../../src/command/SchedulerUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,4EAAyE;AACzE,2DAAkD;AAElD,MAAa,sBAAuB,SAAQ,sCAAgB;IAExD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,sCAAsC;gBACnD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,MAAM,CAAC;gBACd,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,4CAA4C;gBACzD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,YAAY,CAAC;gBACpB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,4CAA4C;gBACzD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,YAAY,CAAC;gBACpB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,UAAU,CAAC;gBAClB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,UAAU,CAAC;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gBACzD,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,iBAAiB;gBACvD,kBAAkB,EAAE,IAAI,CAAC,aAAa,CAAC,kBAAkB;gBACzD,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,iBAAiB;gBACvD,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;gBACvC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;gBACvC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;gBACrC,gBAAgB,EAAE,IAAI,CAAC,aAAa,CAAC,gBAAgB;gBACrD,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;gBACvC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAjRD,wDAiRC;AAAA,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValueCommand = void 0;
|
|
4
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
5
|
+
const ValueListCommand_1 = require("./ValueListCommand");
|
|
6
|
+
class ValueCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
7
|
+
constructor(argv) {
|
|
8
|
+
super(argv, {
|
|
9
|
+
"list": ValueListCommand_1.ValueListCommand,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ValueCommand = ValueCommand;
|
|
14
|
+
;
|
|
15
|
+
//# sourceMappingURL=ValueCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValueCommand.js","sourceRoot":"","sources":["../../src/command/ValueCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,yDAAsD;AAEtD,MAAa,YAAa,SAAQ,0CAAoB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,mCAAgB;SAC3B,CAAC,CAAC;IACP,CAAC;CACJ;AARD,oCAQC;AAAA,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ValueListCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftSchedulerServer_1 = require("../NamirasoftSchedulerServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class ValueListCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["table", "column", "search", "field_id", "limit"], []);
|
|
20
|
+
}
|
|
21
|
+
exec() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let token = this.app.storage.getNSAToken();
|
|
24
|
+
if (token == null)
|
|
25
|
+
throw new Error("Token is not available. Please login first using:\nns-scheduler account config \nor \nns-scheduler account login.");
|
|
26
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
+
manager.setValue(token, false);
|
|
29
|
+
let url = this.app.storage.getItem("ns-scheduler-server-url");
|
|
30
|
+
let server = new NamirasoftSchedulerServer_1.NamirasoftSchedulerServer(url, manager, e => this.app.logger.error(e.message));
|
|
31
|
+
let ans = yield server.value.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3], this.arg_values[4]);
|
|
32
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ValueListCommand = ValueListCommand;
|
|
37
|
+
;
|
|
38
|
+
//# sourceMappingURL=ValueListCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValueListCommand.js","sourceRoot":"","sources":["../../src/command/ValueListCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,4EAAyE;AACzE,2DAAkD;AAElD,MAAa,gBAAiB,SAAQ,sCAAgB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,mHAAmH,CAAC,CAAC;YACzI,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;YAC9D,IAAI,MAAM,GAAG,IAAI,qDAAyB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAChG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YACtI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,4CAmBC;AAAA,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
5
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
6
|
+
const namirasoft_node_cli_2 = require("namirasoft-node-cli");
|
|
7
|
+
const HealthzCommand_1 = require("./HealthzCommand");
|
|
8
|
+
const MetricsCommand_1 = require("./MetricsCommand");
|
|
9
|
+
const SchedulerCommand_1 = require("./SchedulerCommand");
|
|
10
|
+
const ValueCommand_1 = require("./ValueCommand");
|
|
11
|
+
let app = new namirasoft_node_cli_1.Application("ns-scheduler", new namirasoft_node_cli_1.BaseStorage(), {
|
|
12
|
+
"healthz": HealthzCommand_1.HealthzCommand,
|
|
13
|
+
"metrics": MetricsCommand_1.MetricsCommand,
|
|
14
|
+
"value": ValueCommand_1.ValueCommand,
|
|
15
|
+
"scheduler": SchedulerCommand_1.SchedulerCommand,
|
|
16
|
+
"account": namirasoft_account_1.AccountCommand,
|
|
17
|
+
"config": (argv) => new namirasoft_node_cli_2.ConfigCommand(argv, ["ns-scheduler-server-url"])
|
|
18
|
+
});
|
|
19
|
+
app.run();
|
|
20
|
+
//# sourceMappingURL=cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/command/cli.ts"],"names":[],"mappings":";;;AAqBA,2DAAoD;AACpD,6DAA+D;AAC/D,6DAAoD;AACpD,qDAAkD;AAClD,qDAAkD;AAClD,yDAAsD;AACtD,iDAA8C;AAE9C,IAAI,GAAG,GAAG,IAAI,iCAAW,CAAC,cAAc,EAAE,IAAI,iCAAW,EAAE,EACvD;IACI,SAAS,EAAE,+BAAc;IACzB,SAAS,EAAE,+BAAc;IACzB,OAAO,EAAE,2BAAY;IACrB,WAAW,EAAE,mCAAgB;IAC7B,SAAS,EAAE,mCAAc;IACzB,QAAQ,EAAE,CAAC,IAAc,EAAE,EAAE,CAAC,IAAI,mCAAa,CAAC,IAAI,EAAE,CAAC,yBAAyB,CAAC,CAAC;CACrF,CAAC,CAAC;AACP,GAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare enum SchedulerFrequencyMonthDays {
|
|
2
|
+
Day_1 = "Day_1",
|
|
3
|
+
Day_2 = "Day_2",
|
|
4
|
+
Day_3 = "Day_3",
|
|
5
|
+
Day_4 = "Day_4",
|
|
6
|
+
Day_5 = "Day_5",
|
|
7
|
+
Day_6 = "Day_6",
|
|
8
|
+
Day_7 = "Day_7",
|
|
9
|
+
Day_8 = "Day_8",
|
|
10
|
+
Day_9 = "Day_9",
|
|
11
|
+
Day_10 = "Day_10",
|
|
12
|
+
Day_11 = "Day_11",
|
|
13
|
+
Day_12 = "Day_12",
|
|
14
|
+
Day_13 = "Day_13",
|
|
15
|
+
Day_14 = "Day_14",
|
|
16
|
+
Day_15 = "Day_15",
|
|
17
|
+
Day_16 = "Day_16",
|
|
18
|
+
Day_17 = "Day_17",
|
|
19
|
+
Day_18 = "Day_18",
|
|
20
|
+
Day_19 = "Day_19",
|
|
21
|
+
Day_20 = "Day_20",
|
|
22
|
+
Day_21 = "Day_21",
|
|
23
|
+
Day_22 = "Day_22",
|
|
24
|
+
Day_23 = "Day_23",
|
|
25
|
+
Day_24 = "Day_24",
|
|
26
|
+
Day_25 = "Day_25",
|
|
27
|
+
Day_26 = "Day_26",
|
|
28
|
+
Day_27 = "Day_27",
|
|
29
|
+
Day_28 = "Day_28",
|
|
30
|
+
Day_29 = "Day_29",
|
|
31
|
+
Day_30 = "Day_30",
|
|
32
|
+
Day_31 = "Day_31",
|
|
33
|
+
Last = "Last"
|
|
34
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulerFrequencyMonthDays = void 0;
|
|
4
|
+
var SchedulerFrequencyMonthDays;
|
|
5
|
+
(function (SchedulerFrequencyMonthDays) {
|
|
6
|
+
SchedulerFrequencyMonthDays["Day_1"] = "Day_1";
|
|
7
|
+
SchedulerFrequencyMonthDays["Day_2"] = "Day_2";
|
|
8
|
+
SchedulerFrequencyMonthDays["Day_3"] = "Day_3";
|
|
9
|
+
SchedulerFrequencyMonthDays["Day_4"] = "Day_4";
|
|
10
|
+
SchedulerFrequencyMonthDays["Day_5"] = "Day_5";
|
|
11
|
+
SchedulerFrequencyMonthDays["Day_6"] = "Day_6";
|
|
12
|
+
SchedulerFrequencyMonthDays["Day_7"] = "Day_7";
|
|
13
|
+
SchedulerFrequencyMonthDays["Day_8"] = "Day_8";
|
|
14
|
+
SchedulerFrequencyMonthDays["Day_9"] = "Day_9";
|
|
15
|
+
SchedulerFrequencyMonthDays["Day_10"] = "Day_10";
|
|
16
|
+
SchedulerFrequencyMonthDays["Day_11"] = "Day_11";
|
|
17
|
+
SchedulerFrequencyMonthDays["Day_12"] = "Day_12";
|
|
18
|
+
SchedulerFrequencyMonthDays["Day_13"] = "Day_13";
|
|
19
|
+
SchedulerFrequencyMonthDays["Day_14"] = "Day_14";
|
|
20
|
+
SchedulerFrequencyMonthDays["Day_15"] = "Day_15";
|
|
21
|
+
SchedulerFrequencyMonthDays["Day_16"] = "Day_16";
|
|
22
|
+
SchedulerFrequencyMonthDays["Day_17"] = "Day_17";
|
|
23
|
+
SchedulerFrequencyMonthDays["Day_18"] = "Day_18";
|
|
24
|
+
SchedulerFrequencyMonthDays["Day_19"] = "Day_19";
|
|
25
|
+
SchedulerFrequencyMonthDays["Day_20"] = "Day_20";
|
|
26
|
+
SchedulerFrequencyMonthDays["Day_21"] = "Day_21";
|
|
27
|
+
SchedulerFrequencyMonthDays["Day_22"] = "Day_22";
|
|
28
|
+
SchedulerFrequencyMonthDays["Day_23"] = "Day_23";
|
|
29
|
+
SchedulerFrequencyMonthDays["Day_24"] = "Day_24";
|
|
30
|
+
SchedulerFrequencyMonthDays["Day_25"] = "Day_25";
|
|
31
|
+
SchedulerFrequencyMonthDays["Day_26"] = "Day_26";
|
|
32
|
+
SchedulerFrequencyMonthDays["Day_27"] = "Day_27";
|
|
33
|
+
SchedulerFrequencyMonthDays["Day_28"] = "Day_28";
|
|
34
|
+
SchedulerFrequencyMonthDays["Day_29"] = "Day_29";
|
|
35
|
+
SchedulerFrequencyMonthDays["Day_30"] = "Day_30";
|
|
36
|
+
SchedulerFrequencyMonthDays["Day_31"] = "Day_31";
|
|
37
|
+
SchedulerFrequencyMonthDays["Last"] = "Last";
|
|
38
|
+
})(SchedulerFrequencyMonthDays || (exports.SchedulerFrequencyMonthDays = SchedulerFrequencyMonthDays = {}));
|
|
39
|
+
//# sourceMappingURL=SchedulerFrequencyMonthDays.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchedulerFrequencyMonthDays.js","sourceRoot":"","sources":["../../src/enum/SchedulerFrequencyMonthDays.ts"],"names":[],"mappings":";;;AAoBA,IAAY,2BAkCX;AAlCD,WAAY,2BAA2B;IAEnC,8CAAe,CAAA;IACf,8CAAe,CAAA;IACf,8CAAe,CAAA;IACf,8CAAe,CAAA;IACf,8CAAe,CAAA;IACf,8CAAe,CAAA;IACf,8CAAe,CAAA;IACf,8CAAe,CAAA;IACf,8CAAe,CAAA;IACf,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,4CAAa,CAAA;AACjB,CAAC,EAlCW,2BAA2B,2CAA3B,2BAA2B,QAkCtC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulerFrequencyMonthNames = void 0;
|
|
4
|
+
var SchedulerFrequencyMonthNames;
|
|
5
|
+
(function (SchedulerFrequencyMonthNames) {
|
|
6
|
+
SchedulerFrequencyMonthNames["Jan"] = "Jan";
|
|
7
|
+
SchedulerFrequencyMonthNames["Feb"] = "Feb";
|
|
8
|
+
SchedulerFrequencyMonthNames["Mar"] = "Mar";
|
|
9
|
+
SchedulerFrequencyMonthNames["Apr"] = "Apr";
|
|
10
|
+
SchedulerFrequencyMonthNames["May"] = "May";
|
|
11
|
+
SchedulerFrequencyMonthNames["Jul"] = "Jul";
|
|
12
|
+
SchedulerFrequencyMonthNames["Aug"] = "Aug";
|
|
13
|
+
SchedulerFrequencyMonthNames["Sep"] = "Sep";
|
|
14
|
+
SchedulerFrequencyMonthNames["Oct"] = "Oct";
|
|
15
|
+
SchedulerFrequencyMonthNames["Nov"] = "Nov";
|
|
16
|
+
SchedulerFrequencyMonthNames["Dec"] = "Dec";
|
|
17
|
+
})(SchedulerFrequencyMonthNames || (exports.SchedulerFrequencyMonthNames = SchedulerFrequencyMonthNames = {}));
|
|
18
|
+
//# sourceMappingURL=SchedulerFrequencyMonthNames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchedulerFrequencyMonthNames.js","sourceRoot":"","sources":["../../src/enum/SchedulerFrequencyMonthNames.ts"],"names":[],"mappings":";;;AAoBA,IAAY,4BAaX;AAbD,WAAY,4BAA4B;IAEpC,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,2CAAW,CAAA;AACf,CAAC,EAbW,4BAA4B,4CAA5B,4BAA4B,QAavC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulerFrequencyMonthOnDays = void 0;
|
|
4
|
+
var SchedulerFrequencyMonthOnDays;
|
|
5
|
+
(function (SchedulerFrequencyMonthOnDays) {
|
|
6
|
+
SchedulerFrequencyMonthOnDays["Sun"] = "Sun";
|
|
7
|
+
SchedulerFrequencyMonthOnDays["Mon"] = "Mon";
|
|
8
|
+
SchedulerFrequencyMonthOnDays["Tues"] = "Tues";
|
|
9
|
+
SchedulerFrequencyMonthOnDays["Wed"] = "Wed";
|
|
10
|
+
SchedulerFrequencyMonthOnDays["Thurs"] = "Thurs";
|
|
11
|
+
SchedulerFrequencyMonthOnDays["Fri"] = "Fri";
|
|
12
|
+
SchedulerFrequencyMonthOnDays["Sat"] = "Sat";
|
|
13
|
+
})(SchedulerFrequencyMonthOnDays || (exports.SchedulerFrequencyMonthOnDays = SchedulerFrequencyMonthOnDays = {}));
|
|
14
|
+
//# sourceMappingURL=SchedulerFrequencyMonthOnDays.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchedulerFrequencyMonthOnDays.js","sourceRoot":"","sources":["../../src/enum/SchedulerFrequencyMonthOnDays.ts"],"names":[],"mappings":";;;AAoBA,IAAY,6BASX;AATD,WAAY,6BAA6B;IAErC,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,8CAAa,CAAA;IACb,4CAAW,CAAA;IACX,gDAAe,CAAA;IACf,4CAAW,CAAA;IACX,4CAAW,CAAA;AACf,CAAC,EATW,6BAA6B,6CAA7B,6BAA6B,QASxC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulerFrequencyMonthOnWeek = void 0;
|
|
4
|
+
var SchedulerFrequencyMonthOnWeek;
|
|
5
|
+
(function (SchedulerFrequencyMonthOnWeek) {
|
|
6
|
+
SchedulerFrequencyMonthOnWeek["First"] = "First";
|
|
7
|
+
SchedulerFrequencyMonthOnWeek["Second"] = "Second";
|
|
8
|
+
SchedulerFrequencyMonthOnWeek["Third"] = "Third";
|
|
9
|
+
SchedulerFrequencyMonthOnWeek["Fourth"] = "Fourth";
|
|
10
|
+
SchedulerFrequencyMonthOnWeek["Last"] = "Last";
|
|
11
|
+
})(SchedulerFrequencyMonthOnWeek || (exports.SchedulerFrequencyMonthOnWeek = SchedulerFrequencyMonthOnWeek = {}));
|
|
12
|
+
//# sourceMappingURL=SchedulerFrequencyMonthOnWeek.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchedulerFrequencyMonthOnWeek.js","sourceRoot":"","sources":["../../src/enum/SchedulerFrequencyMonthOnWeek.ts"],"names":[],"mappings":";;;AAoBA,IAAY,6BAOX;AAPD,WAAY,6BAA6B;IAErC,gDAAe,CAAA;IACf,kDAAiB,CAAA;IACjB,gDAAe,CAAA;IACf,kDAAiB,CAAA;IACjB,8CAAa,CAAA;AACjB,CAAC,EAPW,6BAA6B,6CAA7B,6BAA6B,QAOxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulerFrequencyType = void 0;
|
|
4
|
+
var SchedulerFrequencyType;
|
|
5
|
+
(function (SchedulerFrequencyType) {
|
|
6
|
+
SchedulerFrequencyType["Daily"] = "Daily";
|
|
7
|
+
SchedulerFrequencyType["Weekly"] = "Weekly";
|
|
8
|
+
SchedulerFrequencyType["Monthly"] = "Monthly";
|
|
9
|
+
})(SchedulerFrequencyType || (exports.SchedulerFrequencyType = SchedulerFrequencyType = {}));
|
|
10
|
+
//# sourceMappingURL=SchedulerFrequencyType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchedulerFrequencyType.js","sourceRoot":"","sources":["../../src/enum/SchedulerFrequencyType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAE9B,yCAAe,CAAA;IACf,2CAAiB,CAAA;IACjB,6CAAmB,CAAA;AACvB,CAAC,EALW,sBAAsB,sCAAtB,sBAAsB,QAKjC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulerFrequencyWeekDays = void 0;
|
|
4
|
+
var SchedulerFrequencyWeekDays;
|
|
5
|
+
(function (SchedulerFrequencyWeekDays) {
|
|
6
|
+
SchedulerFrequencyWeekDays["Sun"] = "Sun";
|
|
7
|
+
SchedulerFrequencyWeekDays["Mon"] = "Mon";
|
|
8
|
+
SchedulerFrequencyWeekDays["Tues"] = "Tues";
|
|
9
|
+
SchedulerFrequencyWeekDays["Wed"] = "Wed";
|
|
10
|
+
SchedulerFrequencyWeekDays["Thurs"] = "Thurs";
|
|
11
|
+
SchedulerFrequencyWeekDays["Fri"] = "Fri";
|
|
12
|
+
SchedulerFrequencyWeekDays["Sat"] = "Sat";
|
|
13
|
+
})(SchedulerFrequencyWeekDays || (exports.SchedulerFrequencyWeekDays = SchedulerFrequencyWeekDays = {}));
|
|
14
|
+
//# sourceMappingURL=SchedulerFrequencyWeekDays.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchedulerFrequencyWeekDays.js","sourceRoot":"","sources":["../../src/enum/SchedulerFrequencyWeekDays.ts"],"names":[],"mappings":";;;AAoBA,IAAY,0BASX;AATD,WAAY,0BAA0B;IAElC,yCAAW,CAAA;IACX,yCAAW,CAAA;IACX,2CAAa,CAAA;IACb,yCAAW,CAAA;IACX,6CAAe,CAAA;IACf,yCAAW,CAAA;IACX,yCAAW,CAAA;AACf,CAAC,EATW,0BAA0B,0CAA1B,0BAA0B,QASrC"}
|