@fmsim/fmsim 2.0.0-beta.6 → 2.0.0-beta.60

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fmsim/fmsim",
3
- "version": "2.0.0-beta.6",
3
+ "version": "2.0.0-beta.60",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "scripts": {
19
19
  "serve": "things-factory fmsim",
20
- "serve:dev": "npm run build:server && things-factory-dev fmsim --webpack @fmsim/builder/webpack.config.dev.js",
20
+ "serve:dev": "npm run build:server && concurrently -k -n api,board,machine,lv,webpack \"tsc -w --preserveWatchOutput -p ../api/tsconfig.json\" \"tsc -w --preserveWatchOutput -p ../board/tsconfig.json\" \"tsc -w --preserveWatchOutput -p ../machine/tsconfig.json\" \"tsc -w --preserveWatchOutput -p ../layout-view/client/tsconfig.json\" \"things-factory-dev fmsim --webpack @fmsim/builder/webpack.config.dev.js\"",
21
21
  "build": "npm run build:server && npm run build:client",
22
22
  "build:client": "npm run clean:client && npm run copy:files && (tsc --p ./client/tsconfig.json; exit 0)",
23
23
  "build:server": "npm run clean:server && (tsc --p ./server/tsconfig.json; exit 0)",
@@ -40,8 +40,8 @@
40
40
  "docker:push": "docker image push hatiolab/fmsim:latest && docker image push hatiolab/fmsim:$npm_package_version"
41
41
  },
42
42
  "dependencies": {
43
- "@fmsim/layout-view": "^2.0.0-beta.6",
44
- "@fmsim/machine": "^2.0.0-beta.6",
43
+ "@fmsim/layout-view": "^2.0.0-beta.60",
44
+ "@fmsim/machine": "^2.0.0-beta.60",
45
45
  "@operato/attachment": "^10.0.0-beta.1",
46
46
  "@operato/font": "^10.0.0-beta.1",
47
47
  "@operato/i18n": "^10.0.0-beta.1",
@@ -71,12 +71,12 @@
71
71
  "pretendard": "^1.3.9"
72
72
  },
73
73
  "devDependencies": {
74
- "@fmsim/builder": "^2.0.0-beta.4",
74
+ "@fmsim/builder": "^2.0.0-beta.60",
75
75
  "copyfiles": "^2.4.1",
76
76
  "typescript": "^5.8.2"
77
77
  },
78
78
  "resolutions": {
79
79
  "lit": "^3.0.0"
80
80
  },
81
- "gitHead": "879225fef10fca7f9084e4c27d23744337eaa06b"
81
+ "gitHead": "0775504ed0d3741efd17f5da098a395026b09a0f"
82
82
  }
