@overmap-ai/core 1.0.78-improvements.0 → 1.0.78-nested-procedure-steps.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 (158) hide show
  1. package/dist/enums/access.d.ts +0 -5
  2. package/dist/enums/index.d.ts +0 -1
  3. package/dist/overmap-core.js +6620 -5163
  4. package/dist/overmap-core.umd.cjs +9 -9
  5. package/dist/sdk/base.d.ts +1 -1
  6. package/dist/sdk/constants.d.ts +5 -0
  7. package/dist/sdk/index.d.ts +1 -0
  8. package/dist/sdk/services/AgentService.d.ts +1 -1
  9. package/dist/sdk/services/AssetAttachmentService.d.ts +1 -1
  10. package/dist/sdk/services/AssetProcedureAttachmentService.d.ts +1 -1
  11. package/dist/sdk/services/AssetProcedureFieldValuesAttachmentService.d.ts +1 -1
  12. package/dist/sdk/services/AssetProcedureFieldValuesService.d.ts +1 -1
  13. package/dist/sdk/services/AssetProcedureFieldsAttachmentService.d.ts +1 -1
  14. package/dist/sdk/services/AssetProcedureFieldsService.d.ts +1 -1
  15. package/dist/sdk/services/AssetProcedureInstanceService.d.ts +1 -1
  16. package/dist/sdk/services/AssetProcedureService.d.ts +1 -1
  17. package/dist/sdk/services/AssetProcedureStepFieldValuesAttachmentService.d.ts +1 -1
  18. package/dist/sdk/services/AssetProcedureStepFieldValuesService.d.ts +1 -1
  19. package/dist/sdk/services/AssetProcedureStepFieldsAttachmentService.d.ts +1 -1
  20. package/dist/sdk/services/AssetProcedureStepFieldsService.d.ts +1 -1
  21. package/dist/sdk/services/AssetProcedureStepService.d.ts +5 -6
  22. package/dist/sdk/services/AssetService.d.ts +2 -2
  23. package/dist/sdk/services/AssetStageCompletionService.d.ts +1 -1
  24. package/dist/sdk/services/AssetStageService.d.ts +5 -6
  25. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +1 -1
  26. package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +1 -1
  27. package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +1 -1
  28. package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +1 -1
  29. package/dist/sdk/services/AssetTypeFieldsService.d.ts +1 -1
  30. package/dist/sdk/services/AssetTypeIdentifierService.d.ts +11 -0
  31. package/dist/sdk/services/AssetTypeIdentifierValueService.d.ts +11 -0
  32. package/dist/sdk/services/AssetTypeService.d.ts +1 -1
  33. package/dist/sdk/services/BaseService.d.ts +3 -2
  34. package/dist/sdk/services/CategoryService.d.ts +2 -2
  35. package/dist/sdk/services/DocumentAttachmentService.d.ts +2 -2
  36. package/dist/sdk/services/DocumentService.d.ts +2 -3
  37. package/dist/sdk/services/EmailDomainsService.d.ts +1 -1
  38. package/dist/sdk/services/FormIdentifierService.d.ts +11 -0
  39. package/dist/sdk/services/FormIdentifierValueService.d.ts +11 -0
  40. package/dist/sdk/services/FormRevisionAttachmentService.d.ts +1 -1
  41. package/dist/sdk/services/FormRevisionService.d.ts +1 -1
  42. package/dist/sdk/services/FormService.d.ts +1 -1
  43. package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +2 -2
  44. package/dist/sdk/services/FormSubmissionService.d.ts +2 -2
  45. package/dist/sdk/services/GeoImageService.d.ts +1 -1
  46. package/dist/sdk/services/IssueAssociationService.d.ts +1 -1
  47. package/dist/sdk/services/IssueAttachmentService.d.ts +1 -1
  48. package/dist/sdk/services/IssueCommentAttachmentService.d.ts +1 -1
  49. package/dist/sdk/services/IssueCommentService.d.ts +1 -1
  50. package/dist/sdk/services/IssueService.d.ts +1 -1
  51. package/dist/sdk/services/IssueTypeAttachmentService.d.ts +1 -1
  52. package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +1 -1
  53. package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +1 -1
  54. package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +1 -1
  55. package/dist/sdk/services/IssueTypeFieldsService.d.ts +1 -1
  56. package/dist/sdk/services/IssueTypeIdentifierService.d.ts +11 -0
  57. package/dist/sdk/services/IssueTypeIdentifierValueService.d.ts +11 -0
  58. package/dist/sdk/services/IssueTypeService.d.ts +1 -1
  59. package/dist/sdk/services/IssueUpdateService.d.ts +2 -2
  60. package/dist/sdk/services/OrganizationAccessService.d.ts +5 -4
  61. package/dist/sdk/services/OrganizationService.d.ts +4 -4
  62. package/dist/sdk/services/ProjectAccessService.d.ts +6 -3
  63. package/dist/sdk/services/ProjectAttachmentService.d.ts +4 -4
  64. package/dist/sdk/services/ProjectFileService.d.ts +1 -4
  65. package/dist/sdk/services/ProjectService.d.ts +2 -8
  66. package/dist/sdk/services/TeamMembershipService.d.ts +11 -0
  67. package/dist/sdk/services/TeamService.d.ts +2 -5
  68. package/dist/sdk/services/UserService.d.ts +2 -2
  69. package/dist/sdk/services/index.d.ts +7 -1
  70. package/dist/sdk/typings.d.ts +10 -1
  71. package/dist/store/constants.d.ts +3 -1
  72. package/dist/store/index.d.ts +1 -0
  73. package/dist/store/reducers.d.ts +21 -3
  74. package/dist/store/selectors/SelectorBuilder.d.ts +24 -0
  75. package/dist/store/selectors/hooks.d.ts +13 -0
  76. package/dist/store/selectors/index.d.ts +2 -0
  77. package/dist/store/slices/agentsSlice.d.ts +21 -1
  78. package/dist/store/slices/assetAttachmentSlice.d.ts +2 -2
  79. package/dist/store/slices/assetProcedureAttachmentSlice.d.ts +1 -1
  80. package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +7 -1
  81. package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +8 -2
  82. package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +9 -3
  83. package/dist/store/slices/assetProcedureFieldsSlice.d.ts +2 -84
  84. package/dist/store/slices/assetProcedureInstanceSlice.d.ts +8 -2
  85. package/dist/store/slices/assetProcedureSlice.d.ts +4 -86
  86. package/dist/store/slices/assetProcedureStepFieldValuesAttachmentSlice.d.ts +7 -1
  87. package/dist/store/slices/assetProcedureStepFieldValuesSlice.d.ts +7 -1
  88. package/dist/store/slices/assetProcedureStepFieldsAttachmentSlice.d.ts +9 -3
  89. package/dist/store/slices/assetProcedureStepFieldsSlice.d.ts +14 -2
  90. package/dist/store/slices/assetProcedureStepSlice.d.ts +7 -1
  91. package/dist/store/slices/assetSlice.d.ts +7 -1
  92. package/dist/store/slices/assetStageCompletionSlice.d.ts +16 -2
  93. package/dist/store/slices/assetStageSlice.d.ts +7 -1
  94. package/dist/store/slices/assetTypeAttachmentSlice.d.ts +1 -1
  95. package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +7 -1
  96. package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +7 -1
  97. package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +7 -1
  98. package/dist/store/slices/assetTypeFieldsSlice.d.ts +7 -1
  99. package/dist/store/slices/assetTypeIdentifierSlice.d.ts +48 -0
  100. package/dist/store/slices/assetTypeIdentifierValueSlice.d.ts +49 -0
  101. package/dist/store/slices/assetTypeSlice.d.ts +2 -1
  102. package/dist/store/slices/categorySlice.d.ts +30 -4
  103. package/dist/store/slices/documentAttachmentSlice.d.ts +2 -2
  104. package/dist/store/slices/documentSlice.d.ts +4 -89
  105. package/dist/store/slices/emailDomainsSlice.d.ts +38 -8
  106. package/dist/store/slices/formIdentifierSlice.d.ts +48 -0
  107. package/dist/store/slices/formIdentifierValueSlice.d.ts +49 -0
  108. package/dist/store/slices/formRevisionSlice.d.ts +22 -4
  109. package/dist/store/slices/formSlice.d.ts +25 -6
  110. package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +3 -2
  111. package/dist/store/slices/formSubmissionSlice.d.ts +1 -3
  112. package/dist/store/slices/geoImageSlice.d.ts +9 -3
  113. package/dist/store/slices/index.d.ts +7 -1
  114. package/dist/store/slices/issueAssociationSlice.d.ts +11 -5
  115. package/dist/store/slices/issueAttachmentSlice.d.ts +2 -2
  116. package/dist/store/slices/issueCommentAttachmentSlice.d.ts +2 -2
  117. package/dist/store/slices/issueCommentSlice.d.ts +14 -2
  118. package/dist/store/slices/issueSlice.d.ts +20 -5
  119. package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +7 -1
  120. package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +7 -1
  121. package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +7 -1
  122. package/dist/store/slices/issueTypeFieldsSlice.d.ts +7 -1
  123. package/dist/store/slices/issueTypeIdentifierSlice.d.ts +48 -0
  124. package/dist/store/slices/issueTypeIdentifierValueSlice.d.ts +49 -0
  125. package/dist/store/slices/issueTypeSlice.d.ts +24 -6
  126. package/dist/store/slices/issueUpdateSlice.d.ts +17 -4
  127. package/dist/store/slices/organizationAccessSlice.d.ts +36 -12
  128. package/dist/store/slices/organizationSlice.d.ts +8 -8
  129. package/dist/store/slices/projectAccessSlice.d.ts +27 -6
  130. package/dist/store/slices/projectAttachmentSlice.d.ts +1 -1
  131. package/dist/store/slices/projectFileSlice.d.ts +8 -2
  132. package/dist/store/slices/projectSlice.d.ts +11 -8
  133. package/dist/store/slices/teamMembershipSlice.d.ts +49 -0
  134. package/dist/store/slices/teamSlice.d.ts +21 -6
  135. package/dist/store/slices/userSlice.d.ts +90 -5
  136. package/dist/store/store.d.ts +1 -1
  137. package/dist/typings/models/assets.d.ts +53 -33
  138. package/dist/typings/models/base.d.ts +15 -4
  139. package/dist/typings/models/categories.d.ts +2 -1
  140. package/dist/typings/models/documents.d.ts +10 -5
  141. package/dist/typings/models/emailDomain.d.ts +2 -1
  142. package/dist/typings/models/forms.d.ts +16 -11
  143. package/dist/typings/models/geoImages.d.ts +2 -2
  144. package/dist/typings/models/index.d.ts +0 -3
  145. package/dist/typings/models/issues.d.ts +41 -18
  146. package/dist/typings/models/organizations.d.ts +4 -5
  147. package/dist/typings/models/projects.d.ts +10 -9
  148. package/dist/typings/models/teams.d.ts +8 -4
  149. package/dist/utils/index.d.ts +0 -1
  150. package/package.json +5 -9
  151. package/dist/enums/licenses.d.ts +0 -14
  152. package/dist/sdk/services/LicenseService.d.ts +0 -14
  153. package/dist/store/slices/licenseSlice.d.ts +0 -25
  154. package/dist/typings/models/attachments.d.ts +0 -31
  155. package/dist/typings/models/issueTypes.d.ts +0 -7
  156. package/dist/typings/models/license.d.ts +0 -13
  157. package/dist/typings/models/store.d.ts +0 -0
  158. package/dist/utils/coordinates.d.ts +0 -4
