@things-factory/reference-app 6.1.158 → 6.1.160

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 (2) hide show
  1. package/package.json +34 -34
  2. package/schema.gql +177 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/reference-app",
3
- "version": "6.1.158",
3
+ "version": "6.1.160",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -67,42 +67,42 @@
67
67
  "@operato/scene-tab": "^1.0.0",
68
68
  "@operato/shell": "^1.0.1",
69
69
  "@operato/utils": "^1.0.1",
70
- "@things-factory/api": "^6.1.156",
71
- "@things-factory/apptool-ui": "^6.1.156",
72
- "@things-factory/attachment-base": "^6.1.156",
73
- "@things-factory/auth-ui": "^6.1.158",
74
- "@things-factory/board-service": "^6.1.156",
75
- "@things-factory/board-ui": "^6.1.158",
76
- "@things-factory/ccp": "^6.1.156",
77
- "@things-factory/contact": "^6.1.156",
78
- "@things-factory/context-ui": "^6.1.156",
79
- "@things-factory/dashboard": "^6.1.158",
80
- "@things-factory/dataset": "^6.1.156",
81
- "@things-factory/export-ui": "^6.1.156",
82
- "@things-factory/export-ui-excel": "^6.1.156",
83
- "@things-factory/help": "^6.1.156",
84
- "@things-factory/integration-ui": "^6.1.156",
85
- "@things-factory/lite-menu": "^6.1.158",
86
- "@things-factory/more-ui": "^6.1.156",
87
- "@things-factory/notification": "^6.1.156",
88
- "@things-factory/oauth2-client": "^6.1.156",
89
- "@things-factory/organization": "^6.1.156",
90
- "@things-factory/print-ui": "^6.1.156",
91
- "@things-factory/product-base": "^6.1.156",
92
- "@things-factory/qc": "^6.1.156",
93
- "@things-factory/resource-ui": "^6.1.158",
94
- "@things-factory/routing-base": "^6.1.156",
95
- "@things-factory/setting-base": "^6.1.156",
96
- "@things-factory/setting-ui": "^6.1.156",
97
- "@things-factory/shell": "^6.1.156",
98
- "@things-factory/system-ui": "^6.1.156",
99
- "@things-factory/web-editor": "^6.1.156",
100
- "@things-factory/work-shift": "^6.1.156",
70
+ "@things-factory/api": "^6.1.160",
71
+ "@things-factory/apptool-ui": "^6.1.160",
72
+ "@things-factory/attachment-base": "^6.1.160",
73
+ "@things-factory/auth-ui": "^6.1.160",
74
+ "@things-factory/board-service": "^6.1.160",
75
+ "@things-factory/board-ui": "^6.1.160",
76
+ "@things-factory/ccp": "^6.1.160",
77
+ "@things-factory/contact": "^6.1.160",
78
+ "@things-factory/context-ui": "^6.1.160",
79
+ "@things-factory/dashboard": "^6.1.160",
80
+ "@things-factory/dataset": "^6.1.160",
81
+ "@things-factory/export-ui": "^6.1.160",
82
+ "@things-factory/export-ui-excel": "^6.1.160",
83
+ "@things-factory/help": "^6.1.160",
84
+ "@things-factory/integration-ui": "^6.1.160",
85
+ "@things-factory/lite-menu": "^6.1.160",
86
+ "@things-factory/more-ui": "^6.1.160",
87
+ "@things-factory/notification": "^6.1.160",
88
+ "@things-factory/oauth2-client": "^6.1.160",
89
+ "@things-factory/organization": "^6.1.160",
90
+ "@things-factory/print-ui": "^6.1.160",
91
+ "@things-factory/product-base": "^6.1.160",
92
+ "@things-factory/qc": "^6.1.160",
93
+ "@things-factory/resource-ui": "^6.1.160",
94
+ "@things-factory/routing-base": "^6.1.160",
95
+ "@things-factory/setting-base": "^6.1.160",
96
+ "@things-factory/setting-ui": "^6.1.160",
97
+ "@things-factory/shell": "^6.1.160",
98
+ "@things-factory/system-ui": "^6.1.160",
99
+ "@things-factory/web-editor": "^6.1.160",
100
+ "@things-factory/work-shift": "^6.1.160",
101
101
  "@tinymce/tinymce-webcomponent": "^2.0.1",
