@overmap-ai/core 1.0.65 → 1.0.67-fix-agent-service.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/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 +1004 -1213
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +1013 -1221
- 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/AssetService.d.ts +6 -7
- package/dist/sdk/services/AssetStageCompletionService.d.ts +6 -12
- package/dist/sdk/services/AssetStageService.d.ts +5 -4
- 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 +4 -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 +5 -9
- package/dist/sdk/services/DocumentAttachmentService.d.ts +3 -2
- package/dist/sdk/services/DocumentService.d.ts +5 -5
- 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 +1 -4
- package/dist/sdk/services/FormSubmissionService.d.ts +3 -4
- 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 +5 -5
- package/dist/sdk/services/IssueService.d.ts +4 -4
- package/dist/sdk/services/IssueTypeService.d.ts +5 -5
- 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 +2 -3
- package/dist/sdk/services/ProjectAttachmentService.d.ts +3 -2
- package/dist/sdk/services/ProjectFileService.d.ts +3 -4
- package/dist/sdk/services/ProjectService.d.ts +2 -9
- package/dist/sdk/services/TeamService.d.ts +4 -4
- package/dist/sdk/services/UserService.d.ts +2 -2
- package/dist/sdk/services/WorkspaceService.d.ts +4 -6
- package/dist/store/slices/assetStageCompletionSlice.d.ts +41 -11
- package/dist/store/slices/assetStageSlice.d.ts +20 -9
- package/dist/store/slices/assetTypeSlice.d.ts +27 -3
- package/dist/store/slices/documentSlice.d.ts +3 -3
- package/dist/store/slices/formSlice.d.ts +2 -4
- package/dist/store/slices/issueCommentSlice.d.ts +2 -1
- package/dist/store/slices/issueSlice.d.ts +4 -20
- package/dist/store/slices/userSlice.d.ts +13 -33
- package/dist/store/slices/workspaceSlice.d.ts +11 -11
- 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 +8 -9
- package/dist/typings/models/attachments.d.ts +2 -9
- package/dist/typings/models/base.d.ts +3 -3
- package/dist/typings/models/categories.d.ts +3 -3
- package/dist/typings/models/documents.d.ts +1 -2
- 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 +5 -13
- package/dist/typings/models/geoImages.d.ts +3 -3
- package/dist/typings/models/issueTypes.d.ts +2 -3
- package/dist/typings/models/issues.d.ts +9 -22
- package/dist/typings/models/license.d.ts +2 -15
- package/dist/typings/models/organizations.d.ts +1 -1
- package/dist/typings/models/projects.d.ts +4 -6
- package/dist/typings/models/store.d.ts +1 -1
- package/dist/typings/models/teams.d.ts +3 -4
- 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/dist/utils/index.d.ts +0 -2
- package/dist/utils/optimization.d.ts +0 -3
- package/package.json +1 -1
- package/dist/constants/ui.d.ts +0 -1
- package/dist/typings/base.d.ts +0 -0
- package/dist/utils/css.d.ts +0 -5
- package/dist/utils/search.d.ts +0 -3
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ColorModel, CreatedByModel, IconModel, OfflineModel,
|
|
2
|
-
import { Organization } from "./organizations";
|
|
1
|
+
import type { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel } from "./base";
|
|
2
|
+
import type { Organization } from "./organizations";
|
|
3
3
|
export interface IssueType extends OfflineModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
|
|
4
4
|
name?: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
organization: Organization["id"];
|
|
7
7
|
}
|
|
8
|
-
export type IssueTypePayload = Payload<Omit<IssueType, "created_by" | "submitted_at" | "organization">>;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import type { CreatedByModel, Offline, OfflineModel, SubmittedAtModel } from "./base";
|
|
2
|
-
import { IssuePriority, IssueStatus } from "../../enums";
|
|
1
|
+
import type { CreatedByModel, Offline, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
|
|
2
|
+
import type { IssuePriority, IssueStatus, IssueUpdateChange } from "../../enums";
|
|
3
3
|
import type { WorkspaceIndexedModel } from "./workspace";
|
|
4
4
|
import type { CanvasMarkableModel, MarkableModel } from "./geo";
|
|
5
|
-
import type { CreatedForm, Form, SubmittedForm } from "./forms";
|
|
6
5
|
import type { User } from "./users";
|
|
7
6
|
import type { CSSColor } from "../colors";
|
|
8
7
|
/**
|
|
9
8
|
* Represents a model instance that has been submitted to the backend. Some properties (depending on which model, but in
|
|
10
9
|
* all cases, the `offline_id`) are guaranteed to be set.
|
|
11
10
|
*/
|
|
12
|
-
export type Submitted<TModel> = Offline<TModel> & (TModel extends Issue ? SubmittedIssue :
|
|
11
|
+
export type Submitted<TModel> = Offline<TModel> & (TModel extends Issue ? SubmittedIssue : Omit<TModel, "created_at" | "id">);
|
|
13
12
|
/**
|
|
14
13
|
* Represents a model instance that has been submitted to the backend, accepted, then downloaded. Created models
|
|
15
14
|
* typically have additional properties that are only known once it has been processed and accepted by the API, such as
|
|
16
15
|
* the `created_at` timestamp, which is the time at which the data was written to the database.
|
|
17
16
|
*/
|
|
18
|
-
export type Created<TModel> = Submitted<TModel> & (TModel extends Issue ? CreatedIssue : TModel extends IssueComment ? CreatedIssueComment : TModel
|
|
17
|
+
export type Created<TModel> = Submitted<TModel> & (TModel extends Issue ? CreatedIssue : TModel extends IssueComment ? CreatedIssueComment : TModel);
|
|
19
18
|
/**
|
|
20
19
|
* Model instances that are stored in the Redux store can be already-created (and will likely be gotten with the initial
|
|
21
20
|
* data load), or to-be-created. In the former case, you will get a `Created<TModel>`. In the latter case, you will get
|
|
@@ -26,15 +25,14 @@ export type Stored<TModel> = Created<TModel> | Submitted<TModel>;
|
|
|
26
25
|
* Represents the properties you can always expect on any object representing an issue. These are the minimal details
|
|
27
26
|
* required when creating an issue.
|
|
28
27
|
*/
|
|
29
|
-
export interface Issue extends Pick<WorkspaceIndexedModel, "index_workspace">, MarkableModel, CanvasMarkableModel {
|
|
28
|
+
export interface Issue extends OfflineModel, SubmittedAtModel, CreatedByModel, Pick<WorkspaceIndexedModel, "index_workspace">, MarkableModel, CanvasMarkableModel {
|
|
30
29
|
title?: string | null;
|
|
31
30
|
description?: string | null;
|
|
32
|
-
priority
|
|
33
|
-
status
|
|
31
|
+
priority: IssuePriority;
|
|
32
|
+
status: IssueStatus;
|
|
34
33
|
assigned_to?: number | null;
|
|
35
34
|
due_date?: string | Date | null;
|
|
36
35
|
category?: string | null;
|
|
37
|
-
visible_in_workspaces: string[];
|
|
38
36
|
issue_type?: string | null;
|
|
39
37
|
}
|
|
40
38
|
/**
|
|
@@ -49,7 +47,7 @@ export interface SubmittedIssue extends OfflineModel, CreatedByModel {
|
|
|
49
47
|
* These details exist on issues that have been successfully submitted, accepted, created, and serialized by the
|
|
50
48
|
* backend, then downloaded by the frontend.
|
|
51
49
|
*/
|
|
52
|
-
export interface CreatedIssue extends
|
|
50
|
+
export interface CreatedIssue extends Issue, Pick<WorkspaceIndexedModel, "index"> {
|
|
53
51
|
title: Exclude<Issue["title"], undefined>;
|
|
54
52
|
description: Exclude<Issue["description"], undefined>;
|
|
55
53
|
assigned_to: Exclude<Issue["assigned_to"], undefined>;
|
|
@@ -58,12 +56,10 @@ export interface CreatedIssue extends SubmittedIssue, Pick<WorkspaceIndexedModel
|
|
|
58
56
|
geo_marker: Exclude<Issue["geo_marker"], undefined>;
|
|
59
57
|
created_at: string;
|
|
60
58
|
}
|
|
61
|
-
export interface IssueComment extends OfflineModel {
|
|
59
|
+
export interface IssueComment extends OfflineModel, SubmittedAtModel, TimestampedModel {
|
|
62
60
|
issue: string;
|
|
63
61
|
content: string;
|
|
64
62
|
author?: number;
|
|
65
|
-
created_at?: string;
|
|
66
|
-
submitted_at: string;
|
|
67
63
|
}
|
|
68
64
|
export interface SubmittedIssueComment {
|
|
69
65
|
created_at: Exclude<IssueComment["created_at"], undefined>;
|
|
@@ -73,15 +69,6 @@ export interface CreatedIssueComment {
|
|
|
73
69
|
created_at: Exclude<IssueComment["created_at"], undefined>;
|
|
74
70
|
}
|
|
75
71
|
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
|
-
}
|
|
85
72
|
export interface IssueUpdateChangeTypes {
|
|
86
73
|
status: IssueStatus;
|
|
87
74
|
priority: IssuePriority;
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
import { OfflineModel, OwnedByUserOrOrganization } from "./base";
|
|
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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Model, OfflineModel } from "./base";
|
|
2
|
-
import { FileWithNameModel } from "../files";
|
|
3
|
-
import { BoundableModel, CanvasBoundableModel } from "./geo";
|
|
1
|
+
import type { Model, OfflineModel, SubmittedAtModel } from "./base";
|
|
2
|
+
import type { FileWithNameModel } from "../files";
|
|
3
|
+
import type { BoundableModel, CanvasBoundableModel } from "./geo";
|
|
4
4
|
export interface Project extends Model, BoundableModel, CanvasBoundableModel {
|
|
5
5
|
id: number;
|
|
6
6
|
name: string;
|
|
@@ -10,9 +10,7 @@ export interface Project extends Model, BoundableModel, CanvasBoundableModel {
|
|
|
10
10
|
issues_count?: number;
|
|
11
11
|
form_submissions_count?: number;
|
|
12
12
|
}
|
|
13
|
-
export interface ProjectFile extends OfflineModel, FileWithNameModel, BoundableModel, CanvasBoundableModel {
|
|
14
|
-
submitted_at: string;
|
|
13
|
+
export interface ProjectFile extends OfflineModel, SubmittedAtModel, FileWithNameModel, BoundableModel, CanvasBoundableModel {
|
|
15
14
|
z_index: number;
|
|
16
15
|
project: number;
|
|
17
16
|
}
|
|
18
|
-
export type ProjectPayload = Omit<Project, "id" | "file" | "fileBlob">;
|
|
@@ -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, 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,10 +1,9 @@
|
|
|
1
|
-
import { ColorModel, IconModel, OfflineModel,
|
|
2
|
-
import { Organization } from "./organizations";
|
|
3
|
-
import { User } from "./users";
|
|
1
|
+
import type { ColorModel, IconModel, OfflineModel, 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;
|
|
7
7
|
organization: Organization["id"];
|
|
8
8
|
members: User["id"][];
|
|
9
9
|
}
|
|
10
|
-
export type TeamPayload = Omit<Payload<Team>, "organization" | "submitted_at">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Model, OfflineModel } from "./base";
|
|
2
|
-
export interface Workspace extends OfflineModel {
|
|
1
|
+
import type { CreatedByModel, Model, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
|
|
2
|
+
export interface Workspace extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
3
3
|
name: string;
|
|
4
4
|
project: number;
|
|
5
5
|
abbreviation: string | null;
|
|
@@ -7,5 +7,5 @@ export interface Workspace extends OfflineModel {
|
|
|
7
7
|
}
|
|
8
8
|
export interface WorkspaceIndexedModel extends Model {
|
|
9
9
|
index: number | null;
|
|
10
|
-
index_workspace: string
|
|
10
|
+
index_workspace: string;
|
|
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/dist/utils/index.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
export declare function shallowEqual(objA: Record<string, unknown>, objB: Record<string, unknown>): boolean;
|
|
2
2
|
export declare function memoize<T extends (...args: never[]) => unknown>(func: T): T;
|
|
3
|
-
export type EqualityChecker<TArgs> = (current: TArgs, previous: TArgs) => boolean;
|
|
4
|
-
export declare function useMemoCompare<TValue>(next: TValue | undefined, compare: (prev: TValue | undefined, next: TValue | undefined) => boolean): TValue | undefined;
|
|
5
3
|
/**
|
|
6
4
|
* Performs an equality check by contents in order.
|
|
7
5
|
* Reference types like objects and arrays are compared by reference.
|
|
8
6
|
*/
|
|
9
7
|
export declare function areArraysEqual(first: unknown[], second: unknown[]): boolean;
|
|
10
|
-
export declare const genericMemo: <T>(component: T) => T;
|
|
11
8
|
export declare const fallbackToEmptyArray: <T>(array: T[]) => T[];
|
package/package.json
CHANGED
package/dist/constants/ui.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const fullAssetMarkerSize = 45;
|
package/dist/typings/base.d.ts
DELETED
|
File without changes
|
package/dist/utils/css.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Combines multiple class names into a single string. Keys are class names and values are booleans.
|
|
3
|
-
* If the value is true, the key is added to the string.
|
|
4
|
-
*/
|
|
5
|
-
export declare function classNames(...args: (object | string | undefined | null | number)[]): string;
|
package/dist/utils/search.d.ts
DELETED