@simpleapps-com/augur-server 2.0.23 → 2.1.1

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.
@@ -1,79 +0,0 @@
1
- import { CacheConfig, PageData, AugurApiClient } from '@simpleapps-com/augur-hooks/server';
2
- export { CacheConfig } from '@simpleapps-com/augur-hooks/server';
3
- import { TItemsFilters, TJoomlaContentFilters } from '@simpleapps-com/augur-utils';
4
-
5
- /** Options for item category prefetch. */
6
- interface PrefetchItemCategoryApiOptions {
7
- childrenFilter?: string;
8
- childrenLimit?: number;
9
- childrenOffset?: number;
10
- classId5List?: string;
11
- filters?: Record<string, string>;
12
- orderBy?: string;
13
- path?: string;
14
- productCollection?: string;
15
- rootItemCategoryId?: string;
16
- }
17
- /** Configuration for createPrefetchUtilities. */
18
- interface PrefetchConfig {
19
- /** Cache configuration passed through to query options. */
20
- cache?: CacheConfig;
21
- /** Default customer ID for pricing prefetch. */
22
- defaultCustomerId?: string | number;
23
- }
24
- /** Prefetch utilities returned by createPrefetchUtilities. */
25
- interface PrefetchUtilities {
26
- prefetchItemPrice: (itemId: string, customerId?: string | number, quantity?: number) => Promise<void>;
27
- prefetchBatchItemPrices: (itemIds: string[], customerId?: string | number, quantity?: number) => Promise<void>;
28
- prefetchProductListingPrices: (itemIds: string[], customerId?: string | number, maxItems?: number) => Promise<void>;
29
- prefetchItemCategory: (itemCategoryUid: number, apiOptions?: PrefetchItemCategoryApiOptions) => Promise<void>;
30
- prefetchInvMast: (invMastUid: number, itemId: string) => Promise<void>;
31
- prefetchInvMastStock: (invMastUid: number | string) => Promise<void>;
32
- prefetchItemDetails: (itemId: number | string) => Promise<void>;
33
- prefetchItemAttributes: (itemCategoryUid: number | string) => Promise<void>;
34
- prefetchProductSearch: (pageData: PageData) => Promise<void>;
35
- prefetchJoomlaContent: (articleId: number | string) => Promise<void>;
36
- prefetchInvMastDoc: (invMastUid: number, itemId: string, includePricing?: "Y" | "N") => Promise<void>;
37
- prefetchProductCategory: (itemCategoryUid: number | string) => Promise<void>;
38
- prefetchCategoryItemsFirstPage: (itemCategoryUid: number, itemsFilters: TItemsFilters) => Promise<void>;
39
- prefetchSearchResultsFirstPage: (itemsFilters: TItemsFilters, itemCategoryUid?: number | string) => Promise<void>;
40
- prefetchJoomlaContentList: (categoryId: number | string, filters?: Partial<TJoomlaContentFilters>) => Promise<void>;
41
- }
42
- /**
43
- * @deprecated Use `createAugurOptions()` from `@simpleapps-com/augur-hooks/server` instead. This utility will be removed in the next major version.
44
- *
45
- * Creates SSR prefetch utilities that pre-populate the React Query cache
46
- * during server rendering. Eliminates loading states on first paint.
47
- *
48
- * Uses the same query keys as augur-hooks so client-side hooks hydrate
49
- * instantly from prefetched data — no duplicate requests.
50
- *
51
- * @example
52
- * ```ts
53
- * // lib/prefetch.ts
54
- * import { createPrefetchUtilities } from "@simpleapps-com/augur-server/prefetch";
55
- * import { getAugurClient } from "./augur-client";
56
- *
57
- * export const prefetch = createPrefetchUtilities(getAugurClient(), {
58
- * // defaultCustomerId falls back to DEFAULT_CUSTOMER_ID env var automatically
59
- * cache: augurCache,
60
- * });
61
- *
62
- * // In a server component:
63
- * export default async function ItemPage({ params }: { params: { id: string } }) {
64
- * await prefetch.prefetchItemPrice(params.id);
65
- * await prefetch.prefetchItemDetails(params.id);
66
- * return <ItemDetail itemId={params.id} />;
67
- * }
68
- *
69
- * // Batch prefetch for listing pages:
70
- * export default async function CategoryPage() {
71
- * const itemIds = await getItemIdsForCategory(categoryId);
72
- * await prefetch.prefetchBatchItemPrices(itemIds);
73
- * return <ProductGrid items={itemIds} />;
74
- * }
75
- * ```
76
- */
77
- declare function createPrefetchUtilities(api: AugurApiClient, config?: PrefetchConfig): PrefetchUtilities;
78
-
79
- export { type PrefetchConfig, type PrefetchItemCategoryApiOptions, type PrefetchUtilities, createPrefetchUtilities };
package/dist/prefetch.js DELETED
@@ -1,137 +0,0 @@
1
- import {
2
- getServerQueryClient
3
- } from "./chunk-DCBWABAP.js";
4
- import {
5
- batchFetch
6
- } from "./chunk-XGRQ53P2.js";
7
- import "./chunk-DGUM43GV.js";
8
-
9
- // src/prefetch.ts
10
- import {
11
- getItemPriceKey,
12
- getItemPriceOptions,
13
- getItemCategoryOptions,
14
- getInvMastOptions,
15
- getInvMastDocOptions,
16
- getInvMastStockOptions,
17
- getItemDetailsOptions,
18
- getItemAttributesOptions,
19
- getProductCategoryOptions,
20
- getProductSearchOptions,
21
- getCategoryItemsInfiniteOptions,
22
- getItemSearchInfiniteOptions,
23
- getJoomlaContentOptions,
24
- getJoomlaContentListOptions
25
- } from "@simpleapps-com/augur-hooks/server";
26
- function createPrefetchUtilities(api, config = {}) {
27
- const { cache, defaultCustomerId } = config;
28
- function getQueryClient() {
29
- return getServerQueryClient();
30
- }
31
- function resolveCustomerId(explicit) {
32
- return explicit ?? defaultCustomerId;
33
- }
34
- async function prefetchItemPrice(itemId, customerId, quantity = 1) {
35
- const qc = getQueryClient();
36
- const custId = resolveCustomerId(customerId);
37
- const options = getItemPriceOptions(api, itemId, custId, quantity, cache);
38
- await qc.prefetchQuery(options);
39
- }
40
- async function prefetchBatchItemPrices(itemIds, customerId, quantity = 1) {
41
- const qc = getQueryClient();
42
- const custId = resolveCustomerId(customerId);
43
- const prices = await batchFetch(
44
- itemIds,
45
- (id) => getItemPriceOptions(api, id, custId, quantity, cache).queryFn(),
46
- (id) => id
47
- );
48
- for (const [id, data] of Object.entries(prices)) {
49
- qc.setQueryData(getItemPriceKey(id, custId, quantity), data);
50
- }
51
- }
52
- async function prefetchProductListingPrices(itemIds, customerId, maxItems) {
53
- const limited = maxItems ? itemIds.slice(0, maxItems) : itemIds;
54
- await prefetchBatchItemPrices(limited, customerId);
55
- }
56
- async function prefetchItemCategory(itemCategoryUid, apiOptions) {
57
- const qc = getQueryClient();
58
- const options = getItemCategoryOptions(api, itemCategoryUid, apiOptions, cache);
59
- await qc.prefetchQuery(options);
60
- }
61
- async function prefetchInvMast(invMastUid, itemId) {
62
- const qc = getQueryClient();
63
- const options = getInvMastOptions(api, invMastUid, itemId, cache);
64
- await qc.prefetchQuery(options);
65
- }
66
- async function prefetchInvMastStock(invMastUid) {
67
- const qc = getQueryClient();
68
- const options = getInvMastStockOptions(api, invMastUid, cache);
69
- await qc.prefetchQuery(options);
70
- }
71
- async function prefetchItemDetails(itemId) {
72
- const qc = getQueryClient();
73
- const options = getItemDetailsOptions(api, itemId, cache);
74
- await qc.prefetchQuery(options);
75
- }
76
- async function prefetchItemAttributes(itemCategoryUid) {
77
- const qc = getQueryClient();
78
- const options = getItemAttributesOptions(api, itemCategoryUid, cache);
79
- await qc.prefetchQuery(options);
80
- }
81
- async function prefetchProductSearch(pageData) {
82
- const qc = getQueryClient();
83
- const options = getProductSearchOptions(api, pageData, cache);
84
- await qc.prefetchQuery(options);
85
- }
86
- async function prefetchJoomlaContent(articleId) {
87
- const qc = getQueryClient();
88
- const options = getJoomlaContentOptions(api, articleId, cache);
89
- await qc.prefetchQuery(options);
90
- }
91
- async function prefetchInvMastDoc(invMastUid, itemId, includePricing = "N") {
92
- const qc = getQueryClient();
93
- const options = getInvMastDocOptions(api, invMastUid, itemId, includePricing, cache);
94
- await qc.prefetchQuery(options);
95
- }
96
- async function prefetchProductCategory(itemCategoryUid) {
97
- const qc = getQueryClient();
98
- const options = getProductCategoryOptions(api, itemCategoryUid, cache);
99
- await qc.prefetchQuery(options);
100
- }
101
- async function prefetchCategoryItemsFirstPage(itemCategoryUid, itemsFilters) {
102
- const qc = getQueryClient();
103
- const options = getCategoryItemsInfiniteOptions(api, itemCategoryUid, itemsFilters, cache);
104
- await qc.prefetchInfiniteQuery({ ...options, pages: 1 });
105
- }
106
- async function prefetchSearchResultsFirstPage(itemsFilters, itemCategoryUid) {
107
- const qc = getQueryClient();
108
- const options = getItemSearchInfiniteOptions(api, itemsFilters, itemCategoryUid, cache);
109
- await qc.prefetchInfiniteQuery({ ...options, pages: 1 });
110
- }
111
- async function prefetchJoomlaContentList(categoryId, filters) {
112
- const qc = getQueryClient();
113
- const options = getJoomlaContentListOptions(api, categoryId, filters, cache);
114
- await qc.prefetchQuery(options);
115
- }
116
- return {
117
- prefetchItemPrice,
118
- prefetchBatchItemPrices,
119
- prefetchProductListingPrices,
120
- prefetchItemCategory,
121
- prefetchInvMast,
122
- prefetchInvMastStock,
123
- prefetchItemDetails,
124
- prefetchItemAttributes,
125
- prefetchProductSearch,
126
- prefetchInvMastDoc,
127
- prefetchProductCategory,
128
- prefetchCategoryItemsFirstPage,
129
- prefetchSearchResultsFirstPage,
130
- prefetchJoomlaContent,
131
- prefetchJoomlaContentList
132
- };
133
- }
134
- export {
135
- createPrefetchUtilities
136
- };
137
- //# sourceMappingURL=prefetch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/prefetch.ts"],"sourcesContent":["import type { QueryClient } from \"@tanstack/react-query\";\nimport {\n getItemPriceKey,\n getItemPriceOptions,\n getItemCategoryOptions,\n getInvMastOptions,\n getInvMastDocOptions,\n getInvMastStockOptions,\n getItemDetailsOptions,\n getItemAttributesOptions,\n getProductCategoryOptions,\n getProductSearchOptions,\n getCategoryItemsInfiniteOptions,\n getItemSearchInfiniteOptions,\n getJoomlaContentOptions,\n getJoomlaContentListOptions,\n} from \"@simpleapps-com/augur-hooks/server\";\nimport type { AugurApiClient, CacheConfig, PageData } from \"@simpleapps-com/augur-hooks/server\";\nimport type { TItemsFilters, TJoomlaContentFilters } from \"@simpleapps-com/augur-utils\";\nimport { getServerQueryClient } from \"./server-query-client\";\nimport { batchFetch } from \"./utils/batch-fetch\";\n\n/**\n * Cache configuration for prefetch utilities.\n * Re-exports the CacheConfig shape from augur-hooks so consumers\n * don't need a separate import.\n */\nexport type { CacheConfig } from \"@simpleapps-com/augur-hooks/server\";\n\n/** Options for item category prefetch. */\nexport interface PrefetchItemCategoryApiOptions {\n childrenFilter?: string;\n childrenLimit?: number;\n childrenOffset?: number;\n classId5List?: string;\n filters?: Record<string, string>;\n orderBy?: string;\n path?: string;\n productCollection?: string;\n rootItemCategoryId?: string;\n}\n\n/** Configuration for createPrefetchUtilities. */\nexport interface PrefetchConfig {\n /** Cache configuration passed through to query options. */\n cache?: CacheConfig;\n /** Default customer ID for pricing prefetch. */\n defaultCustomerId?: string | number;\n}\n\n/** Prefetch utilities returned by createPrefetchUtilities. */\nexport interface PrefetchUtilities {\n prefetchItemPrice: (\n itemId: string,\n customerId?: string | number,\n quantity?: number,\n ) => Promise<void>;\n\n prefetchBatchItemPrices: (\n itemIds: string[],\n customerId?: string | number,\n quantity?: number,\n ) => Promise<void>;\n\n prefetchProductListingPrices: (\n itemIds: string[],\n customerId?: string | number,\n maxItems?: number,\n ) => Promise<void>;\n\n prefetchItemCategory: (\n itemCategoryUid: number,\n apiOptions?: PrefetchItemCategoryApiOptions,\n ) => Promise<void>;\n\n prefetchInvMast: (invMastUid: number, itemId: string) => Promise<void>;\n\n prefetchInvMastStock: (invMastUid: number | string) => Promise<void>;\n\n prefetchItemDetails: (itemId: number | string) => Promise<void>;\n\n prefetchItemAttributes: (itemCategoryUid: number | string) => Promise<void>;\n\n prefetchProductSearch: (pageData: PageData) => Promise<void>;\n\n prefetchJoomlaContent: (articleId: number | string) => Promise<void>;\n\n prefetchInvMastDoc: (\n invMastUid: number,\n itemId: string,\n includePricing?: \"Y\" | \"N\",\n ) => Promise<void>;\n\n prefetchProductCategory: (itemCategoryUid: number | string) => Promise<void>;\n\n prefetchCategoryItemsFirstPage: (\n itemCategoryUid: number,\n itemsFilters: TItemsFilters,\n ) => Promise<void>;\n\n prefetchSearchResultsFirstPage: (\n itemsFilters: TItemsFilters,\n itemCategoryUid?: number | string,\n ) => Promise<void>;\n\n prefetchJoomlaContentList: (\n categoryId: number | string,\n filters?: Partial<TJoomlaContentFilters>,\n ) => Promise<void>;\n}\n\n/**\n * @deprecated Use `createAugurOptions()` from `@simpleapps-com/augur-hooks/server` instead. This utility will be removed in the next major version.\n *\n * Creates SSR prefetch utilities that pre-populate the React Query cache\n * during server rendering. Eliminates loading states on first paint.\n *\n * Uses the same query keys as augur-hooks so client-side hooks hydrate\n * instantly from prefetched data — no duplicate requests.\n *\n * @example\n * ```ts\n * // lib/prefetch.ts\n * import { createPrefetchUtilities } from \"@simpleapps-com/augur-server/prefetch\";\n * import { getAugurClient } from \"./augur-client\";\n *\n * export const prefetch = createPrefetchUtilities(getAugurClient(), {\n * // defaultCustomerId falls back to DEFAULT_CUSTOMER_ID env var automatically\n * cache: augurCache,\n * });\n *\n * // In a server component:\n * export default async function ItemPage({ params }: { params: { id: string } }) {\n * await prefetch.prefetchItemPrice(params.id);\n * await prefetch.prefetchItemDetails(params.id);\n * return <ItemDetail itemId={params.id} />;\n * }\n *\n * // Batch prefetch for listing pages:\n * export default async function CategoryPage() {\n * const itemIds = await getItemIdsForCategory(categoryId);\n * await prefetch.prefetchBatchItemPrices(itemIds);\n * return <ProductGrid items={itemIds} />;\n * }\n * ```\n */\nexport function createPrefetchUtilities(\n api: AugurApiClient,\n config: PrefetchConfig = {},\n): PrefetchUtilities {\n const { cache, defaultCustomerId } = config;\n\n function getQueryClient(): QueryClient {\n return getServerQueryClient();\n }\n\n function resolveCustomerId(explicit: string | number | undefined): string | number | undefined {\n return explicit ?? defaultCustomerId;\n }\n\n async function prefetchItemPrice(\n itemId: string,\n customerId?: string | number,\n quantity = 1,\n ): Promise<void> {\n const qc = getQueryClient();\n const custId = resolveCustomerId(customerId);\n const options = getItemPriceOptions(api, itemId, custId, quantity, cache);\n await qc.prefetchQuery(options);\n }\n\n async function prefetchBatchItemPrices(\n itemIds: string[],\n customerId?: string | number,\n quantity = 1,\n ): Promise<void> {\n const qc = getQueryClient();\n const custId = resolveCustomerId(customerId);\n\n const prices = await batchFetch(\n itemIds,\n (id) => getItemPriceOptions(api, id, custId, quantity, cache).queryFn(),\n (id) => id,\n );\n\n for (const [id, data] of Object.entries(prices)) {\n qc.setQueryData(getItemPriceKey(id, custId, quantity), data);\n }\n }\n\n async function prefetchProductListingPrices(\n itemIds: string[],\n customerId?: string | number,\n maxItems?: number,\n ): Promise<void> {\n const limited = maxItems ? itemIds.slice(0, maxItems) : itemIds;\n await prefetchBatchItemPrices(limited, customerId);\n }\n\n async function prefetchItemCategory(\n itemCategoryUid: number,\n apiOptions?: PrefetchItemCategoryApiOptions,\n ): Promise<void> {\n const qc = getQueryClient();\n const options = getItemCategoryOptions(api, itemCategoryUid, apiOptions, cache);\n await qc.prefetchQuery(options);\n }\n\n async function prefetchInvMast(invMastUid: number, itemId: string): Promise<void> {\n const qc = getQueryClient();\n const options = getInvMastOptions(api, invMastUid, itemId, cache);\n await qc.prefetchQuery(options);\n }\n\n async function prefetchInvMastStock(invMastUid: number | string): Promise<void> {\n const qc = getQueryClient();\n const options = getInvMastStockOptions(api, invMastUid, cache);\n await qc.prefetchQuery(options);\n }\n\n async function prefetchItemDetails(itemId: number | string): Promise<void> {\n const qc = getQueryClient();\n const options = getItemDetailsOptions(api, itemId, cache);\n await qc.prefetchQuery(options);\n }\n\n async function prefetchItemAttributes(itemCategoryUid: number | string): Promise<void> {\n const qc = getQueryClient();\n const options = getItemAttributesOptions(api, itemCategoryUid, cache);\n await qc.prefetchQuery(options);\n }\n\n async function prefetchProductSearch(pageData: PageData): Promise<void> {\n const qc = getQueryClient();\n const options = getProductSearchOptions(api, pageData, cache);\n await qc.prefetchQuery(options);\n }\n\n async function prefetchJoomlaContent(articleId: number | string): Promise<void> {\n const qc = getQueryClient();\n const options = getJoomlaContentOptions(api, articleId, cache);\n await qc.prefetchQuery(options);\n }\n\n async function prefetchInvMastDoc(\n invMastUid: number,\n itemId: string,\n includePricing: \"Y\" | \"N\" = \"N\",\n ): Promise<void> {\n const qc = getQueryClient();\n const options = getInvMastDocOptions(api, invMastUid, itemId, includePricing, cache);\n await qc.prefetchQuery(options);\n }\n\n async function prefetchProductCategory(itemCategoryUid: number | string): Promise<void> {\n const qc = getQueryClient();\n const options = getProductCategoryOptions(api, itemCategoryUid, cache);\n await qc.prefetchQuery(options);\n }\n\n async function prefetchCategoryItemsFirstPage(\n itemCategoryUid: number,\n itemsFilters: TItemsFilters,\n ): Promise<void> {\n const qc = getQueryClient();\n const options = getCategoryItemsInfiniteOptions(api, itemCategoryUid, itemsFilters, cache);\n await qc.prefetchInfiniteQuery({ ...options, pages: 1 });\n }\n\n async function prefetchSearchResultsFirstPage(\n itemsFilters: TItemsFilters,\n itemCategoryUid?: number | string,\n ): Promise<void> {\n const qc = getQueryClient();\n const options = getItemSearchInfiniteOptions(api, itemsFilters, itemCategoryUid, cache);\n await qc.prefetchInfiniteQuery({ ...options, pages: 1 });\n }\n\n async function prefetchJoomlaContentList(\n categoryId: number | string,\n filters?: Partial<TJoomlaContentFilters>,\n ): Promise<void> {\n const qc = getQueryClient();\n const options = getJoomlaContentListOptions(api, categoryId, filters, cache);\n await qc.prefetchQuery(options);\n }\n\n return {\n prefetchItemPrice,\n prefetchBatchItemPrices,\n prefetchProductListingPrices,\n prefetchItemCategory,\n prefetchInvMast,\n prefetchInvMastStock,\n prefetchItemDetails,\n prefetchItemAttributes,\n prefetchProductSearch,\n prefetchInvMastDoc,\n prefetchProductCategory,\n prefetchCategoryItemsFirstPage,\n prefetchSearchResultsFirstPage,\n prefetchJoomlaContent,\n prefetchJoomlaContentList,\n };\n}\n"],"mappings":";;;;;;;;;AACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAkIA,SAAS,wBACd,KACA,SAAyB,CAAC,GACP;AACnB,QAAM,EAAE,OAAO,kBAAkB,IAAI;AAErC,WAAS,iBAA8B;AACrC,WAAO,qBAAqB;AAAA,EAC9B;AAEA,WAAS,kBAAkB,UAAoE;AAC7F,WAAO,YAAY;AAAA,EACrB;AAEA,iBAAe,kBACb,QACA,YACA,WAAW,GACI;AACf,UAAM,KAAK,eAAe;AAC1B,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