@simpleapps-com/augur-hooks 2.0.3 → 2.0.6
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/{chunk-CQ3BRHK2.cjs → chunk-H7OXSAHP.cjs} +31 -41
- package/dist/chunk-H7OXSAHP.cjs.map +1 -0
- package/dist/{chunk-4RSFZ6WY.js → chunk-QFZHOGID.js} +31 -41
- package/dist/chunk-QFZHOGID.js.map +1 -0
- package/dist/{customer-quotes-DIpZNjT1.d.ts → customer-quotes-BQYqzomR.d.cts} +15 -48
- package/dist/{customer-quotes-DIpZNjT1.d.cts → customer-quotes-BQYqzomR.d.ts} +15 -48
- package/dist/index.cjs +180 -155
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -28
- package/dist/index.d.ts +49 -28
- package/dist/index.js +99 -74
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +2 -2
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/dist/web.cjs +1 -12
- package/dist/web.cjs.map +1 -1
- package/dist/web.js +2 -13
- package/dist/web.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-4RSFZ6WY.js.map +0 -1
- package/dist/chunk-CQ3BRHK2.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _simpleapps_com_augur_utils from '@simpleapps-com/augur-utils';
|
|
2
|
-
import { TPriceData, TItemDetails, TInvMastDoc, TStock, TCategory, TAttribute, TItemsFilters, TJoomlaContent, TJoomlaContentFilters, TMenuFilters, MenuItem, TProductCategory, TProductItem } from '@simpleapps-com/augur-utils';
|
|
3
|
-
import { InfiniteScrollPage, AugurAuthContext, CacheConfig, AugurSiteConfig } from '@simpleapps-com/augur-core';
|
|
2
|
+
import { TPriceData, TItemDetails, TInvMastDoc, TStock, TCategory, TAttribute, TSearchSuggestionsResponse, TItemsFilters, TJoomlaContent, TJoomlaContentFilters, TMenuFilters, MenuItem, TProductCategory, TProductItem } from '@simpleapps-com/augur-utils';
|
|
3
|
+
import { InfiniteScrollPage, ListResult, AugurAuthContext, CacheConfig, AugurSiteConfig } from '@simpleapps-com/augur-core';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
@@ -22,31 +22,7 @@ type PageData = {
|
|
|
22
22
|
tagslist?: string;
|
|
23
23
|
itemCategoryUid?: number;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
type SearchSuggestion = {
|
|
27
|
-
suggestionsUid: number;
|
|
28
|
-
queryStringUid: number;
|
|
29
|
-
suggestionsString: string;
|
|
30
|
-
suggestionsMetaphone: string | null;
|
|
31
|
-
avgTotalResults: number;
|
|
32
|
-
dateCreated: string;
|
|
33
|
-
dateLastModified: string;
|
|
34
|
-
updateCd: number;
|
|
35
|
-
statusCd: number;
|
|
36
|
-
processCd: number;
|
|
37
|
-
score: number;
|
|
38
|
-
};
|
|
39
|
-
/** Response shape from the search suggestions endpoint. */
|
|
40
|
-
type SearchSuggestionsResponse = {
|
|
41
|
-
count: number;
|
|
42
|
-
data: SearchSuggestion[];
|
|
43
|
-
message: string;
|
|
44
|
-
options: unknown[];
|
|
45
|
-
params: unknown[];
|
|
46
|
-
status: number;
|
|
47
|
-
total: number;
|
|
48
|
-
totalResults: number;
|
|
49
|
-
};
|
|
25
|
+
|
|
50
26
|
/** Configuration for React Query localStorage persistence. */
|
|
51
27
|
interface PersistenceConfig {
|
|
52
28
|
/** localStorage key for the persisted cache. */
|
|
@@ -139,7 +115,7 @@ interface AugurCallbacks {
|
|
|
139
115
|
totalResults: number;
|
|
140
116
|
}>;
|
|
141
117
|
/** Override search suggestions. */
|
|
142
|
-
getSearchSuggestions?: (query: string, limit: number, offset: number) => Promise<
|
|
118
|
+
getSearchSuggestions?: (query: string, limit: number, offset: number) => Promise<TSearchSuggestionsResponse>;
|
|
143
119
|
/** Override category items infinite scroll. */
|
|
144
120
|
getCategoryItemsInfinite?: (params: {
|
|
145
121
|
itemCategoryUid: number;
|
|
@@ -155,30 +131,21 @@ interface AugurCallbacks {
|
|
|
155
131
|
/** Override Joomla content fetching. */
|
|
156
132
|
getJoomlaContent?: (articleId: number | string) => Promise<TJoomlaContent>;
|
|
157
133
|
/** Override Joomla content list fetching. */
|
|
158
|
-
getJoomlaContentList?: (categoryId: number | string, filters?: Partial<TJoomlaContentFilters>) => Promise<TJoomlaContent
|
|
134
|
+
getJoomlaContentList?: (categoryId: number | string, filters?: Partial<TJoomlaContentFilters>) => Promise<ListResult<TJoomlaContent>>;
|
|
159
135
|
/** Override Joomla menu list fetching. */
|
|
160
|
-
getJoomlaMenu?: (filters?: Partial<TMenuFilters>) => Promise<MenuItem
|
|
136
|
+
getJoomlaMenu?: (filters?: Partial<TMenuFilters>) => Promise<ListResult<MenuItem>>;
|
|
161
137
|
/** Override Joomla menu document fetching. */
|
|
162
138
|
getJoomlaMenuDoc?: (menuId: number | string) => Promise<MenuItem>;
|
|
163
139
|
/** Override customer orders list fetching. */
|
|
164
|
-
getCustomerOrders?: (customerId: number | string, params?: Record<string, unknown>) => Promise<
|
|
165
|
-
data: unknown[];
|
|
166
|
-
total: number;
|
|
167
|
-
}>;
|
|
140
|
+
getCustomerOrders?: (customerId: number | string, params?: Record<string, unknown>) => Promise<ListResult>;
|
|
168
141
|
/** Override customer order detail fetching. */
|
|
169
142
|
getCustomerOrderDetail?: (customerId: number | string, orderId: number | string) => Promise<unknown>;
|
|
170
143
|
/** Override customer invoices list fetching. */
|
|
171
|
-
getCustomerInvoices?: (customerId: number | string, params?: Record<string, unknown>) => Promise<
|
|
172
|
-
data: unknown[];
|
|
173
|
-
total: number;
|
|
174
|
-
}>;
|
|
144
|
+
getCustomerInvoices?: (customerId: number | string, params?: Record<string, unknown>) => Promise<ListResult>;
|
|
175
145
|
/** Override customer invoice detail fetching. */
|
|
176
146
|
getCustomerInvoiceDetail?: (customerId: number | string, invoiceNo: number | string) => Promise<unknown>;
|
|
177
147
|
/** Override customer quotes list fetching. */
|
|
178
|
-
getCustomerQuotes?: (customerId: number | string, params?: Record<string, unknown>) => Promise<
|
|
179
|
-
data: unknown[];
|
|
180
|
-
total: number;
|
|
181
|
-
}>;
|
|
148
|
+
getCustomerQuotes?: (customerId: number | string, params?: Record<string, unknown>) => Promise<ListResult>;
|
|
182
149
|
/** Override customer quote detail fetching. */
|
|
183
150
|
getCustomerQuoteDetail?: (customerId: number | string, quoteNo: number | string) => Promise<unknown>;
|
|
184
151
|
}
|
|
@@ -473,7 +440,7 @@ declare const getSearchSuggestionsKey: (query: string, limit: number, offset: nu
|
|
|
473
440
|
*/
|
|
474
441
|
declare const getSearchSuggestionsOptions: (api: AugurApiClient, query: string, limit?: number, offset?: number, cache?: CacheConfig) => {
|
|
475
442
|
queryKey: readonly ["searchSuggestions", string, number, number];
|
|
476
|
-
queryFn: () => Promise<
|
|
443
|
+
queryFn: () => Promise<TSearchSuggestionsResponse>;
|
|
477
444
|
staleTime: number | undefined;
|
|
478
445
|
gcTime: number | undefined;
|
|
479
446
|
};
|
|
@@ -507,7 +474,7 @@ declare const getCategoryItemsInfiniteKey: (itemCategoryUid: number, itemsFilter
|
|
|
507
474
|
*/
|
|
508
475
|
declare const getCategoryItemsInfiniteOptions: (api: AugurApiClient, itemCategoryUid: number, itemsFilters: TItemsFilters, cache?: CacheConfig) => {
|
|
509
476
|
queryKey: readonly ["categoryItemsInfinite", number, string];
|
|
510
|
-
queryFn: ({ pageParam
|
|
477
|
+
queryFn: ({ pageParam }: {
|
|
511
478
|
pageParam?: unknown;
|
|
512
479
|
}) => Promise<InfiniteScrollPage>;
|
|
513
480
|
initialPageParam: number;
|
|
@@ -525,7 +492,7 @@ declare const getItemSearchInfiniteKey: (itemsFilters: TItemsFilters, itemCatego
|
|
|
525
492
|
*/
|
|
526
493
|
declare const getItemSearchInfiniteOptions: (api: AugurApiClient, itemsFilters: TItemsFilters, itemCategoryUid?: number | string, cache?: CacheConfig) => {
|
|
527
494
|
queryKey: readonly ["itemSearchInfinite", string, string | number | undefined];
|
|
528
|
-
queryFn: ({ pageParam
|
|
495
|
+
queryFn: ({ pageParam }: {
|
|
529
496
|
pageParam?: unknown;
|
|
530
497
|
}) => Promise<InfiniteScrollPage>;
|
|
531
498
|
initialPageParam: number;
|
|
@@ -552,7 +519,7 @@ declare const getJoomlaContentListKey: (categoryId: number | string, filters?: P
|
|
|
552
519
|
/** @deprecated Use `useAugurOptions()` or `createAugurOptions()` instead. Will be removed in the next major version. */
|
|
553
520
|
declare const getJoomlaContentListOptions: (api: AugurApiClient, categoryId: number | string, filters?: Partial<TJoomlaContentFilters>, cache?: CacheConfig) => {
|
|
554
521
|
queryKey: readonly ["joomlaContentList", string | number, Partial<TJoomlaContentFilters> | undefined];
|
|
555
|
-
queryFn: () => Promise<TJoomlaContent
|
|
522
|
+
queryFn: () => Promise<ListResult<TJoomlaContent>>;
|
|
556
523
|
staleTime: number | undefined;
|
|
557
524
|
gcTime: number | undefined;
|
|
558
525
|
};
|
|
@@ -562,7 +529,7 @@ declare const getJoomlaMenuKey: (filters?: Partial<TMenuFilters>) => readonly ["
|
|
|
562
529
|
/** @deprecated Use `useAugurOptions()` or `createAugurOptions()` instead. Will be removed in the next major version. */
|
|
563
530
|
declare const getJoomlaMenuOptions: (api: AugurApiClient, filters?: Partial<TMenuFilters>, cache?: CacheConfig) => {
|
|
564
531
|
queryKey: readonly ["joomlaMenu", Partial<TMenuFilters> | undefined];
|
|
565
|
-
queryFn: () => Promise<MenuItem
|
|
532
|
+
queryFn: () => Promise<ListResult<MenuItem>>;
|
|
566
533
|
staleTime: number | undefined;
|
|
567
534
|
gcTime: number | undefined;
|
|
568
535
|
};
|
|
@@ -592,4 +559,4 @@ declare const getCustomerQuotesKey: (customerId: number | string | undefined, pa
|
|
|
592
559
|
/** @deprecated Use `useAugurOptions()` or `createAugurOptions()` instead — query keys are derived automatically. Will be removed in the next major version. */
|
|
593
560
|
declare const getCustomerQuoteDetailKey: (customerId: number | string | undefined, quoteNo: number | string | undefined) => readonly ["customerQuoteDetail", string | number | undefined, string | number | undefined];
|
|
594
561
|
|
|
595
|
-
export {
|
|
562
|
+
export { useAugurApiOptional as $, type AugurCallbacks as A, type BatchInvMastDocParam as B, getItemDetailsKey as C, getItemDetailsOptions as D, getItemPriceKey as E, getItemPriceOptions as F, type GetItemCategoryApiOptions as G, getItemSearchInfiniteKey as H, getItemSearchInfiniteOptions as I, getJoomlaContentKey as J, getJoomlaContentListKey as K, getJoomlaContentListOptions as L, getJoomlaContentOptions as M, getJoomlaMenuDocKey as N, getJoomlaMenuDocOptions as O, type PageData as P, getJoomlaMenuKey as Q, getJoomlaMenuOptions as R, getProductCategoryKey as S, getProductCategoryOptions as T, getProductSearchKey as U, getProductSearchOptions as V, getSearchSuggestionsKey as W, getSearchSuggestionsOptions as X, getStockKey as Y, getStockOptions as Z, useAugurApi as _, type AugurApiClient as a, useAugurAuth as a0, useAugurCache as a1, useAugurOptions as a2, useAugurSite as a3, type PersistenceConfig as b, AugurHooksProvider as c, type BatchQueryConfig as d, executeBatchQuery as e, getBatchInvMastDocOptions as f, getBatchInvMastDocKey as g, getCartPricingQueryOptions as h, getCategoryItemsInfiniteKey as i, getCategoryItemsInfiniteOptions as j, getCustomerInvoiceDetailKey as k, getCustomerInvoicesKey as l, getCustomerOrderDetailKey as m, getCustomerOrdersKey as n, getCustomerQuoteDetailKey as o, getCustomerQuotesKey as p, getInvMastDocKey as q, getInvMastDocOptions as r, getInvMastKey as s, getInvMastOptions as t, getInvMastStockKey as u, getInvMastStockOptions as v, getItemAttributesKey as w, getItemAttributesOptions as x, getItemCategoryKey as y, getItemCategoryOptions as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _simpleapps_com_augur_utils from '@simpleapps-com/augur-utils';
|
|
2
|
-
import { TPriceData, TItemDetails, TInvMastDoc, TStock, TCategory, TAttribute, TItemsFilters, TJoomlaContent, TJoomlaContentFilters, TMenuFilters, MenuItem, TProductCategory, TProductItem } from '@simpleapps-com/augur-utils';
|
|
3
|
-
import { InfiniteScrollPage, AugurAuthContext, CacheConfig, AugurSiteConfig } from '@simpleapps-com/augur-core';
|
|
2
|
+
import { TPriceData, TItemDetails, TInvMastDoc, TStock, TCategory, TAttribute, TSearchSuggestionsResponse, TItemsFilters, TJoomlaContent, TJoomlaContentFilters, TMenuFilters, MenuItem, TProductCategory, TProductItem } from '@simpleapps-com/augur-utils';
|
|
3
|
+
import { InfiniteScrollPage, ListResult, AugurAuthContext, CacheConfig, AugurSiteConfig } from '@simpleapps-com/augur-core';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
@@ -22,31 +22,7 @@ type PageData = {
|
|
|
22
22
|
tagslist?: string;
|
|
23
23
|
itemCategoryUid?: number;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
type SearchSuggestion = {
|
|
27
|
-
suggestionsUid: number;
|
|
28
|
-
queryStringUid: number;
|
|
29
|
-
suggestionsString: string;
|
|
30
|
-
suggestionsMetaphone: string | null;
|
|
31
|
-
avgTotalResults: number;
|
|
32
|
-
dateCreated: string;
|
|
33
|
-
dateLastModified: string;
|
|
34
|
-
updateCd: number;
|
|
35
|
-
statusCd: number;
|
|
36
|
-
processCd: number;
|
|
37
|
-
score: number;
|
|
38
|
-
};
|
|
39
|
-
/** Response shape from the search suggestions endpoint. */
|
|
40
|
-
type SearchSuggestionsResponse = {
|
|
41
|
-
count: number;
|
|
42
|
-
data: SearchSuggestion[];
|
|
43
|
-
message: string;
|
|
44
|
-
options: unknown[];
|
|
45
|
-
params: unknown[];
|
|
46
|
-
status: number;
|
|
47
|
-
total: number;
|
|
48
|
-
totalResults: number;
|
|
49
|
-
};
|
|
25
|
+
|
|
50
26
|
/** Configuration for React Query localStorage persistence. */
|
|
51
27
|
interface PersistenceConfig {
|
|
52
28
|
/** localStorage key for the persisted cache. */
|
|
@@ -139,7 +115,7 @@ interface AugurCallbacks {
|
|
|
139
115
|
totalResults: number;
|
|
140
116
|
}>;
|
|
141
117
|
/** Override search suggestions. */
|
|
142
|
-
getSearchSuggestions?: (query: string, limit: number, offset: number) => Promise<
|
|
118
|
+
getSearchSuggestions?: (query: string, limit: number, offset: number) => Promise<TSearchSuggestionsResponse>;
|
|
143
119
|
/** Override category items infinite scroll. */
|
|
144
120
|
getCategoryItemsInfinite?: (params: {
|
|
145
121
|
itemCategoryUid: number;
|
|
@@ -155,30 +131,21 @@ interface AugurCallbacks {
|
|
|
155
131
|
/** Override Joomla content fetching. */
|
|
156
132
|
getJoomlaContent?: (articleId: number | string) => Promise<TJoomlaContent>;
|
|
157
133
|
/** Override Joomla content list fetching. */
|
|
158
|
-
getJoomlaContentList?: (categoryId: number | string, filters?: Partial<TJoomlaContentFilters>) => Promise<TJoomlaContent
|
|
134
|
+
getJoomlaContentList?: (categoryId: number | string, filters?: Partial<TJoomlaContentFilters>) => Promise<ListResult<TJoomlaContent>>;
|
|
159
135
|
/** Override Joomla menu list fetching. */
|
|
160
|
-
getJoomlaMenu?: (filters?: Partial<TMenuFilters>) => Promise<MenuItem
|
|
136
|
+
getJoomlaMenu?: (filters?: Partial<TMenuFilters>) => Promise<ListResult<MenuItem>>;
|
|
161
137
|
/** Override Joomla menu document fetching. */
|
|
162
138
|
getJoomlaMenuDoc?: (menuId: number | string) => Promise<MenuItem>;
|
|
163
139
|
/** Override customer orders list fetching. */
|
|
164
|
-
getCustomerOrders?: (customerId: number | string, params?: Record<string, unknown>) => Promise<
|
|
165
|
-
data: unknown[];
|
|
166
|
-
total: number;
|
|
167
|
-
}>;
|
|
140
|
+
getCustomerOrders?: (customerId: number | string, params?: Record<string, unknown>) => Promise<ListResult>;
|
|
168
141
|
/** Override customer order detail fetching. */
|
|
169
142
|
getCustomerOrderDetail?: (customerId: number | string, orderId: number | string) => Promise<unknown>;
|
|
170
143
|
/** Override customer invoices list fetching. */
|
|
171
|
-
getCustomerInvoices?: (customerId: number | string, params?: Record<string, unknown>) => Promise<
|
|
172
|
-
data: unknown[];
|
|
173
|
-
total: number;
|
|
174
|
-
}>;
|
|
144
|
+
getCustomerInvoices?: (customerId: number | string, params?: Record<string, unknown>) => Promise<ListResult>;
|
|
175
145
|
/** Override customer invoice detail fetching. */
|
|
176
146
|
getCustomerInvoiceDetail?: (customerId: number | string, invoiceNo: number | string) => Promise<unknown>;
|
|
177
147
|
/** Override customer quotes list fetching. */
|
|
178
|
-
getCustomerQuotes?: (customerId: number | string, params?: Record<string, unknown>) => Promise<
|
|
179
|
-
data: unknown[];
|
|
180
|
-
total: number;
|
|
181
|
-
}>;
|
|
148
|
+
getCustomerQuotes?: (customerId: number | string, params?: Record<string, unknown>) => Promise<ListResult>;
|
|
182
149
|
/** Override customer quote detail fetching. */
|
|
183
150
|
getCustomerQuoteDetail?: (customerId: number | string, quoteNo: number | string) => Promise<unknown>;
|
|
184
151
|
}
|
|
@@ -473,7 +440,7 @@ declare const getSearchSuggestionsKey: (query: string, limit: number, offset: nu
|
|
|
473
440
|
*/
|
|
474
441
|
declare const getSearchSuggestionsOptions: (api: AugurApiClient, query: string, limit?: number, offset?: number, cache?: CacheConfig) => {
|
|
475
442
|
queryKey: readonly ["searchSuggestions", string, number, number];
|
|
476
|
-
queryFn: () => Promise<
|
|
443
|
+
queryFn: () => Promise<TSearchSuggestionsResponse>;
|
|
477
444
|
staleTime: number | undefined;
|
|
478
445
|
gcTime: number | undefined;
|
|
479
446
|
};
|
|
@@ -507,7 +474,7 @@ declare const getCategoryItemsInfiniteKey: (itemCategoryUid: number, itemsFilter
|
|
|
507
474
|
*/
|
|
508
475
|
declare const getCategoryItemsInfiniteOptions: (api: AugurApiClient, itemCategoryUid: number, itemsFilters: TItemsFilters, cache?: CacheConfig) => {
|
|
509
476
|
queryKey: readonly ["categoryItemsInfinite", number, string];
|
|
510
|
-
queryFn: ({ pageParam
|
|
477
|
+
queryFn: ({ pageParam }: {
|
|
511
478
|
pageParam?: unknown;
|
|
512
479
|
}) => Promise<InfiniteScrollPage>;
|
|
513
480
|
initialPageParam: number;
|
|
@@ -525,7 +492,7 @@ declare const getItemSearchInfiniteKey: (itemsFilters: TItemsFilters, itemCatego
|
|
|
525
492
|
*/
|
|
526
493
|
declare const getItemSearchInfiniteOptions: (api: AugurApiClient, itemsFilters: TItemsFilters, itemCategoryUid?: number | string, cache?: CacheConfig) => {
|
|
527
494
|
queryKey: readonly ["itemSearchInfinite", string, string | number | undefined];
|
|
528
|
-
queryFn: ({ pageParam
|
|
495
|
+
queryFn: ({ pageParam }: {
|
|
529
496
|
pageParam?: unknown;
|
|
530
497
|
}) => Promise<InfiniteScrollPage>;
|
|
531
498
|
initialPageParam: number;
|
|
@@ -552,7 +519,7 @@ declare const getJoomlaContentListKey: (categoryId: number | string, filters?: P
|
|
|
552
519
|
/** @deprecated Use `useAugurOptions()` or `createAugurOptions()` instead. Will be removed in the next major version. */
|
|
553
520
|
declare const getJoomlaContentListOptions: (api: AugurApiClient, categoryId: number | string, filters?: Partial<TJoomlaContentFilters>, cache?: CacheConfig) => {
|
|
554
521
|
queryKey: readonly ["joomlaContentList", string | number, Partial<TJoomlaContentFilters> | undefined];
|
|
555
|
-
queryFn: () => Promise<TJoomlaContent
|
|
522
|
+
queryFn: () => Promise<ListResult<TJoomlaContent>>;
|
|
556
523
|
staleTime: number | undefined;
|
|
557
524
|
gcTime: number | undefined;
|
|
558
525
|
};
|
|
@@ -562,7 +529,7 @@ declare const getJoomlaMenuKey: (filters?: Partial<TMenuFilters>) => readonly ["
|
|
|
562
529
|
/** @deprecated Use `useAugurOptions()` or `createAugurOptions()` instead. Will be removed in the next major version. */
|
|
563
530
|
declare const getJoomlaMenuOptions: (api: AugurApiClient, filters?: Partial<TMenuFilters>, cache?: CacheConfig) => {
|
|
564
531
|
queryKey: readonly ["joomlaMenu", Partial<TMenuFilters> | undefined];
|
|
565
|
-
queryFn: () => Promise<MenuItem
|
|
532
|
+
queryFn: () => Promise<ListResult<MenuItem>>;
|
|
566
533
|
staleTime: number | undefined;
|
|
567
534
|
gcTime: number | undefined;
|
|
568
535
|
};
|
|
@@ -592,4 +559,4 @@ declare const getCustomerQuotesKey: (customerId: number | string | undefined, pa
|
|
|
592
559
|
/** @deprecated Use `useAugurOptions()` or `createAugurOptions()` instead — query keys are derived automatically. Will be removed in the next major version. */
|
|
593
560
|
declare const getCustomerQuoteDetailKey: (customerId: number | string | undefined, quoteNo: number | string | undefined) => readonly ["customerQuoteDetail", string | number | undefined, string | number | undefined];
|
|
594
561
|
|
|
595
|
-
export {
|
|
562
|
+
export { useAugurApiOptional as $, type AugurCallbacks as A, type BatchInvMastDocParam as B, getItemDetailsKey as C, getItemDetailsOptions as D, getItemPriceKey as E, getItemPriceOptions as F, type GetItemCategoryApiOptions as G, getItemSearchInfiniteKey as H, getItemSearchInfiniteOptions as I, getJoomlaContentKey as J, getJoomlaContentListKey as K, getJoomlaContentListOptions as L, getJoomlaContentOptions as M, getJoomlaMenuDocKey as N, getJoomlaMenuDocOptions as O, type PageData as P, getJoomlaMenuKey as Q, getJoomlaMenuOptions as R, getProductCategoryKey as S, getProductCategoryOptions as T, getProductSearchKey as U, getProductSearchOptions as V, getSearchSuggestionsKey as W, getSearchSuggestionsOptions as X, getStockKey as Y, getStockOptions as Z, useAugurApi as _, type AugurApiClient as a, useAugurAuth as a0, useAugurCache as a1, useAugurOptions as a2, useAugurSite as a3, type PersistenceConfig as b, AugurHooksProvider as c, type BatchQueryConfig as d, executeBatchQuery as e, getBatchInvMastDocOptions as f, getBatchInvMastDocKey as g, getCartPricingQueryOptions as h, getCategoryItemsInfiniteKey as i, getCategoryItemsInfiniteOptions as j, getCustomerInvoiceDetailKey as k, getCustomerInvoicesKey as l, getCustomerOrderDetailKey as m, getCustomerOrdersKey as n, getCustomerQuoteDetailKey as o, getCustomerQuotesKey as p, getInvMastDocKey as q, getInvMastDocOptions as r, getInvMastKey as s, getInvMastOptions as t, getInvMastStockKey as u, getInvMastStockOptions as v, getItemAttributesKey as w, getItemAttributesOptions as x, getItemCategoryKey as y, getItemCategoryOptions as z };
|