@overmap-ai/core 1.0.78-custom-page-sizes.0 → 1.0.78-debug.0

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 (170) hide show
  1. package/dist/constants/defaults.d.ts +1 -2
  2. package/dist/enums/asset.d.ts +8 -0
  3. package/dist/enums/index.d.ts +1 -0
  4. package/dist/enums/issue.d.ts +7 -5
  5. package/dist/overmap-core.js +8730 -7506
  6. package/dist/overmap-core.umd.cjs +11 -11
  7. package/dist/sdk/base.d.ts +6 -2
  8. package/dist/sdk/constants.d.ts +1 -0
  9. package/dist/sdk/errors.d.ts +5 -0
  10. package/dist/sdk/index.d.ts +2 -0
  11. package/dist/sdk/performRequest.d.ts +6 -0
  12. package/dist/sdk/services/AgentService.d.ts +1 -0
  13. package/dist/sdk/services/AssetAttachmentService.d.ts +24 -26
  14. package/dist/sdk/services/AssetProcedureService.d.ts +21 -4
  15. package/dist/sdk/services/AssetProcedureStepFieldValuesAttachmentService.d.ts +19 -2
  16. package/dist/sdk/services/AssetProcedureStepFieldValuesService.d.ts +19 -2
  17. package/dist/sdk/services/AssetProcedureStepFieldsAttachmentService.d.ts +19 -2
  18. package/dist/sdk/services/AssetProcedureStepFieldsService.d.ts +20 -3
  19. package/dist/sdk/services/AssetProcedureStepService.d.ts +20 -3
  20. package/dist/sdk/services/AssetProcedureTypeAttachmentService.d.ts +24 -25
  21. package/dist/sdk/services/AssetProcedureTypeFieldValuesAttachmentService.d.ts +19 -2
  22. package/dist/sdk/services/AssetProcedureTypeFieldValuesService.d.ts +19 -2
  23. package/dist/sdk/services/AssetProcedureTypeFieldsAttachmentService.d.ts +19 -2
  24. package/dist/sdk/services/AssetProcedureTypeFieldsService.d.ts +20 -3
  25. package/dist/sdk/services/AssetProcedureTypeService.d.ts +21 -4
  26. package/dist/sdk/services/AssetService.d.ts +21 -4
  27. package/dist/sdk/services/AssetStageCompletionService.d.ts +20 -3
  28. package/dist/sdk/services/AssetStageService.d.ts +20 -3
  29. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +24 -25
  30. package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +19 -2
  31. package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +19 -2
  32. package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +20 -3
  33. package/dist/sdk/services/AssetTypeFieldsService.d.ts +19 -2
  34. package/dist/sdk/services/AssetTypeIdentifierService.d.ts +20 -3
  35. package/dist/sdk/services/AssetTypeIdentifierValueService.d.ts +20 -3
  36. package/dist/sdk/services/AssetTypeService.d.ts +20 -3
  37. package/dist/sdk/services/AssetTypeStatusService.d.ts +28 -0
  38. package/dist/sdk/services/BaseModelApiService.d.ts +27 -0
  39. package/dist/sdk/services/BaseOfflineAttachmentModelService.d.ts +23 -0
  40. package/dist/sdk/services/BaseOfflineModelApiService.d.ts +27 -0
  41. package/dist/sdk/services/BaseService.d.ts +4 -3
  42. package/dist/sdk/services/CategoryService.d.ts +21 -4
  43. package/dist/sdk/services/DocumentAttachmentService.d.ts +24 -25
  44. package/dist/sdk/services/DocumentService.d.ts +21 -4
  45. package/dist/sdk/services/EmailDomainsService.d.ts +20 -3
  46. package/dist/sdk/services/FileService.d.ts +4 -0
  47. package/dist/sdk/services/FormIdentifierService.d.ts +20 -3
  48. package/dist/sdk/services/FormIdentifierValueService.d.ts +20 -3
  49. package/dist/sdk/services/FormRevisionAttachmentService.d.ts +19 -2
  50. package/dist/sdk/services/FormRevisionService.d.ts +19 -2
  51. package/dist/sdk/services/FormService.d.ts +19 -2
  52. package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +19 -2
  53. package/dist/sdk/services/FormSubmissionService.d.ts +20 -3
  54. package/dist/sdk/services/GeoImageService.d.ts +22 -5
  55. package/dist/sdk/services/IssueAssociationService.d.ts +20 -3
  56. package/dist/sdk/services/IssueAttachmentService.d.ts +24 -26
  57. package/dist/sdk/services/IssueCommentAttachmentService.d.ts +24 -26
  58. package/dist/sdk/services/IssueCommentService.d.ts +21 -4
  59. package/dist/sdk/services/IssueService.d.ts +21 -4
  60. package/dist/sdk/services/IssueTypeAttachmentService.d.ts +24 -26
  61. package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +19 -2
  62. package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +20 -3
  63. package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +19 -2
  64. package/dist/sdk/services/IssueTypeFieldsService.d.ts +20 -3
  65. package/dist/sdk/services/IssueTypeIdentifierService.d.ts +20 -3
  66. package/dist/sdk/services/IssueTypeIdentifierValueService.d.ts +20 -3
  67. package/dist/sdk/services/IssueTypeService.d.ts +20 -3
  68. package/dist/sdk/services/IssueTypeStatusService.d.ts +28 -0
  69. package/dist/sdk/services/IssueUpdateService.d.ts +19 -2
  70. package/dist/sdk/services/OrganizationAccessService.d.ts +20 -3
  71. package/dist/sdk/services/OrganizationService.d.ts +19 -2
  72. package/dist/sdk/services/ProjectAccessService.d.ts +22 -5
  73. package/dist/sdk/services/ProjectAttachmentService.d.ts +24 -25
  74. package/dist/sdk/services/ProjectFileService.d.ts +19 -2
  75. package/dist/sdk/services/ProjectService.d.ts +21 -4
  76. package/dist/sdk/services/TeamMembershipService.d.ts +19 -2
  77. package/dist/sdk/services/TeamService.d.ts +20 -3
  78. package/dist/sdk/services/UserService.d.ts +23 -2
  79. package/dist/sdk/services/index.d.ts +5 -0
  80. package/dist/sdk/typings.d.ts +14 -57
  81. package/dist/sdk/utils.d.ts +2 -0
  82. package/dist/store/adapters/modelAdapter.d.ts +13 -14
  83. package/dist/store/adapters/typings.d.ts +19 -0
  84. package/dist/store/reducers.d.ts +9 -3
  85. package/dist/store/slices/agentsSlice.d.ts +9 -36
  86. package/dist/store/slices/assetAttachmentSlice.d.ts +10 -36
  87. package/dist/store/slices/assetProcedureSlice.d.ts +12 -37
  88. package/dist/store/slices/assetProcedureStepFieldValuesAttachmentSlice.d.ts +12 -37
  89. package/dist/store/slices/assetProcedureStepFieldValuesSlice.d.ts +13 -37
  90. package/dist/store/slices/assetProcedureStepFieldsAttachmentSlice.d.ts +13 -37
  91. package/dist/store/slices/assetProcedureStepFieldsSlice.d.ts +16 -38
  92. package/dist/store/slices/assetProcedureStepSlice.d.ts +12 -37
  93. package/dist/store/slices/assetProcedureTypeAttachmentSlice.d.ts +10 -36
  94. package/dist/store/slices/assetProcedureTypeFieldValuesAttachmentSlice.d.ts +12 -37
  95. package/dist/store/slices/assetProcedureTypeFieldValuesSlice.d.ts +13 -37
  96. package/dist/store/slices/assetProcedureTypeFieldsAttachmentSlice.d.ts +13 -37
  97. package/dist/store/slices/assetProcedureTypeFieldsSlice.d.ts +10 -36
  98. package/dist/store/slices/assetProcedureTypeSlice.d.ts +9 -36
  99. package/dist/store/slices/assetSlice.d.ts +12 -37
  100. package/dist/store/slices/assetStageCompletionSlice.d.ts +12 -37
  101. package/dist/store/slices/assetStageSlice.d.ts +12 -37
  102. package/dist/store/slices/assetTypeAttachmentSlice.d.ts +10 -36
  103. package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +12 -37
  104. package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +13 -37
  105. package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +13 -37
  106. package/dist/store/slices/assetTypeFieldsSlice.d.ts +13 -37
  107. package/dist/store/slices/assetTypeIdentifierSlice.d.ts +11 -37
  108. package/dist/store/slices/assetTypeIdentifierValueSlice.d.ts +11 -37
  109. package/dist/store/slices/assetTypeSlice.d.ts +9 -36
  110. package/dist/store/slices/assetTypeStatusSlice.d.ts +112 -0
  111. package/dist/store/slices/categorySlice.d.ts +12 -37
  112. package/dist/store/slices/documentAttachmentSlice.d.ts +10 -36
  113. package/dist/store/slices/documentSlice.d.ts +15 -22
  114. package/dist/store/slices/emailDomainsSlice.d.ts +15 -38
  115. package/dist/store/slices/formIdentifierSlice.d.ts +11 -37
  116. package/dist/store/slices/formIdentifierValueSlice.d.ts +11 -37
  117. package/dist/store/slices/formRevisionAttachmentSlice.d.ts +102 -36
  118. package/dist/store/slices/formRevisionSlice.d.ts +13 -37
  119. package/dist/store/slices/formSlice.d.ts +14 -38
  120. package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +11 -36
  121. package/dist/store/slices/formSubmissionSlice.d.ts +10 -36
  122. package/dist/store/slices/geoImageSlice.d.ts +13 -37
  123. package/dist/store/slices/index.d.ts +2 -0
  124. package/dist/store/slices/issueAssociationSlice.d.ts +13 -37
  125. package/dist/store/slices/issueAttachmentSlice.d.ts +10 -36
  126. package/dist/store/slices/issueCommentAttachmentSlice.d.ts +10 -36
  127. package/dist/store/slices/issueCommentSlice.d.ts +10 -36
  128. package/dist/store/slices/issueSlice.d.ts +9 -36
  129. package/dist/store/slices/issueTypeAttachmentSlice.d.ts +10 -36
  130. package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +12 -37
  131. package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +13 -37
  132. package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +13 -37
  133. package/dist/store/slices/issueTypeFieldsSlice.d.ts +13 -37
  134. package/dist/store/slices/issueTypeIdentifierSlice.d.ts +11 -37
  135. package/dist/store/slices/issueTypeIdentifierValueSlice.d.ts +11 -37
  136. package/dist/store/slices/issueTypeSlice.d.ts +11 -42
  137. package/dist/store/slices/issueTypeStatusSlice.d.ts +112 -0
  138. package/dist/store/slices/issueUpdateSlice.d.ts +11 -36
  139. package/dist/store/slices/organizationAccessSlice.d.ts +10 -36
  140. package/dist/store/slices/organizationSlice.d.ts +14 -38
  141. package/dist/store/slices/outboxSlice.d.ts +6 -7
  142. package/dist/store/slices/projectAccessSlice.d.ts +10 -36
  143. package/dist/store/slices/projectAttachmentSlice.d.ts +10 -36
  144. package/dist/store/slices/projectFileSlice.d.ts +14 -39
  145. package/dist/store/slices/projectSlice.d.ts +14 -38
  146. package/dist/store/slices/teamMembershipSlice.d.ts +11 -37
  147. package/dist/store/slices/teamSlice.d.ts +11 -38
  148. package/dist/store/slices/userSlice.d.ts +12 -37
  149. package/dist/store/store.d.ts +4 -13
  150. package/dist/store/typings.d.ts +18 -1
  151. package/dist/typings/files.d.ts +15 -14
  152. package/dist/typings/models/agents.d.ts +2 -1
  153. package/dist/typings/models/assets.d.ts +19 -9
  154. package/dist/typings/models/base.d.ts +1 -11
  155. package/dist/typings/models/categories.d.ts +1 -1
  156. package/dist/typings/models/documents.d.ts +5 -8
  157. package/dist/typings/models/fields.d.ts +4 -4
  158. package/dist/typings/models/forms.d.ts +1 -1
  159. package/dist/typings/models/geoImages.d.ts +7 -7
  160. package/dist/typings/models/issues.d.ts +34 -22
  161. package/dist/typings/models/projects.d.ts +5 -5
  162. package/dist/typings/models/teams.d.ts +2 -3
  163. package/dist/typings/models/users.d.ts +2 -1
  164. package/dist/utils/models/assets.d.ts +2 -1
  165. package/dist/utils/models/documents.d.ts +4 -0
  166. package/dist/utils/models/index.d.ts +2 -0
  167. package/dist/utils/models/issues.d.ts +2 -0
  168. package/package.json +3 -3
  169. package/dist/sdk/services/BaseAttachmentService.d.ts +0 -39
  170. package/dist/sdk/services/BaseUploadService.d.ts +0 -10