@@ -1,11 +1,16 @@
1
- import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
1
+ import { Attachment, ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
2
+ import { Organization } from './organizations';
3
+ import { Project } from './projects';
2
4
  export interface Document extends UUIDModel, SubmittedAtModel, CreatedByModel, TimestampedModel, IconModel, ColorModel {
3
5
  title: string | null;
4
6
  description: string | null;
5
7
  content: string | null;
6
- parent_document: string | null;
7
- children_documents: string[];
8
- project?: string;
9
- organization?: string;
8
+ parent_document: Document["uuid"] | null;
9
+ children_documents: Document["uuid"][];
10
+ project?: Project["uuid"];
11
+ organization?: Organization["uuid"];
10
12
  }
11
13
  export type MovePosition = "left" | "right" | "left-child" | "right-child";
14
+ export interface DocumentAttachment extends Attachment {
15
+ document: string;
16
+ }
@@ -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,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
- export interface Form extends UUIDModel, SubmittedAtModel, CreatedByModel {
4
- organization: string;
3
+ import { Organization } from './organizations';
4
+ export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
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
10
  description?: string;
10
11
  }
11
12
  export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
13
+ export interface FormRevisionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
14
+ form_revision: FormRevision["uuid"];
15
+ }
12
16
  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;
17
+ form_revision: FormRevision["uuid"];
17
18
  }
