@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.
Files changed (88) hide show
  1. package/dist/constants/index.d.ts +0 -1
  2. package/dist/enums/access.d.ts +8 -0
  3. package/dist/enums/attachments.d.ts +7 -0
  4. package/dist/enums/index.d.ts +3 -0
  5. package/dist/enums/issue.d.ts +9 -0
  6. package/dist/enums/licenses.d.ts +14 -0
  7. package/dist/overmap-core.js +1004 -1213
  8. package/dist/overmap-core.js.map +1 -1
  9. package/dist/overmap-core.umd.cjs +1013 -1221
  10. package/dist/overmap-core.umd.cjs.map +1 -1
  11. package/dist/sdk/base.d.ts +1 -1
  12. package/dist/sdk/globals.d.ts +2 -2
  13. package/dist/sdk/sdk.d.ts +3 -3
  14. package/dist/sdk/services/AgentService.d.ts +1 -1
  15. package/dist/sdk/services/AssetAttachmentService.d.ts +3 -2
  16. package/dist/sdk/services/AssetService.d.ts +6 -7
  17. package/dist/sdk/services/AssetStageCompletionService.d.ts +6 -12
  18. package/dist/sdk/services/AssetStageService.d.ts +5 -4
  19. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +3 -2
  20. package/dist/sdk/services/AssetTypeService.d.ts +4 -4
  21. package/dist/sdk/services/BaseApiService.d.ts +1 -1
  22. package/dist/sdk/services/BaseAttachmentService.d.ts +4 -3
  23. package/dist/sdk/services/BaseAuthService.d.ts +1 -1
  24. package/dist/sdk/services/BaseService.d.ts +2 -2
  25. package/dist/sdk/services/BaseUploadService.d.ts +2 -2
  26. package/dist/sdk/services/CategoryService.d.ts +5 -9
  27. package/dist/sdk/services/DocumentAttachmentService.d.ts +3 -2
  28. package/dist/sdk/services/DocumentService.d.ts +5 -5
  29. package/dist/sdk/services/EmailDomainsService.d.ts +1 -1
  30. package/dist/sdk/services/EmailVerificationService.d.ts +1 -1
  31. package/dist/sdk/services/FileService.d.ts +1 -1
  32. package/dist/sdk/services/FormService.d.ts +1 -4
  33. package/dist/sdk/services/FormSubmissionService.d.ts +3 -4
  34. package/dist/sdk/services/GeoImageService.d.ts +2 -2
  35. package/dist/sdk/services/IssueAttachmentService.d.ts +3 -2
  36. package/dist/sdk/services/IssueCommentService.d.ts +5 -5
  37. package/dist/sdk/services/IssueService.d.ts +4 -4
  38. package/dist/sdk/services/IssueTypeService.d.ts +5 -5
  39. package/dist/sdk/services/IssueUpdateService.d.ts +1 -1
  40. package/dist/sdk/services/JWTAuthService.d.ts +2 -2
  41. package/dist/sdk/services/LicenseService.d.ts +1 -1
  42. package/dist/sdk/services/OrganizationAccessService.d.ts +1 -1
  43. package/dist/sdk/services/OrganizationService.d.ts +1 -1
  44. package/dist/sdk/services/ProjectAccessService.d.ts +2 -3
  45. package/dist/sdk/services/ProjectAttachmentService.d.ts +3 -2
  46. package/dist/sdk/services/ProjectFileService.d.ts +3 -4
  47. package/dist/sdk/services/ProjectService.d.ts +2 -9
  48. package/dist/sdk/services/TeamService.d.ts +4 -4
  49. package/dist/sdk/services/UserService.d.ts +2 -2
  50. package/dist/sdk/services/WorkspaceService.d.ts +4 -6
  51. package/dist/store/slices/assetStageCompletionSlice.d.ts +41 -11
  52. package/dist/store/slices/assetStageSlice.d.ts +20 -9
  53. package/dist/store/slices/assetTypeSlice.d.ts +27 -3
  54. package/dist/store/slices/documentSlice.d.ts +3 -3
  55. package/dist/store/slices/formSlice.d.ts +2 -4
  56. package/dist/store/slices/issueCommentSlice.d.ts +2 -1
  57. package/dist/store/slices/issueSlice.d.ts +4 -20
  58. package/dist/store/slices/userSlice.d.ts +13 -33
  59. package/dist/store/slices/workspaceSlice.d.ts +11 -11
  60. package/dist/typings/models/access.d.ts +2 -9
  61. package/dist/typings/models/agents.d.ts +1 -1
  62. package/dist/typings/models/assets.d.ts +8 -9
  63. package/dist/typings/models/attachments.d.ts +2 -9
  64. package/dist/typings/models/base.d.ts +3 -3
  65. package/dist/typings/models/categories.d.ts +3 -3
  66. package/dist/typings/models/documents.d.ts +1 -2
  67. package/dist/typings/models/emailDomain.d.ts +1 -1
  68. package/dist/typings/models/emailVerification.d.ts +2 -2
  69. package/dist/typings/models/forms.d.ts +5 -13
  70. package/dist/typings/models/geoImages.d.ts +3 -3
  71. package/dist/typings/models/issueTypes.d.ts +2 -3
  72. package/dist/typings/models/issues.d.ts +9 -22
  73. package/dist/typings/models/license.d.ts +2 -15
  74. package/dist/typings/models/organizations.d.ts +1 -1
  75. package/dist/typings/models/projects.d.ts +4 -6
  76. package/dist/typings/models/store.d.ts +1 -1
  77. package/dist/typings/models/teams.d.ts +3 -4
  78. package/dist/typings/models/users.d.ts +1 -1
  79. package/dist/typings/models/workspace.d.ts +3 -3
  80. package/dist/typings/store.d.ts +1 -1
  81. package/dist/utils/colors.d.ts +0 -2
  82. package/dist/utils/index.d.ts +0 -2
  83. package/dist/utils/optimization.d.ts +0 -3
  84. package/package.json +1 -1
  85. package/dist/constants/ui.d.ts +0 -1
  86. package/dist/typings/base.d.ts +0 -0
  87. package/dist/utils/css.d.ts +0 -5
  88. package/dist/utils/search.d.ts +0 -3
