@overmap-ai/core 1.0.78-view-sets-cleanup.3 → 1.0.78-workflows.1

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 (244) 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 +2 -0
  4. package/dist/enums/issue.d.ts +7 -5
  5. package/dist/enums/workflows.d.ts +13 -0
  6. package/dist/overmap-core.js +11396 -6877
  7. package/dist/overmap-core.umd.cjs +11 -11
  8. package/dist/sdk/base.d.ts +6 -2
  9. package/dist/sdk/constants.d.ts +4 -5
  10. package/dist/sdk/errors.d.ts +5 -0
  11. package/dist/sdk/index.d.ts +5 -1
  12. package/dist/sdk/middleware/OfflineAnalyticsMiddleware.d.ts +6 -0
  13. package/dist/sdk/middleware/OfflineMiddleware.d.ts +13 -0
  14. package/dist/sdk/middleware/RateLimitingMiddleware.d.ts +6 -0
  15. package/dist/sdk/middleware/constants.d.ts +1 -0
  16. package/dist/sdk/middleware/index.d.ts +5 -0
  17. package/dist/sdk/middleware/utils.d.ts +2 -0
  18. package/dist/sdk/outbox/globals.d.ts +2 -0
  19. package/dist/sdk/{classes → outbox}/index.d.ts +1 -0
  20. package/dist/sdk/performRequest.d.ts +6 -0
  21. package/dist/sdk/services/AgentService.d.ts +2 -1
  22. package/dist/sdk/services/AssetAttachmentService.d.ts +25 -27
  23. package/dist/sdk/services/AssetProcedureService.d.ts +23 -6
  24. package/dist/sdk/services/AssetProcedureStepFieldValuesAttachmentService.d.ts +20 -3
  25. package/dist/sdk/services/AssetProcedureStepFieldValuesService.d.ts +22 -12
  26. package/dist/sdk/services/AssetProcedureStepFieldsAttachmentService.d.ts +20 -3
  27. package/dist/sdk/services/AssetProcedureStepFieldsService.d.ts +21 -4
  28. package/dist/sdk/services/AssetProcedureStepService.d.ts +21 -4
  29. package/dist/sdk/services/AssetProcedureTypeAttachmentService.d.ts +39 -0
  30. package/dist/sdk/services/AssetProcedureTypeFieldValuesAttachmentService.d.ts +33 -0
  31. package/dist/sdk/services/AssetProcedureTypeFieldValuesService.d.ts +33 -0
  32. package/dist/sdk/services/AssetProcedureTypeFieldsAttachmentService.d.ts +30 -0
  33. package/dist/sdk/services/AssetProcedureTypeFieldsService.d.ts +26 -0
  34. package/dist/sdk/services/AssetProcedureTypeService.d.ts +28 -0
  35. package/dist/sdk/services/AssetService.d.ts +23 -5
  36. package/dist/sdk/services/AssetStageCompletionService.d.ts +21 -4
  37. package/dist/sdk/services/AssetStageService.d.ts +21 -4
  38. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +25 -26
  39. package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +20 -3
  40. package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +22 -10
  41. package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +21 -4
  42. package/dist/sdk/services/AssetTypeFieldsService.d.ts +20 -3
  43. package/dist/sdk/services/AssetTypeIdentifierService.d.ts +28 -0
  44. package/dist/sdk/services/AssetTypeIdentifierValueService.d.ts +28 -0
  45. package/dist/sdk/services/AssetTypeService.d.ts +21 -4
  46. package/dist/sdk/services/AssetTypeStatusService.d.ts +28 -0
  47. package/dist/sdk/services/BaseModelApiService.d.ts +27 -0
  48. package/dist/sdk/services/BaseOfflineAttachmentModelService.d.ts +23 -0
  49. package/dist/sdk/services/BaseOfflineModelApiService.d.ts +27 -0
  50. package/dist/sdk/services/BaseService.d.ts +5 -3
  51. package/dist/sdk/services/CategoryService.d.ts +22 -5
  52. package/dist/sdk/services/DocumentAttachmentService.d.ts +25 -26
  53. package/dist/sdk/services/DocumentService.d.ts +22 -5
  54. package/dist/sdk/services/EmailDomainsService.d.ts +21 -4
  55. package/dist/sdk/services/FileService.d.ts +5 -1
  56. package/dist/sdk/services/FormIdentifierService.d.ts +28 -0
  57. package/dist/sdk/services/FormIdentifierValueService.d.ts +28 -0
  58. package/dist/sdk/services/FormRevisionAttachmentService.d.ts +20 -3
  59. package/dist/sdk/services/FormRevisionService.d.ts +20 -3
  60. package/dist/sdk/services/FormService.d.ts +20 -3
  61. package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +22 -5
  62. package/dist/sdk/services/FormSubmissionService.d.ts +22 -5
  63. package/dist/sdk/services/GeoImageService.d.ts +22 -5
  64. package/dist/sdk/services/IssueAssociationService.d.ts +21 -4
  65. package/dist/sdk/services/IssueAttachmentService.d.ts +25 -27
  66. package/dist/sdk/services/IssueCommentAttachmentService.d.ts +25 -27
  67. package/dist/sdk/services/IssueCommentService.d.ts +22 -5
  68. package/dist/sdk/services/IssueService.d.ts +23 -5
  69. package/dist/sdk/services/IssueTypeAttachmentService.d.ts +25 -27
  70. package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +20 -3
  71. package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +21 -4
  72. package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +20 -3
  73. package/dist/sdk/services/IssueTypeFieldsService.d.ts +21 -4
  74. package/dist/sdk/services/IssueTypeIdentifierService.d.ts +28 -0
  75. package/dist/sdk/services/IssueTypeIdentifierValueService.d.ts +28 -0
  76. package/dist/sdk/services/IssueTypeService.d.ts +21 -4
  77. package/dist/sdk/services/IssueTypeStatusService.d.ts +28 -0
  78. package/dist/sdk/services/IssueUpdateService.d.ts +190 -3
  79. package/dist/sdk/services/JWTAuthService.d.ts +1 -1
  80. package/dist/sdk/services/OrganizationAccessService.d.ts +21 -4
  81. package/dist/sdk/services/OrganizationService.d.ts +20 -3
  82. package/dist/sdk/services/ProjectAccessService.d.ts +24 -6
  83. package/dist/sdk/services/ProjectAttachmentService.d.ts +25 -26
  84. package/dist/sdk/services/ProjectFileService.d.ts +20 -3
  85. package/dist/sdk/services/ProjectService.d.ts +22 -5
  86. package/dist/sdk/services/TeamMembershipService.d.ts +22 -4
  87. package/dist/sdk/services/TeamService.d.ts +21 -4
  88. package/dist/sdk/services/UserService.d.ts +24 -3
  89. package/dist/sdk/services/WorkflowService.d.ts +28 -0
  90. package/dist/sdk/services/WorkflowStepAssigneeService.d.ts +28 -0
  91. package/dist/sdk/services/WorkflowStepCommentAttachmentService.d.ts +39 -0
  92. package/dist/sdk/services/WorkflowStepCommentService.d.ts +28 -0
  93. package/dist/sdk/services/WorkflowStepCompletionService.d.ts +28 -0
  94. package/dist/sdk/services/WorkflowStepEventService.d.ts +109 -0
  95. package/dist/sdk/services/WorkflowStepFieldValuesAttachmentService.d.ts +31 -0
  96. package/dist/sdk/services/WorkflowStepFieldValuesService.d.ts +28 -0
  97. package/dist/sdk/services/WorkflowStepFieldsAttachmentService.d.ts +30 -0
  98. package/dist/sdk/services/WorkflowStepFieldsService.d.ts +28 -0
  99. package/dist/sdk/services/WorkflowStepReviewRequestService.d.ts +28 -0
  100. package/dist/sdk/services/WorkflowStepReviewService.d.ts +28 -0
  101. package/dist/sdk/services/WorkflowStepReviewerService.d.ts +28 -0
  102. package/dist/sdk/services/WorkflowStepService.d.ts +28 -0
  103. package/dist/sdk/services/WorkflowTypeService.d.ts +28 -0
  104. package/dist/sdk/services/index.d.ts +32 -6
  105. package/dist/sdk/typings.d.ts +15 -58
  106. package/dist/sdk/utils.d.ts +2 -0
  107. package/dist/store/adapters/modelAdapter.d.ts +13 -14
  108. package/dist/store/adapters/typings.d.ts +19 -0
  109. package/dist/store/reducers.d.ts +87 -18
  110. package/dist/store/selectors/index.d.ts +1 -0
  111. package/dist/store/selectors/utils.d.ts +1 -0
  112. package/dist/store/slices/agentsSlice.d.ts +11 -38
  113. package/dist/store/slices/assetAttachmentSlice.d.ts +11 -37
  114. package/dist/store/slices/assetProcedureSlice.d.ts +120 -41
  115. package/dist/store/slices/assetProcedureStepFieldValuesAttachmentSlice.d.ts +40 -44
  116. package/dist/store/slices/assetProcedureStepFieldValuesSlice.d.ts +42 -45
  117. package/dist/store/slices/assetProcedureStepFieldsAttachmentSlice.d.ts +40 -43
  118. package/dist/store/slices/assetProcedureStepFieldsSlice.d.ts +69 -49
  119. package/dist/store/slices/assetProcedureStepSlice.d.ts +44 -47
  120. package/dist/store/slices/assetProcedureTypeAttachmentSlice.d.ts +107 -0
  121. package/dist/store/slices/assetProcedureTypeFieldValuesAttachmentSlice.d.ts +127 -0
  122. package/dist/store/slices/assetProcedureTypeFieldValuesSlice.d.ts +128 -0
  123. package/dist/store/slices/assetProcedureTypeFieldsAttachmentSlice.d.ts +127 -0
  124. package/dist/store/slices/assetProcedureTypeFieldsSlice.d.ts +23 -0
  125. package/dist/store/slices/assetProcedureTypeSlice.d.ts +22 -0
  126. package/dist/store/slices/assetSlice.d.ts +41 -45
  127. package/dist/store/slices/assetStageCompletionSlice.d.ts +40 -44
  128. package/dist/store/slices/assetStageSlice.d.ts +43 -47
  129. package/dist/store/slices/assetTypeAttachmentSlice.d.ts +11 -37
  130. package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +40 -44
  131. package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +40 -43
  132. package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +40 -43
  133. package/dist/store/slices/assetTypeFieldsSlice.d.ts +40 -43
  134. package/dist/store/slices/assetTypeIdentifierSlice.d.ts +22 -0
  135. package/dist/store/slices/assetTypeIdentifierValueSlice.d.ts +23 -0
  136. package/dist/store/slices/assetTypeSlice.d.ts +11 -38
  137. package/dist/store/slices/assetTypeStatusSlice.d.ts +127 -0
  138. package/dist/store/slices/categorySlice.d.ts +40 -44
  139. package/dist/store/slices/documentAttachmentSlice.d.ts +11 -37
  140. package/dist/store/slices/documentSlice.d.ts +17 -24
  141. package/dist/store/slices/emailDomainsSlice.d.ts +42 -44
  142. package/dist/store/slices/formIdentifierSlice.d.ts +22 -0
  143. package/dist/store/slices/formIdentifierValueSlice.d.ts +23 -0
  144. package/dist/store/slices/formRevisionAttachmentSlice.d.ts +118 -37
  145. package/dist/store/slices/formRevisionSlice.d.ts +40 -43
  146. package/dist/store/slices/formSlice.d.ts +40 -43
  147. package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +13 -38
  148. package/dist/store/slices/formSubmissionSlice.d.ts +12 -40
  149. package/dist/store/slices/geoImageSlice.d.ts +40 -43
  150. package/dist/store/slices/index.d.ts +29 -6
  151. package/dist/store/slices/issueAssociationSlice.d.ts +40 -43
  152. package/dist/store/slices/issueAttachmentSlice.d.ts +11 -37
  153. package/dist/store/slices/issueCommentAttachmentSlice.d.ts +11 -37
  154. package/dist/store/slices/issueCommentSlice.d.ts +11 -37
  155. package/dist/store/slices/issueSlice.d.ts +11 -38
  156. package/dist/store/slices/issueTypeAttachmentSlice.d.ts +12 -38
  157. package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +40 -44
  158. package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +40 -43
  159. package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +40 -43
  160. package/dist/store/slices/issueTypeFieldsSlice.d.ts +40 -43
  161. package/dist/store/slices/issueTypeIdentifierSlice.d.ts +22 -0
  162. package/dist/store/slices/issueTypeIdentifierValueSlice.d.ts +23 -0
  163. package/dist/store/slices/issueTypeSlice.d.ts +12 -43
  164. package/dist/store/slices/issueTypeStatusSlice.d.ts +127 -0
  165. package/dist/store/slices/issueUpdateSlice.d.ts +268 -38
  166. package/dist/store/slices/organizationAccessSlice.d.ts +11 -37
  167. package/dist/store/slices/organizationSlice.d.ts +40 -43
  168. package/dist/store/slices/outboxSlice.d.ts +6 -7
  169. package/dist/store/slices/projectAccessSlice.d.ts +11 -37
  170. package/dist/store/slices/projectAttachmentSlice.d.ts +13 -39
  171. package/dist/store/slices/projectFileSlice.d.ts +41 -45
  172. package/dist/store/slices/projectSlice.d.ts +40 -43
  173. package/dist/store/slices/teamMembershipSlice.d.ts +11 -37
  174. package/dist/store/slices/teamSlice.d.ts +11 -38
  175. package/dist/store/slices/userSlice.d.ts +40 -44
  176. package/dist/store/slices/workflowSlice.d.ts +23 -0
  177. package/dist/store/slices/workflowStepAssigneeSlice.d.ts +129 -0
  178. package/dist/store/slices/workflowStepCommentAttachmentSlice.d.ts +22 -0
  179. package/dist/store/slices/workflowStepCommentSlice.d.ts +128 -0
  180. package/dist/store/slices/workflowStepCompletionSlice.d.ts +128 -0
  181. package/dist/store/slices/workflowStepEventSlice.d.ts +108 -0
  182. package/dist/store/slices/workflowStepFieldValuesAttachmentSlice.d.ts +127 -0
  183. package/dist/store/slices/workflowStepFieldValuesSlice.d.ts +129 -0
  184. package/dist/store/slices/workflowStepFieldsAttachmentSlice.d.ts +127 -0
  185. package/dist/store/slices/workflowStepFieldsSlice.d.ts +234 -0
  186. package/dist/store/slices/workflowStepReviewRequestSlice.d.ts +128 -0
  187. package/dist/store/slices/workflowStepReviewSlice.d.ts +128 -0
  188. package/dist/store/slices/workflowStepReviewerSlice.d.ts +129 -0
  189. package/dist/store/slices/workflowStepSlice.d.ts +127 -0
  190. package/dist/store/slices/workflowTypeSlice.d.ts +22 -0
  191. package/dist/store/store.d.ts +4 -14
  192. package/dist/store/typings.d.ts +18 -1
  193. package/dist/typings/files.d.ts +15 -14
  194. package/dist/typings/index.d.ts +0 -3
  195. package/dist/typings/models/agents.d.ts +2 -1
  196. package/dist/typings/models/assets.d.ts +80 -51
  197. package/dist/typings/models/base.d.ts +19 -13
  198. package/dist/typings/models/categories.d.ts +5 -6
  199. package/dist/typings/models/documents.d.ts +6 -3
  200. package/dist/typings/models/emailDomain.d.ts +2 -1
  201. package/dist/typings/models/emailVerification.d.ts +7 -5
  202. package/dist/typings/models/fields.d.ts +7 -7
  203. package/dist/typings/models/forms.d.ts +15 -10
  204. package/dist/typings/models/geoImages.d.ts +7 -7
  205. package/dist/typings/models/index.d.ts +1 -2
  206. package/dist/typings/models/issues.d.ts +67 -31
  207. package/dist/typings/models/organizations.d.ts +1 -1
  208. package/dist/typings/models/projects.d.ts +8 -4
  209. package/dist/typings/models/teams.d.ts +4 -4
  210. package/dist/typings/models/users.d.ts +4 -2
  211. package/dist/typings/models/workflows.d.ts +88 -0
  212. package/dist/utils/index.d.ts +2 -2
  213. package/dist/utils/models/assets.d.ts +5 -0
  214. package/dist/utils/models/documents.d.ts +4 -0
  215. package/dist/utils/models/index.d.ts +3 -0
  216. package/dist/utils/models/issues.d.ts +2 -0
  217. package/dist/utils/utils.d.ts +0 -7
  218. package/dist/utils/uuid.d.ts +7 -0
  219. package/package.json +35 -49
  220. package/dist/sdk/services/AssetProcedureAttachmentService.d.ts +0 -40
  221. package/dist/sdk/services/AssetProcedureFieldValuesAttachmentService.d.ts +0 -16
  222. package/dist/sdk/services/AssetProcedureFieldValuesService.d.ts +0 -22
  223. package/dist/sdk/services/AssetProcedureFieldsAttachmentService.d.ts +0 -13
  224. package/dist/sdk/services/AssetProcedureFieldsService.d.ts +0 -9
  225. package/dist/sdk/services/AssetProcedureInstanceService.d.ts +0 -11
  226. package/dist/sdk/services/BaseAttachmentService.d.ts +0 -38
  227. package/dist/sdk/services/BaseUploadService.d.ts +0 -10
  228. package/dist/store/slices/assetProcedureAttachmentSlice.d.ts +0 -48
  229. package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +0 -131
  230. package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +0 -131
  231. package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +0 -130
  232. package/dist/store/slices/assetProcedureFieldsSlice.d.ts +0 -49
  233. package/dist/store/slices/assetProcedureInstanceSlice.d.ts +0 -132
  234. package/dist/typings/colors.d.ts +0 -8
  235. package/dist/typings/json.d.ts +0 -6
  236. package/dist/typings/memoization.d.ts +0 -1
  237. package/dist/typings/models/attachments.d.ts +0 -31
  238. package/dist/typings/models/issueTypes.d.ts +0 -7
  239. package/dist/typings/models/store.d.ts +0 -0
  240. package/dist/typings/search.d.ts +0 -23
  241. package/dist/utils/coordinates.d.ts +0 -4
  242. package/dist/utils/offline.d.ts +0 -13
  243. /package/dist/sdk/{classes → outbox}/OutboxCoordinator.d.ts +0 -0
  244. /package/dist/sdk/{classes → outbox}/OutboxCoordinator.spec.d.ts +0 -0