18
19
  export interface FormSubmissionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesAttachmentModel {
19
- form_submission: string;
20
+ form_submission: FormSubmission["uuid"];
20
21
  }
21
- export interface FormRevisionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
22
- form_revision: string;
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,7 +1,7 @@
1
1
  import { FileWithNameModel } from '../files';
2
- import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, Payload, SubmittedAtModel, UUIDModel } from './base';
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, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel, IndexedModel {
4
+ export interface GeoImage extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel, IndexedModel {
5
5
  title?: string;
6
6
  description?: string;
7
7
  project: Project["uuid"];
@@ -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,6 @@ export * from './fields';
10
9
  export * from './forms';
11
10
  export * from './geoImages';
12
11
  export * from './issues';
13
- export * from './issueTypes';
14
- export * from './license';
15
12
  export * from './organizations';
16
13
  export * from './projects';
17
14
  export * from './teams';
@@ -1,9 +1,12 @@
1
1
  import { IssuePriority, IssueStatus, IssueUpdateChange } from '../../enums';
2
2
  import { CSSColor } from '../colors';
3
- import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
+ import { Asset } from './assets';
4
+ import { Attachment, CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
4
5
  import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
6
+ import { Organization } from './organizations';
7
+ import { Project } from './projects';
5
8
  import { User } from './users';
6
- export interface Issue extends UUIDModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
9
+ export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
7
10
  title?: string | null;
8
11
  description?: string | null;
9
12
  priority: IssuePriority;
@@ -11,13 +14,13 @@ export interface Issue extends UUIDModel, SubmittedAtModel, CreatedByModel, Mark
11
14
  assigned_to?: User["id"] | null;
12
15
  due_date?: string | Date | null;
13
16
  category?: string | null;
14
- issue_type: string;
15
- project: string;
17
+ issue_type: IssueType["uuid"];
18
+ project: Project["uuid"];
16
19
  }
17
20
  export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel {
18
- issue: string;
21
+ issue: Issue["uuid"];
19
22
  content: string;
20
- author?: number;
23
+ author?: User["id"];
21
24
  }
22
25
  export interface IssueUpdateChangeTypes {
23
26
  status: IssueStatus;
@@ -35,26 +38,46 @@ export interface IssueUpdateChangeTypes {
35
38
  } | null;
36
39
  due_date: string;
37
40
  }
38
- export interface IssueUpdate extends UUIDModel, CreatedByModel {
39
- submitted_at: string;
40
- issue: UUIDModel["uuid"];
41
+ export interface IssueUpdate extends UUIDModel, CreatedByModel, SubmittedAtModel, TimestampedModel {
42
+ issue: Issue["uuid"];
41
43
  changes: Partial<Record<IssueUpdateChange, IssueUpdateChangeTypes[IssueUpdateChange]>>;
42
44
  }
43
- export interface IssueAssociation extends UUIDModel, SubmittedAtModel, CreatedByModel {
44
- associated_issue: string;
45
- issue?: string;
46
- asset?: string;
45
+ export interface IssueAssociation extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
46
+ associated_issue: Issue["uuid"];
47
+ issue?: Issue["uuid"];
48
+ asset?: Asset["uuid"];
47
49
  }
48
50
  export interface IssueTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
49
- issue_type: string;
51
+ issue_type: IssueType["uuid"];
50
52
  }
51
53
  export interface IssueTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
52
- fields_revision: string;
54
+ fields_revision: IssueTypeFields["uuid"];
53
55
  }
54
56
  export interface IssueTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
55
- fields_revision: string;
56
- issue: string;
57
+ fields_revision: IssueTypeFields["uuid"];
58
+ issue: Issue["uuid"];
57
59
  }
