gotrip-fx-transaction-form 1.0.204-dev → 1.0.205-dev
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/index.js +368 -366
- package/package.json +1 -1
- package/types/constants/api-urls.d.ts +3 -1
- package/types/hooks/useTenantList.d.ts +2 -3
- package/types/store/useTenantStore.d.ts +12 -0
package/package.json
CHANGED
|
@@ -161,7 +161,9 @@ export declare const ApiUrls: {
|
|
|
161
161
|
updateTenantCommissionPolicies: (tenantId: number, policyGroupId: number) => string;
|
|
162
162
|
updateTenantCommissionPoliciesLegacy: (tenantId: number) => string;
|
|
163
163
|
getMemberCommissionPoliciesByMemberId: (memberId: number) => string;
|
|
164
|
-
|
|
164
|
+
createMemberCommissionPoliciesByMemberId: (memberId: number) => string;
|
|
165
|
+
updateMemberCommissionPoliciesByMemberId: (memberId: number, policyGroupId: number) => string;
|
|
166
|
+
updateMemberCommissionPoliciesByMemberIdLegacy: (memberId: number) => string;
|
|
165
167
|
create: string;
|
|
166
168
|
update: (id: number) => string;
|
|
167
169
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ITenant } from '../types/response.dto';
|
|
2
1
|
export declare const useTenantList: (options?: {
|
|
3
2
|
skipFetch?: boolean;
|
|
4
3
|
}) => {
|
|
5
|
-
tenants: ITenant[];
|
|
4
|
+
tenants: import('../types/response.dto').ITenant[];
|
|
6
5
|
loading: boolean;
|
|
7
|
-
refetchData: () => void
|
|
6
|
+
refetchData: () => Promise<void>;
|
|
8
7
|
removeTenant: (tenantId: number) => Promise<void>;
|
|
9
8
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ITenant } from '../types/response.dto';
|
|
2
|
+
interface TenantStoreState {
|
|
3
|
+
tenants: ITenant[];
|
|
4
|
+
loading: boolean;
|
|
5
|
+
isFetching: boolean;
|
|
6
|
+
lastFetched: number | null;
|
|
7
|
+
fetchTenants: () => Promise<void>;
|
|
8
|
+
refetchTenants: () => Promise<void>;
|
|
9
|
+
removeTenant: (tenantId: number) => Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
export declare const useTenantStore: import('zustand').UseBoundStore<import('zustand').StoreApi<TenantStoreState>>;
|
|
12
|
+
export {};
|