@mjtech-ems/schema 1.3.40 → 1.3.41
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/generated/index.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/mergedSchema.d.ts +0 -1
- package/dist/mjtech-ems.d.ts +0 -1
- package/dist/mjtech-eqms.d.ts +0 -1
- package/dist/mjtech-inventory-tracking.d.ts +0 -1
- package/dist/mjtech-ngu.d.ts +0 -1
- package/generated/index.ts +2954 -0
- package/index.ts +6 -0
- package/mergedSchema.ts +18 -0
- package/mjtech-ems.ts +1339 -0
- package/mjtech-eqms.ts +312 -0
- package/mjtech-inventory-tracking.ts +601 -0
- package/mjtech-ngu.ts +342 -0
- package/package.json +10 -6
- package/dist/generated/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/mergedSchema.d.ts.map +0 -1
- package/dist/mjtech-ems.d.ts.map +0 -1
- package/dist/mjtech-eqms.d.ts.map +0 -1
- package/dist/mjtech-inventory-tracking.d.ts.map +0 -1
- package/dist/mjtech-ngu.d.ts.map +0 -1
package/mjtech-ems.ts
ADDED
|
@@ -0,0 +1,1339 @@
|
|
|
1
|
+
import { gql } from "graphql-tag";
|
|
2
|
+
import { type DocumentNode } from "graphql";
|
|
3
|
+
|
|
4
|
+
export const ems_schema: DocumentNode = gql`
|
|
5
|
+
type Query {
|
|
6
|
+
# Auth
|
|
7
|
+
verifyToken: LoginSuccessResponse
|
|
8
|
+
|
|
9
|
+
#mqtt
|
|
10
|
+
triggerMqttConnection: GeneralResponse
|
|
11
|
+
|
|
12
|
+
#last recieved message from mqtt
|
|
13
|
+
fetchLastMessagesFromMqtt(
|
|
14
|
+
queryData: LastMessagesFromMqttInput
|
|
15
|
+
): LastMessagesFromMqtt
|
|
16
|
+
|
|
17
|
+
# User
|
|
18
|
+
fetchUserById(id: ID!): User
|
|
19
|
+
fetchUserList(queryData: UserListInput): [User]
|
|
20
|
+
fetchUsers: [User]
|
|
21
|
+
fetchUserSession(queryData: UserSessionInput): [UserSession]
|
|
22
|
+
|
|
23
|
+
#Department
|
|
24
|
+
fetchDepartments(companyId: ID): [Departments]
|
|
25
|
+
|
|
26
|
+
# Company
|
|
27
|
+
fetchCompanyById(id: ID!): Company
|
|
28
|
+
fetchCompanyList(queryData: CompanyListInput): [Company]
|
|
29
|
+
|
|
30
|
+
# Device
|
|
31
|
+
fetchDeviceById(id: ID!): Device
|
|
32
|
+
fetchDeviceByTopic(topic: String): Device
|
|
33
|
+
fetchDeviceList(queryData: DeviceListInput): [Device]
|
|
34
|
+
|
|
35
|
+
# Report
|
|
36
|
+
fetchDeviceReport(queryData: DeviceReportInput): DeviceReport
|
|
37
|
+
fetchDevicesReport(queryData: DevicesReportInput): DeviceReport
|
|
38
|
+
fetchDeviceAnalytics(queryData: DeviceAnalyticsInput): [DeviceAnalytics]
|
|
39
|
+
fetchDeviceAnalyticsByDateRange(
|
|
40
|
+
queryData: DeviceAnalyticsByDateRangeInput
|
|
41
|
+
): [DeviceAnalytics]
|
|
42
|
+
|
|
43
|
+
# Dashboard Data
|
|
44
|
+
fetchDashboardData(data: DashboardDataFetchInput): DashboardData
|
|
45
|
+
# Power Consumption Data
|
|
46
|
+
fetchPowerConsumptionPageData(
|
|
47
|
+
data: PowerConsumptionPageDataFetchInput
|
|
48
|
+
): PowerConsumptionPageData
|
|
49
|
+
# Live Graph
|
|
50
|
+
fetchLiveGraphPageData(
|
|
51
|
+
data: LiveGraphPageDataFetchInput
|
|
52
|
+
): LiveGraphPageData
|
|
53
|
+
# Timeline chart
|
|
54
|
+
fetchTimelineChartPageData(
|
|
55
|
+
data: TimelineChartPageDataFetchInput
|
|
56
|
+
): TimelineChartPageData
|
|
57
|
+
# Heat Map
|
|
58
|
+
fetchHeatMapPageData(data: HeatMapPageDataFetchInput): HeatMapPageData
|
|
59
|
+
# Load Map
|
|
60
|
+
fetchLoadMapPageData(data: LoadMapPageDataFetchInput): LoadMapPageData
|
|
61
|
+
# Location map
|
|
62
|
+
fetchLocationMapPageData(
|
|
63
|
+
data: LocationMapPageDataFetchInput
|
|
64
|
+
): LocationMapPageData
|
|
65
|
+
# Settings Data
|
|
66
|
+
fetchSettingsPageData: SettingsPageData
|
|
67
|
+
# temp DataTable
|
|
68
|
+
fetchTempDataTable: [TempDataTable]
|
|
69
|
+
fetchTempDataTableByDeviceId(id: ID): TempDataTable
|
|
70
|
+
#BasicSettings
|
|
71
|
+
fetchBasicSettings: BasicSettings
|
|
72
|
+
#Device Data
|
|
73
|
+
fetchDeviceHourlyData(
|
|
74
|
+
queryData: DeviceHourlyDataFetchInput
|
|
75
|
+
): DeviceHourlyData
|
|
76
|
+
fetchDeviceDaywiseData(
|
|
77
|
+
queryData: DeviceDaywiseDataFetchInput
|
|
78
|
+
): DeviceDaywiseData
|
|
79
|
+
fetchDeviceMonthwiseData(
|
|
80
|
+
queryData: DeviceMonthwiseDataFetchInput
|
|
81
|
+
): DeviceMonthwiseData
|
|
82
|
+
fetchDeviceYearlyData(
|
|
83
|
+
queryData: DeviceYearlyDataFetchInput
|
|
84
|
+
): DeviceYearlyData
|
|
85
|
+
|
|
86
|
+
# Device Complete Report For Dashboard
|
|
87
|
+
fetchDeviceReportForDashboard(
|
|
88
|
+
queryData: DeviceReportForDashboardFetchInput
|
|
89
|
+
): DeviceReportForDashBoard
|
|
90
|
+
|
|
91
|
+
# power consumption
|
|
92
|
+
fetchPowerConsumption(
|
|
93
|
+
queryData: PowerConsumptionFetchInput
|
|
94
|
+
): [PowerConsumption]
|
|
95
|
+
fetchEndKwHForDevice(
|
|
96
|
+
queryData: EndKwHForDeviceFetchInput
|
|
97
|
+
): [EndKwHForDevice]
|
|
98
|
+
# alert report
|
|
99
|
+
fetchHourlyAlertReport(
|
|
100
|
+
queryData: HourlyAlertReportInput
|
|
101
|
+
): HourlyAlertReport
|
|
102
|
+
#OffTime
|
|
103
|
+
fetchOffTimeByDeviceId(queryData: OffTimeInput): [offTimeReport]
|
|
104
|
+
#DownTime
|
|
105
|
+
fetchDownTimeByDeviceId(queryData: DownTimeFetchInput): [DownTimeReport]
|
|
106
|
+
|
|
107
|
+
#utilization Dashboard(power)
|
|
108
|
+
fetchHourlyUtilizationDashboard(
|
|
109
|
+
queryData: HourlyUtilizationDashboardInput
|
|
110
|
+
): HourlyUtilizationDashboard
|
|
111
|
+
fetchMonthlyUtilizationDashboard(
|
|
112
|
+
queryData: MonthlyUtilizationDashboardInput
|
|
113
|
+
): MonthlyUtilizationDashboard
|
|
114
|
+
fetchHourlyUtilizationDataForGraph(
|
|
115
|
+
queryData: HourlyUtilizationDataForGraphInput
|
|
116
|
+
): HourlyUtilizationDataForGraph
|
|
117
|
+
fetchMonthlyUtilizationDataForGraph(
|
|
118
|
+
queryData: MonthlyUtilizationDataForGraphInput
|
|
119
|
+
): MonthlyUtilizationDataForGraph
|
|
120
|
+
fetchLiveCurrentForPeriod(
|
|
121
|
+
queryData: LiveCurrentForPeriodFetchInput
|
|
122
|
+
): [LiveCurrentForPeriod]
|
|
123
|
+
fetchDeviceActiveVsDownTime(
|
|
124
|
+
queryData: DeviceActiveVsDownTimeFetchInput
|
|
125
|
+
): [DeviceActiveVsDownTime]
|
|
126
|
+
|
|
127
|
+
# alert Email
|
|
128
|
+
fetchAlertEmail: [AlertEmail]
|
|
129
|
+
|
|
130
|
+
# alerts
|
|
131
|
+
fetchAlerts: [Alerts]
|
|
132
|
+
|
|
133
|
+
#Monthly Report
|
|
134
|
+
fetchMonthlyReport(queryData: FetchMonthlyReportInput): [TempDataTable]
|
|
135
|
+
fetchMonthlyReportByDeviceId(id: ID): TempDataTable
|
|
136
|
+
|
|
137
|
+
#DB
|
|
138
|
+
fetchDB(queryData: DBInput): DBType
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
type Mutation {
|
|
142
|
+
# Auth
|
|
143
|
+
verifyLogin(data: LoginInput): LoginUserResponse
|
|
144
|
+
verifyLogout: GeneralResponse
|
|
145
|
+
deleteUserSession(data: SessionInput): GeneralResponse
|
|
146
|
+
changePassword(data: PasswordInput): GeneralResponse
|
|
147
|
+
forgotPassword(data: forgotInput): GeneralResponse
|
|
148
|
+
|
|
149
|
+
#Department
|
|
150
|
+
# addNewDepartment(data: DepartmentsInput): DepartmentResponse
|
|
151
|
+
# editDepartment(id: ID!, data: DepartmentsInput): GeneralResponse
|
|
152
|
+
# deleteDepartment(id: ID!): GeneralResponse
|
|
153
|
+
|
|
154
|
+
# User
|
|
155
|
+
createUser(data: UserInput): CreateUserResponse
|
|
156
|
+
updateUser(data: UserInput, id: ID!): GeneralResponse
|
|
157
|
+
updateManyUsers(data: [UpdateManyUserInput]): GeneralResponse
|
|
158
|
+
updateUserStatus(data: StatusInput, id: ID!): GeneralResponse
|
|
159
|
+
deleteUser(id: ID!): GeneralResponse
|
|
160
|
+
|
|
161
|
+
# Company
|
|
162
|
+
createCompany(data: CompanyInput): CreateCompanyResponse
|
|
163
|
+
updateCompany(data: CompanyInput, id: ID!): GeneralResponse
|
|
164
|
+
updateCompanyStatus(data: StatusInput, id: ID!): GeneralResponse
|
|
165
|
+
|
|
166
|
+
# Device
|
|
167
|
+
createDevice(data: DeviceInput): GeneralResponse
|
|
168
|
+
updateDevice(data: DeviceInput, id: ID!): GeneralResponse
|
|
169
|
+
updateManyDevices(data: [UpdateManyDevicesInput]): GeneralResponse
|
|
170
|
+
updateDeviceStatus(data: StatusInput, id: ID!): GeneralResponse
|
|
171
|
+
updateDeviceAlertStatus(
|
|
172
|
+
data: UpdateDeviceAlertStatusInput
|
|
173
|
+
): GeneralResponse
|
|
174
|
+
deleteDevice(id: ID!): GeneralResponse
|
|
175
|
+
|
|
176
|
+
# Report
|
|
177
|
+
generateReport(data: ReportListInput): [ReportResponse]
|
|
178
|
+
|
|
179
|
+
# Mailer
|
|
180
|
+
sendEmail(data: SendEmailInput): GeneralResponse
|
|
181
|
+
|
|
182
|
+
#Basic Settings
|
|
183
|
+
updateBasicSettings(id: ID!, data: BasicSettingsInput): GeneralResponse
|
|
184
|
+
|
|
185
|
+
#Alert Email
|
|
186
|
+
createAlertEmail(data: AlertEmailInput): GeneralResponse
|
|
187
|
+
updateAlertEmail(data: AlertEmailInput): GeneralResponse
|
|
188
|
+
updateManyAlertEmails(data: [AlertEmailInput]): GeneralResponse
|
|
189
|
+
|
|
190
|
+
# Alerts
|
|
191
|
+
createAlert(data: AlertsInput): GeneralResponse
|
|
192
|
+
updateAlert(id: ID!, data: AlertsInput): GeneralResponse
|
|
193
|
+
# Monthly Report
|
|
194
|
+
updateMonthlyReport(data: MonthlyReportInput): GeneralResponse
|
|
195
|
+
|
|
196
|
+
#db
|
|
197
|
+
deleteDB(data: DBInput): GeneralResponse
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
# input DepartmentsInput {
|
|
201
|
+
# department: String
|
|
202
|
+
# }
|
|
203
|
+
# Input
|
|
204
|
+
input CostConfigInput {
|
|
205
|
+
range: String
|
|
206
|
+
cost: String
|
|
207
|
+
}
|
|
208
|
+
input BasicSettingsInput {
|
|
209
|
+
companyId: ID
|
|
210
|
+
readingStartDate: Date
|
|
211
|
+
readingEndDate: Date
|
|
212
|
+
duration: String
|
|
213
|
+
costConfig: [CostConfigInput]
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
input RegisterConfigInput {
|
|
217
|
+
parameterName: String
|
|
218
|
+
dbName: String
|
|
219
|
+
suffix: String
|
|
220
|
+
registers: [String]
|
|
221
|
+
regFormat: String
|
|
222
|
+
}
|
|
223
|
+
input StatusInput {
|
|
224
|
+
status: String
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
input UserInput {
|
|
228
|
+
companyId: ID
|
|
229
|
+
firstName: String
|
|
230
|
+
lastName: String
|
|
231
|
+
email: EmailAddress
|
|
232
|
+
phone: PhoneNumber
|
|
233
|
+
password: String
|
|
234
|
+
dob: Date
|
|
235
|
+
userType: String
|
|
236
|
+
}
|
|
237
|
+
input UpdateManyUserInput {
|
|
238
|
+
id: ID
|
|
239
|
+
data: UserInput
|
|
240
|
+
}
|
|
241
|
+
input ActiveAppsInput {
|
|
242
|
+
appName: String
|
|
243
|
+
licensed: Int
|
|
244
|
+
start: Date
|
|
245
|
+
end: Date
|
|
246
|
+
licenseType: String
|
|
247
|
+
allowedPages: [String]
|
|
248
|
+
isEmailEnabled: Boolean
|
|
249
|
+
}
|
|
250
|
+
input CompanyInput {
|
|
251
|
+
name: String
|
|
252
|
+
alias: String
|
|
253
|
+
licenseType: String
|
|
254
|
+
config: String
|
|
255
|
+
|
|
256
|
+
activeApps: [ActiveAppsInput]
|
|
257
|
+
licensedUsers: Int
|
|
258
|
+
mqttConfigClientId: String
|
|
259
|
+
mqttConfigUserName: String
|
|
260
|
+
mqttConfigPassword: String
|
|
261
|
+
feMqttPort: String
|
|
262
|
+
feMqttHost: String
|
|
263
|
+
feMqttProtocol: String
|
|
264
|
+
feMqttPath: String
|
|
265
|
+
beMqttPort: String
|
|
266
|
+
beMqttHost: String
|
|
267
|
+
beMqttProtocol: String
|
|
268
|
+
beMqttPath: String
|
|
269
|
+
dateTimeConfigAdd: Boolean
|
|
270
|
+
dateTimeConfigSub: Boolean
|
|
271
|
+
dateTimeConfigTime: String
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
input DeviceInput {
|
|
275
|
+
name: String
|
|
276
|
+
image: String
|
|
277
|
+
type: String
|
|
278
|
+
deviceType: String
|
|
279
|
+
companyId: ID
|
|
280
|
+
topic: String
|
|
281
|
+
SLID: String
|
|
282
|
+
serialNo: Int
|
|
283
|
+
productivity: String
|
|
284
|
+
prevProductivity: String
|
|
285
|
+
expectedProductivity: String
|
|
286
|
+
offTimeTracker: String
|
|
287
|
+
runHrs: String
|
|
288
|
+
prevRunHrs: String
|
|
289
|
+
model: String
|
|
290
|
+
slaves: [String]
|
|
291
|
+
status: String
|
|
292
|
+
master: String
|
|
293
|
+
prodCalcParameter: String
|
|
294
|
+
runHrsCalcParameter: String
|
|
295
|
+
registerConfig: [RegisterConfigInput]
|
|
296
|
+
location: String
|
|
297
|
+
threshold: JSON
|
|
298
|
+
}
|
|
299
|
+
input UpdateManyDevicesInput {
|
|
300
|
+
data: DeviceInput
|
|
301
|
+
id: ID!
|
|
302
|
+
}
|
|
303
|
+
input DeviceInfoInput {
|
|
304
|
+
name: String
|
|
305
|
+
image: String
|
|
306
|
+
type: String
|
|
307
|
+
deviceType: String
|
|
308
|
+
topic: String
|
|
309
|
+
status: String
|
|
310
|
+
SLID: String
|
|
311
|
+
serialNo: Int
|
|
312
|
+
company: CompanyInput
|
|
313
|
+
model: String
|
|
314
|
+
slaves: [String]
|
|
315
|
+
master: String
|
|
316
|
+
registerConfig: [RegisterConfigInput]
|
|
317
|
+
prodCalcParameter: String
|
|
318
|
+
runHrsCalcParameter: String
|
|
319
|
+
location: String
|
|
320
|
+
threshold: JSON
|
|
321
|
+
productivity: String
|
|
322
|
+
prevProductivity: String
|
|
323
|
+
expectedProductivity: String
|
|
324
|
+
offTimeTracker: String
|
|
325
|
+
runHrs: String
|
|
326
|
+
prevRunHrs: String
|
|
327
|
+
}
|
|
328
|
+
# input ThresholdInfoInput {
|
|
329
|
+
# peakVL: String
|
|
330
|
+
# lowVL: String
|
|
331
|
+
# peakA: String
|
|
332
|
+
# lowA: String
|
|
333
|
+
# peakKW: String
|
|
334
|
+
# lowKW: String
|
|
335
|
+
# kwRated: String
|
|
336
|
+
# }
|
|
337
|
+
input TimeValueInput {
|
|
338
|
+
time: String
|
|
339
|
+
value: String
|
|
340
|
+
status: Boolean
|
|
341
|
+
}
|
|
342
|
+
input UpdateDeviceAlertStatusInput {
|
|
343
|
+
reportId: ID!
|
|
344
|
+
hourId: Int
|
|
345
|
+
value: TimeValueInput
|
|
346
|
+
type: String
|
|
347
|
+
parameter: String
|
|
348
|
+
}
|
|
349
|
+
input DeviceHourlyReportInput {
|
|
350
|
+
id: ID
|
|
351
|
+
deviceInfo: DeviceInfoInput
|
|
352
|
+
threshold: JSON
|
|
353
|
+
}
|
|
354
|
+
input OffTimeInput {
|
|
355
|
+
deviceIds: [ID]
|
|
356
|
+
startDate: String
|
|
357
|
+
endDate: String
|
|
358
|
+
}
|
|
359
|
+
input DownTimeFetchInput {
|
|
360
|
+
deviceIds: [ID]
|
|
361
|
+
startDate: String
|
|
362
|
+
endDate: String
|
|
363
|
+
}
|
|
364
|
+
input HourlyUtilizationDashboardInput {
|
|
365
|
+
deviceIds: [ID]
|
|
366
|
+
startDate: String
|
|
367
|
+
endDate: String
|
|
368
|
+
}
|
|
369
|
+
input MonthlyUtilizationDashboardInput {
|
|
370
|
+
deviceIds: [ID]
|
|
371
|
+
startDate: String
|
|
372
|
+
endDate: String
|
|
373
|
+
}
|
|
374
|
+
input HourlyUtilizationDataForGraphInput {
|
|
375
|
+
deviceIds: [ID]
|
|
376
|
+
startDate: String
|
|
377
|
+
endDate: String
|
|
378
|
+
}
|
|
379
|
+
input MonthlyUtilizationDataForGraphInput {
|
|
380
|
+
deviceIds: [ID]
|
|
381
|
+
startDate: String
|
|
382
|
+
endDate: String
|
|
383
|
+
}
|
|
384
|
+
input LiveCurrentForPeriodFetchInput {
|
|
385
|
+
deviceIds: [ID]
|
|
386
|
+
startDate: String
|
|
387
|
+
endDate: String
|
|
388
|
+
}
|
|
389
|
+
input DeviceActiveVsDownTimeFetchInput {
|
|
390
|
+
deviceIds: [ID]
|
|
391
|
+
startDate: String
|
|
392
|
+
endDate: String
|
|
393
|
+
}
|
|
394
|
+
input SessionInput {
|
|
395
|
+
sessionId: [ID]
|
|
396
|
+
}
|
|
397
|
+
input UserSessionInput {
|
|
398
|
+
startDate: String
|
|
399
|
+
endDate: String
|
|
400
|
+
}
|
|
401
|
+
# input CompanyInfoInput {
|
|
402
|
+
# name: String
|
|
403
|
+
# licenseType: String
|
|
404
|
+
# start: Date
|
|
405
|
+
# end: Date
|
|
406
|
+
# config: String
|
|
407
|
+
# status: String
|
|
408
|
+
# }
|
|
409
|
+
# input CompanyHourlyDataInput {
|
|
410
|
+
# id: ID
|
|
411
|
+
# companyInfo: CompanyInfoInput
|
|
412
|
+
# }
|
|
413
|
+
input LoginInput {
|
|
414
|
+
email: String
|
|
415
|
+
password: String
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
input PasswordInput {
|
|
419
|
+
oldPassword: String
|
|
420
|
+
password: String
|
|
421
|
+
confirmPassword: String
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
input forgotInput {
|
|
425
|
+
email: EmailAddress
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
input ReportInput {
|
|
429
|
+
deviceId: ID
|
|
430
|
+
reportDate: Date
|
|
431
|
+
value: JSON
|
|
432
|
+
}
|
|
433
|
+
input AttachmentsInput {
|
|
434
|
+
filename: String
|
|
435
|
+
content: Upload
|
|
436
|
+
contentType: String
|
|
437
|
+
}
|
|
438
|
+
input SendEmailInput {
|
|
439
|
+
subject: String!
|
|
440
|
+
toEmail: String!
|
|
441
|
+
template: String!
|
|
442
|
+
value: JSON
|
|
443
|
+
attachments: [AttachmentsInput]
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
input ReportListInput {
|
|
447
|
+
deviceId: ID
|
|
448
|
+
fromDate: Date
|
|
449
|
+
toDate: Date
|
|
450
|
+
}
|
|
451
|
+
input UserListInput {
|
|
452
|
+
status: String
|
|
453
|
+
type: String
|
|
454
|
+
companyId: String
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
input CompanyListInput {
|
|
458
|
+
status: String
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
input DeviceListInput {
|
|
462
|
+
status: String
|
|
463
|
+
companyId: ID
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
input DeviceReportInput {
|
|
467
|
+
deviceId: ID
|
|
468
|
+
fromDate: String
|
|
469
|
+
toDate: String
|
|
470
|
+
filter: String
|
|
471
|
+
}
|
|
472
|
+
input DevicesReportInput {
|
|
473
|
+
deviceIds: [ID]
|
|
474
|
+
fromDate: String
|
|
475
|
+
toDate: String
|
|
476
|
+
filter: String
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
input DeviceAnalyticsInput {
|
|
480
|
+
filter: String
|
|
481
|
+
}
|
|
482
|
+
input DeviceAnalyticsByDateRangeInput {
|
|
483
|
+
filter: String
|
|
484
|
+
startDate: String
|
|
485
|
+
endDate: String
|
|
486
|
+
}
|
|
487
|
+
input PowerConsumptionFetchInput {
|
|
488
|
+
startDate: String
|
|
489
|
+
endDate: String
|
|
490
|
+
deviceIds: [ID]
|
|
491
|
+
filter: String
|
|
492
|
+
}
|
|
493
|
+
input EndKwHForDeviceFetchInput {
|
|
494
|
+
startDate: String
|
|
495
|
+
endDate: String
|
|
496
|
+
deviceIds: [ID]
|
|
497
|
+
filter: String
|
|
498
|
+
}
|
|
499
|
+
input DeviceHourlyDataFetchInput {
|
|
500
|
+
deviceIds: [ID]
|
|
501
|
+
startDate: String
|
|
502
|
+
endDate: String
|
|
503
|
+
alertsFilter: [String]
|
|
504
|
+
}
|
|
505
|
+
input DeviceDaywiseDataFetchInput {
|
|
506
|
+
deviceIds: [ID]
|
|
507
|
+
startDate: String
|
|
508
|
+
endDate: String
|
|
509
|
+
alertsFilter: [String]
|
|
510
|
+
}
|
|
511
|
+
input DeviceMonthwiseDataFetchInput {
|
|
512
|
+
deviceIds: [ID]
|
|
513
|
+
startDate: String
|
|
514
|
+
endDate: String
|
|
515
|
+
alertsFilter: [String]
|
|
516
|
+
}
|
|
517
|
+
input DeviceYearlyDataFetchInput {
|
|
518
|
+
deviceIds: [ID]
|
|
519
|
+
years: [String]
|
|
520
|
+
alertsFilter: [String]
|
|
521
|
+
}
|
|
522
|
+
input DeviceReportForDashboardFetchInput {
|
|
523
|
+
deviceIds: [ID]
|
|
524
|
+
startDate: String
|
|
525
|
+
endDate: String
|
|
526
|
+
year: String
|
|
527
|
+
filter: String
|
|
528
|
+
alertsFilter: [String]
|
|
529
|
+
}
|
|
530
|
+
input HourlyAlertReportInput {
|
|
531
|
+
deviceIds: [ID]
|
|
532
|
+
startDate: String
|
|
533
|
+
endDate: String
|
|
534
|
+
filter: String
|
|
535
|
+
alertsFilter: [String]
|
|
536
|
+
}
|
|
537
|
+
input DevicesMapDataFetchInput {
|
|
538
|
+
deviceIds: [ID]
|
|
539
|
+
startDate: String
|
|
540
|
+
endDate: String
|
|
541
|
+
}
|
|
542
|
+
input AlertEmailInput {
|
|
543
|
+
type: String
|
|
544
|
+
reportName: String
|
|
545
|
+
day: String
|
|
546
|
+
emailIds: [String]
|
|
547
|
+
filters: [String]
|
|
548
|
+
lastSentTime: String
|
|
549
|
+
}
|
|
550
|
+
input AlertSeenInput {
|
|
551
|
+
seen: Boolean
|
|
552
|
+
time: String
|
|
553
|
+
}
|
|
554
|
+
input AlertsInput {
|
|
555
|
+
deviceId: String
|
|
556
|
+
deviceName: String
|
|
557
|
+
value: JSON
|
|
558
|
+
seen: AlertSeenInput
|
|
559
|
+
reason: String
|
|
560
|
+
}
|
|
561
|
+
input PeakKWHInput {
|
|
562
|
+
value: Float
|
|
563
|
+
lastUpdated: String
|
|
564
|
+
}
|
|
565
|
+
input MonthlyReportInput {
|
|
566
|
+
deviceId: ID
|
|
567
|
+
deviceName: String
|
|
568
|
+
readingStartDate: Date
|
|
569
|
+
readingEndDate: Date
|
|
570
|
+
lastUpdatedTime: String
|
|
571
|
+
startKWH: Float
|
|
572
|
+
endKWH: Float
|
|
573
|
+
status: String
|
|
574
|
+
peakKWH: PeakKWHInput
|
|
575
|
+
peakKW: JSON
|
|
576
|
+
pkt: String
|
|
577
|
+
}
|
|
578
|
+
input DashboardDataFetchInput {
|
|
579
|
+
deviceIds: [ID]
|
|
580
|
+
startDate: String
|
|
581
|
+
endDate: String
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
input PowerConsumptionPageDataFetchInput {
|
|
585
|
+
deviceIds: [ID]
|
|
586
|
+
startDate: String
|
|
587
|
+
endDate: String
|
|
588
|
+
filter: String
|
|
589
|
+
}
|
|
590
|
+
input LiveGraphPageDataFetchInput {
|
|
591
|
+
devicesActiveVsDownTime: DeviceActiveVsDownTimeFetchInput
|
|
592
|
+
devicesDaywisePowerConsumption: PowerConsumptionFetchInput
|
|
593
|
+
devicesReport: DevicesReportInput
|
|
594
|
+
devicesAlert: HourlyAlertReportInput
|
|
595
|
+
devicesHourlyData: DeviceHourlyDataFetchInput
|
|
596
|
+
}
|
|
597
|
+
input TimelineChartPageDataFetchInput {
|
|
598
|
+
devicesHourlyPowerConsumption: PowerConsumptionFetchInput
|
|
599
|
+
devicesAlert: HourlyAlertReportInput
|
|
600
|
+
}
|
|
601
|
+
input LocationMapPageDataFetchInput {
|
|
602
|
+
devicesActiveVsDownTime: DeviceActiveVsDownTimeFetchInput
|
|
603
|
+
devicesPowerConsumption: PowerConsumptionFetchInput
|
|
604
|
+
devicesAlert: HourlyAlertReportInput
|
|
605
|
+
devicesMapData: DevicesMapDataFetchInput
|
|
606
|
+
}
|
|
607
|
+
input HeatMapPageDataFetchInput {
|
|
608
|
+
devicesHourlyPowerConsumption: PowerConsumptionFetchInput
|
|
609
|
+
devicesDownTimeReport: DownTimeFetchInput
|
|
610
|
+
}
|
|
611
|
+
input LoadMapPageDataFetchInput {
|
|
612
|
+
devicesHourlyPowerConsumption: PowerConsumptionFetchInput
|
|
613
|
+
devicesActiveVsDownTime: DeviceActiveVsDownTimeFetchInput
|
|
614
|
+
}
|
|
615
|
+
input LastMessagesFromMqttInput {
|
|
616
|
+
deviceIds: [ID]
|
|
617
|
+
filter: String
|
|
618
|
+
}
|
|
619
|
+
input FetchMonthlyReportInput {
|
|
620
|
+
deviceIds: [ID]
|
|
621
|
+
startDate: String
|
|
622
|
+
endDate: String
|
|
623
|
+
}
|
|
624
|
+
input DBInput {
|
|
625
|
+
companyId: ID
|
|
626
|
+
appType: String
|
|
627
|
+
startDate: String
|
|
628
|
+
endDate: String
|
|
629
|
+
collection: String
|
|
630
|
+
inventoryTableId: ID #aka item
|
|
631
|
+
inventoryTableCategory: String
|
|
632
|
+
inventoryTableTransactionType: String
|
|
633
|
+
}
|
|
634
|
+
union LoginUserResponse = LoginResponse | GeneralResponse
|
|
635
|
+
union CreateCompanyResponse = CompanyResponse | GeneralResponse
|
|
636
|
+
union CreateUserResponse = UserResponse | GeneralResponse
|
|
637
|
+
# union CreateDepartmentResponse = DepartmentResponse | GeneralResponse
|
|
638
|
+
|
|
639
|
+
type GeneralResponse {
|
|
640
|
+
status: String
|
|
641
|
+
message: String
|
|
642
|
+
}
|
|
643
|
+
type CompanyResponse {
|
|
644
|
+
companyId: ID
|
|
645
|
+
status: String
|
|
646
|
+
message: String
|
|
647
|
+
}
|
|
648
|
+
type UserResponse {
|
|
649
|
+
userId: ID
|
|
650
|
+
status: String
|
|
651
|
+
message: String
|
|
652
|
+
}
|
|
653
|
+
type DepartmentResponse {
|
|
654
|
+
departmentId: ID
|
|
655
|
+
status: String
|
|
656
|
+
message: String
|
|
657
|
+
}
|
|
658
|
+
type LoginResponse {
|
|
659
|
+
token: String
|
|
660
|
+
status: String
|
|
661
|
+
message: String
|
|
662
|
+
userType: String
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
type SessionSuccessResponse {
|
|
666
|
+
id: ID!
|
|
667
|
+
userId: String
|
|
668
|
+
userType: String
|
|
669
|
+
tokenType: String
|
|
670
|
+
logInDateTime: Date
|
|
671
|
+
logOutDateTime: Date
|
|
672
|
+
status: String
|
|
673
|
+
}
|
|
674
|
+
type UserSession {
|
|
675
|
+
userId: String
|
|
676
|
+
logInTime: String
|
|
677
|
+
logOutTime: String
|
|
678
|
+
}
|
|
679
|
+
type LoginSuccessResponse {
|
|
680
|
+
id: ID
|
|
681
|
+
firstName: String
|
|
682
|
+
lastName: String
|
|
683
|
+
email: EmailAddress
|
|
684
|
+
phone: PhoneNumber
|
|
685
|
+
image: String
|
|
686
|
+
userType: String
|
|
687
|
+
companyInfo: CompanyInfo
|
|
688
|
+
companyId: ID
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
type ReportResponse {
|
|
692
|
+
deviceId: ID
|
|
693
|
+
reportDate: Date
|
|
694
|
+
value: [JSON]
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
type RegisterConfig {
|
|
698
|
+
dbName: String
|
|
699
|
+
parameterName: String
|
|
700
|
+
suffix: String
|
|
701
|
+
registers: [String]
|
|
702
|
+
regFormat: String
|
|
703
|
+
}
|
|
704
|
+
type DeviceReport {
|
|
705
|
+
value: [JSON]
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
# type Departments {
|
|
709
|
+
# id: ID!
|
|
710
|
+
# department: String
|
|
711
|
+
# }
|
|
712
|
+
|
|
713
|
+
type User {
|
|
714
|
+
id: ID!
|
|
715
|
+
userInfo: UserInfo
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
type Company {
|
|
719
|
+
id: ID!
|
|
720
|
+
companyInfo: CompanyInfo
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
type Device {
|
|
724
|
+
id: ID!
|
|
725
|
+
deviceInfo: DeviceInfo
|
|
726
|
+
threshold: JSON
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
type UserInfo {
|
|
730
|
+
firstName: String
|
|
731
|
+
lastName: String
|
|
732
|
+
email: EmailAddress
|
|
733
|
+
phone: PhoneNumber
|
|
734
|
+
dob: Date
|
|
735
|
+
status: String
|
|
736
|
+
userType: String
|
|
737
|
+
password: String
|
|
738
|
+
companyId: ID!
|
|
739
|
+
}
|
|
740
|
+
type ActiveApps {
|
|
741
|
+
appName: String
|
|
742
|
+
licensed: Int
|
|
743
|
+
start: Date
|
|
744
|
+
end: Date
|
|
745
|
+
licenseType: String
|
|
746
|
+
allowedPages: [String]
|
|
747
|
+
isEmailEnabled: Boolean
|
|
748
|
+
}
|
|
749
|
+
type MqttConnectionConfig {
|
|
750
|
+
protocol: String
|
|
751
|
+
port: String
|
|
752
|
+
host: String
|
|
753
|
+
path: String
|
|
754
|
+
}
|
|
755
|
+
type CompanyMqttConfig {
|
|
756
|
+
clientId: String
|
|
757
|
+
username: String
|
|
758
|
+
password: String
|
|
759
|
+
web: MqttConnectionConfig
|
|
760
|
+
server: MqttConnectionConfig
|
|
761
|
+
}
|
|
762
|
+
type CompanyDateTimeConfig {
|
|
763
|
+
add: Boolean
|
|
764
|
+
sub: Boolean
|
|
765
|
+
time: String
|
|
766
|
+
}
|
|
767
|
+
type CompanyInfo {
|
|
768
|
+
name: String
|
|
769
|
+
alias: String
|
|
770
|
+
licenseType: String
|
|
771
|
+
# start: Date
|
|
772
|
+
# end: Date
|
|
773
|
+
config: String
|
|
774
|
+
status: String
|
|
775
|
+
|
|
776
|
+
activeApps: [ActiveApps]
|
|
777
|
+
licensedUsers: Int
|
|
778
|
+
departments: [Departments]
|
|
779
|
+
mqttConfig: CompanyMqttConfig
|
|
780
|
+
dateTimeConfig: CompanyDateTimeConfig
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
type DeviceInfo {
|
|
784
|
+
name: String
|
|
785
|
+
image: String
|
|
786
|
+
type: String
|
|
787
|
+
deviceType: String
|
|
788
|
+
topic: String
|
|
789
|
+
status: String
|
|
790
|
+
SLID: String
|
|
791
|
+
serialNo: Int
|
|
792
|
+
company: Company
|
|
793
|
+
model: String
|
|
794
|
+
slaves: [String]
|
|
795
|
+
master: String
|
|
796
|
+
prodCalcParameter: String
|
|
797
|
+
runHrsCalcParameter: String
|
|
798
|
+
registerConfig: [RegisterConfig]
|
|
799
|
+
location: String
|
|
800
|
+
productivity: String
|
|
801
|
+
prevProductivity: String
|
|
802
|
+
expectedProductivity: String
|
|
803
|
+
offTimeTracker: String
|
|
804
|
+
runHrs: String
|
|
805
|
+
prevRunHrs: String
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
# type ThresholdInfo {
|
|
809
|
+
# peakVL: String
|
|
810
|
+
# lowVL: String
|
|
811
|
+
# peakA: String
|
|
812
|
+
# lowA: String
|
|
813
|
+
# peakKW: String
|
|
814
|
+
# lowKW: String
|
|
815
|
+
# kwRated: String
|
|
816
|
+
# }
|
|
817
|
+
type DeviceHourlyData {
|
|
818
|
+
value: [JSON]
|
|
819
|
+
# deviceId: ID
|
|
820
|
+
# deviceName: String
|
|
821
|
+
# reportId: String
|
|
822
|
+
# date: Date
|
|
823
|
+
# hourId: Int
|
|
824
|
+
# startTime: String
|
|
825
|
+
# endTime: String
|
|
826
|
+
# startKWH: Float
|
|
827
|
+
# endKWH: Float
|
|
828
|
+
# hourlyConsumption: Float
|
|
829
|
+
# lowVL: Float
|
|
830
|
+
# peakVL: Float
|
|
831
|
+
# lowA: Float
|
|
832
|
+
# peakA: Float
|
|
833
|
+
# lowKW: Float
|
|
834
|
+
# peakKW: Float
|
|
835
|
+
# lowPF: Float
|
|
836
|
+
# peakPF: Float
|
|
837
|
+
# VLMaxAlerts: [JSON]
|
|
838
|
+
# VLMinAlerts: [JSON]
|
|
839
|
+
# AMaxAlerts: [JSON]
|
|
840
|
+
# AMinAlerts: [JSON]
|
|
841
|
+
# KWMaxAlerts: [JSON]
|
|
842
|
+
# KWMinAlerts: [JSON]
|
|
843
|
+
# PFMaxAlerts: [JSON]
|
|
844
|
+
# PFMinAlerts: [JSON]
|
|
845
|
+
# alertsCount: Int
|
|
846
|
+
# downTimes: [JSON]
|
|
847
|
+
# offTimes: [JSON]
|
|
848
|
+
# downTimesCount: Int
|
|
849
|
+
# offTimesCount: Int
|
|
850
|
+
}
|
|
851
|
+
type DeviceDaywiseData {
|
|
852
|
+
value: [JSON]
|
|
853
|
+
# deviceId: ID
|
|
854
|
+
# deviceName: String
|
|
855
|
+
# reportId: String
|
|
856
|
+
# date: Date
|
|
857
|
+
# startTime: String
|
|
858
|
+
# endTime: String
|
|
859
|
+
# startKWH: Float
|
|
860
|
+
# endKWH: Float
|
|
861
|
+
# daywiseConsumption: Float
|
|
862
|
+
# lowVL: Float
|
|
863
|
+
# peakVL: Float
|
|
864
|
+
# lowA: Float
|
|
865
|
+
# peakA: Float
|
|
866
|
+
# lowKW: Float
|
|
867
|
+
# peakKW: Float
|
|
868
|
+
# lowPF: Float
|
|
869
|
+
# peakPF: Float
|
|
870
|
+
# VLMaxAlerts: [JSON]
|
|
871
|
+
# VLMinAlerts: [JSON]
|
|
872
|
+
# AMaxAlerts: [JSON]
|
|
873
|
+
# AMinAlerts: [JSON]
|
|
874
|
+
# KWMaxAlerts: [JSON]
|
|
875
|
+
# KWMinAlerts: [JSON]
|
|
876
|
+
# PFMaxAlerts: [JSON]
|
|
877
|
+
# PFMinAlerts: [JSON]
|
|
878
|
+
# alertsCount: Int
|
|
879
|
+
# downTimes: [JSON]
|
|
880
|
+
# offTimes: [JSON]
|
|
881
|
+
# downTimesCount: Int
|
|
882
|
+
# offTimesCount: Int
|
|
883
|
+
}
|
|
884
|
+
type DeviceMonthwiseData {
|
|
885
|
+
value: [JSON]
|
|
886
|
+
# deviceId: ID
|
|
887
|
+
# deviceName: String
|
|
888
|
+
# reportId: String
|
|
889
|
+
# month: String
|
|
890
|
+
# date: String
|
|
891
|
+
# startTime: String
|
|
892
|
+
# endTime: String
|
|
893
|
+
# startKWH: Float
|
|
894
|
+
# endKWH: Float
|
|
895
|
+
# monthwiseConsumption: Float
|
|
896
|
+
# daywiseConsumption: Float
|
|
897
|
+
# lowVL: Float
|
|
898
|
+
# peakVL: Float
|
|
899
|
+
# lowA: Float
|
|
900
|
+
# peakA: Float
|
|
901
|
+
# lowKW: Float
|
|
902
|
+
# peakKW: Float
|
|
903
|
+
# lowPF: Float
|
|
904
|
+
# peakPF: Float
|
|
905
|
+
# VLMaxAlerts: [JSON]
|
|
906
|
+
# VLMinAlerts: [JSON]
|
|
907
|
+
# AMaxAlerts: [JSON]
|
|
908
|
+
# AMinAlerts: [JSON]
|
|
909
|
+
# KWMaxAlerts: [JSON]
|
|
910
|
+
# KWMinAlerts: [JSON]
|
|
911
|
+
# PFMaxAlerts: [JSON]
|
|
912
|
+
# PFMinAlerts: [JSON]
|
|
913
|
+
# alertsCount: Int
|
|
914
|
+
# downTimes: [JSON]
|
|
915
|
+
# offTimes: [JSON]
|
|
916
|
+
# downTimesCount: Int
|
|
917
|
+
# offTimesCount: Int
|
|
918
|
+
}
|
|
919
|
+
type DeviceYearlyData {
|
|
920
|
+
value: [JSON]
|
|
921
|
+
# deviceId: ID
|
|
922
|
+
# deviceName: String
|
|
923
|
+
# reportId: String
|
|
924
|
+
# year: String
|
|
925
|
+
# startTime: String
|
|
926
|
+
# endTime: String
|
|
927
|
+
# startKWH: Float
|
|
928
|
+
# endKWH: Float
|
|
929
|
+
# yearwiseConsumption: Float
|
|
930
|
+
# monthwiseConsumption: Float
|
|
931
|
+
# lowVL: Float
|
|
932
|
+
# peakVL: Float
|
|
933
|
+
# lowA: Float
|
|
934
|
+
# peakA: Float
|
|
935
|
+
# lowKW: Float
|
|
936
|
+
# peakKW: Float
|
|
937
|
+
# lowPF: Float
|
|
938
|
+
# peakPF: Float
|
|
939
|
+
# VLMaxAlerts: [JSON]
|
|
940
|
+
# VLMinAlerts: [JSON]
|
|
941
|
+
# AMaxAlerts: [JSON]
|
|
942
|
+
# AMinAlerts: [JSON]
|
|
943
|
+
# KWMaxAlerts: [JSON]
|
|
944
|
+
# KWMinAlerts: [JSON]
|
|
945
|
+
# PFMaxAlerts: [JSON]
|
|
946
|
+
# PFMinAlerts: [JSON]
|
|
947
|
+
# alertsCount: Int
|
|
948
|
+
# downTimes: [JSON]
|
|
949
|
+
# offTimes: [JSON]
|
|
950
|
+
# downTimesCount: Int
|
|
951
|
+
# offTimesCount: Int
|
|
952
|
+
}
|
|
953
|
+
type DeviceReportForDashBoard {
|
|
954
|
+
value: [JSON]
|
|
955
|
+
# deviceId: ID
|
|
956
|
+
# deviceName: String
|
|
957
|
+
# reportId: String
|
|
958
|
+
# date: Date
|
|
959
|
+
# month: String
|
|
960
|
+
# hourId: Int
|
|
961
|
+
# startTime: String
|
|
962
|
+
# endTime: String
|
|
963
|
+
# startKWH: Float
|
|
964
|
+
# endKWH: Float
|
|
965
|
+
# hourlyConsumption: Float
|
|
966
|
+
# daywiseConsumption: Float
|
|
967
|
+
# monthwiseConsumption: Float
|
|
968
|
+
# yearwiseConsumption: Float
|
|
969
|
+
# lowVL: Float
|
|
970
|
+
# peakVL: Float
|
|
971
|
+
# lowA: Float
|
|
972
|
+
# peakA: Float
|
|
973
|
+
# lowKW: Float
|
|
974
|
+
# peakKW: Float
|
|
975
|
+
# lowPF: Float
|
|
976
|
+
# peakPF: Float
|
|
977
|
+
# VLMaxAlerts: [JSON]
|
|
978
|
+
# VLMinAlerts: [JSON]
|
|
979
|
+
# AMaxAlerts: [JSON]
|
|
980
|
+
# AMinAlerts: [JSON]
|
|
981
|
+
# KWMaxAlerts: [JSON]
|
|
982
|
+
# KWMinAlerts: [JSON]
|
|
983
|
+
# PFMaxAlerts: [JSON]
|
|
984
|
+
# PFMinAlerts: [JSON]
|
|
985
|
+
# alertsCount: Int
|
|
986
|
+
# downTimes: [JSON]
|
|
987
|
+
# offTimes: [JSON]
|
|
988
|
+
# downTimesCount: Int
|
|
989
|
+
# offTimesCount: Int
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
type DeviceAnalytics {
|
|
993
|
+
deviceId: ID
|
|
994
|
+
reportDate: Date
|
|
995
|
+
hourId: String
|
|
996
|
+
value: AnalyticsValueInfo
|
|
997
|
+
start: AnalyticsInfo
|
|
998
|
+
end: AnalyticsInfo
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
type AnalyticsInfo {
|
|
1002
|
+
KWh: String
|
|
1003
|
+
time: String
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
type AnalyticsValueInfo {
|
|
1007
|
+
A: JSON
|
|
1008
|
+
KW: JSON
|
|
1009
|
+
VL: JSON
|
|
1010
|
+
}
|
|
1011
|
+
type CostConfig {
|
|
1012
|
+
range: String
|
|
1013
|
+
cost: String
|
|
1014
|
+
}
|
|
1015
|
+
type BasicSettings {
|
|
1016
|
+
id: ID
|
|
1017
|
+
companyId: ID
|
|
1018
|
+
readingStartDate: Date
|
|
1019
|
+
readingEndDate: Date
|
|
1020
|
+
duration: String
|
|
1021
|
+
costConfig: [CostConfig]
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
type PowerConsumption {
|
|
1025
|
+
deviceId: ID
|
|
1026
|
+
durations: [String]
|
|
1027
|
+
kwh: [Float]
|
|
1028
|
+
}
|
|
1029
|
+
type EndKwHForDevice {
|
|
1030
|
+
deviceId: ID
|
|
1031
|
+
durations: [String]
|
|
1032
|
+
EndKwH: [Float]
|
|
1033
|
+
}
|
|
1034
|
+
type HourlyAlertReport {
|
|
1035
|
+
value: [JSON]
|
|
1036
|
+
# deviceId: ID
|
|
1037
|
+
# deviceName: String
|
|
1038
|
+
# reportId: String
|
|
1039
|
+
# date: Date
|
|
1040
|
+
# hourId: Int
|
|
1041
|
+
# startTime: String
|
|
1042
|
+
# endTime: String
|
|
1043
|
+
# startKWH: String
|
|
1044
|
+
# endKWH: String
|
|
1045
|
+
# hourlyConsumption: String
|
|
1046
|
+
# peakVL: [JSON]
|
|
1047
|
+
# lowVL: [JSON]
|
|
1048
|
+
# peakA: [JSON]
|
|
1049
|
+
# lowA: [JSON]
|
|
1050
|
+
# peakKW: [JSON]
|
|
1051
|
+
# lowKW: [JSON]
|
|
1052
|
+
# peakPF: [JSON]
|
|
1053
|
+
# lowPF: [JSON]
|
|
1054
|
+
# alertsCount: Int
|
|
1055
|
+
# downTimes: [JSON]
|
|
1056
|
+
# offTimes: [JSON]
|
|
1057
|
+
}
|
|
1058
|
+
type offTimeReport {
|
|
1059
|
+
deviceId: ID
|
|
1060
|
+
deviceName: String
|
|
1061
|
+
reportId: String
|
|
1062
|
+
reportDate: String
|
|
1063
|
+
startTime: String
|
|
1064
|
+
startKWH: Float
|
|
1065
|
+
endTime: String
|
|
1066
|
+
endKWH: Float
|
|
1067
|
+
totalOffTime: String
|
|
1068
|
+
}
|
|
1069
|
+
type DownTimeReport {
|
|
1070
|
+
deviceId: ID
|
|
1071
|
+
deviceName: String
|
|
1072
|
+
reportId: String
|
|
1073
|
+
reportDate: String
|
|
1074
|
+
startTime: String
|
|
1075
|
+
startKWH: Float
|
|
1076
|
+
endTime: String
|
|
1077
|
+
endKWH: Float
|
|
1078
|
+
totalDownTime: String
|
|
1079
|
+
}
|
|
1080
|
+
type HourlyUtilizationDashboard {
|
|
1081
|
+
value: [JSON]
|
|
1082
|
+
# deviceId: ID
|
|
1083
|
+
# deviceName: String
|
|
1084
|
+
# reportId: String
|
|
1085
|
+
# date: Date
|
|
1086
|
+
# hourId: Int
|
|
1087
|
+
# startTime: String
|
|
1088
|
+
# endTime: String
|
|
1089
|
+
# startKWH: Float
|
|
1090
|
+
# endKWH: Float
|
|
1091
|
+
# hourlyConsumption: Float
|
|
1092
|
+
# peakVL: Float
|
|
1093
|
+
# lowVL: Float
|
|
1094
|
+
# peakA: Float
|
|
1095
|
+
# lowA: Float
|
|
1096
|
+
# peakKW: Float
|
|
1097
|
+
# lowKW: Float
|
|
1098
|
+
# peakPF: Float
|
|
1099
|
+
# lowPF: Float
|
|
1100
|
+
# VLMaxAlerts: [JSON]
|
|
1101
|
+
# VLMinAlerts: [JSON]
|
|
1102
|
+
# AMaxAlerts: [JSON]
|
|
1103
|
+
# AMinAlerts: [JSON]
|
|
1104
|
+
# KWMaxAlerts: [JSON]
|
|
1105
|
+
# KWMinAlerts: [JSON]
|
|
1106
|
+
# PFMaxAlerts: [JSON]
|
|
1107
|
+
# PFMinAlerts: [JSON]
|
|
1108
|
+
# downTimes: [JSON]
|
|
1109
|
+
# offTimes: [JSON]
|
|
1110
|
+
# downTimesCount: Int
|
|
1111
|
+
# offTimesCount: Int
|
|
1112
|
+
# alertsCount: Int
|
|
1113
|
+
# graphData: JSON
|
|
1114
|
+
}
|
|
1115
|
+
type MonthlyUtilizationDashboard {
|
|
1116
|
+
value: [JSON]
|
|
1117
|
+
# deviceId: ID
|
|
1118
|
+
# deviceName: String
|
|
1119
|
+
# reportId: String
|
|
1120
|
+
# date: Date
|
|
1121
|
+
# startTime: String
|
|
1122
|
+
# endTime: String
|
|
1123
|
+
# startKWH: Float
|
|
1124
|
+
# endKWH: Float
|
|
1125
|
+
# daywiseConsumption: Float
|
|
1126
|
+
# peakVL: Float
|
|
1127
|
+
# lowVL: Float
|
|
1128
|
+
# peakA: Float
|
|
1129
|
+
# lowA: Float
|
|
1130
|
+
# peakKW: Float
|
|
1131
|
+
# lowKW: Float
|
|
1132
|
+
# peakPF: Float
|
|
1133
|
+
# lowPF: Float
|
|
1134
|
+
# VLMaxAlerts: [JSON]
|
|
1135
|
+
# VLMinAlerts: [JSON]
|
|
1136
|
+
# AMaxAlerts: [JSON]
|
|
1137
|
+
# AMinAlerts: [JSON]
|
|
1138
|
+
# KWMaxAlerts: [JSON]
|
|
1139
|
+
# KWMinAlerts: [JSON]
|
|
1140
|
+
# PFMaxAlerts: [JSON]
|
|
1141
|
+
# PFMinAlerts: [JSON]
|
|
1142
|
+
# downTimes: [JSON]
|
|
1143
|
+
# offTimes: [JSON]
|
|
1144
|
+
# alertsCount: Int
|
|
1145
|
+
# downTimesCount: Int
|
|
1146
|
+
# offTimesCount: Int
|
|
1147
|
+
# graphData: JSON
|
|
1148
|
+
}
|
|
1149
|
+
type HourlyUtilizationDataForGraph {
|
|
1150
|
+
deviceName: String
|
|
1151
|
+
KwhArray: [Float]
|
|
1152
|
+
datesArray: [String]
|
|
1153
|
+
}
|
|
1154
|
+
type MonthlyUtilizationDataForGraph {
|
|
1155
|
+
deviceName: String
|
|
1156
|
+
KwhArray: [Float]
|
|
1157
|
+
datesArray: [String]
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
type LiveCurrentForPeriod {
|
|
1161
|
+
deviceName: String
|
|
1162
|
+
liveData: [JSON]
|
|
1163
|
+
}
|
|
1164
|
+
type DeviceActiveVsDownTime {
|
|
1165
|
+
deviceName: String
|
|
1166
|
+
totalTime: String
|
|
1167
|
+
activeTime: String
|
|
1168
|
+
downTime: String
|
|
1169
|
+
offTime: String
|
|
1170
|
+
}
|
|
1171
|
+
type PeakKWH {
|
|
1172
|
+
value: Float
|
|
1173
|
+
lastUpdated: String
|
|
1174
|
+
}
|
|
1175
|
+
type PeakKW {
|
|
1176
|
+
value: Float
|
|
1177
|
+
time: String
|
|
1178
|
+
}
|
|
1179
|
+
type TempDataAlert {
|
|
1180
|
+
max: Float
|
|
1181
|
+
min: Float
|
|
1182
|
+
count: Int
|
|
1183
|
+
}
|
|
1184
|
+
type TempDataTable {
|
|
1185
|
+
deviceId: ID!
|
|
1186
|
+
deviceName: String
|
|
1187
|
+
readingStartDate: Date
|
|
1188
|
+
readingEndDate: Date
|
|
1189
|
+
lastUpdatedTime: String
|
|
1190
|
+
startKWH: Float
|
|
1191
|
+
endKWH: Float
|
|
1192
|
+
status: String
|
|
1193
|
+
peakKWH: PeakKWH
|
|
1194
|
+
peakKW: JSON
|
|
1195
|
+
peakKWHsArray: [PeakKWH]
|
|
1196
|
+
peakKWsArray: [PeakKW]
|
|
1197
|
+
VL: TempDataAlert
|
|
1198
|
+
A: TempDataAlert
|
|
1199
|
+
KW: TempDataAlert
|
|
1200
|
+
KWh: TempDataAlert
|
|
1201
|
+
PF: TempDataAlert
|
|
1202
|
+
pkt: String
|
|
1203
|
+
alerts: JSON
|
|
1204
|
+
peaksAndLows: JSON
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
type AlertEmail {
|
|
1208
|
+
id: ID
|
|
1209
|
+
type: String
|
|
1210
|
+
reportName: String
|
|
1211
|
+
day: String
|
|
1212
|
+
emailIds: [String]
|
|
1213
|
+
filters: [String]
|
|
1214
|
+
lastSentTime: String
|
|
1215
|
+
}
|
|
1216
|
+
type AlertSeen {
|
|
1217
|
+
seen: Boolean
|
|
1218
|
+
time: String
|
|
1219
|
+
}
|
|
1220
|
+
type Alerts {
|
|
1221
|
+
id: ID
|
|
1222
|
+
deviceId: String
|
|
1223
|
+
deviceName: String
|
|
1224
|
+
value: JSON
|
|
1225
|
+
seen: AlertSeen
|
|
1226
|
+
reason: String
|
|
1227
|
+
}
|
|
1228
|
+
type DevicesEndKWHs {
|
|
1229
|
+
deviceId: String
|
|
1230
|
+
deviceName: String
|
|
1231
|
+
durations: [String]
|
|
1232
|
+
EndKWHs: [String]
|
|
1233
|
+
}
|
|
1234
|
+
type DevicesStartKWHs {
|
|
1235
|
+
deviceId: String
|
|
1236
|
+
deviceName: String
|
|
1237
|
+
durations: [String]
|
|
1238
|
+
StartKWHs: [String]
|
|
1239
|
+
}
|
|
1240
|
+
type DashboardData {
|
|
1241
|
+
devicesActiveVsDownTime: [DeviceActiveVsDownTime]
|
|
1242
|
+
devicesPowerConsumption: [PowerConsumption]
|
|
1243
|
+
tempDataTable: [TempDataTable]
|
|
1244
|
+
devicesEndKWHs: [DevicesEndKWHs]
|
|
1245
|
+
devicesStartKWHs: [DevicesStartKWHs]
|
|
1246
|
+
}
|
|
1247
|
+
type UtilizationDataForGraph {
|
|
1248
|
+
deviceName: String
|
|
1249
|
+
KwhArray: [Float]
|
|
1250
|
+
datesArray: [String]
|
|
1251
|
+
}
|
|
1252
|
+
# union DataForSpikeAnalytics =
|
|
1253
|
+
# | HourlyUtilizationDashboard
|
|
1254
|
+
# | MonthlyUtilizationDashboard
|
|
1255
|
+
type PowerConsumptionPageData {
|
|
1256
|
+
devicesActiveVsDownTime: [DeviceActiveVsDownTime]
|
|
1257
|
+
dayHourConsumption: [PowerConsumption]
|
|
1258
|
+
dataForSpikeAnalytics: [JSON]
|
|
1259
|
+
devicesCurrentForPeriod: [LiveCurrentForPeriod]
|
|
1260
|
+
devicesDaywisePowerConsumption: [PowerConsumption]
|
|
1261
|
+
}
|
|
1262
|
+
type LocationMapPageData {
|
|
1263
|
+
devicesActiveVsDownTime: [DeviceActiveVsDownTime]
|
|
1264
|
+
devicesPowerConsumption: [PowerConsumption]
|
|
1265
|
+
devicesAlert: HourlyAlertReport
|
|
1266
|
+
devicesMapData: [JSON]
|
|
1267
|
+
}
|
|
1268
|
+
type LiveGraphPageData {
|
|
1269
|
+
devicesActiveVsDownTime: [DeviceActiveVsDownTime]
|
|
1270
|
+
devicesDaywisePowerConsumption: [PowerConsumption]
|
|
1271
|
+
devicesHourlyData: DeviceHourlyData
|
|
1272
|
+
devicesAlert: HourlyAlertReport
|
|
1273
|
+
devicesReport: DeviceReport
|
|
1274
|
+
}
|
|
1275
|
+
type TimelineChartPageData {
|
|
1276
|
+
devicesHourlyPowerConsumption: [PowerConsumption]
|
|
1277
|
+
devicesAlert: HourlyAlertReport
|
|
1278
|
+
}
|
|
1279
|
+
type HeatMapPageData {
|
|
1280
|
+
devicesHourlyPowerConsumption: [PowerConsumption]
|
|
1281
|
+
devicesDownTimeReport: [DownTimeReport]
|
|
1282
|
+
}
|
|
1283
|
+
type LoadMapPageData {
|
|
1284
|
+
devicesHourlyPowerConsumption: [PowerConsumption]
|
|
1285
|
+
devicesActiveVsDownTime: [DeviceActiveVsDownTime]
|
|
1286
|
+
}
|
|
1287
|
+
type SettingsPageData {
|
|
1288
|
+
alertEmails: [AlertEmail]
|
|
1289
|
+
users: [User]
|
|
1290
|
+
superadmin: User
|
|
1291
|
+
}
|
|
1292
|
+
type LastMessagesFromMqtt {
|
|
1293
|
+
value: JSON
|
|
1294
|
+
}
|
|
1295
|
+
type DBType {
|
|
1296
|
+
value: JSON
|
|
1297
|
+
}
|
|
1298
|
+
type Image {
|
|
1299
|
+
url: URL
|
|
1300
|
+
alt: String
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
scalar URL
|
|
1304
|
+
|
|
1305
|
+
scalar Int
|
|
1306
|
+
|
|
1307
|
+
scalar PostalCode
|
|
1308
|
+
|
|
1309
|
+
scalar EmailAddress
|
|
1310
|
+
|
|
1311
|
+
scalar PhoneNumber
|
|
1312
|
+
|
|
1313
|
+
scalar Date
|
|
1314
|
+
|
|
1315
|
+
scalar CountryCode
|
|
1316
|
+
|
|
1317
|
+
scalar JSON
|
|
1318
|
+
|
|
1319
|
+
scalar Upload
|
|
1320
|
+
|
|
1321
|
+
enum Brand {
|
|
1322
|
+
MJTECH
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
enum ErrorType {
|
|
1326
|
+
BAD_REQUEST
|
|
1327
|
+
BAD_USER_INPUT
|
|
1328
|
+
GRAPHQL_PARSE_FAILED
|
|
1329
|
+
GRAPHQL_VALIDATION_FAILED
|
|
1330
|
+
INTERNAL_SERVER_ERROR
|
|
1331
|
+
NOT_FOUND
|
|
1332
|
+
UNAUTHORIZED
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
schema {
|
|
1336
|
+
query: Query
|
|
1337
|
+
mutation: Mutation
|
|
1338
|
+
}
|
|
1339
|
+
`;
|