@overmap-ai/core 1.0.29-org-switcher-and-bug-fixes.7 → 1.0.29
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 +37 -76
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +37 -76
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/classes/OutboxCoordinator.d.ts +1 -0
- package/dist/sdk/services/MainService.d.ts +0 -1
- package/dist/sdk/services/OrganizationService.d.ts +1 -3
- package/dist/store/slices/categorySlice.d.ts +21 -21
- package/dist/store/slices/issueSlice.d.ts +19 -19
- package/dist/store/slices/organizationAccessSlice.d.ts +5 -1
- package/dist/store/slices/organizationSlice.d.ts +0 -1
- package/dist/store/slices/projectFileSlice.d.ts +20 -20
- package/dist/store/slices/projectSlice.d.ts +0 -1
- package/dist/store/slices/userFormSlice.d.ts +10 -10
- package/dist/store/slices/workspaceSlice.d.ts +21 -21
- package/dist/store/store.d.ts +64 -63
- package/dist/typings/models/organizations.d.ts +0 -10
- package/dist/typings/models/store.d.ts +1 -0
- package/package.json +1 -1
|
@@ -12,7 +12,6 @@ export interface InitialAPIData {
|
|
|
12
12
|
})[];
|
|
13
13
|
organizations: Organization[];
|
|
14
14
|
user: User;
|
|
15
|
-
project_owners: User[];
|
|
16
15
|
}
|
|
17
16
|
export declare class MainService extends BaseApiService {
|
|
18
17
|
fetchInitialData(replaceExisting: boolean, uuid?: string): Promise<InitialAPIData>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { Organization
|
|
1
|
+
import { Organization } from "../../typings";
|
|
2
2
|
import { BaseApiService } from "./BaseApiService";
|
|
3
3
|
export declare class OrganizationService extends BaseApiService {
|
|
4
|
-
fetchInitialOrganizationData(organization_id: number, showLoading: boolean): Promise<InitialOrganizationData>;
|
|
5
|
-
_processInitialOrganizationData(data: InitialOrganizationData, showLoading: boolean): void;
|
|
6
4
|
create(name: string): Promise<Organization>;
|
|
7
5
|
update(organization: Organization): Promise<Organization>;
|
|
8
6
|
invite(organizationId: number, email: string): Promise<undefined>;
|
|
@@ -42,28 +42,28 @@ export declare const categorySlice: import("@reduxjs/toolkit").Slice<CategorySta
|
|
|
42
42
|
export declare const setCategories: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category[], "categories/setCategories">, addCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category, "categories/addCategory">, replaceCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category, "categories/replaceCategory">, patchCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Offline<Partial<Category>>, "categories/patchCategory">, removeCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "categories/removeCategory">, hideCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "categories/hideCategory">, hideAllCategories: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"categories/hideAllCategories">, unhideCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "categories/unhideCategory">, unhideAllCategories: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"categories/unhideAllCategories">, removeColor: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "categories/removeColor">, addOrReplaceCategories: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category[], "categories/addOrReplaceCategories">;
|
|
43
43
|
export declare const selectCategoryMapping: (state: RootState) => Record<string, Category>;
|
|
44
44
|
export declare const selectCategories: ((state: import("redux").EmptyObject & {
|
|
45
|
-
readonly versioning: import(
|
|
46
|
-
readonly fileReducer: import(
|
|
47
|
-
readonly authReducer: import(
|
|
45
|
+
readonly versioning: import('../slices/versioningSlice').VersioningState;
|
|
46
|
+
readonly fileReducer: import('..').FileState;
|
|
47
|
+
readonly authReducer: import('..').AuthState;
|
|
48
48
|
readonly categoryReducer: CategoryState;
|
|
49
|
-
readonly componentReducer: import(
|
|
50
|
-
readonly componentStageCompletionReducer: import(
|
|
51
|
-
readonly componentStageReducer: import(
|
|
52
|
-
readonly componentTypeReducer: import(
|
|
53
|
-
readonly issueReducer: import(
|
|
54
|
-
readonly mapReducer: import(
|
|
55
|
-
readonly organizationReducer: import(
|
|
56
|
-
readonly outboxReducer: import(
|
|
57
|
-
readonly projectReducer: import(
|
|
58
|
-
readonly projectAccessReducer: import(
|
|
59
|
-
readonly organizationAccessReducer: import(
|
|
60
|
-
readonly projectFileReducer: import(
|
|
61
|
-
readonly rehydratedReducer: import(
|
|
62
|
-
readonly settingReducer: import(
|
|
63
|
-
readonly userFormReducer: import(
|
|
64
|
-
readonly userReducer: import(
|
|
65
|
-
readonly workspaceReducer: import(
|
|
66
|
-
readonly emailDomainsReducer: import(
|
|
49
|
+
readonly componentReducer: import('..').ComponentState;
|
|
50
|
+
readonly componentStageCompletionReducer: import('..').ComponentStageCompletionState;
|
|
51
|
+
readonly componentStageReducer: import('..').ComponentStageState;
|
|
52
|
+
readonly componentTypeReducer: import('..').ComponentTypeState;
|
|
53
|
+
readonly issueReducer: import('..').IssueState;
|
|
54
|
+
readonly mapReducer: import('..').MapState;
|
|
55
|
+
readonly organizationReducer: import('..').OrganizationState;
|
|
56
|
+
readonly outboxReducer: import('..').OutboxState;
|
|
57
|
+
readonly projectReducer: import('..').ProjectState;
|
|
58
|
+
readonly projectAccessReducer: import('..').ProjectAccessState;
|
|
59
|
+
readonly organizationAccessReducer: import('..').OrganizationAccessState;
|
|
60
|
+
readonly projectFileReducer: import('..').ProjectFileState;
|
|
61
|
+
readonly rehydratedReducer: import('..').RehydratedState;
|
|
62
|
+
readonly settingReducer: import('..').SettingState;
|
|
63
|
+
readonly userFormReducer: import('..').UserFormState;
|
|
64
|
+
readonly userReducer: import('..').UserState;
|
|
65
|
+
readonly workspaceReducer: import('..').WorkspaceState;
|
|
66
|
+
readonly emailDomainsReducer: import('..').EmailDomainState;
|
|
67
67
|
} & {
|
|
68
68
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
69
69
|
}) => Category[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Category>, args_1: string | null) => Category[], {
|
|
@@ -78,28 +78,28 @@ export declare const selectFileAttachmentsOfIssue: (args: string) => (state: Roo
|
|
|
78
78
|
export declare const selectIssue: SelectorWithArgs<string, Stored<Issue> | undefined>;
|
|
79
79
|
export declare const selectIsFetchingInitialData: (state: RootState) => boolean;
|
|
80
80
|
export declare const selectAllAttachments: ((state: import("redux").EmptyObject & {
|
|
81
|
-
readonly versioning: import(
|
|
82
|
-
readonly fileReducer: import("
|
|
83
|
-
readonly authReducer: import("
|
|
81
|
+
readonly versioning: import('../slices/versioningSlice.ts').VersioningState;
|
|
82
|
+
readonly fileReducer: import("index.ts").FileState;
|
|
83
|
+
readonly authReducer: import("index.ts").AuthState;
|
|
84
84
|
readonly categoryReducer: import("./categorySlice.ts").CategoryState;
|
|
85
|
-
readonly componentReducer: import("
|
|
86
|
-
readonly componentStageCompletionReducer: import("
|
|
87
|
-
readonly componentStageReducer: import("
|
|
88
|
-
readonly componentTypeReducer: import("
|
|
85
|
+
readonly componentReducer: import("index.ts").ComponentState;
|
|
86
|
+
readonly componentStageCompletionReducer: import("index.ts").ComponentStageCompletionState;
|
|
87
|
+
readonly componentStageReducer: import("index.ts").ComponentStageState;
|
|
88
|
+
readonly componentTypeReducer: import("index.ts").ComponentTypeState;
|
|
89
89
|
readonly issueReducer: IssueState;
|
|
90
|
-
readonly mapReducer: import("
|
|
91
|
-
readonly organizationReducer: import("
|
|
92
|
-
readonly outboxReducer: import("
|
|
93
|
-
readonly projectReducer: import("
|
|
94
|
-
readonly projectAccessReducer: import("
|
|
95
|
-
readonly organizationAccessReducer: import("
|
|
96
|
-
readonly projectFileReducer: import("
|
|
97
|
-
readonly rehydratedReducer: import("
|
|
98
|
-
readonly settingReducer: import("
|
|
99
|
-
readonly userFormReducer: import("
|
|
100
|
-
readonly userReducer: import("
|
|
90
|
+
readonly mapReducer: import("index.ts").MapState;
|
|
91
|
+
readonly organizationReducer: import("index.ts").OrganizationState;
|
|
92
|
+
readonly outboxReducer: import("index.ts").OutboxState;
|
|
93
|
+
readonly projectReducer: import("index.ts").ProjectState;
|
|
94
|
+
readonly projectAccessReducer: import("index.ts").ProjectAccessState;
|
|
95
|
+
readonly organizationAccessReducer: import("index.ts").OrganizationAccessState;
|
|
96
|
+
readonly projectFileReducer: import("index.ts").ProjectFileState;
|
|
97
|
+
readonly rehydratedReducer: import("index.ts").RehydratedState;
|
|
98
|
+
readonly settingReducer: import("index.ts").SettingState;
|
|
99
|
+
readonly userFormReducer: import("index.ts").UserFormState;
|
|
100
|
+
readonly userReducer: import("index.ts").UserState;
|
|
101
101
|
readonly workspaceReducer: import("./workspaceSlice.ts").WorkspaceState;
|
|
102
|
-
readonly emailDomainsReducer: import("
|
|
102
|
+
readonly emailDomainsReducer: import("index.ts").EmailDomainState;
|
|
103
103
|
} & {
|
|
104
104
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
105
105
|
}) => Stored<IssueAttachment>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<IssueAttachment>>) => Stored<IssueAttachment>[], {
|
|
@@ -3,6 +3,7 @@ import { RootState, Selector, SelectorWithArgs } from '../../typings';
|
|
|
3
3
|
import { OfflineIdMapping, OrganizationAccess, User } from '../../typings/models';
|
|
4
4
|
export interface OrganizationAccessState {
|
|
5
5
|
organizationAccesses: OfflineIdMapping<OrganizationAccess>;
|
|
6
|
+
activeOrganizationAccessId: string | null;
|
|
6
7
|
}
|
|
7
8
|
export declare const organizationAccessSlice: import("@reduxjs/toolkit").Slice<OrganizationAccessState, {
|
|
8
9
|
setOrganizationAccesses: (state: import("immer/dist/internal.js").WritableDraft<OrganizationAccessState>, action: {
|
|
@@ -14,8 +15,11 @@ export declare const organizationAccessSlice: import("@reduxjs/toolkit").Slice<O
|
|
|
14
15
|
removeOrganizationAccess: (state: import("immer/dist/internal.js").WritableDraft<OrganizationAccessState>, action: {
|
|
15
16
|
payload: OrganizationAccess;
|
|
16
17
|
}) => void;
|
|
18
|
+
setActiveOrganizationAccessId: (state: import("immer/dist/internal.js").WritableDraft<OrganizationAccessState>, action: {
|
|
19
|
+
payload: string | null;
|
|
20
|
+
}) => void;
|
|
17
21
|
}, "organizationAccess">;
|
|
18
|
-
export declare const setOrganizationAccesses: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess[], "organizationAccess/setOrganizationAccesses">, updateOrganizationAccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/updateOrganizationAccess">, removeOrganizationAccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/removeOrganizationAccess">;
|
|
22
|
+
export declare const setOrganizationAccesses: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess[], "organizationAccess/setOrganizationAccesses">, updateOrganizationAccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/updateOrganizationAccess">, removeOrganizationAccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/removeOrganizationAccess">, setActiveOrganizationAccessId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "organizationAccess/setActiveOrganizationAccessId">;
|
|
19
23
|
export declare const selectOrganizationAccesses: (state: RootState) => OfflineIdMapping<OrganizationAccess>;
|
|
20
24
|
export declare const selectOrganizationAccess: SelectorWithArgs<string, OrganizationAccess>;
|
|
21
25
|
export declare const selectActiveOrganizationAccess: Selector<OrganizationAccess | null>;
|
|
@@ -19,7 +19,6 @@ export declare const organizationSlice: import("@reduxjs/toolkit").Slice<Organiz
|
|
|
19
19
|
export declare const setOrganizations: import("@reduxjs/toolkit").ActionCreatorWithPayload<Organization[], "organizations/setOrganizations">, setActiveOrganizationId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "organizations/setActiveOrganizationId">, updateActiveOrganization: import("@reduxjs/toolkit").ActionCreatorWithPayload<Organization, "organizations/updateActiveOrganization">;
|
|
20
20
|
export declare const selectActiveOrganizationId: Selector<number | null>;
|
|
21
21
|
export declare const selectOrganizations: Selector<Organization[]>;
|
|
22
|
-
export declare const selectOrganizationsWithAccess: Selector<Organization[]>;
|
|
23
22
|
export declare const selectActiveOrganization: Selector<Organization | null>;
|
|
24
23
|
export declare const selectOrganizationUsersIds: Selector<number[]>;
|
|
25
24
|
export declare const selectOrganizationUsersAsMapping: Selector<Record<number, User>>;
|
|
@@ -50,28 +50,28 @@ export declare const selectEnabledProjectFiles: (state: RootState) => Record<str
|
|
|
50
50
|
export declare const selectProjectFileVisibility: Selector<Record<string, boolean>>;
|
|
51
51
|
export declare const selectEnabledProjectFileMapping: (state: RootState) => Record<string, ProjectFile>;
|
|
52
52
|
export declare const selectProjectFiles: ((state: import("redux").EmptyObject & {
|
|
53
|
-
readonly versioning: import(
|
|
54
|
-
readonly fileReducer: import("
|
|
55
|
-
readonly authReducer: import("
|
|
56
|
-
readonly categoryReducer: import("
|
|
57
|
-
readonly componentReducer: import("
|
|
58
|
-
readonly componentStageCompletionReducer: import("
|
|
59
|
-
readonly componentStageReducer: import("
|
|
60
|
-
readonly componentTypeReducer: import("
|
|
61
|
-
readonly issueReducer: import("
|
|
62
|
-
readonly mapReducer: import("
|
|
63
|
-
readonly organizationReducer: import("
|
|
64
|
-
readonly outboxReducer: import("
|
|
53
|
+
readonly versioning: import('../slices/versioningSlice.ts').VersioningState;
|
|
54
|
+
readonly fileReducer: import("index.ts").FileState;
|
|
55
|
+
readonly authReducer: import("index.ts").AuthState;
|
|
56
|
+
readonly categoryReducer: import("index.ts").CategoryState;
|
|
57
|
+
readonly componentReducer: import("index.ts").ComponentState;
|
|
58
|
+
readonly componentStageCompletionReducer: import("index.ts").ComponentStageCompletionState;
|
|
59
|
+
readonly componentStageReducer: import("index.ts").ComponentStageState;
|
|
60
|
+
readonly componentTypeReducer: import("index.ts").ComponentTypeState;
|
|
61
|
+
readonly issueReducer: import("index.ts").IssueState;
|
|
62
|
+
readonly mapReducer: import("index.ts").MapState;
|
|
63
|
+
readonly organizationReducer: import("index.ts").OrganizationState;
|
|
64
|
+
readonly outboxReducer: import("index.ts").OutboxState;
|
|
65
65
|
readonly projectReducer: import("./projectSlice.ts").ProjectState;
|
|
66
|
-
readonly projectAccessReducer: import("
|
|
67
|
-
readonly organizationAccessReducer: import("
|
|
66
|
+
readonly projectAccessReducer: import("index.ts").ProjectAccessState;
|
|
67
|
+
readonly organizationAccessReducer: import("index.ts").OrganizationAccessState;
|
|
68
68
|
readonly projectFileReducer: ProjectFileState;
|
|
69
|
-
readonly rehydratedReducer: import("
|
|
70
|
-
readonly settingReducer: import("
|
|
71
|
-
readonly userFormReducer: import("
|
|
72
|
-
readonly userReducer: import("
|
|
73
|
-
readonly workspaceReducer: import("
|
|
74
|
-
readonly emailDomainsReducer: import("
|
|
69
|
+
readonly rehydratedReducer: import("index.ts").RehydratedState;
|
|
70
|
+
readonly settingReducer: import("index.ts").SettingState;
|
|
71
|
+
readonly userFormReducer: import("index.ts").UserFormState;
|
|
72
|
+
readonly userReducer: import("index.ts").UserState;
|
|
73
|
+
readonly workspaceReducer: import("index.ts").WorkspaceState;
|
|
74
|
+
readonly emailDomainsReducer: import("index.ts").EmailDomainState;
|
|
75
75
|
} & {
|
|
76
76
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
77
77
|
}) => ProjectFile[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, ProjectFile>, args_1: number | null) => ProjectFile[], {
|
|
@@ -32,7 +32,6 @@ export declare const selectProjects: Selector<Record<number, Project>>;
|
|
|
32
32
|
export declare const selectActiveProjectId: (state: RootState) => number | null;
|
|
33
33
|
export declare const selectActiveProject: (state: RootState) => Project | null;
|
|
34
34
|
export declare const selectRecentProjects: (state: RootState) => number[];
|
|
35
|
-
export declare const selectSortedProjects: Selector<Project[]>;
|
|
36
35
|
export declare const selectCreateProjectType: (state: RootState) => ProjectType;
|
|
37
36
|
export declare const projectReducer: Reducer<ProjectState>;
|
|
38
37
|
export declare const selectProjectUsersIds: Selector<number[]>;
|
|
@@ -60,51 +60,51 @@ export declare const userFormSlice: import("@reduxjs/toolkit").Slice<UserFormSta
|
|
|
60
60
|
payload: string;
|
|
61
61
|
}) => void;
|
|
62
62
|
}, "userForms">;
|
|
63
|
-
export declare const addUserForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<(Pick<import(
|
|
63
|
+
export declare const addUserForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<(Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
|
|
64
64
|
favorite: boolean;
|
|
65
65
|
} & {
|
|
66
66
|
owner_organization: number;
|
|
67
67
|
owner_user: undefined;
|
|
68
68
|
} & {
|
|
69
69
|
offline_id: string;
|
|
70
|
-
} & import(
|
|
70
|
+
} & import('../../typings/models/base').OfflineModel & {
|
|
71
71
|
created_by: number;
|
|
72
72
|
submitted_at: string;
|
|
73
|
-
}) | (Pick<import(
|
|
73
|
+
}) | (Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
|
|
74
74
|
favorite: boolean;
|
|
75
75
|
} & {
|
|
76
76
|
owner_organization: undefined;
|
|
77
77
|
owner_user: number;
|
|
78
78
|
} & {
|
|
79
79
|
offline_id: string;
|
|
80
|
-
} & import(
|
|
80
|
+
} & import('../../typings/models/base').OfflineModel & {
|
|
81
81
|
created_by: number;
|
|
82
82
|
submitted_at: string;
|
|
83
|
-
}), "userForms/addUserForm">, addUserForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<((Pick<import(
|
|
83
|
+
}), "userForms/addUserForm">, addUserForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<((Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
|
|
84
84
|
favorite: boolean;
|
|
85
85
|
} & {
|
|
86
86
|
owner_organization: number;
|
|
87
87
|
owner_user: undefined;
|
|
88
88
|
} & {
|
|
89
89
|
offline_id: string;
|
|
90
|
-
} & import(
|
|
90
|
+
} & import('../../typings/models/base').OfflineModel & {
|
|
91
91
|
created_by: number;
|
|
92
92
|
submitted_at: string;
|
|
93
|
-
}) | (Pick<import(
|
|
93
|
+
}) | (Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
|
|
94
94
|
favorite: boolean;
|
|
95
95
|
} & {
|
|
96
96
|
owner_organization: undefined;
|
|
97
97
|
owner_user: number;
|
|
98
98
|
} & {
|
|
99
99
|
offline_id: string;
|
|
100
|
-
} & import(
|
|
100
|
+
} & import('../../typings/models/base').OfflineModel & {
|
|
101
101
|
created_by: number;
|
|
102
102
|
submitted_at: string;
|
|
103
|
-
}))[], "userForms/addUserForms">, addUserFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormRevision<import(
|
|
103
|
+
}))[], "userForms/addUserForms">, addUserFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormRevision<import('../../forms').ISerializedField>[], "userForms/addUserFormRevisions">, addUserFormSubmission: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormSubmission, "userForms/addUserFormSubmission">, addUserFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormSubmission[], "userForms/addUserFormSubmissions">, deleteUserFormSubmission: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "userForms/deleteUserFormSubmission">, deleteUserFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormSubmission[], "userForms/deleteUserFormSubmissions">, favoriteForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
104
104
|
formId: string;
|
|
105
105
|
}, "userForms/favoriteForm">, unfavoriteForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
106
106
|
formId: string;
|
|
107
|
-
}, "userForms/unfavoriteForm">, deleteUserForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "userForms/deleteUserForm">, deleteUserFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "userForms/deleteUserFormRevision">, deleteUserFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormRevision<import(
|
|
107
|
+
}, "userForms/unfavoriteForm">, deleteUserForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "userForms/deleteUserForm">, deleteUserFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "userForms/deleteUserFormRevision">, deleteUserFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormRevision<import('../../forms').ISerializedField>[], "userForms/deleteUserFormRevisions">, setUserFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormSubmission[], "userForms/setUserFormSubmissions">, addUserFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormRevision<import('../../forms').ISerializedField>, "userForms/addUserFormRevision">, addUserFormSubmissionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormSubmissionAttachment, "userForms/addUserFormSubmissionAttachment">, setUserFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormSubmissionAttachment[], "userForms/setUserFormSubmissionAttachments">;
|
|
108
108
|
export type UserFormSearchArgs = SearchArgs<{
|
|
109
109
|
/** `undefined` means don't filter by favorite. `boolean` filters forms. */
|
|
110
110
|
favorites?: boolean;
|
|
@@ -28,28 +28,28 @@ export declare const workspaceSlice: import("@reduxjs/toolkit").Slice<WorkspaceS
|
|
|
28
28
|
export declare const setWorkspaces: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, Workspace>, "workspace/setWorkspaces">, addOrReplaceWorkspaces: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, Workspace>, "workspace/addOrReplaceWorkspaces">, addWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<Workspace, "workspace/addWorkspace">, setActiveWorkspaceId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "workspace/setActiveWorkspaceId">, removeWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "workspace/removeWorkspace">;
|
|
29
29
|
export declare const selectWorkspaceMapping: Selector<Record<string, Workspace>>;
|
|
30
30
|
export declare const selectWorkspaces: ((state: import("redux").EmptyObject & {
|
|
31
|
-
readonly versioning: import(
|
|
32
|
-
readonly fileReducer: import(
|
|
33
|
-
readonly authReducer: import(
|
|
34
|
-
readonly categoryReducer: import(
|
|
35
|
-
readonly componentReducer: import(
|
|
36
|
-
readonly componentStageCompletionReducer: import(
|
|
37
|
-
readonly componentStageReducer: import(
|
|
38
|
-
readonly componentTypeReducer: import(
|
|
39
|
-
readonly issueReducer: import(
|
|
40
|
-
readonly mapReducer: import(
|
|
41
|
-
readonly organizationReducer: import(
|
|
42
|
-
readonly outboxReducer: import(
|
|
43
|
-
readonly projectReducer: import(
|
|
44
|
-
readonly projectAccessReducer: import(
|
|
45
|
-
readonly organizationAccessReducer: import(
|
|
46
|
-
readonly projectFileReducer: import(
|
|
47
|
-
readonly rehydratedReducer: import(
|
|
48
|
-
readonly settingReducer: import(
|
|
49
|
-
readonly userFormReducer: import(
|
|
50
|
-
readonly userReducer: import(
|
|
31
|
+
readonly versioning: import('../slices/versioningSlice').VersioningState;
|
|
32
|
+
readonly fileReducer: import('..').FileState;
|
|
33
|
+
readonly authReducer: import('..').AuthState;
|
|
34
|
+
readonly categoryReducer: import('..').CategoryState;
|
|
35
|
+
readonly componentReducer: import('..').ComponentState;
|
|
36
|
+
readonly componentStageCompletionReducer: import('..').ComponentStageCompletionState;
|
|
37
|
+
readonly componentStageReducer: import('..').ComponentStageState;
|
|
38
|
+
readonly componentTypeReducer: import('..').ComponentTypeState;
|
|
39
|
+
readonly issueReducer: import('..').IssueState;
|
|
40
|
+
readonly mapReducer: import('..').MapState;
|
|
41
|
+
readonly organizationReducer: import('..').OrganizationState;
|
|
42
|
+
readonly outboxReducer: import('..').OutboxState;
|
|
43
|
+
readonly projectReducer: import('..').ProjectState;
|
|
44
|
+
readonly projectAccessReducer: import('..').ProjectAccessState;
|
|
45
|
+
readonly organizationAccessReducer: import('..').OrganizationAccessState;
|
|
46
|
+
readonly projectFileReducer: import('..').ProjectFileState;
|
|
47
|
+
readonly rehydratedReducer: import('..').RehydratedState;
|
|
48
|
+
readonly settingReducer: import('..').SettingState;
|
|
49
|
+
readonly userFormReducer: import('..').UserFormState;
|
|
50
|
+
readonly userReducer: import('..').UserState;
|
|
51
51
|
readonly workspaceReducer: WorkspaceState;
|
|
52
|
-
readonly emailDomainsReducer: import(
|
|
52
|
+
readonly emailDomainsReducer: import('..').EmailDomainState;
|
|
53
53
|
} & {
|
|
54
54
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
55
55
|
}) => Workspace[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Workspace>) => Workspace[], {
|
package/dist/store/store.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@redux-offline/redux-offline" />
|
|
1
2
|
import { AnyAction, Reducer } from "redux";
|
|
2
3
|
import { Config, OfflineAction, OfflineMetadata, OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
3
4
|
import request from "superagent";
|
|
@@ -5,51 +6,51 @@ import { type OfflineMetaEffect, type OvermapSDK, RequestDetails } from "../sdk"
|
|
|
5
6
|
import { RootState } from "../typings";
|
|
6
7
|
export declare const overmapReducers: {
|
|
7
8
|
readonly versioning: Reducer<import("./slices/versioningSlice").VersioningState>;
|
|
8
|
-
readonly fileReducer: Reducer<import(
|
|
9
|
-
readonly authReducer: Reducer<import(
|
|
10
|
-
readonly categoryReducer: Reducer<import(
|
|
11
|
-
readonly componentReducer: Reducer<import(
|
|
12
|
-
readonly componentStageCompletionReducer: Reducer<import(
|
|
13
|
-
readonly componentStageReducer: Reducer<import(
|
|
14
|
-
readonly componentTypeReducer: Reducer<import(
|
|
15
|
-
readonly issueReducer: Reducer<import(
|
|
16
|
-
readonly mapReducer: Reducer<import(
|
|
17
|
-
readonly organizationReducer: Reducer<import(
|
|
18
|
-
readonly outboxReducer: Reducer<import(
|
|
19
|
-
readonly projectReducer: Reducer<import(
|
|
20
|
-
readonly projectAccessReducer: Reducer<import(
|
|
21
|
-
readonly organizationAccessReducer: Reducer<import(
|
|
22
|
-
readonly projectFileReducer: Reducer<import(
|
|
23
|
-
readonly rehydratedReducer: Reducer<import(
|
|
24
|
-
readonly settingReducer: Reducer<import(
|
|
25
|
-
readonly userFormReducer: Reducer<import(
|
|
26
|
-
readonly userReducer: Reducer<import(
|
|
27
|
-
readonly workspaceReducer: Reducer<import(
|
|
28
|
-
readonly emailDomainsReducer: Reducer<import(
|
|
9
|
+
readonly fileReducer: Reducer<import('./slices/fileSlice').FileState>;
|
|
10
|
+
readonly authReducer: Reducer<import('./slices/authSlice').AuthState>;
|
|
11
|
+
readonly categoryReducer: Reducer<import('./slices/categorySlice').CategoryState>;
|
|
12
|
+
readonly componentReducer: Reducer<import('./slices/componentSlice').ComponentState>;
|
|
13
|
+
readonly componentStageCompletionReducer: Reducer<import('./slices/ComponentStageCompletionSlice').ComponentStageCompletionState>;
|
|
14
|
+
readonly componentStageReducer: Reducer<import('./slices/componentStageSlice').ComponentStageState>;
|
|
15
|
+
readonly componentTypeReducer: Reducer<import('./slices/componentTypeSlice').ComponentTypeState>;
|
|
16
|
+
readonly issueReducer: Reducer<import('./slices/issueSlice').IssueState>;
|
|
17
|
+
readonly mapReducer: Reducer<import('./slices/mapSlice').MapState>;
|
|
18
|
+
readonly organizationReducer: Reducer<import('./slices/organizationSlice').OrganizationState>;
|
|
19
|
+
readonly outboxReducer: Reducer<import('./slices/outboxSlice').OutboxState>;
|
|
20
|
+
readonly projectReducer: Reducer<import('./slices/projectSlice').ProjectState>;
|
|
21
|
+
readonly projectAccessReducer: Reducer<import('./slices/projectAccessSlice').ProjectAccessState>;
|
|
22
|
+
readonly organizationAccessReducer: Reducer<import('./slices/organizationAccessSlice').OrganizationAccessState>;
|
|
23
|
+
readonly projectFileReducer: Reducer<import('./slices/projectFileSlice').ProjectFileState>;
|
|
24
|
+
readonly rehydratedReducer: Reducer<import('./slices/rehydratedSlice').RehydratedState>;
|
|
25
|
+
readonly settingReducer: Reducer<import('./slices/settingsSlice').SettingState>;
|
|
26
|
+
readonly userFormReducer: Reducer<import('./slices/userFormSlice').UserFormState>;
|
|
27
|
+
readonly userReducer: Reducer<import('./slices/userSlice').UserState>;
|
|
28
|
+
readonly workspaceReducer: Reducer<import('./slices/workspaceSlice').WorkspaceState>;
|
|
29
|
+
readonly emailDomainsReducer: Reducer<import('./slices/emailDomainsSlice').EmailDomainState>;
|
|
29
30
|
};
|
|
30
31
|
export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
31
32
|
readonly versioning: import("./slices/versioningSlice").VersioningState;
|
|
32
|
-
readonly fileReducer: import(
|
|
33
|
-
readonly authReducer: import(
|
|
34
|
-
readonly categoryReducer: import(
|
|
35
|
-
readonly componentReducer: import(
|
|
36
|
-
readonly componentStageCompletionReducer: import(
|
|
37
|
-
readonly componentStageReducer: import(
|
|
38
|
-
readonly componentTypeReducer: import(
|
|
39
|
-
readonly issueReducer: import(
|
|
40
|
-
readonly mapReducer: import(
|
|
41
|
-
readonly organizationReducer: import(
|
|
42
|
-
readonly outboxReducer: import(
|
|
43
|
-
readonly projectReducer: import(
|
|
44
|
-
readonly projectAccessReducer: import(
|
|
45
|
-
readonly organizationAccessReducer: import(
|
|
46
|
-
readonly projectFileReducer: import(
|
|
47
|
-
readonly rehydratedReducer: import(
|
|
48
|
-
readonly settingReducer: import(
|
|
49
|
-
readonly userFormReducer: import(
|
|
50
|
-
readonly userReducer: import(
|
|
51
|
-
readonly workspaceReducer: import(
|
|
52
|
-
readonly emailDomainsReducer: import(
|
|
33
|
+
readonly fileReducer: import('./slices/fileSlice').FileState;
|
|
34
|
+
readonly authReducer: import('./slices/authSlice').AuthState;
|
|
35
|
+
readonly categoryReducer: import('./slices/categorySlice').CategoryState;
|
|
36
|
+
readonly componentReducer: import('./slices/componentSlice').ComponentState;
|
|
37
|
+
readonly componentStageCompletionReducer: import('./slices/ComponentStageCompletionSlice').ComponentStageCompletionState;
|
|
38
|
+
readonly componentStageReducer: import('./slices/componentStageSlice').ComponentStageState;
|
|
39
|
+
readonly componentTypeReducer: import('./slices/componentTypeSlice').ComponentTypeState;
|
|
40
|
+
readonly issueReducer: import('./slices/issueSlice').IssueState;
|
|
41
|
+
readonly mapReducer: import('./slices/mapSlice').MapState;
|
|
42
|
+
readonly organizationReducer: import('./slices/organizationSlice').OrganizationState;
|
|
43
|
+
readonly outboxReducer: import('./slices/outboxSlice').OutboxState;
|
|
44
|
+
readonly projectReducer: import('./slices/projectSlice').ProjectState;
|
|
45
|
+
readonly projectAccessReducer: import('./slices/projectAccessSlice').ProjectAccessState;
|
|
46
|
+
readonly organizationAccessReducer: import('./slices/organizationAccessSlice').OrganizationAccessState;
|
|
47
|
+
readonly projectFileReducer: import('./slices/projectFileSlice').ProjectFileState;
|
|
48
|
+
readonly rehydratedReducer: import('./slices/rehydratedSlice').RehydratedState;
|
|
49
|
+
readonly settingReducer: import('./slices/settingsSlice').SettingState;
|
|
50
|
+
readonly userFormReducer: import('./slices/userFormSlice').UserFormState;
|
|
51
|
+
readonly userReducer: import('./slices/userSlice').UserState;
|
|
52
|
+
readonly workspaceReducer: import('./slices/workspaceSlice').WorkspaceState;
|
|
53
|
+
readonly emailDomainsReducer: import('./slices/emailDomainsSlice').EmailDomainState;
|
|
53
54
|
}>, AnyAction>;
|
|
54
55
|
export declare const resetStore = "RESET";
|
|
55
56
|
export declare const rootReducer: Reducer<RootState>;
|
|
@@ -71,27 +72,27 @@ export declare const dequeue: Config["queue"]["dequeue"];
|
|
|
71
72
|
export declare const overmapEnhancer: (...args: any[]) => unknown;
|
|
72
73
|
export declare const defaultStore: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<import("redux").EmptyObject & {
|
|
73
74
|
readonly versioning: import("./slices/versioningSlice").VersioningState;
|
|
74
|
-
readonly fileReducer: import(
|
|
75
|
-
readonly authReducer: import(
|
|
76
|
-
readonly categoryReducer: import(
|
|
77
|
-
readonly componentReducer: import(
|
|
78
|
-
readonly componentStageCompletionReducer: import(
|
|
79
|
-
readonly componentStageReducer: import(
|
|
80
|
-
readonly componentTypeReducer: import(
|
|
81
|
-
readonly issueReducer: import(
|
|
82
|
-
readonly mapReducer: import(
|
|
83
|
-
readonly organizationReducer: import(
|
|
84
|
-
readonly outboxReducer: import(
|
|
85
|
-
readonly projectReducer: import(
|
|
86
|
-
readonly projectAccessReducer: import(
|
|
87
|
-
readonly organizationAccessReducer: import(
|
|
88
|
-
readonly projectFileReducer: import(
|
|
89
|
-
readonly rehydratedReducer: import(
|
|
90
|
-
readonly settingReducer: import(
|
|
91
|
-
readonly userFormReducer: import(
|
|
92
|
-
readonly userReducer: import(
|
|
93
|
-
readonly workspaceReducer: import(
|
|
94
|
-
readonly emailDomainsReducer: import(
|
|
75
|
+
readonly fileReducer: import('./slices/fileSlice').FileState;
|
|
76
|
+
readonly authReducer: import('./slices/authSlice').AuthState;
|
|
77
|
+
readonly categoryReducer: import('./slices/categorySlice').CategoryState;
|
|
78
|
+
readonly componentReducer: import('./slices/componentSlice').ComponentState;
|
|
79
|
+
readonly componentStageCompletionReducer: import('./slices/ComponentStageCompletionSlice').ComponentStageCompletionState;
|
|
80
|
+
readonly componentStageReducer: import('./slices/componentStageSlice').ComponentStageState;
|
|
81
|
+
readonly componentTypeReducer: import('./slices/componentTypeSlice').ComponentTypeState;
|
|
82
|
+
readonly issueReducer: import('./slices/issueSlice').IssueState;
|
|
83
|
+
readonly mapReducer: import('./slices/mapSlice').MapState;
|
|
84
|
+
readonly organizationReducer: import('./slices/organizationSlice').OrganizationState;
|
|
85
|
+
readonly outboxReducer: import('./slices/outboxSlice').OutboxState;
|
|
86
|
+
readonly projectReducer: import('./slices/projectSlice').ProjectState;
|
|
87
|
+
readonly projectAccessReducer: import('./slices/projectAccessSlice').ProjectAccessState;
|
|
88
|
+
readonly organizationAccessReducer: import('./slices/organizationAccessSlice').OrganizationAccessState;
|
|
89
|
+
readonly projectFileReducer: import('./slices/projectFileSlice').ProjectFileState;
|
|
90
|
+
readonly rehydratedReducer: import('./slices/rehydratedSlice').RehydratedState;
|
|
91
|
+
readonly settingReducer: import('./slices/settingsSlice').SettingState;
|
|
92
|
+
readonly userFormReducer: import('./slices/userFormSlice').UserFormState;
|
|
93
|
+
readonly userReducer: import('./slices/userSlice').UserState;
|
|
94
|
+
readonly workspaceReducer: import('./slices/workspaceSlice').WorkspaceState;
|
|
95
|
+
readonly emailDomainsReducer: import('./slices/emailDomainsSlice').EmailDomainState;
|
|
95
96
|
} & {
|
|
96
97
|
offline: OfflineState;
|
|
97
98
|
}, AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<RootState, AnyAction>]>>;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { Model } from "./base";
|
|
2
|
-
import { OrganizationAccess } from "./access.ts";
|
|
3
|
-
import { EmailDomain } from "./emailDomain.ts";
|
|
4
|
-
import { User } from "./users.ts";
|
|
5
2
|
export interface Organization extends Model {
|
|
6
3
|
id: number;
|
|
7
4
|
name: string;
|
|
8
5
|
created_by: number;
|
|
9
|
-
has_access: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface InitialOrganizationData {
|
|
12
|
-
organization: Organization;
|
|
13
|
-
users: User[];
|
|
14
|
-
organization_accesses: OrganizationAccess[];
|
|
15
|
-
email_domains: EmailDomain[];
|
|
16
6
|
}
|
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.29
|
|
6
|
+
"version": "1.0.29",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|