@overmap-ai/core 1.0.65-asset-models-improvements.3 → 1.0.65-current-user-cleaup.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 (76) hide show
  1. package/dist/enums/index.d.ts +0 -3
  2. package/dist/enums/issue.d.ts +0 -9
  3. package/dist/overmap-core.js +456 -585
  4. package/dist/overmap-core.js.map +1 -1
  5. package/dist/overmap-core.umd.cjs +453 -582
  6. package/dist/overmap-core.umd.cjs.map +1 -1
  7. package/dist/sdk/base.d.ts +1 -1
  8. package/dist/sdk/globals.d.ts +2 -2
  9. package/dist/sdk/sdk.d.ts +3 -3
  10. package/dist/sdk/services/AgentService.d.ts +1 -1
  11. package/dist/sdk/services/AssetAttachmentService.d.ts +2 -3
  12. package/dist/sdk/services/AssetService.d.ts +6 -5
  13. package/dist/sdk/services/AssetStageCompletionService.d.ts +12 -6
  14. package/dist/sdk/services/AssetStageService.d.ts +4 -5
  15. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +2 -3
  16. package/dist/sdk/services/AssetTypeService.d.ts +4 -4
  17. package/dist/sdk/services/BaseApiService.d.ts +1 -1
  18. package/dist/sdk/services/BaseAttachmentService.d.ts +2 -3
  19. package/dist/sdk/services/BaseAuthService.d.ts +1 -1
  20. package/dist/sdk/services/BaseService.d.ts +2 -2
  21. package/dist/sdk/services/BaseUploadService.d.ts +2 -2
  22. package/dist/sdk/services/CategoryService.d.ts +2 -2
  23. package/dist/sdk/services/DocumentAttachmentService.d.ts +2 -3
  24. package/dist/sdk/services/DocumentService.d.ts +2 -2
  25. package/dist/sdk/services/EmailDomainsService.d.ts +1 -1
  26. package/dist/sdk/services/EmailVerificationService.d.ts +1 -1
  27. package/dist/sdk/services/FileService.d.ts +1 -1
  28. package/dist/sdk/services/FormService.d.ts +2 -1
  29. package/dist/sdk/services/FormSubmissionService.d.ts +3 -2
  30. package/dist/sdk/services/GeoImageService.d.ts +2 -2
  31. package/dist/sdk/services/IssueAttachmentService.d.ts +2 -3
  32. package/dist/sdk/services/IssueCommentService.d.ts +2 -2
  33. package/dist/sdk/services/IssueService.d.ts +2 -2
  34. package/dist/sdk/services/IssueTypeService.d.ts +2 -2
  35. package/dist/sdk/services/IssueUpdateService.d.ts +1 -1
  36. package/dist/sdk/services/JWTAuthService.d.ts +2 -2
  37. package/dist/sdk/services/LicenseService.d.ts +1 -1
  38. package/dist/sdk/services/OrganizationAccessService.d.ts +1 -1
  39. package/dist/sdk/services/OrganizationService.d.ts +1 -1
  40. package/dist/sdk/services/ProjectAccessService.d.ts +1 -1
  41. package/dist/sdk/services/ProjectAttachmentService.d.ts +2 -3
  42. package/dist/sdk/services/ProjectFileService.d.ts +3 -2
  43. package/dist/sdk/services/ProjectService.d.ts +2 -1
  44. package/dist/sdk/services/TeamService.d.ts +2 -2
  45. package/dist/sdk/services/UserService.d.ts +2 -2
  46. package/dist/sdk/services/WorkspaceService.d.ts +4 -2
  47. package/dist/store/slices/assetStageCompletionSlice.d.ts +11 -41
  48. package/dist/store/slices/assetStageSlice.d.ts +9 -20
  49. package/dist/store/slices/assetTypeSlice.d.ts +3 -27
  50. package/dist/store/slices/userSlice.d.ts +13 -33
  51. package/dist/typings/models/access.d.ts +9 -2
  52. package/dist/typings/models/agents.d.ts +1 -1
  53. package/dist/typings/models/assets.d.ts +9 -8
  54. package/dist/typings/models/attachments.d.ts +9 -2
  55. package/dist/typings/models/base.d.ts +2 -2
  56. package/dist/typings/models/categories.d.ts +2 -2
  57. package/dist/typings/models/documents.d.ts +1 -1
  58. package/dist/typings/models/emailDomain.d.ts +1 -1
  59. package/dist/typings/models/emailVerification.d.ts +2 -2
  60. package/dist/typings/models/forms.d.ts +2 -2
  61. package/dist/typings/models/geoImages.d.ts +3 -3
  62. package/dist/typings/models/issueTypes.d.ts +2 -2
  63. package/dist/typings/models/issues.d.ts +10 -1
  64. package/dist/typings/models/license.d.ts +15 -2
  65. package/dist/typings/models/organizations.d.ts +1 -1
  66. package/dist/typings/models/projects.d.ts +3 -3
  67. package/dist/typings/models/store.d.ts +1 -1
  68. package/dist/typings/models/teams.d.ts +3 -3
  69. package/dist/typings/models/users.d.ts +1 -1
  70. package/dist/typings/models/workspace.d.ts +1 -1
  71. package/dist/typings/store.d.ts +1 -1
  72. package/dist/utils/colors.d.ts +2 -0
  73. package/package.json +1 -1
  74. package/dist/enums/access.d.ts +0 -8
  75. package/dist/enums/attachments.d.ts +0 -7
  76. 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