102
102
  "random-words": "^1.2.0"
103
103
  },
104
104
  "devDependencies": {
105
- "@things-factory/builder": "^6.1.154"
105
+ "@things-factory/builder": "^6.1.160"
106
106
  },
107
- "gitHead": "d7c68dc93ff2938b44be97e07c9bdd8c1ecc6e85"
107
+ "gitHead": "7ba17019680b9853bbcaab675978ad0b6eb0f64e"
108
108
  }
package/schema.gql CHANGED
@@ -785,6 +785,7 @@ input BizplacePatch {
785
785
  type Board {
786
786
  createdAt: Timestamp
787
787
  creator: User
788
+ deletedAt: Timestamp
788
789
  description: String
789
790
  domain: Domain
790
791
  group: Group
@@ -792,9 +793,29 @@ type Board {
792
793
  model: String
793
794
  name: String!
794
795
  playGroups: [PlayGroup!]
796
+ state: String
797
+ thumbnail: String
798
+ updatedAt: Timestamp
799
+ updater: User
800
+ version: Float
801
+ }
802
+
803
+ """History Entity of Board"""
804
+ type BoardHistory {
805
+ createdAt: Timestamp
806
+ creator: User
807
+ deletedAt: Timestamp
808
+ description: String
809
+ domain: Domain
810
+ group: Group
811
+ id: ID!
812
+ model: String
813
+ name: String!
814
+ playGroups: [PlayGroup!]
795
815
  thumbnail: String
796
816
  updatedAt: Timestamp
797
817
  updater: User
818
+ version: Float
798
819
  }
799
820
 
800
821
  type BoardList {
@@ -985,7 +1006,7 @@ type ConnectionList {
985
1006
 
986
1007
  input ConnectionPatch {
987
1008
  active: Boolean
988
- cuFlag: String!
1009
+ cuFlag: String
989
1010
  description: String
990
1011
  endpoint: String
991
1012
  id: ID
@@ -1717,6 +1738,7 @@ type DynamicDataSummary {
1717
1738
  type Employee {
1718
1739
  active: Boolean
1719
1740
  address: String!
1741
+ alias: String
1720
1742
  approvalLines: [ApprovalLine!]!
1721
1743
  contact: Contact
1722
1744
  controlNo: String!
@@ -1729,12 +1751,15 @@ type Employee {
1729
1751
  extension: String
1730
1752
  hiredOn: String
1731
1753
  id: ID!
1754
+ jobPosition: String
1755
+ jobResponsibility: String
1732
1756
  manages: [Department!]!
1733
1757
  name: String
1734
1758
  note: String
1735
1759
  phone: String
1736
1760
  photo: String
1737
1761
  profile: Profile
1762
+ retiredAt: String
1738
1763
  supervises: [Employee!]!
1739
1764
  supervisor: Employee
1740
1765
  type: String
@@ -1751,14 +1776,18 @@ type EmployeeList {
1751
1776
 
1752
1777
  input EmployeePatch {
1753
1778
  active: Boolean
1779
+ alias: String
1754
1780
  controlNo: String
1755
1781
  cuFlag: String
1756
1782
  department: ObjectRef
1757
1783
  hiredOn: String
1758
1784
  id: ID
1785
+ jobPosition: String
1786
+ jobResponsibility: String
1759
1787
  name: String
1760
1788
  note: String
1761
1789
  photo: Upload
1790
+ retiredAt: String
1762
1791
  supervisor: ObjectRefForEmployee
1763
1792
  type: EmployeeType
1764
1793
  user: ObjectRefForUser
@@ -2145,6 +2174,11 @@ type LoginHistory {
2145
2174
  id: ID!
2146
2175
  }
2147
2176
 
2177
+ type LoginHistoryList {
2178
+ items: [LoginHistory!]!
2179
+ total: Int!
2180
+ }
2181
+
2148
2182
  """Entity for Menu"""
2149
2183
  type Menu {
2150
2184
  buttons: [MenuButton!]!
@@ -2531,6 +2565,9 @@ type Mutation {
2531
2565
  attachContact(contactId: String!, id: String!): Employee!
2532
2566
  cancelInvitation(email: String!, reference: String!, type: String!): Boolean!
2533
2567
 
2568
+ """To clone a Board from existing Board"""
2569
+ cloneBoard(id: String!, patch: BoardPatch!, targetGroupId: String!, targetSubdomain: String!): Board!
2570
+
2534
2571
  """To connect a connection"""
2535
2572
  connectConnection(name: String!): Connection!
2536
2573
 
@@ -2667,6 +2704,9 @@ type Mutation {
2667
2704
  """To create new PlayGroup"""
2668
2705
  createPlayGroup(playGroup: NewPlayGroup!): PlayGroup!
2669
2706
 
2707
+ """To create new PrinterDevice"""
2708
+ createPrinterDevice(printerDevice: NewPrinterDevice!): PrinterDevice!
2709
+
2670
2710
  """To create new privilege"""
2671
2711
  createPrivilege(privilege: NewPrivilege!): Privilege!
2672
2712
  createProduct(product: NewProduct!): Product!
@@ -2937,6 +2977,12 @@ type Mutation {
2937
2977
  """To delete PlayGroup"""
2938
2978
  deletePlayGroup(id: String!): Boolean!
2939
2979
 
2980
+ """To delete PrinterDevice"""
2981
+ deletePrinterDevice(id: String!): Boolean!
2982
+
2983
+ """To delete multiple printerDevices"""
2984
+ deletePrinterDevices(ids: [String!]!): Boolean!
2985
+
2940
2986
  """To delete privilege"""
2941
2987
  deletePrivilege(category: String!, name: String!): Boolean!
2942
2988
  deleteProduct(id: String!): Boolean!
@@ -3065,15 +3111,24 @@ type Mutation {
3065
3111
  """To import multiple ApprovalLines"""
3066
3112
  importApprovalLines(approvalLines: [ApprovalLinePatch!]!): Boolean!
3067
3113
 
3114
+ """To import some Attachments"""
3115
+ importAttachments(file: Upload!): [Attachment!]!
3116
+
3068
3117
  """To import multiple AttributeSets"""
3069
3118
  importAttributeSets(attributes: [AttributeSetPatch!]!): Boolean!
3070
3119
 
3120
+ """To import some Boards"""
3121
+ importBoards(files: [Upload!]!, groupId: String!, overwrite: Boolean!): [Board!]!
3122
+
3071
3123
  """To import multiple CommonCodeDetails"""
3072
3124
  importCommonCodeDetails(commonCodeDetails: [CommonCodeDetailPatch!]!): Boolean!
3073
3125
 
3074
3126
  """To import multiple CommonCodes"""
3075
3127
  importCommonCodes(commonCodes: [CommonCodePatch!]!): Boolean!
3076
3128
 
3129
+ """To import multiple connections"""
3130
+ importConnections(connections: [ConnectionPatch!]!): Boolean!
3131
+
3077
3132
  """To import multiple Contacts"""
3078
3133
  importContacts(contacts: [ContactPatch!]!): Boolean!
3079
3134
 
@@ -3167,6 +3222,9 @@ type Mutation {
3167
3222
 
3168
3223
  """To reject ActivityApproval"""
3169
3224
  rejectActivityApproval(comment: String, id: String!): ActivityApproval
3225
+
3226
+ """To release Board information"""
3227
+ releaseBoard(id: String!): Board!
3170
3228
  renewApplicationAccessToken(id: String!, scope: String!): AccessToken!
3171
3229
 
3172
3230
  """To reset password to default"""
@@ -3175,6 +3233,9 @@ type Mutation {
3175
3233
  """To restart ActivityThread"""
3176
3234
  restartActivityThread(id: String!, output: Object, reason: String): ActivityThread
3177
3235
 
3236
+ """To revert Board version"""
3237
+ revertBoardVersion(id: String!, version: Float!): Board!
3238
+
3178
3239
  """
3179
3240
  To run new scenario instance and will return the result after the scenario stop.
3180
3241
  """
@@ -3401,6 +3462,9 @@ type Mutation {
3401
3462
 
3402
3463
  """To modify multiple PayloadLogs' information"""
3403
3464
  updateMultiplePayloadLog(patches: [PayloadLogPatch!]!): [PayloadLog!]!
3465
+
3466
+ """To modify multiple PrinterDevices' information"""
3467
+ updateMultiplePrinterDevice(patches: [PrinterDevicePatch!]!): [PrinterDevice!]!
3404
3468
  updateMultipleProduct(patches: [ProductPatch!]!): [Product!]!
3405
3469
  updateMultipleProductBundle(patches: [ProductBundlePatch!]!): [ProductBundle!]!
3406
3470
  updateMultipleProductBundleSetting(patches: [ProductBundleSettingPatch!]!): [ProductBundleSetting!]!
@@ -3463,6 +3527,9 @@ type Mutation {
3463
3527
  """To modify PlayGroup information"""
3464
3528
  updatePlayGroup(id: String!, patch: PlayGroupPatch!): PlayGroup!
3465
3529
 
3530
+ """To modify PrinterDevice information"""
3531
+ updatePrinterDevice(id: String!, patch: PrinterDevicePatch!): PrinterDevice!
3532
+
3466
3533
  """To modify privilege information"""
3467
3534
  updatePrivilege(category: String!, name: String!, patch: PrivilegePatch!): Privilege!
3468
3535
  updateProduct(id: String!, patch: ProductPatch!): Product!
@@ -3803,13 +3870,17 @@ input NewDepartment {
3803
3870
 
3804
3871
  input NewEmployee {
3805
3872
  active: Boolean
3873
+ alias: String
3806
3874
  controlNo: String!
3807
3875
  department: ObjectRef
3808
3876
  extension: String
3809
3877
  hiredOn: String
3878
+ jobPosition: String
3879
+ jobResponsibility: String
3810
3880
  name: String!
3811
3881
  note: String
3812
3882
  photo: Upload
3883
+ retiredAt: String
3813
3884
  supervisor: ObjectRefForEmployee
3814
3885
  type: EmployeeType
3815
3886
  user: ObjectRefForUser
@@ -4104,6 +4175,24 @@ input NewPlayGroup {
4104
4175
  name: String!
4105
4176
  }
4106
4177
 
4178
+ input NewPrinterDevice {
4179
+ activeFlag: Boolean
4180
+ defaultFlag: Boolean
4181
+ description: String!
4182
+ dpi: Int
4183
+ jobCategory: String
4184
+ jobClass: String
4185
+ jobType: String
4186
+ name: String!
4187
+ note: String
4188
+ printerDriver: String
4189
+ printerIp: String
4190
+ printerPort: Int
4191
+ serviceUrl: String
4192
+ status: String
4193
+ type: String
4194
+ }
4195
+
4107
4196
  input NewPrivilege {
4108
4197
  category: String!
4109
4198
  description: String
@@ -4131,6 +4220,7 @@ input NewProduct {
4131
4220
  bundleQty: Float
4132
4221
  childProducts: [ObjectRef!]
4133
4222
  cogsAccountCode: String
4223
+ convertWeight: Float
4134
4224
  costPrice: Float
4135
4225
  density: Float
4136
4226
  depth: Float
@@ -4141,6 +4231,7 @@ input NewProduct {
4141
4231
  gtin: String
4142
4232
  height: Float
4143
4233
  id: ID
4234
+ inboundUnit: String
4144
4235
  inventoryAccountCode: String
4145
4236
  isRequireSerialNumberScanning: Boolean
4146
4237
  isRequireSerialNumberScanningInbound: Boolean
@@ -4447,14 +4538,18 @@ input ObjectRefApprovalLineOwnerType {
4447
4538
  }
4448
4539
 
4449
4540
  input ObjectRefForEmployee {
4541
+ active: Boolean
4542
+ alias: String
4450
4543
  controlNo: String
4451
4544
 
4452
4545
  """Field description"""
4453
4546
  description: String
4454
4547
  email: String
4548
+ hiredOn: String
4455
4549
 
4456
4550
  """Field id"""
4457
4551
  id: ID!
4552
+ jobPosition: String
4458
4553
 
4459
4554
  """Field name"""
4460
4555
  name: String
@@ -4639,6 +4734,56 @@ input PlayGroupPatch {
4639
4734
  name: String
4640
4735
  }
4641
4736
 
4737
+ """Entity for PrinterDevice"""
4738
+ type PrinterDevice {
4739
+ activeFlag: Boolean
4740
+ createdAt: Timestamp
4741
+ creator: User
4742
+ defaultFlag: Boolean
4743
+ description: String!
4744
+ domain: Domain!
4745
+ dpi: Int
4746
+ id: ID!
4747
+ jobCategory: String
4748
+ jobClass: String
4749
+ jobType: String
4750
+ name: String!
4751
+ note: String
4752
+ printerDriver: String
4753
+ printerIp: String
4754
+ printerPort: Int
4755
+ serviceUrl: String
4756
+ status: String
4757
+ type: String!
4758
+ updatedAt: Timestamp
4759
+ updater: User
4760
+ }
4761
+
4762
+ type PrinterDeviceList {
4763
+ items: [PrinterDevice!]!
4764
+ total: Int!
4765
+ }
4766
+
4767
+ input PrinterDevicePatch {
4768
+ activeFlag: Boolean
4769
+ cuFlag: String!
4770
+ defaultFlag: Boolean
4771
+ description: String
4772
+ dpi: Int
4773
+ id: ID
4774
+ jobCategory: String
4775
+ jobClass: String
4776
+ jobType: String
4777
+ name: String
4778
+ note: String
4779
+ printerDriver: String
4780
+ printerIp: String
4781
+ printerPort: Int
4782
+ serviceUrl: String
4783
+ status: String
4784
+ type: String
4785
+ }
4786
+
4642
4787
  type Privilege {
4643
4788
  category: String
4644
4789
  createdAt: Timestamp
@@ -4692,6 +4837,7 @@ type Product {
4692
4837
  caseWidth: Float
4693
4838
  childProducts: [Product!]
4694
4839
  cogsAccountCode: String
4840
+ convertWeight: Float
4695
4841
  costPrice: Float
4696
4842
  createdAt: Timestamp
4697
4843
  creator: User
@@ -4706,6 +4852,7 @@ type Product {
4706
4852
  gtin: String
4707
4853
  height: Float
4708
4854
  id: ID
4855
+ inboundUnit: String
4709
4856
  inventoryAccountCode: String
4710
4857
  isCompany: Boolean!
4711
4858
  isRequireSerialNumberScanning: Boolean
@@ -5060,6 +5207,7 @@ input ProductPatch {
5060
5207
  childProducts: [ObjectRef!]
5061
5208
  childQty: Float
5062
5209
  cogsAccountCode: String
5210
+ convertWeight: Float
5063
5211
  costPrice: Float
5064
5212
  cuFlag: String
5065
5213
  density: Float
@@ -5070,6 +5218,7 @@ input ProductPatch {
5070
5218
  gtin: String
5071
5219
  height: Float
5072
5220
  id: String
5221
+ inboundUnit: String
5073
5222
  inventoryAccountCode: String
5074
5223
  isRequireSerialNumberScanning: Boolean
5075
5224
  isRequireSerialNumberScanningInbound: Boolean
@@ -5264,6 +5413,9 @@ type Query {
5264
5413
  """To fetch a Board Model by name"""
5265
5414
  boardByName(name: String!): Board
5266
5415
 
5416
+ """To fetch the latest Board published"""
5417
+ boardPublished(id: String!): BoardHistory!
5418
+
5267
5419
  """To fetch a BoardSettings"""
5268
5420
  boardSettings(names: [String!]): [BoardSetting!]!
5269
5421
 
@@ -5279,6 +5431,9 @@ type Query {
5279
5431
  """To fetch BoardTemplates created by me"""
5280
5432
  boardTemplatesCreatedByMe(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): BoardTemplateList!
5281
5433
 
5434
+ """To fetch a Board Versions"""
5435
+ boardVersions(id: String!): [BoardHistory!]!
5436
+
5282
5437
  """To fetch multiple Boards"""
5283
5438
  boards(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): BoardList!
5284
5439
 
@@ -5445,6 +5600,9 @@ type Query {
5445
5600
  """To fetch all domains (Only superuser is granted this privilege.)"""
5446
5601
  domains(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DomainList!
5447
5602
 
5603
+ """To fetch domains with given privilege for user"""
5604
+ domainsWithPrivilege(category: String!, name: String!): [Domain!]!
5605
+
5448
5606
  """To fetch the tasks(ActivityThreads) which has done by me"""
5449
5607
  doneList(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ActivityThreadList!
5450
5608
 
@@ -5502,6 +5660,9 @@ type Query {
5502
5660
 
5503
5661
  """To fetch a InstallableActivity"""
5504
5662
  installableActivity(name: String!): InstallableActivity
5663
+
5664
+ """To fetch integration Analyses"""
5665
+ integrationAnalysis: Object!
5505
5666
  invitation(email: String!, reference: String!, type: String!): Invitation!
5506
5667
  invitations(reference: String!, type: String!): InvitationList!
5507
5668
 
@@ -5511,6 +5672,9 @@ type Query {
5511
5672
  """To fetch multiple LiteMenus"""
5512
5673
  liteMenus(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): LiteMenuList!
5513
5674
 
5675
+ """To fetch multiple LoginHistories"""
5676
+ loginHistories(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): LoginHistoryList!
5677
+
5514
5678
  """To fetch a Menu"""
5515
5679
  menu(id: String!): Menu!
5516
5680
 
@@ -5617,9 +5781,18 @@ type Query {
5617
5781
  """To fetch a PlayGroup"""
5618
5782
  playGroup(id: String!): PlayGroup
5619
5783
 
5784
+ """To fetch a PlayGroup by name"""
5785
+ playGroupByName(name: String!): PlayGroup
5786
+
5620
5787
  """To fetch multiple PlayGroups"""
5621
5788
  playGroups(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PlayGroupList!
5622
5789
 
5790
+ """To fetch a PrinterDevice"""
5791
+ printerDevice(id: String!): PrinterDevice!
5792
+
5793
+ """To fetch multiple PrinterDevices"""
5794
+ printerDevices(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PrinterDeviceList!
5795
+
5623
5796
  """To fetch privilege"""
5624
5797
  privilege(category: String!, name: String!): Privilege!
5625
5798
 
@@ -5861,6 +6034,7 @@ input RoutingPatch {
5861
6034
  type Scenario {
5862
6035
  """[will be deprecated] automatically be started when this server start"""
5863
6036
  active: Boolean
6037
+ connectionNames: [Connection!]!
5864
6038
  createdAt: Timestamp
5865
6039
  creator: User
5866
6040
  description: String
@@ -5871,6 +6045,7 @@ type Scenario {
5871
6045
 
5872
6046
  """accessible and executable system-wide"""
5873
6047
  public: Boolean
6048
+ publishTags: [Connection!]!
5874
6049
  schedule: String
5875
6050
  scheduleId: String
5876
6051
  state: String
@@ -5892,6 +6067,7 @@ type ScenarioInstance {
5892
6067
  scenarioName: String
5893
6068
  state: String
5894
6069
  timestamp: Timestamp
6070
+ user: User
5895
6071
  variables: Object
5896
6072
  }
5897
6073