@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.
@@ -0,0 +1,601 @@
1
+ import { gql } from "graphql-tag";
2
+ import { type DocumentNode } from "graphql";
3
+
4
+ export const inventory_tracking_schema: DocumentNode = gql`
5
+ type Query {
6
+ fetchInventoryCustomers: [InventoryCustomers]
7
+ fetchInventorySuppliers: [InventorySuppliers]
8
+ fetchInventoryColumns: [InventoryColumns]
9
+ # table structure example - rawmaterial, toolacessory
10
+ fetchInventoryBasicTables: [InventoryBasicTables] # category
11
+ fetchInventorySubBasicTables: [InventorySubBasicTables]
12
+ # individual table that has array of data example - rawmaterial [], toolacessory []
13
+ fetchInventoryTable(
14
+ basicTableId: ID!
15
+ properties: JSON
16
+ companyId: ID
17
+ ): InventoryTable
18
+ fetchInventoryTables(
19
+ basicTableIds: [ID!]
20
+ properties: JSON
21
+ ): InventoryTable
22
+
23
+ fetchInventorySubCategoryTable(
24
+ basicTableId: ID!
25
+ subBasicTableId: ID!
26
+ properties: JSON
27
+ companyId: ID
28
+ ): InventorySubCategoryTable
29
+ fetchInventorySubCategoryTables(
30
+ basicTableIds: [ID!]
31
+ subBasicTableIds: [ID!]
32
+ properties: JSON
33
+ ): InventorySubCategoryTable
34
+ fetchInventoryInwards(data: [JSON], properties: JSON): InventoryInwards
35
+ fetchInventorySubCategoryInwards(
36
+ data: [JSON]
37
+ properties: JSON
38
+ ): InventoryInwards
39
+ fetchBillings(filter: JSON): [Billing]
40
+ fetchPurchaseOrders(filter: JSON): [PurchaseOrder]
41
+ fetchDataFromInwardOrOutward(
42
+ basicTableId: ID
43
+ transactionType: String
44
+ itemType: String
45
+ startDate: String
46
+ endDate: String
47
+ ): InwardOrOutWardData
48
+ fetchDataFromInwardOrOutwardSubCategoryTable(
49
+ basicTableId: ID
50
+ subBasicTableId: ID
51
+ transactionType: String
52
+ itemType: String
53
+ startDate: String
54
+ endDate: String
55
+ ): InwardOrOutWardData
56
+ fetchInventoryStatuses: [InventoryStatus]
57
+
58
+ fetchInventoryMachines: [InventoryMachines]
59
+ fetchInventoryStorages: [InventoryStorage]
60
+
61
+ fetchProjects: ProjectType
62
+ fetchAllInventoryTableItems(properties: JSON): AllInventoryTableItems
63
+ fetchAllInventorySubCategoryTableItems(
64
+ properties: JSON
65
+ ): AllInventoryTableItems
66
+ fetchInventoryWorkSchedules: InventoryWorkSchedule
67
+ fetchInventoryWorkSchedule(data: JSON): InventoryWorkSchedule
68
+ fetchInventoryImages: [Image]
69
+
70
+ fetchInventoryMaterialOrderStatus: [MaterialOrderStatus]
71
+ }
72
+
73
+ type Mutation {
74
+ addInventoryCustomer(
75
+ data: InventoryCustomerInput
76
+ ): AddInventoryCustomerResponse
77
+ editInventoryCustomer(
78
+ data: InventoryCustomerInput
79
+ id: ID!
80
+ ): GeneralResponse
81
+ deleteInventoryCustomer(id: ID!): GeneralResponse
82
+ addInventorySupplier(
83
+ data: InventorySupplierInput
84
+ ): AddInventorySupplierResponse
85
+ editInventorySupplier(
86
+ data: InventorySupplierInput
87
+ id: ID!
88
+ ): GeneralResponse
89
+ deleteInventorySupplier(id: ID!): GeneralResponse
90
+
91
+ addInventoryColumn(queryData: InventoryColumnInput): GeneralResponse
92
+ editInventoryColumn(
93
+ data: InventoryColumnInput
94
+ id: ID!
95
+ ): GeneralResponse
96
+ deleteInventoryColumn(id: ID!): GeneralResponse
97
+ # table structure example - rawmaterial, toolacessory
98
+ addInventoryBasicTable(
99
+ queryData: InventoryBasicTableInput
100
+ ): GeneralResponse
101
+ editInventoryBasicTable(
102
+ data: InventoryBasicTableInput
103
+ id: ID!
104
+ ): GeneralResponse
105
+ deleteInventoryBasicTable(id: ID!): GeneralResponse
106
+ # individual table that has array of data example - rawmaterial [], toolacessory []
107
+ addInventoryTableFor(
108
+ basicTableId: ID!
109
+ data: JSON
110
+ ): AddInventoryTableForResponse
111
+ addManyInventoryTableFor(
112
+ basicTableId: ID!
113
+ data: [JSON]
114
+ ): GeneralResponse
115
+ editInventoryTableFor(
116
+ basicTableId: ID!
117
+ tableId: ID!
118
+ data: JSON
119
+ ): GeneralResponse
120
+ editManyInventoryTableFor(data: [JSON]): GeneralResponse
121
+ deleteInventoryTableFor(
122
+ basicTableId: ID!
123
+ tableId: ID!
124
+ ): GeneralResponse
125
+ #sub basi
126
+ addInventorySubBasicTable(
127
+ queryData: InventorySubBasicTableInput
128
+ ): GeneralResponse
129
+ editInventorySubBasicTable(
130
+ data: InventorySubBasicTableInput
131
+ id: ID!
132
+ ): GeneralResponse
133
+ deleteInventorySubBasicTable(id: ID!): GeneralResponse
134
+ #sub category
135
+ addInventorySubCategoryTableFor(
136
+ basicTableId: ID!
137
+ subBasicTableId: ID!
138
+ data: JSON
139
+ ): AddInventorySubCategoryTableForResponse
140
+ addManyInventorySubCategoryTableFor(
141
+ basicTableId: ID!
142
+ subBasicTableId: ID!
143
+ data: [JSON]
144
+ ): GeneralResponse
145
+ editInventorySubCategoryTableFor(
146
+ basicTableId: ID!
147
+ subBasicTableId: ID!
148
+ tableId: ID!
149
+ data: JSON
150
+ ): GeneralResponse
151
+ editManyInventorySubCategoryTableFor(data: [JSON]): GeneralResponse
152
+ deleteInventorySubCategoryTableFor(
153
+ basicTableId: ID!
154
+ subBasicTableId: ID!
155
+ tableId: ID!
156
+ ): GeneralResponse
157
+ #add Billing
158
+ addBilling(data: BillingInput): BillingResponse
159
+ editBilling(id: ID!, data: BillingInput): GeneralResponse
160
+ #add PO
161
+ addPurchaseOrder(data: JSON): PurchaseOrderResponse
162
+ editPurchaseOrder(id: ID!, data: JSON): GeneralResponse
163
+ #add inward
164
+ addItemInInward(basicTableId: ID!, data: JSON): InwardResponse
165
+ #add outward
166
+ addItemInOutward(basicTableId: ID!, data: JSON): OutwardResponse
167
+ #to scrap
168
+ moveItemToScrap(
169
+ scrapTableId: ID!
170
+ basicTableId: ID!
171
+ data: JSON
172
+ ): GeneralResponse
173
+ #sub category
174
+ #add inward
175
+ addSubCategoryItemInInward(
176
+ basicTableId: ID!
177
+ subBasicTableId: ID!
178
+ data: JSON
179
+ ): InwardResponse
180
+ #add outward
181
+ addSubCategoryItemInOutward(
182
+ basicTableId: ID!
183
+ subBasicTableId: ID!
184
+ data: JSON
185
+ ): OutwardResponse
186
+ #to scrap
187
+ moveSubCategoryItemToScrap(
188
+ scrapTableId: ID!
189
+ scrapSubBasicTableId: String
190
+ basicTableId: ID!
191
+ subBasicTableId: ID!
192
+ data: JSON
193
+ ): GeneralResponse
194
+ #InventoryStatus#
195
+ addInventoryStatus(data: InventoryStatusInput): GeneralResponse
196
+ editInventoryStatus(
197
+ id: ID!
198
+ data: InventoryStatusInput
199
+ ): GeneralResponse
200
+ deleteInventoryStatus(id: ID!): GeneralResponse
201
+ #InventoryMachiness#
202
+ addInventoryMachine(
203
+ data: InventoryMachineInput
204
+ ): AddInventoryMachineResponse
205
+ editInventoryMachine(
206
+ id: ID!
207
+ data: InventoryMachineInput
208
+ ): GeneralResponse
209
+ deleteInventoryMachine(id: ID!): GeneralResponse
210
+ #InventoryStorage#
211
+ addInventoryStorage(
212
+ data: InventoryStorageInput
213
+ ): AddInventoryStorageResponse
214
+ editInventoryStorage(
215
+ id: ID!
216
+ data: InventoryStorageInput
217
+ ): GeneralResponse
218
+ deleteInventoryStorage(id: ID!): GeneralResponse
219
+
220
+ createProject(data: JSON): InventoryCreateProjectResponse
221
+ editProject(id: ID!, data: JSON): GeneralResponse
222
+ changeProjectStatus(id: ID!, status: Int): GeneralResponse
223
+
224
+ #change item status
225
+ changeInventoryItemStatus(
226
+ id: ID!
227
+ basicTableId: ID
228
+ subBasicTableId: String
229
+ data: JSON
230
+ ): GeneralResponse
231
+ addInventoryImage(data: ImageInput): GeneralResponse
232
+ deleteInventoryImage(id: ID!): GeneralResponse
233
+
234
+ addInventoryWorkSchedule(data: JSON): InventoryWorkScheduleResponse
235
+ editInventoryWorkSchedule(id: ID!, data: JSON): GeneralResponse
236
+ deleteInventoryWorkSchedule(id: ID!): GeneralResponse
237
+ addManyInventoryWorkSchedule(data: [JSON]): GeneralResponse
238
+ editManyInventoryWorkSchedule(data: [JSON]): GeneralResponse
239
+ deleteManyInventoryWorkSchedule(ids: [ID!]): GeneralResponse
240
+
241
+ addInventoryMaterialOrderStatus(
242
+ data: MaterialOrderStatusInput
243
+ ): GeneralResponse
244
+ editInventoryMaterialOrderStatus(
245
+ id: ID!
246
+ data: MaterialOrderStatusInput
247
+ ): GeneralResponse
248
+ deleteInventoryMaterialOrderStatus(id: ID!): GeneralResponse
249
+ }
250
+ #input
251
+ input InventoryCustomerInput {
252
+ companyId: ID
253
+ name: String
254
+ email: EmailAddress
255
+ phone: String
256
+ gstNumber: String
257
+ }
258
+ input InventorySupplierInput {
259
+ companyId: ID
260
+ name: String
261
+ email: EmailAddress
262
+ phone: String
263
+ gstNumber: String
264
+ }
265
+ input InventoryColumnInput {
266
+ dbName: String
267
+ customName: String
268
+ type: String
269
+ }
270
+ input InventoryBasicTableInput {
271
+ tableName: String
272
+ tableAlias: String
273
+ companyId: ID
274
+ columnIds: [ID]
275
+ isStock: Boolean
276
+ isVisible: Boolean
277
+ isReturnable: Boolean
278
+ isProduct: Boolean
279
+ isScrap: Boolean
280
+ }
281
+ input InventorySubBasicTableInput {
282
+ basicTableId: String
283
+ tableName: String
284
+ tableAlias: String
285
+ companyId: ID
286
+ columnIds: [ID]
287
+ }
288
+ input InventoryStatusInput {
289
+ basicTableId: ID!
290
+ message: String
291
+ color: String
292
+ }
293
+ input InventoryMachineInput {
294
+ name: String
295
+ companyId: ID!
296
+ }
297
+ input InventoryStorageInput {
298
+ name: String
299
+ companyId: ID!
300
+ }
301
+ input BillingInput {
302
+ billNumber: String
303
+ date: Date
304
+ suppliedBy: String
305
+ freight: Float
306
+ givenBy: String
307
+ isIGST: Boolean
308
+ verifiedBy: String
309
+ cgstTotal: Float
310
+ igstTotal: Float
311
+ sgstTotal: Float
312
+ roundOff: Float
313
+ totalBillValue: Float
314
+ otherThanBillExpenses: Float
315
+ loadingAndUnloadingCharges: Float
316
+ otherCharges: Float
317
+ transportedBy: String
318
+ transportAmount: Float
319
+ freightGSTPercentage: Int
320
+ #freightGSTValue: Float
321
+ pf: Float
322
+ pfGSTPercentage: Int
323
+ #pfGSTValue: Float
324
+ items: [JSON]
325
+ }
326
+ input MaterialOrderStatusInput {
327
+ supplier: ID
328
+ itemId: String
329
+ description: String
330
+ orderedDate: Date
331
+ expectedDate: Date
332
+ payment: String
333
+ status: Int
334
+ }
335
+ input ImageInput {
336
+ name: String
337
+ imgstr: String
338
+ }
339
+ type InventoryCustomerResponse {
340
+ customerId: ID!
341
+ message: String
342
+ status: String
343
+ }
344
+ type InventorySupplierResponse {
345
+ supplierId: ID!
346
+ message: String
347
+ status: String
348
+ }
349
+ type InventoryMachineResponse {
350
+ machineId: ID!
351
+ message: String
352
+ status: String
353
+ }
354
+ type InventoryStorageResponse {
355
+ storageId: ID!
356
+ message: String
357
+ status: String
358
+ }
359
+ type InventoryBillingResponse {
360
+ billingId: ID!
361
+ message: String
362
+ status: String
363
+ }
364
+ type InventoryPurchaseOrderResponse {
365
+ purchaseOrderId: ID!
366
+ message: String
367
+ status: String
368
+ }
369
+ type InventoryTableForResponse {
370
+ inventoryTableForId: ID!
371
+ message: String
372
+ status: String
373
+ }
374
+ type InventorySubCategoryTableForResponse {
375
+ inventorySubCategoryTableForId: ID!
376
+ message: String
377
+ status: String
378
+ }
379
+ type InventoryOutwardResponse {
380
+ outwardItemId: ID!
381
+ message: String
382
+ status: String
383
+ }
384
+ type InventoryInwardResponse {
385
+ inwardItemId: ID!
386
+ message: String
387
+ status: String
388
+ }
389
+ type WorkScheduleResponse {
390
+ Id: ID!
391
+ message: String
392
+ status: String
393
+ }
394
+
395
+ type CreateProjectResponse {
396
+ id: ID!
397
+ message: String
398
+ status: String
399
+ }
400
+ union AddInventoryCustomerResponse =
401
+ | InventoryCustomerResponse
402
+ | GeneralResponse
403
+ union AddInventorySupplierResponse =
404
+ | InventorySupplierResponse
405
+ | GeneralResponse
406
+
407
+ union AddInventoryMachineResponse =
408
+ | InventoryMachineResponse
409
+ | GeneralResponse
410
+ union AddInventoryStorageResponse =
411
+ | InventoryStorageResponse
412
+ | GeneralResponse
413
+ union BillingResponse = InventoryBillingResponse | GeneralResponse
414
+ union PurchaseOrderResponse =
415
+ | InventoryPurchaseOrderResponse
416
+ | GeneralResponse
417
+ union AddInventoryTableForResponse =
418
+ | InventoryTableForResponse
419
+ | GeneralResponse
420
+ union OutwardResponse = InventoryOutwardResponse | GeneralResponse
421
+ union InwardResponse = InventoryInwardResponse | GeneralResponse
422
+ union AddInventorySubCategoryTableForResponse =
423
+ | InventorySubCategoryTableForResponse
424
+ | GeneralResponse
425
+ union InventoryWorkScheduleResponse = WorkScheduleResponse | GeneralResponse
426
+ union InventoryCreateProjectResponse =
427
+ | CreateProjectResponse
428
+ | GeneralResponse
429
+ # input EqmsDeviceListInput {
430
+ # status: String
431
+ # companyId: ID
432
+ # }
433
+
434
+ # input DepartmentsInput {
435
+ # name: String
436
+ # companyId: ID
437
+ # value: String
438
+ # appType: String
439
+ # userAllowedPages: [String]
440
+ # }
441
+ # input EditManyDepartmentsInput {
442
+ # id: ID
443
+ # data: DepartmentsInput
444
+ # }
445
+ type InventoryCustomers {
446
+ id: ID!
447
+ companyId: ID!
448
+ name: String
449
+ email: EmailAddress
450
+ phone: String
451
+ gstNumber: String
452
+ }
453
+ type InventorySuppliers {
454
+ id: ID!
455
+ companyId: ID!
456
+ name: String
457
+ email: EmailAddress
458
+ phone: String
459
+ gstNumber: String
460
+ }
461
+ type InventoryColumns {
462
+ id: ID!
463
+ dbName: String
464
+ customName: String
465
+ type: String
466
+ }
467
+ type InventoryTable {
468
+ value: [JSON]
469
+ }
470
+ type InventoryBasicTables {
471
+ id: ID!
472
+ companyId: ID
473
+ tableName: String
474
+ tableAlias: String
475
+ columns: [InventoryColumns]
476
+ isStock: Boolean
477
+ isVisible: Boolean
478
+ isReturnable: Boolean
479
+ isProduct: Boolean
480
+ isScrap: Boolean
481
+ }
482
+ type InventorySubBasicTables {
483
+ id: ID!
484
+ basicTableId: ID!
485
+ companyId: ID
486
+ tableName: String
487
+ tableAlias: String
488
+ columns: [InventoryColumns]
489
+ }
490
+ type InventorySubCategoryTable {
491
+ value: [JSON]
492
+ }
493
+ type InwardOrOutWardData {
494
+ value: [JSON]
495
+ }
496
+ type InventoryStatus {
497
+ id: ID!
498
+ basicTableId: ID!
499
+ message: String
500
+ color: String
501
+ }
502
+ type InventoryMachines {
503
+ id: ID!
504
+ name: String
505
+ companyId: ID!
506
+ }
507
+ type InventoryStorage {
508
+ id: ID!
509
+ name: String
510
+ companyId: ID!
511
+ }
512
+ type ProjectType {
513
+ value: [JSON]
514
+ }
515
+ type Billing {
516
+ id: ID
517
+ billNumber: String
518
+ date: Date
519
+ suppliedBy: String
520
+ freight: Float
521
+ givenBy: String
522
+ isIGST: Boolean
523
+ verifiedBy: String
524
+ cgstTotal: Float
525
+ igstTotal: Float
526
+ sgstTotal: Float
527
+ roundOff: Float
528
+ totalBillValue: Float
529
+ otherThanBillExpenses: Float
530
+ loadingAndUnloadingCharges: Float
531
+ otherCharges: Float
532
+ transportedBy: String
533
+ transportAmount: Float
534
+ freightGSTPercentage: Int
535
+ #freightGSTValue: Float
536
+ pf: Int
537
+ pfGSTPercentage: Int
538
+ #pfGSTValue: Float
539
+ items: [JSON]
540
+ }
541
+ type PurchaseOrder {
542
+ id: ID!
543
+ no: String
544
+ projectId: String
545
+ # projectNumber: String
546
+ # projectName: String
547
+ date: String
548
+ quantity: Int
549
+ price: Int
550
+ paymentTerm: String
551
+ deliveryDate: String
552
+ expectedStartDate: String
553
+ expectedDeliveryDate: String
554
+ }
555
+ type InventoryInwards {
556
+ value: [JSON]
557
+ }
558
+ type AllInventoryTableItems {
559
+ value: [JSON]
560
+ }
561
+ type InventoryWorkSchedule {
562
+ value: [JSON]
563
+ }
564
+ type MaterialOrderStatus {
565
+ id: ID!
566
+ supplier: ID
567
+ itemId: String
568
+ description: String
569
+ orderedDate: Date
570
+ expectedDate: Date
571
+ payment: String
572
+ status: Int
573
+ }
574
+ type Image {
575
+ id: ID
576
+ name: String
577
+ imgstr: String
578
+ }
579
+ # type Machines {
580
+ # id: ID!
581
+ # name: String
582
+ # }
583
+
584
+ enum Brand {
585
+ MJTECH
586
+ }
587
+
588
+ enum ErrorType {
589
+ BAD_REQUEST
590
+ BAD_USER_INPUT
591
+ GRAPHQL_PARSE_FAILED
592
+ GRAPHQL_VALIDATION_FAILED
593
+ INTERNAL_SERVER_ERROR
594
+ NOT_FOUND
595
+ UNAUTHORIZED
596
+ }
597
+ schema {
598
+ query: Query
599
+ mutation: Mutation
600
+ }
601
+ `;