@overmap-ai/core 1.0.65-org-projs-only.0 → 1.0.65-procedures.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/enums/access.d.ts +8 -0
- package/dist/enums/attachments.d.ts +7 -0
- package/dist/enums/index.d.ts +3 -0
- package/dist/enums/issue.d.ts +9 -0
- package/dist/enums/licenses.d.ts +14 -0
- package/dist/overmap-core.js +1444 -684
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +1440 -680
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/base.d.ts +1 -1
- package/dist/sdk/globals.d.ts +2 -2
- package/dist/sdk/sdk.d.ts +3 -3
- package/dist/sdk/services/AgentService.d.ts +1 -1
- package/dist/sdk/services/AssetAttachmentService.d.ts +3 -2
- package/dist/sdk/services/AssetProcedureCompletionService.d.ts +11 -0
- package/dist/sdk/services/AssetProcedureInstanceService.d.ts +10 -0
- package/dist/sdk/services/AssetProcedureService.d.ts +10 -0
- package/dist/sdk/services/AssetService.d.ts +5 -6
- package/dist/sdk/services/AssetStageCompletionService.d.ts +6 -12
- package/dist/sdk/services/AssetStageService.d.ts +6 -5
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +3 -2
- package/dist/sdk/services/AssetTypeService.d.ts +4 -4
- package/dist/sdk/services/BaseApiService.d.ts +1 -1
- package/dist/sdk/services/BaseAttachmentService.d.ts +3 -2
- package/dist/sdk/services/BaseAuthService.d.ts +1 -1
- package/dist/sdk/services/BaseService.d.ts +2 -2
- package/dist/sdk/services/BaseUploadService.d.ts +2 -2
- package/dist/sdk/services/CategoryService.d.ts +3 -3
- package/dist/sdk/services/DocumentAttachmentService.d.ts +3 -2
- package/dist/sdk/services/DocumentService.d.ts +2 -2
- package/dist/sdk/services/EmailDomainsService.d.ts +1 -1
- package/dist/sdk/services/EmailVerificationService.d.ts +1 -1
- package/dist/sdk/services/FileService.d.ts +1 -1
- package/dist/sdk/services/FormService.d.ts +3 -2
- package/dist/sdk/services/FormSubmissionService.d.ts +2 -3
- package/dist/sdk/services/GeoImageService.d.ts +2 -2
- package/dist/sdk/services/IssueAttachmentService.d.ts +3 -2
- package/dist/sdk/services/IssueCommentService.d.ts +2 -2
- package/dist/sdk/services/IssueService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeService.d.ts +2 -2
- package/dist/sdk/services/IssueUpdateService.d.ts +1 -1
- package/dist/sdk/services/JWTAuthService.d.ts +2 -2
- package/dist/sdk/services/LicenseService.d.ts +1 -1
- package/dist/sdk/services/OrganizationAccessService.d.ts +1 -1
- package/dist/sdk/services/OrganizationService.d.ts +1 -1
- package/dist/sdk/services/ProjectAccessService.d.ts +1 -1
- package/dist/sdk/services/ProjectAttachmentService.d.ts +3 -2
- package/dist/sdk/services/ProjectFileService.d.ts +2 -3
- package/dist/sdk/services/ProjectService.d.ts +1 -2
- package/dist/sdk/services/TeamService.d.ts +2 -2
- package/dist/sdk/services/UserService.d.ts +2 -2
- package/dist/sdk/services/WorkspaceService.d.ts +3 -5
- package/dist/sdk/services/index.d.ts +3 -0
- package/dist/store/slices/assetProcedureCompletionSlice.d.ts +54 -0
- package/dist/store/slices/assetProcedureInstanceSlice.d.ts +54 -0
- package/dist/store/slices/assetProcedureSlice.d.ts +53 -0
- package/dist/store/slices/assetStageCompletionSlice.d.ts +42 -12
- package/dist/store/slices/assetStageSlice.d.ts +22 -11
- package/dist/store/slices/assetTypeSlice.d.ts +27 -3
- package/dist/store/slices/formSlice.d.ts +2 -0
- package/dist/store/slices/index.d.ts +3 -0
- package/dist/store/slices/userSlice.d.ts +13 -33
- package/dist/store/store.d.ts +4 -1
- package/dist/typings/models/access.d.ts +2 -9
- package/dist/typings/models/agents.d.ts +1 -1
- package/dist/typings/models/assets.d.ts +26 -15
- package/dist/typings/models/attachments.d.ts +2 -9
- package/dist/typings/models/base.d.ts +5 -4
- package/dist/typings/models/categories.d.ts +3 -3
- package/dist/typings/models/documents.d.ts +1 -1
- package/dist/typings/models/emailDomain.d.ts +1 -1
- package/dist/typings/models/emailVerification.d.ts +2 -2
- package/dist/typings/models/forms.d.ts +3 -2
- package/dist/typings/models/geoImages.d.ts +3 -3
- package/dist/typings/models/issueTypes.d.ts +2 -2
- package/dist/typings/models/issues.d.ts +2 -10
- package/dist/typings/models/license.d.ts +3 -16
- package/dist/typings/models/organizations.d.ts +1 -1
- package/dist/typings/models/projects.d.ts +6 -4
- package/dist/typings/models/store.d.ts +4 -1
- package/dist/typings/models/teams.d.ts +3 -3
- package/dist/typings/models/users.d.ts +1 -1
- package/dist/typings/models/workspace.d.ts +3 -3
- package/dist/typings/store.d.ts +1 -1
- package/dist/utils/colors.d.ts +0 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CreatedByModel, Offline, OfflineModel, SubmittedAtModel } from "./base";
|
|
2
|
-
import { IssuePriority, IssueStatus } from "../../enums";
|
|
2
|
+
import type { IssuePriority, IssueStatus, IssueUpdateChange } from "../../enums";
|
|
3
3
|
import type { WorkspaceIndexedModel } from "./workspace";
|
|
4
4
|
import type { CanvasMarkableModel, MarkableModel } from "./geo";
|
|
5
5
|
import type { CreatedForm, Form, SubmittedForm } from "./forms";
|
|
@@ -34,6 +34,7 @@ export interface Issue extends Pick<WorkspaceIndexedModel, "index_workspace">, M
|
|
|
34
34
|
assigned_to?: number | null;
|
|
35
35
|
due_date?: string | Date | null;
|
|
36
36
|
category?: string | null;
|
|
37
|
+
visible_in_workspaces: string[];
|
|
37
38
|
issue_type?: string | null;
|
|
38
39
|
}
|
|
39
40
|
/**
|
|
@@ -72,15 +73,6 @@ export interface CreatedIssueComment {
|
|
|
72
73
|
created_at: Exclude<IssueComment["created_at"], undefined>;
|
|
73
74
|
}
|
|
74
75
|
export type IssueCommentPayload = Omit<IssueComment, "author" | "created_at" | "offline_id">;
|
|
75
|
-
export declare enum IssueUpdateChange {
|
|
76
|
-
STATUS = "status",
|
|
77
|
-
PRIORITY = "priority",
|
|
78
|
-
CATEGORY = "category",
|
|
79
|
-
DESCRIPTION = "description",
|
|
80
|
-
TITLE = "title",
|
|
81
|
-
ASSIGNED_TO = "assigned_to",
|
|
82
|
-
DUE_DATE = "due_date"
|
|
83
|
-
}
|
|
84
76
|
export interface IssueUpdateChangeTypes {
|
|
85
77
|
status: IssueStatus;
|
|
86
78
|
priority: IssuePriority;
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
import { OfflineModel,
|
|
2
|
-
|
|
3
|
-
COMPLETED = "checkout.completed",
|
|
4
|
-
CLOSED = "checkout.closed"
|
|
5
|
-
}
|
|
6
|
-
export declare enum LicenseLevel {
|
|
7
|
-
PRO = 0
|
|
8
|
-
}
|
|
9
|
-
export declare enum LicenseStatus {
|
|
10
|
-
ACTIVE = 0,
|
|
11
|
-
PAUSED = 2,
|
|
12
|
-
CANCELLED = 4,
|
|
13
|
-
INACTIVE = 6,
|
|
14
|
-
PAST_DUE = 8
|
|
15
|
-
}
|
|
1
|
+
import type { OfflineModel, OwnedByUserOrOrganization } from "./base";
|
|
2
|
+
import type { LicenseLevel, LicenseStatus } from "../../enums";
|
|
16
3
|
export interface Transaction {
|
|
17
4
|
id: string;
|
|
18
5
|
}
|
|
19
|
-
export interface License extends OfflineModel,
|
|
6
|
+
export interface License extends OfflineModel, OwnedByUserOrOrganization {
|
|
20
7
|
project: number | null;
|
|
21
8
|
level: LicenseLevel;
|
|
22
9
|
status: LicenseStatus;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { Model, OfflineModel
|
|
2
|
-
import { FileWithNameModel } from "../files";
|
|
3
|
-
import { BoundableModel, CanvasBoundableModel } from "./geo";
|
|
4
|
-
export interface Project extends Model, BoundableModel, CanvasBoundableModel
|
|
1
|
+
import type { Model, OfflineModel } from "./base";
|
|
2
|
+
import type { FileWithNameModel } from "../files";
|
|
3
|
+
import type { BoundableModel, CanvasBoundableModel } from "./geo";
|
|
4
|
+
export interface Project extends Model, BoundableModel, CanvasBoundableModel {
|
|
5
5
|
id: number;
|
|
6
6
|
name: string;
|
|
7
|
+
organization_owner: number | null;
|
|
8
|
+
user_owner: number | null;
|
|
7
9
|
invited?: boolean;
|
|
8
10
|
issues_count?: number;
|
|
9
11
|
form_submissions_count?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@redux-offline/redux-offline" />
|
|
2
2
|
import { OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
3
|
-
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VERSION_REDUCER_KEY, VersioningState, WorkspaceState } from "../../store";
|
|
3
|
+
import type { AgentsState, AssetAttachmentState, AssetProcedureCompletionState, AssetProcedureInstanceState, AssetProcedureState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VERSION_REDUCER_KEY, VersioningState, WorkspaceState } from "../../store";
|
|
4
4
|
export interface BaseState {
|
|
5
5
|
outboxReducer: OutboxState;
|
|
6
6
|
offline: OfflineState;
|
|
@@ -43,4 +43,7 @@ export interface OvermapRootState extends BaseState {
|
|
|
43
43
|
agentsReducer: AgentsState;
|
|
44
44
|
geoImageReducer: GeoImageSliceState;
|
|
45
45
|
issueAssociationReducer: IssueAssociationSliceState;
|
|
46
|
+
assetProcedureReducer: AssetProcedureState;
|
|
47
|
+
assetProcedureInstanceReducer: AssetProcedureInstanceState;
|
|
48
|
+
assetProcedureCompletionReducer: AssetProcedureCompletionState;
|
|
46
49
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ColorModel, IconModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
|
|
2
|
-
import { Organization } from "./organizations";
|
|
3
|
-
import { User } from "./users";
|
|
1
|
+
import type { ColorModel, IconModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
|
|
2
|
+
import type { Organization } from "./organizations";
|
|
3
|
+
import type { User } from "./users";
|
|
4
4
|
export interface Team extends OfflineModel, SubmittedAtModel, IconModel, ColorModel {
|
|
5
5
|
name: string;
|
|
6
6
|
parent: OfflineModel["offline_id"] | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface Workspace extends OfflineModel
|
|
1
|
+
import type { Model, OfflineModel } from "./base";
|
|
2
|
+
export interface Workspace extends OfflineModel {
|
|
3
3
|
name: string;
|
|
4
4
|
project: number;
|
|
5
5
|
abbreviation: string | null;
|
|
@@ -7,5 +7,5 @@ export interface Workspace extends OfflineModel, TimestampedModel, SubmittedAtMo
|
|
|
7
7
|
}
|
|
8
8
|
export interface WorkspaceIndexedModel extends Model {
|
|
9
9
|
index: number | null;
|
|
10
|
-
index_workspace: string;
|
|
10
|
+
index_workspace: string | null;
|
|
11
11
|
}
|
package/dist/typings/store.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OvermapRootState } from "./models";
|
|
1
|
+
import type { OvermapRootState } from "./models";
|
|
2
2
|
export type SelectorWithArgs<TState, TArgs, TRet> = (args: TArgs) => (state: TState) => TRet;
|
|
3
3
|
export type Selector<TState, TRet> = (state: TState) => TRet;
|
|
4
4
|
export type OvermapSelectorWithArgs<TArgs, TRet> = SelectorWithArgs<OvermapRootState, TArgs, TRet>;
|
package/dist/utils/colors.d.ts
CHANGED
|
@@ -10,7 +10,5 @@ export interface BadgeColors {
|
|
|
10
10
|
textColor: CSSColor;
|
|
11
11
|
}
|
|
12
12
|
export declare const Colors: Record<string, CSSColor>;
|
|
13
|
-
export declare const AssetStageColors: Record<string, CSSColor>;
|
|
14
13
|
export declare const defaultBadgeColor: CSSColor;
|
|
15
14
|
export declare const generateBadgeColors: (rawColor: CSSColor) => BadgeColors;
|
|
16
|
-
export declare function getStageColor(index: number): CSSColor;
|
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.65-
|
|
6
|
+
"version": "1.0.65-procedures.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|