@mjtech-ems/schema 1.3.41 → 1.3.43
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 +61 -0
- package/dist/mjtech-inventory-tracking.js +1 -1
- package/package.json +25 -42
- package/generated/index.ts +0 -2954
- package/index.ts +0 -6
- package/mergedSchema.ts +0 -18
- package/mjtech-ems.ts +0 -1339
- package/mjtech-eqms.ts +0 -312
- package/mjtech-inventory-tracking.ts +0 -601
- package/mjtech-ngu.ts +0 -342
package/mjtech-ngu.ts
DELETED
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
import { gql } from "graphql-tag";
|
|
2
|
-
import { type DocumentNode } from "graphql";
|
|
3
|
-
|
|
4
|
-
export const ngu_schema: DocumentNode = gql`
|
|
5
|
-
type Query {
|
|
6
|
-
# NguUser
|
|
7
|
-
fetchNguUserById(id: ID!): NguUser
|
|
8
|
-
fetchNguUserList(queryData: NguUserListInput): [NguUser]
|
|
9
|
-
fetchNguUsers: [NguUser]
|
|
10
|
-
# NguDevice
|
|
11
|
-
fetchNguDeviceById(id: ID!): NguDevice
|
|
12
|
-
# fetchNguDeviceByTopic(topic: String): NguDevice
|
|
13
|
-
fetchNguDeviceList(queryData: NguDeviceListInput): [NguDevice]
|
|
14
|
-
|
|
15
|
-
# NguCompany
|
|
16
|
-
fetchNguCompanyById(id: ID!): NguCompany
|
|
17
|
-
fetchNguCompanyList(queryData: NguCompanyListInput): [NguCompany]
|
|
18
|
-
|
|
19
|
-
#fetchReport
|
|
20
|
-
fetchNguDeviceReport(queryData: NguDeviceReportInput): NguDeviceReport
|
|
21
|
-
fetchNguDevicesReport(queryData: NguDevicesReportInput): NguDeviceReport
|
|
22
|
-
fetchNguCompletePeriodicReport(
|
|
23
|
-
queryData: NguDevicesCompletePeriodicReportInput
|
|
24
|
-
): NguDeviceReport
|
|
25
|
-
|
|
26
|
-
#
|
|
27
|
-
fetchNguLocationMapPageData(
|
|
28
|
-
data: NguLocationMapPageDataFetchInput
|
|
29
|
-
): NguLocationMapPageData
|
|
30
|
-
#locations
|
|
31
|
-
fetchLocations: [Locations]
|
|
32
|
-
|
|
33
|
-
#Ngu temp data
|
|
34
|
-
# temp DataTable
|
|
35
|
-
fetchNguTempDataTable: [NguTempDataTable]
|
|
36
|
-
fetchNguTempDataTableByDeviceId(id: ID): NguTempDataTable
|
|
37
|
-
|
|
38
|
-
# alert Email
|
|
39
|
-
fetchNguAlertEmail: [NguAlertEmail]
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
type Mutation {
|
|
43
|
-
# User
|
|
44
|
-
createNguUser(data: NguUserInput): GeneralResponse
|
|
45
|
-
updateNguUser(data: NguUserInput, id: ID!): GeneralResponse
|
|
46
|
-
updateNguUserStatus(data: NguStatusInput, id: ID!): GeneralResponse
|
|
47
|
-
# # NguDevice
|
|
48
|
-
createNguDevice(data: NguDeviceInput): GeneralResponse
|
|
49
|
-
updateNguDevice(data: NguDeviceInput, id: ID!): GeneralResponse
|
|
50
|
-
# updateManyNguDevices(data: [UpdateManyNguDevicesInput]): GeneralResponse
|
|
51
|
-
updateNguDeviceStatus(data: NguStatusInput, id: ID!): GeneralResponse
|
|
52
|
-
deleteNguDevice(id: ID!): GeneralResponse
|
|
53
|
-
|
|
54
|
-
# NguCompany
|
|
55
|
-
createNguCompany(data: NguCompanyInput): GeneralResponse
|
|
56
|
-
updateNguCompany(data: NguCompanyInput, id: ID!): GeneralResponse
|
|
57
|
-
updateNguCompanyStatus(data: NguStatusInput, id: ID!): GeneralResponse
|
|
58
|
-
|
|
59
|
-
#Alert Email
|
|
60
|
-
createNguAlertEmail(data: NguAlertEmailInput): GeneralResponse
|
|
61
|
-
updateNguAlertEmail(data: NguAlertEmailInput): GeneralResponse
|
|
62
|
-
updateManyNguAlertEmails(data: [NguAlertEmailInput]): GeneralResponse
|
|
63
|
-
}
|
|
64
|
-
#input
|
|
65
|
-
#NguUser
|
|
66
|
-
input NguUserInput {
|
|
67
|
-
companyId: ID
|
|
68
|
-
firstName: String
|
|
69
|
-
lastName: String
|
|
70
|
-
email: EmailAddress
|
|
71
|
-
phone: PhoneNumber
|
|
72
|
-
password: String
|
|
73
|
-
dob: Date
|
|
74
|
-
userType: String
|
|
75
|
-
}
|
|
76
|
-
input NguUserListInput {
|
|
77
|
-
status: String
|
|
78
|
-
type: String
|
|
79
|
-
companyId: String
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
#COMPANY
|
|
83
|
-
input NguCompanyInput {
|
|
84
|
-
name: String
|
|
85
|
-
licenseType: String
|
|
86
|
-
start: Date
|
|
87
|
-
end: Date
|
|
88
|
-
config: String
|
|
89
|
-
}
|
|
90
|
-
input NguCompanyListInput {
|
|
91
|
-
status: String
|
|
92
|
-
}
|
|
93
|
-
#DEVICE
|
|
94
|
-
input NguDeviceInput {
|
|
95
|
-
name: String
|
|
96
|
-
image: String
|
|
97
|
-
type: String
|
|
98
|
-
topic: String
|
|
99
|
-
deviceType: String
|
|
100
|
-
SLID: String
|
|
101
|
-
serialNo: Int
|
|
102
|
-
companyId: ID
|
|
103
|
-
location: String
|
|
104
|
-
productivity: String
|
|
105
|
-
prevProductivity: String
|
|
106
|
-
expectedProductivity: String
|
|
107
|
-
offTimeTracker: String
|
|
108
|
-
runHrs: String
|
|
109
|
-
prevRunHrs: String
|
|
110
|
-
prodCalcParameter: String
|
|
111
|
-
runHrsCalcParameter: String
|
|
112
|
-
status: String
|
|
113
|
-
threshold: JSON
|
|
114
|
-
registerConfig: [RegisterConfigInput]
|
|
115
|
-
}
|
|
116
|
-
input NguStatusInput {
|
|
117
|
-
status: String
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
input NguDeviceListInput {
|
|
121
|
-
status: String
|
|
122
|
-
companyId: ID
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
input NguDeviceReportInput {
|
|
126
|
-
location: String
|
|
127
|
-
}
|
|
128
|
-
input NguDevicesReportInput {
|
|
129
|
-
locations: [String]
|
|
130
|
-
deviceIds: [String]
|
|
131
|
-
startDate: String
|
|
132
|
-
endDate: String
|
|
133
|
-
filter: String
|
|
134
|
-
alerts: [String]
|
|
135
|
-
}
|
|
136
|
-
input NguDevicesCompletePeriodicReportInput {
|
|
137
|
-
deviceIds: [String]
|
|
138
|
-
startDate: String
|
|
139
|
-
endDate: String
|
|
140
|
-
filter: String
|
|
141
|
-
}
|
|
142
|
-
input NguDevicewiseDevicesReportInput {
|
|
143
|
-
deviceIds: [ID]
|
|
144
|
-
startDate: String
|
|
145
|
-
endDate: String
|
|
146
|
-
}
|
|
147
|
-
input NguAlertEmailInput {
|
|
148
|
-
type: String
|
|
149
|
-
reportName: String
|
|
150
|
-
day: String
|
|
151
|
-
emailIds: [String]
|
|
152
|
-
lastSentTime: String
|
|
153
|
-
}
|
|
154
|
-
input NguLocationMapPageDataFetchInput {
|
|
155
|
-
devicesReport: NguDevicewiseDevicesReportInput
|
|
156
|
-
}
|
|
157
|
-
#type
|
|
158
|
-
|
|
159
|
-
#NguUser
|
|
160
|
-
type NguUser {
|
|
161
|
-
id: ID!
|
|
162
|
-
nguUserInfo: NguUserInfo
|
|
163
|
-
}
|
|
164
|
-
type NguUserInfo {
|
|
165
|
-
firstName: String
|
|
166
|
-
lastName: String
|
|
167
|
-
email: EmailAddress
|
|
168
|
-
phone: PhoneNumber
|
|
169
|
-
dob: Date
|
|
170
|
-
status: String
|
|
171
|
-
userType: String
|
|
172
|
-
companyId: ID!
|
|
173
|
-
}
|
|
174
|
-
#COMPANy
|
|
175
|
-
type NguCompanyInfo {
|
|
176
|
-
name: String
|
|
177
|
-
licenseType: String
|
|
178
|
-
start: Date
|
|
179
|
-
end: Date
|
|
180
|
-
config: String
|
|
181
|
-
status: String
|
|
182
|
-
}
|
|
183
|
-
type NguCompany {
|
|
184
|
-
id: ID!
|
|
185
|
-
companyInfo: NguCompanyInfo
|
|
186
|
-
}
|
|
187
|
-
#DEVICES
|
|
188
|
-
type NguDeviceInfo {
|
|
189
|
-
name: String
|
|
190
|
-
image: String
|
|
191
|
-
type: String
|
|
192
|
-
deviceType: String
|
|
193
|
-
topic: String
|
|
194
|
-
SLID: String
|
|
195
|
-
serialNo: Int
|
|
196
|
-
status: String
|
|
197
|
-
company: Company
|
|
198
|
-
location: String
|
|
199
|
-
productivity: String
|
|
200
|
-
prevProductivity: String
|
|
201
|
-
expectedProductivity: String
|
|
202
|
-
offTimeTracker: String
|
|
203
|
-
runHrs: String
|
|
204
|
-
prevRunHrs: String
|
|
205
|
-
registerConfig: [RegisterConfig]
|
|
206
|
-
prodCalcParameter: String
|
|
207
|
-
runHrsCalcParameter: String
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
# type NguDeviceThresholdInfo {
|
|
211
|
-
# maxAirTemp: String
|
|
212
|
-
# minAirTemp: String
|
|
213
|
-
# maxAirPressure: String
|
|
214
|
-
# minAirPressure: String
|
|
215
|
-
# maxInletDewPoint: String
|
|
216
|
-
# minInletDewPoint: String
|
|
217
|
-
# maxInletPressure: String
|
|
218
|
-
# minInletPressure: String
|
|
219
|
-
# maxInletTemp: String
|
|
220
|
-
# minInletTemp: String
|
|
221
|
-
# maxOutletDewPoint: String
|
|
222
|
-
# minOutletDewPoint: String
|
|
223
|
-
# maxOutletTemp: String
|
|
224
|
-
# minOutletTemp: String
|
|
225
|
-
# maxFlow: String
|
|
226
|
-
# minFlow: String
|
|
227
|
-
# maxPurity: String
|
|
228
|
-
# minPurity: String
|
|
229
|
-
# maxRH: String
|
|
230
|
-
# minRH: String
|
|
231
|
-
# maxSCFM: String
|
|
232
|
-
# minSCFM: String
|
|
233
|
-
# maxBoosterInletPressure: String
|
|
234
|
-
# minBoosterInletPressure: String
|
|
235
|
-
# maxBoosterOutletPressure: String
|
|
236
|
-
# minBoosterOutletPressure: String
|
|
237
|
-
# maxBoosterInletTemp: String
|
|
238
|
-
# minBoosterInletTemp: String
|
|
239
|
-
# maxBoosterOutletTemp: String
|
|
240
|
-
# minBoosterOutletTemp: String
|
|
241
|
-
# drainValve: String
|
|
242
|
-
# }
|
|
243
|
-
type NguDevice {
|
|
244
|
-
id: ID!
|
|
245
|
-
deviceInfo: NguDeviceInfo
|
|
246
|
-
threshold: JSON
|
|
247
|
-
}
|
|
248
|
-
type NguDeviceReport {
|
|
249
|
-
value: [JSON]
|
|
250
|
-
}
|
|
251
|
-
type Locations {
|
|
252
|
-
LAT: String
|
|
253
|
-
LON: String
|
|
254
|
-
}
|
|
255
|
-
# temp data
|
|
256
|
-
type NguTempDataAlertProps {
|
|
257
|
-
max: String
|
|
258
|
-
min: String
|
|
259
|
-
count: Int
|
|
260
|
-
}
|
|
261
|
-
type NguTempDataTable {
|
|
262
|
-
deviceId: ID
|
|
263
|
-
readingStartDate: Date
|
|
264
|
-
readingEndDate: Date
|
|
265
|
-
lastUpdatedTime: String
|
|
266
|
-
status: String
|
|
267
|
-
LAT: String
|
|
268
|
-
LON: String
|
|
269
|
-
productivity: String
|
|
270
|
-
FAT: NguTempDataAlertProps
|
|
271
|
-
FAP: NguTempDataAlertProps
|
|
272
|
-
IDP: NguTempDataAlertProps
|
|
273
|
-
IP: NguTempDataAlertProps
|
|
274
|
-
IT: NguTempDataAlertProps
|
|
275
|
-
ODP: NguTempDataAlertProps
|
|
276
|
-
OT: NguTempDataAlertProps
|
|
277
|
-
FL: NguTempDataAlertProps
|
|
278
|
-
BIT: NguTempDataAlertProps
|
|
279
|
-
BIP: NguTempDataAlertProps
|
|
280
|
-
BOP: NguTempDataAlertProps
|
|
281
|
-
BOT: NguTempDataAlertProps
|
|
282
|
-
PU: NguTempDataAlertProps
|
|
283
|
-
RH: NguTempDataAlertProps
|
|
284
|
-
SCFM: NguTempDataAlertProps
|
|
285
|
-
DV: String
|
|
286
|
-
pkt: String
|
|
287
|
-
alerts: JSON
|
|
288
|
-
}
|
|
289
|
-
#alert email type
|
|
290
|
-
type NguAlertEmail {
|
|
291
|
-
id: ID
|
|
292
|
-
type: String
|
|
293
|
-
reportName: String
|
|
294
|
-
day: String
|
|
295
|
-
emailIds: [String]
|
|
296
|
-
lastSentTime: String
|
|
297
|
-
}
|
|
298
|
-
type NguLocationMapPageData {
|
|
299
|
-
devicesReport: NguDeviceReport
|
|
300
|
-
}
|
|
301
|
-
# type Image {
|
|
302
|
-
# url: URL
|
|
303
|
-
# alt: String
|
|
304
|
-
# }
|
|
305
|
-
|
|
306
|
-
# scalar URL
|
|
307
|
-
|
|
308
|
-
# scalar Int
|
|
309
|
-
|
|
310
|
-
# scalar PostalCode
|
|
311
|
-
|
|
312
|
-
# scalar EmailAddress
|
|
313
|
-
|
|
314
|
-
# scalar PhoneNumber
|
|
315
|
-
|
|
316
|
-
# scalar Date
|
|
317
|
-
|
|
318
|
-
# scalar CountryCode
|
|
319
|
-
|
|
320
|
-
# scalar JSON
|
|
321
|
-
|
|
322
|
-
# scalar Upload
|
|
323
|
-
|
|
324
|
-
enum Brand {
|
|
325
|
-
MJTECH
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
enum ErrorType {
|
|
329
|
-
BAD_REQUEST
|
|
330
|
-
BAD_USER_INPUT
|
|
331
|
-
GRAPHQL_PARSE_FAILED
|
|
332
|
-
GRAPHQL_VALIDATION_FAILED
|
|
333
|
-
INTERNAL_SERVER_ERROR
|
|
334
|
-
NOT_FOUND
|
|
335
|
-
UNAUTHORIZED
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
schema {
|
|
339
|
-
query: Query
|
|
340
|
-
mutation: Mutation
|
|
341
|
-
}
|
|
342
|
-
`;
|