@overmap-ai/core 1.0.52 → 1.0.53-fix-not-send-org-in-payload.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/overmap-core.js +300 -33
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +300 -33
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +2 -1
- package/dist/sdk/services/IssueService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeService.d.ts +9 -0
- package/dist/sdk/services/UserFormService.d.ts +10 -2
- package/dist/sdk/services/index.d.ts +1 -0
- package/dist/store/slices/categorySlice.d.ts +1 -0
- package/dist/store/slices/documentSlice.d.ts +29 -56
- package/dist/store/slices/formRevisionSlice.d.ts +1 -0
- package/dist/store/slices/formSlice.d.ts +7 -0
- package/dist/store/slices/formSubmissionSlice.d.ts +2 -0
- package/dist/store/slices/index.d.ts +1 -0
- package/dist/store/slices/issueSlice.d.ts +6 -1
- package/dist/store/slices/issueTypeSlice.d.ts +20 -0
- package/dist/store/slices/projectFileSlice.d.ts +1 -0
- package/dist/store/slices/workspaceSlice.d.ts +1 -0
- package/dist/store/store.d.ts +4 -1
- package/dist/typings/models/attachments.d.ts +2 -3
- package/dist/typings/models/base.d.ts +4 -0
- package/dist/typings/models/documents.d.ts +3 -6
- package/dist/typings/models/forms.d.ts +3 -3
- package/dist/typings/models/index.d.ts +1 -0
- package/dist/typings/models/issueTypes.d.ts +8 -0
- package/dist/typings/models/issues.d.ts +4 -5
- package/dist/typings/models/organizations.d.ts +2 -3
- package/package.json +1 -1
package/dist/store/store.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AnyAction, Reducer } from "redux";
|
|
|
3
3
|
import { Config, OfflineAction, OfflineMetadata, OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
4
4
|
import request from "superagent";
|
|
5
5
|
import { type OfflineMetaEffect, type OvermapSDK, RequestDetails } from "../sdk";
|
|
6
|
-
import { AuthState, CategoryState, ComponentStageCompletionState, ComponentStageState, ComponentState, ComponentTypeState, DocumentState, EmailDomainState, FileState, IssueState, LicenseState, MapState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectFileState, ProjectState, RehydratedState, SettingState, FormState, FormRevisionState, FormSubmissionState, UserState, WorkspaceState, TeamState } from "./slices";
|
|
6
|
+
import { AuthState, CategoryState, ComponentStageCompletionState, ComponentStageState, ComponentState, ComponentTypeState, DocumentState, EmailDomainState, FileState, IssueState, IssueTypeState, LicenseState, MapState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectFileState, ProjectState, RehydratedState, SettingState, FormState, FormRevisionState, FormSubmissionState, UserState, WorkspaceState, TeamState } from "./slices";
|
|
7
7
|
import { VersioningState } from "./slices/versioningSlice";
|
|
8
8
|
import { RootState } from "../typings";
|
|
9
9
|
export declare const overmapReducers: {
|
|
@@ -16,6 +16,7 @@ export declare const overmapReducers: {
|
|
|
16
16
|
componentStageReducer: Reducer<ComponentStageState>;
|
|
17
17
|
componentTypeReducer: Reducer<ComponentTypeState>;
|
|
18
18
|
issueReducer: Reducer<IssueState>;
|
|
19
|
+
issueTypeReducer: Reducer<IssueTypeState>;
|
|
19
20
|
mapReducer: Reducer<MapState>;
|
|
20
21
|
organizationReducer: Reducer<OrganizationState>;
|
|
21
22
|
outboxReducer: Reducer<OutboxState>;
|
|
@@ -45,6 +46,7 @@ export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
|
45
46
|
componentStageReducer: ComponentStageState;
|
|
46
47
|
componentTypeReducer: ComponentTypeState;
|
|
47
48
|
issueReducer: IssueState;
|
|
49
|
+
issueTypeReducer: IssueTypeState;
|
|
48
50
|
mapReducer: MapState;
|
|
49
51
|
organizationReducer: OrganizationState;
|
|
50
52
|
outboxReducer: OutboxState;
|
|
@@ -92,6 +94,7 @@ export declare const defaultStore: import("@reduxjs/toolkit/dist/configureStore"
|
|
|
92
94
|
componentStageReducer: ComponentStageState;
|
|
93
95
|
componentTypeReducer: ComponentTypeState;
|
|
94
96
|
issueReducer: IssueState;
|
|
97
|
+
issueTypeReducer: IssueTypeState;
|
|
95
98
|
mapReducer: MapState;
|
|
96
99
|
organizationReducer: OrganizationState;
|
|
97
100
|
outboxReducer: OutboxState;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { OfflineModel } from "./base";
|
|
1
|
+
import { CreatedByModel, OfflineModel } from "./base";
|
|
2
2
|
import { MaybeObjectURL, FileModel, FileWithNameModel } from "../files";
|
|
3
3
|
import { Project } from "./projects";
|
|
4
4
|
import { Document } from "./documents";
|
|
5
|
-
export interface Attachment extends OfflineModel, FileWithNameModel {
|
|
5
|
+
export interface Attachment extends OfflineModel, FileWithNameModel, CreatedByModel {
|
|
6
6
|
description?: string;
|
|
7
7
|
file_type: string;
|
|
8
8
|
submitted_at: string;
|
|
9
|
-
created_by: number;
|
|
10
9
|
}
|
|
11
10
|
export interface IssueAttachment extends Attachment {
|
|
12
11
|
issue: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSColor } from "../colors";
|
|
2
|
+
import { User } from "./users";
|
|
2
3
|
export interface Model {
|
|
3
4
|
}
|
|
4
5
|
export interface OfflineModel extends Model {
|
|
@@ -40,3 +41,6 @@ export interface IconModel {
|
|
|
40
41
|
icon: string;
|
|
41
42
|
icon_color: CSSColor;
|
|
42
43
|
}
|
|
44
|
+
export interface CreatedByModel {
|
|
45
|
+
created_by: User["id"];
|
|
46
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { OfflineModel, Payload } from "./base";
|
|
2
|
-
|
|
3
|
-
export type SubmittedDocument = OfflineModel & {
|
|
1
|
+
import { CreatedByModel, OfflineModel, Payload } from "./base";
|
|
2
|
+
export type SubmittedDocument = OfflineModel & CreatedByModel & {
|
|
4
3
|
title: string | null;
|
|
5
4
|
description: string | null;
|
|
6
5
|
content: string | null;
|
|
7
6
|
parent_document: string | null;
|
|
8
|
-
created_by: User["id"];
|
|
9
7
|
} & ({
|
|
10
8
|
project: number;
|
|
11
9
|
organization: null;
|
|
@@ -16,8 +14,7 @@ export type SubmittedDocument = OfflineModel & {
|
|
|
16
14
|
export type Document = SubmittedDocument & {
|
|
17
15
|
children_documents: string[];
|
|
18
16
|
};
|
|
19
|
-
export type CreatedDocument = Document & {
|
|
20
|
-
created_by: User["id"];
|
|
17
|
+
export type CreatedDocument = Document & CreatedByModel & {
|
|
21
18
|
created_at: string;
|
|
22
19
|
updated_at: string;
|
|
23
20
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { OfflineModel, Payload, SubmittedAtModel } from "./base";
|
|
1
|
+
import { CreatedByModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
|
|
2
2
|
import { BaseSerializedObject, FieldValue, ISerializedField } from "../../forms";
|
|
3
3
|
import { FileWithNameModel } from '../files';
|
|
4
4
|
import { WorkspaceIndexedModel } from "./workspace";
|
|
5
5
|
export type UserForm = Pick<WorkspaceIndexedModel, "index_workspace"> & {
|
|
6
6
|
favorite: boolean;
|
|
7
7
|
component_type?: string;
|
|
8
|
+
issue_type?: string;
|
|
8
9
|
} & ({
|
|
9
10
|
owner_organization: number;
|
|
10
11
|
owner_user: undefined;
|
|
@@ -32,10 +33,9 @@ export interface UserFormRevision<TFields extends BaseSerializedObject = ISerial
|
|
|
32
33
|
revision: number | "Pending";
|
|
33
34
|
}
|
|
34
35
|
export type UserFormRevisionPayload = Omit<Payload<UserFormRevision>, "created_by" | "revision" | "form" | "submitted_at">;
|
|
35
|
-
export interface UserFormSubmission extends OfflineModel, SubmittedAtModel {
|
|
36
|
+
export interface UserFormSubmission extends OfflineModel, SubmittedAtModel, CreatedByModel {
|
|
36
37
|
form_revision: string;
|
|
37
38
|
values: Record<string, FieldValue>;
|
|
38
|
-
created_by: number;
|
|
39
39
|
issue?: string;
|
|
40
40
|
component?: string;
|
|
41
41
|
component_stage?: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CreatedByModel, IconModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
|
|
2
|
+
import { Organization } from "./organizations";
|
|
3
|
+
export interface IssueType extends OfflineModel, SubmittedAtModel, IconModel, CreatedByModel {
|
|
4
|
+
name?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
organization: Organization["id"];
|
|
7
|
+
}
|
|
8
|
+
export type IssueTypePayload = Payload<Omit<IssueType, "created_by" | "submitted_at" | "organization">>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Offline, OfflineModel } from "./base";
|
|
1
|
+
import { CreatedByModel, Offline, OfflineModel } from "./base";
|
|
2
2
|
import { IssuePriority, IssueStatus } from "../../enums";
|
|
3
3
|
import { WorkspaceIndexedModel } from "./workspace";
|
|
4
4
|
import { Marker } from "./geo";
|
|
@@ -37,13 +37,13 @@ export interface Issue extends Pick<WorkspaceIndexedModel, "index_workspace"> {
|
|
|
37
37
|
category?: string | null;
|
|
38
38
|
visible_in_workspaces: string[];
|
|
39
39
|
marker?: Marker | null;
|
|
40
|
+
issue_type?: string | null;
|
|
40
41
|
}
|
|
41
42
|
/**
|
|
42
43
|
* These details need to be provided by the frontend code before submitting to the backend.
|
|
43
44
|
*/
|
|
44
|
-
export interface SubmittedIssue extends OfflineModel {
|
|
45
|
+
export interface SubmittedIssue extends OfflineModel, CreatedByModel {
|
|
45
46
|
submitted_at: string;
|
|
46
|
-
created_by: number;
|
|
47
47
|
status: Exclude<Issue["status"], undefined>;
|
|
48
48
|
priority: Exclude<Issue["priority"], undefined>;
|
|
49
49
|
}
|
|
@@ -100,9 +100,8 @@ export interface IssueUpdateChangeTypes {
|
|
|
100
100
|
} | null;
|
|
101
101
|
due_date: string;
|
|
102
102
|
}
|
|
103
|
-
export interface IssueUpdate extends OfflineModel {
|
|
103
|
+
export interface IssueUpdate extends OfflineModel, CreatedByModel {
|
|
104
104
|
submitted_at: string;
|
|
105
|
-
created_by: User["id"];
|
|
106
105
|
issue: OfflineModel["offline_id"];
|
|
107
106
|
changes: Partial<Record<IssueUpdateChange, IssueUpdateChangeTypes[IssueUpdateChange]>>;
|
|
108
107
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Model } from "./base";
|
|
1
|
+
import { CreatedByModel, Model } from "./base";
|
|
2
2
|
import { OrganizationAccess } from "./access";
|
|
3
3
|
import { EmailDomain } from "./emailDomain";
|
|
4
4
|
import { User } from "./users";
|
|
5
5
|
import { License } from "./license";
|
|
6
|
-
export interface Organization extends Model {
|
|
6
|
+
export interface Organization extends Model, CreatedByModel {
|
|
7
7
|
id: number;
|
|
8
8
|
name: string;
|
|
9
|
-
created_by: number;
|
|
10
9
|
has_access: boolean;
|
|
11
10
|
}
|
|
12
11
|
export interface InitialOrganizationData {
|
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.
|
|
6
|
+
"version": "1.0.53-fix-not-send-org-in-payload.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|