@overmap-ai/core 1.2.4 → 1.2.5-install-common.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.
- package/dist/constants/index.d.ts +0 -1
- package/dist/constants/offline.d.ts +1 -1
- package/dist/enums/index.d.ts +0 -4
- package/dist/overmap-core.js +5596 -5773
- package/dist/overmap-core.umd.cjs +8 -8
- package/dist/sdk/services/AgentService.d.ts +1 -1
- package/dist/sdk/services/AssetAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetCommentService.d.ts +1 -1
- package/dist/sdk/services/AssetService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +10 -10
- package/dist/sdk/services/AssetTypeIdentifierService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeIdentifierValueService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeStatusService.d.ts +1 -1
- package/dist/sdk/services/BaseModelApiService.d.ts +1 -1
- package/dist/sdk/services/BaseOfflineFileModelApiService.d.ts +1 -1
- package/dist/sdk/services/BaseOfflineModelApiService.d.ts +1 -1
- package/dist/sdk/services/DocumentAttachmentService.d.ts +1 -1
- package/dist/sdk/services/DocumentService.d.ts +1 -1
- package/dist/sdk/services/EmailDomainsService.d.ts +9 -9
- package/dist/sdk/services/EmailVerificationService.d.ts +3 -2
- package/dist/sdk/services/FormIdentifierService.d.ts +1 -1
- package/dist/sdk/services/FormIdentifierValueService.d.ts +1 -1
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +1 -1
- package/dist/sdk/services/FormRevisionService.d.ts +10 -10
- package/dist/sdk/services/FormService.d.ts +1 -1
- package/dist/sdk/services/FormSubmissionFieldValuesAttachmentService.d.ts +1 -1
- package/dist/sdk/services/FormSubmissionFieldValuesService.d.ts +10 -10
- package/dist/sdk/services/FormSubmissionService.d.ts +1 -1
- package/dist/sdk/services/FormSubscriberService.d.ts +10 -10
- package/dist/sdk/services/GeoImageService.d.ts +2 -1
- package/dist/sdk/services/IssueAssociationService.d.ts +1 -1
- package/dist/sdk/services/IssueAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueCommentService.d.ts +1 -1
- package/dist/sdk/services/IssueService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeIdentifierService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeIdentifierValueService.d.ts +1 -1
- package/dist/sdk/services/IssueTypePriorityService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeStatusService.d.ts +1 -1
- package/dist/sdk/services/IssueUpdateService.d.ts +10 -10
- package/dist/sdk/services/OrganizationAccessService.d.ts +1 -1
- package/dist/sdk/services/OrganizationService.d.ts +1 -1
- package/dist/sdk/services/ProcdureInitiativeService.d.ts +1 -1
- package/dist/sdk/services/ProcedureFieldValuesAttachmentService.d.ts +1 -1
- package/dist/sdk/services/ProcedureFieldValuesService.d.ts +1 -1
- package/dist/sdk/services/ProcedureService.d.ts +1 -1
- package/dist/sdk/services/ProcedureStepAssigneeService.d.ts +10 -10
- package/dist/sdk/services/ProcedureStepCommentService.d.ts +1 -1
- package/dist/sdk/services/ProcedureStepDefaultAssigneeService.d.ts +10 -10
- package/dist/sdk/services/ProcedureStepDefaultReviewerService.d.ts +10 -10
- package/dist/sdk/services/ProcedureStepEventService.d.ts +1 -1
- package/dist/sdk/services/ProcedureStepFieldValuesAttachmentService.d.ts +1 -1
- package/dist/sdk/services/ProcedureStepFieldValuesReviewService.d.ts +1 -1
- package/dist/sdk/services/ProcedureStepFieldValuesService.d.ts +1 -1
- package/dist/sdk/services/ProcedureStepFieldsAttachmentService.d.ts +1 -1
- package/dist/sdk/services/ProcedureStepFieldsService.d.ts +10 -10
- package/dist/sdk/services/ProcedureStepReviewerService.d.ts +10 -10
- package/dist/sdk/services/ProcedureStepService.d.ts +1 -1
- package/dist/sdk/services/ProcedureTypeAttachmentService.d.ts +1 -1
- package/dist/sdk/services/ProcedureTypeFieldsAttachmentService.d.ts +1 -1
- package/dist/sdk/services/ProcedureTypeFieldsService.d.ts +10 -10
- package/dist/sdk/services/ProcedureTypeService.d.ts +1 -1
- package/dist/sdk/services/ProjectAccessService.d.ts +1 -1
- package/dist/sdk/services/ProjectAttachmentService.d.ts +1 -1
- package/dist/sdk/services/ProjectCommentService.d.ts +1 -1
- package/dist/sdk/services/ProjectFileService.d.ts +1 -1
- package/dist/sdk/services/ProjectService.d.ts +1 -1
- package/dist/sdk/services/TeamMembershipService.d.ts +10 -10
- package/dist/sdk/services/TeamService.d.ts +1 -1
- package/dist/sdk/services/UserService.d.ts +1 -1
- package/dist/sdk/typings.d.ts +1 -2
- package/dist/store/slices/agentsSlice.d.ts +1 -1
- package/dist/store/slices/assetAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/assetCommentSlice.d.ts +1 -1
- package/dist/store/slices/assetSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeIdentifierSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeIdentifierValueSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeStatusSlice.d.ts +1 -1
- package/dist/store/slices/documentAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/documentSlice.d.ts +1 -1
- package/dist/store/slices/emailDomainsSlice.d.ts +1 -1
- package/dist/store/slices/formIdentifierSlice.d.ts +1 -1
- package/dist/store/slices/formIdentifierValueSlice.d.ts +1 -1
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/formRevisionSlice.d.ts +1 -1
- package/dist/store/slices/formSlice.d.ts +1 -1
- package/dist/store/slices/formSubmissionFieldValuesAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/formSubmissionFieldValuesSlice.d.ts +1 -1
- package/dist/store/slices/formSubmissionSlice.d.ts +1 -1
- package/dist/store/slices/formSubscriberSlice.d.ts +1 -1
- package/dist/store/slices/geoImageSlice.d.ts +1 -1
- package/dist/store/slices/issueAssociationSlice.d.ts +1 -1
- package/dist/store/slices/issueAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/issueCommentAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/issueCommentSlice.d.ts +1 -1
- package/dist/store/slices/issueSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeIdentifierSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeIdentifierValueSlice.d.ts +1 -1
- package/dist/store/slices/issueTypePrioritySlice.d.ts +1 -1
- package/dist/store/slices/issueTypeSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeStatusSlice.d.ts +1 -1
- package/dist/store/slices/issueUpdateSlice.d.ts +1 -1
- package/dist/store/slices/organizationAccessSlice.d.ts +1 -1
- package/dist/store/slices/organizationSlice.d.ts +1 -1
- package/dist/store/slices/procedureFieldValuesSlice.d.ts +1 -1
- package/dist/store/slices/procedureInitiativeSlice.d.ts +1 -1
- package/dist/store/slices/procedureSlice.d.ts +1 -1
- package/dist/store/slices/procedureStepAssigneeSlice.d.ts +1 -1
- package/dist/store/slices/procedureStepCommentSlice.d.ts +1 -1
- package/dist/store/slices/procedureStepDefaultAssigneeSlice.d.ts +1 -1
- package/dist/store/slices/procedureStepDefaultReviewerSlice.d.ts +1 -1
- package/dist/store/slices/procedureStepEventSlice.d.ts +1 -1
- package/dist/store/slices/procedureStepFieldValuesAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/procedureStepFieldValuesReviewSlice.d.ts +1 -1
- package/dist/store/slices/procedureStepFieldValuesSlice.d.ts +1 -1
- package/dist/store/slices/procedureStepFieldsAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/procedureStepFieldsSlice.d.ts +1 -1
- package/dist/store/slices/procedureStepReviewerSlice.d.ts +1 -1
- package/dist/store/slices/procedureStepSlice.d.ts +1 -1
- package/dist/store/slices/procedureTypeAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/procedureTypeFieldValuesAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/procedureTypeFieldsAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/procedureTypeFieldsSlice.d.ts +1 -1
- package/dist/store/slices/procedureTypeSlice.d.ts +1 -1
- package/dist/store/slices/projectAccessSlice.d.ts +1 -1
- package/dist/store/slices/projectAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/projectCommentSlice.d.ts +1 -1
- package/dist/store/slices/projectFileSlice.d.ts +1 -1
- package/dist/store/slices/projectSlice.d.ts +1 -1
- package/dist/store/slices/teamMembershipSlice.d.ts +1 -1
- package/dist/store/slices/teamSlice.d.ts +1 -1
- package/dist/store/slices/userSlice.d.ts +1 -1
- package/dist/typings/models/emailVerification.d.ts +2 -19
- package/dist/typings/models/geoImages.d.ts +1 -9
- package/dist/typings/models/index.d.ts +0 -12
- package/dist/typings/models/users.d.ts +1 -9
- package/dist/utils/index.d.ts +0 -8
- package/package.json +3 -6
- package/dist/constants/array.d.ts +0 -2
- package/dist/enums/access.d.ts +0 -5
- package/dist/enums/asset.d.ts +0 -8
- package/dist/enums/issue.d.ts +0 -22
- package/dist/enums/procedures.d.ts +0 -11
- package/dist/typings/models/agents.d.ts +0 -16
- package/dist/typings/models/assets.d.ts +0 -56
- package/dist/typings/models/base.d.ts +0 -104
- package/dist/typings/models/documents.d.ts +0 -15
- package/dist/typings/models/emailDomain.d.ts +0 -6
- package/dist/typings/models/fields.d.ts +0 -16
- package/dist/typings/models/forms.d.ts +0 -43
- package/dist/typings/models/issues.d.ts +0 -99
- package/dist/typings/models/organizations.d.ts +0 -11
- package/dist/typings/models/procedures.d.ts +0 -105
- package/dist/typings/models/projects.d.ts +0 -24
- package/dist/typings/models/teams.d.ts +0 -12
- package/dist/utils/array.d.ts +0 -1
- package/dist/utils/async/DeferredPromise.d.ts +0 -35
- package/dist/utils/date.d.ts +0 -5
- package/dist/utils/logging.d.ts +0 -11
- package/dist/utils/models/assets.d.ts +0 -2
- package/dist/utils/models/base.d.ts +0 -2
- package/dist/utils/models/documents.d.ts +0 -4
- package/dist/utils/models/index.d.ts +0 -4
- package/dist/utils/models/issues.d.ts +0 -3
- package/dist/utils/optimization.d.ts +0 -9
- package/dist/utils/string.d.ts +0 -20
- package/dist/utils/utils.d.ts +0 -1
- package/dist/utils/uuid.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overmap-ai/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5-install-common.0",
|
|
4
4
|
"description": "Core functionality for Overmap",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -41,19 +41,16 @@
|
|
|
41
41
|
"@redux-offline/redux-offline": "2.6.0",
|
|
42
42
|
"@reduxjs/toolkit": "2.8.2",
|
|
43
43
|
"dependency-graph": "1.0.0",
|
|
44
|
-
"fast-tree-builder": "2.0.3",
|
|
45
44
|
"idb": "7.1.1",
|
|
46
45
|
"jwt-decode": "3.1.2",
|
|
47
46
|
"localforage": "1.10.0",
|
|
48
47
|
"redux": "5.0.1",
|
|
49
48
|
"redux-persist": "4.10.2",
|
|
50
49
|
"superagent": "8.1.2",
|
|
51
|
-
"ts-tree-lib": "1.0.3",
|
|
52
50
|
"uuid": "11.1.0"
|
|
53
51
|
},
|
|
54
52
|
"devDependencies": {
|
|
55
|
-
"@
|
|
56
|
-
"@types/geojson": "7946.0.16",
|
|
53
|
+
"@overmap-ai/common": "0.0.1-more-code-dump.0",
|
|
57
54
|
"@types/jwt-decode": "3.1.0",
|
|
58
55
|
"@types/node": "22.17.0",
|
|
59
56
|
"@types/react": "19.2.17",
|
|
@@ -73,7 +70,7 @@
|
|
|
73
70
|
"vitest": "3.2.4"
|
|
74
71
|
},
|
|
75
72
|
"peerDependencies": {
|
|
76
|
-
"@
|
|
73
|
+
"@overmap-ai/common": "^0.0.0",
|
|
77
74
|
"react": ">=18.2.0 <20.0.0",
|
|
78
75
|
"react-dom": ">=18.2.0 <20.0.0"
|
|
79
76
|
},
|
package/dist/enums/access.d.ts
DELETED
package/dist/enums/asset.d.ts
DELETED
package/dist/enums/issue.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare enum IssueUpdateChange {
|
|
2
|
-
STATUS = "status",
|
|
3
|
-
PRIORITY = "priority",
|
|
4
|
-
DESCRIPTION = "description",
|
|
5
|
-
TITLE = "title",
|
|
6
|
-
ASSIGNED_TO = "assigned_to",
|
|
7
|
-
DUE_DATE = "due_date"
|
|
8
|
-
}
|
|
9
|
-
export declare enum IssueStatusType {
|
|
10
|
-
BACKLOG = 0,
|
|
11
|
-
PLANNED = 1,
|
|
12
|
-
IN_PROGRESS = 2,
|
|
13
|
-
COMPLETED = 3,
|
|
14
|
-
CANCELLED = 4
|
|
15
|
-
}
|
|
16
|
-
export declare enum IssuePriorityType {
|
|
17
|
-
LOWEST = 0,
|
|
18
|
-
LOW = 2,
|
|
19
|
-
MEDIUM = 4,
|
|
20
|
-
HIGH = 6,
|
|
21
|
-
HIGHEST = 8
|
|
22
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { JSONContent } from '@tiptap/core';
|
|
2
|
-
import { OptionalFileModel, TimestampedModel, UUID } from './base';
|
|
3
|
-
export interface AgentProfile extends OptionalFileModel {
|
|
4
|
-
/**
|
|
5
|
-
* The name of the agent.
|
|
6
|
-
*/
|
|
7
|
-
name: string;
|
|
8
|
-
/**
|
|
9
|
-
* The description of the agent.
|
|
10
|
-
*/
|
|
11
|
-
description: string;
|
|
12
|
-
}
|
|
13
|
-
export interface AgentUserConversation extends UUID<TimestampedModel> {
|
|
14
|
-
profile?: AgentProfile | null;
|
|
15
|
-
tiptap_content?: JSONContent[];
|
|
16
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { AssetStatusType } from '../../enums';
|
|
2
|
-
import { AbbreviationModel, ColorModel, CreatedByModel, GeometryModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
|
-
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
4
|
-
import { Organization } from './organizations';
|
|
5
|
-
import { Project } from './projects';
|
|
6
|
-
export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, GeometryModel, IndexedModel {
|
|
7
|
-
asset_type: AssetType["uuid"];
|
|
8
|
-
label: string | null;
|
|
9
|
-
description: string | null;
|
|
10
|
-
project: Project["uuid"];
|
|
11
|
-
status: AssetTypeStatus["uuid"];
|
|
12
|
-
}
|
|
13
|
-
export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
14
|
-
organization: Organization["uuid"];
|
|
15
|
-
name: string;
|
|
16
|
-
description: string | null;
|
|
17
|
-
order: number;
|
|
18
|
-
default_status: AssetTypeStatus["uuid"] | null;
|
|
19
|
-
}
|
|
20
|
-
export interface AssetTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
21
|
-
asset_type: AssetType["uuid"];
|
|
22
|
-
}
|
|
23
|
-
export interface AssetTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
24
|
-
fields_revision: AssetTypeFields["uuid"];
|
|
25
|
-
}
|
|
26
|
-
export interface AssetTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
27
|
-
fields_revision: AssetTypeFields["uuid"];
|
|
28
|
-
asset: Asset["uuid"];
|
|
29
|
-
}
|
|
30
|
-
export interface AssetTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
31
|
-
field_values: AssetTypeFieldValues["uuid"];
|
|
32
|
-
}
|
|
33
|
-
export interface AssetTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
34
|
-
asset_type: AssetType["uuid"];
|
|
35
|
-
}
|
|
36
|
-
export interface AssetTypeIdentifierValue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierValueModel {
|
|
37
|
-
asset: Asset["uuid"];
|
|
38
|
-
asset_type_identifier: AssetTypeIdentifier["uuid"];
|
|
39
|
-
}
|
|
40
|
-
export interface AssetAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
41
|
-
asset: Asset["uuid"];
|
|
42
|
-
}
|
|
43
|
-
export interface AssetTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
44
|
-
asset_type: AssetType["uuid"];
|
|
45
|
-
}
|
|
46
|
-
export interface AssetTypeStatus extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
|
|
47
|
-
asset_type: AssetType["uuid"];
|
|
48
|
-
name: string;
|
|
49
|
-
type: AssetStatusType;
|
|
50
|
-
order: number;
|
|
51
|
-
}
|
|
52
|
-
export interface AssetComment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
53
|
-
asset: Asset["uuid"];
|
|
54
|
-
content: string;
|
|
55
|
-
resolved: boolean;
|
|
56
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { Geometry, MultiPoint, Point, Polygon } from 'geojson';
|
|
2
|
-
import { User } from './users';
|
|
3
|
-
export type UUID<T> = T & {
|
|
4
|
-
uuid: string;
|
|
5
|
-
};
|
|
6
|
-
export type UUIDModelMapping<TModel extends UUIDModel> = Record<TModel["uuid"], TModel>;
|
|
7
|
-
type FilteredKeys<T> = {
|
|
8
|
-
[P in keyof T]: T[P] extends never ? never : P;
|
|
9
|
-
}[keyof T];
|
|
10
|
-
type ExcludeNeverFields<O> = {
|
|
11
|
-
[K in FilteredKeys<O>]: O[K];
|
|
12
|
-
};
|
|
13
|
-
type PropertyUndefined<T> = {
|
|
14
|
-
[P in keyof T]?: T[P];
|
|
15
|
-
};
|
|
16
|
-
export type CommonAutoFields = "created_at" | "updated_at" | "index" | "revision";
|
|
17
|
-
/**
|
|
18
|
-
* Represents a model instance that has been submitted to the backend. Some properties (depending on which model, but in
|
|
19
|
-
* all cases, the `offline_id`) are guaranteed to be set.
|
|
20
|
-
*/
|
|
21
|
-
export type Submitted<TModel> = Omit<TModel, CommonAutoFields> & PropertyUndefined<ExcludeNeverFields<{
|
|
22
|
-
created_at: "created_at" extends keyof TModel ? undefined : never;
|
|
23
|
-
updated_at: "updated_at" extends keyof TModel ? undefined : never;
|
|
24
|
-
index: "index" extends keyof TModel ? undefined : never;
|
|
25
|
-
revision: "revision" extends keyof TModel ? undefined : never;
|
|
26
|
-
}>>;
|
|
27
|
-
/**
|
|
28
|
-
* Represents a model instance that has been submitted to the backend, accepted, then downloaded. Created models
|
|
29
|
-
* typically have additional properties that are only known once it has been processed and accepted by the API, such as
|
|
30
|
-
* the `created_at` timestamp, which is the time at which the data was written to the database.
|
|
31
|
-
*/
|
|
32
|
-
export type Created<TModel> = TModel;
|
|
33
|
-
/**
|
|
34
|
-
* Model instances that are stored in the Redux store can be already-created (and will likely be gotten with the initial
|
|
35
|
-
* data load), or to-be-created. In the former case, you will get a `Created<TModel>`. In the latter case, you will get
|
|
36
|
-
* a `Submitted<TModel>`.
|
|
37
|
-
*/
|
|
38
|
-
export type Stored<TModel> = Created<TModel> | Submitted<TModel>;
|
|
39
|
-
export type Payload<TModel> = Omit<TModel, CommonAutoFields | "uuid" | "id" | "submitted_at" | "created_by">;
|
|
40
|
-
export interface Model {
|
|
41
|
-
}
|
|
42
|
-
export interface IdModel extends Model {
|
|
43
|
-
id: number;
|
|
44
|
-
}
|
|
45
|
-
export interface UUIDModel extends Model {
|
|
46
|
-
uuid: string;
|
|
47
|
-
}
|
|
48
|
-
export interface SubmittedAtModel extends Model {
|
|
49
|
-
submitted_at: string;
|
|
50
|
-
}
|
|
51
|
-
export interface TimestampedModel extends Model {
|
|
52
|
-
created_at: string;
|
|
53
|
-
updated_at: string;
|
|
54
|
-
}
|
|
55
|
-
export interface IconModel {
|
|
56
|
-
icon: string;
|
|
57
|
-
}
|
|
58
|
-
export interface ColorModel {
|
|
59
|
-
color: string;
|
|
60
|
-
}
|
|
61
|
-
export interface CreatedByModel {
|
|
62
|
-
created_by: User["id"] | null;
|
|
63
|
-
}
|
|
64
|
-
export interface IndexedModel {
|
|
65
|
-
index: number;
|
|
66
|
-
}
|
|
67
|
-
export interface BoundableModel {
|
|
68
|
-
bounds?: MultiPoint;
|
|
69
|
-
}
|
|
70
|
-
export interface PolygonBoundedModel {
|
|
71
|
-
bounds: Polygon;
|
|
72
|
-
}
|
|
73
|
-
export interface MarkableModel {
|
|
74
|
-
geo_marker?: Point;
|
|
75
|
-
}
|
|
76
|
-
export interface IdentifierModel {
|
|
77
|
-
name: string;
|
|
78
|
-
}
|
|
79
|
-
export interface IdentifierValueModel {
|
|
80
|
-
value: string;
|
|
81
|
-
}
|
|
82
|
-
export interface GeometryModel {
|
|
83
|
-
geometry: Geometry;
|
|
84
|
-
}
|
|
85
|
-
export interface AbbreviationModel {
|
|
86
|
-
abbr: string;
|
|
87
|
-
}
|
|
88
|
-
export interface TreeModel<TId extends string | number | symbol> {
|
|
89
|
-
parent: TId | null;
|
|
90
|
-
}
|
|
91
|
-
export interface OptionalFileModel extends Model {
|
|
92
|
-
object_url?: string;
|
|
93
|
-
file_sha1: string | null;
|
|
94
|
-
file_extension: string | null;
|
|
95
|
-
file_name: string | null;
|
|
96
|
-
}
|
|
97
|
-
export interface RequiredFileModel extends Model {
|
|
98
|
-
object_url?: string;
|
|
99
|
-
file_sha1: NonNullable<OptionalFileModel["file_sha1"]>;
|
|
100
|
-
file_extension: NonNullable<OptionalFileModel["file_extension"]>;
|
|
101
|
-
file_name: NonNullable<OptionalFileModel["file_name"]>;
|
|
102
|
-
file_type: string | null;
|
|
103
|
-
}
|
|
104
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ColorModel, CreatedByModel, IconModel, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
|
-
import { Organization } from './organizations';
|
|
3
|
-
import { Project } from './projects';
|
|
4
|
-
export interface Document extends UUIDModel, SubmittedAtModel, CreatedByModel, TimestampedModel, IconModel, ColorModel {
|
|
5
|
-
title: string | null;
|
|
6
|
-
description: string | null;
|
|
7
|
-
content: string | null;
|
|
8
|
-
parent_document: Document["uuid"] | null;
|
|
9
|
-
project: Project["uuid"] | null;
|
|
10
|
-
organization: Organization["uuid"] | null;
|
|
11
|
-
}
|
|
12
|
-
export interface DocumentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
13
|
-
document: Document["uuid"];
|
|
14
|
-
}
|
|
15
|
-
export type MovePosition = "left" | "right" | "left-child" | "right-child";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { JSONField, JSONFieldSection, JSONFieldValues } from '@adrekic/fieldsjson';
|
|
2
|
-
import { RequiredFileModel } from './base';
|
|
3
|
-
export interface FieldsModel {
|
|
4
|
-
fields: JSONFieldSection[];
|
|
5
|
-
revision: number;
|
|
6
|
-
}
|
|
7
|
-
export interface FieldValuesModel {
|
|
8
|
-
published_at: string | null;
|
|
9
|
-
values: JSONFieldValues;
|
|
10
|
-
}
|
|
11
|
-
export interface FieldsAttachmentModel extends RequiredFileModel {
|
|
12
|
-
field_identifier: JSONField["identifier"];
|
|
13
|
-
}
|
|
14
|
-
export interface FieldValuesAttachmentModel extends RequiredFileModel {
|
|
15
|
-
field_identifier: JSONField["identifier"];
|
|
16
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Asset } from './assets';
|
|
2
|
-
import { AbbreviationModel, CreatedByModel, IdentifierModel, IdentifierValueModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
|
-
import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
|
|
4
|
-
import { Issue } from './issues';
|
|
5
|
-
import { Organization } from './organizations';
|
|
6
|
-
import { Project } from './projects';
|
|
7
|
-
import { User } from './users';
|
|
8
|
-
export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, AbbreviationModel {
|
|
9
|
-
organization: Organization["uuid"];
|
|
10
|
-
name: string;
|
|
11
|
-
description: string | null;
|
|
12
|
-
}
|
|
13
|
-
export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
14
|
-
form: Form["uuid"];
|
|
15
|
-
}
|
|
16
|
-
export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IndexedModel {
|
|
17
|
-
form_revision: FormRevision["uuid"];
|
|
18
|
-
form: Form["uuid"];
|
|
19
|
-
organization: Organization["uuid"] | null;
|
|
20
|
-
project: Project["uuid"] | null;
|
|
21
|
-
asset: Asset["uuid"] | null;
|
|
22
|
-
issue: Issue["uuid"] | null;
|
|
23
|
-
}
|
|
24
|
-
export interface FormSubmissionFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
25
|
-
form_submission: FormSubmission["uuid"];
|
|
26
|
-
}
|
|
27
|
-
export interface FormSubmissionFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesAttachmentModel {
|
|
28
|
-
field_values: FormSubmissionFieldValues["uuid"];
|
|
29
|
-
}
|
|
30
|
-
export interface FormRevisionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
31
|
-
form_revision: FormRevision["uuid"];
|
|
32
|
-
}
|
|
33
|
-
export interface FormIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
34
|
-
form: Form["uuid"];
|
|
35
|
-
}
|
|
36
|
-
export interface FormIdentifierValue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierValueModel {
|
|
37
|
-
form_submission: FormSubmission["uuid"];
|
|
38
|
-
form_identifier: FormIdentifier["uuid"];
|
|
39
|
-
}
|
|
40
|
-
export interface FormSubscriber extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
41
|
-
form: Form["uuid"];
|
|
42
|
-
user: User["id"];
|
|
43
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { IssueStatusType, IssuePriorityType, IssueUpdateChange } from '../../enums';
|
|
2
|
-
import { Asset } from './assets';
|
|
3
|
-
import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
4
|
-
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
5
|
-
import { Organization } from './organizations';
|
|
6
|
-
import { Project } from './projects';
|
|
7
|
-
import { User } from './users';
|
|
8
|
-
export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, IndexedModel {
|
|
9
|
-
title: string | null;
|
|
10
|
-
description: string | null;
|
|
11
|
-
priority: IssueTypePriority["uuid"];
|
|
12
|
-
status: IssueTypeStatus["uuid"];
|
|
13
|
-
assigned_to: User["id"] | null;
|
|
14
|
-
due_date: string | null;
|
|
15
|
-
issue_type: IssueType["uuid"];
|
|
16
|
-
project: Project["uuid"];
|
|
17
|
-
}
|
|
18
|
-
export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
19
|
-
issue: Issue["uuid"];
|
|
20
|
-
content: string;
|
|
21
|
-
resolved: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface IssueUpdateChangeTypes {
|
|
24
|
-
[IssueUpdateChange.STATUS]: {
|
|
25
|
-
name: IssueTypeStatus["name"];
|
|
26
|
-
color: IssueTypeStatus["color"];
|
|
27
|
-
uuid: IssueTypeStatus["uuid"];
|
|
28
|
-
};
|
|
29
|
-
[IssueUpdateChange.PRIORITY]: {
|
|
30
|
-
name: IssueTypePriority["name"];
|
|
31
|
-
color: IssueTypePriority["color"];
|
|
32
|
-
uuid: IssueTypePriority["uuid"];
|
|
33
|
-
};
|
|
34
|
-
[IssueUpdateChange.DESCRIPTION]: string;
|
|
35
|
-
[IssueUpdateChange.TITLE]: string;
|
|
36
|
-
[IssueUpdateChange.ASSIGNED_TO]: {
|
|
37
|
-
full_name: string;
|
|
38
|
-
id: User["id"];
|
|
39
|
-
} | null;
|
|
40
|
-
[IssueUpdateChange.DUE_DATE]: string | null;
|
|
41
|
-
}
|
|
42
|
-
export interface IssueUpdate extends UUIDModel, CreatedByModel, SubmittedAtModel, TimestampedModel {
|
|
43
|
-
issue: Issue["uuid"];
|
|
44
|
-
changes: Partial<{
|
|
45
|
-
[K in IssueUpdateChange]: IssueUpdateChangeTypes[K];
|
|
46
|
-
}>;
|
|
47
|
-
}
|
|
48
|
-
export interface IssueAssociation extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
49
|
-
issue: Issue["uuid"];
|
|
50
|
-
asset: Asset["uuid"];
|
|
51
|
-
}
|
|
52
|
-
export interface IssueTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
53
|
-
issue_type: IssueType["uuid"];
|
|
54
|
-
}
|
|
55
|
-
export interface IssueTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
56
|
-
fields_revision: IssueTypeFields["uuid"];
|
|
57
|
-
}
|
|
58
|
-
export interface IssueTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
59
|
-
fields_revision: IssueTypeFields["uuid"];
|
|
60
|
-
issue: Issue["uuid"];
|
|
61
|
-
}
|
|
62
|
-
export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
63
|
-
field_values: IssueTypeFieldValues["uuid"];
|
|
64
|
-
}
|
|
65
|
-
export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, TimestampedModel, CreatedByModel, AbbreviationModel {
|
|
66
|
-
name: string;
|
|
67
|
-
description: string | null;
|
|
68
|
-
organization: Organization["uuid"];
|
|
69
|
-
default_status: IssueTypeStatus["uuid"] | null;
|
|
70
|
-
default_priority: IssueTypePriority["uuid"] | null;
|
|
71
|
-
}
|
|
72
|
-
export interface IssueTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
73
|
-
issue_type: IssueType["uuid"];
|
|
74
|
-
}
|
|
75
|
-
export interface IssueTypeIdentifierValue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierValueModel {
|
|
76
|
-
issue: Issue["uuid"];
|
|
77
|
-
issue_type_identifier: IssueTypeIdentifier["uuid"];
|
|
78
|
-
}
|
|
79
|
-
export interface IssueAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
80
|
-
issue: Issue["uuid"];
|
|
81
|
-
}
|
|
82
|
-
export interface IssueTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
83
|
-
issue_type: IssueType["uuid"];
|
|
84
|
-
}
|
|
85
|
-
export interface IssueCommentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
86
|
-
issue_comment: IssueComment["uuid"];
|
|
87
|
-
}
|
|
88
|
-
export interface IssueTypeStatus extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
|
|
89
|
-
issue_type: IssueType["uuid"];
|
|
90
|
-
name: string;
|
|
91
|
-
type: IssueStatusType;
|
|
92
|
-
order: number;
|
|
93
|
-
}
|
|
94
|
-
export interface IssueTypePriority extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
|
|
95
|
-
issue_type: IssueType["uuid"];
|
|
96
|
-
name: string;
|
|
97
|
-
type: IssuePriorityType;
|
|
98
|
-
order: number;
|
|
99
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OrganizationAccessLevel } from '../../enums';
|
|
2
|
-
import { TimestampedModel, UUIDModel } from './base';
|
|
3
|
-
import { User } from './users';
|
|
4
|
-
export interface Organization extends UUIDModel, TimestampedModel {
|
|
5
|
-
name: string;
|
|
6
|
-
}
|
|
7
|
-
export interface OrganizationAccess extends UUIDModel, TimestampedModel {
|
|
8
|
-
user: User["id"];
|
|
9
|
-
organization: Organization["uuid"];
|
|
10
|
-
access_level: OrganizationAccessLevel;
|
|
11
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { JSONCondition } from '@adrekic/fieldsjson';
|
|
2
|
-
import { ProcedureStepEventType, ProcedureStepFieldValuesReviewType } from '../../enums';
|
|
3
|
-
import { Asset, AssetType } from './assets';
|
|
4
|
-
import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, IndexedModel, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
5
|
-
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
6
|
-
import { Organization } from './organizations';
|
|
7
|
-
import { Project } from './projects';
|
|
8
|
-
import { User } from './users';
|
|
9
|
-
export interface ProcedureType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
10
|
-
name: string;
|
|
11
|
-
description: string;
|
|
12
|
-
organization: Organization["uuid"];
|
|
13
|
-
}
|
|
14
|
-
export interface ProcedureTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
15
|
-
procedure_type: ProcedureType["uuid"];
|
|
16
|
-
}
|
|
17
|
-
export interface ProcedureStep extends UUIDModel, TimestampedModel, ColorModel, SubmittedAtModel, CreatedByModel {
|
|
18
|
-
procedure_type: ProcedureType["uuid"];
|
|
19
|
-
name: string;
|
|
20
|
-
order: number;
|
|
21
|
-
}
|
|
22
|
-
export interface ProcedureStepFields extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, FieldsModel {
|
|
23
|
-
procedure_step: ProcedureStep["uuid"];
|
|
24
|
-
field_conditions?: JSONCondition[] | null;
|
|
25
|
-
}
|
|
26
|
-
export interface ProcedureTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
27
|
-
procedure_type: ProcedureType["uuid"];
|
|
28
|
-
}
|
|
29
|
-
export interface ProcedureTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
30
|
-
fields_revision: ProcedureTypeFields["uuid"];
|
|
31
|
-
}
|
|
32
|
-
export interface ProcedureFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
33
|
-
fields_revision: ProcedureTypeFields["uuid"];
|
|
34
|
-
procedure: Procedure["uuid"];
|
|
35
|
-
}
|
|
36
|
-
export interface ProcedureFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
37
|
-
field_values: ProcedureFieldValues["uuid"];
|
|
38
|
-
}
|
|
39
|
-
export interface ProcedureStepFieldsAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, FieldsAttachmentModel {
|
|
40
|
-
fields_revision: ProcedureStepFields["uuid"];
|
|
41
|
-
}
|
|
42
|
-
export interface Procedure extends UUIDModel, TimestampedModel, SubmittedAtModel, IndexedModel, CreatedByModel {
|
|
43
|
-
procedure_type: ProcedureType["uuid"];
|
|
44
|
-
project: Project["uuid"];
|
|
45
|
-
asset: Asset["uuid"];
|
|
46
|
-
procedure_initiative: ProcedureInitiative["uuid"] | null;
|
|
47
|
-
}
|
|
48
|
-
export interface ProcedureStepAssignee extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
49
|
-
procedure: Procedure["uuid"];
|
|
50
|
-
procedure_step: ProcedureStep["uuid"];
|
|
51
|
-
user: User["id"];
|
|
52
|
-
}
|
|
53
|
-
export interface ProcedureStepComment extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
54
|
-
procedure: Procedure["uuid"];
|
|
55
|
-
procedure_step: ProcedureStep["uuid"];
|
|
56
|
-
content: string;
|
|
57
|
-
resolved: boolean;
|
|
58
|
-
}
|
|
59
|
-
export type ProcedureStepEventTypeValueMapping = {
|
|
60
|
-
[ProcedureStepEventType.ADD_ASSIGNEE]: number;
|
|
61
|
-
[ProcedureStepEventType.REMOVE_ASSIGNEE]: number;
|
|
62
|
-
[ProcedureStepEventType.ADD_REVIEWER]: number;
|
|
63
|
-
[ProcedureStepEventType.REMOVE_REVIEWER]: number;
|
|
64
|
-
};
|
|
65
|
-
export type ProcedureEventEventTypeValueDiscriminator = {
|
|
66
|
-
[TType in ProcedureStepEventType]: {
|
|
67
|
-
type: TType;
|
|
68
|
-
value: ProcedureStepEventTypeValueMapping[TType];
|
|
69
|
-
};
|
|
70
|
-
}[ProcedureStepEventType];
|
|
71
|
-
export type ProcedureStepEvent = UUIDModel & TimestampedModel & CreatedByModel & ProcedureEventEventTypeValueDiscriminator & {
|
|
72
|
-
procedure: Procedure["uuid"];
|
|
73
|
-
procedure_step: ProcedureStep["uuid"];
|
|
74
|
-
};
|
|
75
|
-
export interface ProcedureStepFieldValues extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, FieldValuesModel {
|
|
76
|
-
procedure: Procedure["uuid"];
|
|
77
|
-
procedure_step: ProcedureStep["uuid"];
|
|
78
|
-
fields_revision: ProcedureStepFields["uuid"];
|
|
79
|
-
}
|
|
80
|
-
export interface ProcedureStepFieldValuesAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, FieldsAttachmentModel {
|
|
81
|
-
field_values: ProcedureStepFieldValues["uuid"];
|
|
82
|
-
}
|
|
83
|
-
export interface ProcedureStepFieldValuesReview extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
84
|
-
field_values: ProcedureStepFieldValues["uuid"];
|
|
85
|
-
content: string;
|
|
86
|
-
type: ProcedureStepFieldValuesReviewType;
|
|
87
|
-
}
|
|
88
|
-
export interface ProcedureStepReviewer extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
89
|
-
procedure: Procedure["uuid"];
|
|
90
|
-
procedure_step: ProcedureStep["uuid"];
|
|
91
|
-
user: User["id"];
|
|
92
|
-
}
|
|
93
|
-
export interface ProcedureStepDefaultAssignee extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
94
|
-
procedure_step: ProcedureStep["uuid"];
|
|
95
|
-
user: User["id"];
|
|
96
|
-
}
|
|
97
|
-
export interface ProcedureStepDefaultReviewer extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
98
|
-
procedure_step: ProcedureStep["uuid"];
|
|
99
|
-
user: User["id"];
|
|
100
|
-
}
|
|
101
|
-
export interface ProcedureInitiative extends UUIDModel, TimestampedModel, SubmittedAtModel, IndexedModel, CreatedByModel {
|
|
102
|
-
procedure_type: ProcedureType["uuid"];
|
|
103
|
-
project: Project["uuid"];
|
|
104
|
-
asset_type: AssetType["uuid"];
|
|
105
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BoundableModel, CreatedByModel, PolygonBoundedModel, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
|
-
import { Organization, OrganizationAccess } from './organizations';
|
|
3
|
-
import { User } from './users';
|
|
4
|
-
export interface Project extends UUIDModel, TimestampedModel, PolygonBoundedModel, CreatedByModel {
|
|
5
|
-
name: string;
|
|
6
|
-
organization: Organization["uuid"];
|
|
7
|
-
}
|
|
8
|
-
export interface ProjectComment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
9
|
-
project: Project["uuid"];
|
|
10
|
-
content: string;
|
|
11
|
-
resolved: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, RequiredFileModel, BoundableModel, CreatedByModel {
|
|
14
|
-
z_index: number;
|
|
15
|
-
project: Project["uuid"];
|
|
16
|
-
}
|
|
17
|
-
export interface ProjectAccess extends UUIDModel, CreatedByModel, TimestampedModel {
|
|
18
|
-
user: User["id"];
|
|
19
|
-
project: Project["uuid"];
|
|
20
|
-
organization_access: OrganizationAccess["uuid"];
|
|
21
|
-
}
|
|
22
|
-
export interface ProjectAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
23
|
-
project: Project["uuid"];
|
|
24
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, TreeModel, UUIDModel } from './base';
|
|
2
|
-
import { Organization, OrganizationAccess } from './organizations';
|
|
3
|
-
import { User } from './users';
|
|
4
|
-
export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel, AbbreviationModel, TreeModel<string> {
|
|
5
|
-
name: string;
|
|
6
|
-
organization: Organization["uuid"];
|
|
7
|
-
}
|
|
8
|
-
export interface TeamMembership extends UUIDModel, TimestampedModel, CreatedByModel {
|
|
9
|
-
team: Team["uuid"];
|
|
10
|
-
user: User["id"];
|
|
11
|
-
organization_access: OrganizationAccess["uuid"];
|
|
12
|
-
}
|
package/dist/utils/array.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function chunkArray<T>(arr: T[], chunkSize: number): T[][];
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A new instance of deferred is constructed by calling `new DeferredPromise<T>()`.
|
|
3
|
-
* The purpose of the deferred object is to expose the associated Promise
|
|
4
|
-
* instance APIs that can be used for signaling the successful
|
|
5
|
-
* or unsuccessful completion, as well as the state of the task.
|
|
6
|
-
* @export
|
|
7
|
-
* @class DeferredPromise
|
|
8
|
-
* @implements {Promise<T>}
|
|
9
|
-
* @template T
|
|
10
|
-
* @example
|
|
11
|
-
* const deferred = new DeferredPromise<string>()
|
|
12
|
-
* console.log(deferred.state) // "pending"
|
|
13
|
-
*
|
|
14
|
-
* deferred
|
|
15
|
-
* .then(str => console.log(str))
|
|
16
|
-
* .catch(err => console.error(err))
|
|
17
|
-
*
|
|
18
|
-
* deferred.resolve("Foo")
|
|
19
|
-
* console.log(deferred.state) // "fulfilled"
|
|
20
|
-
* // deferred.reject("Bar")
|
|
21
|
-
*/
|
|
22
|
-
export declare class DeferredPromise<T> implements Promise<T> {
|
|
23
|
-
[Symbol.toStringTag]: string;
|
|
24
|
-
private _promise;
|
|
25
|
-
private _resolve;
|
|
26
|
-
private _reject;
|
|
27
|
-
private _state;
|
|
28
|
-
get state(): "pending" | "fulfilled" | "rejected";
|
|
29
|
-
constructor();
|
|
30
|
-
then<TResult1, TResult2>(onFulfilled?: (value: T) => TResult1 | PromiseLike<TResult1>, onRejected?: (reason: unknown) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>;
|
|
31
|
-
catch<TResult>(onRejected?: (reason: unknown) => TResult | PromiseLike<TResult>): Promise<T | TResult>;
|
|
32
|
-
resolve(value?: T | PromiseLike<T>): void;
|
|
33
|
-
reject(reason?: unknown): void;
|
|
34
|
-
finally(_onFinally?: (() => void) | null): Promise<T>;
|
|
35
|
-
}
|
package/dist/utils/date.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** Only shows year if a past year */
|
|
2
|
-
export declare const getLocalDateString: (date?: string | null | Date | number) => string;
|
|
3
|
-
/** Returns true if the given date is today */
|
|
4
|
-
export declare const isToday: (date: string | Date | number) => boolean;
|
|
5
|
-
export declare const getLocalRelativeDateString: (date: string | Date | number, min: number, max: number) => string;
|