@operato/scene-scichart 7.2.8 → 7.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/db.sqlite +0 -0
  3. package/dist/charts/ox-scichart-multiple.d.ts +1 -0
  4. package/dist/charts/ox-scichart-multiple.js +24 -0
  5. package/dist/charts/ox-scichart-multiple.js.map +1 -1
  6. package/dist/charts/ox-scichart.d.ts +1 -0
  7. package/dist/charts/ox-scichart.js +15 -0
  8. package/dist/charts/ox-scichart.js.map +1 -1
  9. package/dist/charts/scichart-builder.js +33 -1
  10. package/dist/charts/scichart-builder.js.map +1 -1
  11. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +3 -48
  12. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +3 -103
  13. package/logs/{application-2024-08-03-11.log → application-2024-09-10-23.log} +8 -8
  14. package/logs/connections-2024-09-10-23.log +50 -0
  15. package/package.json +3 -3
  16. package/schema.graphql +261 -19
  17. package/src/charts/ox-scichart-multiple.ts +30 -0
  18. package/src/charts/ox-scichart.ts +18 -0
  19. package/src/charts/scichart-builder.ts +35 -2
  20. package/tsconfig.tsbuildinfo +1 -1
  21. package/dist/charts/ox-scichart-multiple copy.d.ts +0 -53
  22. package/dist/charts/ox-scichart-multiple copy.js +0 -411
  23. package/dist/charts/ox-scichart-multiple copy.js.map +0 -1
  24. package/dist/charts/scichart-builder copy.d.ts +0 -22
  25. package/dist/charts/scichart-builder copy.js +0 -420
  26. package/dist/charts/scichart-builder copy.js.map +0 -1
  27. package/dist/charts/scichart-overview-builder.d.ts +0 -13
  28. package/dist/charts/scichart-overview-builder.js +0 -219
  29. package/dist/charts/scichart-overview-builder.js.map +0 -1
  30. package/logs/application-2024-08-03-01.log +0 -210
  31. package/logs/application-2024-08-03-02.log +0 -105
  32. package/logs/application-2024-08-03-13.log +0 -105
  33. package/logs/application-2024-08-03-14.log +0 -105
  34. package/logs/application-2024-08-03-15.log +0 -210
  35. package/logs/application-2024-08-04-01.log +0 -105
  36. package/logs/application-2024-08-04-04.log +0 -420
  37. package/logs/application-2024-08-04-18.log +0 -2
  38. package/logs/application-2024-08-04-19.log +0 -105
  39. package/logs/connections-2024-07-23-14.log +0 -50
  40. package/logs/connections-2024-07-25-23.log +0 -50
  41. package/logs/connections-2024-07-26-18.log +0 -50
  42. package/logs/connections-2024-07-28-03.log +0 -50
  43. package/logs/connections-2024-07-28-17.log +0 -200
  44. package/logs/connections-2024-07-28-18.log +0 -100
  45. package/logs/connections-2024-07-29-01.log +0 -50
  46. package/logs/connections-2024-07-29-14.log +0 -50
  47. package/logs/connections-2024-07-29-16.log +0 -50
  48. package/logs/connections-2024-07-31-09.log +0 -50
  49. package/logs/connections-2024-08-02-17.log +0 -50
  50. package/logs/connections-2024-08-02-18.log +0 -50
  51. package/logs/connections-2024-08-03-01.log +0 -100
  52. package/logs/connections-2024-08-03-02.log +0 -50
  53. package/logs/connections-2024-08-03-11.log +0 -50
  54. package/logs/connections-2024-08-03-13.log +0 -50
  55. package/logs/connections-2024-08-03-14.log +0 -50
  56. package/logs/connections-2024-08-03-15.log +0 -100
  57. package/logs/connections-2024-08-04-01.log +0 -50
  58. package/logs/connections-2024-08-04-04.log +0 -200
  59. package/logs/connections-2024-08-04-19.log +0 -50
package/schema.graphql CHANGED
@@ -201,6 +201,7 @@ type Attachment {
201
201
  refBy: String
202
202
  refType: String
203
203
  size: String!
204
+ tags: Object
204
205
  updatedAt: DateTimeISO!
205
206
  updater: User
206
207
  }
