ingeniuscliq-core 0.2.46 → 0.2.47
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/index.js
CHANGED
|
@@ -2293,7 +2293,7 @@ class Y5 {
|
|
|
2293
2293
|
fetchPayForms: async (r) => {
|
|
2294
2294
|
try {
|
|
2295
2295
|
const o = await this.payFormService.getAll(r);
|
|
2296
|
-
return t({ payForms: o.data.data }), o.data;
|
|
2296
|
+
return t({ payForms: o.data.data }), o.data.data;
|
|
2297
2297
|
} catch (o) {
|
|
2298
2298
|
throw t({ error: o }), o;
|
|
2299
2299
|
}
|
|
@@ -8,7 +8,7 @@ export declare class CorePayFormBuilder implements CoreBuilder {
|
|
|
8
8
|
build(): import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<CorePayFormStore<CorePayForm>>, "persist"> & {
|
|
9
9
|
persist: {
|
|
10
10
|
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CorePayFormStore<CorePayForm>, {
|
|
11
|
-
payForms:
|
|
11
|
+
payForms: CorePayForm[] | null;
|
|
12
12
|
}>>) => void;
|
|
13
13
|
clearStorage: () => void;
|
|
14
14
|
rehydrate: () => Promise<void> | void;
|
|
@@ -16,7 +16,7 @@ export declare class CorePayFormBuilder implements CoreBuilder {
|
|
|
16
16
|
onHydrate: (fn: (state: CorePayFormStore<CorePayForm>) => void) => () => void;
|
|
17
17
|
onFinishHydration: (fn: (state: CorePayFormStore<CorePayForm>) => void) => () => void;
|
|
18
18
|
getOptions: () => Partial<import('zustand/middleware').PersistOptions<CorePayFormStore<CorePayForm>, {
|
|
19
|
-
payForms:
|
|
19
|
+
payForms: CorePayForm[] | null;
|
|
20
20
|
}>>;
|
|
21
21
|
};
|
|
22
22
|
}>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { BaseStore } from '../../../types/BaseStore';
|
|
2
2
|
import { BaseType } from '../../../types/BaseType';
|
|
3
|
-
import { BaseApiResponsePagination } from '../../../types/contracts/BaseApiResponse';
|
|
4
|
-
import { BasePagination } from '../../../types/contracts/BasePagination';
|
|
5
3
|
/**
|
|
6
4
|
* CorePayForm base type
|
|
7
5
|
*/
|
|
@@ -12,8 +10,8 @@ export interface CorePayForm extends BaseType {
|
|
|
12
10
|
currencies: string[];
|
|
13
11
|
}
|
|
14
12
|
export interface CorePayFormStore<T extends CorePayForm> extends BaseStore {
|
|
15
|
-
payForms:
|
|
16
|
-
setPayForms: (payForms:
|
|
17
|
-
getPayForms: () =>
|
|
18
|
-
fetchPayForms: (params?: Record<string, any>) => Promise<
|
|
13
|
+
payForms: T[] | null;
|
|
14
|
+
setPayForms: (payForms: T[] | null) => void;
|
|
15
|
+
getPayForms: () => T[] | null;
|
|
16
|
+
fetchPayForms: (params?: Record<string, any>) => Promise<T[]>;
|
|
19
17
|
}
|