@overmap-ai/core 1.0.65-asset-models-improvements.2 → 1.0.65-asset-models-improvements.3

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 (72) hide show
  1. package/dist/enums/access.d.ts +8 -0
  2. package/dist/enums/attachments.d.ts +7 -0
  3. package/dist/enums/index.d.ts +3 -0
  4. package/dist/enums/issue.d.ts +9 -0
  5. package/dist/enums/licenses.d.ts +14 -0
  6. package/dist/overmap-core.js +183 -211
  7. package/dist/overmap-core.js.map +1 -1
  8. package/dist/overmap-core.umd.cjs +180 -208
  9. package/dist/overmap-core.umd.cjs.map +1 -1
  10. package/dist/sdk/base.d.ts +1 -1
  11. package/dist/sdk/globals.d.ts +2 -2
  12. package/dist/sdk/sdk.d.ts +3 -3
  13. package/dist/sdk/services/AgentService.d.ts +1 -1
  14. package/dist/sdk/services/AssetAttachmentService.d.ts +3 -2
  15. package/dist/sdk/services/AssetService.d.ts +2 -2
  16. package/dist/sdk/services/AssetStageCompletionService.d.ts +2 -2
  17. package/dist/sdk/services/AssetStageService.d.ts +1 -1
  18. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +3 -2
  19. package/dist/sdk/services/AssetTypeService.d.ts +2 -2
  20. package/dist/sdk/services/BaseApiService.d.ts +1 -1
  21. package/dist/sdk/services/BaseAttachmentService.d.ts +3 -2
  22. package/dist/sdk/services/BaseAuthService.d.ts +1 -1
  23. package/dist/sdk/services/BaseService.d.ts +2 -2
  24. package/dist/sdk/services/BaseUploadService.d.ts +2 -2
  25. package/dist/sdk/services/CategoryService.d.ts +2 -2
  26. package/dist/sdk/services/DocumentAttachmentService.d.ts +3 -2
  27. package/dist/sdk/services/DocumentService.d.ts +2 -2
  28. package/dist/sdk/services/EmailDomainsService.d.ts +1 -1
  29. package/dist/sdk/services/EmailVerificationService.d.ts +1 -1
  30. package/dist/sdk/services/FileService.d.ts +1 -1
  31. package/dist/sdk/services/FormService.d.ts +1 -2
  32. package/dist/sdk/services/FormSubmissionService.d.ts +2 -3
  33. package/dist/sdk/services/GeoImageService.d.ts +2 -2
  34. package/dist/sdk/services/IssueAttachmentService.d.ts +3 -2
  35. package/dist/sdk/services/IssueCommentService.d.ts +2 -2
  36. package/dist/sdk/services/IssueService.d.ts +2 -2
  37. package/dist/sdk/services/IssueTypeService.d.ts +2 -2
  38. package/dist/sdk/services/IssueUpdateService.d.ts +1 -1
  39. package/dist/sdk/services/JWTAuthService.d.ts +2 -2
  40. package/dist/sdk/services/LicenseService.d.ts +1 -1
  41. package/dist/sdk/services/OrganizationAccessService.d.ts +1 -1
  42. package/dist/sdk/services/OrganizationService.d.ts +1 -1
  43. package/dist/sdk/services/ProjectAccessService.d.ts +1 -1
  44. package/dist/sdk/services/ProjectAttachmentService.d.ts +3 -2
  45. package/dist/sdk/services/ProjectFileService.d.ts +2 -3
  46. package/dist/sdk/services/ProjectService.d.ts +1 -2
  47. package/dist/sdk/services/TeamService.d.ts +2 -2
  48. package/dist/sdk/services/UserService.d.ts +2 -2
  49. package/dist/sdk/services/WorkspaceService.d.ts +2 -4
  50. package/dist/store/slices/assetStageSlice.d.ts +0 -1
  51. package/dist/typings/models/access.d.ts +2 -9
  52. package/dist/typings/models/agents.d.ts +1 -1
  53. package/dist/typings/models/assets.d.ts +2 -2
  54. package/dist/typings/models/attachments.d.ts +2 -9
  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 +1 -10
  64. package/dist/typings/models/license.d.ts +2 -15
  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/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { FileService } from "./services";