58
60
  export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
59
- field_values: string;
61
+ field_values: IssueTypeFieldValues["uuid"];
62
+ }
63
+ export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, TimestampedModel, CreatedByModel {
64
+ name?: string;
65
+ description?: string;
66
+ organization: Organization["uuid"];
67
+ }
68
+ export interface IssueTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
69
+ issue_type: IssueType["uuid"];
70
+ }
71
+ export interface IssueTypeIdentifierValue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierValueModel {
72
+ issue: Issue["uuid"];
73
+ issue_type_identifier: IssueTypeIdentifier["uuid"];
74
+ }
75
+ export interface IssueAttachment extends Attachment {
76
+ issue: Issue["uuid"];
77
+ }
78
+ export interface IssueTypeAttachment extends Attachment {
79
+ issue_type: IssueType["uuid"];
80
+ }
81
+ export interface IssueCommentAttachment extends Attachment {
82
+ issue_comment: IssueComment["uuid"];
60
83
  }
@@ -1,12 +1,11 @@
1
1
  import { OrganizationAccessLevel } from '../../enums';
2
- import { CreatedByModel, UUIDModel } from './base';
2
+ import { TimestampedModel, UUIDModel } from './base';
3
3
  import { User } from './users';
4
- export interface Organization extends UUIDModel, CreatedByModel {
4
+ export interface Organization extends UUIDModel, TimestampedModel {
5
5
  name: string;
6
- has_access: boolean;
7
6
  }
8
- export interface OrganizationAccess extends UUIDModel {
7
+ export interface OrganizationAccess extends UUIDModel, TimestampedModel {
9
8
  user: User["id"];
10
- organization: string;
9
+ organization: Organization["uuid"];
11
10
  access_level: OrganizationAccessLevel;
12
11
  }
@@ -1,19 +1,20 @@
1
- import { ProjectAccessLevel } from '../../enums';
2
1
  import { FileWithNameModel } from '../files';
3
- import { BoundableModel, CanvasBoundableModel, OwnedByOrganization, SubmittedAtModel, UUIDModel } from './base';
2
+ import { Attachment, BoundableModel, CanvasBoundableModel, CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
+ import { Organization, OrganizationAccess } from './organizations';
4
4
  import { User } from './users';
5
- export interface Project extends UUIDModel, BoundableModel, CanvasBoundableModel, OwnedByOrganization {
5
+ export interface Project extends UUIDModel, TimestampedModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
6
6
  name: string;
7
- invited?: boolean;
8
- issues_count?: number;
9
- form_submissions_count?: number;
7
+ organization: Organization["uuid"];
10
8
  }
11
- export interface ProjectFile extends UUIDModel, SubmittedAtModel, FileWithNameModel, BoundableModel, CanvasBoundableModel {
9
+ export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, FileWithNameModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
12
10
  z_index: number;
13
11
  project: Project["uuid"];
14
12
  }
15
- export interface ProjectAccess extends UUIDModel {
13
+ export interface ProjectAccess extends UUIDModel, CreatedByModel, TimestampedModel {
16
14
  user: User["id"];
17
15
  project: Project["uuid"];
18
- access_level: ProjectAccessLevel;
16
+ organization_access: OrganizationAccess["uuid"];
17
+ }
18
+ export interface ProjectAttachment extends Attachment {
19
+ project: Project["uuid"];
19
20
  }
@@ -1,9 +1,13 @@
1
- import { ColorModel, IconModel, SubmittedAtModel, UUIDModel } from './base';
2
- import { Organization } from './organizations';
1
+ import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
2
+ import { Organization, OrganizationAccess } from './organizations';
3
3
  import { User } from './users';
4
- export interface Team extends UUIDModel, SubmittedAtModel, IconModel, ColorModel {
4
+ export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
5
5
  name: string;
6
6
  parent: Team["uuid"] | null;
7
7
  organization: Organization["uuid"];
8
- members: User["id"][];
8
+ }
9
+ export interface TeamMembership extends UUIDModel, TimestampedModel, CreatedByModel {
10
+ team: Team["uuid"];
11
+ user: User["id"];
12
+ organization_access: OrganizationAccess["uuid"];
9
13
  }
@@ -1,5 +1,4 @@
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';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Core functionality for Overmap",
4
4
  "author": "Wôrdn Inc.",
5
5
  "license": "UNLICENSED",
6
- "version": "1.0.78-improvements.0",
6
+ "version": "1.0.78-nested-procedure-steps.0",
7
7
  "type": "module",
8
8
  "main": "dist/overmap-core.umd.cjs",
9
9
  "module": "dist/overmap-core.js",
@@ -21,7 +21,6 @@
21
21
  "dependencies": {
22
22
  "@redux-offline/redux-offline": "^2.6.0",
23
23
  "@reduxjs/toolkit": "^2.8.2",
24
- "color": "^4.2.3",
25
24
  "dependency-graph": "^1.0.0",
26
25
  "file-saver": "^2.0.5",
27
26
  "idb": "^7.1.1",
@@ -34,21 +33,18 @@
34
33
  "uuid": "^11.1.0"
35
34
  },
36
35
  "devDependencies": {
36
+ "@eslint/js": "^9.38.0",
37
37
  "@overmap-ai/forms": "1.0.32-condition-manager.1",
38
38
  "@rollup/plugin-commonjs": "^28.0.6",
39
39
  "@tiptap/core": "^3.0.7",
40
- "@types/add": "^2",
41
- "@types/color": "^3.0.4",
42
40
  "@types/file-saver": "^2.0.7",
43
41
  "@types/geojson": "^7946.0.16",
44
42
  "@types/jwt-decode": "^3.1.0",
45
43
  "@types/node": "^20.12.11",
46
- "@types/react": "^19.1.8",
47
- "@types/react-dom": "^19.0.3",
48
44
  "@types/superagent": "^4.1.18",
49
45
  "@types/uuid": "^9.0.3",
46
+ "@typescript-eslint/parser": "^8.46.2",
50
47
  "@vitejs/plugin-react-swc": "^3.11.0",
51
- "@vitest/coverage-v8": "^3.2.4",
52
48
  "@vitest/eslint-plugin": "^1.3.4",
53
49
  "eslint": "^9.32.0",
54
50
  "eslint-config-prettier": "^10.1.8",
@@ -64,7 +60,6 @@
64
60
  "lint-staged": "^15.1.0",
65
61
  "prettier": "^3.6.2",
66
62
  "react": "^19.1.0",
67
- "react-dom": "^19.0.0",
68
63
  "rollup": "^4.45.3",
69
64
  "rollup-plugin-polyfill-node": "^0.13.0",
70
65
  "typescript": "^5.2.2",
@@ -78,7 +73,8 @@
78
73
  "@overmap-ai/forms": "1.0.32-condition-manager.1",
79
74
  "@tiptap/core": "^2.4.0",
80
75
  "react": ">=18.2.0 <20.0.0",
81
- "react-dom": ">=18.2.0 <20.0.0"
76
+ "react-dom": ">=18.2.0 <20.0.0",
77
+ "react-redux": "^8.0.0 || ^9.0.0"
82
78
  },
83
79
  "resolutions": {
84
80
  "strip-ansi": "6.0.1",
@@ -1,14 +0,0 @@
1
- export declare enum PaddleCheckoutEvent {
2
- COMPLETED = "checkout.completed",
3
- CLOSED = "checkout.closed"
4
- }
5
- export declare enum LicenseLevel {
6
- PRO = 0
7
- }
8
- export declare enum LicenseStatus {
9
- ACTIVE = 0,
10
- PAUSED = 2,
11
- CANCELLED = 4,
12
- INACTIVE = 6,
13
- PAST_DUE = 8
14
- }
@@ -1,14 +0,0 @@
1
- import { OvermapRootState } from '../../store';
2
- import { License, Organization, Project, Transaction } from '../../typings';
3
- import { BaseSDK } from '../base';
4
- import { BaseApiService } from './BaseApiService';
5
- export declare abstract class LicenseService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
6
- getLicense(license: License): Promise<License>;
7
- pauseLicense(license: License): Promise<License>;
8
- resumeLicense(license: License): Promise<License>;
9
- cancelLicense(license: License): Promise<License>;
10
- attachLicenseToProject(license: License, project: Project): Promise<License>;
11
- detachLicenseFromProject(license: License): Promise<License>;
12
- getLatestTransaction(license: License): Promise<Transaction>;
13
- refreshStore(projectUuid: Project["uuid"], organizationUuid: Organization["uuid"]): Promise<void>;
14
- }
@@ -1,25 +0,0 @@
1
- import { License, Project, Stored } from '../../typings';
2
- import { ModelState } from '../adapters';
3
- import { OvermapSelector, OvermapSelectorWithArgs } from '../typings';
4
- export type LicenseState = ModelState<License["uuid"], Stored<License>>;
5
- export declare const licenseSlice: import('@reduxjs/toolkit').Slice<LicenseState, {
6
- initializeLicences: (state: ModelState<string, Stored<License>>, action: {
7
- payload: Stored<License>[];
8
- type: string;
9
- }) => void;
10
- addLicenses: (state: ModelState<string, Stored<License>>, action: {
11
- payload: Stored<License>[];
12
- type: string;
13
- }) => void;
14
- updateLicense: (state: ModelState<string, Stored<License>>, action: {
15
- payload: Stored<License>;
16
- type: string;
17
- }) => void;
18
- }, "license", "license", import('@reduxjs/toolkit').SliceSelectors<LicenseState>>;
19
- export declare const initializeLicences: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<License>[], "license/initializeLicences">, addLicenses: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<License>[], "license/addLicenses">, updateLicense: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<License>, "license/updateLicense">;
20
- export declare const selectLicenses: OvermapSelector<Record<string, License>>;
21
- export declare const selectLicense: OvermapSelectorWithArgs<License["uuid"], License | undefined>;
22
- export declare const selectLicenseForProject: OvermapSelectorWithArgs<Project["uuid"], License | undefined>;
23
- export declare const selectActiveStatusLicenses: OvermapSelector<License[]>;
24
- export declare const selectLicensesForProjectsMapping: OvermapSelector<Record<number, License>>;
25
- export declare const licenseReducer: import('redux').Reducer<LicenseState>;
@@ -1,31 +0,0 @@
1
- import { FileModel, FileWithNameModel } from '../files';
2
- import { CreatedByModel, SubmittedAtModel, UUIDModel } from './base';
3
- export interface Attachment extends UUIDModel, SubmittedAtModel, FileWithNameModel, CreatedByModel {
4
- description?: string;
5
- file_type: string;
6
- }
7
- export interface IssueAttachment extends Attachment {
8
- issue: string;
9
- }
10
- export interface IssueTypeAttachment extends Attachment {
11
- issue_type: string;
12
- }
13
- export interface IssueCommentAttachment extends Attachment {
14
- issue_comment: string;
15
- }
16
- export interface AssetAttachment extends Attachment {
17
- asset: string;
18
- }
19
- export interface AssetTypeAttachment extends Attachment {
20
- asset_type: string;
21
- }
22
- export interface AssetProcedureAttachment extends Attachment {
23
- asset_procedure: string;
24
- }
25
- export interface ProjectAttachment extends Attachment {
26
- project: string;
27
- }
28
- export interface DocumentAttachment extends Attachment {
29
- document: string;
30
- }
31
- export type ProfilePic = FileModel;
@@ -1,7 +0,0 @@
1
- import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, UUIDModel } from './base';
2
- import { Organization } from './organizations';
3
- export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
4
- name?: string;
5
- description?: string;
6
- organization: Organization["uuid"];
7
- }
@@ -1,13 +0,0 @@
1
- import { LicenseLevel, LicenseStatus } from '../../enums';
2
- import { OwnedByOrganization, UUIDModel } from './base';
3
- export interface Transaction {
4
- id: string;
5
- }
6
- export interface License extends UUIDModel, OwnedByOrganization {
7
- project: string | null;
8
- level: LicenseLevel;
9
- status: LicenseStatus;
10
- is_special: boolean;
11
- is_active: boolean;
12
- next_billing_date: Date;
13
- }
File without changes
@@ -1,4 +0,0 @@
1
- import { MultiPoint, Point, Position } from 'geojson';
2
- export declare const createPointGeometry: (position: Position) => Point;
3
- export declare const createMultiPointGeometry: (coordinates: Position[]) => MultiPoint;
4
- export declare const coordinatesAreEqual: (a: Position, b: Position) => boolean;