@@ -1,8 +1,7 @@
1
- import { ColorModel, CreatedByModel, IconModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
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 : TModel extends Form ? SubmittedForm : Omit<TModel, "created_at" | "created_by" | "id">);
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 extends Form ? CreatedForm : 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?: IssuePriority;
33
- status?: IssueStatus;
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 SubmittedIssue, Pick<WorkspaceIndexedModel, "index"> {
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
- 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
- }
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,4 +1,4 @@
1
- import { CreatedByModel, Model } from "./base";
1
+ import type { CreatedByModel, Model } from "./base";
2
2
  export interface Organization extends Model, CreatedByModel {
3
3
  id: number;
4
4
  name: string;
@@ -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, Payload, SubmittedAtModel } from "./base";
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,4 +1,4 @@
1
- import { OptionalFileModel } from "./base";
1
+ import type { OptionalFileModel } from "./base";
2
2
  export interface Profile extends OptionalFileModel {
3
3
  favourite_project_ids: number[];
4
4
  tour_step: number;
@@ -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 | null;
10
+ index_workspace: string;
11
11
  }
@@ -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>;
@@ -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;
@@ -1,9 +1,7 @@
1
1
  export * from "./coordinates";
2
- export * from "./css";
3
2
  export * from "./file";
4
3
  export * from "./logging";
5
4
  export * from "./offline";
6
- export * from "./search";
7
5
  export * from "./string";
8
6
  export * from "./utils";
9
7
  export * from "./optimization";
@@ -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
@@ -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.67-fix-agent-service.0",
7
7
  "type": "module",
8
8
  "main": "dist/overmap-core.umd.cjs",
9
9
  "module": "dist/overmap-core.js",
@@ -1 +0,0 @@
1
- export declare const fullAssetMarkerSize = 45;
File without changes
@@ -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;
@@ -1,3 +0,0 @@
1
- import { SearchResult, Stored } from "../typings";
2
- import { Issue } from "../typings";
3
- export declare const issueToSearchResult: (issue: Stored<Issue>, tag: string | null) => SearchResult<Stored<Issue>>;