@@ -1,7 +1,6 @@
1
- import { MultiPoint, Point } from 'geojson';
2
- import { COMMON_AUTO_FIELDS } from '../../utils';
3
- import { CSSColor } from '../colors';
1
+ import { Geometry, MultiPoint, Point } from 'geojson';
4
2
  import { User } from './users';
3
+ import { COMMON_AUTO_FIELDS } from '../../utils';
5
4
  export type UUID<T> = T & {
6
5
  uuid: string;
7
6
  };
@@ -54,22 +53,14 @@ 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
- export interface OwnedByOrganization {
63
- organization_owner: string;
64
- }
65
56
  export interface IconModel {
66
57
  icon: string;
67
58
  }
68
59
  export interface ColorModel {
69
- color: CSSColor;
60
+ color: string;
70
61
  }
71
62
  export interface CreatedByModel {
72
- created_by?: User["id"] | null;
63
+ created_by: User["id"] | null;
73
64
  }
74
65
  export interface IndexedModel {
75
66
  index: number;
@@ -86,4 +77,19 @@ export interface MarkableModel {
86
77
  export interface CanvasMarkableModel {
87
78
  canvas_marker?: Point;
88
79
  }
80
+ export interface IdentifierModel {
81
+ name: string;
82
+ }
83
+ export interface IdentifierValueModel {
84
+ value: string;
85
+ }
86
+ export interface GeometryModel {
87
+ geometry: Geometry;
88
+ }
89
+ export interface AbbreviationModel {
90
+ abbr: string;
91
+ }
92
+ export interface TreeModel<TId extends string | number | symbol> {
93
+ parent: TId | null;
94
+ }
89
95
  export {};
@@ -1,8 +1,7 @@
1
- import { CSSColor } from '../colors';
2
- import { CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
- export interface Category extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
1
+ import { ColorModel, CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
2
+ import { Project } from './projects';
3
+ export interface Category extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, ColorModel {
4
4
  name: string;
5
- description?: string;
6
- color: CSSColor;
7
- project: string;
5
+ description: string | null;
6
+ project: Project["uuid"];
8
7
  }
@@ -1,3 +1,4 @@
1
+ import { RequiredFileWithNameModel } from '../files';
1
2
  import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
2
3
  import { Organization } from './organizations';
3
4
  import { Project } from './projects';
@@ -6,8 +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
+ }
13
+ export interface DocumentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
14
+ document: Document["uuid"];
12
15
  }
13
16
  export type MovePosition = "left" | "right" | "left-child" | "right-child";
@@ -1,5 +1,6 @@
1
1
  import { UUIDModel } from './base';
2
+ import { Organization } from './organizations';
2
3
  export interface EmailDomain extends UUIDModel {
3
4
  domain: string;
4
- organization: string;
5
+ organization: Organization["uuid"];
5
6
  }
@@ -1,9 +1,11 @@
1
1
  import { UUIDModel } from './base';
2
- import { RegistrationPayload } from './users';
2
+ import { Organization } from './organizations';
3
+ import { Project } from './projects';
4
+ import { RegistrationPayload, User } from './users';
3
5
  export type EmailVerificationPayload = undefined | RegistrationPayload | Omit<RegistrationPayload, "username" | "email">;
4
6
  export interface EmailVerificationReturn {
5
7
  username?: string;
6
- project?: string;
8
+ project?: Project["uuid"];
7
9
  }
8
10
  export declare enum VerificationCodeType {
9
11
  USER_REGISTRATION = 0,
@@ -16,7 +18,7 @@ export declare enum VerificationCodeType {
16
18
  export interface VerificationCode extends UUIDModel {
17
19
  verification_code: string;
18
20
  verification_type: VerificationCodeType;
19
- organization?: number;
20
- project?: string;
21
- user?: string;
21
+ organization?: Organization["uuid"];
22
+ project?: Project["uuid"];
23
+ user?: User["id"];
22
24
  }
@@ -1,16 +1,16 @@
1
- import { SerializedFieldSection, SerializedFieldValues } from '@overmap-ai/forms';
2
- import { FileWithNameModel } from '../files';
1
+ import { SerializedField, SerializedFieldSection, SerializedFieldValues } from '@overmap-ai/forms';
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 {
12
- field_identifier: string;
11
+ export interface FieldsAttachmentModel extends RequiredFileWithNameModel {
12
+ field_identifier: SerializedField["identifier"];
13
13
  }
14
- export interface FieldValuesAttachmentModel extends FileWithNameModel {
15
- field_identifier: string;
14
+ export interface FieldValuesAttachmentModel extends RequiredFileWithNameModel {
15
+ field_identifier: SerializedField["identifier"];
16
16
  }
@@ -1,23 +1,28 @@
1
- import { CreatedByModel, IndexedModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
1
+ import { CreatedByModel, IdentifierModel, IdentifierValueModel, IndexedModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
2
2
  import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
3
+ import { Organization } from './organizations';
3
4
  export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
4
- organization: string;
5
+ organization: Organization["uuid"];
5
6
  }
6
7
  export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
7
- form: string;
8
+ form: Form["uuid"];
8
9
  title: string;
9
- description?: string;
10
+ description: string | null;
10
11
  }
11
12
  export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
12
13
  export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel, IndexedModel {
13
- form_revision: string;
14
- project: string;
15
- issue?: string | null;
16
- asset?: string | null;
14
+ form_revision: FormRevision["uuid"];
17
15
  }
18
16
  export interface FormSubmissionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesAttachmentModel {
19
- form_submission: string;
17
+ form_submission: FormSubmission["uuid"];
20
18
  }
21
19
  export interface FormRevisionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
22
- form_revision: string;
20
+ form_revision: FormRevision["uuid"];
21
+ }
22
+ export interface FormIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
23
+ form: Form["uuid"];
24
+ }
25
+ export interface FormIdentifierValue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierValueModel {
26
+ form_submission: FormSubmission["uuid"];
27
+ form_identifier: FormIdentifier["uuid"];
23
28
  }
@@ -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,6 +1,5 @@
1
1
  export * from './agents';
2
2
  export * from './assets';
3
- export * from './attachments';
4
3
  export * from './base';
5
4
  export * from './categories';
6
5
  export * from './documents';
@@ -10,8 +9,8 @@ export * from './fields';
10
9
  export * from './forms';
11
10
  export * from './geoImages';
12
11
  export * from './issues';
13
- export * from './issueTypes';
14
12
  export * from './organizations';
15
13
  export * from './projects';
16
14
  export * from './teams';
17
15
  export * from './users';
16
+ export * from './workflows';
@@ -1,59 +1,95 @@
1
- import { IssuePriority, IssueStatus, IssueUpdateChange } from '../../enums';
2
- import { CSSColor } from '../colors';
3
- import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
1
+ import { RequiredFileWithNameModel } from '../files';
2
+ import { Asset } from './assets';
3
+ import { AbbreviationModel, CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
4
+ import { Category } from './categories';
4
5
  import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
6
+ import { Organization } from './organizations';
7
+ import { Project } from './projects';
5
8
  import { User } from './users';
9
+ import { IssuePriority, IssueStatusType, IssueUpdateChange } from '../../enums';
6
10
  export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
7
- title?: string | null;
8
- description?: string | null;
11
+ title: string | null;
12
+ description: string | null;
9
13
  priority: IssuePriority;
10
- status: IssueStatus;
11
- assigned_to?: User["id"] | null;
12
- due_date?: string | Date | null;
13
- category?: string | null;
14
- issue_type: string;
15
- project: string;
14
+ status: IssueTypeStatus["uuid"];
15
+ assigned_to: User["id"] | null;
16
+ due_date: string | null;
17
+ category: Category["uuid"] | null;
18
+ issue_type: IssueType["uuid"];
19
+ project: Project["uuid"];
16
20
  }
17
21
  export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel {
18
- issue: string;
22
+ issue: Issue["uuid"];
19
23
  content: string;
20
- author?: number;
24
+ author: User["id"];
21
25
  }
22
26
  export interface IssueUpdateChangeTypes {
23
- status: IssueStatus;
24
- priority: IssuePriority;
25
- category: {
27
+ [IssueUpdateChange.STATUS]: {
28
+ name: string;
29
+ color: Category["color"];
30
+ uuid: Category["uuid"];
31
+ };
32
+ [IssueUpdateChange.PRIORITY]: IssuePriority;
33
+ [IssueUpdateChange.CATEGORY]: {
26
34
  name: string;
27
- color: CSSColor;
28
- uuid: UUIDModel["uuid"];
35
+ color: Category["color"];
36
+ uuid: Category["uuid"];
29
37
  } | null;
30
- description: string;
31
- title: string;
32
- assigned_to: {
38
+ [IssueUpdateChange.DESCRIPTION]: string;
39
+ [IssueUpdateChange.TITLE]: string;
40
+ [IssueUpdateChange.ASSIGNED_TO]: {
33
41
  full_name: string;
34
42
  id: User["id"];
35
43
  } | null;
36
- due_date: string;
44
+ [IssueUpdateChange.DUE_DATE]: string;
37
45
  }
38
46
  export interface IssueUpdate extends UUIDModel, CreatedByModel, SubmittedAtModel, TimestampedModel {
39
- issue: UUIDModel["uuid"];
47
+ issue: Issue["uuid"];
40
48
  changes: Partial<Record<IssueUpdateChange, IssueUpdateChangeTypes[IssueUpdateChange]>>;
41
49
  }
42
50
  export interface IssueAssociation extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
43
- associated_issue: string;
44
- issue?: string;
45
- asset?: string;
51
+ associated_issue: Issue["uuid"];
52
+ issue: Issue["uuid"] | null;
53
+ asset: Asset["uuid"] | null;
46
54
  }
47
55
  export interface IssueTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
48
- issue_type: string;
56
+ issue_type: IssueType["uuid"];
49
57
  }
50
58
  export interface IssueTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
51
- fields_revision: string;
59
+ fields_revision: IssueTypeFields["uuid"];
52
60
  }
53
61
  export interface IssueTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
54
- fields_revision: string;
55
- issue: string;
62
+ fields_revision: IssueTypeFields["uuid"];
63
+ issue: Issue["uuid"];
56
64
  }
57
65
  export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
58
- field_values: string;
66
+ field_values: IssueTypeFieldValues["uuid"];
67
+ }
68
+ export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, TimestampedModel, CreatedByModel, AbbreviationModel {
69
+ name: string;
70
+ description: string | null;
71
+ organization: Organization["uuid"];
72
+ default_status: IssueTypeStatus["uuid"] | null;
73
+ }
74
+ export interface IssueTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
75
+ issue_type: IssueType["uuid"];
76
+ }
77
+ export interface IssueTypeIdentifierValue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierValueModel {
78
+ issue: Issue["uuid"];
79
+ issue_type_identifier: IssueTypeIdentifier["uuid"];
80
+ }
81
+ export interface IssueAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
82
+ issue: Issue["uuid"];
83
+ }
84
+ export interface IssueTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
85
+ issue_type: IssueType["uuid"];
86
+ }
87
+ export interface IssueCommentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
88
+ issue_comment: IssueComment["uuid"];
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;
59
95
  }