@@ -1,49 +1,22 @@
1
1
  import { Organization, Stored, Team } from '../../typings';
2
- import { OvermapSelector, OvermapSelectorWithArgs } from '../typings';
2
+ import { OvermapRootState, OvermapSelector, OvermapSelectorWithArgs } from '../typings';
3
3
  import { ModelState } from '../adapters';
4
4
  export type TeamState = ModelState<Team["uuid"], Stored<Team>>;
5
5
  export declare const teamSlice: import('@reduxjs/toolkit').Slice<TeamState, {
6
- initializeTeams: (state: ModelState<string, Stored<Team>>, action: {
7
- payload: Stored<Team>[];
8
- type: string;
9
- }) => void;
10
- addTeam: (state: ModelState<string, Stored<Team>>, action: {
11
- payload: Stored<Team>;
12
- type: string;
13
- }) => void;
14
- addTeams: (state: ModelState<string, Stored<Team>>, action: {
15
- payload: Stored<Team>[];
16
- type: string;
17
- }) => void;
18
- setTeam: (state: ModelState<string, Stored<Team>>, action: {
19
- payload: Stored<Team>;
20
- type: string;
21
- }) => void;
22
- setTeams: (state: ModelState<string, Stored<Team>>, action: {
23
- payload: Stored<Team>[];
24
- type: string;
25
- }) => void;
26
- updateTeam: (state: ModelState<string, Stored<Team>>, action: {
27
- payload: Stored<Team>;
28
- type: string;
29
- }) => void;
30
- updateTeams: (state: ModelState<string, Stored<Team>>, action: {
31
- payload: Stored<Team>[];
32
- type: string;
33
- }) => void;
34
- deleteTeam: (state: ModelState<string, Stored<Team>>, action: {
35
- payload: string;
36
- type: string;
37
- }) => void;
38
- deleteTeams: (state: ModelState<string, Stored<Team>>, action: {
39
- payload: string[];
40
- type: string;
41
- }) => void;
6
+ initializeTeams: import('@reduxjs/toolkit').CaseReducer<TeamState, import('..').InitializePayloadAction<Stored<Team>>>;
7
+ addTeam: import('@reduxjs/toolkit').CaseReducer<TeamState, import('..').AddOnePayloadAction<Stored<Team>>>;
8
+ addTeams: import('@reduxjs/toolkit').CaseReducer<TeamState, import('..').AddManyPayloadAction<Stored<Team>>>;
9
+ setTeam: import('@reduxjs/toolkit').CaseReducer<TeamState, import('..').SetOnePayloadAction<Stored<Team>>>;
10
+ setTeams: import('@reduxjs/toolkit').CaseReducer<TeamState, import('..').SetManyPayloadAction<Stored<Team>>>;
11
+ updateTeam: import('@reduxjs/toolkit').CaseReducer<TeamState, import('..').UpdateOnePayloadAction<Stored<Team>>>;
12
+ updateTeams: import('@reduxjs/toolkit').CaseReducer<TeamState, import('..').UpdateManyPayloadAction<Stored<Team>>>;
13
+ deleteTeam: import('@reduxjs/toolkit').CaseReducer<TeamState, import('..').DeleteOnePayloadAction<string>>;
14
+ deleteTeams: import('@reduxjs/toolkit').CaseReducer<TeamState, import('..').DeleteManyPayloadAction<string>>;
42
15
  }, "teams", "teams", import('@reduxjs/toolkit').SliceSelectors<TeamState>>;