- setAssetType: <TState_1 extends ModelState<Stored<AssetType>>>(state: TState_1, action: {
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
- setAssetTypes: <TState_2 extends ModelState<Stored<AssetType>>>(state: TState_2, action: {
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 initializeAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/initializeAssetTypes">, setAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>, "assetTypes/setAssetType">, setAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/setAssetTypes">, addAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>, "assetTypes/addAssetType">, addAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/addAssetTypes">, updateAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>, "assetTypes/updateAssetType">, updateAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/updateAssetTypes">, deleteAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetTypes/deleteAssetType">, deleteAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assetTypes/deleteAssetTypes">;
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,45 +1,25 @@
1
- import { Reducer } from "@reduxjs/toolkit";
1
+ import { PayloadAction, Reducer } from "@reduxjs/toolkit";
2
2
  import type { OvermapRootState, OvermapSelectorWithArgs, User } from "../../typings";
3
3
  export interface UserState {
4
- currentUser: User;
4
+ currentUser: User | null;
5
5
  users: Record<number, User>;
6
6
  }
7
7
  export declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
8
- setUsers: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: {
9
- payload: User[];
10
- }) => void;
11
- addUsers: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: {
12
- payload: User[];
13
- }) => void;
14
- setCurrentUser: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: {
15
- payload: User;
16
- }) => void;
17
- setProfilePicture: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: {
18
- payload: {
19
- file?: string;
20
- file_sha1?: string;
21
- };
22
- }) => void;
23
- addFavouriteProjectId: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: {
24
- payload: number;
25
- }) => void;
26
- removeFavouriteProjectId: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: {
27
- payload: number;
28
- }) => void;
29
- setTourStep: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: {
30
- payload: number;
31
- }) => void;
32
- removeUser: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: {
33
- payload: number;
34
- }) => void;
8
+ setUsers: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: PayloadAction<User[]>) => void;
9
+ addUsers: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: PayloadAction<User[]>) => void;
10
+ setCurrentUser: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: PayloadAction<User | null>) => void;
11
+ setProfilePicture: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: PayloadAction<{
12
+ file?: string;
13
+ file_sha1?: string;
14
+ }>) => void;
15
+ removeUser: (state: import("immer/dist/internal.js").WritableDraft<UserState>, action: PayloadAction<number>) => void;
35
16
  }, "users">;
36
- export declare const setCurrentUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<User, "users/setCurrentUser">, setProfilePicture: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
17
+ export declare const setCurrentUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<User | null, "users/setCurrentUser">, setProfilePicture: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
37
18
  file?: string | undefined;
38
19
  file_sha1?: string | undefined;
39
- }, "users/setProfilePicture">, setUsers: import("@reduxjs/toolkit").ActionCreatorWithPayload<User[], "users/setUsers">, addUsers: import("@reduxjs/toolkit").ActionCreatorWithPayload<User[], "users/addUsers">, addFavouriteProjectId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "users/addFavouriteProjectId">, removeFavouriteProjectId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "users/removeFavouriteProjectId">, setTourStep: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "users/setTourStep">, removeUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "users/removeUser">;
20
+ }, "users/setProfilePicture">, setUsers: import("@reduxjs/toolkit").ActionCreatorWithPayload<User[], "users/setUsers">, addUsers: import("@reduxjs/toolkit").ActionCreatorWithPayload<User[], "users/addUsers">, removeUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "users/removeUser">;
40
21
  export declare const userReducer: Reducer<UserState>;
41
- export declare const selectCurrentUser: (state: OvermapRootState) => User;
22
+ export declare const selectCurrentUser: (state: OvermapRootState) => User | null;
42
23
  export declare const selectUsersMapping: (state: OvermapRootState) => Record<number, User>;
43
24
  export declare const selectUserById: OvermapSelectorWithArgs<number, User | undefined>;
44
25
  export declare const selectUsersByIds: (args: number[]) => (state: OvermapRootState) => User[];