@@ -6,6 +6,6 @@ export interface Organization extends UUIDModel, TimestampedModel {
6
6
  }
7
7
  export interface OrganizationAccess extends UUIDModel, TimestampedModel {
8
8
  user: User["id"];
9
- organization: string;
9
+ organization: Organization["uuid"];
10
10
  access_level: OrganizationAccessLevel;
11
11
  }
@@ -1,11 +1,12 @@
1
- import { FileWithNameModel } from '../files';
2
- import { BoundableModel, CanvasBoundableModel, CreatedByModel, OwnedByOrganization, 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
- export interface Project extends UUIDModel, TimestampedModel, BoundableModel, CanvasBoundableModel, OwnedByOrganization, CreatedByModel {
5
+ export interface Project extends UUIDModel, TimestampedModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
6
6
  name: string;
7
+ organization: string;
7
8
  }
8
- export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, FileWithNameModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
9
+ export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, RequiredFileWithNameModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
9
10
  z_index: number;
10
11
  project: Project["uuid"];
11
12
  }
@@ -14,3 +15,6 @@ export interface ProjectAccess extends UUIDModel, CreatedByModel, TimestampedMod
14
15
  project: Project["uuid"];
15
16
  organization_access: OrganizationAccess["uuid"];
16
17
  }