@@ -219,6 +220,7 @@ input AttachmentPatch {
219
220
  name: String
220
221
  refBy: String
221
222
  refType: String
223
+ tags: Object
222
224
  }
223
225
 
224
226
  """Entity for AttributeSet"""
@@ -747,7 +749,7 @@ scalar EmailAddress @specifiedBy(url: "https://html.spec.whatwg.org/multipage/in
747
749
  """Entity for Employee"""
748
750
  type Employee {
749
751
  active: Boolean
750
- address: String!
752
+ address: String
751
753
  alias: String
752
754
  approvalLines: [ApprovalLine!]!
753
755
  contact: Contact
@@ -787,9 +789,10 @@ type EmployeeList {
787
789
  input EmployeePatch {
788
790
  active: Boolean
789
791
  alias: String
792
+ contact: ObjectRefForContact
790
793
  controlNo: String
791
794
  cuFlag: String
792
- department: ObjectRef
795
+ department: ObjectRefForDepartment
793
796
  hiredOn: String
794
797
  id: ID
795
798
  jobPosition: String
@@ -1502,7 +1505,9 @@ type Mutation {
1502
1505
  """To activate user"""
1503
1506
  activateUser(userId: String!): Boolean!
1504
1507
 
1505
- """To attach a contact on Employee"""
1508
+ """
1509
+ Attaches an existing contact to an employee. The contact is identified by its ID and the employee is identified by their ID.
1510
+ """
1506
1511
  attachContact(contactId: String!, id: String!): Employee!
1507
1512
  cancelInvitation(email: EmailAddress!, reference: String!, type: String!): Boolean!
1508
1513
 
@@ -1559,7 +1564,9 @@ type Mutation {
1559
1564
  """To create domain (Only superuser is granted this privilege.)"""
1560
1565
  createDomain(domainInput: DomainPatch!): Domain!
1561
1566
 
1562
- """To create new Employee"""
1567
+ """
1568
+ Creates a new employee record with the provided details. Optionally associates the employee with a supervisor, department, and system user. If a photo is provided, it will be attached to the employee record.
1569
+ """
1563
1570
  createEmployee(employee: NewEmployee!): Employee!
1564
1571
 
1565
1572
  """To create new Entity"""
@@ -1610,6 +1617,12 @@ type Mutation {
1610
1617
  """To create new Oauth2Client"""
1611
1618
  createOauth2Client(oauth2Client: NewOauth2Client!): Oauth2Client!
1612
1619
 
1620
+ """To create new PDFRelease"""
1621
+ createPDFRelease(pdfRelease: NewPDFRelease!): PDFRelease!
1622
+
1623
+ """To create new PDFTemplate"""
1624
+ createPDFTemplate(pdfTemplate: NewPDFTemplate!): PDFTemplate!
1625
+
1613
1626
  """To create new PayloadLog"""
1614
1627
  createPayloadLog(payloadLog: NewPayloadLog!): PayloadLog!
1615
1628
 
@@ -1716,10 +1729,14 @@ type Mutation {
1716
1729
  """To delete multiple domains (Only superuser is granted this privilege.)"""
1717
1730
  deleteDomains(names: [String!]!): Boolean!
1718
1731
 
1719
- """To delete Employee"""
1732
+ """
1733
+ Deletes an employee record identified by the given ID. Also deletes any attachments associated with the employee.
1734
+ """
1720
1735
  deleteEmployee(id: String!): Boolean!
1721
1736
 
1722
- """To delete multiple Employees"""
1737
+ """
1738
+ Deletes multiple employee records identified by the given IDs. Also deletes any attachments associated with each employee.
1739
+ """
1723
1740
  deleteEmployees(ids: [String!]!): Boolean!
1724
1741
 
1725
1742
  """To delete multiple Entities"""
@@ -1809,6 +1826,18 @@ type Mutation {
1809
1826
  """To delete multiple Oauth2Clients"""
1810
1827
  deleteOauth2Clients(ids: [String!]!): Boolean!
1811
1828
 
1829
+ """To delete PDFRelease"""
1830
+ deletePDFRelease(id: String!): Boolean!
1831
+
1832
+ """To delete multiple PDFReleases"""
1833
+ deletePDFReleases(ids: [String!]!): Boolean!
1834
+
1835
+ """To delete PDFTemplate"""
1836
+ deletePDFTemplate(id: String!): Boolean!
1837
+
1838
+ """To delete multiple PDFTemplates"""
1839
+ deletePDFTemplates(ids: [String!]!): Boolean!
1840
+
1812
1841
  """To delete PagePreference"""
1813
1842
  deletePagePreference(id: String!): Boolean!
1814
1843
 
@@ -1887,7 +1916,9 @@ type Mutation {
1887
1916
  """To delete some users"""
1888
1917
  deleteUsers(emails: [String!]!): Boolean!
1889
1918
 
1890
- """To detach a contact from Employee"""
1919
+ """
1920
+ Detaches an existing contact from an employee. The employee is identified by their ID.
1921
+ """
1891
1922
  detachContact(id: String!): Employee!
1892
1923
 
1893
1924
  """To disconnect a connection"""
@@ -1929,7 +1960,9 @@ type Mutation {
1929
1960
  """To import multiple Departments"""
1930
1961
  importDepartments(departments: [DepartmentPatch!]!): Boolean!
1931
1962
 
1932
- """To import multiple Employees"""
1963
+ """
1964
+ Imports multiple employee records into the system. Each employee record must be provided in the EmployeePatch format.
1965
+ """
1933
1966
  importEmployees(employees: [EmployeePatch!]!): Boolean!
1934
1967
 
1935
1968
  """To import multiple MenuButtons"""
@@ -1956,6 +1989,12 @@ type Mutation {
1956
1989
  """To import multiple Oauth2Clients"""
1957
1990
  importOauth2Clients(oauth2Clients: [Oauth2ClientPatch!]!): Boolean!
1958
1991
 
1992
+ """To import multiple PDFReleases"""
1993
+ importPDFReleases(pdfReleases: [PDFReleasePatch!]!): Boolean!
1994
+
1995
+ """To import multiple PDFTemplates"""
1996
+ importPDFTemplates(pdfTemplates: [PDFTemplatePatch!]!): Boolean!
1997
+
1959
1998
  """To import multiple scenarios"""
1960
1999
  importScenarios(scenarios: [ScenarioPatch!]!): Boolean!
1961
2000
 
@@ -2003,6 +2042,14 @@ type Mutation {
2003
2042
  visibility: String!
2004
2043
  ): BoardTemplate!
2005
2044
 
2045
+ """
2046
+ Registers an existing employee as a system user, granting them access to the system. The employee is identified by their ID.
2047
+ """
2048
+ registerEmployeeAsSystemUser(
2049
+ """Employee Id"""
2050
+ employeeId: String!
2051
+ ): Boolean!
2052
+
2006
2053
  """To release a Board"""
2007
2054
  releaseBoard(id: String!): Board!
2008
2055
  renewApplicationAccessToken(id: String!, scope: String!): AccessToken!
@@ -2092,7 +2139,9 @@ type Mutation {
2092
2139
  """To update multiple domains (Only superuser is granted this privilege.)"""
2093
2140
  updateDomains(patches: [DomainPatch!]!): Boolean!
2094
2141
 
2095
- """To modify Employee information"""
2142
+ """
2143
+ Updates the details of an existing employee identified by the given ID. Optionally updates the supervisor, department, system user, and photo associated with the employee.
2144
+ """
2096
2145
  updateEmployee(id: String!, patch: EmployeePatch!): Employee!
2097
2146
 
2098
2147
  """To modify Entity' information"""
@@ -2147,7 +2196,9 @@ type Mutation {
2147
2196
  """To modify multiple Departments' information"""
2148
2197
  updateMultipleDepartment(patches: [DepartmentPatch!]!): [Department!]!
2149
2198
 
2150
- """To modify multiple Employees' information"""
2199
+ """
2200
+ Updates or creates multiple employee records based on the provided patches. New employees are created if the "cuFlag" is "+", and existing employees are updated if the "cuFlag" is "M".
2201
+ """
2151
2202
  updateMultipleEmployee(patches: [EmployeePatch!]!): [Employee!]!
2152
2203
 
2153
2204
  """To modify multiple Entitys' information"""
@@ -2168,6 +2219,12 @@ type Mutation {
2168
2219
  """To modify multiple NotificationRules' information"""
2169
2220
  updateMultipleNotificationRule(patches: [NotificationRulePatch!]!): [NotificationRule!]!
2170
2221
 
2222
+ """To modify multiple PDFReleases' information"""
2223
+ updateMultiplePDFRelease(patches: [PDFReleasePatch!]!): [PDFRelease!]!
2224
+
2225
+ """To modify multiple PDFTemplates' information"""
2226
+ updateMultiplePDFTemplate(patches: [PDFTemplatePatch!]!): [PDFTemplate!]!
2227
+
2171
2228
  """To modify multiple PartnerSettings' information"""
2172
2229
  updateMultiplePartnerSetting(patches: [PartnerSettingPatch!]!): [PartnerSetting!]!
2173
2230
 
@@ -2216,6 +2273,12 @@ type Mutation {
2216
2273
  """To modify Oauth2Client information"""
2217
2274
  updateOauth2Client(id: String!, patch: Oauth2ClientPatch!): Oauth2Client!
2218
2275
 
2276
+ """To modify PDFRelease information"""
2277
+ updatePDFRelease(id: String!, patch: PDFReleasePatch!): PDFRelease!
2278
+
2279
+ """To modify PDFTemplate information"""
2280
+ updatePDFTemplate(id: String!, patch: PDFTemplatePatch!): PDFTemplate!
2281
+
2219
2282
  """To modify PayloadLog information"""
2220
2283
  updatePayloadLog(id: String!, patch: PayloadLogPatch!): PayloadLog!
2221
2284
 
@@ -2302,6 +2365,7 @@ input NewAttachment {
2302
2365
  file: Upload!
2303
2366
  refBy: String
2304
2367
  refType: String
2368
+ tags: Object
2305
2369
  }
2306
2370
 
2307
2371
  input NewAttributeSet {
@@ -2386,8 +2450,9 @@ input NewDepartment {
2386
2450
  input NewEmployee {
2387
2451
  active: Boolean
2388
2452
  alias: String
2453
+ contact: ObjectRefForContact
2389
2454
  controlNo: String!
2390
- department: ObjectRef
2455
+ department: ObjectRefForDepartment
2391
2456
  extension: String
2392
2457
  hiredOn: String
2393
2458
  jobPosition: String
@@ -2663,6 +2728,28 @@ input NewOauth2Client {
2663
2728
  webhook: String
2664
2729
  }
2665
2730
 
2731
+ input NewPDFRelease {
2732
+ active: Boolean
2733
+ description: String
2734
+ name: String!
2735
+ params: String
2736
+ state: PDFReleaseStatus
2737
+ }
2738
+
2739
+ input NewPDFTemplate {
2740
+ active: Boolean
2741
+ content_template: String
2742
+ cover_template: String
2743
+ description: String
2744
+ footer_template: String
2745
+ header_template: String
2746
+ last_template: String
2747
+ name: String!
2748
+ page_size: String = "A4"
2749
+ state: PDFTemplateStatus
2750
+ watermark: String
2751
+ }
2752
+
2666
2753
  input NewPagePreference {
2667
2754
  element: String
2668
2755
  page: String
@@ -2968,6 +3055,34 @@ input ObjectRefApprovalLineOwnerType {
2968
3055
  name: String
2969
3056
  }
2970
3057
 
3058
+ input ObjectRefForContact {
3059
+ address: String
3060
+
3061
+ """Field description"""
3062
+ description: String
3063
+ email: EmailAddress
3064
+
3065
+ """Field id"""
3066
+ id: ID!
3067
+
3068
+ """Field name"""
3069
+ name: String
3070
+ phone: String
3071
+ }
3072
+
3073
+ input ObjectRefForDepartment {
3074
+ controlNo: String
3075
+
3076
+ """Field description"""
3077
+ description: String
3078
+
3079
+ """Field id"""
3080
+ id: ID!
3081
+
3082
+ """Field name"""
3083
+ name: String
3084
+ }
3085
+
2971
3086
  input ObjectRefForEmployee {
2972
3087
  active: Boolean
2973
3088
  alias: String
@@ -3024,6 +3139,92 @@ enum OrgMemberTargetType {
3024
3139
  Role
3025
3140
  }
3026
3141
 
3142
+ """Entity for PDFRelease"""
3143
+ type PDFRelease {
3144
+ active: Boolean
3145
+ createdAt: DateTimeISO
3146
+ creator: User
3147
+ deletedAt: DateTimeISO
3148
+ description: String
3149
+ domain: Domain
3150
+ filePath: String
3151
+ fileUrl: String
3152
+ id: ID!
3153
+ name: String
3154
+ state: String
3155
+ template: PDFTemplate!
3156
+ templateId: String!
3157
+ updatedAt: DateTimeISO
3158
+ updater: User
3159
+ }
3160
+
3161
+ type PDFReleaseList {
3162
+ items: [PDFRelease!]!
3163
+ total: Int!
3164
+ }
3165
+
3166
+ input PDFReleasePatch {
3167
+ active: Boolean
3168
+ cuFlag: String
3169
+ description: String
3170
+ id: ID
3171
+ name: String
3172
+ state: PDFReleaseStatus
3173
+ }
3174
+
3175
+ """state enumeration of a PDFRelease"""
3176
+ enum PDFReleaseStatus {
3177
+ failed
3178
+ published
3179
+ }
3180
+
3181
+ """Entity for PDFTemplate"""
3182
+ type PDFTemplate {
3183
+ active: Boolean
3184
+ content_template: String
3185
+ cover_template: String
3186
+ createdAt: DateTimeISO
3187
+ creator: User
3188
+ description: String
3189
+ domain: Domain
3190
+ footer_template: String
3191
+ header_template: String
3192
+ id: ID!
3193
+ last_template: String
3194
+ name: String
3195
+ page_size: String
3196
+ state: String
3197
+ updatedAt: DateTimeISO
3198
+ updater: User
3199
+ watermark: String
3200
+ }
3201
+
3202
+ type PDFTemplateList {
3203
+ items: [PDFTemplate!]!
3204
+ total: Int!
3205
+ }
3206
+
3207
+ input PDFTemplatePatch {
3208
+ active: Boolean
3209
+ content_template: String
3210
+ cover_template: String
3211
+ cuFlag: String
3212
+ description: String
3213
+ footer_template: String
3214
+ header_template: String
3215
+ id: ID
3216
+ last_template: String
3217
+ name: String
3218
+ page_size: String = "A4"
3219
+ state: PDFTemplateStatus
3220
+ }
3221
+
3222
+ """state enumeration of a PDF Template"""
3223
+ enum PDFTemplateStatus {
3224
+ draft
3225
+ released
3226
+ }
3227
+
3027
3228
  """Entity for PagePreference"""
3028
3229
  type PagePreference {
3029
3230
  createdAt: DateTimeISO
@@ -3094,6 +3295,18 @@ input PartnerSettingPatch {
3094
3295
  value: String
3095
3296
  }
3096
3297
 
3298
+ type PasswordRule {
3299
+ allowRepeat: Boolean
3300
+ digit: Boolean
3301
+ looseCharacterLength: Float
3302
+ lowerCase: Boolean
3303
+ specialCharacter: Boolean
3304
+ tightCharacterLength: Float
3305
+ upperCase: Boolean
3306
+ useLoosePattern: Boolean
3307
+ useTightPattern: Boolean
3308
+ }
3309
+
3097
3310
  """Entity for PayloadLog"""
3098
3311
  type PayloadLog {
3099
3312
  createdAt: DateTimeISO
@@ -3270,6 +3483,12 @@ type PropertySpec {
3270
3483
 
3271
3484
  type Query {
3272
3485
  APIDocCompletion(input: APIDocCompletionInput!): APIDocCompletionOutput!
3486
+
3487
+ """To fetch a PDFTemplate"""
3488
+ PDFTemplate(id: String!): PDFTemplate
3489
+
3490
+ """To fetch multiple PDFTemplates"""
3491
+ PDFTemplates(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PDFTemplateList!
3273
3492
  appBinding(id: String!): AppBinding!
3274
3493
  appBindings(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): AppBindingList!
3275
3494
 
@@ -3342,19 +3561,25 @@ type Query {
3342
3561
  boardsCreatedByMe(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): BoardList!
3343
3562
  chatCompletion(input: ChatCompletionInput!): ChatCompletionOutput!
3344
3563
 
3345
- """To check if system would provide default password to create new user"""
3564
+ """
3565
+ Checks if the system is configured to provide a default password for new users.
3566
+ """
3346
3567
  checkDefaultPassword: Boolean!
3347
3568
 
3348
- """To check if system would provide default password to create new user"""
3569
+ """
3570
+ Determines whether the system provides a default password when creating a new user.
3571
+ """
3349
3572
  checkResettablePasswordToDefault: Boolean!
3350
3573
 
3351
3574
  """To fetch the preset of role for new user"""
3352
3575
  checkRolePreset: [Role!]!
3353
3576
 
3354
- """To check if current user is belongs to current domain"""
3577
+ """
3578
+ Checks if the current authenticated user belongs to the current domain.
3579
+ """
3355
3580
  checkUserBelongsDomain: Boolean!
3356
3581
 
3357
- """..."""
3582
+ """Checks if a user with the given email address exists in the system."""
3358
3583
  checkUserExistence(email: EmailAddress!): Boolean!
3359
3584
 
3360
3585
  """To fetch common approval lines"""
@@ -3414,10 +3639,14 @@ type Query {
3414
3639
  """To fetch multiple appliance"""
3415
3640
  edges(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ApplianceList!
3416
3641
 
3417
- """To fetch a Employee"""
3642
+ """
3643
+ Fetches a specific employee by their unique ID. Returns the employee object if found, or null if not found.
3644
+ """
3418
3645
  employee(id: String!): Employee
3419
3646
 
3420
- """To fetch multiple Employees"""
3647
+ """
3648
+ Fetches a list of employees based on provided query parameters. Supports searching by name, control number, and alias.
3649
+ """
3421
3650
  employees(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): EmployeeList!
3422
3651
 
3423
3652
  """To fetch multiple Entities"""
@@ -3575,12 +3804,23 @@ type Query {
3575
3804
  partnerSettings(filters: [Filter!]!, pagination: Pagination!, partnerDomain: ObjectRef!, sortings: [Sorting!]!): PartnerSettingList!
3576
3805
  partners(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PartnerList!
3577
3806
 
3807
+ """
3808
+ Retrieves the current password rule configuration for the system, such as required character types and minimum length.
3809
+ """
3810
+ passwordRule: PasswordRule!
3811
+
3578
3812
  """To fetch a PayloadLog"""
3579
3813
  payloadLog(id: String!): PayloadLog!
3580
3814
 
3581
3815
  """To fetch multiple PayloadLogs"""
3582
3816
  payloadLogs(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PayloadLogList!
3583
3817
 
3818
+ """To fetch a PDFRelease"""
3819
+ pdfRelease(id: String!): PDFRelease
3820
+
3821
+ """To fetch multiple PDFReleases"""
3822
+ pdfReleases(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PDFReleaseList!
3823
+
3584
3824
  """To fetch a PlayGroup"""
3585
3825
  playGroup(id: String!): PlayGroup
3586
3826
 
@@ -3672,7 +3912,7 @@ type Query {
3672
3912
  """To fetch multiple Themes"""
3673
3913
  themes(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ThemeList!
3674
3914
 
3675
- """To fetch user"""
3915
+ """Fetches a user by their email address within the current domain."""
3676
3916
  user(email: EmailAddress!): User!
3677
3917
 
3678
3918
  """To fetch Menus by role"""
@@ -3681,7 +3921,9 @@ type Query {
3681
3921
  """To fetch roles of a user"""
3682
3922
  userRoles(userId: String!): [UserRole!]!
3683
3923
 
3684
- """To fetch multiple users"""
3924
+ """
3925
+ Fetches a list of users based on provided search parameters within the current domain.
3926
+ """
3685
3927
  users(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): UserList!
3686
3928
  vendors: [Domain!]!
3687
3929
  }
@@ -95,6 +95,36 @@ export class OxSciChartMultiple extends LitElement {
95
95
  await this.createOverviewChart()
96
96
  }
97
97
 
98
+ disconnectedCallback(): void {
99
+ super.disconnectedCallback()
100
+
101
+ // 그룹 차트 자원 해제
102
+ this.groupCharts.forEach(chart => {
103
+ if (chart.sciChartSurface) {
104
+ this.synchronizer.removeAxis(chart.sciChartSurface.xAxes.get(0))
105
+ this.verticalGroup.removeSurface(chart.sciChartSurface)
106
+
107
+ // 각 데이터 시리즈 명시적으로 해제
108
+ chart.dataSeries.forEach(ds => ds.delete())
109
+
110
+ // 차트 삭제
111
+ chart.sciChartSurface.delete()
112
+ }
113
+ })
114
+
115
+ // 오버뷰 차트 자원 해제
116
+ if (this.overviewChart) {
117
+ this.overviewChart.sciChartSurface.renderableSeries.clear()
118
+ this.overviewDataSeries.forEach(ds => ds.delete())
119
+ this.overviewChart.sciChartSurface.delete()
120
+ this.overviewDataSeries.length = 0
121
+ }
122
+
123
+ // 사용된 그룹, 오버뷰 데이터 초기화
124
+ this.groupCharts.length = 0
125
+ this.overviewChart = null
126
+ }
127
+
98
128
  async createOverviewChart() {
99
129
  const { chart, dataSeries } =
100
130
  (await buildSciChartOverview(
@@ -53,6 +53,24 @@ export class OxSciChart extends LitElement {
53
53
  this.dataSeries = dataSeries!
54
54
  }
55
55
 
56
+ disconnectedCallback(): void {
57
+ super.disconnectedCallback()
58
+
59
+ // 데이터 시리즈 해제
60
+ this.dataSeries.forEach(ds => ds.delete())
61
+ this.dataSeries = []
62
+
63
+ // SciChartSurface 해제
64
+ if (this.chart?.sciChartSurface) {
65
+ this.chart.sciChartSurface.renderableSeries.clear() // 렌더러 시리즈 제거
66
+ this.chart.sciChartSurface.xAxes.clear() // X축 제거
67
+ this.chart.sciChartSurface.yAxes.clear() // Y축 제거
68
+ this.chart.sciChartSurface.delete() // SciChartSurface 삭제
69
+ }
70
+
71
+ this.chart = null // chart 객체 초기화
72
+ }
73
+
56
74
  async updated(changedProperties: Map<string | number | symbol, unknown>) {
57
75
  var needDataUpdate = false
58
76
 
@@ -49,13 +49,44 @@ import {
49
49
  } from 'scichart'
50
50
  import { AxisSynchroniser } from './axis-synchronizer'
51
51
 
52
- SciChartSurface.UseCommunityLicense()
53
-
54
52
  SciChartSurface.configure({
55
53
  dataUrl: `/node_modules/scichart/_wasm/scichart2d.data`,
56
54
  wasmUrl: `/node_modules/scichart/_wasm/scichart2d.wasm`
57
55
  })
58
56
 
57
+ var licenseInitialized: boolean = false
58
+
59
+ async function fetchSciChartLicense() {
60
+ try {
61
+ const response = await fetch('/frontend-config/scichart')
62
+ if (response.ok) {
63
+ const { licenseKey = '' } = (await response.json()) || {}
64
+
65
+ if (licenseKey) {
66
+ SciChartSurface.setRuntimeLicenseKey(licenseKey)
67
+ console.log('SciChart license key setting complete')
68
+ } else {
69
+ console.warn('SciChart license key is not set. Using community version.')
70
+ SciChartSurface.UseCommunityLicense() // 커뮤니티 라이선스 설정
71
+ }
72
+ } else {
73
+ console.warn('License server response not found. Using community version.')
74
+ SciChartSurface.UseCommunityLicense() // 커뮤니티 라이선스 설정
75
+ }
76
+ } catch (error) {
77
+ console.error('License setting error. Using community version:', error)
78
+ SciChartSurface.UseCommunityLicense() // 커뮤니티 라이선스 설정
79
+ }
80
+ }
81
+
82
+ async function initializeSciChartLicense() {
83
+ // 라이선스 설정이 되어 있지 않으면 비동기적으로 설정
84
+ if (!licenseInitialized) {
85
+ await fetchSciChartLicense()
86
+ licenseInitialized = true
87
+ }
88
+ }
89
+
59
90
  export const DEFAULT_COLOR = '#FF6600'
60
91
  const DEFAULT_STROKE = '#000000'
61
92
  const POINT_MARKER_SIZE = 10
@@ -265,6 +296,8 @@ export async function buildSciChart(
265
296
  ): Promise<{ chart: any; dataSeries: any[] } | undefined> {
266
297
  if (!config) return
267
298
 
299
+ await initializeSciChartLicense()
300
+
268
301
  const { type: chartType, options, data: fromData } = config
269
302
  const { datasets = [] } = fromData || {}
270
303
  var {