@overmap-ai/core 1.0.71-fields.13 → 1.0.71-fields.15

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 (151) hide show
  1. package/dist/constants/defaults.d.ts +2 -1
  2. package/dist/constants/index.d.ts +3 -3
  3. package/dist/enums/index.d.ts +5 -5
  4. package/dist/index.d.ts +6 -6
  5. package/dist/overmap-core.js +126 -328
  6. package/dist/overmap-core.js.map +1 -1
  7. package/dist/overmap-core.umd.cjs +133 -334
  8. package/dist/overmap-core.umd.cjs.map +1 -1
  9. package/dist/sdk/base.d.ts +8 -6
  10. package/dist/sdk/classes/OutboxCoordinator.d.ts +4 -4
  11. package/dist/sdk/classes/index.d.ts +1 -1
  12. package/dist/sdk/errors.d.ts +3 -1
  13. package/dist/sdk/globals.d.ts +7 -5
  14. package/dist/sdk/index.d.ts +6 -6
  15. package/dist/sdk/sdk.d.ts +6 -5
  16. package/dist/sdk/services/AgentService.d.ts +6 -10
  17. package/dist/sdk/services/AssetAttachmentService.d.ts +18 -19
  18. package/dist/sdk/services/AssetService.d.ts +5 -4
  19. package/dist/sdk/services/AssetStageCompletionService.d.ts +5 -4
  20. package/dist/sdk/services/AssetStageService.d.ts +5 -4
  21. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +17 -18
  22. package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +4 -3
  23. package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +6 -5
  24. package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +5 -4
  25. package/dist/sdk/services/AssetTypeFieldsService.d.ts +5 -4
  26. package/dist/sdk/services/AssetTypeService.d.ts +5 -4
  27. package/dist/sdk/services/BaseApiService.d.ts +5 -4
  28. package/dist/sdk/services/BaseAttachmentService.d.ts +8 -7
  29. package/dist/sdk/services/BaseAuthService.d.ts +5 -4
  30. package/dist/sdk/services/BaseService.d.ts +7 -5
  31. package/dist/sdk/services/BaseUploadService.d.ts +5 -4
  32. package/dist/sdk/services/CategoryService.d.ts +5 -4
  33. package/dist/sdk/services/DocumentAttachmentService.d.ts +17 -18
  34. package/dist/sdk/services/DocumentService.d.ts +5 -4
  35. package/dist/sdk/services/EmailDomainsService.d.ts +4 -3
  36. package/dist/sdk/services/EmailVerificationService.d.ts +4 -3
  37. package/dist/sdk/services/FileService.d.ts +5 -4
  38. package/dist/sdk/services/FormRevisionAttachmentService.d.ts +5 -4
  39. package/dist/sdk/services/FormRevisionService.d.ts +5 -4
  40. package/dist/sdk/services/FormService.d.ts +5 -4
  41. package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +5 -4
  42. package/dist/sdk/services/FormSubmissionService.d.ts +6 -5
  43. package/dist/sdk/services/GeoImageService.d.ts +5 -4
  44. package/dist/sdk/services/IssueAssociationService.d.ts +5 -4
  45. package/dist/sdk/services/IssueAttachmentService.d.ts +17 -18
  46. package/dist/sdk/services/IssueCommentService.d.ts +5 -4
  47. package/dist/sdk/services/IssueService.d.ts +5 -4
  48. package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +5 -4
  49. package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +5 -4
  50. package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +5 -4
  51. package/dist/sdk/services/IssueTypeFieldsService.d.ts +5 -4
  52. package/dist/sdk/services/IssueTypeService.d.ts +5 -4
  53. package/dist/sdk/services/IssueUpdateService.d.ts +4 -3
  54. package/dist/sdk/services/JWTAuthService.d.ts +7 -6
  55. package/dist/sdk/services/LicenseService.d.ts +4 -3
  56. package/dist/sdk/services/OrganizationAccessService.d.ts +4 -3
  57. package/dist/sdk/services/OrganizationService.d.ts +4 -3
  58. package/dist/sdk/services/ProjectAccessService.d.ts +4 -3
  59. package/dist/sdk/services/ProjectAttachmentService.d.ts +17 -18
  60. package/dist/sdk/services/ProjectFileService.d.ts +5 -4
  61. package/dist/sdk/services/ProjectService.d.ts +4 -3
  62. package/dist/sdk/services/TeamService.d.ts +5 -4
  63. package/dist/sdk/services/UserService.d.ts +4 -3
  64. package/dist/sdk/services/WorkspaceService.d.ts +5 -4
  65. package/dist/sdk/services/index.d.ts +45 -45
  66. package/dist/sdk/typings.d.ts +9 -8
  67. package/dist/store/adapter.d.ts +12 -11
  68. package/dist/store/index.d.ts +2 -2
  69. package/dist/store/migrations.d.ts +2 -1
  70. package/dist/store/slices/agentsSlice.d.ts +11 -10
  71. package/dist/store/slices/assetAttachmentSlice.d.ts +16 -21
  72. package/dist/store/slices/assetSlice.d.ts +35 -24
  73. package/dist/store/slices/assetStageCompletionSlice.d.ts +33 -22
  74. package/dist/store/slices/assetStageSlice.d.ts +36 -25
  75. package/dist/store/slices/assetTypeAttachmentSlice.d.ts +16 -21
  76. package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +35 -24
  77. package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +35 -24
  78. package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +35 -24
  79. package/dist/store/slices/assetTypeFieldsSlice.d.ts +43 -32
  80. package/dist/store/slices/assetTypeSlice.d.ts +16 -21
  81. package/dist/store/slices/authSlice.d.ts +10 -9
  82. package/dist/store/slices/categorySlice.d.ts +30 -16
  83. package/dist/store/slices/documentAttachmentSlice.d.ts +16 -21
  84. package/dist/store/slices/documentSlice.d.ts +30 -13
  85. package/dist/store/slices/emailDomainsSlice.d.ts +29 -15
  86. package/dist/store/slices/fileSlice.d.ts +7 -6
  87. package/dist/store/slices/formRevisionAttachmentSlice.d.ts +16 -21
  88. package/dist/store/slices/formRevisionSlice.d.ts +37 -26
  89. package/dist/store/slices/formSlice.d.ts +35 -21
  90. package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +16 -21
  91. package/dist/store/slices/formSubmissionSlice.d.ts +16 -21
  92. package/dist/store/slices/geoImageSlice.d.ts +16 -21
  93. package/dist/store/slices/index.d.ts +46 -46
  94. package/dist/store/slices/issueAssociationSlice.d.ts +35 -24
  95. package/dist/store/slices/issueAttachmentSlice.d.ts +16 -21
  96. package/dist/store/slices/issueCommentSlice.d.ts +13 -18
  97. package/dist/store/slices/issueSlice.d.ts +13 -18
  98. package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +35 -24
  99. package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +35 -24
  100. package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +35 -24
  101. package/dist/store/slices/issueTypeFieldsSlice.d.ts +43 -32
  102. package/dist/store/slices/issueTypeSlice.d.ts +12 -14
  103. package/dist/store/slices/issueUpdateSlice.d.ts +13 -18
  104. package/dist/store/slices/licenseSlice.d.ts +10 -9
  105. package/dist/store/slices/organizationAccessSlice.d.ts +11 -13
  106. package/dist/store/slices/organizationSlice.d.ts +27 -10
  107. package/dist/store/slices/outboxSlice.d.ts +15 -15
  108. package/dist/store/slices/projectAccessSlice.d.ts +11 -17
  109. package/dist/store/slices/projectAttachmentSlice.d.ts +16 -21
  110. package/dist/store/slices/projectFileSlice.d.ts +33 -16
  111. package/dist/store/slices/projectSlice.d.ts +10 -24
  112. package/dist/store/slices/rehydratedSlice.d.ts +7 -6
  113. package/dist/store/slices/teamSlice.d.ts +12 -14
  114. package/dist/store/slices/userSlice.d.ts +14 -13
  115. package/dist/store/slices/versioningSlice.d.ts +3 -2
  116. package/dist/store/slices/workspaceSlice.d.ts +31 -17
  117. package/dist/store/store.d.ts +7 -7
  118. package/dist/typings/index.d.ts +6 -6
  119. package/dist/typings/models/access.d.ts +3 -2
  120. package/dist/typings/models/agents.d.ts +3 -2
  121. package/dist/typings/models/assets.d.ts +5 -4
  122. package/dist/typings/models/attachments.d.ts +3 -2
  123. package/dist/typings/models/base.d.ts +3 -2
  124. package/dist/typings/models/categories.d.ts +3 -2
  125. package/dist/typings/models/documents.d.ts +2 -1
  126. package/dist/typings/models/emailDomain.d.ts +2 -1
  127. package/dist/typings/models/emailVerification.d.ts +3 -2
  128. package/dist/typings/models/fields.d.ts +3 -2
  129. package/dist/typings/models/forms.d.ts +4 -3
  130. package/dist/typings/models/geoImages.d.ts +4 -3
  131. package/dist/typings/models/index.d.ts +22 -22
  132. package/dist/typings/models/issueTypes.d.ts +3 -2
  133. package/dist/typings/models/issues.d.ts +9 -8
  134. package/dist/typings/models/license.d.ts +3 -2
  135. package/dist/typings/models/organizations.d.ts +2 -1
  136. package/dist/typings/models/projects.d.ts +4 -3
  137. package/dist/typings/models/store.d.ts +3 -3
  138. package/dist/typings/models/teams.d.ts +4 -3
  139. package/dist/typings/models/users.d.ts +2 -1
  140. package/dist/typings/models/workspace.d.ts +2 -1
  141. package/dist/typings/search.d.ts +1 -1
  142. package/dist/typings/store.d.ts +2 -1
  143. package/dist/utils/async/DeferredPromise.d.ts +1 -1
  144. package/dist/utils/colors.d.ts +2 -1
  145. package/dist/utils/coordinates.d.ts +3 -2
  146. package/dist/utils/file.d.ts +2 -1
  147. package/dist/utils/forms.d.ts +2 -1
  148. package/dist/utils/index.d.ts +10 -10
  149. package/dist/utils/offline.d.ts +2 -1
  150. package/dist/utils/utils.d.ts +2 -1
  151. package/package.json +18 -20
