@overmap-ai/core 1.0.80-clean-ups.0 → 1.0.80-form-subscribers.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 +5234 -5037
- package/dist/overmap-core.umd.cjs +6 -6
- package/dist/sdk/constants.d.ts +0 -1
- package/dist/sdk/services/BaseOfflineFileModelApiService.d.ts +1 -1
- package/dist/sdk/services/FileService.d.ts +8 -4
- package/dist/sdk/services/FormRevisionService.d.ts +2 -2
- package/dist/sdk/services/FormSubscriberService.d.ts +27 -0
- package/dist/sdk/services/IssueUpdateService.d.ts +2 -0
- package/dist/sdk/services/ProcedureTypeAttachmentService.d.ts +1 -1
- package/dist/sdk/services/index.d.ts +1 -0
- package/dist/store/reducers.d.ts +3 -0
- package/dist/store/slices/assetSlice.d.ts +1 -0
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +1 -0
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +1 -0
- package/dist/store/slices/assetTypeStatusSlice.d.ts +1 -0
- package/dist/store/slices/emailDomainsSlice.d.ts +1 -0
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/formRevisionSlice.d.ts +1 -0
- package/dist/store/slices/formSlice.d.ts +1 -0
- package/dist/store/slices/formSubscriberSlice.d.ts +23 -0
- package/dist/store/slices/geoImageSlice.d.ts +1 -0
- package/dist/store/slices/index.d.ts +1 -0
- package/dist/store/slices/issueAssociationSlice.d.ts +1 -0
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +1 -0
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +1 -0
- package/dist/store/slices/issueTypePrioritySlice.d.ts +1 -0
- package/dist/store/slices/issueTypeStatusSlice.d.ts +1 -0
- package/dist/store/slices/issueUpdateSlice.d.ts +3 -0
- package/dist/store/slices/organizationSlice.d.ts +1 -0
- package/dist/store/slices/procedureFieldValuesSlice.d.ts +1 -0
- package/dist/store/slices/procedureStepAssigneeSlice.d.ts +1 -0
- package/dist/store/slices/procedureStepCommentSlice.d.ts +1 -0
- package/dist/store/slices/procedureStepDefaultAssigneeSlice.d.ts +1 -0
- package/dist/store/slices/procedureStepDefaultReviewerSlice.d.ts +1 -0
- package/dist/store/slices/procedureStepEventSlice.d.ts +1 -0
- package/dist/store/slices/procedureStepFieldValuesAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/procedureStepFieldValuesReviewSlice.d.ts +1 -0
- package/dist/store/slices/procedureStepFieldValuesSlice.d.ts +1 -0
- package/dist/store/slices/procedureStepFieldsAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/procedureStepFieldsSlice.d.ts +2 -0
- package/dist/store/slices/procedureStepReviewerSlice.d.ts +1 -0
- package/dist/store/slices/procedureStepSlice.d.ts +1 -0
- package/dist/store/slices/procedureTypeAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/procedureTypeFieldValuesAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/procedureTypeFieldsAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/projectFileSlice.d.ts +1 -0
- package/dist/store/slices/projectSlice.d.ts +1 -0
- package/dist/store/slices/userSlice.d.ts +1 -0
- package/dist/typings/models/base.d.ts +2 -2
- package/dist/typings/models/forms.d.ts +6 -2
- package/dist/typings/models/geoImages.d.ts +1 -1
- package/dist/utils/file.d.ts +4 -0
- package/package.json +2 -1
|
@@ -95,13 +95,13 @@ export interface TreeModel<TId extends string | number | symbol> {
|
|
|
95
95
|
parent: TId | null;
|
|
96
96
|
}
|
|
97
97
|
export interface OptionalFileModel extends Model {
|
|
98
|
-
|
|
98
|
+
object_url?: string;
|
|
99
99
|
file_sha1: string | null;
|
|
100
100
|
file_extension: string | null;
|
|
101
101
|
file_name: string | null;
|
|
102
102
|
}
|
|
103
103
|
export interface RequiredFileModel extends Model {
|
|
104
|
-
|
|
104
|
+
object_url?: string;
|
|
105
105
|
file_sha1: NonNullable<OptionalFileModel["file_sha1"]>;
|
|
106
106
|
file_extension: NonNullable<OptionalFileModel["file_extension"]>;
|
|
107
107
|
file_name: NonNullable<OptionalFileModel["file_name"]>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Asset } from './assets';
|
|
2
|
-
import { CreatedByModel, IdentifierModel, IdentifierValueModel, IndexedModel,
|
|
2
|
+
import { CreatedByModel, IdentifierModel, IdentifierValueModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
|
|
4
4
|
import { Issue } from './issues';
|
|
5
5
|
import { Organization } from './organizations';
|
|
6
6
|
import { Project } from './projects';
|
|
7
|
+
import { User } from './users';
|
|
7
8
|
export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
8
9
|
organization: Organization["uuid"];
|
|
9
10
|
name: string;
|
|
@@ -12,7 +13,6 @@ export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, Cre
|
|
|
12
13
|
export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
13
14
|
form: Form["uuid"];
|
|
14
15
|
}
|
|
15
|
-
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
16
16
|
export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel, IndexedModel {
|
|
17
17
|
form_revision: FormRevision["uuid"];
|
|
18
18
|
form: Form["uuid"];
|
|
@@ -34,3 +34,7 @@ export interface FormIdentifierValue extends UUIDModel, SubmittedAtModel, Timest
|
|
|
34
34
|
form_submission: FormSubmission["uuid"];
|
|
35
35
|
form_identifier: FormIdentifier["uuid"];
|
|
36
36
|
}
|
|
37
|
+
export interface FormSubscriber extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
38
|
+
form: Form["uuid"];
|
|
39
|
+
user: User["id"];
|
|
40
|
+
}
|
|
@@ -7,7 +7,7 @@ export interface GeoImage extends UUIDModel, SubmittedAtModel, TimestampedModel,
|
|
|
7
7
|
direction: number | null;
|
|
8
8
|
original_date: string | null;
|
|
9
9
|
}
|
|
10
|
-
export type GeoImagePayload = Omit<Payload<GeoImage>, "file_name" | "file_sha1" | "
|
|
10
|
+
export type GeoImagePayload = Omit<Payload<GeoImage>, "file_name" | "file_sha1" | "object_url" | "file_type" | "file_extension"> & {
|
|
11
11
|
file: File;
|
|
12
12
|
};
|
|
13
13
|
export type BulkGeoImagePayload = Omit<GeoImagePayload, "project">;
|
package/dist/utils/file.d.ts
CHANGED
|
@@ -5,4 +5,8 @@ export declare function getFileExtension(file: File): string;
|
|
|
5
5
|
export declare const fetchBlobFromObjectUrl: (objectUrl: string) => Promise<Blob>;
|
|
6
6
|
export declare const fetchFileFromObjectUrl: (objectUrl: string, name: string) => Promise<File>;
|
|
7
7
|
export declare function isObjectUrl(value: unknown): value is `blob:${string}`;
|
|
8
|
+
export declare function isCloudfrontUrl(value: unknown): value is `https://${string}.cloudfront.net/${string}`;
|
|
9
|
+
export declare function isS3Url(value: unknown): value is `https://${string}.s3.amazonaws.com/${string}`;
|
|
10
|
+
export declare function getPresignedUrlExpiryDate(presignedUrl: string): Date | null;
|
|
11
|
+
export declare function isPresignedUrlExpired(presignedUrl: string, bufferSeconds?: number): boolean;
|
|
8
12
|
export declare function isImageFile(file: File): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overmap-ai/core",
|
|
3
|
-
"version": "1.0.80-
|
|
3
|
+
"version": "1.0.80-form-subscribers.0",
|
|
4
4
|
"description": "Core functionality for Overmap",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"@types/node": "22.17.0",
|
|
59
59
|
"@types/superagent": "4.1.24",
|
|
60
60
|
"@types/uuid": "9.0.8",
|
|
61
|
+
"@vitejs/plugin-react-swc": "3.11.0",
|
|
61
62
|
"globals": "16.3.0",
|
|
62
63
|
"happy-dom": "20.8.9",
|
|
63
64
|
"oxfmt": "0.23.0",
|