18
+ export interface ProjectAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
19
+ project: Project["uuid"];
20
+ }
@@ -1,12 +1,12 @@
1
- import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
2
- import { Organization } from './organizations';
1
+ import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, TreeModel, UUIDModel } from './base';
2
+ import { Organization, OrganizationAccess } from './organizations';
3
3
  import { User } from './users';
4
- export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
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 {
10
9
  team: Team["uuid"];
11
10
  user: User["id"];
11
+ organization_access: OrganizationAccess["uuid"];
12
12
  }
@@ -1,4 +1,6 @@
1
- import { IdModel, OptionalFileModel } from './base';
1
+ import { OptionalFileModel } from '../files';
2
+ import { IdModel } from './base';
3
+ import { Organization } from './organizations';
2
4
  export interface Profile extends OptionalFileModel {
3
5
  tour_step: number;
4
6
  }
@@ -13,5 +15,5 @@ export interface RegistrationPayload {
13
15
  email: string;
14
16
  }
15
17
  export interface RegistrationReturn {
16
- organization?: string;
18
+ organization?: Organization["uuid"];
17
19
  }
@@ -0,0 +1,88 @@
1
+ import { RequiredFileWithNameModel } from '../files';
2
+ import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
+ import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
4
+ import { Organization } from './organizations';
5
+ import { Project } from './projects';
6
+ import { User } from './users';
7
+ import { WorkflowReviewType, WorkflowStepEventType } from '../../enums';
8
+ export interface WorkflowType extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
9
+ name: string;
10
+ description: string;
11
+ organization: Organization["uuid"];
12
+ }
13
+ export interface WorkflowStep extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
14
+ name: string;
15
+ order: number;
16
+ workflow_type: WorkflowType["uuid"];
17
+ }
18
+ export interface Workflow extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IndexedModel {
19
+ title: string;
20
+ description: string;
21
+ workflow_type: WorkflowType["uuid"];
22
+ project: Project["uuid"];
23
+ }
24
+ export interface WorkflowStepFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
25
+ workflow_step: WorkflowStep["uuid"];
26
+ }
27
+ export interface WorkflowStepFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
28
+ fields_revision: WorkflowStepFields["uuid"];
29
+ }
30
+ export interface WorkflowStepFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
31
+ fields_revision: WorkflowStepFields["uuid"];
32
+ workflow: Workflow["uuid"];
33
+ workflow_step: WorkflowStepFields["uuid"];
34
+ }
35
+ export interface WorkflowStepFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
36
+ field_values: WorkflowStepFieldValues["uuid"];
37
+ }
38
+ export interface WorkflowStepAssignee extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
39
+ user: User["id"] | null;
40
+ workflow: Workflow["uuid"];
41
+ workflow_step: WorkflowStep["uuid"];
42
+ }
43
+ export interface WorkflowStepReviewer extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
44
+ user: User["id"] | null;
45
+ workflow: Workflow["uuid"];
46
+ workflow_step: WorkflowStep["uuid"];
47
+ }
48
+ export interface WorkflowStepReviewRequest extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
49
+ user: User["id"] | null;
50
+ content: string;
51
+ workflow: Workflow["uuid"];
52
+ workflow_step: WorkflowStep["uuid"];
53
+ }
54
+ export interface WorkflowStepReview extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
55
+ type: WorkflowReviewType;
56
+ content: string;
57
+ workflow: Workflow["uuid"];
58
+ workflow_step: WorkflowStep["uuid"];
59
+ }
60
+ export interface WorkflowStepCompletion extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
61
+ workflow: Workflow["uuid"];
62
+ workflow_step: WorkflowStep["uuid"];
63
+ }
64
+ export interface WorkflowStepComment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
65
+ content: string;
66
+ workflow: Workflow["uuid"];
67
+ workflow_step: WorkflowStep["uuid"];
68
+ }
69
+ export interface WorkflowStepCommentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
70
+ workflow_step_comment: WorkflowStepComment["uuid"];
71
+ }
72
+ export type WorkflowStepEventValueMapping = {
73
+ [WorkflowStepEventType.ADD_ASSIGNEE]: User["id"];
74
+ [WorkflowStepEventType.REMOVE_ASSIGNEE]: User["id"];
75
+ [WorkflowStepEventType.ADD_REVIEWER]: User["id"];
76
+ [WorkflowStepEventType.REMOVE_REVIEWER]: User["id"];
77
+ [WorkflowStepEventType.ADD_REVIEW_REQUEST]: User["id"];
78
+ [WorkflowStepEventType.REMOVE_REVIEW_REQUEST]: User["id"];
79
+ };
80
+ export type WorkflowStepEvent = UUIDModel & TimestampedModel & CreatedByModel & {
81
+ workflow: Workflow["uuid"];
82
+ workflow_step: WorkflowStep["uuid"];
83
+ } & {
84
+ [K in WorkflowStepEventType]: {
85
+ type: K;
86
+ value: WorkflowStepEventValueMapping[K];
87
+ };
88
+ }[WorkflowStepEventType];
@@ -1,9 +1,9 @@
1
1
  export * from './async/DeferredPromise';