43
16
  export declare const initializeTeams: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>[], "teams/initializeTeams">, addTeam: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>, "teams/addTeam">, addTeams: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>[], "teams/addTeams">, setTeam: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>, "teams/setTeam">, setTeams: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>[], "teams/setTeams">, updateTeam: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>, "teams/updateTeam">, updateTeams: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>[], "teams/updateTeams">, deleteTeam: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "teams/deleteTeam">, deleteTeams: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "teams/deleteTeams">;
44
17
  export declare const selectTeamsMapping: OvermapSelector<TeamState["instances"]>;
45
18
  export declare const selectTeams: OvermapSelector<Stored<Team>[]>;
46
19
  export declare const selectTeamById: OvermapSelectorWithArgs<Team["uuid"], Stored<Team> | undefined>;
47
- export declare const selectTeamsByIds: OvermapSelectorWithArgs<Team["uuid"][], Stored<Team>[]>;
20
+ export declare const selectTeamsByIds: (args: string[]) => (state: OvermapRootState) => Stored<Team>[];
48
21
  export declare const selectTeamsOfOrganization: OvermapSelectorWithArgs<Organization["uuid"], Stored<Team>[]>;
49
22
  export declare const teamReducer: import('redux').Reducer<TeamState>;
@@ -6,42 +6,15 @@ export interface UserState extends ModelState<User["id"], User> {
6
6
  currentUser: User | null;
7
7
  }
