@things-factory/operato-codelingua 6.1.4

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.
Files changed (78) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/Dockerfile +16 -0
  3. package/README.md +37 -0
  4. package/_index.html +89 -0
  5. package/assets/favicon.ico +0 -0
  6. package/assets/helps/index.md +1 -0
  7. package/assets/images/hatiolab-logo.png +0 -0
  8. package/assets/images/spinner.png +0 -0
  9. package/assets/manifest/apple-1024.png +0 -0
  10. package/assets/manifest/apple-120.png +0 -0
  11. package/assets/manifest/apple-152.png +0 -0
  12. package/assets/manifest/apple-167.png +0 -0
  13. package/assets/manifest/apple-180.png +0 -0
  14. package/assets/manifest/apple-touch-icon.png +0 -0
  15. package/assets/manifest/badge-128x128.png +0 -0
  16. package/assets/manifest/chrome-splashscreen-icon-384x384.png +0 -0
  17. package/assets/manifest/chrome-touch-icon-192x192.png +0 -0
  18. package/assets/manifest/icon-128x128.png +0 -0
  19. package/assets/manifest/icon-192x192.png +0 -0
  20. package/assets/manifest/icon-512x512.png +0 -0
  21. package/assets/manifest/icon-72x72.png +0 -0
  22. package/assets/manifest/icon-96x96.png +0 -0
  23. package/assets/manifest/image-metaog.png +0 -0
  24. package/assets/manifest/maskable_icon.png +0 -0
  25. package/assets/manifest/ms-icon-144x144.png +0 -0
  26. package/assets/manifest/ms-touch-icon-144x144-precomposed.png +0 -0
  27. package/assets/manifest.json +27 -0
  28. package/client/actions/main.ts +1 -0
  29. package/client/bootstrap.ts +8 -0
  30. package/client/index.ts +1 -0
  31. package/client/pages/main.ts +33 -0
  32. package/client/reducers/main.ts +17 -0
  33. package/client/route.ts +10 -0
  34. package/client/themes/app-theme.css +142 -0
  35. package/client/tsconfig.json +12 -0
  36. package/config/config.development.js +7 -0
  37. package/config/config.production.js +41 -0
  38. package/config.development.js +7 -0
  39. package/db.sqlite +0 -0
  40. package/dist-server/controllers/index.js +5 -0
  41. package/dist-server/controllers/index.js.map +1 -0
  42. package/dist-server/controllers/openai-connection.js +26 -0
  43. package/dist-server/controllers/openai-connection.js.map +1 -0
  44. package/dist-server/index.js +6 -0
  45. package/dist-server/index.js.map +1 -0
  46. package/dist-server/routes.js +25 -0
  47. package/dist-server/routes.js.map +1 -0
  48. package/dist-server/service/index.js +14 -0
  49. package/dist-server/service/index.js.map +1 -0
  50. package/dist-server/tsconfig.tsbuildinfo +1 -0
  51. package/installer/config.production.js +40 -0
  52. package/installer/docker-compose.yml +37 -0
  53. package/installer/install.sh +54 -0
  54. package/installer/migrate.sh +1 -0
  55. package/installer/start.sh +18 -0
  56. package/installer/stop.sh +1 -0
  57. package/installer/upgrade.sh +1 -0
  58. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +30 -0
  59. package/logs/application-2023-06-25-11.log +12 -0
  60. package/logs/application-2023-06-25-12.log +34 -0
  61. package/logs/application-2023-06-25-13.log +8 -0
  62. package/openapi/unstable.yaml +41 -0
  63. package/package.json +55 -0
  64. package/schema.gql +841 -0
  65. package/server/controllers/index.ts +1 -0
  66. package/server/controllers/openai-connection.ts +27 -0
  67. package/server/index.ts +3 -0
  68. package/server/routes.ts +28 -0
  69. package/server/service/index.ts +13 -0
  70. package/server/tsconfig.json +9 -0
  71. package/things-factory.config.ts +13 -0
  72. package/translations/en.json +1 -0
  73. package/translations/ja.json +1 -0
  74. package/translations/ko.json +1 -0
  75. package/translations/ms.json +1 -0
  76. package/translations/zh.json +1 -0
  77. package/views/auth-page.html +93 -0
  78. package/views/public/home.html +83 -0
