@overmap-ai/core 1.0.63-org-projs-only.1 → 1.0.63-org-doc-improvements.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.
@@ -1,22 +1,21 @@
1
- import { CreatedByModel, Offline, OfflineModel } from "./base";
1
+ import type { CreatedByModel, Offline, OfflineModel, SubmittedAtModel } from "./base";
2
2
  import { IssuePriority, IssueStatus } from "../../enums";
3
- import { WorkspaceIndexedModel } from "./workspace";
4
- import { CanvasMarkableModel, MarkableModel } from "./geo";
5
- import { CreatedForm, SubmittedForm, Form } from "./forms";
6
- import { User } from "./users";
7
- import { CSSColor } from "../colors";
8
- import { CreatedDocument, SubmittedDocument } from "./documents";
3
+ import type { WorkspaceIndexedModel } from "./workspace";
4
+ import type { CanvasMarkableModel, MarkableModel } from "./geo";
5
+ import type { CreatedForm, Form, SubmittedForm } from "./forms";
6
+ import type { User } from "./users";
7
+ import type { CSSColor } from "../colors";
9
8
  /**
10
9
  * Represents a model instance that has been submitted to the backend. Some properties (depending on which model, but in
11
10
  * all cases, the `offline_id`) are guaranteed to be set.
12
11
  */
13
- export type Submitted<TModel> = Offline<TModel> & (TModel extends Issue ? SubmittedIssue : TModel extends Form ? SubmittedForm : TModel extends Document ? SubmittedDocument : Omit<TModel, "created_at" | "created_by" | "id">);
12
+ export type Submitted<TModel> = Offline<TModel> & (TModel extends Issue ? SubmittedIssue : TModel extends Form ? SubmittedForm : Omit<TModel, "created_at" | "created_by" | "id">);
14
13
  /**
15
14
  * Represents a model instance that has been submitted to the backend, accepted, then downloaded. Created models
16
15
  * typically have additional properties that are only known once it has been processed and accepted by the API, such as
17
16
  * the `created_at` timestamp, which is the time at which the data was written to the database.
18
17
  */
19
- export type Created<TModel> = Submitted<TModel> & (TModel extends Issue ? CreatedIssue : TModel extends IssueComment ? CreatedIssueComment : TModel extends Form ? CreatedForm : TModel extends Document ? CreatedDocument : TModel);
18
+ export type Created<TModel> = Submitted<TModel> & (TModel extends Issue ? CreatedIssue : TModel extends IssueComment ? CreatedIssueComment : TModel extends Form ? CreatedForm : TModel);
20
19
  /**
21
20
  * Model instances that are stored in the Redux store can be already-created (and will likely be gotten with the initial
22
21
  * data load), or to-be-created. In the former case, you will get a `Created<TModel>`. In the latter case, you will get
@@ -104,3 +103,8 @@ export interface IssueUpdate extends OfflineModel, CreatedByModel {
104
103
  issue: OfflineModel["offline_id"];
105
104
  changes: Partial<Record<IssueUpdateChange, IssueUpdateChangeTypes[IssueUpdateChange]>>;
106
105
  }
106
+ export interface IssueAssociation extends OfflineModel, SubmittedAtModel, CreatedByModel {
107
+ associated_issue: string;
108
+ issue?: string;
109
+ asset?: string;
110
+ }
@@ -1,4 +1,4 @@
1
- import { OfflineModel, OwnedByOrganization } from "./base";
1
+ import { OfflineModel, OwnedByUserOrOrganization } from "./base";
2
2
  export declare enum PaddleCheckoutEvent {
3
3
  COMPLETED = "checkout.completed",
4
4
  CLOSED = "checkout.closed"
@@ -16,7 +16,7 @@ export declare enum LicenseStatus {
16
16
  export interface Transaction {
17
17
  id: string;
18
18
  }
19
- export interface License extends OfflineModel, OwnedByOrganization {
19
+ export interface License extends OfflineModel, OwnedByUserOrOrganization {
20
20
  project: number | null;
21
21
  level: LicenseLevel;
22
22
  status: LicenseStatus;
@@ -1,9 +1,11 @@
1
- import { Model, OfflineModel, OwnedByOrganization } from "./base";
1
+ import { Model, OfflineModel } from "./base";
2
2
  import { FileWithNameModel } from "../files";
3
3
  import { BoundableModel, CanvasBoundableModel } from "./geo";
4
- export interface Project extends Model, BoundableModel, CanvasBoundableModel, OwnedByOrganization {
4
+ export interface Project extends Model, BoundableModel, CanvasBoundableModel {
5
5
  id: number;
6
6
  name: string;
7
+ organization_owner: number | null;
8
+ user_owner: number | null;
7
9
  invited?: boolean;
8
10
  issues_count?: number;
9
11
  form_submissions_count?: number;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="@redux-offline/redux-offline" />
2
2
  import { OfflineState } from "@redux-offline/redux-offline/lib/types";
3
- import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, SettingState, 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, SettingState, TeamState, UserState, VERSION_REDUCER_KEY, VersioningState, WorkspaceState } from "../../store";
4
4
  export interface BaseState {
5
5
  outboxReducer: OutboxState;
6
6
  offline: OfflineState;
@@ -43,4 +43,5 @@ export interface OvermapRootState extends BaseState {
43
43
  teamReducer: TeamState;
44
44
  agentsReducer: AgentsState;
45
45
  geoImageReducer: GeoImageSliceState;
46
+ issueAssociationReducer: IssueAssociationSliceState;
46
47
  }
@@ -1,7 +1,7 @@
1
- import { IconModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
1
+ import { ColorModel, IconModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
2
2
  import { Organization } from "./organizations";
3
3
  import { User } from "./users";
4
- export interface Team extends OfflineModel, SubmittedAtModel, IconModel {
4
+ export interface Team extends OfflineModel, SubmittedAtModel, IconModel, ColorModel {
5
5
  name: string;
6
6
  parent: OfflineModel["offline_id"] | null;
7
7
  organization: Organization["id"];
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.63-org-projs-only.1",
6
+ "version": "1.0.63-org-doc-improvements.1",
7
7
  "type": "module",
8
8
  "main": "dist/overmap-core.umd.cjs",
9
9
  "module": "dist/overmap-core.js",