@fmsim/fmsim 2.0.0-beta.76 → 2.0.0-beta.78

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.76",
3
+ "version": "2.0.0-beta.78",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -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.76",
44
- "@fmsim/machine": "^2.0.0-beta.75",
43
+ "@fmsim/layout-view": "^2.0.0-beta.77",
44
+ "@fmsim/machine": "^2.0.0-beta.78",
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",
@@ -78,5 +78,5 @@
78
78
  "resolutions": {
79
79
  "lit": "^3.0.0"
80
80
  },
81
- "gitHead": "e0dc5d7155fb8b45f16837f1784ca8d3c1ac9077"
81
+ "gitHead": "ec49cb13a3210741a7002d0f3fb002ed280594f4"
82
82
  }
package/schema.graphql CHANGED
@@ -347,6 +347,7 @@ type Attachment {
347
347
  refType: String
348
348
  size: String!
349
349
  tags: Object
350
+ thumbnail: String
350
351
  updatedAt: DateTimeISO!
351
352
  updater: User
352
353
  }
@@ -660,6 +661,11 @@ type Board {
660
661
  """
661
662
  sortOrder: Float
662
663
 
664
+ """
665
+ Source ImportSession id (board-import) when this board was generated from a drawing/image import.
666
+ """
667
+ sourceImportSessionId: String
668
+
663
669
  """The state of the board, can be 'draft' or 'released'."""
664
670
  state: String
665
671
 
@@ -716,6 +722,11 @@ type BoardFavorite {
716
722
  """
717
723
  sortOrder: Float
718
724
 
725
+ """
726
+ Source ImportSession id (board-import) when this board was generated from a drawing/image import.
727
+ """
728
+ sourceImportSessionId: String
729
+
719
730
  """The state of the board, can be 'draft' or 'released'."""
720
731
  state: String
721
732
 
@@ -1400,6 +1411,27 @@ type DomainList {
1400
1411
  total: Int
1401
1412
  }
1402
1413
 
1414
+ """An ownership record binding a User to a Domain (multi-owner support)."""
1415
+ type DomainOwner {
1416
+ """Domain that the user owns."""
1417
+ domain: Domain!
1418
+
1419
+ """When the ownership was granted."""
1420
+ grantedAt: DateTimeISO!
1421
+
1422
+ """User who granted this ownership (audit)."""
1423
+ grantedBy: User
1424
+
1425
+ """Unique identifier."""
1426
+ id: ID!
1427
+
1428
+ """Optional reason/memo for granting ownership."""
1429
+ reason: String
1430
+
1431
+ """User who owns the domain."""
1432
+ user: User!
1433
+ }
1434
+
1403
1435
  """Input type for updating an existing domain entity."""
1404
1436
  input DomainPatch {
1405
1437
  """Additional attributes for the domain in key-value pairs."""
@@ -2385,10 +2417,18 @@ type Mutation {
2385
2417
  username: String!
2386
2418
  ): Boolean!
2387
2419
 
2420
+ """Add a user as owner of the current domain."""
2421
+ addDomainOwner(reason: String, username: String!): DomainOwner!
2422
+
2388
2423
  """
2389
2424
  Attaches an existing contact to an employee. The contact is identified by its ID and the employee is identified by their ID.
2390
2425
  """
2391
2426
  attachContact(contactId: String!, id: String!): Employee!
2427
+
2428
+ """
2429
+ 썸네일이 없는 기존 첨부파일들에 대해 서버에서 썸네일을 일괄 생성한다. 한 호출당 limit 개까지만 처리하며, remaining > 0 이면 반복 호출 필요.
2430
+ """
2431
+ backfillAttachmentThumbnails(limit: Int = 20): ThumbnailBackfillResult!
2392
2432
  cancelInvitation(email: EmailAddress!, reference: String!, type: String!): Boolean!
2393
2433
 
2394
2434
  """To clear translations cache"""
@@ -2990,6 +3030,9 @@ type Mutation {
2990
3030
 
2991
3031
  """Releases a board, making it public and creating a version history."""
2992
3032
  releaseBoard(id: String!): Board!
3033
+
3034
+ """Remove a user from the owners of the current domain."""
3035
+ removeDomainOwner(reason: String, username: String!): Boolean!
2993
3036
  renewApplicationAccessToken(id: String!, scope: String!): AccessToken!
2994
3037
 
2995
3038
  """Reorders a board between two adjacent boards by ID."""
@@ -5109,6 +5152,9 @@ type Query {
5109
5152
  sortings: [Sorting!]
5110
5153
  ): DomainLinkList!
5111
5154
 
5155
+ """List owners of the current domain."""
5156
+ domainOwners: [DomainOwner!]!
5157
+
5112
5158
  """
5113
5159
  Fetches the list of available domain types from configuration. Only superusers are granted this privilege.
5114
5160
  """
@@ -5306,6 +5352,9 @@ type Query {
5306
5352
  invitation(email: EmailAddress!, reference: String!, type: String!): Invitation!
5307
5353
  invitations(reference: String!, type: String!): InvitationList!
5308
5354
 
5355
+ """Check if a user is an owner of the current domain."""
5356
+ isDomainOwner(username: String!): Boolean!
5357
+
5309
5358
  """To fetch multiple LoginHistories"""
5310
5359
  loginHistories(
5311
5360
  """An array of filter conditions to apply to the list query."""
@@ -6683,6 +6732,21 @@ input ThemePatch {
6683
6732
  value: Object
6684
6733
  }
6685
6734
 
6735
+ """썸네일 백필 결과"""
6736
+ type ThumbnailBackfillResult {
6737
+ """이번 호출에서 처리 시도한 첨부 개수"""
6738
+ attempted: Int!
6739
+
6740
+ """실패(생성 실패/콘텐츠 없음 등) 개수"""
6741
+ failed: Int!
6742
+
6743
+ """이번 처리 후에도 남아있는 썸네일 미생성 후보 개수 (대략치). 0 이면 완료"""
6744
+ remaining: Int!
6745
+
6746
+ """썸네일 생성·저장 성공 개수"""
6747
+ succeeded: Int!
6748
+ }
6749
+
6686
6750
  """The `Upload` scalar type represents a file upload."""
6687
6751
  scalar Upload
6688
6752