package/schema.graphql CHANGED
@@ -655,6 +655,11 @@ type Board {
655
655
  """A list of play groups that this board is a part of."""
656
656
  playGroups: [PlayGroup!]
657
657
 
658
+ """
659
+ Sort order for display. Lower values appear first. Supports fractional values for insertion.
660
+ """
661
+ sortOrder: Float
662
+
658
663
  """The state of the board, can be 'draft' or 'released'."""
659
664
  state: String
660
665
 
@@ -706,6 +711,11 @@ type BoardFavorite {
706
711
  """A list of play groups that this board is a part of."""
707
712
  playGroups: [PlayGroup!]
708
713
 
714
+ """
715
+ Sort order for display. Lower values appear first. Supports fractional values for insertion.
716
+ """
717
+ sortOrder: Float
718
+
709
719
  """The state of the board, can be 'draft' or 'released'."""
710
720
  state: String
711
721
 
@@ -2354,6 +2364,18 @@ input MenuPatch {
2354
2364
  totalProp: String
2355
2365
  }
2356
2366
 
2367
+ type MockEntities {
2368
+ ports: [String!]!
2369
+ stockers: [String!]!
2370
+ vehicles: MockVehicles!
2371
+ zones: [String!]!
2372
+ }
2373
+
2374
+ type MockVehicles {
2375
+ agvs: [String!]!
2376
+ ohts: [String!]!
2377
+ }
2378
+
2357
2379
  type Mutation {
2358
2380
  """
2359
2381
  Activates a user account in the current domain. Use this mutation to enable a user who was previously inactive.
@@ -2970,6 +2992,9 @@ type Mutation {
2970
2992
  releaseBoard(id: String!): Board!
2971
2993
  renewApplicationAccessToken(id: String!, scope: String!): AccessToken!
2972
2994
 
2995
+ """Reorders a board between two adjacent boards by ID."""
2996
+ reorderBoard(id: String!, nextId: String, prevId: String): Boolean!
2997
+
2973
2998
  """Sets the custom playback order for boards in a play group."""
2974
2999
  reorderPlayGroup(boardIds: [String!]!, id: String!): PlayGroup!
2975
3000
 
@@ -4535,6 +4560,27 @@ input PlayGroupPatch {
4535
4560
  name: String
4536
4561
  }
4537
4562
 
4563
+ type PlaybackRecord {
4564
+ data: String!
4565
+ time: String!
4566
+ type: String!
4567
+ }
4568
+
4569
+ type PlaybackResponse {
4570
+ errorMessage: String
4571
+ playback: PlaybackResult
4572
+ status: Boolean!
4573
+ }
4574
+
4575
+ type PlaybackResult {
4576
+ scenarios: [PlaybackScenarioType!]!
4577
+ }
4578
+
4579
+ type PlaybackScenarioType {
4580
+ scenarioName: String!
4581
+ snapshots: [PlaybackRecord!]!
4582
+ }
4583
+
4538
4584
  """
4539
4585
  A privilege that can be granted to roles to control access to resources.
4540
4586
  """
@@ -4798,8 +4844,14 @@ type Query {
4798
4844
  sortings: [Sorting!]
4799
4845
  ): AuthProviderList!
4800
4846
 
4801
- """Finds a single board by its ID."""
4802
- board(id: String!): Board!
4847
+ """
4848
+ Finds a single board by its ID. If cachedUpdatedAt matches, model is omitted.
4849
+ """
4850
+ board(
4851
+ """Client cache timestamp — if matches, model field is omitted"""
4852
+ cachedUpdatedAt: String
4853
+ id: String!
4854
+ ): Board!
4803
4855
 
4804
4856
  """Finds a single board by its name."""
4805
4857
  boardByName(name: String!): Board
@@ -4873,6 +4925,11 @@ type Query {
4873
4925
  sortings: [Sorting!]
4874
4926
  ): BoardList!
4875
4927
 
4928
+ """
4929
+ Retrieves boards that have been updated or soft-deleted since the given timestamp.
4930
+ """
4931
+ boardsUpdatedSince(since: DateTimeISO!): [Board!]!
4932
+
4876
4933
  """
4877
4934
  Checks if the system is configured to provide a default password for new users.
4878
4935
  """
@@ -5589,6 +5646,12 @@ type Query {
5589
5646
  sortings: [Sorting!]
5590
5647
  ): PlayGroupList!
5591
5648
 
5649
+ """Playback 데이터 조회 (목업)"""
5650
+ playback(count: Int, endTime: String, includeSnapshot: Boolean = true, startTime: String!): PlaybackResponse!
5651
+
5652
+ """목업 엔티티 목록 (보드 작화용)"""
5653
+ playbackEntities: MockEntities!
5654
+
5592
5655
  """To fetch a UserPreference"""
5593
5656
  preference(id: String!): UserPreference
5594
5657
 
@@ -27,7 +27,6 @@
27
27
 
28
28
  <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
29
29
 
30
- <script src="/fmsim/node_modules/@hatiolab/things-scene/things-scene-min.js"></script>
31
30
  <script src="/fmsim/scene-viewer.js"></script>
32
31
  </head>
33
32
  <body>
@@ -48,7 +48,6 @@
48
48
  })
49
49
  }
50
50
  </script>
51
- <script src="/fmsim/node_modules/@hatiolab/things-scene/things-scene-min.js"></script>
52
51
  <script src="/fmsim/headless-scene-components.js"></script>
53
52
 
54
53
  <script>
@@ -45,7 +45,6 @@
45
45
  })
46
46
  }
47
47
  </script>
48
- <script src="/fmsim/node_modules/@hatiolab/things-scene/things-scene-min.js"></script>
49
48
  <script src="/fmsim/headless-scene-components.js"></script>
50
49
 
51
50
  <script>