@overmap-ai/core 1.0.78-view-sets-cleanup.3 → 1.0.78-workflows.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/constants/defaults.d.ts +1 -2
- package/dist/enums/asset.d.ts +8 -0
- package/dist/enums/index.d.ts +2 -0
- package/dist/enums/issue.d.ts +7 -5
- package/dist/enums/workflows.d.ts +5 -0
- package/dist/overmap-core.js +11119 -6871
- package/dist/overmap-core.umd.cjs +11 -11
- package/dist/sdk/base.d.ts +6 -2
- package/dist/sdk/constants.d.ts +4 -5
- package/dist/sdk/errors.d.ts +5 -0
- package/dist/sdk/index.d.ts +5 -1
- package/dist/sdk/middleware/OfflineAnalyticsMiddleware.d.ts +6 -0
- package/dist/sdk/middleware/OfflineMiddleware.d.ts +13 -0
- package/dist/sdk/middleware/RateLimitingMiddleware.d.ts +6 -0
- package/dist/sdk/middleware/constants.d.ts +1 -0
- package/dist/sdk/middleware/index.d.ts +5 -0
- package/dist/sdk/middleware/utils.d.ts +2 -0
- package/dist/sdk/outbox/globals.d.ts +2 -0
- package/dist/sdk/{classes → outbox}/index.d.ts +1 -0
- package/dist/sdk/performRequest.d.ts +6 -0
- package/dist/sdk/services/AgentService.d.ts +2 -1
- package/dist/sdk/services/AssetAttachmentService.d.ts +25 -27
- package/dist/sdk/services/AssetProcedureService.d.ts +23 -6
- package/dist/sdk/services/AssetProcedureStepFieldValuesAttachmentService.d.ts +20 -3
- package/dist/sdk/services/AssetProcedureStepFieldValuesService.d.ts +22 -12
- package/dist/sdk/services/AssetProcedureStepFieldsAttachmentService.d.ts +20 -3
- package/dist/sdk/services/AssetProcedureStepFieldsService.d.ts +21 -4
- package/dist/sdk/services/AssetProcedureStepService.d.ts +21 -4
- package/dist/sdk/services/AssetProcedureTypeAttachmentService.d.ts +39 -0
- package/dist/sdk/services/AssetProcedureTypeFieldValuesAttachmentService.d.ts +33 -0
- package/dist/sdk/services/AssetProcedureTypeFieldValuesService.d.ts +33 -0
- package/dist/sdk/services/AssetProcedureTypeFieldsAttachmentService.d.ts +30 -0
- package/dist/sdk/services/AssetProcedureTypeFieldsService.d.ts +26 -0
- package/dist/sdk/services/AssetProcedureTypeService.d.ts +28 -0
- package/dist/sdk/services/AssetService.d.ts +23 -5
- package/dist/sdk/services/AssetStageCompletionService.d.ts +21 -4
- package/dist/sdk/services/AssetStageService.d.ts +21 -4
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +25 -26
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +20 -3
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +22 -10
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +21 -4
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +20 -3
- package/dist/sdk/services/AssetTypeIdentifierService.d.ts +28 -0
- package/dist/sdk/services/AssetTypeIdentifierValueService.d.ts +28 -0
- package/dist/sdk/services/AssetTypeService.d.ts +21 -4
- package/dist/sdk/services/AssetTypeStatusService.d.ts +28 -0
- package/dist/sdk/services/BaseModelApiService.d.ts +27 -0
- package/dist/sdk/services/BaseOfflineAttachmentModelService.d.ts +23 -0
- package/dist/sdk/services/BaseOfflineModelApiService.d.ts +27 -0
- package/dist/sdk/services/BaseService.d.ts +5 -3
- package/dist/sdk/services/CategoryService.d.ts +22 -5
- package/dist/sdk/services/DocumentAttachmentService.d.ts +25 -26
- package/dist/sdk/services/DocumentService.d.ts +22 -5
- package/dist/sdk/services/EmailDomainsService.d.ts +21 -4
- package/dist/sdk/services/FileService.d.ts +5 -1
- package/dist/sdk/services/FormIdentifierService.d.ts +28 -0
- package/dist/sdk/services/FormIdentifierValueService.d.ts +28 -0
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +20 -3
- package/dist/sdk/services/FormRevisionService.d.ts +20 -3
- package/dist/sdk/services/FormService.d.ts +20 -3
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +22 -5
- package/dist/sdk/services/FormSubmissionService.d.ts +22 -5
- package/dist/sdk/services/GeoImageService.d.ts +22 -5
- package/dist/sdk/services/IssueAssociationService.d.ts +21 -4
- package/dist/sdk/services/IssueAttachmentService.d.ts +25 -27
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +25 -27
- package/dist/sdk/services/IssueCommentService.d.ts +22 -5
- package/dist/sdk/services/IssueService.d.ts +23 -5
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +25 -27
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +20 -3
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +21 -4
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +20 -3
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +21 -4
- package/dist/sdk/services/IssueTypeIdentifierService.d.ts +28 -0
- package/dist/sdk/services/IssueTypeIdentifierValueService.d.ts +28 -0
- package/dist/sdk/services/IssueTypeService.d.ts +21 -4
- package/dist/sdk/services/IssueTypeStatusService.d.ts +28 -0
- package/dist/sdk/services/IssueUpdateService.d.ts +186 -3
- package/dist/sdk/services/JWTAuthService.d.ts +1 -1
- package/dist/sdk/services/OrganizationAccessService.d.ts +21 -4
- package/dist/sdk/services/OrganizationService.d.ts +20 -3
- package/dist/sdk/services/ProjectAccessService.d.ts +24 -6
- package/dist/sdk/services/ProjectAttachmentService.d.ts +25 -26
- package/dist/sdk/services/ProjectFileService.d.ts +20 -3
- package/dist/sdk/services/ProjectService.d.ts +22 -5
- package/dist/sdk/services/TeamMembershipService.d.ts +22 -4
- package/dist/sdk/services/TeamService.d.ts +21 -4
- package/dist/sdk/services/UserService.d.ts +24 -3
- package/dist/sdk/services/WorkflowService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepAssigneeService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepCommentAttachmentService.d.ts +39 -0
- package/dist/sdk/services/WorkflowStepCommentService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepCompletionService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepFieldValuesAttachmentService.d.ts +31 -0
- package/dist/sdk/services/WorkflowStepFieldValuesService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepFieldsAttachmentService.d.ts +30 -0
- package/dist/sdk/services/WorkflowStepFieldsService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepReviewRequestService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepReviewService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepService.d.ts +28 -0
- package/dist/sdk/services/WorkflowTypeService.d.ts +28 -0
- package/dist/sdk/services/index.d.ts +30 -6
- package/dist/sdk/typings.d.ts +15 -58
- package/dist/sdk/utils.d.ts +2 -0
- package/dist/store/adapters/modelAdapter.d.ts +13 -14
- package/dist/store/adapters/typings.d.ts +19 -0
- package/dist/store/reducers.d.ts +81 -18
- package/dist/store/selectors/index.d.ts +1 -0
- package/dist/store/selectors/utils.d.ts +1 -0
- package/dist/store/slices/agentsSlice.d.ts +11 -38
- package/dist/store/slices/assetAttachmentSlice.d.ts +11 -37
- package/dist/store/slices/assetProcedureSlice.d.ts +118 -41
- package/dist/store/slices/assetProcedureStepFieldValuesAttachmentSlice.d.ts +38 -44
- package/dist/store/slices/assetProcedureStepFieldValuesSlice.d.ts +40 -45
- package/dist/store/slices/assetProcedureStepFieldsAttachmentSlice.d.ts +38 -43
- package/dist/store/slices/assetProcedureStepFieldsSlice.d.ts +65 -49
- package/dist/store/slices/assetProcedureStepSlice.d.ts +42 -47
- package/dist/store/slices/assetProcedureTypeAttachmentSlice.d.ts +105 -0
- package/dist/store/slices/assetProcedureTypeFieldValuesAttachmentSlice.d.ts +125 -0
- package/dist/store/slices/assetProcedureTypeFieldValuesSlice.d.ts +126 -0
- package/dist/store/slices/assetProcedureTypeFieldsAttachmentSlice.d.ts +125 -0
- package/dist/store/slices/assetProcedureTypeFieldsSlice.d.ts +23 -0
- package/dist/store/slices/assetProcedureTypeSlice.d.ts +22 -0
- package/dist/store/slices/assetSlice.d.ts +39 -45
- package/dist/store/slices/assetStageCompletionSlice.d.ts +38 -44
- package/dist/store/slices/assetStageSlice.d.ts +41 -47
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +11 -37
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +38 -44
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +38 -43
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +38 -43
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +38 -43
- package/dist/store/slices/assetTypeIdentifierSlice.d.ts +22 -0
- package/dist/store/slices/assetTypeIdentifierValueSlice.d.ts +23 -0
- package/dist/store/slices/assetTypeSlice.d.ts +11 -38
- package/dist/store/slices/assetTypeStatusSlice.d.ts +125 -0
- package/dist/store/slices/categorySlice.d.ts +38 -44
- package/dist/store/slices/documentAttachmentSlice.d.ts +11 -37
- package/dist/store/slices/documentSlice.d.ts +17 -24
- package/dist/store/slices/emailDomainsSlice.d.ts +40 -44
- package/dist/store/slices/formIdentifierSlice.d.ts +22 -0
- package/dist/store/slices/formIdentifierValueSlice.d.ts +23 -0
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +116 -37
- package/dist/store/slices/formRevisionSlice.d.ts +38 -43
- package/dist/store/slices/formSlice.d.ts +38 -43
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +13 -38
- package/dist/store/slices/formSubmissionSlice.d.ts +12 -40
- package/dist/store/slices/geoImageSlice.d.ts +38 -43
- package/dist/store/slices/index.d.ts +27 -6
- package/dist/store/slices/issueAssociationSlice.d.ts +38 -43
- package/dist/store/slices/issueAttachmentSlice.d.ts +11 -37
- package/dist/store/slices/issueCommentAttachmentSlice.d.ts +11 -37
- package/dist/store/slices/issueCommentSlice.d.ts +11 -37
- package/dist/store/slices/issueSlice.d.ts +11 -38
- package/dist/store/slices/issueTypeAttachmentSlice.d.ts +12 -38
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +38 -44
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +38 -43
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +38 -43
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +38 -43
- package/dist/store/slices/issueTypeIdentifierSlice.d.ts +22 -0
- package/dist/store/slices/issueTypeIdentifierValueSlice.d.ts +23 -0
- package/dist/store/slices/issueTypeSlice.d.ts +12 -43
- package/dist/store/slices/issueTypeStatusSlice.d.ts +125 -0
- package/dist/store/slices/issueUpdateSlice.d.ts +262 -38
- package/dist/store/slices/organizationAccessSlice.d.ts +11 -37
- package/dist/store/slices/organizationSlice.d.ts +38 -43
- package/dist/store/slices/outboxSlice.d.ts +6 -7
- package/dist/store/slices/projectAccessSlice.d.ts +11 -37
- package/dist/store/slices/projectAttachmentSlice.d.ts +13 -39
- package/dist/store/slices/projectFileSlice.d.ts +39 -45
- package/dist/store/slices/projectSlice.d.ts +38 -43
- package/dist/store/slices/teamMembershipSlice.d.ts +11 -37
- package/dist/store/slices/teamSlice.d.ts +11 -38
- package/dist/store/slices/userSlice.d.ts +38 -44
- package/dist/store/slices/workflowSlice.d.ts +23 -0
- package/dist/store/slices/workflowStepAssigneeSlice.d.ts +127 -0
- package/dist/store/slices/workflowStepCommentAttachmentSlice.d.ts +22 -0
- package/dist/store/slices/workflowStepCommentSlice.d.ts +126 -0
- package/dist/store/slices/workflowStepCompletionSlice.d.ts +126 -0
- package/dist/store/slices/workflowStepFieldValuesAttachmentSlice.d.ts +125 -0
- package/dist/store/slices/workflowStepFieldValuesSlice.d.ts +127 -0
- package/dist/store/slices/workflowStepFieldsAttachmentSlice.d.ts +125 -0
- package/dist/store/slices/workflowStepFieldsSlice.d.ts +230 -0
- package/dist/store/slices/workflowStepReviewRequestSlice.d.ts +126 -0
- package/dist/store/slices/workflowStepReviewSlice.d.ts +126 -0
- package/dist/store/slices/workflowStepSlice.d.ts +125 -0
- package/dist/store/slices/workflowTypeSlice.d.ts +22 -0
- package/dist/store/store.d.ts +4 -14
- package/dist/store/typings.d.ts +18 -1
- package/dist/typings/files.d.ts +15 -14
- package/dist/typings/index.d.ts +0 -3
- package/dist/typings/models/agents.d.ts +2 -1
- package/dist/typings/models/assets.d.ts +80 -51
- package/dist/typings/models/base.d.ts +19 -13
- package/dist/typings/models/categories.d.ts +5 -6
- package/dist/typings/models/documents.d.ts +6 -3
- package/dist/typings/models/emailDomain.d.ts +2 -1
- package/dist/typings/models/emailVerification.d.ts +7 -5
- package/dist/typings/models/fields.d.ts +7 -7
- package/dist/typings/models/forms.d.ts +15 -10
- package/dist/typings/models/geoImages.d.ts +7 -7
- package/dist/typings/models/index.d.ts +1 -2
- package/dist/typings/models/issues.d.ts +67 -31
- package/dist/typings/models/organizations.d.ts +1 -1
- package/dist/typings/models/projects.d.ts +8 -4
- package/dist/typings/models/teams.d.ts +4 -4
- package/dist/typings/models/users.d.ts +4 -2
- package/dist/typings/models/workflows.d.ts +67 -0
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/models/assets.d.ts +5 -0
- package/dist/utils/models/documents.d.ts +4 -0
- package/dist/utils/models/index.d.ts +3 -0
- package/dist/utils/models/issues.d.ts +2 -0
- package/dist/utils/utils.d.ts +0 -7
- package/dist/utils/uuid.d.ts +7 -0
- package/package.json +35 -49
- package/dist/sdk/services/AssetProcedureAttachmentService.d.ts +0 -40
- package/dist/sdk/services/AssetProcedureFieldValuesAttachmentService.d.ts +0 -16
- package/dist/sdk/services/AssetProcedureFieldValuesService.d.ts +0 -22
- package/dist/sdk/services/AssetProcedureFieldsAttachmentService.d.ts +0 -13
- package/dist/sdk/services/AssetProcedureFieldsService.d.ts +0 -9
- package/dist/sdk/services/AssetProcedureInstanceService.d.ts +0 -11
- package/dist/sdk/services/BaseAttachmentService.d.ts +0 -38
- package/dist/sdk/services/BaseUploadService.d.ts +0 -10
- package/dist/store/slices/assetProcedureAttachmentSlice.d.ts +0 -48
- package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +0 -131
- package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +0 -131
- package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +0 -130
- package/dist/store/slices/assetProcedureFieldsSlice.d.ts +0 -49
- package/dist/store/slices/assetProcedureInstanceSlice.d.ts +0 -132
- package/dist/typings/colors.d.ts +0 -8
- package/dist/typings/json.d.ts +0 -6
- package/dist/typings/memoization.d.ts +0 -1
- package/dist/typings/models/attachments.d.ts +0 -31
- package/dist/typings/models/issueTypes.d.ts +0 -7
- package/dist/typings/models/store.d.ts +0 -0
- package/dist/typings/search.d.ts +0 -23
- package/dist/utils/coordinates.d.ts +0 -4
- package/dist/utils/offline.d.ts +0 -13
- /package/dist/sdk/{classes → outbox}/OutboxCoordinator.d.ts +0 -0
- /package/dist/sdk/{classes → outbox}/OutboxCoordinator.spec.d.ts +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FilePayload, Project, Stored, Submitted, WorkflowStepComment, WorkflowStepCommentAttachment } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseOfflineAttachmentModelService, BuildModelData } from './BaseOfflineAttachmentModelService';
|
|
6
|
+
export declare abstract class WorkflowStepCommentAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseOfflineAttachmentModelService<TState, TSDK, WorkflowStepCommentAttachment["uuid"], WorkflowStepCommentAttachment> {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
actions: {
|
|
10
|
+
addOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCommentAttachment>, "workflowStepCommentAttachments/addWorkflowStepCommentAttachment">;
|
|
11
|
+
addMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCommentAttachment>[], "workflowStepCommentAttachments/addWorkflowStepCommentAttachments">;
|
|
12
|
+
setOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCommentAttachment>, "workflowStepCommentAttachments/setWorkflowStepCommentAttachment">;
|
|
13
|
+
setMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCommentAttachment>[], "workflowStepCommentAttachments/setWorkflowStepCommentAttachments">;
|
|
14
|
+
updateOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCommentAttachment>, "workflowStepCommentAttachments/updateWorkflowStepCommentAttachment">;
|
|
15
|
+
updateMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCommentAttachment>[], "workflowStepCommentAttachments/updateWorkflowStepCommentAttachments">;
|
|
16
|
+
deleteOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workflowStepCommentAttachments/deleteWorkflowStepCommentAttachment">;
|
|
17
|
+
deleteMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "workflowStepCommentAttachments/deleteWorkflowStepCommentAttachments">;
|
|
18
|
+
initialize: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCommentAttachment>[], "workflowStepCommentAttachments/initializeWorkflowStepCommentAttachments">;
|
|
19
|
+
};
|
|
20
|
+
selectors: {
|
|
21
|
+
selectById: import('../..').OvermapSelectorWithArgs<string, Stored<WorkflowStepCommentAttachment> | undefined>;
|
|
22
|
+
selectByIds: (uuids: string[]) => (state: any) => Stored<WorkflowStepCommentAttachment>[];
|
|
23
|
+
};
|
|
24
|
+
protected getId(model: Stored<WorkflowStepCommentAttachment>): WorkflowStepCommentAttachment["uuid"];
|
|
25
|
+
protected buildModel(data: BuildModelData): Submitted<WorkflowStepCommentAttachment>;
|
|
26
|
+
protected buildPayload(model: Submitted<WorkflowStepCommentAttachment>, filePayload: FilePayload): {
|
|
27
|
+
uuid: string;
|
|
28
|
+
file_name: string;
|
|
29
|
+
file_sha1: string;
|
|
30
|
+
file_extension: string;
|
|
31
|
+
workflow_step_comment: string;
|
|
32
|
+
};
|
|
33
|
+
bulkAdd(payloads: {
|
|
34
|
+
workflowStepCommentUuid: WorkflowStepComment["uuid"];
|
|
35
|
+
file: File;
|
|
36
|
+
}[]): Promise<OptimisticMultipleModelResult<WorkflowStepCommentAttachment>>;
|
|
37
|
+
delete(uuid: WorkflowStepCommentAttachment["uuid"]): Promise<void>;
|
|
38
|
+
refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<WorkflowStepCommentAttachment[]>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Payload, Project, Stored, UUID, WorkflowStepComment } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseOfflineModelApiService } from './BaseOfflineModelApiService';
|
|
6
|
+
export declare abstract class WorkflowStepCommentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseOfflineModelApiService<WorkflowStepComment["uuid"], WorkflowStepComment, TState, TSDK> {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
actions: {
|
|
10
|
+
addOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepComment>, "workflowStepComments/addWorkflowStepComment">;
|
|
11
|
+
addMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepComment>[], "workflowStepComments/addWorkflowStepComments">;
|
|
12
|
+
setOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepComment>, "workflowStepComments/setWorkflowStepComment">;
|
|
13
|
+
setMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepComment>[], "workflowStepComments/setWorkflowStepComments">;
|
|
14
|
+
updateOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepComment>, "workflowStepComments/updateWorkflowStepComment">;
|
|
15
|
+
updateMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepComment>[], "workflowStepComments/updateWorkflowStepComments">;
|
|
16
|
+
deleteOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workflowStepComments/deleteWorkflowStepComment">;
|
|
17
|
+
deleteMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "workflowStepComments/deleteWorkflowStepComments">;
|
|
18
|
+
initialize: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepComment>[], "workflowStepComments/initializeWorkflowStepComments">;
|
|
19
|
+
};
|
|
20
|
+
selectors: {
|
|
21
|
+
selectById: import('../..').OvermapSelectorWithArgs<string, Stored<WorkflowStepComment> | undefined>;
|
|
22
|
+
selectByIds: (uuids: string[]) => (state: any) => Stored<WorkflowStepComment>[];
|
|
23
|
+
};
|
|
24
|
+
add(payload: Payload<WorkflowStepComment>): OptimisticModelResult<WorkflowStepComment>;
|
|
25
|
+
update(payload: UUID<Partial<Payload<WorkflowStepComment>>>): OptimisticModelResult<WorkflowStepComment>;
|
|
26
|
+
delete(uuid: WorkflowStepComment["uuid"]): Promise<undefined>;
|
|
27
|
+
refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<WorkflowStepComment[]>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Payload, Project, Stored, UUID, WorkflowStepCompletion } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseOfflineModelApiService } from './BaseOfflineModelApiService';
|
|
6
|
+
export declare abstract class WorkflowStepCompletionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseOfflineModelApiService<WorkflowStepCompletion["uuid"], WorkflowStepCompletion, TState, TSDK> {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
actions: {
|
|
10
|
+
addOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCompletion>, "workflowStepCompletions/addWorkflowStepCompletion">;
|
|
11
|
+
addMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCompletion>[], "workflowStepCompletions/addWorkflowStepCompletions">;
|
|
12
|
+
setOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCompletion>, "workflowStepCompletions/setWorkflowStepCompletion">;
|
|
13
|
+
setMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCompletion>[], "workflowStepCompletions/setWorkflowStepCompletions">;
|
|
14
|
+
updateOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCompletion>, "workflowStepCompletions/updateWorkflowStepCompletion">;
|
|
15
|
+
updateMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCompletion>[], "workflowStepCompletions/updateWorkflowStepCompletions">;
|
|
16
|
+
deleteOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workflowStepCompletions/deleteWorkflowStepCompletion">;
|
|
17
|
+
deleteMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "workflowStepCompletions/deleteWorkflowStepCompletions">;
|
|
18
|
+
initialize: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepCompletion>[], "workflowStepCompletions/initializeWorkflowStepCompletions">;
|
|
19
|
+
};
|
|
20
|
+
selectors: {
|
|
21
|
+
selectById: import('../..').OvermapSelectorWithArgs<string, Stored<WorkflowStepCompletion> | undefined>;
|
|
22
|
+
selectByIds: (uuids: string[]) => (state: any) => Stored<WorkflowStepCompletion>[];
|
|
23
|
+
};
|
|
24
|
+
add(payload: Payload<WorkflowStepCompletion>): OptimisticModelResult<WorkflowStepCompletion>;
|
|
25
|
+
update(payload: UUID<Partial<Payload<WorkflowStepCompletion>>>): OptimisticModelResult<WorkflowStepCompletion>;
|
|
26
|
+
delete(uuid: WorkflowStepCompletion["uuid"]): Promise<undefined>;
|
|
27
|
+
refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<WorkflowStepCompletion[]>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Project, WorkflowStepFieldValues, WorkflowStepFieldValuesAttachment } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseOfflineModelApiService } from './BaseOfflineModelApiService';
|
|
6
|
+
export declare abstract class WorkflowStepFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseOfflineModelApiService<WorkflowStepFieldValuesAttachment["uuid"], WorkflowStepFieldValuesAttachment, TState, TSDK> {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
actions: {
|
|
10
|
+
addOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldValuesAttachment>, "workflowStepFieldValuesAttachments/addWorkflowStepFieldValuesAttachment">;
|
|
11
|
+
addMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldValuesAttachment>[], "workflowStepFieldValuesAttachments/addWorkflowStepFieldValuesAttachments">;
|
|
12
|
+
setOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldValuesAttachment>, "workflowStepFieldValuesAttachments/setWorkflowStepFieldValuesAttachment">;
|
|
13
|
+
setMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldValuesAttachment>[], "workflowStepFieldValuesAttachments/setWorkflowStepFieldValuesAttachments">;
|
|
14
|
+
updateOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldValuesAttachment>, "workflowStepFieldValuesAttachments/updateWorkflowStepFieldValuesAttachment">;
|
|
15
|
+
updateMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldValuesAttachment>[], "workflowStepFieldValuesAttachments/updateWorkflowStepFieldValuesAttachments">;
|
|
16
|
+
deleteOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workflowStepFieldValuesAttachments/deleteWorkflowStepFieldValuesAttachment">;
|
|
17
|
+
deleteMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "workflowStepFieldValuesAttachments/deleteWorkflowStepFieldValuesAttachments">;
|
|
18
|
+
initialize: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldValuesAttachment>[], "workflowStepFieldValuesAttachments/initializeWorkflowStepFieldValuesAttachments">;
|
|
19
|
+
};
|
|
20
|
+
selectors: {
|
|
21
|
+
selectById: import('../..').OvermapSelectorWithArgs<string, import('../..').Stored<WorkflowStepFieldValuesAttachment> | undefined>;
|
|
22
|
+
selectByIds: (uuids: string[]) => (state: any) => import('../..').Stored<WorkflowStepFieldValuesAttachment>[];
|
|
23
|
+
};
|
|
24
|
+
bulkAdd(payloads: {
|
|
25
|
+
fieldValuesUuid: WorkflowStepFieldValues["uuid"];
|
|
26
|
+
fieldIdentifier: string;
|
|
27
|
+
file: File;
|
|
28
|
+
}[]): Promise<OptimisticMultipleModelResult<WorkflowStepFieldValuesAttachment>>;
|
|
29
|
+
bulkDelete(uuids: WorkflowStepFieldValuesAttachment["uuid"][]): Promise<void>;
|
|
30
|
+
refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<WorkflowStepFieldValuesAttachment[]>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Payload, Project, Stored, UUID, WorkflowStepFieldValues } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseOfflineModelApiService } from './BaseOfflineModelApiService';
|
|
6
|
+
export declare abstract class WorkflowStepFieldValuesService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseOfflineModelApiService<WorkflowStepFieldValues["uuid"], WorkflowStepFieldValues, TState, TSDK> {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
actions: {
|
|
10
|
+
addOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFieldValues>, "workflowStepFieldValues/addWorkflowStepFieldValues">;
|
|
11
|
+
addMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFieldValues>[], "workflowStepFieldValues/addWorkflowStepFieldValuesMany">;
|
|
12
|
+
setOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFieldValues>, "workflowStepFieldValues/setWorkflowStepFieldValues">;
|
|
13
|
+
setMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFieldValues>[], "workflowStepFieldValues/setWorkflowStepFieldValuesMany">;
|
|
14
|
+
updateOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFieldValues>, "workflowStepFieldValues/updateWorkflowStepFieldValues">;
|
|
15
|
+
updateMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFieldValues>[], "workflowStepFieldValues/updateWorkflowStepFieldValuesMany">;
|
|
16
|
+
deleteOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workflowStepFieldValues/deleteWorkflowStepFieldValues">;
|
|
17
|
+
deleteMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "workflowStepFieldValues/deleteWorkflowStepFieldValuesMany">;
|
|
18
|
+
initialize: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFieldValues>[], "workflowStepFieldValues/initializeWorkflowStepFieldValues">;
|
|
19
|
+
};
|
|
20
|
+
selectors: {
|
|
21
|
+
selectById: import('../..').OvermapSelectorWithArgs<string, Stored<WorkflowStepFieldValues> | undefined>;
|
|
22
|
+
selectByIds: (uuids: string[]) => (state: any) => Stored<WorkflowStepFieldValues>[];
|
|
23
|
+
};
|
|
24
|
+
add(payload: Payload<WorkflowStepFieldValues>): OptimisticModelResult<WorkflowStepFieldValues>;
|
|
25
|
+
update(payload: UUID<Partial<Payload<WorkflowStepFieldValues>>>): OptimisticModelResult<WorkflowStepFieldValues>;
|
|
26
|
+
delete(uuid: WorkflowStepFieldValues["uuid"]): Promise<void>;
|
|
27
|
+
refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<WorkflowStepFieldValues[]>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Organization, WorkflowStepFields, WorkflowStepFieldsAttachment } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseOfflineModelApiService } from './BaseOfflineModelApiService';
|
|
6
|
+
export declare abstract class WorkflowStepFieldsAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseOfflineModelApiService<WorkflowStepFieldsAttachment["uuid"], WorkflowStepFieldsAttachment, TState, TSDK> {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
actions: {
|
|
10
|
+
addOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldsAttachment>, "workflowStepFieldsAttachments/addWorkflowStepFieldsAttachment">;
|
|
11
|
+
addMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldsAttachment>[], "workflowStepFieldsAttachments/addWorkflowStepFieldsAttachments">;
|
|
12
|
+
setOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldsAttachment>, "workflowStepFieldsAttachments/setWorkflowStepFieldsAttachment">;
|
|
13
|
+
setMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldsAttachment>[], "workflowStepFieldsAttachments/setWorkflowStepFieldsAttachments">;
|
|
14
|
+
updateOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldsAttachment>, "workflowStepFieldsAttachments/updateWorkflowStepFieldsAttachment">;
|
|
15
|
+
updateMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldsAttachment>[], "workflowStepFieldsAttachments/updateWorkflowStepFieldsAttachments">;
|
|
16
|
+
deleteOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workflowStepFieldsAttachments/deleteWorkflowStepFieldsAttachment">;
|
|
17
|
+
deleteMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "workflowStepFieldsAttachments/deleteWorkflowStepFieldsAttachments">;
|
|
18
|
+
initialize: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('../..').Stored<WorkflowStepFieldsAttachment>[], "workflowStepFieldsAttachments/initializeWorkflowStepFieldsAttachments">;
|
|
19
|
+
};
|
|
20
|
+
selectors: {
|
|
21
|
+
selectById: import('../..').OvermapSelectorWithArgs<string, import('../..').Stored<WorkflowStepFieldsAttachment> | undefined>;
|
|
22
|
+
selectByIds: (uuids: string[]) => (state: any) => import('../..').Stored<WorkflowStepFieldsAttachment>[];
|
|
23
|
+
};
|
|
24
|
+
bulkAdd(payloads: {
|
|
25
|
+
fieldsRevisionUuid: WorkflowStepFields["uuid"];
|
|
26
|
+
fieldIdentifier: string;
|
|
27
|
+
file: File;
|
|
28
|
+
}[]): Promise<OptimisticMultipleModelResult<WorkflowStepFieldsAttachment>>;
|
|
29
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<WorkflowStepFieldsAttachment[]>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Organization, Payload, Stored, UUID, WorkflowStepFields } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseOfflineModelApiService } from './BaseOfflineModelApiService';
|
|
6
|
+
export declare abstract class WorkflowStepFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseOfflineModelApiService<WorkflowStepFields["uuid"], WorkflowStepFields, TState, TSDK> {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
actions: {
|
|
10
|
+
addOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFields>, "workflowStepFields/addWorkflowStepFields">;
|
|
11
|
+
addMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFields>[], "workflowStepFields/addWorkflowStepFieldsMany">;
|
|
12
|
+
setOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFields>, "workflowStepFields/setWorkflowStepFields">;
|
|
13
|
+
setMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFields>[], "workflowStepFields/setWorkflowStepFieldsMany">;
|
|
14
|
+
updateOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFields>, "workflowStepFields/updateWorkflowStepFields">;
|
|
15
|
+
updateMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFields>[], "workflowStepFields/updateWorkflowStepFieldsMany">;
|
|
16
|
+
deleteOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workflowStepFields/deleteWorkflowStepFields">;
|
|
17
|
+
deleteMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "workflowStepFields/deleteWorkflowStepFieldsMany">;
|
|
18
|
+
initialize: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepFields>[], "workflowStepFields/initializeWorkflowStepFields">;
|
|
19
|
+
};
|
|
20
|
+
selectors: {
|
|
21
|
+
selectById: import('../..').OvermapSelectorWithArgs<string, Stored<WorkflowStepFields> | undefined>;
|
|
22
|
+
selectByIds: (uuids: string[]) => (state: any) => Stored<WorkflowStepFields>[];
|
|
23
|
+
};
|
|
24
|
+
add(payload: Payload<WorkflowStepFields>): OptimisticModelResult<WorkflowStepFields>;
|
|
25
|
+
update(payload: UUID<Partial<Payload<WorkflowStepFields>>>): OptimisticModelResult<WorkflowStepFields>;
|
|
26
|
+
delete(uuid: WorkflowStepFields["uuid"]): Promise<void>;
|
|
27
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<WorkflowStepFields[]>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Payload, Project, Stored, UUID, WorkflowStepReviewRequest } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseOfflineModelApiService } from './BaseOfflineModelApiService';
|
|
6
|
+
export declare abstract class WorkflowStepReviewRequestService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseOfflineModelApiService<WorkflowStepReviewRequest["uuid"], WorkflowStepReviewRequest, TState, TSDK> {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
actions: {
|
|
10
|
+
addOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReviewRequest>, "workflowStepReviewRequests/addWorkflowStepReviewRequest">;
|
|
11
|
+
addMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReviewRequest>[], "workflowStepReviewRequests/addWorkflowStepReviewRequests">;
|
|
12
|
+
setOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReviewRequest>, "workflowStepReviewRequests/setWorkflowStepReviewRequest">;
|
|
13
|
+
setMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReviewRequest>[], "workflowStepReviewRequests/setWorkflowStepReviewRequests">;
|
|
14
|
+
updateOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReviewRequest>, "workflowStepReviewRequests/updateWorkflowStepReviewRequest">;
|
|
15
|
+
updateMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReviewRequest>[], "workflowStepReviewRequests/updateWorkflowStepReviewRequests">;
|
|
16
|
+
deleteOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workflowStepReviewRequests/deleteWorkflowStepReviewRequest">;
|
|
17
|
+
deleteMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "workflowStepReviewRequests/deleteWorkflowStepReviewRequests">;
|
|
18
|
+
initialize: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReviewRequest>[], "workflowStepReviewRequests/initializeWorkflowStepReviewRequests">;
|
|
19
|
+
};
|
|
20
|
+
selectors: {
|
|
21
|
+
selectById: import('../..').OvermapSelectorWithArgs<string, Stored<WorkflowStepReviewRequest> | undefined>;
|
|
22
|
+
selectByIds: (uuids: string[]) => (state: any) => Stored<WorkflowStepReviewRequest>[];
|
|
23
|
+
};
|
|
24
|
+
add(payload: Payload<WorkflowStepReviewRequest>): OptimisticModelResult<WorkflowStepReviewRequest>;
|
|
25
|
+
update(payload: UUID<Partial<Payload<WorkflowStepReviewRequest>>>): OptimisticModelResult<WorkflowStepReviewRequest>;
|
|
26
|
+
delete(uuid: WorkflowStepReviewRequest["uuid"]): Promise<undefined>;
|
|
27
|
+
refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<WorkflowStepReviewRequest[]>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Payload, Project, Stored, UUID, WorkflowStepReview } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseOfflineModelApiService } from './BaseOfflineModelApiService';
|
|
6
|
+
export declare abstract class WorkflowStepReviewService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseOfflineModelApiService<WorkflowStepReview["uuid"], WorkflowStepReview, TState, TSDK> {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
actions: {
|
|
10
|
+
addOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReview>, "workflowStepReviews/addWorkflowStepReview">;
|
|
11
|
+
addMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReview>[], "workflowStepReviews/addWorkflowStepReviews">;
|
|
12
|
+
setOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReview>, "workflowStepReviews/setWorkflowStepReview">;
|
|
13
|
+
setMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReview>[], "workflowStepReviews/setWorkflowStepReviews">;
|
|
14
|
+
updateOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReview>, "workflowStepReviews/updateWorkflowStepReview">;
|
|
15
|
+
updateMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReview>[], "workflowStepReviews/updateWorkflowStepReviews">;
|
|
16
|
+
deleteOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workflowStepReviews/deleteWorkflowStepReview">;
|
|
17
|
+
deleteMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "workflowStepReviews/deleteWorkflowStepReviews">;
|
|
18
|
+
initialize: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStepReview>[], "workflowStepReviews/initializeWorkflowStepReviews">;
|
|
19
|
+
};
|
|
20
|
+
selectors: {
|
|
21
|
+
selectById: import('../..').OvermapSelectorWithArgs<string, Stored<WorkflowStepReview> | undefined>;
|
|
22
|
+
selectByIds: (uuids: string[]) => (state: any) => Stored<WorkflowStepReview>[];
|
|
23
|
+
};
|
|
24
|
+
add(payload: Payload<WorkflowStepReview>): OptimisticModelResult<WorkflowStepReview>;
|
|
25
|
+
update(payload: UUID<Partial<Payload<WorkflowStepReview>>>): OptimisticModelResult<WorkflowStepReview>;
|
|
26
|
+
delete(uuid: WorkflowStepReview["uuid"]): Promise<undefined>;
|
|
27
|
+
refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<WorkflowStepReview[]>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Organization, Payload, Stored, UUID, WorkflowStep } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseOfflineModelApiService } from './BaseOfflineModelApiService';
|
|
6
|
+
export declare abstract class WorkflowStepService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseOfflineModelApiService<WorkflowStep["uuid"], WorkflowStep, TState, TSDK> {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
actions: {
|
|
10
|
+
addOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStep>, "workflowSteps/addWorkflowStep">;
|
|
11
|
+
addMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStep>[], "workflowSteps/addWorkflowSteps">;
|
|
12
|
+
setOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStep>, "workflowSteps/setWorkflowStep">;
|
|
13
|
+
setMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStep>[], "workflowSteps/setWorkflowSteps">;
|
|
14
|
+
updateOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStep>, "workflowSteps/updateWorkflowStep">;
|
|
15
|
+
updateMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStep>[], "workflowSteps/updateWorkflowSteps">;
|
|
16
|
+
deleteOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workflowSteps/deleteWorkflowStep">;
|
|
17
|
+
deleteMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "workflowSteps/deleteWorkflowSteps">;
|
|
18
|
+
initialize: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowStep>[], "workflowSteps/initializeWorkflowSteps">;
|
|
19
|
+
};
|
|
20
|
+
selectors: {
|
|
21
|
+
selectById: import('../..').OvermapSelectorWithArgs<string, Stored<WorkflowStep> | undefined>;
|
|
22
|
+
selectByIds: (uuids: string[]) => (state: any) => Stored<WorkflowStep>[];
|
|
23
|
+
};
|
|
24
|
+
add(payload: Payload<WorkflowStep>): OptimisticModelResult<WorkflowStep>;
|
|
25
|
+
update(payload: UUID<Partial<Payload<WorkflowStep>>>): OptimisticModelResult<WorkflowStep>;
|
|
26
|
+
delete(uuid: WorkflowStep["uuid"]): Promise<void>;
|
|
27
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<WorkflowStep[]>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Organization, Payload, Stored, UUID, WorkflowType } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseOfflineModelApiService } from './BaseOfflineModelApiService';
|
|
6
|
+
export declare abstract class WorkflowTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseOfflineModelApiService<WorkflowType["uuid"], WorkflowType, TState, TSDK> {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
actions: {
|
|
10
|
+
addOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowType>, "workflowTypes/addWorkflowType">;
|
|
11
|
+
addMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowType>[], "workflowTypes/addWorkflowTypes">;
|
|
12
|
+
setOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowType>, "workflowTypes/setWorkflowType">;
|
|
13
|
+
setMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowType>[], "workflowTypes/setWorkflowTypes">;
|
|
14
|
+
updateOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowType>, "workflowTypes/updateWorkflowType">;
|
|
15
|
+
updateMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowType>[], "workflowTypes/updateWorkflowTypes">;
|
|
16
|
+
deleteOne: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workflowTypes/deleteWorkflowType">;
|
|
17
|
+
deleteMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "workflowTypes/deleteWorkflowTypes">;
|
|
18
|
+
initialize: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<WorkflowType>[], "workflowTypes/initializeWorkflowTypes">;
|
|
19
|
+
};
|
|
20
|
+
selectors: {
|
|
21
|
+
selectById: import('../..').OvermapSelectorWithArgs<string, Stored<WorkflowType> | undefined>;
|
|
22
|
+
selectByIds: (uuids: string[]) => (state: any) => Stored<WorkflowType>[];
|
|
23
|
+
};
|
|
24
|
+
add(payload: Payload<WorkflowType>): OptimisticModelResult<WorkflowType>;
|
|
25
|
+
update(payload: UUID<Partial<Payload<WorkflowType>>>): OptimisticModelResult<WorkflowType>;
|
|
26
|
+
delete(uuid: WorkflowType["uuid"]): Promise<undefined>;
|
|
27
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<WorkflowType[]>;
|
|
28
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * from './AgentService';
|
|
2
2
|
export * from './AssetAttachmentService';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './AssetProcedureInstanceService';
|
|
3
|
+
export * from './AssetProcedureTypeAttachmentService';
|
|
4
|
+
export * from './AssetProcedureTypeFieldsAttachmentService';
|
|
5
|
+
export * from './AssetProcedureTypeFieldsService';
|
|
6
|
+
export * from './AssetProcedureTypeFieldValuesAttachmentService';
|
|
7
|
+
export * from './AssetProcedureTypeFieldValuesService';
|
|
9
8
|
export * from './AssetProcedureService';
|
|
9
|
+
export * from './AssetProcedureTypeService';
|
|
10
10
|
export * from './AssetProcedureStepFieldsAttachmentService';
|
|
11
11
|
export * from './AssetProcedureStepFieldsService';
|
|
12
12
|
export * from './AssetProcedureStepFieldValuesAttachmentService';
|
|
@@ -20,7 +20,10 @@ export * from './AssetTypeFieldsAttachmentService';
|
|
|
20
20
|
export * from './AssetTypeFieldsService';
|
|
21
21
|
export * from './AssetTypeFieldValuesAttachmentService';
|
|
22
22
|
export * from './AssetTypeFieldValuesService';
|
|
23
|
+
export * from './AssetTypeIdentifierService';
|
|
24
|
+
export * from './AssetTypeIdentifierValueService';
|
|
23
25
|
export * from './AssetTypeService';
|
|
26
|
+
export * from './AssetTypeStatusService';
|
|
24
27
|
export * from './BaseApiService';
|
|
25
28
|
export * from './CategoryService';
|
|
26
29
|
export * from './DocumentAttachmentService';
|
|
@@ -28,6 +31,8 @@ export * from './DocumentService';
|
|
|
28
31
|
export * from './EmailDomainsService';
|
|
29
32
|
export * from './EmailVerificationService';
|
|
30
33
|
export * from './FileService';
|
|
34
|
+
export * from './FormIdentifierService';
|
|
35
|
+
export * from './FormIdentifierValueService';
|
|
31
36
|
export * from './FormRevisionAttachmentService';
|
|
32
37
|
export * from './FormRevisionService';
|
|
33
38
|
export * from './FormService';
|
|
@@ -44,7 +49,10 @@ export * from './IssueTypeFieldsAttachmentService';
|
|
|
44
49
|
export * from './IssueTypeFieldsService';
|
|
45
50
|
export * from './IssueTypeFieldValuesAttachmentService';
|
|
46
51
|
export * from './IssueTypeFieldValuesService';
|
|
52
|
+
export * from './IssueTypeIdentifierService';
|
|
53
|
+
export * from './IssueTypeIdentifierValueService';
|
|
47
54
|
export * from './IssueTypeService';
|
|
55
|
+
export * from './IssueTypeStatusService';
|
|
48
56
|
export * from './IssueUpdateService';
|
|
49
57
|
export * from './JWTAuthService';
|
|
50
58
|
export * from './OrganizationAccessService';
|
|
@@ -56,3 +64,19 @@ export * from './ProjectService';
|
|
|
56
64
|
export * from './TeamMembershipService';
|
|
57
65
|
export * from './TeamService';
|
|
58
66
|
export * from './UserService';
|
|
67
|
+
export * from './WorkflowService';
|
|
68
|
+
export * from './WorkflowStepAssigneeService';
|
|
69
|
+
export * from './WorkflowStepCommentAttachmentService';
|
|
70
|
+
export * from './WorkflowStepCommentService';
|
|
71
|
+
export * from './WorkflowStepCompletionService';
|
|
72
|
+
export * from './WorkflowStepFieldValuesAttachmentService';
|
|
73
|
+
export * from './WorkflowStepFieldValuesService';
|
|
74
|
+
export * from './WorkflowStepFieldsAttachmentService';
|
|
75
|
+
export * from './WorkflowStepFieldsService';
|
|
76
|
+
export * from './WorkflowStepReviewRequestService';
|
|
77
|
+
export * from './WorkflowStepReviewService';
|
|
78
|
+
export * from './WorkflowStepService';
|
|
79
|
+
export * from './WorkflowTypeService';
|
|
80
|
+
export * from './BaseModelApiService';
|
|
81
|
+
export * from './BaseOfflineModelApiService';
|
|
82
|
+
export * from './BaseOfflineAttachmentModelService';
|
package/dist/sdk/typings.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Store } from '@reduxjs/toolkit';
|
|
2
|
-
import { default as request } from 'superagent';
|
|
3
|
-
import { HttpMethod } from '../enums';
|
|
4
2
|
import { BaseState } from '../store';
|
|
5
3
|
import { Created, Model, Stored, Submitted } from '../typings';
|
|
4
|
+
import { HttpMethod } from '../enums';
|
|
6
5
|
import { DeferredPromise } from '../utils';
|
|
7
6
|
import { BaseSDK } from './base';
|
|
8
7
|
import { GetS3UrlResponse, GetS3UrlSuccessResponse } from './services';
|
|
@@ -15,6 +14,7 @@ export interface Credentials {
|
|
|
15
14
|
username: string;
|
|
16
15
|
password: string;
|
|
17
16
|
}
|
|
17
|
+
export type QueryParams = Record<string, string | boolean | number | undefined>;
|
|
18
18
|
/** You should not have to use this type in SDK service modules. Use SDKRequest instead. */
|
|
19
19
|
export interface RequestDetails {
|
|
20
20
|
/** `url` is assumed to be relative to the BASE URL, unless `isExternalUrl` is `true` */
|
|
@@ -23,15 +23,18 @@ export interface RequestDetails {
|
|
|
23
23
|
checkAuth?: boolean;
|
|
24
24
|
/** A unique identifier for the request. */
|
|
25
25
|
uuid: string;
|
|
26
|
-
/** If true, the request will be sent immediately, bypassing the outbox. */
|
|
27
|
-
immediate?: boolean;
|
|
28
26
|
isExternalUrl?: boolean;
|
|
29
27
|
isResponseBlob?: boolean;
|
|
30
|
-
queryParams?:
|
|
28
|
+
queryParams?: QueryParams;
|
|
31
29
|
isAuthNeeded?: boolean;
|
|
32
30
|
/** The hash of any included attachments being uploaded to S3, retrieved from cache before the request is fired */
|
|
33
31
|
attachmentHash?: string;
|
|
34
32
|
headers?: Record<string, string>;
|
|
33
|
+
payload?: object;
|
|
34
|
+
method: HttpMethod;
|
|
35
|
+
s3url?: GetS3UrlResponse;
|
|
36
|
+
}
|
|
37
|
+
export interface OfflineRequestDetails extends RequestDetails {
|
|
35
38
|
description?: string;
|
|
36
39
|
/**
|
|
37
40
|
* A list of offline_ids referenced that must be resolved before this request can be sent.
|
|
@@ -39,59 +42,20 @@ export interface RequestDetails {
|
|
|
39
42
|
blockers: string[];
|
|
40
43
|
/** A list of offline_ids of all objects being created or altered. */
|
|
41
44
|
blocks: string[];
|
|
42
|
-
payload?: object;
|
|
43
|
-
/** Set automatically by the SDK. Do not set yourself. This is equal to the first element in `requestIdentifiers`.*/
|
|
44
|
-
_primaryIdentifier?: string;
|
|
45
|
-
method: HttpMethod;
|
|
46
|
-
s3url?: GetS3UrlResponse;
|
|
47
45
|
}
|
|
48
46
|
/** Represents the details of a request. The `uuid` field is optional. It only needs to be specified if the consuming
|
|
49
47
|
* code may have to cancel or otherwise modify the request at a later time. */
|
|
50
48
|
export type SDKRequest = Omit<RequestDetails, "uuid"> & {
|
|
51
49
|
uuid?: string;
|
|
52
50
|
};
|
|
53
|
-
export type
|
|
54
|
-
|
|
55
|
-
paginate: true;
|
|
51
|
+
export type OfflineSDKRequest = Omit<OfflineRequestDetails, "uuid"> & {
|
|
52
|
+
uuid?: string;
|
|
56
53
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
export type
|
|
62
|
-
/**
|
|
63
|
-
* Represents a successful API result for one instance of a model.
|
|
64
|
-
* @deprecated Use `T` directly instead.
|
|
65
|
-
*/
|
|
66
|
-
export type ApiResult<T> = T;
|
|
67
|
-
/**
|
|
68
|
-
* Represents a successful API result for one instance of a model.
|
|
69
|
-
* @deprecated Use `Created<T>` directly instead.
|
|
70
|
-
*/
|
|
71
|
-
export type ApiModelSuccessResult<T extends Model | undefined> = Created<T>;
|
|
72
|
-
/**
|
|
73
|
-
* Represents a successful API result containing an array of instances of the specified model shape.
|
|
74
|
-
* @deprecated Use `Created<T>[]` directly instead.
|
|
75
|
-
*/
|
|
76
|
-
export type ApiMultipleSuccessResult<T> = Created<T>[];
|
|
77
|
-
/**
|
|
78
|
-
* Represents an error message, which is not specific to the model's type. This is stored in the `result` field of an
|
|
79
|
-
* `APIError` instance.
|
|
80
|
-
*/
|
|
81
|
-
export interface APIErrorResult {
|
|
82
|
-
success: false;
|
|
83
|
-
errorMessage: string;
|
|
84
|
-
response?: request.Response;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Represents a successful API result for one instance of a model.
|
|
88
|
-
* @deprecated Use `Created<T>` directly instead.
|
|
89
|
-
*/
|
|
90
|
-
export type ApiModelResult<T extends Model | undefined> = Created<T>;
|
|
91
|
-
/**
|
|
92
|
-
* @deprecated Use `Created<T>[]` directly instead.
|
|
93
|
-
*/
|
|
94
|
-
export type ApiMultipleModelResult<T extends Model> = Created<T>[];
|
|
54
|
+
export type ModelSDKRequest = Omit<SDKRequest, "url">;
|
|
55
|
+
export type PaginatedSDKRequest = Omit<SDKRequest, "queryParams"> & {
|
|
56
|
+
queryParams?: Omit<QueryParams, "limit" | "paginate">;
|
|
57
|
+
};
|
|
58
|
+
export type PaginatedModelSDKRequest = Omit<PaginatedSDKRequest, "url">;
|
|
95
59
|
/**
|
|
96
60
|
* An "optimistic" result consists of two things:
|
|
97
61
|
* 1. An offline model instance from the store (with the assumption that the API request will succeed)
|
|
@@ -116,11 +80,4 @@ export type PaginatedResult<T> = {
|
|
|
116
80
|
previous: string | null;
|
|
117
81
|
results: T;
|
|
118
82
|
};
|
|
119
|
-
export interface OfflineMetaEffect {
|
|
120
|
-
request: RequestDetails;
|
|
121
|
-
/** An ISO timestamp of when the request was created. */
|
|
122
|
-
timestamp: string;
|
|
123
|
-
BASE_URL: string;
|
|
124
|
-
serviceName: string;
|
|
125
|
-
}
|
|
126
83
|
export type PresignedUrlsResponse = Record<string, GetS3UrlSuccessResponse>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ModelState } from './typings';
|
|
3
|
-
export interface OvermapModelAdapter<TId extends
|
|
4
|
-
addOne:
|
|
5
|
-
addMany:
|
|
6
|
-
setOne:
|
|
7
|
-
setMany:
|
|
8
|
-
updateOne:
|
|
9
|
-
updateMany:
|
|
10
|
-
deleteOne:
|
|
11
|
-
deleteMany:
|
|
12
|
-
initialize:
|
|
13
|
-
getInitialState: <TState extends object>(state: TState) => TState & ModelState<TId, TModel>;
|
|
1
|
+
import { CaseReducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { AddManyPayloadAction, AddOnePayloadAction, DeleteManyPayloadAction, DeleteOnePayloadAction, InitializePayloadAction, ModelState, SetManyPayloadAction, SetOnePayloadAction, UpdateManyPayloadAction, UpdateOnePayloadAction } from './typings';
|
|
3
|
+
export interface OvermapModelAdapter<TId extends PropertyKey, TModel, TState extends ModelState<TId, TModel>> {
|
|
4
|
+
addOne: CaseReducer<TState, AddOnePayloadAction<TModel>>;
|
|
5
|
+
addMany: CaseReducer<TState, AddManyPayloadAction<TModel>>;
|
|
6
|
+
setOne: CaseReducer<TState, SetOnePayloadAction<TModel>>;
|
|
7
|
+
setMany: CaseReducer<TState, SetManyPayloadAction<TModel>>;
|
|
8
|
+
updateOne: CaseReducer<TState, UpdateOnePayloadAction<TModel>>;
|
|
9
|
+
updateMany: CaseReducer<TState, UpdateManyPayloadAction<TModel>>;
|
|
10
|
+
deleteOne: CaseReducer<TState, DeleteOnePayloadAction<TId>>;
|
|
11
|
+
deleteMany: CaseReducer<TState, DeleteManyPayloadAction<TId>>;
|
|
12
|
+
initialize: CaseReducer<TState, InitializePayloadAction<TModel>>;
|
|
14
13
|
}
|
|
15
|
-
export declare function createModelAdapter<TId extends
|
|
14
|
+
export declare function createModelAdapter<TId extends PropertyKey, TModel, TState extends ModelState<TId, TModel>>(computeModelId: (model: TModel) => TId): OvermapModelAdapter<TId, TModel, TState>;
|
|
@@ -1,6 +1,25 @@
|
|
|
1
|
+
import { PayloadAction, ActionCreatorWithPayload } from '@reduxjs/toolkit';
|
|
1
2
|
export interface ModelState<TId extends number | string | symbol, TModel> {
|
|
2
3
|
instances: Record<TId, TModel>;
|
|
3
4
|
}
|
|
4
5
|
export interface SelectionState<TSelection> {
|
|
5
6
|
selection: TSelection[];
|
|
6
7
|
}
|
|
8
|
+
export type InitializePayloadAction<TModel> = PayloadAction<TModel[]>;
|
|
9
|
+
export type AddOnePayloadAction<TModel> = PayloadAction<TModel>;
|
|
10
|
+
export type AddManyPayloadAction<TModel> = PayloadAction<TModel[]>;
|
|
11
|
+
export type UpdateOnePayloadAction<TModel> = PayloadAction<TModel>;
|
|
12
|
+
export type UpdateManyPayloadAction<TModel> = PayloadAction<TModel[]>;
|
|
13
|
+
export type DeleteOnePayloadAction<TId> = PayloadAction<TId>;
|
|
14
|
+
export type DeleteManyPayloadAction<TId> = PayloadAction<TId[]>;
|
|
15
|
+
export type SetOnePayloadAction<TModel> = PayloadAction<TModel>;
|
|
16
|
+
export type SetManyPayloadAction<TModel> = PayloadAction<TModel[]>;
|
|
17
|
+
export type InitializePayloadActionCreator<TModel> = ActionCreatorWithPayload<TModel[]>;
|
|
18
|
+
export type AddOnePayloadActionCreator<TModel> = ActionCreatorWithPayload<TModel>;
|
|
19
|
+
export type AddManyPayloadActionCreator<TModel> = ActionCreatorWithPayload<TModel[]>;
|
|
20
|
+
export type UpdateOnePayloadActionCreator<TModel> = ActionCreatorWithPayload<TModel>;
|
|
21
|
+
export type UpdateManyPayloadActionCreator<TModel> = ActionCreatorWithPayload<TModel[]>;
|
|
22
|
+
export type DeleteOnePayloadActionCreator<TId> = ActionCreatorWithPayload<TId>;
|
|
23
|
+
export type DeleteManyPayloadActionCreator<TId> = ActionCreatorWithPayload<TId[]>;
|
|
24
|
+
export type SetOnePayloadActionCreator<TModel> = ActionCreatorWithPayload<TModel>;
|
|
25
|
+
export type SetManyPayloadActionCreator<TModel> = ActionCreatorWithPayload<TModel[]>;
|