placementt-core 1.20.196 → 11.0.533
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/.eslintrc.js +40 -40
- package/.gitattributes +2 -2
- package/lib/config.d.ts +0 -1
- package/lib/constants.d.ts +5 -2
- package/lib/constants.js +130 -136
- package/lib/constants.js.map +1 -1
- package/lib/features/analytics/useAnalytics.d.ts +0 -1
- package/lib/features/analytics/useAnalytics.js +3 -4
- package/lib/features/analytics/useAnalytics.js.map +1 -1
- package/lib/features/config.d.ts +133 -133
- package/lib/features/config.js +35 -35
- package/lib/features/contacts/contacts.d.ts +75 -75
- package/lib/features/contacts/contacts.js +105 -105
- package/lib/features/contacts/contactsSlice.d.ts +5 -5
- package/lib/features/contacts/useContacts.js +1 -2
- package/lib/features/contacts/useContacts.js.map +1 -1
- package/lib/features/downtime/useDowntime.d.ts +11 -11
- package/lib/features/downtime/useDowntime.js +22 -22
- package/lib/features/dropdown/useDropdown.d.ts +2 -3
- package/lib/features/dropdown/useDropdown.js +1 -2
- package/lib/features/dropdown/useDropdown.js.map +1 -1
- package/lib/features/global/downtime/useDowntime.d.ts +0 -1
- package/lib/features/global/downtime/useDowntime.js +3 -2
- package/lib/features/global/downtime/useDowntime.js.map +1 -1
- package/lib/features/global/users/useUserFunctions.d.ts +0 -1
- package/lib/features/global/users/useUserFunctions.js +6 -7
- package/lib/features/global/users/useUserFunctions.js.map +1 -1
- package/lib/features/placements/studentPlacements/activePlacement.d.ts +1 -1
- package/lib/features/placements/studentPlacements/activePlacement.js +1 -1
- package/lib/features/placements/studentPlacements/activePlacement.js.map +1 -1
- package/lib/features/placements/studentPlacements/completedStudentPlacementsSlice.d.ts +4 -5
- package/lib/features/placements/studentPlacements/completedStudentPlacementsSlice.js +1 -4
- package/lib/features/placements/studentPlacements/completedStudentPlacementsSlice.js.map +1 -1
- package/lib/features/placements/studentPlacements/studentPlacementsSlice.d.ts +63 -63
- package/lib/features/placements/studentPlacements/studentPlacementsSlice.js +81 -81
- package/lib/features/placements/studentPlacements/upcomingStudentPlacementsSlice.d.ts +4 -4
- package/lib/features/placements/studentPlacements/upcomingStudentPlacementsSlice.js +1 -1
- package/lib/features/placements/studentPlacements/upcomingStudentPlacementsSlice.js.map +1 -1
- package/lib/features/placements/studentPlacements/useStudentPlacements.d.ts +0 -1
- package/lib/features/placements/studentPlacements/useStudentPlacements.js +1 -2
- package/lib/features/placements/studentPlacements/useStudentPlacements.js.map +1 -1
- package/lib/features/providerPlacements/providerPlacementsSlice.d.ts +19 -19
- package/lib/features/providerPlacements/providerPlacementsSlice.js +24 -24
- package/lib/features/referrals/useReferrals.d.ts +0 -1
- package/lib/features/referrals/useReferrals.js +1 -2
- package/lib/features/referrals/useReferrals.js.map +1 -1
- package/lib/features/studentPlacements/studentPlacementsSlice.d.ts +62 -62
- package/lib/features/studentPlacements/studentPlacementsSlice.js +87 -87
- package/lib/features/studentPlacements/useStudentPlacements.d.ts +6 -6
- package/lib/features/studentPlacements/useStudentPlacements.js +18 -18
- package/lib/features/updates/useUpdates.js +1 -2
- package/lib/features/updates/useUpdates.js.map +1 -1
- package/lib/features/userSlice.d.ts +26 -26
- package/lib/features/userSlice.js +23 -23
- package/lib/features/users/useUserFunctions.d.ts +25 -25
- package/lib/features/users/useUserFunctions.js +124 -124
- package/lib/features/users/userSlice.d.ts +46 -46
- package/lib/features/users/userSlice.js +48 -48
- package/lib/firebase/firebase.d.ts +1 -1
- package/lib/firebase/firebase.js +9 -4
- package/lib/firebase/firebase.js.map +1 -1
- package/lib/firebase/firebaseConfig.js +3 -0
- package/lib/firebase/firebaseConfig.js.map +1 -1
- package/lib/firebase/firebaseQuery.js +3 -0
- package/lib/firebase/firebaseQuery.js.map +1 -1
- package/lib/firebase/persistence.js +2 -2
- package/lib/firebase/persistence.js.map +1 -1
- package/lib/firebase/readDatabase.d.ts +9 -6
- package/lib/firebase/readDatabase.js +16 -6
- package/lib/firebase/readDatabase.js.map +1 -1
- package/lib/firebase/util.d.ts +3 -4
- package/lib/firebase/util.js +49 -4
- package/lib/firebase/util.js.map +1 -1
- package/lib/firebase/writeDatabase.d.ts +3 -3
- package/lib/firebase/writeDatabase.js +7 -1
- package/lib/firebase/writeDatabase.js.map +1 -1
- package/lib/hooks.d.ts +384 -23
- package/lib/hooks.js +1342 -223
- package/lib/hooks.js.map +1 -1
- package/lib/images/GatsbyBenchmarks.d.ts +0 -1
- package/lib/images/GatsbyBenchmarks.js +1 -1
- package/lib/images/GatsbyBenchmarks.js.map +1 -1
- package/lib/reduxHooks.d.ts +11 -20
- package/lib/reduxHooks.js +28 -18
- package/lib/reduxHooks.js.map +1 -1
- package/lib/tasksAndTips.d.ts +25 -5
- package/lib/tasksAndTips.js +346 -48
- package/lib/tasksAndTips.js.map +1 -1
- package/lib/typeDefinitions.d.ts +478 -53
- package/lib/util.d.ts +1 -0
- package/lib/util.js +78 -6
- package/lib/util.js.map +1 -1
- package/package.json +52 -49
- package/src/DatabaseDefinitions.ts +18 -18
- package/src/apiCalls.ts +128 -128
- package/src/config.ts +50 -50
- package/src/constants.ts +708 -707
- package/src/databaseTypes.ts +42 -42
- package/src/features/analytics/useAnalytics.tsx +55 -55
- package/src/features/contacts/contactsSlice.ts +147 -147
- package/src/features/contacts/useContacts.tsx +73 -73
- package/src/features/dropdown/useDropdown.tsx +52 -52
- package/src/features/global/downtime/useDowntime.tsx +19 -18
- package/src/features/global/users/useUserFunctions.tsx +132 -132
- package/src/features/jobs/jobsSlice.ts +65 -65
- package/src/features/placements/studentPlacements/activePlacement.ts +63 -63
- package/src/features/placements/studentPlacements/completedStudentPlacementsSlice.ts +94 -97
- package/src/features/placements/studentPlacements/upcomingStudentPlacementsSlice.ts +108 -108
- package/src/features/placements/studentPlacements/useStudentPlacements.tsx +33 -33
- package/src/features/placements/types.ts +10 -10
- package/src/features/referrals/useReferrals.tsx +56 -56
- package/src/features/updates/useUpdates.tsx +36 -36
- package/src/firebase/firebase.tsx +142 -138
- package/src/firebase/firebaseConfig.tsx +45 -42
- package/src/firebase/firebaseQuery.tsx +143 -140
- package/src/firebase/persistence.ts +84 -84
- package/src/firebase/readDatabase.tsx +208 -197
- package/src/firebase/util.tsx +352 -308
- package/src/firebase/writeDatabase.tsx +75 -68
- package/src/hooks.tsx +3395 -1943
- package/src/images/GatsbyBenchmarks.tsx +711 -711
- package/src/images/LogFuturePlacement.jsx +64 -64
- package/src/images/LogPreviousPlacement.jsx +228 -228
- package/src/images/gatsby_benchmarks.svg +466 -466
- package/src/images/log_future_placement.svg +114 -114
- package/src/images/log_previous_placement.svg +199 -199
- package/src/index.ts +34 -34
- package/src/readDatabase.tsx +3 -3
- package/src/reduxHooks.ts +183 -170
- package/src/tasksAndTips.ts +744 -410
- package/src/tutorialTips.ts +58 -58
- package/src/typeDefinitions.ts +899 -503
- package/src/util.ts +132 -47
- package/tsconfig.dev.json +5 -5
- package/tsconfig.json +21 -21
package/lib/features/config.d.ts
CHANGED
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
/// <reference types="redux-persist/types/persistreducer" />
|
|
2
|
-
import { ThunkAction, Action } from "@reduxjs/toolkit";
|
|
3
|
-
import { TypedUseSelectorHook } from "react-redux";
|
|
4
|
-
declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<import("redux").EmptyObject & {
|
|
5
|
-
job: {
|
|
6
|
-
values: {
|
|
7
|
-
[jobId: string]: {
|
|
8
|
-
id: string;
|
|
9
|
-
description: string;
|
|
10
|
-
finished: string;
|
|
11
|
-
logs: string[];
|
|
12
|
-
oId: string;
|
|
13
|
-
outputMsg: string;
|
|
14
|
-
product: string;
|
|
15
|
-
started: string;
|
|
16
|
-
status: string;
|
|
17
|
-
title: string;
|
|
18
|
-
updated: string;
|
|
19
|
-
viewedBy: string[];
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
user: {
|
|
24
|
-
user: import("..").UserData | null;
|
|
25
|
-
status: "normal" | "loading" | "success";
|
|
26
|
-
};
|
|
27
|
-
studentPlacements: {
|
|
28
|
-
status: string;
|
|
29
|
-
values: {
|
|
30
|
-
[key: string]: import("..").StudentPlacementData;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
providerPlacements: {
|
|
34
|
-
values: {
|
|
35
|
-
[key: string]: import("..").ProviderPlacementData;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
contacts: {
|
|
39
|
-
status: string;
|
|
40
|
-
lastContact: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData> | undefined;
|
|
41
|
-
values: {
|
|
42
|
-
[contactId: string]: import("..").Contact;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
} & import("redux-persist/es/persistReducer").PersistPartial, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<import("redux").EmptyObject & {
|
|
46
|
-
job: {
|
|
47
|
-
values: {
|
|
48
|
-
[jobId: string]: {
|
|
49
|
-
id: string;
|
|
50
|
-
description: string;
|
|
51
|
-
finished: string;
|
|
52
|
-
logs: string[];
|
|
53
|
-
oId: string;
|
|
54
|
-
outputMsg: string;
|
|
55
|
-
product: string;
|
|
56
|
-
started: string;
|
|
57
|
-
status: string;
|
|
58
|
-
title: string;
|
|
59
|
-
updated: string;
|
|
60
|
-
viewedBy: string[];
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
user: {
|
|
65
|
-
user: import("..").UserData | null;
|
|
66
|
-
status: "normal" | "loading" | "success";
|
|
67
|
-
};
|
|
68
|
-
studentPlacements: {
|
|
69
|
-
status: string;
|
|
70
|
-
values: {
|
|
71
|
-
[key: string]: import("..").StudentPlacementData;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
providerPlacements: {
|
|
75
|
-
values: {
|
|
76
|
-
[key: string]: import("..").ProviderPlacementData;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
contacts: {
|
|
80
|
-
status: string;
|
|
81
|
-
lastContact: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData> | undefined;
|
|
82
|
-
values: {
|
|
83
|
-
[contactId: string]: import("..").Contact;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
} & import("redux-persist/es/persistReducer").PersistPartial, import("redux").AnyAction>]>;
|
|
87
|
-
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
88
|
-
export type RootState = ReturnType<typeof store.getState>;
|
|
89
|
-
export type AppDispatch = typeof store.dispatch;
|
|
90
|
-
export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispatch<import("redux").EmptyObject & {
|
|
91
|
-
job: {
|
|
92
|
-
values: {
|
|
93
|
-
[jobId: string]: {
|
|
94
|
-
id: string;
|
|
95
|
-
description: string;
|
|
96
|
-
finished: string;
|
|
97
|
-
logs: string[];
|
|
98
|
-
oId: string;
|
|
99
|
-
outputMsg: string;
|
|
100
|
-
product: string;
|
|
101
|
-
started: string;
|
|
102
|
-
status: string;
|
|
103
|
-
title: string;
|
|
104
|
-
updated: string;
|
|
105
|
-
viewedBy: string[];
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
user: {
|
|
110
|
-
user: import("..").UserData | null;
|
|
111
|
-
status: "normal" | "loading" | "success";
|
|
112
|
-
};
|
|
113
|
-
studentPlacements: {
|
|
114
|
-
status: string;
|
|
115
|
-
values: {
|
|
116
|
-
[key: string]: import("..").StudentPlacementData;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
providerPlacements: {
|
|
120
|
-
values: {
|
|
121
|
-
[key: string]: import("..").ProviderPlacementData;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
contacts: {
|
|
125
|
-
status: string;
|
|
126
|
-
lastContact: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData> | undefined;
|
|
127
|
-
values: {
|
|
128
|
-
[contactId: string]: import("..").Contact;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
} & import("redux-persist/es/persistReducer").PersistPartial, undefined, import("redux").AnyAction> & import("redux").Dispatch<import("redux").AnyAction>;
|
|
132
|
-
export type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>;
|
|
133
|
-
export default store;
|
|
1
|
+
/// <reference types="redux-persist/types/persistreducer" />
|
|
2
|
+
import { ThunkAction, Action } from "@reduxjs/toolkit";
|
|
3
|
+
import { TypedUseSelectorHook } from "react-redux";
|
|
4
|
+
declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<import("redux").EmptyObject & {
|
|
5
|
+
job: {
|
|
6
|
+
values: {
|
|
7
|
+
[jobId: string]: {
|
|
8
|
+
id: string;
|
|
9
|
+
description: string;
|
|
10
|
+
finished: string;
|
|
11
|
+
logs: string[];
|
|
12
|
+
oId: string;
|
|
13
|
+
outputMsg: string;
|
|
14
|
+
product: string;
|
|
15
|
+
started: string;
|
|
16
|
+
status: string;
|
|
17
|
+
title: string;
|
|
18
|
+
updated: string;
|
|
19
|
+
viewedBy: string[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
user: {
|
|
24
|
+
user: import("..").UserData | null;
|
|
25
|
+
status: "normal" | "loading" | "success";
|
|
26
|
+
};
|
|
27
|
+
studentPlacements: {
|
|
28
|
+
status: string;
|
|
29
|
+
values: {
|
|
30
|
+
[key: string]: import("..").StudentPlacementData;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
providerPlacements: {
|
|
34
|
+
values: {
|
|
35
|
+
[key: string]: import("..").ProviderPlacementData;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
contacts: {
|
|
39
|
+
status: string;
|
|
40
|
+
lastContact: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData> | undefined;
|
|
41
|
+
values: {
|
|
42
|
+
[contactId: string]: import("..").Contact;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
} & import("redux-persist/es/persistReducer").PersistPartial, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<import("redux").EmptyObject & {
|
|
46
|
+
job: {
|
|
47
|
+
values: {
|
|
48
|
+
[jobId: string]: {
|
|
49
|
+
id: string;
|
|
50
|
+
description: string;
|
|
51
|
+
finished: string;
|
|
52
|
+
logs: string[];
|
|
53
|
+
oId: string;
|
|
54
|
+
outputMsg: string;
|
|
55
|
+
product: string;
|
|
56
|
+
started: string;
|
|
57
|
+
status: string;
|
|
58
|
+
title: string;
|
|
59
|
+
updated: string;
|
|
60
|
+
viewedBy: string[];
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
user: {
|
|
65
|
+
user: import("..").UserData | null;
|
|
66
|
+
status: "normal" | "loading" | "success";
|
|
67
|
+
};
|
|
68
|
+
studentPlacements: {
|
|
69
|
+
status: string;
|
|
70
|
+
values: {
|
|
71
|
+
[key: string]: import("..").StudentPlacementData;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
providerPlacements: {
|
|
75
|
+
values: {
|
|
76
|
+
[key: string]: import("..").ProviderPlacementData;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
contacts: {
|
|
80
|
+
status: string;
|
|
81
|
+
lastContact: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData> | undefined;
|
|
82
|
+
values: {
|
|
83
|
+
[contactId: string]: import("..").Contact;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
} & import("redux-persist/es/persistReducer").PersistPartial, import("redux").AnyAction>]>;
|
|
87
|
+
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
88
|
+
export type RootState = ReturnType<typeof store.getState>;
|
|
89
|
+
export type AppDispatch = typeof store.dispatch;
|
|
90
|
+
export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispatch<import("redux").EmptyObject & {
|
|
91
|
+
job: {
|
|
92
|
+
values: {
|
|
93
|
+
[jobId: string]: {
|
|
94
|
+
id: string;
|
|
95
|
+
description: string;
|
|
96
|
+
finished: string;
|
|
97
|
+
logs: string[];
|
|
98
|
+
oId: string;
|
|
99
|
+
outputMsg: string;
|
|
100
|
+
product: string;
|
|
101
|
+
started: string;
|
|
102
|
+
status: string;
|
|
103
|
+
title: string;
|
|
104
|
+
updated: string;
|
|
105
|
+
viewedBy: string[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
user: {
|
|
110
|
+
user: import("..").UserData | null;
|
|
111
|
+
status: "normal" | "loading" | "success";
|
|
112
|
+
};
|
|
113
|
+
studentPlacements: {
|
|
114
|
+
status: string;
|
|
115
|
+
values: {
|
|
116
|
+
[key: string]: import("..").StudentPlacementData;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
providerPlacements: {
|
|
120
|
+
values: {
|
|
121
|
+
[key: string]: import("..").ProviderPlacementData;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
contacts: {
|
|
125
|
+
status: string;
|
|
126
|
+
lastContact: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData> | undefined;
|
|
127
|
+
values: {
|
|
128
|
+
[contactId: string]: import("..").Contact;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
} & import("redux-persist/es/persistReducer").PersistPartial, undefined, import("redux").AnyAction> & import("redux").Dispatch<import("redux").AnyAction>;
|
|
132
|
+
export type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>;
|
|
133
|
+
export default store;
|
package/lib/features/config.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useAppDispatch = exports.useAppSelector = void 0;
|
|
7
|
-
const toolkit_1 = require("@reduxjs/toolkit");
|
|
8
|
-
const userSlice_1 = __importDefault(require("./users/userSlice"));
|
|
9
|
-
const react_redux_1 = require("react-redux");
|
|
10
|
-
const jobsSlice_1 = __importDefault(require("./jobs/jobsSlice"));
|
|
11
|
-
const studentPlacementsSlice_1 = __importDefault(require("./studentPlacements/studentPlacementsSlice"));
|
|
12
|
-
const providerPlacementsSlice_1 = __importDefault(require("./providerPlacements/providerPlacementsSlice"));
|
|
13
|
-
const contacts_1 = __importDefault(require("./contacts/contacts"));
|
|
14
|
-
const redux_persist_1 = require("redux-persist");
|
|
15
|
-
const async_storage_1 = __importDefault(require("@react-native-async-storage/async-storage"));
|
|
16
|
-
const persistConfig = {
|
|
17
|
-
key: "root",
|
|
18
|
-
storage: async_storage_1.default,
|
|
19
|
-
};
|
|
20
|
-
const rootReducer = (0, toolkit_1.combineReducers)({
|
|
21
|
-
job: jobsSlice_1.default,
|
|
22
|
-
user: userSlice_1.default,
|
|
23
|
-
studentPlacements: studentPlacementsSlice_1.default,
|
|
24
|
-
providerPlacements: providerPlacementsSlice_1.default,
|
|
25
|
-
contacts: contacts_1.default
|
|
26
|
-
});
|
|
27
|
-
const persistedReducer = (0, redux_persist_1.persistReducer)(persistConfig, rootReducer);
|
|
28
|
-
const store = (0, toolkit_1.configureStore)({
|
|
29
|
-
reducer: persistedReducer,
|
|
30
|
-
devTools: process.env.NODE_ENV !== "production"
|
|
31
|
-
});
|
|
32
|
-
exports.useAppSelector = react_redux_1.useSelector;
|
|
33
|
-
const useAppDispatch = () => (0, react_redux_1.useDispatch)();
|
|
34
|
-
exports.useAppDispatch = useAppDispatch;
|
|
35
|
-
exports.default = store;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useAppDispatch = exports.useAppSelector = void 0;
|
|
7
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
8
|
+
const userSlice_1 = __importDefault(require("./users/userSlice"));
|
|
9
|
+
const react_redux_1 = require("react-redux");
|
|
10
|
+
const jobsSlice_1 = __importDefault(require("./jobs/jobsSlice"));
|
|
11
|
+
const studentPlacementsSlice_1 = __importDefault(require("./studentPlacements/studentPlacementsSlice"));
|
|
12
|
+
const providerPlacementsSlice_1 = __importDefault(require("./providerPlacements/providerPlacementsSlice"));
|
|
13
|
+
const contacts_1 = __importDefault(require("./contacts/contacts"));
|
|
14
|
+
const redux_persist_1 = require("redux-persist");
|
|
15
|
+
const async_storage_1 = __importDefault(require("@react-native-async-storage/async-storage"));
|
|
16
|
+
const persistConfig = {
|
|
17
|
+
key: "root",
|
|
18
|
+
storage: async_storage_1.default,
|
|
19
|
+
};
|
|
20
|
+
const rootReducer = (0, toolkit_1.combineReducers)({
|
|
21
|
+
job: jobsSlice_1.default,
|
|
22
|
+
user: userSlice_1.default,
|
|
23
|
+
studentPlacements: studentPlacementsSlice_1.default,
|
|
24
|
+
providerPlacements: providerPlacementsSlice_1.default,
|
|
25
|
+
contacts: contacts_1.default
|
|
26
|
+
});
|
|
27
|
+
const persistedReducer = (0, redux_persist_1.persistReducer)(persistConfig, rootReducer);
|
|
28
|
+
const store = (0, toolkit_1.configureStore)({
|
|
29
|
+
reducer: persistedReducer,
|
|
30
|
+
devTools: process.env.NODE_ENV !== "production"
|
|
31
|
+
});
|
|
32
|
+
exports.useAppSelector = react_redux_1.useSelector;
|
|
33
|
+
const useAppDispatch = () => (0, react_redux_1.useDispatch)();
|
|
34
|
+
exports.useAppDispatch = useAppDispatch;
|
|
35
|
+
exports.default = store;
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { Contact } from "../../typeDefinitions";
|
|
2
|
-
import { DocumentData, QueryConstraint, QueryDocumentSnapshot, QuerySnapshot } from "firebase/firestore";
|
|
3
|
-
type InitialContactState = {
|
|
4
|
-
status: string;
|
|
5
|
-
lastContact: QueryDocumentSnapshot<DocumentData> | undefined;
|
|
6
|
-
values: {
|
|
7
|
-
[contactId: string]: Contact;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const fetchContacts: import("@reduxjs/toolkit").AsyncThunk<QuerySnapshot<DocumentData>, {
|
|
11
|
-
formattedConstraints?: QueryConstraint | QueryConstraint[] | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
state?: unknown;
|
|
14
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
15
|
-
extra?: unknown;
|
|
16
|
-
rejectValue?: unknown;
|
|
17
|
-
serializedErrorType?: unknown;
|
|
18
|
-
pendingMeta?: unknown;
|
|
19
|
-
fulfilledMeta?: unknown;
|
|
20
|
-
rejectedMeta?: unknown;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const addContact: import("@reduxjs/toolkit").AsyncThunk<Contact, {
|
|
23
|
-
contactForm: Contact;
|
|
24
|
-
userId: string;
|
|
25
|
-
}, {
|
|
26
|
-
state?: unknown;
|
|
27
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
28
|
-
extra?: unknown;
|
|
29
|
-
rejectValue?: unknown;
|
|
30
|
-
serializedErrorType?: unknown;
|
|
31
|
-
pendingMeta?: unknown;
|
|
32
|
-
fulfilledMeta?: unknown;
|
|
33
|
-
rejectedMeta?: unknown;
|
|
34
|
-
}>;
|
|
35
|
-
export declare const updateContact: import("@reduxjs/toolkit").AsyncThunk<{
|
|
36
|
-
contactForm: Contact;
|
|
37
|
-
contactId: string;
|
|
38
|
-
}, {
|
|
39
|
-
contactForm: Contact;
|
|
40
|
-
contactId: string;
|
|
41
|
-
}, {
|
|
42
|
-
state?: unknown;
|
|
43
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
44
|
-
extra?: unknown;
|
|
45
|
-
rejectValue?: unknown;
|
|
46
|
-
serializedErrorType?: unknown;
|
|
47
|
-
pendingMeta?: unknown;
|
|
48
|
-
fulfilledMeta?: unknown;
|
|
49
|
-
rejectedMeta?: unknown;
|
|
50
|
-
}>;
|
|
51
|
-
export declare const deleteContact: import("@reduxjs/toolkit").AsyncThunk<string, {
|
|
52
|
-
contactId: string;
|
|
53
|
-
}, {
|
|
54
|
-
state?: unknown;
|
|
55
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
56
|
-
extra?: unknown;
|
|
57
|
-
rejectValue?: unknown;
|
|
58
|
-
serializedErrorType?: unknown;
|
|
59
|
-
pendingMeta?: unknown;
|
|
60
|
-
fulfilledMeta?: unknown;
|
|
61
|
-
rejectedMeta?: unknown;
|
|
62
|
-
}>;
|
|
63
|
-
export declare const contactsSlice: import("@reduxjs/toolkit").Slice<InitialContactState, {
|
|
64
|
-
setContacts: (state: import("immer/dist/internal").WritableDraft<InitialContactState>, action: {
|
|
65
|
-
payload: any;
|
|
66
|
-
type: string;
|
|
67
|
-
}) => void;
|
|
68
|
-
setLastContact: (state: import("immer/dist/internal").WritableDraft<InitialContactState>, action: {
|
|
69
|
-
payload: any;
|
|
70
|
-
type: string;
|
|
71
|
-
}) => void;
|
|
72
|
-
}, "contacts">;
|
|
73
|
-
export declare const setContacts: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "contacts/setContacts">, setLastContact: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "contacts/setLastContact">;
|
|
74
|
-
declare const _default: import("redux").Reducer<InitialContactState>;
|
|
75
|
-
export default _default;
|
|
1
|
+
import { Contact } from "../../typeDefinitions";
|
|
2
|
+
import { DocumentData, QueryConstraint, QueryDocumentSnapshot, QuerySnapshot } from "firebase/firestore";
|
|
3
|
+
type InitialContactState = {
|
|
4
|
+
status: string;
|
|
5
|
+
lastContact: QueryDocumentSnapshot<DocumentData> | undefined;
|
|
6
|
+
values: {
|
|
7
|
+
[contactId: string]: Contact;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const fetchContacts: import("@reduxjs/toolkit").AsyncThunk<QuerySnapshot<DocumentData>, {
|
|
11
|
+
formattedConstraints?: QueryConstraint | QueryConstraint[] | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
state?: unknown;
|
|
14
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
15
|
+
extra?: unknown;
|
|
16
|
+
rejectValue?: unknown;
|
|
17
|
+
serializedErrorType?: unknown;
|
|
18
|
+
pendingMeta?: unknown;
|
|
19
|
+
fulfilledMeta?: unknown;
|
|
20
|
+
rejectedMeta?: unknown;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const addContact: import("@reduxjs/toolkit").AsyncThunk<Contact, {
|
|
23
|
+
contactForm: Contact;
|
|
24
|
+
userId: string;
|
|
25
|
+
}, {
|
|
26
|
+
state?: unknown;
|
|
27
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
28
|
+
extra?: unknown;
|
|
29
|
+
rejectValue?: unknown;
|
|
30
|
+
serializedErrorType?: unknown;
|
|
31
|
+
pendingMeta?: unknown;
|
|
32
|
+
fulfilledMeta?: unknown;
|
|
33
|
+
rejectedMeta?: unknown;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const updateContact: import("@reduxjs/toolkit").AsyncThunk<{
|
|
36
|
+
contactForm: Contact;
|
|
37
|
+
contactId: string;
|
|
38
|
+
}, {
|
|
39
|
+
contactForm: Contact;
|
|
40
|
+
contactId: string;
|
|
41
|
+
}, {
|
|
42
|
+
state?: unknown;
|
|
43
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
44
|
+
extra?: unknown;
|
|
45
|
+
rejectValue?: unknown;
|
|
46
|
+
serializedErrorType?: unknown;
|
|
47
|
+
pendingMeta?: unknown;
|
|
48
|
+
fulfilledMeta?: unknown;
|
|
49
|
+
rejectedMeta?: unknown;
|
|
50
|
+
}>;
|
|
51
|
+
export declare const deleteContact: import("@reduxjs/toolkit").AsyncThunk<string, {
|
|
52
|
+
contactId: string;
|
|
53
|
+
}, {
|
|
54
|
+
state?: unknown;
|
|
55
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
56
|
+
extra?: unknown;
|
|
57
|
+
rejectValue?: unknown;
|
|
58
|
+
serializedErrorType?: unknown;
|
|
59
|
+
pendingMeta?: unknown;
|
|
60
|
+
fulfilledMeta?: unknown;
|
|
61
|
+
rejectedMeta?: unknown;
|
|
62
|
+
}>;
|
|
63
|
+
export declare const contactsSlice: import("@reduxjs/toolkit").Slice<InitialContactState, {
|
|
64
|
+
setContacts: (state: import("immer/dist/internal").WritableDraft<InitialContactState>, action: {
|
|
65
|
+
payload: any;
|
|
66
|
+
type: string;
|
|
67
|
+
}) => void;
|
|
68
|
+
setLastContact: (state: import("immer/dist/internal").WritableDraft<InitialContactState>, action: {
|
|
69
|
+
payload: any;
|
|
70
|
+
type: string;
|
|
71
|
+
}) => void;
|
|
72
|
+
}, "contacts">;
|
|
73
|
+
export declare const setContacts: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "contacts/setContacts">, setLastContact: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "contacts/setLastContact">;
|
|
74
|
+
declare const _default: import("redux").Reducer<InitialContactState>;
|
|
75
|
+
export default _default;
|