@overmap-ai/core 1.0.65-strip-workspace-access.0 → 1.0.65-strip-workspace-access.1

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.
@@ -7,7 +7,7 @@ import type { BaseSDK } from "../base";
7
7
  * TODO: Support editing and deleting categories
8
8
  */
9
9
  export declare abstract class CategoryService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
10
- add(category: Omit<Payload<Category>, "workspace">, workspaceId: string): OptimisticModelResult<Category>;
10
+ add(payload: Omit<Payload<Category>, "workspace">, workspaceId: string): OptimisticModelResult<Category>;
11
11
  update(category: Offline<Partial<Category>>, workspaceId: string): OptimisticModelResult<Category>;
12
12
  remove(category: Category, workspaceId: string): Promise<undefined>;
13
13
  refreshStore(projectId: number): Promise<undefined>;
@@ -15,8 +15,6 @@ export declare abstract class FormService<TState extends OvermapRootState, TSDK
15
15
  Promise<Created<FormRevision>>,
16
16
  Promise<Created<FormRevisionAttachment>[]>
17
17
  ]>;
18
- favorite(formId: string, projectId: number): Promise<undefined>;
19
- unfavorite(formId: string, projectId: number): Promise<undefined>;
20
18
  delete(formId: string): Promise<undefined>;
21
19
  refreshStore(projectId: number): Promise<void>;
22
20
  }
@@ -5,7 +5,7 @@ import { OvermapRootState } from "../../typings";
5
5
  import { BaseApiService } from "./BaseApiService";
6
6
  import type { BaseSDK } from "../base";
7
7
  export declare abstract class WorkspaceService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
8
- add(workspace: Payload<Workspace>): OptimisticModelResult<Workspace>;
8
+ add(payload: Payload<Workspace>): OptimisticModelResult<Workspace>;
9
9
  update(workspace: Workspace): OptimisticModelResult<Workspace>;
10
10
  delete(workspaceId: string): Promise<undefined>;
11
11
  refreshStore(projectId: number): Promise<undefined>;
@@ -34,8 +34,6 @@ export declare const formSlice: import("@reduxjs/toolkit").Slice<FormState, {
34
34
  export declare const initializeForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Form>[], "forms/initializeForms">, setForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Form>, "forms/setForm">, addForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Form>, "forms/addForm">, addForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Form>[], "forms/addForms">, updateForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Form>, "forms/updateForm">, deleteForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "forms/deleteForm">;
35
35
  export declare const formReducer: Reducer<FormState>;
36
36
  export type FormSearchArgs = SearchArgs<{
37
- /** `undefined` means don't filter by favorite. `boolean` filters forms. */
38
- favorites?: boolean;
39
37
  /** organization owner */
40
38
  organization?: number;
41
39
  }>;
@@ -44,5 +44,5 @@ export interface ColorModel {
44
44
  color: CSSColor;
45
45
  }
46
46
  export interface CreatedByModel {
47
- created_by: User["id"];
47
+ created_by?: User["id"] | null;
48
48
  }
@@ -1,6 +1,6 @@
1
- import { OfflineModel } from "./base";
1
+ import { CreatedByModel, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
2
2
  import { CSSColor } from "../colors";
3
- export interface Category extends OfflineModel {
3
+ export interface Category extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
4
4
  name: string;
5
5
  description?: string;
6
6
  color: CSSColor;
@@ -87,7 +87,6 @@ export interface BaseSerializedObject<TIdentifier extends FieldTypeIdentifier =
87
87
  type: TIdentifier;
88
88
  }
89
89
  export interface Form extends OfflineModel, SubmittedAtModel {
90
- favorite: boolean;
91
90
  created_by: number;
92
91
  asset_type?: string;
93
92
  issue_type?: string;
@@ -1,5 +1,5 @@
1
- import { Model, OfflineModel } from "./base";
2
- export interface Workspace extends OfflineModel {
1
+ import { CreatedByModel, Model, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
2
+ export interface Workspace extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
3
3
  name: string;
4
4
  project: number;
5
5
  abbreviation: string | null;
@@ -7,5 +7,5 @@ export interface Workspace extends OfflineModel {
7
7
  }
8
8
  export interface WorkspaceIndexedModel extends Model {
9
9
  index: number | null;
10
- index_workspace: string | null;
10
+ index_workspace: string;
11
11
  }
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-strip-workspace-access.0",
6
+ "version": "1.0.65-strip-workspace-access.1",
7
7
  "type": "module",
8
8
  "main": "dist/overmap-core.umd.cjs",
9
9
  "module": "dist/overmap-core.js",