@overmap-ai/core 1.0.78-bulk-project-access.2 → 1.0.78-bump-attachment-services-page-size.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 +3191 -3200
- package/dist/overmap-core.umd.cjs +7 -7
- package/dist/sdk/constants.d.ts +3 -4
- package/dist/sdk/services/FormIdentifierValueService.d.ts +2 -2
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +2 -2
- package/dist/sdk/services/FormSubmissionService.d.ts +2 -2
- package/dist/store/slices/formSubmissionSlice.d.ts +1 -3
- package/dist/typings/models/assets.d.ts +4 -3
- package/dist/typings/models/base.d.ts +3 -0
- package/dist/typings/models/forms.d.ts +0 -3
- package/dist/typings/models/issues.d.ts +2 -2
- package/dist/typings/models/teams.d.ts +2 -2
- package/package.json +1 -1
package/dist/sdk/constants.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/** Default pagination
|
|
2
|
-
export declare const PAGINATION_MAX_PAGE_SIZE = 50000;
|
|
3
|
-
/** Default pagination page size as */
|
|
1
|
+
/** Default pagination page size */
|
|
4
2
|
export declare const DEFAULT_PAGINATION_PAGE_SIZE = 1000;
|
|
5
|
-
|
|
3
|
+
/** Attachment model pagination page size */
|
|
4
|
+
export declare const ATTACHMENT_PAGINATION_PAGE_SIZE = 200;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import { FormIdentifierValue,
|
|
2
|
+
import { FormIdentifierValue, Organization, Payload, UUID } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { OptimisticModelResult } from '../typings';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
@@ -7,5 +7,5 @@ export declare abstract class FormIdentifierValueService<TState extends OvermapR
|
|
|
7
7
|
add(payload: Payload<FormIdentifierValue>): OptimisticModelResult<FormIdentifierValue>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<FormIdentifierValue>>>): OptimisticModelResult<FormIdentifierValue>;
|
|
9
9
|
delete(uuid: FormIdentifierValue["uuid"]): Promise<undefined>;
|
|
10
|
-
refreshStore(
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<FormIdentifierValue[]>;
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import { FormSubmission, FormSubmissionAttachment,
|
|
2
|
+
import { FormSubmission, FormSubmissionAttachment, Organization } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
5
5
|
import { BaseUploadService } from './BaseUploadService';
|
|
@@ -10,5 +10,5 @@ export declare abstract class FormSubmissionAttachmentService<TState extends Ove
|
|
|
10
10
|
file: File;
|
|
11
11
|
}[]): Promise<OptimisticMultipleModelResult<FormSubmissionAttachment>>;
|
|
12
12
|
bulkDelete(uuids: FormSubmissionAttachment["uuid"][]): Promise<void>;
|
|
13
|
-
refreshStore(
|
|
13
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<FormSubmissionAttachment[]>;
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import { FormSubmission,
|
|
2
|
+
import { FormSubmission, Organization, Payload, UUID } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { OptimisticModelResult } from '../typings';
|
|
5
5
|
import { BaseUploadService } from './BaseUploadService';
|
|
@@ -7,5 +7,5 @@ export declare abstract class FormSubmissionService<TState extends OvermapRootSt
|
|
|
7
7
|
add(payload: Payload<FormSubmission>): OptimisticModelResult<FormSubmission>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<FormSubmission>>>): OptimisticModelResult<FormSubmission>;
|
|
9
9
|
delete(uuid: FormSubmission["uuid"]): Promise<undefined>;
|
|
10
|
-
refreshStore(
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<FormSubmission[]>;
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Form, FormSubmission, Stored } from '../../typings';
|
|
2
2
|
import { ModelState } from '../adapters';
|
|
3
3
|
import { OvermapSelector, OvermapSelectorWithArgs } from '../typings';
|
|
4
4
|
export type FormSubmissionState = ModelState<FormSubmission["uuid"], Stored<FormSubmission>>;
|
|
@@ -45,6 +45,4 @@ export declare const selectFormSubmissionsMapping: OvermapSelector<FormSubmissio
|
|
|
45
45
|
export declare const selectFormSubmissions: OvermapSelector<Stored<FormSubmission>[]>;
|
|
46
46
|
export declare const selectFormSubmissionById: OvermapSelectorWithArgs<FormSubmission["uuid"], Stored<FormSubmission> | undefined>;
|
|
47
47
|
export declare const selectFormSubmissionsOfForm: OvermapSelectorWithArgs<Form["uuid"], Stored<FormSubmission>[]>;
|
|
48
|
-
export declare const selectFormSubmissionsOfIssue: OvermapSelectorWithArgs<Issue["uuid"], Stored<FormSubmission>[]>;
|
|
49
|
-
export declare const selectFormSubmissionsOfAsset: OvermapSelectorWithArgs<Asset["uuid"], Stored<FormSubmission>[]>;
|
|
50
48
|
export declare const formSubmissionReducer: import('redux').Reducer<FormSubmissionState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SerializedCondition } from '@overmap-ai/forms';
|
|
2
|
-
import { ColorModel, CreatedByModel, GeometryModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
|
+
import { AbbreviationModel, ColorModel, CreatedByModel, GeometryModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
4
4
|
export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, GeometryModel, IndexedModel {
|
|
5
5
|
asset_type: string;
|
|
@@ -7,12 +7,13 @@ export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, Cr
|
|
|
7
7
|
description?: string;
|
|
8
8
|
project: string;
|
|
9
9
|
}
|
|
10
|
-
export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel {
|
|
10
|
+
export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
11
11
|
organization: string;
|
|
12
12
|
name?: string;
|
|
13
13
|
description?: string;
|
|
14
|
+
order: number;
|
|
14
15
|
}
|
|
15
|
-
export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel {
|
|
16
|
+
export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
16
17
|
organization: string;
|
|
17
18
|
name?: string | null;
|
|
18
19
|
description?: string | null;
|
|
@@ -11,9 +11,6 @@ export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedMo
|
|
|
11
11
|
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
12
12
|
export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel, IndexedModel {
|
|
13
13
|
form_revision: string;
|
|
14
|
-
project: string;
|
|
15
|
-
issue?: string | null;
|
|
16
|
-
asset?: string | null;
|
|
17
14
|
}
|
|
18
15
|
export interface FormSubmissionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesAttachmentModel {
|
|
19
16
|
form_submission: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IssuePriority, IssueStatus, IssueUpdateChange } from '../../enums';
|
|
2
2
|
import { CSSColor } from '../colors';
|
|
3
|
-
import { CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
|
+
import { AbbreviationModel, CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
4
4
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
5
5
|
import { Organization } from './organizations';
|
|
6
6
|
import { User } from './users';
|
|
@@ -58,7 +58,7 @@ export interface IssueTypeFieldValues extends UUIDModel, SubmittedAtModel, Times
|
|
|
58
58
|
export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
59
59
|
field_values: string;
|
|
60
60
|
}
|
|
61
|
-
export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, TimestampedModel, CreatedByModel {
|
|
61
|
+
export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, TimestampedModel, CreatedByModel, AbbreviationModel {
|
|
62
62
|
name?: string;
|
|
63
63
|
description?: string;
|
|
64
64
|
organization: Organization["uuid"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
1
|
+
import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
2
|
import { Organization, OrganizationAccess } from './organizations';
|
|
3
3
|
import { User } from './users';
|
|
4
|
-
export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
|
|
4
|
+
export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel, AbbreviationModel {
|
|
5
5
|
name: string;
|
|
6
6
|
parent: Team["uuid"] | null;
|
|
7
7
|
organization: Organization["uuid"];
|
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.78-
|
|
6
|
+
"version": "1.0.78-bump-attachment-services-page-size.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|