@@ -1,11 +1,13 @@
1
- import { FileService } from "./services";
2
- import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
3
- import { SDKRequest } from "./typings";
4
- import type { BaseState } from "../typings";
1
+ import { FileService } from './services';
2
+ import { SDKRequest } from './typings';
3
+ import { BaseState } from '../typings';
4
+ import { ActionCreatorWithPayload, Store, UnknownAction } from '@reduxjs/toolkit';
5
+ import { ResultAction } from '@redux-offline/redux-offline/lib/types';
6
+
5
7
  export declare abstract class BaseSDK<TState extends BaseState> {
6
- readonly store: ToolkitStore<TState>;
8
+ readonly store: Store<TState, UnknownAction | ResultAction | ActionCreatorWithPayload<any, any>>;
7
9
  abstract readonly files: FileService<TState, BaseSDK<TState>>;
8
- protected constructor(store: ToolkitStore<TState>);
10
+ protected constructor(store: Store<TState>);
9
11
  enqueueRequest<TResult>(requestDetails: SDKRequest, host: string, serviceName: string): Promise<TResult>;
10
12
  private _enqueueRequest;
11
13
  }
@@ -1,7 +1,7 @@
1
- /// <reference types="@redux-offline/redux-offline" />
2
- import { DepGraph } from "dependency-graph";
3
- import type { FullOfflineAction } from "../../store";
4
- import { Outbox } from "@redux-offline/redux-offline/lib/types";
1
+ import { DepGraph } from 'dependency-graph';
2
+ import { FullOfflineAction } from '../../store';
3
+ import { Outbox } from '@redux-offline/redux-offline/lib/types';
4
+
5
5
  export declare class OutboxCoordinator {
6
6
  graph: DepGraph<FullOfflineAction>;
7
7
  requestAttemptCounter: Record<string, number>;
@@ -1 +1 @@
1
- export * from "./OutboxCoordinator";
1
+ export * from './OutboxCoordinator';
@@ -1,10 +1,12 @@
1
- import request from "superagent";
1
+ import { default as request } from 'superagent';
2
+
2
3
  export interface APIErrorOptions {
3
4
  response?: request.Response;
4
5
  innerError?: unknown;
5
6
  message?: string;
6
7
  discard?: boolean;
7
8
  }
9
+ export declare const UNKNOWN_ERROR_MESSAGE = "An unknown error occurred";
8
10
  export declare class APIError extends Error {
9
11
  status: number;
10
12
  response: request.Response | undefined;
@@ -1,7 +1,9 @@
1
- import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
2
- import type { BaseState } from "../typings";
3
- import type { BaseSDK } from "./base";
4
- export declare function setClientStore<TState extends BaseState>(store: ToolkitStore<TState>): void;
5
- export declare function getClientStore(): ToolkitStore<BaseState> | undefined;
1
+ import { Store, UnknownAction } from '@reduxjs/toolkit';
2
+ import { BaseState } from '../typings';
3
+ import { BaseSDK } from './base';
4
+ import { ResultAction } from '@redux-offline/redux-offline/lib/types';
5
+
6
+ export declare function setClientStore<TState extends BaseState>(store: Store<TState>): void;
7
+ export declare function getClientStore(): Store<BaseState, UnknownAction | ResultAction> | undefined;
6
8
  export declare function setClientSDK<TState extends BaseState>(sdkCtor: BaseSDK<TState>): void;
7
9
  export declare function getClientSDK(): BaseSDK<BaseState> | undefined;
@@ -1,6 +1,6 @@
1
- export * from "./classes";
2
- export * from "./errors";
3
- export * from "./base";
4
- export * from "./sdk";
5
- export * from "./services";
6
- export * from "./typings";
1
+ export * from './classes';
2
+ export * from './errors';
3
+ export * from './base';
4
+ export * from './sdk';
5
+ export * from './services';
6
+ export * from './typings';
package/dist/sdk/sdk.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import type { BaseSDK } from "./base";
2
- import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
3
- import type { BaseState } from "../typings";
4
- import type { OvermapSDKConstructor } from "./typings";
5
- export declare const initSDK: <TState extends BaseState, TSDK extends BaseSDK<TState>>(store: ToolkitStore<TState>, sdk: OvermapSDKConstructor<TState, TSDK>) => TSDK;
1
+ import { BaseSDK } from './base';
2
+ import { BaseState } from '../typings';
3
+ import { OvermapSDKConstructor } from './typings';
4
+ import { Store } from '@reduxjs/toolkit';
5
+
6
+ export declare const initSDK: <TState extends BaseState, TSDK extends BaseSDK<TState>>(store: Store<TState>, sdk: OvermapSDKConstructor<TState, TSDK>) => TSDK;
@@ -1,14 +1,10 @@
1
- import type { AgentUserConversation, OvermapRootState } from "../../typings";
2
- import { BaseApiService } from "./BaseApiService";
3
- import type { BaseSDK } from "../base";
1
+ import { AgentUserConversation, OvermapRootState } from '../../typings';
2
+ import { BaseApiService } from './BaseApiService';
3
+ import { BaseSDK } from '../base';
4
+
4
5
  export declare abstract class AgentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
5
- startConversation(prompt: string): Promise<AgentUserConversation>;
6
- /**
7
- * Prompt the agent with a message.
8
- * @param prompt The message to prompt the agent with.
9
- * @param conversationId If continuing an existing message, the UUID of that conversation.
10
- */
11
- continueConversation(prompt: string, conversationId: AgentUserConversation["offline_id"]): Promise<void>;
6
+ startConversation(prompt: string, projectId: number): Promise<AgentUserConversation>;
7
+ continueConversation(prompt: string, conversationId: AgentUserConversation["offline_id"], projectId: number): Promise<void>;
12
8
  fetchDetails(conversationId: AgentUserConversation["offline_id"]): Promise<void>;
13
9
  rate(responseId: string, rating: 1 | 5): Promise<undefined>;
14
10
  refreshStore(projectId: number): Promise<void>;
@@ -1,20 +1,19 @@
1
- import { AttachmentPayload, BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from "./BaseAttachmentService";
2
- import type { AssetAttachment, OvermapRootState, Stored } from "../../typings";
3
- import type { OptimisticMultipleModelResult } from "../typings";
4
- import type { BaseSDK } from "../base";
5
- export declare abstract class AssetAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, AssetAttachment, AttachmentPayload & {
6
- asset: string;
7
- }> {
1
+ import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
2
+ import { AssetAttachment, OvermapRootState, Stored } from '../../typings';
3
+ import { OptimisticMultipleModelResult } from '../typings';
4
+ import { BaseSDK } from '../base';
5
+
6
+ export declare abstract class AssetAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, AssetAttachment> {
8
7
  name: string;
9
8
  url: string;
10
- initializeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/initializeAssetAttachments">;
11
- addAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/addAssetAttachments">;
12
- updateAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/updateAssetAttachments">;
13
- removeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assetAttachments/deleteAssetAttachments">;
14
- removeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetAttachments/deleteAssetAttachment">;
15
- setAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>, "assetAttachments/setAssetAttachment">;
16
- selectAttachment: import('../../typings/store').OvermapSelectorWithArgs<string, Stored<AssetAttachment> | undefined>;
17
- protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../../typings/models/base').Offline<{
9
+ initializeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/initializeAssetAttachments">;
10
+ addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/addAssetAttachments">;
11
+ updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/updateAssetAttachments">;
12
+ removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetAttachments/deleteAssetAttachments">;
13
+ removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetAttachments/deleteAssetAttachment">;
14
+ setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>, "assetAttachments/setAssetAttachment">;
15
+ selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<AssetAttachment> | undefined>;
16
+ protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../..').Offline<{
18
17
  file: string;
19
18
  file_sha1: string;
20
19
  created_by: number | undefined;
@@ -27,10 +26,10 @@ export declare abstract class AssetAttachmentService<TState extends OvermapRootS
27
26
  protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
28
27
  asset: string;
29
28
  modelId: string;
30
- offline_id: string;
31
- description: string | undefined;
32
- file_sha1: string;
33
- file_name: string;
29
+ offline_id: import('../..').OfflineModel["offline_id"];
30
+ description: import('../..').Attachment["description"];
31
+ file_sha1: import('../..').FileWithNameModel["file_sha1"];
32
+ file_name: import('../..').FileWithNameModel["file_name"];
34
33
  file_extension: string;
35
34
  };
36
35
  bulkAdd(payloads: {
@@ -1,7 +1,8 @@
1
- import type { Asset, Created, Offline, OvermapRootState, Payload } from "../../typings";
2
- import type { OptimisticModelResult } from "../typings";
3
- import { BaseApiService } from "./BaseApiService";
4
- import type { BaseSDK } from "../base";
1
+ import { Asset, Created, Offline, OvermapRootState, Payload } from '../../typings';
2
+ import { OptimisticModelResult } from '../typings';
3
+ import { BaseApiService } from './BaseApiService';
4
+ import { BaseSDK } from '../base';
5
+
5
6
  export declare abstract class AssetService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
6
7
  add(payload: Payload<Asset>): OptimisticModelResult<Asset>;
7
8
  update(payload: Offline<Partial<Payload<Asset>>>): OptimisticModelResult<Asset>;
@@ -1,7 +1,8 @@
1
- import type { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
2
- import type { AssetStageCompletion, OvermapRootState, Payload } from "../../typings";
3
- import { BaseApiService } from "./BaseApiService";
4
- import type { BaseSDK } from "../base";
1
+ import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings';
2
+ import { AssetStageCompletion, OvermapRootState, Payload } from '../../typings';
3
+ import { BaseApiService } from './BaseApiService';
4
+ import { BaseSDK } from '../base';
5
+
5
6
  export declare abstract class AssetStageCompletionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
6
7
  add(payload: Payload<AssetStageCompletion>): OptimisticModelResult<AssetStageCompletion>;
7
8
  delete(id: string): Promise<undefined>;
@@ -1,7 +1,8 @@
1
- import type { AssetStage, Offline, OvermapRootState, Payload } from "../../typings";
2
- import { BaseApiService } from "./BaseApiService";
3
- import type { BaseSDK } from "../base";
4
- import { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
1
+ import { AssetStage, Offline, OvermapRootState, Payload } from '../../typings';
2
+ import { BaseApiService } from './BaseApiService';
3
+ import { BaseSDK } from '../base';
4
+ import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings';
5
+
5
6
  export declare abstract class AssetStageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
6
7
  bulkAdd(stagesToSubmit: Omit<Payload<AssetStage>, "asset_type">[], assetTypeId: string): OptimisticMultipleModelResult<AssetStage>;
7
8
  bulkUpdate(stagesToUpdate: AssetStage[], assetTypeId: string): Promise<AssetStage[]>;
@@ -1,19 +1,18 @@
1
- import { AttachmentPayload, BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from "./BaseAttachmentService";
2
- import type { AssetTypeAttachment, OvermapRootState, Stored } from "../../typings";
3
- import type { OptimisticMultipleModelResult } from "../typings";
4
- import type { BaseSDK } from "../base";
5
- export declare abstract class AssetTypeAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, AssetTypeAttachment, AttachmentPayload & {
6
- asset_type: string;
7
- }> {
1
+ import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
2
+ import { AssetTypeAttachment, OvermapRootState, Stored } from '../../typings';
3
+ import { OptimisticMultipleModelResult } from '../typings';
4
+ import { BaseSDK } from '../base';
5
+
6
+ export declare abstract class AssetTypeAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, AssetTypeAttachment> {
8
7
  name: string;
9
8
  url: string;
10
- addAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/addAssetTypeAttachments">;
11
- updateAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/updateAssetTypeAttachments">;
12
- removeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assetTypeAttachments/deleteAssetTypeAttachments">;
13
- removeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetTypeAttachments/deleteAssetTypeAttachment">;
14
- setAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>, "assetTypeAttachments/setAssetTypeAttachment">;
15
- selectAttachment: import('../../typings/store').OvermapSelectorWithArgs<string, Stored<AssetTypeAttachment> | undefined>;
16
- protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../../typings/models/base').Offline<{
9
+ addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/addAssetTypeAttachments">;
10
+ updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/updateAssetTypeAttachments">;
11
+ removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetTypeAttachments/deleteAssetTypeAttachments">;
12
+ removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetTypeAttachments/deleteAssetTypeAttachment">;
13
+ setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>, "assetTypeAttachments/setAssetTypeAttachment">;
14
+ selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<AssetTypeAttachment> | undefined>;
15
+ protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../..').Offline<{
17
16
  file: string;
18
17
  file_sha1: string;
19
18
  created_by: number | undefined;
@@ -26,10 +25,10 @@ export declare abstract class AssetTypeAttachmentService<TState extends OvermapR
26
25
  protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
27
26
  asset_type: string;
28
27
  modelId: string;
29
- offline_id: string;
30
- description: string | undefined;
31
- file_sha1: string;
32
- file_name: string;
28
+ offline_id: import('../..').OfflineModel["offline_id"];
29
+ description: import('../..').Attachment["description"];
30
+ file_sha1: import('../..').FileWithNameModel["file_sha1"];
31
+ file_name: import('../..').FileWithNameModel["file_name"];
33
32
  file_extension: string;
34
33
  };
35
34
  bulkAdd(payloads: {
@@ -1,6 +1,7 @@
1
- import type { AssetTypeFieldValuesAttachment, Created, OvermapRootState, Stored } from "../../typings";
2
- import type { BaseSDK } from "../base";
3
- import { BaseUploadService } from "./BaseUploadService";
1
+ import { AssetTypeFieldValuesAttachment, Created, OvermapRootState, Stored } from '../../typings';
2
+ import { BaseSDK } from '../base';
3
+ import { BaseUploadService } from './BaseUploadService';
4
+
4
5
  export declare abstract class AssetTypeFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
5
6
  bulkAdd(payloads: {
6
7
  fieldValuesId: string;
@@ -1,8 +1,9 @@
1
- import type { AssetTypeFieldValues, Created, Offline, OvermapRootState, Payload, Stored } from "../../typings";
2
- import type { BaseSDK } from "../base";
3
- import { BaseApiService } from "./BaseApiService";
4
- import type { OptimisticModelResult } from "../typings";
5
- import { FieldValue } from "@overmap-ai/forms";
1
+ import { AssetTypeFieldValues, Created, Offline, OvermapRootState, Payload, Stored } from '../../typings';
2
+ import { BaseSDK } from '../base';
3
+ import { BaseApiService } from './BaseApiService';
4
+ import { OptimisticModelResult } from '../typings';
5
+ import { FieldValue } from '@overmap-ai/forms';
6
+
6
7
  export declare abstract class AssetTypeFieldValuesService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
7
8
  add(payload: Payload<AssetTypeFieldValues>): OptimisticModelResult<AssetTypeFieldValues>;
8
9
  bulkAdd(payload: {
@@ -1,7 +1,8 @@
1
- import type { AssetTypeFieldsAttachment, OvermapRootState } from "../../typings";
2
- import type { BaseSDK } from "../base";
3
- import { BaseUploadService } from "./BaseUploadService";
4
- import type { OptimisticMultipleModelResult } from "../typings";
1
+ import { AssetTypeFieldsAttachment, OvermapRootState } from '../../typings';
2
+ import { BaseSDK } from '../base';
3
+ import { BaseUploadService } from './BaseUploadService';
4
+ import { OptimisticMultipleModelResult } from '../typings';
5
+
5
6
  export declare abstract class AssetTypeFieldsAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
6
7
  bulkAdd(payloads: {
7
8
  fieldsRevisionId: string;
@@ -1,7 +1,8 @@
1
- import type { AssetTypeFields, OvermapRootState, Payload } from "../../typings";
2
- import type { BaseSDK } from "../base";
3
- import { BaseApiService } from "./BaseApiService";
4
- import { OptimisticModelResult } from "../typings";
1
+ import { AssetTypeFields, OvermapRootState, Payload } from '../../typings';
2
+ import { BaseSDK } from '../base';
3
+ import { BaseApiService } from './BaseApiService';
4
+ import { OptimisticModelResult } from '../typings';
5
+
5
6
  export declare abstract class AssetTypeFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
6
7
  add(payload: Payload<AssetTypeFields>): OptimisticModelResult<AssetTypeFields>;
7
8
  refreshStore(projectId: number): Promise<void>;
@@ -1,7 +1,8 @@
1
- import type { AssetType, Offline, OvermapRootState, Payload } from "../../typings";
2
- import type { OptimisticModelResult } from "../typings";
3
- import { BaseApiService } from "./BaseApiService";
4
- import type { BaseSDK } from "../base";
1
+ import { AssetType, Offline, OvermapRootState, Payload } from '../../typings';
2
+ import { OptimisticModelResult } from '../typings';
3
+ import { BaseApiService } from './BaseApiService';
4
+ import { BaseSDK } from '../base';
5
+
5
6
  export declare abstract class AssetTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
6
7
  add(payload: Payload<AssetType>): OptimisticModelResult<AssetType>;
7
8
  update(payload: Offline<Partial<Payload<AssetType>>>): OptimisticModelResult<AssetType>;
@@ -1,7 +1,8 @@
1
- import type { BaseSDK } from "../base";
2
- import type { BaseState } from "../../typings";
3
- import { BaseAuthService } from "./BaseAuthService";
4
- import { BaseService } from "./BaseService";
1
+ import { BaseSDK } from '../base';
2
+ import { BaseState } from '../../typings';
3
+ import { BaseAuthService } from './BaseAuthService';
4
+ import { BaseService } from './BaseService';
5
+
5
6
  /**
6
7
  * Abstract base class for building a service that can enqueue API requests
7
8
  */
@@ -1,8 +1,9 @@
1
- import { ActionCreatorWithPayload } from "@reduxjs/toolkit";
2
- import type { OptimisticMultipleModelResult } from "../typings";
3
- import type { Attachment, FileModelPayload, OfflineModel, OvermapRootState, OvermapSelectorWithArgs, Stored, Submitted } from "../../typings";
4
- import type { BaseSDK } from "../base";
5
- import { BaseUploadService } from "./BaseUploadService";
1
+ import { ActionCreatorWithPayload } from '@reduxjs/toolkit';
2
+ import { OptimisticMultipleModelResult } from '../typings';
3
+ import { Attachment, FileModelPayload, OfflineModel, OvermapRootState, OvermapSelectorWithArgs, Stored, Submitted } from '../../typings';
4
+ import { BaseSDK } from '../base';
5
+ import { BaseUploadService } from './BaseUploadService';
6
+
6
7
  export interface AttachmentPayload extends FileModelPayload {
7
8
  offline_id: OfflineModel["offline_id"];
8
9
  description: Attachment["description"];
@@ -18,7 +19,7 @@ export interface BuildOfflineAttachmentData<TModelId> {
18
19
  export interface BuildAttachmentPayloadData<TModelId> extends AttachmentPayload {
19
20
  modelId: TModelId;
20
21
  }
21
- export declare abstract class BaseAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>, TModelId extends string | number, TAttachment extends Attachment, TAttachmentPayload extends AttachmentPayload> extends BaseUploadService<TState, TSDK> {
22
+ export declare abstract class BaseAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>, TModelId extends string | number, TAttachment extends Attachment> extends BaseUploadService<TState, TSDK> {
22
23
  abstract readonly name: string;
23
24
  abstract readonly url: string;
24
25
  abstract readonly addAttachments: ActionCreatorWithPayload<Submitted<TAttachment>[]>;
@@ -28,7 +29,7 @@ export declare abstract class BaseAttachmentService<TState extends OvermapRootSt
28
29
  abstract readonly removeAttachment: ActionCreatorWithPayload<string>;
29
30
  abstract readonly selectAttachment: OvermapSelectorWithArgs<string, Stored<TAttachment> | undefined>;
30
31
  protected abstract buildOfflineAttachment(data: BuildOfflineAttachmentData<TModelId>): Stored<TAttachment>;
31
- protected abstract buildAttachmentPayload(data: BuildAttachmentPayloadData<TModelId>): TAttachmentPayload;
32
+ protected abstract buildAttachmentPayload(data: BuildAttachmentPayloadData<TModelId>): AttachmentPayload;
32
33
  _bulkAdd(payloads: {
33
34
  modelId: TModelId;
34
35
  file: File;
@@ -1,7 +1,8 @@
1
- import { Response, SuperAgentRequest } from "superagent";
2
- import type { BaseState } from "../../typings";
3
- import type { BaseSDK } from "../base";
4
- import { BaseService } from "./BaseService";
1
+ import { Response, SuperAgentRequest } from 'superagent';
2
+ import { BaseState } from '../../typings';
3
+ import { BaseSDK } from '../base';
4
+ import { BaseService } from './BaseService';
5
+
5
6
  export declare abstract class BaseAuthService<TStore extends BaseState, TSDK extends BaseSDK<TStore>> extends BaseService<TStore, TSDK> {
6
7
  protected constructor(sdk: TSDK);
7
8
  abstract initAuth(payload: object): Promise<void>;
@@ -1,7 +1,9 @@
1
- import { AnyAction } from "@reduxjs/toolkit";
2
- import type { BaseSDK } from "../base";
3
- import type { BaseState } from "../../typings";
4
- import type { SDKRequest } from "../typings";
1
+ import { ActionCreatorWithPayload, UnknownAction } from '@reduxjs/toolkit';
2
+ import { BaseSDK } from '../base';
3
+ import { BaseState } from '../../typings';
4
+ import { SDKRequest } from '../typings';
5
+ import { ResultAction } from '@redux-offline/redux-offline/lib/types';
6
+
5
7
  export declare const CLASS_NAME_TO_SERVICE: Record<string, BaseService<BaseState, BaseSDK<BaseState>>>;
6
8
  /**
7
9
  * Abstract base class for building a service that can enqueue API requests
@@ -11,5 +13,5 @@ export declare abstract class BaseService<TStore extends BaseState, TSDK extends
11
13
  abstract readonly host: string;
12
14
  protected constructor(sdk: TSDK);
13
15
  protected enqueueRequest<TResult>(requestDetails: SDKRequest): Promise<TResult>;
14
- protected dispatch(action: AnyAction): void;
16
+ protected dispatch(action: UnknownAction | ResultAction | ActionCreatorWithPayload<any, any>): void;
15
17
  }
@@ -1,7 +1,8 @@
1
- import { BaseApiService } from "./BaseApiService";
2
- import type { PresignedUrlsResponse } from "../typings";
3
- import type { FilePayload, OvermapRootState } from "../../typings";
4
- import type { BaseSDK } from "../base";
1
+ import { BaseApiService } from './BaseApiService';
2
+ import { PresignedUrlsResponse } from '../typings';
3
+ import { FilePayload, OvermapRootState } from '../../typings';
4
+ import { BaseSDK } from '../base';
5
+
5
6
  export declare abstract class BaseUploadService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
6
7
  protected getNumberOfAttachmentsWithSha1(sha1: string): number;
7
8
  protected processPresignedUrls(presignedUrls: PresignedUrlsResponse): Record<string, Promise<undefined>>;
@@ -1,7 +1,8 @@
1
- import type { Category, Offline, OvermapRootState, Payload } from "../../typings";
2
- import type { OptimisticModelResult } from "../typings";
3
- import { BaseApiService } from "./BaseApiService";
4
- import type { BaseSDK } from "../base";
1
+ import { Category, Offline, OvermapRootState, Payload } from '../../typings';
2
+ import { OptimisticModelResult } from '../typings';
3
+ import { BaseApiService } from './BaseApiService';
4
+ import { BaseSDK } from '../base';
5
+
5
6
  export declare abstract class CategoryService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
6
7
  add(payload: Payload<Category>): OptimisticModelResult<Category>;
7
8
  update(payload: Offline<Partial<Payload<Category>>>): OptimisticModelResult<Category>;
@@ -1,19 +1,18 @@
1
- import { AttachmentPayload, BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from "./BaseAttachmentService";
2
- import type { DocumentAttachment, OvermapRootState, Stored } from "../../typings";
3
- import type { OptimisticMultipleModelResult } from "../typings";
4
- import type { BaseSDK } from "../base";
5
- export declare abstract class DocumentAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, DocumentAttachment, AttachmentPayload & {
6
- document: string;
7
- }> {
1
+ import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
2
+ import { DocumentAttachment, OvermapRootState, Stored } from '../../typings';
3
+ import { OptimisticMultipleModelResult } from '../typings';
4
+ import { BaseSDK } from '../base';
5
+
6
+ export declare abstract class DocumentAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, DocumentAttachment> {
8
7
  name: string;
9
8
  url: string;
10
- addAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/addDocumentAttachments">;
11
- updateAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/updateDocumentAttachments">;
12
- removeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "documentAttachments/deleteDocumentAttachments">;
13
- removeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "documentAttachments/deleteDocumentAttachment">;
14
- setAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>, "documentAttachments/setDocumentAttachment">;
15
- selectAttachment: import('../../typings/store').OvermapSelectorWithArgs<string, Stored<DocumentAttachment> | undefined>;
16
- protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../../typings/models/base').Offline<{
9
+ addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/addDocumentAttachments">;
10
+ updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/updateDocumentAttachments">;
11
+ removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "documentAttachments/deleteDocumentAttachments">;
12
+ removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "documentAttachments/deleteDocumentAttachment">;
13
+ setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>, "documentAttachments/setDocumentAttachment">;
14
+ selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<DocumentAttachment> | undefined>;
15
+ protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../..').Offline<{
17
16
  file: string;
18
17
  file_sha1: string;
19
18
  created_by: number | undefined;
@@ -26,10 +25,10 @@ export declare abstract class DocumentAttachmentService<TState extends OvermapRo
26
25
  protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
27
26
  document: string;
28
27
  modelId: string;
29
- offline_id: string;
30
- description: string | undefined;
31
- file_sha1: string;
32
- file_name: string;
28
+ offline_id: import('../..').OfflineModel["offline_id"];
29
+ description: import('../..').Attachment["description"];
30
+ file_sha1: import('../..').FileWithNameModel["file_sha1"];
31
+ file_name: import('../..').FileWithNameModel["file_name"];
33
32
  file_extension: string;
34
33
  };
35
34
  bulkAdd(payloads: {
@@ -1,7 +1,8 @@
1
- import type { Document, MovePosition, Offline, OvermapRootState, Payload } from "../../typings";
2
- import type { OptimisticModelResult } from "../typings";
3
- import { BaseApiService } from "./BaseApiService";
4
- import type { BaseSDK } from "../base";
1
+ import { Document, MovePosition, Offline, OvermapRootState, Payload } from '../../typings';
2
+ import { OptimisticModelResult } from '../typings';
3
+ import { BaseApiService } from './BaseApiService';
4
+ import { BaseSDK } from '../base';
5
+
5
6
  export declare abstract class DocumentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
6
7
  add(payload: Payload<Document>): OptimisticModelResult<Document>;
7
8
  update(payload: Offline<Partial<Payload<Document>>>): OptimisticModelResult<Document>;
@@ -1,6 +1,7 @@
1
- import type { EmailDomain, OvermapRootState } from "../../typings";
2
- import { BaseApiService } from "./BaseApiService";
3
- import type { BaseSDK } from "../base";
1
+ import { EmailDomain, OvermapRootState } from '../../typings';
2
+ import { BaseApiService } from './BaseApiService';
3
+ import { BaseSDK } from '../base';
4
+
4
5
  export declare abstract class EmailDomainsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
5
6
  add(orgId: number, email: string): Promise<undefined>;
6
7
  remove(emailDomain: EmailDomain): Promise<undefined>;
@@ -1,6 +1,7 @@
1
- import { BaseApiService } from "./BaseApiService";
2
- import type { BaseSDK } from "../base";
3
- import type { EmailVerificationPayload, EmailVerificationReturn, OvermapRootState, VerificationCode } from "../../typings";
1
+ import { BaseApiService } from './BaseApiService';
2
+ import { BaseSDK } from '../base';
3
+ import { EmailVerificationPayload, EmailVerificationReturn, OvermapRootState, VerificationCode } from '../../typings';
4
+
4
5
  export declare abstract class EmailVerificationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
5
6
  getVerificationCode(verificationCode: string): Promise<VerificationCode>;
6
7
  validateVerificationCode(verificationCode: string, payload?: EmailVerificationPayload | undefined): Promise<EmailVerificationReturn>;
@@ -1,6 +1,7 @@
1
- import { BaseApiService } from "./BaseApiService";
2
- import type { BaseSDK } from "../base";
3
- import type { BaseState } from "../../typings";
1
+ import { BaseApiService } from './BaseApiService';
2
+ import { BaseSDK } from '../base';
3
+ import { BaseState } from '../../typings';
4
+
4
5
  export interface GetS3UrlSuccessResponse {
5
6
  url: string;
6
7
  fields: Record<string, string>;
@@ -43,6 +44,6 @@ export declare abstract class FileService<TState extends BaseState, TSDK extends
43
44
  * @param downloadedName (Optional) The name to give the file after download. Set to the name of an attachment, for
44
45
  * example.
45
46
  */
46
- fetchFileFromUrl(url: string, expectedSha1: string, downloadedName?: string | undefined): Promise<File>;
47
+ fetchFileFromUrl(url: string, expectedSha1: string, downloadedName?: string): Promise<File>;
47
48
  }
48
49
  export {};
@@ -1,7 +1,8 @@
1
- import type { FormRevisionAttachment, OvermapRootState } from "../../typings";
2
- import type { BaseSDK } from "../base";
3
- import { BaseUploadService } from "./BaseUploadService";
4
- import type { OptimisticMultipleModelResult } from "../typings";
1
+ import { FormRevisionAttachment, OvermapRootState } from '../../typings';
2
+ import { BaseSDK } from '../base';
3
+ import { BaseUploadService } from './BaseUploadService';
4
+ import { OptimisticMultipleModelResult } from '../typings';
5
+
5
6
  export declare abstract class FormRevisionAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
6
7
  bulkAdd(payloads: {
7
8
  revisionId: string;
@@ -1,7 +1,8 @@
1
- import type { FormRevision, FormRevisionPayload, OvermapRootState } from "../../typings";
2
- import type { BaseSDK } from "../base";
3
- import { BaseUploadService } from "./BaseUploadService";
4
- import type { OptimisticModelResult } from "../typings";
1
+ import { FormRevision, FormRevisionPayload, OvermapRootState } from '../../typings';
2
+ import { BaseSDK } from '../base';
3
+ import { BaseUploadService } from './BaseUploadService';
4
+ import { OptimisticModelResult } from '../typings';
5
+
5
6
  export declare abstract class FormRevisionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
6
7
  add(payload: FormRevisionPayload): OptimisticModelResult<FormRevision>;
7
8
  refreshStore(projectId: number, organizationId: number): Promise<void>;