2
- export * from './coordinates';
3
2
  export * from './date';
4
3
  export * from './file';
5
4
  export * from './logging';
6
- export * from './offline';
5
+ export * from './uuid';
7
6
  export * from './optimization';
8
7
  export * from './string';
9
8
  export * from './utils';
9
+ export * from './models';
@@ -0,0 +1,5 @@
1
+ import { Tree } from 'ts-tree-lib';
2
+ import { AssetProcedureStep, AssetTypeStatus, Stored } from '../../typings';
3
+ export declare const getAssetProcedureStepTrees: (assetProcedureSteps: Stored<AssetProcedureStep>[]) => Tree<Stored<AssetProcedureStep>>[];
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>>;
@@ -0,0 +1,3 @@
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;
@@ -1,9 +1,2 @@
1
- import { OvermapRootState } from '../store';
2
- import { IssueAttachment, UUIDModel } from '../typings';
3
- type MemoizedSelectorWithArgs<TArgs, TRet> = (state: OvermapRootState, args: TArgs) => TRet;
4
- export declare const restructureCreateSelectorWithArgs: <TArgs, TRet>(selector: MemoizedSelectorWithArgs<TArgs, TRet>) => (args: TArgs) => (state: OvermapRootState) => TRet;
5
- export declare function onlyUniqueOfflineIds(value: UUIDModel, index: number, self: UUIDModel[]): boolean;
6
- export declare function onlyUniqueHashes(value: IssueAttachment, index: number, self: IssueAttachment[]): boolean;
7
1
  export declare const emailRegex: RegExp;
8
2
  export declare function createPayload<TPayload extends object>(payload: TPayload): TPayload;
9
- export {};
@@ -0,0 +1,7 @@
1
+ import { UUID, UUIDModel } from '../typings';
2
+ export declare const COMMON_AUTO_FIELDS: readonly ["created_at", "updated_at", "index", "revision"];
3
+ export declare function uuidObj<T>(draft: T): UUID<T>;
4
+ export declare function toUuidIdRecord<TModel extends UUIDModel>(array: TModel[]): Record<string, TModel>;
5
+ export declare function toUuidArray<TModel extends UUIDModel>(array: TModel[]): string[];
6
+ export declare function uuidSortFn(a: string, b: string): number;
7
+ export declare function uuidObjSortFn<TModel extends UUIDModel>(a: TModel, b: TModel): number;