2
2
  import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
3
3
  import { SDKRequest } from "./typings";
4
- import { BaseState } from "../typings";
4
+ import type { BaseState } from "../typings";
5
5
  export declare abstract class BaseSDK<TState extends BaseState> {
6
6
  readonly store: ToolkitStore<TState>;
7
7
  abstract readonly files: FileService<TState, BaseSDK<TState>>;
@@ -1,6 +1,6 @@
1
1
  import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
2
- import { BaseState } from "../typings";
3
- import { BaseSDK } from "./base";
2
+ import type { BaseState } from "../typings";
3
+ import type { BaseSDK } from "./base";
4
4
  export declare function setClientStore<TState extends BaseState>(store: ToolkitStore<TState>): void;
5
5
  export declare function getClientStore(): ToolkitStore<BaseState> | undefined;
6
6
  export declare function setClientSDK<TState extends BaseState>(sdkCtor: BaseSDK<TState>): void;
package/dist/sdk/sdk.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { BaseSDK } from "./base";
1
+ import type { BaseSDK } from "./base";
2
2
  import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
3
- import { BaseState } from "../typings";
4
- import { OvermapSDKConstructor } from "./typings";
3
+ import type { BaseState } from "../typings";
4
+ import type { OvermapSDKConstructor } from "./typings";
5
5
  export declare const initSDK: <TState extends BaseState, TSDK extends BaseSDK<TState>>(store: ToolkitStore<TState>, sdk: OvermapSDKConstructor<TState, TSDK>) => TSDK;
@@ -1,4 +1,4 @@
1
- import { AgentUserConversation, OvermapRootState } from "../../typings";
1
+ import type { AgentUserConversation, OvermapRootState } from "../../typings";
2
2
  import { BaseApiService } from "./BaseApiService";
3
3
  import type { BaseSDK } from "../base";
4
4
  export declare abstract class AgentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -1,7 +1,8 @@
1
1
  import { BaseAttachmentService } from "./BaseAttachmentService";
2
- import { AttachmentModel, AssetAttachment, Stored, OvermapRootState } from "../../typings";
3
- import { OptimisticMultipleModelResult } from "../typings";
2
+ import type { AssetAttachment, Stored, OvermapRootState } from "../../typings";
3
+ import type { OptimisticMultipleModelResult } from "../typings";
4
4
  import type { BaseSDK } from "../base";
5
+ import { AttachmentModel } from "../../enums";
5
6
  export declare abstract class AssetAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, AssetAttachment> {
6
7
  attachmentModel: AttachmentModel;
7
8
  initializeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/initializeAssetAttachments">;
@@ -1,5 +1,5 @@
1
- import { Asset, Created, Offline, OvermapRootState, Payload } from "../../typings";
2
- import { OptimisticModelResult } from "../typings";
1
+ import type { Asset, Created, Offline, OvermapRootState, Payload } from "../../typings";
2
+ import type { OptimisticModelResult } from "../typings";
3
3
  import { BaseApiService } from "./BaseApiService";
4
4
  import type { BaseSDK } from "../base";
5
5
  export declare abstract class AssetService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -1,5 +1,5 @@
1
- import { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
2
- import { AssetStageCompletion, OvermapRootState, Payload } from "../../typings";
1
+ import type { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
2
+ import type { AssetStageCompletion, OvermapRootState, Payload } from "../../typings";
3
3
  import { BaseApiService } from "./BaseApiService";
4
4
  import type { BaseSDK } from "../base";
5
5
  export declare abstract class AssetStageCompletionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -1,4 +1,4 @@
1
- import { AssetStage, Offline, OvermapRootState, Payload } from "../../typings";
1
+ import type { AssetStage, Offline, OvermapRootState, Payload } from "../../typings";
2
2
  import { BaseApiService } from "./BaseApiService";
3
3
  import type { BaseSDK } from "../base";
4
4
  import { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
@@ -1,7 +1,8 @@
1
1
  import { BaseAttachmentService } from "./BaseAttachmentService";
2
- import { AttachmentModel, AssetTypeAttachment, Stored, OvermapRootState } from "../../typings";
3
- import { OptimisticMultipleModelResult } from "../typings";
2
+ import type { AssetTypeAttachment, Stored, OvermapRootState } from "../../typings";
3
+ import type { OptimisticMultipleModelResult } from "../typings";
4
4
  import type { BaseSDK } from "../base";
5
+ import { AttachmentModel } from "../../enums";
5
6
  export declare abstract class AssetTypeAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, AssetTypeAttachment> {
6
7
  attachmentModel: AttachmentModel;
7
8
  initializeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/initializeAssetTypeAttachments">;
@@ -1,5 +1,5 @@
1
- import { AssetType, Offline, OvermapRootState, Payload } from "../../typings";
2
- import { OptimisticModelResult } from "../typings";
1
+ import type { AssetType, Offline, OvermapRootState, Payload } from "../../typings";
2
+ import type { OptimisticModelResult } from "../typings";
3
3
  import { BaseApiService } from "./BaseApiService";
4
4
  import type { BaseSDK } from "../base";
5
5
  export declare abstract class AssetTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -1,5 +1,5 @@
1
1
  import type { BaseSDK } from "../base";
2
- import { BaseState } from "../../typings";
2
+ import type { BaseState } from "../../typings";
3
3
  import { BaseAuthService } from "./BaseAuthService";
4
4
  import { BaseService } from "./BaseService";
5
5
  /**
@@ -1,6 +1,7 @@
1
1
  import { ActionCreatorWithPayload } from "@reduxjs/toolkit";
2
- import { OptimisticMultipleModelResult } from "../typings";
3
- import { Attachment, AttachmentModel, OfflineModel, OvermapRootState, OvermapSelectorWithArgs, Stored, Submitted } from "../../typings";
2
+ import type { OptimisticMultipleModelResult } from "../typings";
3
+ import { AttachmentModel } from "../../enums";
4
+ import type { Attachment, OfflineModel, OvermapRootState, OvermapSelectorWithArgs, Stored, Submitted } from "../../typings";
4
5
  import type { BaseSDK } from "../base";
5
6
  import { BaseUploadService } from "./BaseUploadService";
6
7
  export interface AttachmentPayload {
@@ -1,5 +1,5 @@
1
1
  import { Response, SuperAgentRequest } from "superagent";
2
- import { BaseState } from "../../typings";
2
+ import type { BaseState } from "../../typings";
3
3
  import type { BaseSDK } from "../base";
4
4
  import { BaseService } from "./BaseService";
5
5
  export declare abstract class BaseAuthService<TStore extends BaseState, TSDK extends BaseSDK<TStore>> extends BaseService<TStore, TSDK> {
@@ -1,7 +1,7 @@
1
1
  import { AnyAction } from "@reduxjs/toolkit";
2
2
  import type { BaseSDK } from "../base";
3
- import { BaseState } from "../../typings";
4
- import { SDKRequest } from "../typings";
3
+ import type { BaseState } from "../../typings";
4
+ import type { SDKRequest } from "../typings";
5
5
  export declare const CLASS_NAME_TO_SERVICE: Record<string, BaseService<BaseState, BaseSDK<BaseState>>>;
6
6
  /**
7
7
  * Abstract base class for building a service that can enqueue API requests
@@ -1,6 +1,6 @@
1
1
  import { BaseApiService } from "./BaseApiService";
2
- import { PresignedUrlsResponse } from "../typings";
3
- import { OvermapRootState } from "../../typings";
2
+ import type { PresignedUrlsResponse } from "../typings";
3
+ import type { OvermapRootState } from "../../typings";
4
4
  import type { BaseSDK } from "../base";
5
5
  export declare abstract class BaseUploadService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
6
6
  protected getNumberOfAttachmentsWithSha1(sha1: string): number;
@@ -1,5 +1,5 @@
1
- import { Category, Offline, OvermapRootState, Payload } from "../../typings";
2
- import { OptimisticModelResult } from "../typings";
1
+ import type { Category, Offline, OvermapRootState, Payload } from "../../typings";
2
+ import type { OptimisticModelResult } from "../typings";
3
3
  import { BaseApiService } from "./BaseApiService";
4
4
  import type { BaseSDK } from "../base";
5
5
  /**
@@ -1,7 +1,8 @@
1
1
  import { BaseAttachmentService } from "./BaseAttachmentService";
2
- import { AttachmentModel, DocumentAttachment, OvermapRootState, Stored } from "../../typings";
3
- import { OptimisticMultipleModelResult } from "../typings";
2
+ import type { DocumentAttachment, OvermapRootState, Stored } from "../../typings";
3
+ import type { OptimisticMultipleModelResult } from "../typings";
4
4
  import type { BaseSDK } from "../base";
5
+ import { AttachmentModel } from "../../enums";
5
6
  export declare abstract class DocumentAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, DocumentAttachment> {
6
7
  attachmentModel: AttachmentModel;
7
8
  initializeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/initializeDocumentAttachments">;
@@ -1,5 +1,5 @@
1
- import { Document, DocumentPayload, MovePosition, OvermapRootState, Submitted } from "../../typings";
2
- import { OptimisticModelResult } from "../typings";
1
+ import type { Document, DocumentPayload, MovePosition, OvermapRootState, Submitted } from "../../typings";
2
+ import type { OptimisticModelResult } from "../typings";
3
3
  import { BaseApiService } from "./BaseApiService";
4
4
  import type { BaseSDK } from "../base";
5
5
  export declare abstract class DocumentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -1,4 +1,4 @@
1
- import { EmailDomain, OvermapRootState } from "../../typings";
1
+ import type { EmailDomain, OvermapRootState } from "../../typings";
2
2
  import { BaseApiService } from "./BaseApiService";
3
3
  import type { BaseSDK } from "../base";
4
4
  export declare abstract class EmailDomainsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -1,6 +1,6 @@
1
1
  import { BaseApiService } from "./BaseApiService";
2
2
  import type { BaseSDK } from "../base";
3
- import { EmailVerificationPayload, EmailVerificationReturn, OvermapRootState, VerificationCode } from "../../typings";
3
+ import type { EmailVerificationPayload, EmailVerificationReturn, OvermapRootState, VerificationCode } from "../../typings";
4
4
  export declare abstract class EmailVerificationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
5
5
  getVerificationCode(verificationCode: string): Promise<VerificationCode>;
6
6
  validateVerificationCode(verificationCode: string, payload?: EmailVerificationPayload | undefined): Promise<EmailVerificationReturn>;
@@ -1,6 +1,6 @@
1
1
  import { BaseApiService } from "./BaseApiService";
2
2
  import type { BaseSDK } from "../base";
3
- import { BaseState } from "../../typings";
3
+ import type { BaseState } from "../../typings";
4
4
  export interface GetS3UrlSuccessResponse {
5
5
  url: string;
6
6
  fields: Record<string, string>;
@@ -1,5 +1,4 @@
1
- import { Form, FormRevision, FormRevisionAttachment, FormRevisionPayload, ISerializedField } from '../../typings/models/forms';
2
- import { Created, OvermapRootState, Stored } from "../../typings";
1
+ import type { Created, Form, FormRevision, FormRevisionAttachment, FormRevisionPayload, ISerializedField, OvermapRootState, Stored } from "../../typings";
3
2
  import type { BaseSDK } from "../base";
4
3
  import { BaseUploadService } from "./BaseUploadService";
5
4
  export declare abstract class FormService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
@@ -1,6 +1,5 @@
1
- import { FieldValue, FormSubmission, FormSubmissionAttachment, FormSubmissionPayload } from '../../typings/models/forms';
2
- import { PresignedUrlsResponse } from "../typings";
3
- import { Created, Offline, OvermapRootState, Payload, Stored } from "../../typings";
1
+ import type { Created, FieldValue, FormSubmission, FormSubmissionAttachment, FormSubmissionPayload, Offline, OvermapRootState, Payload, Stored } from "../../typings";
2
+ import type { PresignedUrlsResponse } from "../typings";
4
3
  import type { BaseSDK } from "../base";
5
4
  import { BaseUploadService } from "./BaseUploadService";
6
5
  interface BulkAddRequestReturnValue {
@@ -1,5 +1,5 @@
1
- import { BulkGeoImagePayload, GeoImage, GeoImagePayload, Offline, OvermapRootState } from "../../typings";
2
- import { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
1
+ import type { BulkGeoImagePayload, GeoImage, GeoImagePayload, Offline, OvermapRootState } from "../../typings";
2
+ import type { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
3
3
  import type { BaseSDK } from "../base";
4
4
  import { BaseUploadService } from "./BaseUploadService";
5
5
  export declare abstract class GeoImageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
@@ -1,7 +1,8 @@
1
1
  import { BaseAttachmentService } from "./BaseAttachmentService";
2
- import { OptimisticMultipleModelResult } from "../typings";
3
- import { AttachmentModel, IssueAttachment, OvermapRootState, Stored } from "../../typings";
2
+ import type { OptimisticMultipleModelResult } from "../typings";
3
+ import type { IssueAttachment, OvermapRootState, Stored } from "../../typings";
4
4
  import type { BaseSDK } from "../base";
5
+ import { AttachmentModel } from "../../enums";
5
6
  export declare abstract class IssueAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, IssueAttachment> {
6
7
  attachmentModel: AttachmentModel;
7
8
  initializeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/initializeIssueAttachments">;
@@ -1,5 +1,5 @@
1
- import { IssueComment, OvermapRootState, Payload, Submitted } from "../../typings";
2
- import { OptimisticModelResult } from "../typings";
1
+ import type { IssueComment, OvermapRootState, Payload, Submitted } from "../../typings";
2
+ import type { OptimisticModelResult } from "../typings";
3
3
  import { BaseApiService } from "./BaseApiService";
4
4
  import type { BaseSDK } from "../base";
5
5
  export declare abstract class IssueCommentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -1,5 +1,5 @@
1
- import { OptimisticModelResult } from "../typings";
2
- import { Issue, IssueType, OvermapRootState, Submitted } from "../../typings";
1
+ import type { OptimisticModelResult } from "../typings";
2
+ import type { Issue, IssueType, OvermapRootState, Submitted } from "../../typings";
3
3
  import { BaseApiService } from "./BaseApiService";
4
4
  import type { BaseSDK } from "../base";
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { OptimisticModelResult } from "../typings";
2
- import { IssueType, IssueTypePayload, Offline, OvermapRootState } from "../../typings";
1
+ import type { OptimisticModelResult } from "../typings";
2
+ import type { IssueType, IssueTypePayload, Offline, OvermapRootState } from "../../typings";
3
3
  import { BaseApiService } from "./BaseApiService";
4
4
  import type { BaseSDK } from "../base";
5
5
  export declare abstract class IssueTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -1,4 +1,4 @@
1
- import { OvermapRootState } from "../../typings";
1
+ import type { OvermapRootState } from "../../typings";
2
2
  import { BaseApiService } from "./BaseApiService";
3
3
  import type { BaseSDK } from "../base";
4
4
  export declare abstract class IssueUpdateService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -1,7 +1,7 @@
1
1
  import request from "superagent";
2
- import { BaseState } from "../../typings";
2
+ import type { BaseState } from "../../typings";
3
3
  import type { BaseSDK } from "../base";
4
- import { TokenPair } from "../typings";
4
+ import type { TokenPair } from "../typings";
5
5
  import { BaseAuthService } from "./BaseAuthService";
6
6
  /**
7
7
  * Handles login, logout and renewing tokens
@@ -1,4 +1,4 @@
1
- import { License, OvermapRootState, Project, Transaction } from "../../typings";
1
+ import type { License, OvermapRootState, Project, Transaction } from "../../typings";
2
2
  import { BaseApiService } from "./BaseApiService";
3
3
  import type { BaseSDK } from "../base";
4
4
  export declare abstract class LicenseService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -1,4 +1,4 @@
1
- import { OrganizationAccess, OvermapRootState } from "../../typings";
1
+ import type { OrganizationAccess, OvermapRootState } from "../../typings";
2
2
  import { BaseApiService } from "./BaseApiService";
3
3
  import type { BaseSDK } from "../base";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Organization, OvermapRootState } from "../../typings";
1
+ import type { Organization, OvermapRootState } from "../../typings";
2
2
  import { BaseApiService } from "./BaseApiService";
3
3
  import type { BaseSDK } from "../base";
4
4
  export declare abstract class OrganizationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -1,4 +1,4 @@
1
- import { OvermapRootState, ProjectAccess } from "../../typings";
1
+ import type { OvermapRootState, ProjectAccess } from "../../typings";
2
2
  import { BaseApiService } from "./BaseApiService";
3
3
  import type { BaseSDK } from "../base";
4
4
  /**
@@ -1,7 +1,8 @@
1
1
  import { BaseAttachmentService } from "./BaseAttachmentService";
2
- import { AttachmentModel, OvermapRootState, ProjectAttachment, Stored } from "../../typings";
3
- import { OptimisticMultipleModelResult } from "../typings";
2
+ import type { OvermapRootState, ProjectAttachment, Stored } from "../../typings";
3
+ import type { OptimisticMultipleModelResult } from "../typings";
4
4
  import type { BaseSDK } from "../base";
5
+ import { AttachmentModel } from "../../enums";
5
6
  export declare abstract class ProjectAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, number, ProjectAttachment> {
6
7
  attachmentModel: AttachmentModel;
7
8
  initializeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/initializeProjectAttachments">;
@@ -1,6 +1,5 @@
1
- import { ProjectFile } from '../../typings/models/projects';
2
- import { OptimisticGenericResult } from "../typings";
3
- import { OvermapRootState } from "../../typings";
1
+ import type { OvermapRootState, ProjectFile } from "../../typings";
2
+ import type { OptimisticGenericResult } from "../typings";
4
3
  import { BaseApiService } from "./BaseApiService";
5
4
  import type { BaseSDK } from "../base";
6
5
  /**
@@ -1,5 +1,4 @@
1
- import { Project } from '../../typings/models/projects';
2
- import { OvermapRootState, Payload } from "../../typings";
1
+ import type { OvermapRootState, Payload, Project } from "../../typings";
3
2
  import { BaseApiService } from "./BaseApiService";
4
3
  import type { BaseSDK } from "../base";
5
4
  interface JoinProjectResponse {
@@ -1,5 +1,5 @@
1
- import { OvermapRootState, Stored, Team, TeamPayload, User } from "../../typings";
2
- import { OptimisticModelResult } from "../typings";
1
+ import type { OvermapRootState, Stored, Team, TeamPayload, User } from "../../typings";
2
+ import type { OptimisticModelResult } from "../typings";
3
3
  import { BaseApiService } from "./BaseApiService";
4
4
  import type { BaseSDK } from "../base";
5
5
  export declare abstract class TeamService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -1,6 +1,6 @@
1
1
  import { BaseApiService } from "./BaseApiService";
2
- import { OvermapRootState } from "../../typings";
3
- import { BaseSDK } from "../base";
2
+ import type { OvermapRootState } from "../../typings";
3
+ import type { BaseSDK } from "../base";
4
4
  export declare abstract class UserService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
5
5
  refreshStore(projectId: number, organizationId: number): Promise<void>;
6
6
  }
@@ -1,7 +1,5 @@
1
- import { Payload } from '../../typings/models/base';
2
- import { Workspace } from '../../typings/models/workspace';
3
- import { OptimisticModelResult } from "../typings";
4
- import { OvermapRootState } from "../../typings";
1
+ import type { OvermapRootState, Payload, Workspace } from "../../typings";
2
+ import type { OptimisticModelResult } from "../typings";
5
3
  import { BaseApiService } from "./BaseApiService";
6
4
  import type { BaseSDK } from "../base";
7
5
  export declare abstract class WorkspaceService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
@@ -49,7 +49,6 @@ export declare const selectAssetStages: ((state: import('../../typings/models/st
49
49
  }> & {
50
50
  clearCache: () => void;
51
51
  };
52
- export declare const selectStagesFromAssetTypeIds: OvermapSelectorWithArgs<string[], Record<string, AssetStage[]>>;
53
52
  export declare const selectAssetTypeStagesMapping: OvermapSelectorWithArgs<string, Record<string, AssetStage>>;
54
53
  export declare const selectStagesOfAssetType: OvermapSelectorWithArgs<string, AssetStage[]>;
55
54
  export declare const selectAssetStagesByIds: (args: string[]) => (state: import('../../typings/models/store').OvermapRootState) => Stored<AssetStage>[];
@@ -1,20 +1,13 @@
1
- import { OfflineModel } from "./base";
1
+ import type { OrganizationAccessLevel, ProjectAccessLevel } from '../../enums';
2
+ import type { OfflineModel } from "./base";
2
3
  export interface ProjectAccess extends OfflineModel {
3
4
  user: number;
4
5
  project: number;
5
6
  access_level: ProjectAccessLevel;
6
7
  view_only: boolean;
7
8
  }
8
- export declare enum ProjectAccessLevel {
9
- BASIC = 0,
10
- ADMIN = 2
11
- }
12
9
  export interface OrganizationAccess extends OfflineModel {
13
10
  user: number;
14
11
  organization: number;
15
12
  access_level: OrganizationAccessLevel;
16
13
  }
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 { Offline, OptionalFileModel, TimestampedModel } from "./base";
2
+ import type { Offline, OptionalFileModel, TimestampedModel } from "./base";
3
3
  export interface AgentProfile extends OptionalFileModel {
4
4
  /**
5
5
  * The name of the agent.
@@ -1,5 +1,5 @@
1
- import { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
2
- import { CanvasMarkableModel, MarkableModel } from "./geo";
1
+ import type { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
2
+ import type { CanvasMarkableModel, MarkableModel } from "./geo";
3
3
  export interface Asset extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel {
4
4
  asset_type: string;
5
5
  created_at?: string;
@@ -1,5 +1,5 @@
1
- import { CreatedByModel, OfflineModel, SubmittedAtModel } from "./base";
2
- import { FileModel, FileWithNameModel, MaybeObjectURL } from "../files";
1
+ import type { CreatedByModel, OfflineModel, SubmittedAtModel } from "./base";
2
+ import type { 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,13 +19,6 @@ 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
- }
29
22
  /** to get an AttachmentPayload for a specific type, pass in the given AttachmentType
30
23
  * ex. AttachmentPayload<IssueAttachment> */
31
24
  export type AttachmentPayload<TAttachment> = Omit<TAttachment, "file" | "submitted_at" | "created_by"> & {
@@ -1,5 +1,5 @@
1
- import { CSSColor } from "../colors";
2
- import { User } from "./users";
1
+ import type { CSSColor } from "../colors";
2
+ import type { User } from "./users";
3
3
  export interface Model {
4
4
  }
5
5
  export interface OfflineModel extends Model {
@@ -1,5 +1,5 @@
1
- import { OfflineModel } from "./base";
2
- import { CSSColor } from "../colors";
1
+ import type { OfflineModel } from "./base";
2
+ import type { CSSColor } from "../colors";
3
3
  export interface Category extends OfflineModel {
4
4
  name: string;
5
5
  description?: string;
@@ -1,4 +1,4 @@
1
- import { ColorModel, CreatedByModel, IconModel, OfflineModel, Payload, SubmittedAtModel, TimestampedModel } from "./base";
1
+ import type { 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 { OfflineModel } from "./base";
1
+ import type { OfflineModel } from "./base";
2
2
  export interface EmailDomain extends OfflineModel {
3
3
  domain: string;
4
4
  organization: number;
@@ -1,5 +1,5 @@
1
- import { RegistrationPayload } from "./users";
2
- import { OfflineModel } from "./base";
1
+ import type { RegistrationPayload } from "./users";
2
+ import type { 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 { CreatedByModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
3
- import { Attachment } from "./attachments";
2
+ import type { CreatedByModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
3
+ import type { 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 { CreatedByModel, OfflineModel, SubmittedAtModel } from "./base";
2
- import { CanvasMarkableModel, MarkableModel } from "./geo";
3
- import { FileWithNameModel } from "../files";
1
+ import type { CreatedByModel, OfflineModel, SubmittedAtModel } from "./base";
2
+ import type { CanvasMarkableModel, MarkableModel } from "./geo";
3
+ import type { 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 { ColorModel, CreatedByModel, IconModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
2
- import { Organization } from "./organizations";
1
+ import type { ColorModel, CreatedByModel, IconModel, OfflineModel, Payload, 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;
@@ -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";
@@ -73,15 +73,6 @@ 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
- }
85
76
  export interface IssueUpdateChangeTypes {
86
77
  status: IssueStatus;
87
78
  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 } 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;