package/schema.gql ADDED
@@ -0,0 +1,841 @@
1
+ # -----------------------------------------------
2
+ # !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
3
+ # !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
4
+ # -----------------------------------------------
5
+
6
+ type AccessToken {
7
+ accesToken: String!
8
+ refreshToken: String!
9
+ }
10
+
11
+ """Any Scalar type (String, Boolean, Int, Float, Object, List)"""
12
+ scalar Any
13
+
14
+ type AppBinding {
15
+ application: Application
16
+ createdAt: Timestamp
17
+ creator: User!
18
+ description: String
19
+ domains: [Domain!]!
20
+ email: String!
21
+ id: ID!
22
+ locale: String
23
+ name: String!
24
+ owner: Boolean
25
+ reference: String
26
+ refreshToken: String
27
+ roles: [Role!]!
28
+ scope: String
29
+ status: String!
30
+ updatedAt: Timestamp
31
+ updater: User!
32
+ userType: String
33
+ }
34
+
35
+ type AppBindingList {
36
+ items: [AppBinding!]
37
+ total: Int
38
+ }
39
+
40
+ type Appliance {
41
+ accessToken: String
42
+ brand: String
43
+ createdAt: Timestamp
44
+ creator: User
45
+ description: String
46
+ domain: Domain!
47
+ id: ID!
48
+ model: String
49
+ name: String!
50
+ netmask: String
51
+ serialNo: String
52
+ updatedAt: Timestamp
53
+ updater: User
54
+ }
55
+
56
+ type ApplianceList {
57
+ items: [Appliance!]
58
+ total: Int
59
+ }
60
+
61
+ input AppliancePatch {
62
+ brand: String
63
+ description: String
64
+ id: ID
65
+ model: String
66
+ name: String
67
+ netmask: String
68
+ serialNo: String
69
+ }
70
+
71
+ type Application {
72
+ accessTokenUrl: String!
73
+ appKey: String
74
+ appSecret: String
75
+ authUrl: String!
76
+ availableScopes: String!
77
+ createdAt: Timestamp
78
+ creator: User
79
+ description: String
80
+ domain: Domain!
81
+ email: String!
82
+ icon: String
83
+ id: ID!
84
+ name: String!
85
+ redirectUrl: String!
86
+ status: String!
87
+ type: String!
88
+ updatedAt: Timestamp
89
+ updater: User
90
+ url: String!
91
+ webhook: String
92
+ }
93
+
94
+ type ApplicationList {
95
+ items: [Application!]
96
+ total: Int
97
+ }
98
+
99
+ input ApplicationPatch {
100
+ description: String
101
+ email: String
102
+ icon: String
103
+ name: String
104
+ redirectUrl: String
105
+ type: ApplicationType
106
+ url: String
107
+ webhook: String
108
+ }
109
+
110
+ """state enumeration of a application"""
111
+ enum ApplicationType {
112
+ MMS
113
+ OTHERS
114
+ SELLERCRAFT
115
+ SFTP
116
+ XERO
117
+ XILNEX
118
+ }
119
+
120
+ type Attachment {
121
+ category: String
122
+ createdAt: Timestamp!
123
+ creator: User
124
+ description: String
125
+ domain: Domain!
126
+ encoding: String!
127
+ fullpath: String!
128
+ id: ID!
129
+ mimetype: String!
130
+ name: String!
131
+ path: String!
132
+ refBy: String
133
+ refType: String
134
+ size: String!
135
+ updatedAt: Timestamp!
136
+ updater: User
137
+ }
138
+
139
+ type AttachmentList {
140
+ items: [Attachment!]!
141
+ total: Int!
142
+ }
143
+
144
+ input AttachmentPatch {
145
+ category: String
146
+ description: String
147
+ encoding: String
148
+ file: Upload
149
+ mimetype: String
150
+ name: String
151
+ refBy: String
152
+ refType: String
153
+ }
154
+
155
+ """Entity for AttributeSet"""
156
+ type AttributeSet {
157
+ createdAt: Timestamp
158
+ description: String
159
+ entity: String
160
+ id: ID!
161
+ items: [AttributeSetItem!]
162
+ updatedAt: Timestamp
163
+ }
164
+
165
+ """Entity for AttributeSetItem"""
166
+ type AttributeSetItem {
167
+ active: Boolean
168
+ description: String
169
+ hidden: Boolean
170
+ name: String!
171
+ options: Object
172
+ tag: String
173
+ type: String
174
+ }
175
+
176
+ input AttributeSetItemPatch {
177
+ active: Boolean
178
+ description: String
179
+ hidden: Boolean
180
+ name: String
181
+ options: Object
182
+ tag: String
183
+ type: AttributeSetItemType
184
+ }
185
+
186
+ """type enumeration of a attribute-set-item"""
187
+ enum AttributeSetItemType {
188
+ boolean
189
+ date
190
+ datetime
191
+ file
192
+ number
193
+ select
194
+ text
195
+ }
196
+
197
+ type AttributeSetList {
198
+ items: [AttributeSet!]!
199
+ total: Int!
200
+ }
201
+
202
+ input AttributeSetPatch {
203
+ cuFlag: String
204
+ description: String
205
+ entity: String
206
+ id: ID
207
+ items: [AttributeSetItemPatch!]
208
+ }
209
+
210
+ input CodeDecipherInput {
211
+ code: String!
212
+ language: String
213
+ system: String
214
+ }
215
+
216
+ type CodeDecipherOutput {
217
+ message: String
218
+ }
219
+
220
+ type Data {
221
+ """Data delivered by subscription"""
222
+ data: Object
223
+
224
+ """The domain where the data originated"""
225
+ domain: Domain
226
+
227
+ """Tag name attached to data"""
228
+ tag: String!
229
+ }
230
+
231
+ type Domain {
232
+ attributes: Object
233
+ brandImage: String
234
+ brandName: String
235
+ children: Domain
236
+ contentImage: String
237
+ createdAt: Timestamp
238
+ description: String
239
+ extType: String
240
+ id: ID!
241
+ name: String!
242
+ owner: String
243
+ ownerUser: User
244
+ parent: Domain
245
+ subdomain: String
246
+ systemFlag: Boolean
247
+ theme: String
248
+ timezone: String
249
+ updatedAt: Timestamp
250
+ }
251
+
252
+ input DomainGeneratorInput {
253
+ description: String
254
+ name: String!
255
+ }
256
+
257
+ input DomainInput {
258
+ description: String
259
+ name: String!
260
+ }
261
+
262
+ type DomainList {
263
+ items: [Domain!]
264
+ total: Int
265
+ }
266
+
267
+ input DomainPatch {
268
+ attributes: Object
269
+ brandImage: String
270
+ brandName: String
271
+ contentImage: String
272
+ description: String
273
+ id: String
274
+ name: String
275
+ owner: String
276
+ parent: ObjectRef
277
+ subdomain: String
278
+ systemFlag: Boolean
279
+ theme: String
280
+ timezone: String
281
+ }
282
+
283
+ input DomainUserRoleInput {
284
+ domain: DomainInput!
285
+ roles: [NewRole!]!
286
+ users: [NewUserByDomainWizardInput!]!
287
+ }
288
+
289
+ input Filter {
290
+ name: String!
291
+ operator: String!
292
+ relation: Boolean
293
+ value: Any
294
+ }
295
+
296
+ type GrantedRole {
297
+ domain: Domain!
298
+ id: ID!
299
+ role: Role!
300
+ }
301
+
302
+ enum InheritedValueType {
303
+ Include
304
+ None
305
+ Only
306
+ }
307
+
308
+ type Invitation {
309
+ createdAt: Timestamp
310
+ creator: User
311
+ email: String!
312
+ id: ID!
313
+ reference: String!
314
+ token: String!
315
+ type: String!
316
+ updatedAt: Timestamp
317
+ updater: User
318
+ }
319
+
320
+ type InvitationList {
321
+ items: [Invitation!]
322
+ total: Int
323
+ }
324
+
325
+ type LoginHistory {
326
+ accessDomain: Domain!
327
+ accessUser: User!
328
+ accessedAt: Timestamp
329
+ accessorIp: String
330
+ id: ID!
331
+ }
332
+
333
+ type Mutation {
334
+ """To activate user"""
335
+ activateUser(userId: String!): Boolean!
336
+ cancelInvitation(email: String!, reference: String!, type: String!): Boolean!
337
+
338
+ """To create new appliance"""
339
+ createAppliance(appliance: NewAppliance!): Appliance!
340
+
341
+ """To create new application"""
342
+ createApplication(application: NewApplication!): Application!
343
+ createAttachment(attachment: NewAttachment!): Attachment!
344
+ createAttachments(attachments: [NewAttachment!]!): [Attachment!]!
345
+
346
+ """To create new AttributeSet"""
347
+ createAttributeSet(attribute: NewAttributeSet!): AttributeSet!
348
+
349
+ """To create domain (Only superuser is granted this privilege.)"""
350
+ createDomain(domainInput: DomainPatch!): Domain!
351
+
352
+ """To create new privilege"""
353
+ createPrivilege(privilege: NewPrivilege!): Privilege!
354
+
355
+ """To create new user"""
356
+ createRole(role: NewRole!): User!
357
+
358
+ """To create new Terminology"""
359
+ createTerminology(terminology: NewTerminology!): Terminology!
360
+
361
+ """To create new user"""
362
+ createUser(user: NewUser!): User!
363
+ deleteAppBinding(id: String!): Boolean!
364
+
365
+ """To delete appliance"""
366
+ deleteAppliance(id: String!): Boolean!
367
+
368
+ """To delete application"""
369
+ deleteApplication(id: String!): Boolean!
370
+ deleteAttachment(id: String!): Boolean!
371
+ deleteAttachmentsByRef(refBys: [String!]!): Boolean!
372
+
373
+ """To delete AttributeSet"""
374
+ deleteAttributeSet(id: String!): Boolean!
375
+
376
+ """To delete multiple AttributeSets"""
377
+ deleteAttributeSets(ids: [String!]!): Boolean!
378
+
379
+ """To delete domain (Only superuser is granted this privilege.)"""
380
+ deleteDomain(name: String!): Domain!
381
+
382
+ """To delete domain user"""
383
+ deleteDomainUser(email: String!): Boolean!
384
+
385
+ """To delete multiple domains (Only superuser is granted this privilege.)"""
386
+ deleteDomains(names: [String!]!): Boolean!
387
+
388
+ """To delete privilege"""
389
+ deletePrivilege(category: String!, name: String!): Boolean!
390
+
391
+ """To delete role"""
392
+ deleteRole(id: String!): Boolean!
393
+
394
+ """To delete multiple roles"""
395
+ deleteRoles(ids: [String!]!): Boolean!
396
+
397
+ """To delete multiple Terminologies"""
398
+ deleteTerminologies(ids: [String!]!): Boolean!
399
+
400
+ """To delete Terminology"""
401
+ deleteTerminology(id: String!): Boolean!
402
+
403
+ """To delete a user"""
404
+ deleteUser(email: String!): Boolean!
405
+
406
+ """To delete some users"""
407
+ deleteUsers(emails: [String!]!): Boolean!
408
+ domainRegister(domainInput: DomainGeneratorInput!): Domain!
409
+ domainUserRoleRegister(newDomainInfo: DomainUserRoleInput!): Domain!
410
+ generateApplianceSecret(id: String!): Appliance!
411
+ generateApplicationSecret(id: String!): Application!
412
+ generateUploadURL(type: String!): UploadURL!
413
+ grantRoles(customerId: String!, roles: [RolePatch!]!): Boolean!
414
+
415
+ """To import multiple AttributeSets"""
416
+ importAttributeSets(attributes: [AttributeSetPatch!]!): Boolean!
417
+
418
+ """To import multiple Terminologies"""
419
+ importTerminologies(terminologies: [TerminologyPatch!]!): Boolean!
420
+
421
+ """To inactivate user"""
422
+ inactivateUser(userId: String!): Boolean!
423
+ inviteCustomer(customerDomainName: String!): Boolean!
424
+
425
+ """To invite new user"""
426
+ inviteUser(email: String!): Boolean!
427
+ multipleUpload(files: [Upload!]!): [Attachment!]!
428
+ renewApplicationAccessToken(id: String!, scope: String!): AccessToken!
429
+
430
+ """To reset password to default"""
431
+ resetPasswordToDefault(userId: String!): Boolean!
432
+ sendInvitation(email: String!, reference: String!, type: String!): Invitation!
433
+ singleUpload(file: Upload!): Attachment!
434
+
435
+ """
436
+ To synchronize privilege master from graphql directives. Only superuser is permitted.
437
+ """
438
+ synchronizePrivilegeMaster(privilege: NewPrivilege!): Boolean!
439
+ terminateContract(partnerName: String!): Boolean!
440
+
441
+ """To transfer owner of domain"""
442
+ transferOwner(email: String!): Boolean!
443
+ updateAppliance(id: String!, patch: AppliancePatch!): Appliance!
444
+ updateApplication(id: String!, patch: ApplicationPatch!): Application!
445
+ updateAttachment(id: String!, patch: AttachmentPatch!): Attachment!
446
+
447
+ """To modify AttributeSet information"""
448
+ updateAttributeSet(id: String!, patch: AttributeSetPatch!): AttributeSet!
449
+
450
+ """To update domain (Only superuser is granted this privilege.)"""
451
+ updateDomain(name: String!, patch: DomainPatch!): Domain!
452
+
453
+ """To update multiple domains (Only superuser is granted this privilege.)"""
454
+ updateDomains(patches: [DomainPatch!]!): Boolean!
455
+
456
+ """To modify multiple AttributeSets' information"""
457
+ updateMultipleAttributeSet(patches: [AttributeSetPatch!]!): [AttributeSet!]!
458
+
459
+ """To modify multiple Terminologies' information"""
460
+ updateMultipleTerminologies(patches: [TerminologyPatch!]!): [Terminology!]!
461
+
462
+ """To modify multiple users information"""
463
+ updateMultipleUser(patches: [UserPatch!]!): [User!]!
464
+
465
+ """To modify privilege information"""
466
+ updatePrivilege(category: String!, name: String!, patch: PrivilegePatch!): Privilege!
467
+
468
+ """To modify role information"""
469
+ updateRole(id: String!, patch: RolePatch!): Role!
470
+
471
+ """To modify Terminology information"""
472
+ updateTerminology(id: String!, patch: TerminologyPatch!): Terminology!
473
+
474
+ """To modify user information"""
475
+ updateUser(email: String!, patch: UserPatch!): User!
476
+
477
+ """To update roles for a user"""
478
+ updateUserRoles(availableRoles: [ObjectRef!]!, selectedRoles: [ObjectRef!]!, userId: String!): User!
479
+ }
480
+
481
+ input NewAppliance {
482
+ brand: String!
483
+ description: String
484
+ model: String!
485
+ name: String!
486
+ netmask: String
487
+ serialNo: String!
488
+ }
489
+
490
+ input NewApplication {
491
+ description: String
492
+ email: String
493
+ icon: String
494
+ name: String!
495
+ redirectUrl: String
496
+ type: ApplicationType
497
+ url: String
498
+ webhook: String
499
+ }
500
+
501
+ input NewAttachment {
502
+ category: String
503
+ description: String
504
+ file: Upload!
505
+ refBy: String
506
+ refType: String
507
+ }
508
+
509
+ input NewAttributeSet {
510
+ active: Boolean
511
+ description: String
512
+ entity: String!
513
+ items: [AttributeSetItemPatch!]
514
+ }
515
+
516
+ input NewPrivilege {
517
+ category: String!
518
+ description: String
519
+ name: String!
520
+ roles: [ObjectRef!]
521
+ }
522
+
523
+ input NewRole {
524
+ description: String
525
+ name: String!
526
+ privileges: [ObjectRef!]
527
+ users: [ObjectRef!]
528
+ }
529
+
530
+ input NewTerminology {
531
+ category: String!
532
+ description: String
533
+ display: String!
534
+ locale: String!
535
+ name: String!
536
+ }
537
+
538
+ input NewUser {
539
+ description: String
540
+ email: String!
541
+ name: String!
542
+ password: String
543
+ roles: [ObjectRef!]
544
+ userType: String
545
+ }
546
+
547
+ input NewUserByDomainWizardInput {
548
+ email: String!
549
+ isInvitee: Boolean
550
+ name: String!
551
+ owner: Boolean!
552
+ password: String
553
+ roles: [NewRole!]!
554
+ }
555
+
556
+ """Can be anything"""
557
+ scalar Object
558
+
559
+ input ObjectRef {
560
+ """Field description"""
561
+ description: String
562
+
563
+ """Field id"""
564
+ id: ID!
565
+
566
+ """Field name"""
567
+ name: String
568
+ }
569
+
570
+ input Pagination {
571
+ limit: Int
572
+ page: Int
573
+ }
574
+
575
+ type Partner {
576
+ approvedAt: Timestamp!
577
+ approver: User
578
+ domain: Domain!
579
+ id: ID!
580
+ partnerDomain: Domain!
581
+ requestedAt: Timestamp!
582
+ requester: User
583
+ }
584
+
585
+ type PartnerList {
586
+ items: [Partner!]
587
+ total: Int
588
+ }
589
+
590
+ type Privilege {
591
+ category: String
592
+ createdAt: Timestamp
593
+ creator: User
594
+ description: String
595
+ id: ID!
596
+ name: String!
597
+ roles: [Role!]
598
+ updatedAt: Timestamp
599
+ updater: User
600
+ }
601
+
602
+ type PrivilegeList {
603
+ items: [Privilege!]
604
+ total: Int
605
+ }
606
+
607
+ input PrivilegePatch {
608
+ category: String
609
+ description: String
610
+ id: String
611
+ name: String
612
+ roles: [ObjectRef!]
613
+ }
614
+
615
+ type Query {
616
+ appBinding(id: String!): AppBinding!
617
+ appBindings(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): AppBindingList!
618
+
619
+ """ To fetch appliance"""
620
+ appliance(id: String!): Appliance!
621
+
622
+ """To fetch multiple appliance"""
623
+ appliances(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ApplianceList!
624
+
625
+ """To fetch application"""
626
+ application(id: String!): Application!
627
+
628
+ """To fetch multiple application"""
629
+ applications(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ApplicationList!
630
+ attachment(id: String!): Attachment!
631
+ attachments(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): AttachmentList!
632
+
633
+ """To fetch a AttributeSet"""
634
+ attributeSet(id: String!): AttributeSet
635
+
636
+ """To fetch a AttributeSet by Entity name"""
637
+ attributeSetByEntity(entity: String!): AttributeSet
638
+
639
+ """To fetch multiple AttributeSets"""
640
+ attributeSets(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): AttributeSetList!
641
+
642
+ """To check if system would provide default password to create new user"""
643
+ checkDefaultPassword: Boolean!
644
+
645
+ """To check if system would provide default password to create new user"""
646
+ checkResettablePasswordToDefault: Boolean!
647
+
648
+ """To fetch the preset of role for new user"""
649
+ checkRolePreset: [Role!]!
650
+
651
+ """To check if current user is belongs to current domain"""
652
+ checkUserBelongsDomain: Boolean!
653
+
654
+ """..."""
655
+ checkUserExistence(email: String!): Boolean!
656
+ codeDecipher(input: CodeDecipherInput!): CodeDecipherOutput!
657
+ customers: [Domain!]!
658
+
659
+ """To fetch domain"""
660
+ domain(id: String!): Domain!
661
+
662
+ """To fetch all domains (Only superuser is granted this privilege.)"""
663
+ domains(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DomainList!
664
+ grantedRoles: [GrantedRole!]!
665
+ grantingRoles(customerId: String!): [GrantedRole!]!
666
+
667
+ """To query whether I have the given permission"""
668
+ hasPrivilege(category: String!, name: String!): Boolean!
669
+ invitation(email: String!, reference: String!, type: String!): Invitation!
670
+ invitations(reference: String!, type: String!): InvitationList!
671
+ myLoginHistories(limit: Float!): [LoginHistory!]!
672
+
673
+ """To fetch roles of current user"""
674
+ myRoles: [Role!]!
675
+ partners(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PartnerList!
676
+
677
+ """To fetch privilege"""
678
+ privilege(category: String!, name: String!): Privilege!
679
+
680
+ """To fetch multiple privileges"""
681
+ privileges(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PrivilegeList!
682
+
683
+ """To fetch role"""
684
+ role(name: String!): Role!
685
+
686
+ """To fetch priviliges of a role"""
687
+ rolePrivileges(roleId: String!): [RolePrivilege!]!
688
+
689
+ """To fetch multiple users"""
690
+ roles(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): RoleList!
691
+ searchCustomers(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DomainList!
692
+
693
+ """To fetch multiple Terminologies"""
694
+ terminologies(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): TerminologyList!
695
+
696
+ """To fetch a Terminology"""
697
+ terminology(id: String!): Terminology!
698
+
699
+ """To fetch user"""
700
+ user(email: String!): User!
701
+
702
+ """To fetch roles of a user"""
703
+ userRoles(userId: String!): [UserRole!]!
704
+
705
+ """To fetch multiple users"""
706
+ users(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): UserList!
707
+ vendors: [Domain!]!
708
+ }
709
+
710
+ type Role {
711
+ createdAt: Timestamp
712
+ creator: User
713
+ description: String
714
+ domain: Domain!
715
+ id: ID!
716
+ name: String!
717
+ privileges: [Privilege!]
718
+ updatedAt: Timestamp
719
+ updater: User
720
+ users: [User!]
721
+ }
722
+
723
+ type RoleList {
724
+ items: [Role!]
725
+ total: Int
726
+ }
727
+
728
+ input RolePatch {
729
+ cuFlag: String
730
+ description: String
731
+ id: String
732
+ name: String
733
+ privileges: [ObjectRef!]
734
+ users: [ObjectRef!]
735
+ }
736
+
737
+ type RolePrivilege {
738
+ assigned: Boolean
739
+ category: String
740
+ description: String
741
+ id: String
742
+ name: String
743
+ }
744
+
745
+ input Sorting {
746
+ """
747
+ Set to true if descending sort. Default is "false"
748
+ """
749
+ desc: Boolean
750
+
751
+ """Field name to sort by"""
752
+ name: String!
753
+ }
754
+
755
+ type Subscription {
756
+ data(tag: String!): Data!
757
+ }
758
+
759
+ """Entity for Terminology"""
760
+ type Terminology {
761
+ category: String!
762
+ createdAt: Timestamp
763
+ description: String
764
+ display: String!
765
+ domain: Domain
766
+ id: ID!
767
+ locale: String!
768
+ name: String!
769
+ updatedAt: Timestamp
770
+ }
771
+
772
+ type TerminologyList {
773
+ items: [Terminology!]!
774
+ total: Int!
775
+ }
776
+
777
+ input TerminologyPatch {
778
+ category: String!
779
+ cuFlag: String
780
+ description: String
781
+ display: String!
782
+ id: ID
783
+ locale: String!
784
+ name: String
785
+ }
786
+
787
+ """
788
+ The javascript `Date` as integer. Type represents date and time as number of milliseconds from start of UNIX epoch.
789
+ """
790
+ scalar Timestamp
791
+
792
+ """The `Upload` scalar type represents a file upload."""
793
+ scalar Upload
794
+
795
+ type UploadURL {
796
+ fields: Any!
797
+ url: String!
798
+ }
799
+
800
+ type User {
801
+ createdAt: Timestamp
802
+ creator: User
803
+ description: String
804
+ domains: [Domain!]!
805
+ email: String!
806
+ id: ID!
807
+ locale: String
808
+ name: String!
809
+ owner: Boolean
810
+ reference: String
811
+ roles: [Role!]!
812
+ status: String!
813
+ updatedAt: Timestamp
814
+ updater: User
815
+ userType: String
816
+ }
817
+
818
+ type UserList {
819
+ items: [User!]
820
+ total: Int
821
+ }
822
+
823
+ input UserPatch {
824
+ cuFlag: String
825
+ description: String
826
+ domains: [ObjectRef!]
827
+ email: String
828
+ id: ID
829
+ name: String
830
+ password: String
831
+ roles: [ObjectRef!]
832
+ status: String
833
+ userType: String
834
+ }
835
+
836
+ type UserRole {
837
+ assigned: Boolean
838
+ description: String
839
+ id: String
840
+ name: String
841
+ }