@fragus/sam-types 1.1.5 → 1.1.6

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,5 +1,5 @@
1
1
  {
2
- "version": "1.1.5",
2
+ "version": "1.1.6",
3
3
  "name": "@fragus/sam-types",
4
4
  "description": "Typescript interfaces for all types used to communicate between SAM client(s) and the SAM API",
5
5
  "author": "Fragus",
@@ -16,12 +16,16 @@ export interface IProviderDocument {
16
16
  // Admin sees the document and its upload date only — no internal staff names.
17
17
  export interface IProviderDocumentAdminView extends IProviderDocument {}
18
18
 
19
- // Superadmin also sees the acting support users, the tombstone state, and the sharing group. The group
20
- // fields are null on a provider-owned row.
19
+ export interface IProviderDocumentGroup {
20
+ contractProviderGroupId: number
21
+ name: string
22
+ }
23
+
24
+ // Superadmin also sees the acting support users, the tombstone state, and the sharing groups, sorted by
25
+ // name. `groups` is empty on a provider-owned row.
21
26
  export interface IProviderDocumentSuperadminView extends IProviderDocument {
22
27
  uploadedByName: string | null
23
28
  deletedAt: string | null
24
29
  deletedByName: string | null
25
- contractProviderGroupId: number | null
26
- contractProviderGroupName: string | null
30
+ groups: IProviderDocumentGroup[]
27
31
  }
@@ -1 +1,4 @@
1
- export type ContractProviderGroupErrors = 'CONTRACT_PROVIDER_GROUP_NAME_TAKEN' | 'CONTRACT_PROVIDER_GROUP_IN_USE'
1
+ export type ContractProviderGroupErrors =
2
+ | 'CONTRACT_PROVIDER_GROUP_NAME_TAKEN'
3
+ | 'CONTRACT_PROVIDER_GROUP_IN_USE'
4
+ | 'CONTRACT_PROVIDER_GROUP_DOCUMENT_SHARED'