45
- export declare const selectFavouriteProjects: (state: OvermapRootState) => number[];
@@ -1,13 +1,20 @@
1
- import type { OrganizationAccessLevel, ProjectAccessLevel } from '../../enums';
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 type { Offline, OptionalFileModel, TimestampedModel } from "./base";
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 type { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
2
- import type { CanvasMarkableModel, MarkableModel } from "./geo";
3
- export interface Asset extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel {
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, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel {
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, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel {
14
+ export interface AssetStage extends OfflineModel {
15
15
  asset_type: string;
16
- name?: string | null;
17
- description?: string | null;
16
+ name: string;
17
+ description?: string;
18
18
  priority: number;
19
19
  form?: string;
20
20
  }
21
- export interface AssetStageCompletion extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
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 type { CreatedByModel, OfflineModel, SubmittedAtModel } from "./base";
2
- import type { FileModel, FileWithNameModel, MaybeObjectURL } from "../files";
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,5 +1,5 @@
1
- import type { CSSColor } from "../colors";
2
- import type { User } from "./users";
1
+ import { CSSColor } from "../colors";
2
+ import { User } from "./users";
3
3
  export interface Model {
4
4
  }
5
5
  export interface OfflineModel extends Model {
@@ -1,5 +1,5 @@
1
- import type { OfflineModel } from "./base";
2
- import type { CSSColor } from "../colors";
1
+ import { OfflineModel } from "./base";
2
+ import { CSSColor } from "../colors";
3
3
  export interface Category extends OfflineModel {
4
4
  name: string;
5
5
  description?: string;
@@ -1,4 +1,4 @@
1
- import type { ColorModel, CreatedByModel, IconModel, OfflineModel, Payload, SubmittedAtModel, TimestampedModel } from "./base";
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,4 +1,4 @@
1
- import type { OfflineModel } from "./base";
1
+ import { OfflineModel } from "./base";
2
2
  export interface EmailDomain extends OfflineModel {
3
3
  domain: string;
4
4
  organization: number;
@@ -1,5 +1,5 @@
1
- import type { RegistrationPayload } from "./users";
2
- import type { OfflineModel } from "./base";
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 type { CreatedByModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
3
- import type { Attachment } from "./attachments";
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 type { CreatedByModel, OfflineModel, SubmittedAtModel } from "./base";
2
- import type { CanvasMarkableModel, MarkableModel } from "./geo";
3
- import type { FileWithNameModel } from "../files";
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 type { ColorModel, CreatedByModel, IconModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
2
- import type { Organization } from "./organizations";
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 type { IssuePriority, IssueStatus, IssueUpdateChange } from "../../enums";
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 type { OfflineModel, OwnedByUserOrOrganization } from "./base";
2
- import type { LicenseLevel, LicenseStatus } from "../../enums";
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,4 +1,4 @@
1
- import type { CreatedByModel, Model } from "./base";
1
+ import { 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 type { Model, OfflineModel } from "./base";
2
- import type { FileWithNameModel } from "../files";
3
- import type { BoundableModel, CanvasBoundableModel } from "./geo";
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 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";
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 type { ColorModel, IconModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
2
- import type { Organization } from "./organizations";
3
- import type { User } from "./users";
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;
@@ -1,4 +1,4 @@
1
- import type { OptionalFileModel } from "./base";
1
+ import { OptionalFileModel } from "./base";
2
2
  export interface Profile extends OptionalFileModel {
3
3
  favourite_project_ids: number[];
4
4
  tour_step: number;
@@ -1,4 +1,4 @@
1
- import type { Model, OfflineModel } from "./base";
1
+ import { Model, OfflineModel } from "./base";
2
2
  export interface Workspace extends OfflineModel {
3
3
  name: string;
4
4
  project: number;
@@ -1,4 +1,4 @@
1
- import type { OvermapRootState } from "./models";
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>;
@@ -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-asset-models-improvements.3",
6
+ "version": "1.0.65-current-user-cleaup.0",
7
7
  "type": "module",
8
8
  "main": "dist/overmap-core.umd.cjs",
9
9
  "module": "dist/overmap-core.js",
@@ -1,8 +0,0 @@
1
- export declare enum ProjectAccessLevel {
2
- BASIC = 0,
3
- ADMIN = 2
4
- }
5
- export declare enum OrganizationAccessLevel {
6
- BASIC = 0,
7
- ADMIN = 2
8
- }
@@ -1,7 +0,0 @@
1
- export declare enum AttachmentModel {
2
- Issue = "issue",
3
- Asset = "asset",
4
- AssetType = "asset_type",
5
- Project = "project",
6
- Document = "document"
7
- }
@@ -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
- }