8
8
  export declare const userSlice: import('@reduxjs/toolkit').Slice<UserState, {
9
- initializeUsers: (state: ModelState<number, User>, action: {
10
- payload: User[];
11
- type: string;
12
- }) => void;
13
- setUsers: (state: ModelState<number, User>, action: {
14
- payload: User[];
15
- type: string;
16
- }) => void;
17
- setUser: (state: ModelState<number, User>, action: {
18
- payload: User;
19
- type: string;
20
- }) => void;
21
- addUsers: (state: ModelState<number, User>, action: {
22
- payload: User[];
23
- type: string;
24
- }) => void;
25
- addUser: (state: ModelState<number, User>, action: {
26
- payload: User;
27
- type: string;
28
- }) => void;
29
- updateUsers: (state: ModelState<number, User>, action: {
30
- payload: User[];
31
- type: string;
32
- }) => void;
33
- updateUser: (state: ModelState<number, User>, action: {
34
- payload: User;
35
- type: string;
36
- }) => void;
37
- deleteUser: (state: ModelState<number, User>, action: {
38
- payload: number;
39
- type: string;
40
- }) => void;
41
- deleteUsers: (state: ModelState<number, User>, action: {
42
- payload: number[];
43
- type: string;
44
- }) => void;
9
+ initializeUsers: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').InitializePayloadAction<User>>;
10
+ setUsers: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').SetManyPayloadAction<User>>;
11
+ setUser: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').SetOnePayloadAction<User>>;
12
+ addUsers: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').AddManyPayloadAction<User>>;
13
+ addUser: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').AddOnePayloadAction<User>>;
14
+ updateUsers: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').UpdateManyPayloadAction<User>>;
15
+ updateUser: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').UpdateOnePayloadAction<User>>;
16
+ deleteUser: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').DeleteOnePayloadAction<number>>;
17
+ deleteUsers: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').DeleteManyPayloadAction<number>>;
45
18
  setCurrentUser: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<User | null>) => void;
