@zauru-sdk/redux 2.0.151 → 2.0.154

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.
@@ -19,6 +19,7 @@ const initialState = {
19
19
  shipments: createLoadingState([]),
20
20
  bookings: createLoadingState([]),
21
21
  motivosRechazo: createLoadingState([]),
22
+ ccPorcentajesDeRechazo: createLoadingState([]),
22
23
  bitacoraRechazoMasivo: createLoadingState([]),
23
24
  items: createLoadingState([]),
24
25
  itemsByReception: createLoadingState([]),
package/dist/esm/store.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.useAppDispatch = exports.useAppSelector = exports.createReduxStore = exports.cleanLocalStorage = exports.LOCAL_STORAGE_REDUX_NAME = void 0;
6
+ exports.useAppDispatch = exports.useAppSelector = exports.store = exports.cleanLocalStorage = exports.LOCAL_STORAGE_REDUX_NAME = void 0;
7
7
  const react_redux_1 = require("react-redux");
8
8
  const toolkit_1 = require("@reduxjs/toolkit");
9
9
  const catalogs_slice_js_1 = __importDefault(require("./slices/catalogs.slice.js"));
@@ -16,17 +16,6 @@ const automaticNumbers_slice_js_1 = __importDefault(require("./slices/automaticN
16
16
  const tables_slice_js_1 = __importDefault(require("./slices/tables.slice.js"));
17
17
  const formValidation_slice_js_1 = __importDefault(require("./slices/formValidation.slice.js"));
18
18
  exports.LOCAL_STORAGE_REDUX_NAME = "___redux__state__v3.1.2";
19
- const staticReducers = {
20
- catalogs: catalogs_slice_js_1.default,
21
- profiles: profile_slice_js_1.default,
22
- webappTables: webapp_tables_slice_js_1.default,
23
- receptions: reception_slice_js_1.default,
24
- session: session_slice_js_1.default,
25
- templates: templates_slice_js_1.default,
26
- automaticNumbers: automaticNumbers_slice_js_1.default,
27
- tables: tables_slice_js_1.default,
28
- formValidation: formValidation_slice_js_1.default,
29
- };
30
19
  const persistanceLocalStorageMiddleware = (store) => (next) => (action) => {
31
20
  const result = next(action);
32
21
  if (!(typeof document === "undefined")) {
@@ -52,27 +41,27 @@ const cleanLocalStorage = (whitelist = {}) => {
52
41
  const state = JSON.parse(savedState ?? "{}");
53
42
  try {
54
43
  //delete all cookies
55
- const deleteAllCookies = () => {
56
- const cookies = document.cookie.split(";");
57
- for (const cookie of cookies) {
58
- const eqPos = cookie.indexOf("=");
59
- const name = eqPos > -1 ? cookie.substring(0, eqPos) : cookie;
60
- document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
61
- }
62
- };
63
- deleteAllCookies();
64
- //delete caché
65
- caches.keys().then((names) => {
66
- for (const name of names) {
67
- caches.delete(name);
68
- }
69
- });
44
+ // const deleteAllCookies = () => {
45
+ // const cookies = document.cookie.split(";");
46
+ // for (const cookie of cookies) {
47
+ // const eqPos = cookie.indexOf("=");
48
+ // const name = eqPos > -1 ? cookie.substring(0, eqPos) : cookie;
49
+ // document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
50
+ // }
51
+ // };
52
+ // deleteAllCookies();
53
+ // //delete caché
54
+ // caches.keys().then((names) => {
55
+ // for (const name of names) {
56
+ // caches.delete(name);
57
+ // }
58
+ // });
70
59
  //unregister service workers
71
- navigator.serviceWorker.getRegistrations().then((registrations) => {
72
- for (const registration of registrations) {
73
- registration.unregister();
74
- }
75
- });
60
+ // navigator.serviceWorker.getRegistrations().then((registrations) => {
61
+ // for (const registration of registrations) {
62
+ // registration.unregister();
63
+ // }
64
+ // });
76
65
  // Limpiar todo el localStorage
77
66
  localStorage.clear();
78
67
  }
@@ -123,21 +112,20 @@ const cleanLocalStorage = (whitelist = {}) => {
123
112
  }
124
113
  };
125
114
  exports.cleanLocalStorage = cleanLocalStorage;
126
- // Función que crea la store combinando reducers estáticos y opcionales
127
- const createReduxStore = (extraReducers = {}) => {
128
- const rootReducer = (0, toolkit_1.combineReducers)({
129
- ...staticReducers,
130
- ...extraReducers,
131
- });
132
- const store = (0, toolkit_1.configureStore)({
133
- reducer: rootReducer,
134
- preloadedState,
135
- middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(persistanceLocalStorageMiddleware),
136
- });
137
- // Almacenamos los reducers inyectados para poder inyectar más tarde si se requiere
138
- store.asyncReducers = { ...extraReducers };
139
- return store;
140
- };
141
- exports.createReduxStore = createReduxStore;
115
+ exports.store = (0, toolkit_1.configureStore)({
116
+ reducer: {
117
+ catalogs: catalogs_slice_js_1.default,
118
+ profiles: profile_slice_js_1.default,
119
+ webappTables: webapp_tables_slice_js_1.default,
120
+ receptions: reception_slice_js_1.default,
121
+ session: session_slice_js_1.default,
122
+ templates: templates_slice_js_1.default,
123
+ automaticNumbers: automaticNumbers_slice_js_1.default,
124
+ tables: tables_slice_js_1.default,
125
+ formValidation: formValidation_slice_js_1.default,
126
+ },
127
+ preloadedState,
128
+ middleware: (getDefaultMiddleware) => new toolkit_1.Tuple(persistanceLocalStorageMiddleware),
129
+ });
142
130
  exports.useAppSelector = react_redux_1.useSelector;
143
131
  exports.useAppDispatch = react_redux_1.useDispatch;
@@ -1,5 +1,5 @@
1
- import type { AgencyGraphQL, BitacoraPOMassive, BundleGraphQL, CaseGraphQL, CurrencyGraphQL, EmployeeGraphQL, FormGraphQL, FormSubmissionGraphQL, InvoiceGraphQL, ItemCategoryGraphQL, ItemGraphQL, LotStockGraphQL, MotivoRechazo, PayeeCategoryGraphQL, PayeeGraphQL, PaymentTermGraphQL, ReceptionType, ShipmentGraphQL, SuggestedPriceGraphQL, Template, TipoMuestra, WebAppRowGraphQL, PrintTemplateGraphQL, PaymentMethodGraphQL } from "@zauru-sdk/types";
2
- export type CATALOGS_NAMES = "agencies" | "suggestedPrices" | "providers" | "providerCategories" | "receptionTypes" | "tiposDeMuestra" | "motivosRechazo" | "bitacoraRechazoMasivo" | "items" | "itemsByReception" | "itemsByLab" | "itemServicesByLab" | "itemCategoriesForLab" | "payees" | "payeesForLab" | "payeeCategoriesLabPrices" | "payeeCategories" | "clientCategories" | "bundlesRecipForLab" | "currencies" | "paymentTerms" | "employeesByLab" | "employeesByCurrentAgency" | "invoicesByLab" | "invoicesByCurrentAgency" | "invoiceForms" | "caseForms" | "invoiceFormSubmissions" | "myCases" | "myCaseFormSubmissions" | "allForms" | "shipmentsToMyAgency" | "myAgencyLotStocks" | "shipments" | "bookings" | "templates" | "bundlesForLab" | "paymentMethods" | "employees" | "printTemplates" | "invoiceFormSubmissionsByInvoiceId" | "invoiceFormSubmissionsByAgencyId";
1
+ import type { AgencyGraphQL, BitacoraPOMassive, BundleGraphQL, CaseGraphQL, CurrencyGraphQL, EmployeeGraphQL, FormGraphQL, FormSubmissionGraphQL, InvoiceGraphQL, ItemCategoryGraphQL, ItemGraphQL, LotStockGraphQL, MotivoRechazo, CCPorcentajeRechazo, PayeeCategoryGraphQL, PayeeGraphQL, PaymentTermGraphQL, ReceptionType, ShipmentGraphQL, SuggestedPriceGraphQL, Template, TipoMuestra, WebAppRowGraphQL, PrintTemplateGraphQL, PaymentMethodGraphQL } from "@zauru-sdk/types";
2
+ export type CATALOGS_NAMES = "agencies" | "suggestedPrices" | "providers" | "providerCategories" | "receptionTypes" | "tiposDeMuestra" | "motivosRechazo" | "ccPorcentajesDeRechazo" | "bitacoraRechazoMasivo" | "items" | "itemsByReception" | "itemsByLab" | "itemServicesByLab" | "itemCategoriesForLab" | "payees" | "payeesForLab" | "payeeCategoriesLabPrices" | "payeeCategories" | "clientCategories" | "bundlesRecipForLab" | "currencies" | "paymentTerms" | "employeesByLab" | "employeesByCurrentAgency" | "invoicesByLab" | "invoicesByCurrentAgency" | "invoiceForms" | "caseForms" | "invoiceFormSubmissions" | "myCases" | "myCaseFormSubmissions" | "allForms" | "shipmentsToMyAgency" | "myAgencyLotStocks" | "shipments" | "bookings" | "templates" | "bundlesForLab" | "paymentMethods" | "employees" | "printTemplates" | "invoiceFormSubmissionsByInvoiceId" | "invoiceFormSubmissionsByAgencyId";
3
3
  type LoadingState<T> = {
4
4
  data: T;
5
5
  loading: boolean;
@@ -21,6 +21,7 @@ type CatalogState = {
21
21
  shipments: LoadingState<ShipmentGraphQL[]>;
22
22
  bookings: LoadingState<ShipmentGraphQL[]>;
23
23
  motivosRechazo: LoadingState<WebAppRowGraphQL<MotivoRechazo>[]>;
24
+ ccPorcentajesDeRechazo: LoadingState<WebAppRowGraphQL<CCPorcentajeRechazo>[]>;
24
25
  bitacoraRechazoMasivo: LoadingState<WebAppRowGraphQL<BitacoraPOMassive>[]>;
25
26
  items: LoadingState<ItemGraphQL[]>;
26
27
  itemsByReception: LoadingState<ItemGraphQL[]>;
package/dist/store.d.ts CHANGED
@@ -1,456 +1,15 @@
1
1
  import type { TypedUseSelectorHook } from "react-redux";
2
+ import { Tuple } from "@reduxjs/toolkit";
2
3
  export declare const LOCAL_STORAGE_REDUX_NAME = "___redux__state__v3.1.2";
3
4
  type Whitelist = {
4
5
  [K in keyof RootState]?: string[];
5
6
  };
6
7
  export declare const cleanLocalStorage: (whitelist?: Whitelist) => void;
7
- export declare const createReduxStore: (extraReducers?: Record<string, any>) => import("@reduxjs/toolkit").EnhancedStore<{
8
- catalogs: {
9
- agencies: {
10
- data: import("@zauru-sdk/types").AgencyGraphQL[];
11
- loading: boolean;
12
- reFetch: boolean;
13
- };
14
- suggestedPrices: {
15
- data: import("@zauru-sdk/types").SuggestedPriceGraphQL[];
16
- loading: boolean;
17
- reFetch: boolean;
18
- };
19
- providers: {
20
- data: import("@zauru-sdk/types").PayeeGraphQL[];
21
- loading: boolean;
22
- reFetch: boolean;
23
- };
24
- providerCategories: {
25
- data: import("@zauru-sdk/types").PayeeCategoryGraphQL[];
26
- loading: boolean;
27
- reFetch: boolean;
28
- };
29
- payees: {
30
- data: import("@zauru-sdk/types").PayeeGraphQL[];
31
- loading: boolean;
32
- reFetch: boolean;
33
- };
34
- payeesForLab: {
35
- data: import("@zauru-sdk/types").PayeeGraphQL[];
36
- loading: boolean;
37
- reFetch: boolean;
38
- };
39
- payeeCategoriesLabPrices: {
40
- data: import("@zauru-sdk/types").PayeeCategoryGraphQL[];
41
- loading: boolean;
42
- reFetch: boolean;
43
- };
44
- payeeCategories: {
45
- data: import("@zauru-sdk/types").PayeeCategoryGraphQL[];
46
- loading: boolean;
47
- reFetch: boolean;
48
- };
49
- clientCategories: {
50
- data: import("@zauru-sdk/types").PayeeCategoryGraphQL[];
51
- loading: boolean;
52
- reFetch: boolean;
53
- };
54
- receptionTypes: {
55
- data: import("@zauru-sdk/types").WebAppRowGraphQL<import("@zauru-sdk/types").ReceptionType>[];
56
- loading: boolean;
57
- reFetch: boolean;
58
- };
59
- tiposDeMuestra: {
60
- data: import("@zauru-sdk/types").WebAppRowGraphQL<import("@zauru-sdk/types").TipoMuestra>[];
61
- loading: boolean;
62
- reFetch: boolean;
63
- };
64
- templates: {
65
- data: import("@zauru-sdk/types").WebAppRowGraphQL<import("@zauru-sdk/types").Template>[];
66
- loading: boolean;
67
- reFetch: boolean;
68
- };
69
- shipments: {
70
- data: import("@zauru-sdk/types").ShipmentGraphQL[];
71
- loading: boolean;
72
- reFetch: boolean;
73
- };
74
- bookings: {
75
- data: import("@zauru-sdk/types").ShipmentGraphQL[];
76
- loading: boolean;
77
- reFetch: boolean;
78
- };
79
- motivosRechazo: {
80
- data: import("@zauru-sdk/types").WebAppRowGraphQL<import("@zauru-sdk/types").MotivoRechazo>[];
81
- loading: boolean;
82
- reFetch: boolean;
83
- };
84
- bitacoraRechazoMasivo: {
85
- data: import("@zauru-sdk/types").WebAppRowGraphQL<import("@zauru-sdk/types").BitacoraPOMassive>[];
86
- loading: boolean;
87
- reFetch: boolean;
88
- };
89
- items: {
90
- data: import("@zauru-sdk/types").ItemGraphQL[];
91
- loading: boolean;
92
- reFetch: boolean;
93
- };
94
- itemsByReception: {
95
- data: import("@zauru-sdk/types").ItemGraphQL[];
96
- loading: boolean;
97
- reFetch: boolean;
98
- };
99
- itemsByLab: {
100
- data: import("@zauru-sdk/types").ItemGraphQL[];
101
- loading: boolean;
102
- reFetch: boolean;
103
- };
104
- itemServicesByLab: {
105
- data: import("@zauru-sdk/types").ItemGraphQL[];
106
- loading: boolean;
107
- reFetch: boolean;
108
- };
109
- itemCategoriesForLab: {
110
- data: import("@zauru-sdk/types").ItemCategoryGraphQL[];
111
- loading: boolean;
112
- reFetch: boolean;
113
- };
114
- bundlesRecipForLab: {
115
- data: import("@zauru-sdk/types").BundleGraphQL[];
116
- loading: boolean;
117
- reFetch: boolean;
118
- };
119
- bundlesForLab: {
120
- data: import("@zauru-sdk/types").BundleGraphQL[];
121
- loading: boolean;
122
- reFetch: boolean;
123
- };
124
- currencies: {
125
- data: import("@zauru-sdk/types").CurrencyGraphQL[];
126
- loading: boolean;
127
- reFetch: boolean;
128
- };
129
- paymentTerms: {
130
- data: import("@zauru-sdk/types").PaymentTermGraphQL[];
131
- loading: boolean;
132
- reFetch: boolean;
133
- };
134
- employees: {
135
- data: import("@zauru-sdk/types").EmployeeGraphQL[];
136
- loading: boolean;
137
- reFetch: boolean;
138
- };
139
- employeesByLab: {
140
- data: import("@zauru-sdk/types").EmployeeGraphQL[];
141
- loading: boolean;
142
- reFetch: boolean;
143
- };
144
- employeesByCurrentAgency: {
145
- data: import("@zauru-sdk/types").EmployeeGraphQL[];
146
- loading: boolean;
147
- reFetch: boolean;
148
- };
149
- invoicesByLab: {
150
- data: import("@zauru-sdk/types").InvoiceGraphQL[];
151
- loading: boolean;
152
- reFetch: boolean;
153
- };
154
- invoicesByCurrentAgency: {
155
- data: import("@zauru-sdk/types").InvoiceGraphQL[];
156
- loading: boolean;
157
- reFetch: boolean;
158
- };
159
- invoiceForms: {
160
- data: import("@zauru-sdk/types").FormGraphQL[];
161
- loading: boolean;
162
- reFetch: boolean;
163
- };
164
- caseForms: {
165
- data: import("@zauru-sdk/types").FormGraphQL[];
166
- loading: boolean;
167
- reFetch: boolean;
168
- };
169
- allForms: {
170
- data: import("@zauru-sdk/types").FormGraphQL[];
171
- loading: boolean;
172
- reFetch: boolean;
173
- };
174
- invoiceFormSubmissions: {
175
- data: import("@zauru-sdk/types").FormSubmissionGraphQL[];
176
- loading: boolean;
177
- reFetch: boolean;
178
- };
179
- myCases: {
180
- data: import("@zauru-sdk/types").CaseGraphQL[];
181
- loading: boolean;
182
- reFetch: boolean;
183
- };
184
- myCaseFormSubmissions: {
185
- data: import("@zauru-sdk/types").FormSubmissionGraphQL[];
186
- loading: boolean;
187
- reFetch: boolean;
188
- };
189
- myAgencyLotStocks: {
190
- data: import("@zauru-sdk/types").LotStockGraphQL[];
191
- loading: boolean;
192
- reFetch: boolean;
193
- };
194
- shipmentsToMyAgency: {
195
- data: import("@zauru-sdk/types").ShipmentGraphQL[];
196
- loading: boolean;
197
- reFetch: boolean;
198
- };
199
- paymentMethods: {
200
- data: import("@zauru-sdk/types").PaymentMethodGraphQL[];
201
- loading: boolean;
202
- reFetch: boolean;
203
- };
204
- printTemplates: {
205
- data: import("@zauru-sdk/types").PrintTemplateGraphQL[];
206
- loading: boolean;
207
- reFetch: boolean;
208
- };
209
- invoiceFormSubmissionsByInvoiceId: {
210
- data: import("@zauru-sdk/types").FormSubmissionGraphQL[];
211
- loading: boolean;
212
- reFetch: boolean;
213
- };
214
- invoiceFormSubmissionsByAgencyId: {
215
- data: import("@zauru-sdk/types").FormSubmissionGraphQL[];
216
- loading: boolean;
217
- reFetch: boolean;
218
- };
219
- };
220
- profiles: import("./slices/profile.slice.js").ProfilesState;
221
- webappTables: import("./slices/webapp-tables.slice.js").WebAppTableState;
222
- receptions: import("./slices/reception.slice.js").ReceptionState;
223
- session: import("./slices/session.slice.js").SessionState;
224
- templates: import("./slices/templates.slice.js").TemplateState;
225
- automaticNumbers: import("./slices/automaticNumbers.slice.js").AutomaticNumberState;
226
- tables: import("./slices/tables.slice.js").TableState;
227
- formValidation: import("./slices/formValidation.slice.js").FormValidations;
228
- }, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
229
- dispatch: import("redux-thunk").ThunkDispatch<{
230
- catalogs: {
231
- agencies: {
232
- data: import("@zauru-sdk/types").AgencyGraphQL[];
233
- loading: boolean;
234
- reFetch: boolean;
235
- };
236
- suggestedPrices: {
237
- data: import("@zauru-sdk/types").SuggestedPriceGraphQL[];
238
- loading: boolean;
239
- reFetch: boolean;
240
- };
241
- providers: {
242
- data: import("@zauru-sdk/types").PayeeGraphQL[];
243
- loading: boolean;
244
- reFetch: boolean;
245
- };
246
- providerCategories: {
247
- data: import("@zauru-sdk/types").PayeeCategoryGraphQL[];
248
- loading: boolean;
249
- reFetch: boolean;
250
- };
251
- payees: {
252
- data: import("@zauru-sdk/types").PayeeGraphQL[];
253
- loading: boolean;
254
- reFetch: boolean;
255
- };
256
- payeesForLab: {
257
- data: import("@zauru-sdk/types").PayeeGraphQL[];
258
- loading: boolean;
259
- reFetch: boolean;
260
- };
261
- payeeCategoriesLabPrices: {
262
- data: import("@zauru-sdk/types").PayeeCategoryGraphQL[];
263
- loading: boolean;
264
- reFetch: boolean;
265
- };
266
- payeeCategories: {
267
- data: import("@zauru-sdk/types").PayeeCategoryGraphQL[];
268
- loading: boolean;
269
- reFetch: boolean;
270
- };
271
- clientCategories: {
272
- data: import("@zauru-sdk/types").PayeeCategoryGraphQL[];
273
- loading: boolean;
274
- reFetch: boolean;
275
- };
276
- receptionTypes: {
277
- data: import("@zauru-sdk/types").WebAppRowGraphQL<import("@zauru-sdk/types").ReceptionType>[];
278
- loading: boolean;
279
- reFetch: boolean;
280
- };
281
- tiposDeMuestra: {
282
- data: import("@zauru-sdk/types").WebAppRowGraphQL<import("@zauru-sdk/types").TipoMuestra>[];
283
- loading: boolean;
284
- reFetch: boolean;
285
- };
286
- templates: {
287
- data: import("@zauru-sdk/types").WebAppRowGraphQL<import("@zauru-sdk/types").Template>[];
288
- loading: boolean;
289
- reFetch: boolean;
290
- };
291
- shipments: {
292
- data: import("@zauru-sdk/types").ShipmentGraphQL[];
293
- loading: boolean;
294
- reFetch: boolean;
295
- };
296
- bookings: {
297
- data: import("@zauru-sdk/types").ShipmentGraphQL[];
298
- loading: boolean;
299
- reFetch: boolean;
300
- };
301
- motivosRechazo: {
302
- data: import("@zauru-sdk/types").WebAppRowGraphQL<import("@zauru-sdk/types").MotivoRechazo>[];
303
- loading: boolean;
304
- reFetch: boolean;
305
- };
306
- bitacoraRechazoMasivo: {
307
- data: import("@zauru-sdk/types").WebAppRowGraphQL<import("@zauru-sdk/types").BitacoraPOMassive>[];
308
- loading: boolean;
309
- reFetch: boolean;
310
- };
311
- items: {
312
- data: import("@zauru-sdk/types").ItemGraphQL[];
313
- loading: boolean;
314
- reFetch: boolean;
315
- };
316
- itemsByReception: {
317
- data: import("@zauru-sdk/types").ItemGraphQL[];
318
- loading: boolean;
319
- reFetch: boolean;
320
- };
321
- itemsByLab: {
322
- data: import("@zauru-sdk/types").ItemGraphQL[];
323
- loading: boolean;
324
- reFetch: boolean;
325
- };
326
- itemServicesByLab: {
327
- data: import("@zauru-sdk/types").ItemGraphQL[];
328
- loading: boolean;
329
- reFetch: boolean;
330
- };
331
- itemCategoriesForLab: {
332
- data: import("@zauru-sdk/types").ItemCategoryGraphQL[];
333
- loading: boolean;
334
- reFetch: boolean;
335
- };
336
- bundlesRecipForLab: {
337
- data: import("@zauru-sdk/types").BundleGraphQL[];
338
- loading: boolean;
339
- reFetch: boolean;
340
- };
341
- bundlesForLab: {
342
- data: import("@zauru-sdk/types").BundleGraphQL[];
343
- loading: boolean;
344
- reFetch: boolean;
345
- };
346
- currencies: {
347
- data: import("@zauru-sdk/types").CurrencyGraphQL[];
348
- loading: boolean;
349
- reFetch: boolean;
350
- };
351
- paymentTerms: {
352
- data: import("@zauru-sdk/types").PaymentTermGraphQL[];
353
- loading: boolean;
354
- reFetch: boolean;
355
- };
356
- employees: {
357
- data: import("@zauru-sdk/types").EmployeeGraphQL[];
358
- loading: boolean;
359
- reFetch: boolean;
360
- };
361
- employeesByLab: {
362
- data: import("@zauru-sdk/types").EmployeeGraphQL[];
363
- loading: boolean;
364
- reFetch: boolean;
365
- };
366
- employeesByCurrentAgency: {
367
- data: import("@zauru-sdk/types").EmployeeGraphQL[];
368
- loading: boolean;
369
- reFetch: boolean;
370
- };
371
- invoicesByLab: {
372
- data: import("@zauru-sdk/types").InvoiceGraphQL[];
373
- loading: boolean;
374
- reFetch: boolean;
375
- };
376
- invoicesByCurrentAgency: {
377
- data: import("@zauru-sdk/types").InvoiceGraphQL[];
378
- loading: boolean;
379
- reFetch: boolean;
380
- };
381
- invoiceForms: {
382
- data: import("@zauru-sdk/types").FormGraphQL[];
383
- loading: boolean;
384
- reFetch: boolean;
385
- };
386
- caseForms: {
387
- data: import("@zauru-sdk/types").FormGraphQL[];
388
- loading: boolean;
389
- reFetch: boolean;
390
- };
391
- allForms: {
392
- data: import("@zauru-sdk/types").FormGraphQL[];
393
- loading: boolean;
394
- reFetch: boolean;
395
- };
396
- invoiceFormSubmissions: {
397
- data: import("@zauru-sdk/types").FormSubmissionGraphQL[];
398
- loading: boolean;
399
- reFetch: boolean;
400
- };
401
- myCases: {
402
- data: import("@zauru-sdk/types").CaseGraphQL[];
403
- loading: boolean;
404
- reFetch: boolean;
405
- };
406
- myCaseFormSubmissions: {
407
- data: import("@zauru-sdk/types").FormSubmissionGraphQL[];
408
- loading: boolean;
409
- reFetch: boolean;
410
- };
411
- myAgencyLotStocks: {
412
- data: import("@zauru-sdk/types").LotStockGraphQL[];
413
- loading: boolean;
414
- reFetch: boolean;
415
- };
416
- shipmentsToMyAgency: {
417
- data: import("@zauru-sdk/types").ShipmentGraphQL[];
418
- loading: boolean;
419
- reFetch: boolean;
420
- };
421
- paymentMethods: {
422
- data: import("@zauru-sdk/types").PaymentMethodGraphQL[];
423
- loading: boolean;
424
- reFetch: boolean;
425
- };
426
- printTemplates: {
427
- data: import("@zauru-sdk/types").PrintTemplateGraphQL[];
428
- loading: boolean;
429
- reFetch: boolean;
430
- };
431
- invoiceFormSubmissionsByInvoiceId: {
432
- data: import("@zauru-sdk/types").FormSubmissionGraphQL[];
433
- loading: boolean;
434
- reFetch: boolean;
435
- };
436
- invoiceFormSubmissionsByAgencyId: {
437
- data: import("@zauru-sdk/types").FormSubmissionGraphQL[];
438
- loading: boolean;
439
- reFetch: boolean;
440
- };
441
- };
442
- profiles: import("./slices/profile.slice.js").ProfilesState;
443
- webappTables: import("./slices/webapp-tables.slice.js").WebAppTableState;
444
- receptions: import("./slices/reception.slice.js").ReceptionState;
445
- session: import("./slices/session.slice.js").SessionState;
446
- templates: import("./slices/templates.slice.js").TemplateState;
447
- automaticNumbers: import("./slices/automaticNumbers.slice.js").AutomaticNumberState;
448
- tables: import("./slices/tables.slice.js").TableState;
449
- formValidation: import("./slices/formValidation.slice.js").FormValidations;
450
- }, undefined, import("redux").UnknownAction>;
8
+ export declare const store: import("@reduxjs/toolkit").EnhancedStore<any, import("redux").UnknownAction, Tuple<[import("redux").StoreEnhancer<{
9
+ dispatch: {};
451
10
  }>, import("redux").StoreEnhancer]>>;
452
- export type RootState = ReturnType<ReturnType<typeof createReduxStore>["getState"]>;
453
- export type AppDispatch = ReturnType<typeof createReduxStore>["dispatch"];
11
+ export type RootState = ReturnType<typeof store.getState>;
12
+ export type AppDispatch = typeof store.dispatch;
454
13
  export declare const useAppSelector: TypedUseSelectorHook<RootState>;
455
14
  export declare const useAppDispatch: () => AppDispatch;
456
15
  export type ReduxParamsConfig = {
@@ -461,7 +20,6 @@ export type ReduxParamsConfig = {
461
20
  };
462
21
  };
463
22
  export type FetcherErrorType = {
464
- error?: boolean;
465
23
  title?: string;
466
24
  description?: string;
467
25
  type?: "error" | "warning" | "info" | "success";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/redux",
3
- "version": "2.0.151",
3
+ "version": "2.0.154",
4
4
  "description": "Estructura de Redux propuesta para el desarrollo de webapps en Zauru.",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -25,11 +25,11 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@reduxjs/toolkit": "^2.2.1",
28
- "@zauru-sdk/types": "^2.0.109",
28
+ "@zauru-sdk/types": "^2.0.154",
29
29
  "react": "^18.2.0",
30
30
  "react-dom": "^18.2.0",
31
31
  "react-redux": "^9.1.0",
32
32
  "react-select": "^5.8.0"
33
33
  },
34
- "gitHead": "280ffceba6c2884b151241feaac047038077b3a4"
34
+ "gitHead": "ecd7debf400d97b67ca347283e7bb464103c21e2"
35
35
  }