@legalplace/wizardx-core 4.43.2 → 4.43.5

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.
@@ -27,6 +27,8 @@ export declare type ConnectVariableMapProps = {
27
27
  display: boolean;
28
28
  meta: VariableV3;
29
29
  autocompleteParents?: AutocompleteParent[];
30
+ proofUniqid?: string;
31
+ isProofUploaded?: boolean;
30
32
  };
31
33
  export declare type ConnectVariableDispatchProps = {
32
34
  updateVariable: (value: string | number) => void;
@@ -1,5 +1,6 @@
1
+ import { formProofStatus } from "@legalplace/typeorm-constants";
1
2
  import { componentConnector } from "./connector/componentConnector";
2
- import { isStepAvailable } from "../redux/selectors/app";
3
+ import { isStepAvailable, selectInstanceIsPaid } from "../redux/selectors/app";
3
4
  import { selectOptionReference, selectVariableParents, selectVariablesReference, } from "../redux/selectors/references";
4
5
  import { parseRawWithRelatedVariables, parseVariableLabel, } from "../helpers/outputsParsing";
5
6
  import { selectAutocompleteDataset, selectIsVariableDisabledByIndex, selectLinkedVariables, selectVariableDisabledTooltipByIndex, } from "../redux";
@@ -14,12 +15,12 @@ export const canVariableDisplay = (id, index, selectors) => {
14
15
  return display;
15
16
  };
16
17
  const stateToProps = (selectors) => (state, ownProps) => {
17
- var _a;
18
- const { selectVariableReference, selectVariableInputByIndex, selectVariableConditionValue, selectVariableValidatorConditionValue, selectMandatoryVariableByIndex, selectListSelectValuesByIndex, } = selectors;
18
+ var _a, _b;
19
+ const { selectVariableReference, selectVariableInputByIndex, selectVariableConditionValue, selectVariableValidatorConditionValue, selectMandatoryVariableByIndex, selectListSelectValuesByIndex, selectInstanceProofs, } = selectors;
19
20
  const { id, index } = ownProps;
20
21
  const variable = selectVariableReference(id);
21
22
  const label = parseVariableLabel(id, index);
22
- const display = canVariableDisplay(id, index, selectors);
23
+ let display = canVariableDisplay(id, index, selectors);
23
24
  const value = selectVariableInputByIndex(id, index) || "";
24
25
  const condition = selectVariableConditionValue(id, index);
25
26
  const validator = selectVariableValidatorConditionValue(id, index);
@@ -27,7 +28,7 @@ const stateToProps = (selectors) => (state, ownProps) => {
27
28
  const autocompleteDataset = selectAutocompleteDataset(id);
28
29
  const disabled = selectIsVariableDisabledByIndex(id, index);
29
30
  const disabledTooltip = selectVariableDisabledTooltipByIndex(id, index);
30
- const { type } = variable;
31
+ let { type } = variable;
31
32
  let { selectValues } = variable;
32
33
  if (type === "list" && typeof index !== "undefined") {
33
34
  selectValues = [...selectListSelectValuesByIndex(id, index)];
@@ -45,7 +46,30 @@ const stateToProps = (selectors) => (state, ownProps) => {
45
46
  value: selectVariableInputByIndex(autoParent.id, index) || "",
46
47
  condition: selectVariableConditionValue(autoParent.id, index),
47
48
  }));
48
- const validatorMessage = typeof ((_a = variable.validator) === null || _a === void 0 ? void 0 : _a.message) === "string"
49
+ const displayUploadProofTag = (_a = variable.tags) === null || _a === void 0 ? void 0 : _a.find((tag) => tag.includes("ux_upload"));
50
+ let proofUniqid = "";
51
+ let isProofUploaded = false;
52
+ const instanceIsPaid = selectInstanceIsPaid();
53
+ if (displayUploadProofTag && value === "true") {
54
+ const proofs = selectInstanceProofs();
55
+ const instanceProof = proofs === null || proofs === void 0 ? void 0 : proofs.find((proof) => {
56
+ var _a, _b, _c, _d;
57
+ return Number((_b = (_a = proof === null || proof === void 0 ? void 0 : proof.metadata) === null || _a === void 0 ? void 0 : _a.custom) === null || _b === void 0 ? void 0 : _b.idUploadProof) === Number(id) &&
58
+ ((_d = (_c = proof === null || proof === void 0 ? void 0 : proof.metadata) === null || _c === void 0 ? void 0 : _c.custom) === null || _d === void 0 ? void 0 : _d.index) === index;
59
+ });
60
+ if (instanceProof &&
61
+ instanceIsPaid &&
62
+ instanceProof.status !== formProofStatus.LATER) {
63
+ type = "upload";
64
+ display = true;
65
+ proofUniqid = instanceProof.uniqid;
66
+ isProofUploaded = ![
67
+ formProofStatus.AWAITING,
68
+ formProofStatus.PRE_UPLOADED,
69
+ ].includes(instanceProof.status);
70
+ }
71
+ }
72
+ const validatorMessage = typeof ((_b = variable.validator) === null || _b === void 0 ? void 0 : _b.message) === "string"
49
73
  ? parseRawWithRelatedVariables(variable.validator.message, parentOptionId, index)
50
74
  : "";
51
75
  const helper = variable.helper
@@ -54,7 +78,7 @@ const stateToProps = (selectors) => (state, ownProps) => {
54
78
  const warning = variable.warning
55
79
  ? parseRawWithRelatedVariables(variable.warning, parentOptionId, index, undefined, "________________")
56
80
  : undefined;
57
- return Object.assign({ id,
81
+ return Object.assign(Object.assign({ id,
58
82
  index,
59
83
  label,
60
84
  type, meta: Object.assign(Object.assign(Object.assign({}, variable), (selectValues && { selectValues })), { helper,
@@ -68,7 +92,7 @@ const stateToProps = (selectors) => (state, ownProps) => {
68
92
  disabled,
69
93
  disabledTooltip,
70
94
  autocompleteDataset,
71
- display }, ((autocompleteParents === null || autocompleteParents === void 0 ? void 0 : autocompleteParents.length) && { autocompleteParents }));
95
+ display }, ((autocompleteParents === null || autocompleteParents === void 0 ? void 0 : autocompleteParents.length) && { autocompleteParents })), (displayUploadProofTag && { proofUniqid, isProofUploaded }));
72
96
  };
73
97
  const dispatchToProps = (actions) => (dispatch, ownProps) => ({
74
98
  updateVariable: (value) => dispatch(actions.updateVariableAction(ownProps.id, value, ownProps.index)),
@@ -0,0 +1,2 @@
1
+ import { ProofCategories } from "@legalplace/typeorm-constants";
2
+ export declare const prooftagsMapToType: Record<string, ProofCategories>;
@@ -0,0 +1,4 @@
1
+ import { ProofCategories } from "@legalplace/typeorm-constants";
2
+ export const prooftagsMapToType = {
3
+ pi: ProofCategories.IDENTITE,
4
+ };
@@ -24,4 +24,8 @@ export declare const updateAvailableSectionsAction: (availableSections: number[]
24
24
  export declare const updateCurrentSectionIdAction: (currentSectionId: number) => ActionsType.App.updateCurrentSectionId;
25
25
  export declare const initCustomizationMetaAction: (meta: Exclude<ModelV3["customization"]["meta"], undefined>) => ActionsType.App.initCustomizationMeta;
26
26
  export declare const initCustomizationAutoDefaultAction: (disableAutoDefault: StateType.App.Customization["disableAutoDefault"]) => ActionsType.App.initCustomizationAutoDefault;
27
+ export declare const setProofsAction: (proofs: any[]) => {
28
+ type: string;
29
+ proofs: any[];
30
+ };
27
31
  export declare const resetStateAction: () => ActionsType.App.resetState;
@@ -1,4 +1,4 @@
1
- import { INIT_META, INIT_INSTANCE, UPDATE_INSTANCE_PAID, INIT_PAGINATION, GO_PAGE, GO_NEXT_PAGE, GO_PREVIOUS_PAGE, UPDATE_AVAILABLE_SECTIONS, UPDATE_CURRENT_APPSTATE, UPDATE_CURRENT_SECTION_ID, FETCH_MODEL_SUCCEEDED, FETCH_MODEL_FAILED, SET_DATA_STATUS, UPDATE_AVAILABLE_APPSTATES, INIT_CUSTOMIZATION_META, FETCH_MODEL_UNHEALTHY, FETCH_MODEL_USER_LOCKED, INIT_CUSTOMIZATION_AUTO_DEFAULT, UPDATE_INSTANCE, SET_FETCH_STATUS, FETCH_MODEL_NONBLOCKING, SET_MODEL_UUID, RESET_STATE, } from "../constants/app";
1
+ import { INIT_META, INIT_INSTANCE, UPDATE_INSTANCE_PAID, INIT_PAGINATION, GO_PAGE, GO_NEXT_PAGE, GO_PREVIOUS_PAGE, UPDATE_AVAILABLE_SECTIONS, UPDATE_CURRENT_APPSTATE, UPDATE_CURRENT_SECTION_ID, FETCH_MODEL_SUCCEEDED, FETCH_MODEL_FAILED, SET_DATA_STATUS, UPDATE_AVAILABLE_APPSTATES, INIT_CUSTOMIZATION_META, FETCH_MODEL_UNHEALTHY, FETCH_MODEL_USER_LOCKED, INIT_CUSTOMIZATION_AUTO_DEFAULT, UPDATE_INSTANCE, SET_FETCH_STATUS, FETCH_MODEL_NONBLOCKING, SET_MODEL_UUID, RESET_STATE, FETCH_INSTANCE_PROOFS, } from "../constants/app";
2
2
  export const initMetaAction = (meta) => (Object.assign({ type: INIT_META }, meta));
3
3
  export const setModelUuidAction = (modelUuid) => ({
4
4
  type: SET_MODEL_UUID,
@@ -71,6 +71,10 @@ export const initCustomizationAutoDefaultAction = (disableAutoDefault) => ({
71
71
  type: INIT_CUSTOMIZATION_AUTO_DEFAULT,
72
72
  disableAutoDefault,
73
73
  });
74
+ export const setProofsAction = (proofs) => ({
75
+ type: FETCH_INSTANCE_PROOFS,
76
+ proofs,
77
+ });
74
78
  export const resetStateAction = () => ({
75
79
  type: RESET_STATE,
76
80
  });
@@ -70,5 +70,9 @@ export declare const actionsLibrary: {
70
70
  updateCurrentSectionIdAction: (currentSectionId: number) => import("../..").ActionsType.App.updateCurrentSectionId;
71
71
  initCustomizationMetaAction: (meta: import("@legalplace/models-v3-types").CustomizationMetaDefault) => import("../..").ActionsType.App.initCustomizationMeta;
72
72
  initCustomizationAutoDefaultAction: (disableAutoDefault: boolean | undefined) => import("../..").ActionsType.App.initCustomizationAutoDefault;
73
+ setProofsAction: (proofs: any[]) => {
74
+ type: string;
75
+ proofs: any[];
76
+ };
73
77
  resetStateAction: () => import("../..").ActionsType.App.resetState;
74
78
  };
@@ -20,5 +20,6 @@ export declare const UPDATE_CURRENT_SECTION_ID = "UPDATE_CURRENT_SECTION_ID";
20
20
  export declare const UPDATE_AVAILABLE_SECTIONS = "UPDATE_AVAILABLE_SECTIONS";
21
21
  export declare const INIT_CUSTOMIZATION_META = "INIT_CUSTOMIZATION_META";
22
22
  export declare const INIT_CUSTOMIZATION_AUTO_DEFAULT = "INIT_CUSTOMIZATION_AUTO_DEFAULT";
23
+ export declare const FETCH_INSTANCE_PROOFS = "FETCH_INSTANCE_PROOFS";
23
24
  export declare const RESET_STATE = "RESET_STATE";
24
25
  export declare const INIT_PLUGINS = "@@INIT_PLUGINS";
@@ -20,5 +20,6 @@ export const UPDATE_CURRENT_SECTION_ID = "UPDATE_CURRENT_SECTION_ID";
20
20
  export const UPDATE_AVAILABLE_SECTIONS = "UPDATE_AVAILABLE_SECTIONS";
21
21
  export const INIT_CUSTOMIZATION_META = "INIT_CUSTOMIZATION_META";
22
22
  export const INIT_CUSTOMIZATION_AUTO_DEFAULT = "INIT_CUSTOMIZATION_AUTO_DEFAULT";
23
+ export const FETCH_INSTANCE_PROOFS = "FETCH_INSTANCE_PROOFS";
23
24
  export const RESET_STATE = "RESET_STATE";
24
25
  export const INIT_PLUGINS = "@@INIT_PLUGINS";
@@ -0,0 +1,2 @@
1
+ import type { ActionsType, StateType } from "wizardx-core/src/types";
2
+ export declare const fetchProofsReducer: (state: StateType.App, action: ActionsType.App.fetchProofs) => StateType.App;
@@ -0,0 +1,6 @@
1
+ export const fetchProofsReducer = (state, action) => {
2
+ const { proofs } = action;
3
+ return Object.assign(Object.assign({}, state), { extraData: {
4
+ proofs,
5
+ } });
6
+ };
@@ -31,6 +31,7 @@ const appStateMock = {
31
31
  steps: '*',
32
32
  },
33
33
  customization: {},
34
+ extraData: {},
34
35
  };
35
36
  describe('App Instance Reducer', () => {
36
37
  it('initInstance Reducer', () => {
@@ -31,6 +31,7 @@ const appStateMock = {
31
31
  steps: '*',
32
32
  },
33
33
  customization: {},
34
+ extraData: {},
34
35
  };
35
36
  describe('App Meta Reducer', () => {
36
37
  it('initMeta Reducer', () => {
@@ -32,6 +32,7 @@ const appStateMock = {
32
32
  steps: '*',
33
33
  },
34
34
  customization: {},
35
+ extraData: {},
35
36
  };
36
37
  describe('Pagination reducers test suit', () => {
37
38
  it('initPaginationReducer', () => {
@@ -29,6 +29,7 @@ const appStateMock = {
29
29
  steps: '*',
30
30
  },
31
31
  customization: {},
32
+ extraData: {},
32
33
  };
33
34
  describe('Wizard reducers test suit', () => {
34
35
  it('updateAvailableSectionsReducer', () => {
@@ -1,5 +1,5 @@
1
1
  import { initPaginationReducer } from "./app/pagination/initPagination";
2
- import { INIT_PAGINATION, GO_PAGE, GO_NEXT_PAGE, GO_PREVIOUS_PAGE, INIT_META, INIT_INSTANCE, UPDATE_INSTANCE_PAID, UPDATE_AVAILABLE_SECTIONS, FETCH_MODEL_FAILED, FETCH_MODEL_SUCCEEDED, SET_DATA_STATUS, UPDATE_AVAILABLE_APPSTATES, INIT_CUSTOMIZATION_META, FETCH_MODEL_UNHEALTHY, FETCH_MODEL_USER_LOCKED, INIT_CUSTOMIZATION_AUTO_DEFAULT, UPDATE_INSTANCE, FETCH_MODEL_NONBLOCKING, SET_MODEL_UUID, RESET_STATE, } from "../constants/app";
2
+ import { INIT_PAGINATION, GO_PAGE, GO_NEXT_PAGE, GO_PREVIOUS_PAGE, INIT_META, INIT_INSTANCE, UPDATE_INSTANCE_PAID, UPDATE_AVAILABLE_SECTIONS, FETCH_MODEL_FAILED, FETCH_MODEL_SUCCEEDED, SET_DATA_STATUS, UPDATE_AVAILABLE_APPSTATES, INIT_CUSTOMIZATION_META, FETCH_MODEL_UNHEALTHY, FETCH_MODEL_USER_LOCKED, INIT_CUSTOMIZATION_AUTO_DEFAULT, UPDATE_INSTANCE, FETCH_MODEL_NONBLOCKING, SET_MODEL_UUID, RESET_STATE, FETCH_INSTANCE_PROOFS, } from "../constants/app";
3
3
  import { goPageReducer } from "./app/pagination/goPage";
4
4
  import { goNextPageReducer } from "./app/pagination/goNextPage";
5
5
  import { goPreviousPageReducer } from "./app/pagination/goPreviousPage";
@@ -18,6 +18,7 @@ import { initCustomizationAutoDefaultTypeReducer } from "./app/customizations/in
18
18
  import { fetchModelUserLockedReducer } from "./app/meta/fetchModelUserLocked";
19
19
  import { fetchModelNonBlockingReducer } from "./app/meta/fetchModelNonBlocking";
20
20
  import { setModelUuidReducer } from "./app/meta/setModelUuid";
21
+ import { fetchProofsReducer } from "./app/extraData/fetchProofs";
21
22
  const initialState = {
22
23
  meta: {
23
24
  fetchStatus: "waiting",
@@ -48,6 +49,7 @@ const initialState = {
48
49
  totalPages: 1,
49
50
  },
50
51
  customization: {},
52
+ extraData: {},
51
53
  };
52
54
  const reducersEnum = {
53
55
  [INIT_META]: initMetaReducer,
@@ -69,6 +71,7 @@ const reducersEnum = {
69
71
  [UPDATE_AVAILABLE_SECTIONS]: updateAvailableSectionsReducer,
70
72
  [INIT_CUSTOMIZATION_AUTO_DEFAULT]: initCustomizationAutoDefaultTypeReducer,
71
73
  [INIT_CUSTOMIZATION_META]: initCustomizationMetaReducer,
74
+ [FETCH_INSTANCE_PROOFS]: fetchProofsReducer,
72
75
  };
73
76
  export const appReducer = (state = initialState, action) => {
74
77
  if (action.type === RESET_STATE)
@@ -35,6 +35,7 @@ const appStateMock = {
35
35
  steps: '*',
36
36
  },
37
37
  customization: {},
38
+ extraData: {},
38
39
  };
39
40
  describe('App Reducer test suit', () => {
40
41
  it('Combines meta reducer', () => {
@@ -1,7 +1,7 @@
1
1
  import { call, put, takeLatest, select, fork, join } from "redux-saga/effects";
2
2
  import Cookies from "universal-cookie";
3
3
  import { initInputsAction } from "../actions/inputs";
4
- import { initMetaAction, initPaginationAction, initInstanceAction, fetchModelSucceededAction, fetchModelFailedAction, initCustomizationMetaAction, fetchModelUnhealthyAction, initCustomizationAutoDefaultAction, fetchModelUserLockedAction, updateAvailableAppStatesAction, goPageAction, fetchModelNonBlockingAction, setModelUuidAction, } from "../actions/app";
4
+ import { initMetaAction, initPaginationAction, initInstanceAction, fetchModelSucceededAction, fetchModelFailedAction, initCustomizationMetaAction, fetchModelUnhealthyAction, initCustomizationAutoDefaultAction, fetchModelUserLockedAction, updateAvailableAppStatesAction, goPageAction, fetchModelNonBlockingAction, setModelUuidAction, setProofsAction, } from "../actions/app";
5
5
  import { initReferencesAction } from "../actions/references";
6
6
  import { selectSectionConditionValue } from "../selectors/conditions";
7
7
  import { selectAllSectionsReferences } from "../selectors/references";
@@ -13,7 +13,7 @@ import { IntputsInitiator } from "../../libs/InputsInitiator";
13
13
  import { initUserAction, setUserStatusAction } from "../actions/user";
14
14
  import { OvcConverter } from "../../libs/OvcConverter";
15
15
  import Globals from "../../Globals";
16
- import { getFetchModelArguments, getCreateInstanceArguments, getClientConfigArguments, getWizardConfigArguments, getModelInformationArguments, checkInstanceModel, } from "../../service/api.manager";
16
+ import { getFetchModelArguments, getCreateInstanceArguments, getClientConfigArguments, getWizardConfigArguments, getModelInformationArguments, checkInstanceModel, updateProofModule, } from "../../service/api.manager";
17
17
  import { loadTheme, setWizardTheme } from "../../ThemeLoader";
18
18
  import { loadPlugins } from "../../PluginLoader";
19
19
  import { enableSmartscriptAction } from "../actions/smartscript";
@@ -197,6 +197,9 @@ function* fetchInstanceInformation(appStates, permalink, uniqid, uniqidParam, pr
197
197
  if (instance.draft === false && !isLevelAccessibleForUser("USER")) {
198
198
  yield put(fetchModelUserLockedAction());
199
199
  }
200
+ let proofsResponse = yield call(fetch, ...updateProofModule(uniqid));
201
+ proofsResponse = yield call([proofsResponse, "json"]);
202
+ yield put(setProofsAction(proofsResponse.proofs));
200
203
  return { instance, availableAppStates, ovc: response.ovc };
201
204
  }
202
205
  function* createInstance(enableShadowInstance, modelInformation, uniqid, permalink, pathReader, urlParams) {
@@ -1,6 +1,6 @@
1
1
  import { call, put, takeLeading } from "redux-saga/effects";
2
2
  import { getConfig } from "../../config";
3
- import { setDataStatus } from "../actions/app";
3
+ import { setDataStatus, setProofsAction } from "../actions/app";
4
4
  import { selectPermalink, selectInstanceUniqid } from "../selectors/app";
5
5
  import { SAVE_DATA } from "../constants/sagas/data";
6
6
  import { selectInputs } from "../selectors/inputs";
@@ -16,7 +16,6 @@ function* saveDataDecorator(action) {
16
16
  throw new Error("Cannot save data, uniqid is not defined");
17
17
  const response = yield call(fetch, ...updateInstanceArguments(permalink, uniqid, OvcConverter.convertToOvc(selectInputs()), action.confirmAnswer ? 0 : 1, action.additionalProperties));
18
18
  const responseData = yield call([response, "json"]);
19
- yield call(fetch, ...updateProofModule(uniqid));
20
19
  if (action.redirect === true) {
21
20
  const searchParams = new URLSearchParams(window.location.search);
22
21
  const onRedirectClose = searchParams.get("onRedirectClose");
@@ -35,6 +34,9 @@ function* saveDataDecorator(action) {
35
34
  }
36
35
  }
37
36
  window.parent.postMessage({ from: "WIZARD", data: "SUCCESS" }, "*");
37
+ let proofsResponse = yield call(fetch, ...updateProofModule(uniqid));
38
+ proofsResponse = yield call([proofsResponse, "json"]);
39
+ yield put(setProofsAction(proofsResponse.proofs));
38
40
  yield put(setDataStatus("saved"));
39
41
  }
40
42
  catch (e) {
@@ -27,5 +27,6 @@ export declare const selectInstanceSteps: () => Readonly<boolean>;
27
27
  export declare const isStepAvailable: (steps: number[] | "*" | undefined) => Readonly<boolean>;
28
28
  export declare const selectCustomizationMeta: () => Readonly<import("../../types/State.type").AppCustomizationMetaType | undefined>;
29
29
  export declare const selectCustomizationAutoDefaultType: () => Readonly<boolean | undefined>;
30
+ export declare const selectInstanceProofs: () => Readonly<any[] | undefined>;
30
31
  export declare const selectModelUuid: () => Readonly<string | undefined>;
31
32
  export declare const CompletelyUnusedSelector: () => Readonly<string | undefined>;
@@ -88,5 +88,6 @@ export const isStepAvailable = createSelector((state, steps) => {
88
88
  : "0");
89
89
  export const selectCustomizationMeta = createSelector((state) => state.app.customization.meta, (state) => (!state.app.customization.meta ? "1" : false));
90
90
  export const selectCustomizationAutoDefaultType = createSelector((state) => state.app.customization.disableAutoDefault, (state) => state.app.customization.disableAutoDefault !== undefined ? "1" : false);
91
+ export const selectInstanceProofs = createSelector((state) => state.app.extraData.proofs);
91
92
  export const selectModelUuid = createSelector((state) => state.app.meta.modelUuid, (state) => (state.app.meta.modelUuid !== undefined ? "1" : false));
92
93
  export const CompletelyUnusedSelector = createSelector((state) => state.app.meta.modelUuid, (state) => (state.app.meta.modelUuid !== undefined ? "1" : false));
@@ -100,6 +100,7 @@ export declare const selectorsLibrary: {
100
100
  isStepAvailable: (steps: number[] | "*" | undefined) => Readonly<boolean>;
101
101
  selectCustomizationMeta: () => Readonly<import("../..").AppCustomizationMetaType | undefined>;
102
102
  selectCustomizationAutoDefaultType: () => Readonly<boolean | undefined>;
103
+ selectInstanceProofs: () => Readonly<any[] | undefined>;
103
104
  selectModelUuid: () => Readonly<string | undefined>;
104
105
  CompletelyUnusedSelector: () => Readonly<string | undefined>;
105
106
  };
@@ -1,6 +1,6 @@
1
1
  import type { ModelV3, OptionV3, VariableV3 } from "@legalplace/models-v3-types";
2
2
  import type { StateType } from "./State.type";
3
- import type { UPDATE_AVAILABLE_SECTIONS, UPDATE_AVAILABLE_APPSTATES, GO_PREVIOUS_PAGE, GO_NEXT_PAGE, GO_PAGE, INIT_PAGINATION, UPDATE_INSTANCE_PAID, INIT_INSTANCE, UPDATE_INSTANCE, INIT_META, UPDATE_CURRENT_APPSTATE, UPDATE_CURRENT_SECTION_ID, FETCH_MODEL_SUCCEEDED, FETCH_MODEL_FAILED, SET_DATA_STATUS, SET_FETCH_STATUS, INIT_CUSTOMIZATION_META, FETCH_MODEL_UNHEALTHY, FETCH_MODEL_USER_LOCKED, INIT_CUSTOMIZATION_AUTO_DEFAULT, FETCH_MODEL_NONBLOCKING, SET_MODEL_UUID, RESET_STATE } from "../redux/constants/app";
3
+ import type { UPDATE_AVAILABLE_SECTIONS, UPDATE_AVAILABLE_APPSTATES, GO_PREVIOUS_PAGE, GO_NEXT_PAGE, GO_PAGE, INIT_PAGINATION, UPDATE_INSTANCE_PAID, INIT_INSTANCE, UPDATE_INSTANCE, INIT_META, UPDATE_CURRENT_APPSTATE, UPDATE_CURRENT_SECTION_ID, FETCH_MODEL_SUCCEEDED, FETCH_MODEL_FAILED, SET_DATA_STATUS, SET_FETCH_STATUS, INIT_CUSTOMIZATION_META, FETCH_MODEL_UNHEALTHY, FETCH_MODEL_USER_LOCKED, INIT_CUSTOMIZATION_AUTO_DEFAULT, FETCH_MODEL_NONBLOCKING, SET_MODEL_UUID, RESET_STATE, FETCH_INSTANCE_PROOFS } from "../redux/constants/app";
4
4
  import type { INIT_USER, SET_USER_STATUS, SET_USER_VALID_TOKEN } from "../redux/constants/user";
5
5
  import type { INIT_REFERENCES, UPDATE_VARIABLE_META, UPDATE_OPTION_META, SET_DISABLED_VARIABLE } from "../redux/constants/references";
6
6
  import type { INIT_INPUTS, INIT_OPTION, UPDATE_OPTION_INPUT, INIT_VARIABLE, UPDATE_VARIABLE_INPUT, ADD_MULTIPLE_OCCURENCY, DELETE_MULTIPLE_OCCURENCY } from "../redux/constants/inputs";
@@ -95,6 +95,9 @@ export declare namespace ActionsType {
95
95
  type: typeof INIT_CUSTOMIZATION_AUTO_DEFAULT;
96
96
  disableAutoDefault: StateType.App.Customization["disableAutoDefault"];
97
97
  }
98
+ interface fetchProofs extends StateType.App.ExtraData {
99
+ type: typeof FETCH_INSTANCE_PROOFS;
100
+ }
98
101
  interface resetState {
99
102
  type: typeof RESET_STATE;
100
103
  }
@@ -39,6 +39,8 @@ export declare namespace StateType {
39
39
  }
40
40
  interface Customization extends AppCustomizationType {
41
41
  }
42
+ interface ExtraData extends AppExtraDataType {
43
+ }
42
44
  namespace Customization {
43
45
  interface meta extends AppCustomizationMetaType {
44
46
  }
@@ -142,6 +144,10 @@ export interface AppType {
142
144
  pagination: AppPaginationType;
143
145
  wizard: AppWizardType;
144
146
  customization: AppCustomizationType;
147
+ extraData: AppExtraDataType;
148
+ }
149
+ export interface AppExtraDataType {
150
+ proofs?: any[];
145
151
  }
146
152
  export interface AppPaginationType {
147
153
  currentAppState: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/wizardx-core",
3
- "version": "4.43.2",
3
+ "version": "4.43.5",
4
4
  "author": "Moncef Hammou (moncef@legalplace.fr)",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -21,14 +21,14 @@
21
21
  "dependencies": {
22
22
  "@appnest/masonry-layout": "^2.0.8",
23
23
  "@cryptography/sha1": "^0.2.0",
24
- "@legalplace/data-gouv": "^1.6.98",
24
+ "@legalplace/data-gouv": "^1.6.100",
25
25
  "@legalplace/lp-events": "1.14.0",
26
26
  "@legalplace/lplogic": "2.3.1",
27
27
  "@legalplace/model-healthcheck": "^1.1.5",
28
28
  "@legalplace/pappers": "^1.2.4",
29
- "@legalplace/referencesparser": "^3.1.82",
29
+ "@legalplace/referencesparser": "^3.1.85",
30
30
  "@legalplace/storybook": "2.364.5",
31
- "@legalplace/typeorm-constants": "^3.77.2",
31
+ "@legalplace/typeorm-constants": "^3.77.5",
32
32
  "@loadable/component": "^5.15.0",
33
33
  "@redux-saga/core": "^1.1.3",
34
34
  "axios": "^0.24.0",
@@ -60,9 +60,9 @@
60
60
  "devDependencies": {
61
61
  "@legalplace/data-gouv": "^1.6.30",
62
62
  "@legalplace/eslint-config": "^2.3.0",
63
- "@legalplace/models-v3-types": "^5.15.0",
63
+ "@legalplace/models-v3-types": "^5.15.3",
64
64
  "@legalplace/prettier-config": "^2.1.3",
65
- "@legalplace/typeorm-entities": "^5.67.5",
65
+ "@legalplace/typeorm-entities": "^5.67.8",
66
66
  "@swc-node/jest": "^1.3.2",
67
67
  "@swc/core": "^1.2.93",
68
68
  "@swc/jest": "^0.2.4",
@@ -100,5 +100,5 @@
100
100
  "*.test.ts",
101
101
  "*.test.tsx"
102
102
  ],
103
- "gitHead": "44b921d2c3ef2ebaead50603b405bd330c73032f"
103
+ "gitHead": "8defec520a96faab25fd0ad90a4ec20567f9dba9"
104
104
  }