46
19
  setProfilePicture: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<{
47
20
  file?: string;
@@ -99,16 +72,18 @@ export declare const selectUsers: ((state: {
99
72
  issueTypeFieldValuesAttachmentReducer: import('./issueTypeFieldValuesAttachmentSlice').IssueTypeFieldValuesAttachmentState;
100
73
  issueTypeIdentifierReducer: import('./issueTypeIdentifierSlice').IssueTypeIdentifierState;
101
74
  issueTypeIdentifierValueReducer: import('./issueTypeIdentifierValueSlice').IssueTypeIdentifierValueState;
75
+ issueTypeStatusReducer: import('./issueTypeStatusSlice').IssueTypeStatusState;
102
76
  assetTypeFieldsReducer: import('./assetTypeFieldsSlice').AssetTypeFieldsState;
103
77
  assetTypeFieldValuesReducer: import('./assetTypeFieldValuesSlice').AssetTypeFieldValuesState;
104
78
  assetTypeFieldsAttachmentReducer: import('./assetTypeFieldsAttachmentSlice').AssetTypeFieldsAttachmentState;
105
79
  assetTypeFieldValuesAttachmentReducer: import('./assetTypeFieldValuesAttachmentSlice').AssetTypeFieldValuesAttachmentState;
106
80
  assetTypeIdentifierReducer: import('./assetTypeIdentifierSlice').AssetTypeIdentifierState;
107
81
  assetTypeIdentifierValueReducer: import('./assetTypeIdentifierValueSlice').AssetTypeIdentifierValueState;
82
+ assetTypeStatusReducer: import('./assetTypeStatusSlice').AssetTypeStatusState;
108
83
  assetProcedureTypeReducer: import('./assetProcedureTypeSlice').AssetProcedureTypeState;
109
84
  assetProcedureReducer: import('./assetProcedureSlice').AssetProcedureState;
110
85
  assetProcedureTypeFieldsReducer: import('./assetProcedureTypeFieldsSlice').AssetProcedureTypeFieldsState;
111
- assetProcedureFieldValuesReducer: import('./assetProcedureTypeFieldValuesSlice').AssetProcedureTypeFieldValuesState;
86
+ assetProcedureTypeFieldValuesReducer: import('./assetProcedureTypeFieldValuesSlice').AssetProcedureTypeFieldValuesState;
112
87
  assetProcedureTypeFieldsAttachmentReducer: import('./assetProcedureTypeFieldsAttachmentSlice').AssetProcedureTypeFieldsAttachmentState;
113
88
  assetProcedureTypeFieldValuesAttachmentReducer: import('./assetProcedureTypeFieldValuesAttachmentSlice').AssetProcedureTypeFieldValuesAttachmentState;
114
89
  assetProcedureTypeAttachmentReducer: import('./assetProcedureTypeAttachmentSlice').AssetProcedureTypeAttachmentState;
@@ -1,16 +1,7 @@
1
- import { Config, OfflineAction, OfflineMetadata } from '@redux-offline/redux-offline/lib/types';
1
+ import { Config } from '@redux-offline/redux-offline/lib/types';
2
2
  import { default as request } from 'superagent';
3
- import { BaseState } from './typings';
4
- import { BaseSDK, OfflineMetaEffect, RequestDetails } from '../sdk';
5
- export interface FullOfflineMetadata extends OfflineMetadata {
6
- effect: OfflineMetaEffect;
7
- }
8
- export interface FullOfflineAction extends OfflineAction {
9
- meta: {
10
- offline: FullOfflineMetadata;
11
- };
12
- payload: RequestDetails;
13
- }
3
+ import { BaseState, FullOfflineAction } from './typings';
4
+ import { BaseSDK } from '../sdk';
14
5
  export declare const enqueue: Config["queue"]["enqueue"];
15
6
  export declare const dequeue: Config["queue"]["dequeue"];
16
7
  /**
@@ -18,5 +9,5 @@ export declare const dequeue: Config["queue"]["dequeue"];
18
9
  * Add to your store's `enhancers` array.
19
10
  */
20
11
  export declare const overmapEnhancer: (...args: any[]) => unknown;
21
- export declare function performRequest(action: FullOfflineAction, client: BaseSDK<BaseState>, signal?: AbortSignal): Promise<request.Response>;
12
+ export declare function performRequestFromAction(action: FullOfflineAction, client: BaseSDK<BaseState>, signal?: AbortSignal): Promise<request.Response>;
22
13
  export declare function discard(reason: unknown, action: FullOfflineAction, retries?: number): boolean;
@@ -1,4 +1,5 @@
1
- import { OfflineState } from '@redux-offline/redux-offline/lib/types';
1
+ import { OfflineAction, OfflineMetadata, OfflineState } from '@redux-offline/redux-offline/lib/types';
2
+ import { OfflineRequestDetails } from '../sdk';
2
3
  import { baseReducer, overmapReducer } from './reducers';
3
4
  export type BaseState = ReturnType<typeof baseReducer> & {
4
5
  offline: OfflineState;
@@ -12,3 +13,19 @@ export type OvermapSelectorWithArgs<TArgs, TRet> = SelectorWithArgs<OvermapRootS
12
13
  export type OvermapSelector<TRet> = Selector<OvermapRootState, TRet>;
13
14
  export type Migrator = (state: Partial<OvermapRootState>) => Partial<OvermapRootState>;
14
15
  export type Manifest = Record<number, Migrator>;
16
+ export interface OfflineMetaEffect {
17
+ request: OfflineRequestDetails;
18
+ /** An ISO timestamp of when the request was created. */
19
+ timestamp: string;
20
+ BASE_URL: string;
21
+ serviceName: string;
22
+ }
23
+ export interface FullOfflineMetadata extends OfflineMetadata {
24
+ effect: OfflineMetaEffect;
25
+ }
26
+ export interface FullOfflineAction extends OfflineAction {
27
+ meta: {
28
+ offline: FullOfflineMetadata;
29
+ };
30
+ payload: OfflineRequestDetails;
31
+ }
@@ -1,25 +1,26 @@
1
- export type MaybeObjectURL<T> = T & {
2
- objectURL?: string;
3
- };
4
- /**
5
- * Represents a file model that has been uploaded to the backend.
6
- * A corresponding abstract model exists in the backend (FileModelMixin).
7
- */
8
- export type FileModel = MaybeObjectURL<{
9
- file_sha1: string;
1
+ export interface OptionalFileModel {
2
+ file: string | null;
3
+ file_sha1: string | null;
4
+ }
5
+ export interface OptionalFileWithNameModel extends OptionalFileModel {
6
+ file_name: string | null;
7
+ }
8
+ export interface RequiredFileModel {
10
9
  file: string;
11
- }>;
12
- export interface FileWithNameModel extends FileModel {
10
+ file_sha1: string;
11
+ }
12
+ export interface RequiredFileWithNameModel extends RequiredFileModel {
13
13
  file_name: string;
14
+ file_type: string | null;
14
15
  }
15
16
  export interface FilePayload {
16
- sha1: FileModel["file_sha1"];
17
+ sha1: string;
17
18
  file_type: string;
18
19
  extension: string;
19
20
  size: number;
20
21
  }
21
22
  export interface FileModelPayload {
22
- file_sha1: FileWithNameModel["file_sha1"];
23
- file_name: FileWithNameModel["file_name"];
23
+ file_sha1: string;
24
+ file_name: string;
24
25
  file_extension: string;
25
26
  }
@@ -1,5 +1,6 @@
1
1
  import { JSONContent } from '@tiptap/core';
2
- import { OptionalFileModel, TimestampedModel, UUID } from './base';
2
+ import { OptionalFileModel } from '../files';
3
+ import { TimestampedModel, UUID } from './base';
3
4
  export interface AgentProfile extends OptionalFileModel {
4
5
  /**
5
6
  * The name of the agent.
@@ -1,24 +1,28 @@
1
1
  import { SerializedCondition } from '@overmap-ai/forms';
2
- import { AbbreviationModel, Attachment, ColorModel, CreatedByModel, GeometryModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, SubmittedAtModel, TimestampedModel, TreeModel, UUIDModel } from './base';
2
+ import { RequiredFileWithNameModel } from '../files';
3
+ import { AbbreviationModel, ColorModel, CreatedByModel, GeometryModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, SubmittedAtModel, TimestampedModel, TreeModel, UUIDModel } from './base';
3
4
  import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
4
5
  import { Organization } from './organizations';
5
6
  import { Project } from './projects';
7
+ import { AssetStatusType } from '../../enums';
6
8
  export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, GeometryModel, IndexedModel {
7
9
  asset_type: AssetType["uuid"];
8
10
  label: string | null;
9
- description?: string;
11
+ description: string | null;
10
12
  project: Project["uuid"];
13
+ status: AssetTypeStatus["uuid"];
11
14
  }
12
15
  export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
13
16
  organization: Organization["uuid"];
14
17
  name: string;
15
- description?: string;
18
+ description: string | null;
16
19
  order: number;
20
+ default_status: AssetTypeStatus["uuid"] | null;
17
21
  }
18
22
  export interface AssetProcedureType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
19
23
  organization: Organization["uuid"];
20
24
  name: string;
21
- description?: string | null;
25
+ description: string | null;
22
26
  }
23
27
  export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IndexedModel {
24
28
  asset_procedure_type: AssetProcedureType["uuid"];
@@ -28,7 +32,7 @@ export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAt
28
32
  export interface AssetStage extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel {
29
33
  asset_procedure_type: AssetProcedureType["uuid"];
30
34
  name: string;
31
- description?: string | null;
35
+ description: string | null;
32
36
  priority: number;
33
37
  }
34
38
  export interface AssetStageCompletion extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
@@ -67,7 +71,7 @@ export interface AssetProcedureTypeFieldValuesAttachment extends UUIDModel, Subm
67
71
  export interface AssetProcedureStep extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel, TreeModel<string> {
68
72
  asset_procedure_type: AssetProcedureType["uuid"];
69
73
  name: string;
70
- description?: string | null;
74
+ description: string | null;
71
75
  order: number;
72
76
  }
73
77
  export interface AssetProcedureStepFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
@@ -93,12 +97,18 @@ export interface AssetTypeIdentifierValue extends UUIDModel, SubmittedAtModel, T
93
97
  asset: Asset["uuid"];
94
98
  asset_type_identifier: AssetTypeIdentifier["uuid"];
95
99
  }
96
- export interface AssetAttachment extends Attachment {
100
+ export interface AssetAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
97
101
  asset: Asset["uuid"];
98
102
  }
99
- export interface AssetTypeAttachment extends Attachment {
103
+ export interface AssetTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
100
104
  asset_type: AssetType["uuid"];
101
105
  }
102
- export interface AssetProcedureTypeAttachment extends Attachment {
106
+ export interface AssetProcedureTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
103
107
  asset_procedure_type: AssetProcedureType["uuid"];
104
108
  }
109
+ export interface AssetTypeStatus extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
110
+ asset_type: AssetType["uuid"];
111
+ name: string;
112
+ type: AssetStatusType;
113
+ order: number;
114
+ }
@@ -1,5 +1,4 @@
1
1
  import { Geometry, MultiPoint, Point } from 'geojson';
2
- import { FileWithNameModel } from '../files';
3
2
  import { User } from './users';
4
3
  import { COMMON_AUTO_FIELDS } from '../../utils';
5
4
  export type UUID<T> = T & {
@@ -54,11 +53,6 @@ export interface TimestampedModel extends Model {
54
53
  created_at: string;
55
54
  updated_at: string;
56
55
  }
57
- export interface OptionalFileModel {
58
- file_sha1?: string | null;
59
- file?: string | null;
60
- objectURL?: string;
61
- }
62
56
  export interface IconModel {
63
57
  icon: string;
64
58
  }
@@ -66,7 +60,7 @@ export interface ColorModel {
66
60
  color: string;
67
61
  }
68
62
  export interface CreatedByModel {
69
- created_by?: User["id"] | null;
63
+ created_by: User["id"] | null;
70
64
  }
71
65
  export interface IndexedModel {
72
66
  index: number;
@@ -95,10 +89,6 @@ export interface GeometryModel {
95
89
  export interface AbbreviationModel {
96
90
  abbr: string;
97
91
  }
98
- export interface Attachment extends UUIDModel, TimestampedModel, SubmittedAtModel, FileWithNameModel, CreatedByModel {
99
- description?: string;
100
- file_type: string;
101
- }
102
92
  export interface TreeModel<TId extends string | number | symbol> {
103
93
  parent: TId | null;
104
94
  }
@@ -2,6 +2,6 @@ import { ColorModel, CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDMod
2
2
  import { Project } from './projects';
3
3
  export interface Category extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, ColorModel {
4
4
  name: string;
5
- description?: string;
5
+ description: string | null;
6
6
  project: Project["uuid"];
7
7
  }
@@ -1,4 +1,5 @@
1
- import { Attachment, ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
1
+ import { RequiredFileWithNameModel } from '../files';
2
+ import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
2
3
  import { Organization } from './organizations';
3
4
  import { Project } from './projects';
4
5
  export interface Document extends UUIDModel, SubmittedAtModel, CreatedByModel, TimestampedModel, IconModel, ColorModel {
@@ -6,14 +7,10 @@ export interface Document extends UUIDModel, SubmittedAtModel, CreatedByModel, T
6
7
  description: string | null;
7
8
  content: string | null;
8
9
  parent_document: Document["uuid"] | null;
9
- children_documents: Document["uuid"][];
10
- project?: Project["uuid"];
11
- organization?: Organization["uuid"];
10
+ project: Project["uuid"] | null;
11
+ organization: Organization["uuid"] | null;
12
12
  }
13
- export interface DocumentAttachment extends Attachment {
13
+ export interface DocumentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
14
14
  document: Document["uuid"];
15
15
  }
16
16
  export type MovePosition = "left" | "right" | "left-child" | "right-child";
17
- export interface DocumentAttachment extends Attachment {
18
- document: string;
19
- }
@@ -1,16 +1,16 @@
1
1
  import { SerializedField, SerializedFieldSection, SerializedFieldValues } from '@overmap-ai/forms';
2
- import { FileWithNameModel } from '../files';
2
+ import { RequiredFileWithNameModel } from '../files';
3
3
  export interface FieldsModel {
4
4
  fields: SerializedFieldSection[];
5
5
  revision: number;
6
6
  }
7
7
  export interface FieldValuesModel {
8
- published_at?: string | null;
8
+ published_at: string | null;
9
9
  values: SerializedFieldValues;
10
10
  }
11
- export interface FieldsAttachmentModel extends FileWithNameModel {
11
+ export interface FieldsAttachmentModel extends RequiredFileWithNameModel {
12
12
  field_identifier: SerializedField["identifier"];
13
13
  }
14
- export interface FieldValuesAttachmentModel extends FileWithNameModel {
14
+ export interface FieldValuesAttachmentModel extends RequiredFileWithNameModel {
15
15
  field_identifier: SerializedField["identifier"];
16
16
  }
@@ -7,7 +7,7 @@ export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, Cre
7
7
  export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
8
8
  form: Form["uuid"];
9
9
  title: string;
10
- description?: string;
10
+ description: string | null;
11
11
  }
12
12
  export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
13
13
  export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel, IndexedModel {
@@ -1,14 +1,14 @@
1
- import { FileWithNameModel } from '../files';
1
+ import { RequiredFileWithNameModel } from '../files';
2
2
  import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
3
  import { Project } from './projects';
4
- export interface GeoImage extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel, IndexedModel {
5
- title?: string;
6
- description?: string;
4
+ export interface GeoImage extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, RequiredFileWithNameModel, IndexedModel {
5
+ title: string | null;
6
+ description: string | null;
7
7
  project: Project["uuid"];
8
- direction?: number;
9
- original_date?: string;
8
+ direction: number | null;
9
+ original_date: string | null;
10
10
  }
11
- export type GeoImagePayload = Omit<Payload<GeoImage>, "file_name" | "file_sha1" | "file"> & {
11
+ export type GeoImagePayload = Omit<Payload<GeoImage>, "file_name" | "file_sha1" | "file" | "file_type"> & {
12
12
  file: File;
13
13
  };
14
14
  export type BulkGeoImagePayload = Omit<GeoImagePayload, "project">;
@@ -1,42 +1,47 @@
1
- import { IssuePriority, IssueStatus, IssueUpdateChange } from '../../enums';
1
+ import { RequiredFileWithNameModel } from '../files';
2
2
  import { Asset } from './assets';
3
- import { AbbreviationModel, Attachment, CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
+ import { AbbreviationModel, CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
4
4
  import { Category } from './categories';
5
5
  import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
6
6
  import { Organization } from './organizations';
7
7
  import { Project } from './projects';
8
8
  import { User } from './users';
9
+ import { IssuePriority, IssueStatusType, IssueUpdateChange } from '../../enums';
9
10
  export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
10
- title?: string | null;
11
- description?: string | null;
11
+ title: string | null;
12
+ description: string | null;
12
13
  priority: IssuePriority;
13
- status: IssueStatus;
14
- assigned_to?: User["id"] | null;
15
- due_date?: string | Date | null;
16
- category?: Category["uuid"] | null;
14
+ status: IssueTypeStatus["uuid"];
15
+ assigned_to: User["id"] | null;
16
+ due_date: string | null;
17
+ category: Category["uuid"] | null;
17
18
  issue_type: IssueType["uuid"];
18
19
  project: Project["uuid"];
19
20
  }
20
21
  export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel {
21
22
  issue: Issue["uuid"];
22
23
  content: string;
23
- author?: User["id"];
24
+ author: User["id"];
24
25
  }
25
26
  export interface IssueUpdateChangeTypes {
26
- status: IssueStatus;
27
- priority: IssuePriority;
28
- category: {
27
+ [IssueUpdateChange.STATUS]: {
28
+ name: string;
29
+ color: Category["color"];
30
+ uuid: Category["uuid"];
31
+ };
32
+ [IssueUpdateChange.PRIORITY]: IssuePriority;
33
+ [IssueUpdateChange.CATEGORY]: {
29
34
  name: string;
30
35
  color: Category["color"];
31
36
  uuid: Category["uuid"];
32
37
  } | null;
33
- description: string;
34
- title: string;
35
- assigned_to: {
38
+ [IssueUpdateChange.DESCRIPTION]: string;
39
+ [IssueUpdateChange.TITLE]: string;
40
+ [IssueUpdateChange.ASSIGNED_TO]: {
36
41
  full_name: string;
37
42
  id: User["id"];
38
43
  } | null;
39
- due_date: string;
44
+ [IssueUpdateChange.DUE_DATE]: string;
40
45
  }
41
46
  export interface IssueUpdate extends UUIDModel, CreatedByModel, SubmittedAtModel, TimestampedModel {
42
47
  issue: Issue["uuid"];
@@ -44,8 +49,8 @@ export interface IssueUpdate extends UUIDModel, CreatedByModel, SubmittedAtModel
44
49
  }
45
50
  export interface IssueAssociation extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
46
51
  associated_issue: Issue["uuid"];
47
- issue?: Issue["uuid"];
48
- asset?: Asset["uuid"];
52
+ issue: Issue["uuid"] | null;
53
+ asset: Asset["uuid"] | null;
49
54
  }
50
55
  export interface IssueTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
51
56
  issue_type: IssueType["uuid"];
@@ -62,8 +67,9 @@ export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtMo
62
67
  }
63
68
  export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, TimestampedModel, CreatedByModel, AbbreviationModel {
64
69
  name: string;
65
- description?: string;
70
+ description: string | null;
66
71
  organization: Organization["uuid"];
72
+ default_status: IssueTypeStatus["uuid"] | null;
67
73
  }
68
74
  export interface IssueTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
69
75
  issue_type: IssueType["uuid"];
@@ -72,12 +78,18 @@ export interface IssueTypeIdentifierValue extends UUIDModel, SubmittedAtModel, T
72
78
  issue: Issue["uuid"];
73
79
  issue_type_identifier: IssueTypeIdentifier["uuid"];
74
80
  }
75
- export interface IssueAttachment extends Attachment {
81
+ export interface IssueAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
76
82
  issue: Issue["uuid"];
77
83
  }
78
- export interface IssueTypeAttachment extends Attachment {
84
+ export interface IssueTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
79
85
  issue_type: IssueType["uuid"];
80
86
  }
81
- export interface IssueCommentAttachment extends Attachment {
87
+ export interface IssueCommentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
82
88
  issue_comment: IssueComment["uuid"];
83
89
  }
90
+ export interface IssueTypeStatus extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
91
+ issue_type: IssueType["uuid"];
92
+ name: string;
93
+ type: IssueStatusType;
94
+ order: number;
95
+ }
@@ -1,12 +1,12 @@
1
- import { FileWithNameModel } from '../files';
2
- import { Attachment, BoundableModel, CanvasBoundableModel, CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
1
+ import { RequiredFileWithNameModel } from '../files';
2
+ import { BoundableModel, CanvasBoundableModel, CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
3
  import { OrganizationAccess } from './organizations';
4
4
  import { User } from './users';
5
5
  export interface Project extends UUIDModel, TimestampedModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
6
6
  name: string;
7
7
  organization: string;
8
8
  }
9
- export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, FileWithNameModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
9
+ export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, RequiredFileWithNameModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
10
10
  z_index: number;
11
11
  project: Project["uuid"];
12
12
  }
@@ -15,6 +15,6 @@ export interface ProjectAccess extends UUIDModel, CreatedByModel, TimestampedMod
15
15
  project: Project["uuid"];
16
16
  organization_access: OrganizationAccess["uuid"];
17
17
  }
18
- export interface ProjectAttachment extends Attachment {
19
- project: string;
18
+ export interface ProjectAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
19
+ project: Project["uuid"];
20
20
  }
@@ -1,9 +1,8 @@
1
- import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
1
+ import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, TreeModel, UUIDModel } from './base';
2
2
  import { Organization, OrganizationAccess } from './organizations';
3
3
  import { User } from './users';
4
- export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel, AbbreviationModel {
4
+ export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel, AbbreviationModel, TreeModel<string> {
5
5
  name: string;
6
- parent: Team["uuid"] | null;
7
6
  organization: Organization["uuid"];
8
7
  }
9
8
  export interface TeamMembership extends UUIDModel, TimestampedModel, CreatedByModel {
@@ -1,4 +1,5 @@
1
- import { IdModel, OptionalFileModel } from './base';
1
+ import { OptionalFileModel } from '../files';
2
+ import { IdModel } from './base';
2
3
  import { Organization } from './organizations';
3
4
  export interface Profile extends OptionalFileModel {
4
5
  tour_step: number;
@@ -1,4 +1,5 @@
1
1
  import { Tree } from 'ts-tree-lib';
2
- import { AssetProcedureStep, Stored } from '../../typings';
2
+ import { AssetProcedureStep, AssetTypeStatus, Stored } from '../../typings';
3
3
  export declare const getAssetProcedureStepTrees: (assetProcedureSteps: Stored<AssetProcedureStep>[]) => Tree<Stored<AssetProcedureStep>>[];
4
4
  export declare const getAssetProcedureStepSubTree: (uuid: AssetProcedureStep["uuid"], assetProcedureSteps: Stored<AssetProcedureStep>[]) => Tree<Stored<AssetProcedureStep>>;
5
+ export declare const assetTypeStatusSortFn: (a: Stored<AssetTypeStatus>, b: Stored<AssetTypeStatus>) => number;
@@ -0,0 +1,4 @@
1
+ import { Tree } from 'ts-tree-lib';
2
+ import { Document, Stored } from '../../typings';
3
+ export declare const getDocumentTrees: (documents: Stored<Document>[]) => Tree<Stored<Document>>[];
4
+ export declare const getDocumentSubTree: (uuid: Document["uuid"], documents: Stored<Document>[]) => Tree<Stored<Document>>;
@@ -1 +1,3 @@
1
1
  export * from './assets';
2
+ export * from './issues';
3
+ export * from './documents';
@@ -0,0 +1,2 @@
1
+ import { IssueTypeStatus, Stored } from '../../typings';
2
+ export declare const issueTypeStatusSortFn: (a: Stored<IssueTypeStatus>, b: Stored<IssueTypeStatus>) => number;