@overmap-ai/core 1.0.65-asset-models-improvements.3 → 1.0.65-error-message-fix.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/index.d.ts +0 -3
- package/dist/enums/issue.d.ts +0 -9
- package/dist/overmap-core.js +460 -556
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +449 -545
- 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 +2 -3
- package/dist/sdk/services/AssetService.d.ts +6 -5
- package/dist/sdk/services/AssetStageCompletionService.d.ts +12 -6
- package/dist/sdk/services/AssetStageService.d.ts +4 -5
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +2 -3
- 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 +2 -3
- 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 +2 -2
- package/dist/sdk/services/DocumentAttachmentService.d.ts +2 -3
- 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 +2 -1
- package/dist/sdk/services/FormSubmissionService.d.ts +3 -2
- package/dist/sdk/services/GeoImageService.d.ts +2 -2
- package/dist/sdk/services/IssueAttachmentService.d.ts +2 -3
- 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 +2 -3
- package/dist/sdk/services/ProjectFileService.d.ts +3 -2
- package/dist/sdk/services/ProjectService.d.ts +2 -1
- 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 +4 -2
- package/dist/store/slices/assetStageCompletionSlice.d.ts +11 -41
- package/dist/store/slices/assetStageSlice.d.ts +9 -20
- package/dist/store/slices/assetTypeSlice.d.ts +3 -27
- package/dist/typings/models/access.d.ts +9 -2
- package/dist/typings/models/agents.d.ts +1 -1
- package/dist/typings/models/assets.d.ts +9 -8
- package/dist/typings/models/attachments.d.ts +9 -2
- package/dist/typings/models/base.d.ts +2 -2
- package/dist/typings/models/categories.d.ts +2 -2
- 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 +2 -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 +10 -1
- package/dist/typings/models/license.d.ts +15 -2
- package/dist/typings/models/organizations.d.ts +1 -1
- package/dist/typings/models/projects.d.ts +3 -3
- package/dist/typings/models/store.d.ts +1 -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 +1 -1
- package/dist/typings/store.d.ts +1 -1
- package/dist/utils/colors.d.ts +2 -0
- package/package.json +1 -1
- package/dist/enums/access.d.ts +0 -8
- package/dist/enums/attachments.d.ts +0 -7
- package/dist/enums/licenses.d.ts +0 -14
|
@@ -7,40 +7,16 @@ export declare const assetTypeSlice: import("@reduxjs/toolkit").Slice<AssetTypeS
|
|
|
7
7
|
payload: Stored<AssetType>[];
|
|
8
8
|
type: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
|
|
10
|
+
addAssetType: <TState_1 extends ModelState<Stored<AssetType>>>(state: TState_1, action: {
|
|
11
11
|
payload: Stored<AssetType>;
|
|
12
12
|
type: string;
|
|
13
13
|
}) => void;
|
|
14
|
-
|
|
15
|
-
payload: Stored<AssetType>[];
|
|
16
|
-
type: string;
|
|
17
|
-
}) => void;
|
|
18
|
-
addAssetType: <TState_3 extends ModelState<Stored<AssetType>>>(state: TState_3, action: {
|
|
19
|
-
payload: Stored<AssetType>;
|
|
20
|
-
type: string;
|
|
21
|
-
}) => void;
|
|
22
|
-
addAssetTypes: <TState_4 extends ModelState<Stored<AssetType>>>(state: TState_4, action: {
|
|
23
|
-
payload: Stored<AssetType>[];
|
|
24
|
-
type: string;
|
|
25
|
-
}) => void;
|
|
26
|
-
updateAssetType: <TState_5 extends ModelState<Stored<AssetType>>>(state: TState_5, action: {
|
|
27
|
-
payload: Stored<AssetType>;
|
|
28
|
-
type: string;
|
|
29
|
-
}) => void;
|
|
30
|
-
updateAssetTypes: <TState_6 extends ModelState<Stored<AssetType>>>(state: TState_6, action: {
|
|
31
|
-
payload: Stored<AssetType>[];
|
|
32
|
-
type: string;
|
|
33
|
-
}) => void;
|
|
34
|
-
deleteAssetType: <TState_7 extends ModelState<Stored<AssetType>>>(state: TState_7, action: {
|
|
14
|
+
deleteAssetType: <TState_2 extends ModelState<Stored<AssetType>>>(state: TState_2, action: {
|
|
35
15
|
payload: string;
|
|
36
16
|
type: string;
|
|
37
17
|
}) => void;
|
|
38
|
-
deleteAssetTypes: <TState_8 extends ModelState<Stored<AssetType>>>(state: TState_8, action: {
|
|
39
|
-
payload: string[];
|
|
40
|
-
type: string;
|
|
41
|
-
}) => void;
|
|
42
18
|
}, "assetTypes">;
|
|
43
|
-
export declare const
|
|
19
|
+
export declare const addAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>, "assetTypes/addAssetType">, initializeAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/initializeAssetTypes">, deleteAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetTypes/deleteAssetType">;
|
|
44
20
|
export declare const selectAssetTypesMapping: OvermapSelector<Record<string, AssetType>>;
|
|
45
21
|
export declare const selectAssetTypes: OvermapSelector<AssetType[]>;
|
|
46
22
|
export declare const selectAssetTypeById: OvermapSelectorWithArgs<AssetType["offline_id"], Stored<AssetType> | undefined>;
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { OfflineModel } from "./base";
|
|
1
|
+
import { OfflineModel } from "./base";
|
|
3
2
|
export interface ProjectAccess extends OfflineModel {
|
|
4
3
|
user: number;
|
|
5
4
|
project: number;
|
|
6
5
|
access_level: ProjectAccessLevel;
|
|
7
6
|
view_only: boolean;
|
|
8
7
|
}
|
|
8
|
+
export declare enum ProjectAccessLevel {
|
|
9
|
+
BASIC = 0,
|
|
10
|
+
ADMIN = 2
|
|
11
|
+
}
|
|
9
12
|
export interface OrganizationAccess extends OfflineModel {
|
|
10
13
|
user: number;
|
|
11
14
|
organization: number;
|
|
12
15
|
access_level: OrganizationAccessLevel;
|
|
13
16
|
}
|
|
17
|
+
export declare enum OrganizationAccessLevel {
|
|
18
|
+
BASIC = 0,
|
|
19
|
+
ADMIN = 2
|
|
20
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSONContent } from "@tiptap/core";
|
|
2
|
-
import
|
|
2
|
+
import { Offline, OptionalFileModel, TimestampedModel } from "./base";
|
|
3
3
|
export interface AgentProfile extends OptionalFileModel {
|
|
4
4
|
/**
|
|
5
5
|
* The name of the agent.
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export interface Asset extends OfflineModel,
|
|
1
|
+
import { ColorModel, IconModel, Model, OfflineModel } from "./base";
|
|
2
|
+
import { CanvasMarkableModel, MarkableModel } from "./geo";
|
|
3
|
+
export interface Asset extends OfflineModel, MarkableModel, CanvasMarkableModel {
|
|
4
4
|
asset_type: string;
|
|
5
5
|
created_at?: string;
|
|
6
6
|
label: string | null;
|
|
7
7
|
description?: string;
|
|
8
8
|
}
|
|
9
|
-
export interface AssetType extends OfflineModel,
|
|
9
|
+
export interface AssetType extends OfflineModel, IconModel, ColorModel {
|
|
10
10
|
project: number;
|
|
11
11
|
name?: string;
|
|
12
12
|
description?: string;
|
|
13
13
|
}
|
|
14
|
-
export interface AssetStage extends OfflineModel
|
|
14
|
+
export interface AssetStage extends OfflineModel {
|
|
15
15
|
asset_type: string;
|
|
16
|
-
name
|
|
17
|
-
description?: string
|
|
16
|
+
name: string;
|
|
17
|
+
description?: string;
|
|
18
18
|
priority: number;
|
|
19
19
|
form?: string;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type AssetStagePayload = Omit<AssetStage, "asset_type">;
|
|
22
|
+
export interface AssetStageCompletion extends Model {
|
|
22
23
|
asset: string;
|
|
23
24
|
stage: string;
|
|
24
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { CreatedByModel, OfflineModel, SubmittedAtModel } from "./base";
|
|
2
|
+
import { FileModel, FileWithNameModel, MaybeObjectURL } from "../files";
|
|
3
3
|
export interface Attachment extends OfflineModel, SubmittedAtModel, FileWithNameModel, CreatedByModel {
|
|
4
4
|
description?: string;
|
|
5
5
|
file_type: string;
|
|
@@ -19,6 +19,13 @@ export interface ProjectAttachment extends Attachment {
|
|
|
19
19
|
export interface DocumentAttachment extends Attachment {
|
|
20
20
|
document: string;
|
|
21
21
|
}
|
|
22
|
+
export declare enum AttachmentModel {
|
|
23
|
+
Issue = "issue",
|
|
24
|
+
Asset = "asset",
|
|
25
|
+
AssetType = "asset_type",
|
|
26
|
+
Project = "project",
|
|
27
|
+
Document = "document"
|
|
28
|
+
}
|
|
22
29
|
/** to get an AttachmentPayload for a specific type, pass in the given AttachmentType
|
|
23
30
|
* ex. AttachmentPayload<IssueAttachment> */
|
|
24
31
|
export type AttachmentPayload<TAttachment> = Omit<TAttachment, "file" | "submitted_at" | "created_by"> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ColorModel, CreatedByModel, IconModel, OfflineModel, Payload, SubmittedAtModel, TimestampedModel } from "./base";
|
|
2
2
|
export interface Document extends OfflineModel, SubmittedAtModel, CreatedByModel, TimestampedModel, IconModel, ColorModel {
|
|
3
3
|
title: string | null;
|
|
4
4
|
description: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { RegistrationPayload } from "./users";
|
|
2
|
+
import { OfflineModel } from "./base";
|
|
3
3
|
export type EmailVerificationPayload = undefined | RegistrationPayload | Omit<RegistrationPayload, "username" | "email">;
|
|
4
4
|
export interface EmailVerificationReturn {
|
|
5
5
|
username?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLInputTypeAttribute } from "react";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { CreatedByModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
|
|
3
|
+
import { Attachment } from "./attachments";
|
|
4
4
|
export interface BaseSerializedField<TIdentifier extends FieldTypeIdentifier = FieldTypeIdentifier> extends BaseSerializedObject<TIdentifier> {
|
|
5
5
|
label: string;
|
|
6
6
|
required: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { CreatedByModel, OfflineModel, SubmittedAtModel } from "./base";
|
|
2
|
+
import { CanvasMarkableModel, MarkableModel } from "./geo";
|
|
3
|
+
import { FileWithNameModel } from "../files";
|
|
4
4
|
export interface GeoImage extends OfflineModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel {
|
|
5
5
|
title?: string;
|
|
6
6
|
description?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ColorModel, CreatedByModel, IconModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
|
|
2
|
+
import { Organization } from "./organizations";
|
|
3
3
|
export interface IssueType extends OfflineModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
|
|
4
4
|
name?: string;
|
|
5
5
|
description?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CreatedByModel, Offline, OfflineModel, SubmittedAtModel } from "./base";
|
|
2
|
-
import
|
|
2
|
+
import { IssuePriority, IssueStatus } 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";
|
|
@@ -73,6 +73,15 @@ export interface CreatedIssueComment {
|
|
|
73
73
|
created_at: Exclude<IssueComment["created_at"], undefined>;
|
|
74
74
|
}
|
|
75
75
|
export type IssueCommentPayload = Omit<IssueComment, "author" | "created_at" | "offline_id">;
|
|
76
|
+
export declare enum IssueUpdateChange {
|
|
77
|
+
STATUS = "status",
|
|
78
|
+
PRIORITY = "priority",
|
|
79
|
+
CATEGORY = "category",
|
|
80
|
+
DESCRIPTION = "description",
|
|
81
|
+
TITLE = "title",
|
|
82
|
+
ASSIGNED_TO = "assigned_to",
|
|
83
|
+
DUE_DATE = "due_date"
|
|
84
|
+
}
|
|
76
85
|
export interface IssueUpdateChangeTypes {
|
|
77
86
|
status: IssueStatus;
|
|
78
87
|
priority: IssuePriority;
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { OfflineModel, OwnedByUserOrOrganization } from "./base";
|
|
2
|
+
export declare enum PaddleCheckoutEvent {
|
|
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
|
+
}
|
|
3
16
|
export interface Transaction {
|
|
4
17
|
id: string;
|
|
5
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Model, OfflineModel } from "./base";
|
|
2
|
+
import { FileWithNameModel } from "../files";
|
|
3
|
+
import { BoundableModel, CanvasBoundableModel } from "./geo";
|
|
4
4
|
export interface Project extends Model, BoundableModel, CanvasBoundableModel {
|
|
5
5
|
id: number;
|
|
6
6
|
name: string;
|
|
@@ -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
|
|
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";
|
|
4
4
|
export interface BaseState {
|
|
5
5
|
outboxReducer: OutboxState;
|
|
6
6
|
offline: OfflineState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { ColorModel, IconModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
|
|
2
|
+
import { Organization } from "./organizations";
|
|
3
|
+
import { User } from "./users";
|
|
4
4
|
export interface Team extends OfflineModel, SubmittedAtModel, IconModel, ColorModel {
|
|
5
5
|
name: string;
|
|
6
6
|
parent: OfflineModel["offline_id"] | null;
|
package/dist/typings/store.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { 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,5 +10,7 @@ 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>;
|
|
13
14
|
export declare const defaultBadgeColor: CSSColor;
|
|
14
15
|
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-error-message-fix.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|
package/dist/enums/access.d.ts
DELETED
package/dist/enums/licenses.d.ts
DELETED
|
@@ -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
|
-
}
|