@anker-in/shopify-react 1.3.0-beta.13 → 1.3.0-beta.15
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/hooks/index.d.mts +49 -47
- package/dist/hooks/index.d.ts +49 -47
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/hooks/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as swr_mutation from 'swr/mutation';
|
|
2
2
|
import { SWRMutationConfiguration } from 'swr/mutation';
|
|
3
3
|
import * as _anker_in_shopify_sdk from '@anker-in/shopify-sdk';
|
|
4
|
-
import { CartLineInput, BuyerIdentityInput, NormalizedCart, NormalizedProduct, NormalizedProductVariant, NormalizedLineItem, UpdateCartLinesOptions, HasMetafieldsIdentifier, Media, NormalizedCollection, CollectionsConnection, NormalizedBlog, NormalizedArticle, NormalizedShop, NormalizedAttribute } from '@anker-in/shopify-sdk';
|
|
4
|
+
import { CartLineInput, BuyerIdentityInput, NormalizedCart, NormalizedProduct, NormalizedProductVariant, NormalizedLineItem, UpdateCartLinesOptions, HasMetafieldsIdentifier, MetafieldIdentifier, Media, NormalizedCollection, CollectionsConnection, NormalizedBlog, NormalizedArticle, NormalizedShop, NormalizedAttribute } from '@anker-in/shopify-sdk';
|
|
5
5
|
import { h as UseAddToCartOptions, g as AddToCartInput, A as AddToCartLineItem, G as GtmParams, C as BuyNowTrackConfig, e as UseScriptAutoFreeGiftResult, m as PlusMemberShippingMethodConfig, n as PlusMemberSettingsMetafields, D as DeliveryPlusType, o as SelectedPlusMemberVariant } from '../types-C0UyuPrG.mjs';
|
|
6
6
|
export { p as DeliveryCustomData, P as PLUS_MEMBER_TYPE, j as PlusMemberMode, l as PlusMemberShippingMethodMetafields, S as ScriptAutoFreeGiftConfig, k as ShippingMethodMode, U as UseAutoRemoveFreeGiftsOptions, a as UseAutoRemoveFreeGiftsResult, d as isAnyGift, c as isBuyGetGift, i as isFunctionGift, b as isScriptGift, u as useAutoRemoveFreeGifts, f as useScriptAutoFreeGift } from '../types-C0UyuPrG.mjs';
|
|
7
7
|
import * as swr from 'swr';
|
|
@@ -841,10 +841,10 @@ declare const formatFunctionAutoFreeGift: ({ qualifyingGift, giftProductsResult,
|
|
|
841
841
|
|
|
842
842
|
interface UseProductOptions extends SWRConfiguration<NormalizedProduct | undefined> {
|
|
843
843
|
handle?: string;
|
|
844
|
-
metafieldIdentifiers?:
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
}
|
|
844
|
+
metafieldIdentifiers?: {
|
|
845
|
+
product?: MetafieldIdentifier[];
|
|
846
|
+
variant?: MetafieldIdentifier[];
|
|
847
|
+
};
|
|
848
848
|
}
|
|
849
849
|
/**
|
|
850
850
|
* Hook to fetch a single product by handle
|
|
@@ -880,10 +880,10 @@ interface UseAllProductsOptions extends SWRConfiguration<NormalizedProduct[]> {
|
|
|
880
880
|
query?: string;
|
|
881
881
|
sortKey?: 'TITLE' | 'PRODUCT_TYPE' | 'VENDOR' | 'UPDATED_AT' | 'CREATED_AT' | 'BEST_SELLING' | 'PRICE' | 'RELEVANCE';
|
|
882
882
|
reverse?: boolean;
|
|
883
|
-
metafieldIdentifiers?:
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
}
|
|
883
|
+
metafieldIdentifiers?: {
|
|
884
|
+
product?: MetafieldIdentifier[];
|
|
885
|
+
variant?: MetafieldIdentifier[];
|
|
886
|
+
};
|
|
887
887
|
}
|
|
888
888
|
/**
|
|
889
889
|
* Hook to fetch all products
|
|
@@ -923,8 +923,8 @@ declare function useAllProducts(options?: UseAllProductsOptions): swr.SWRRespons
|
|
|
923
923
|
interface UseProductsByHandlesOptions extends SWRConfiguration<(NormalizedProduct | undefined)[]> {
|
|
924
924
|
handles?: string[];
|
|
925
925
|
metafieldIdentifiers?: {
|
|
926
|
-
product
|
|
927
|
-
variant
|
|
926
|
+
product?: MetafieldIdentifier[];
|
|
927
|
+
variant?: MetafieldIdentifier[];
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
930
|
/**
|
|
@@ -1236,10 +1236,11 @@ declare function useVariantMedia({ product, variant, }: {
|
|
|
1236
1236
|
|
|
1237
1237
|
interface UseCollectionOptions extends SWRConfiguration<NormalizedCollection | undefined> {
|
|
1238
1238
|
handle?: string;
|
|
1239
|
-
metafieldIdentifiers?:
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1239
|
+
metafieldIdentifiers?: {
|
|
1240
|
+
collection?: MetafieldIdentifier[];
|
|
1241
|
+
product?: MetafieldIdentifier[];
|
|
1242
|
+
variant?: MetafieldIdentifier[];
|
|
1243
|
+
};
|
|
1243
1244
|
}
|
|
1244
1245
|
declare function useCollection(options?: UseCollectionOptions): swr.SWRResponse<NormalizedCollection | undefined, any, SWRConfiguration<NormalizedCollection | undefined, any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedCollection | undefined>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedCollection | undefined>)> | undefined>;
|
|
1245
1246
|
|
|
@@ -1248,10 +1249,11 @@ interface UseAllCollectionsOptions extends SWRConfiguration<NormalizedCollection
|
|
|
1248
1249
|
query?: string;
|
|
1249
1250
|
sortKey?: 'TITLE' | 'UPDATED_AT' | 'ID' | 'RELEVANCE';
|
|
1250
1251
|
reverse?: boolean;
|
|
1251
|
-
metafieldIdentifiers?:
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1252
|
+
metafieldIdentifiers?: {
|
|
1253
|
+
collection?: MetafieldIdentifier[];
|
|
1254
|
+
product?: MetafieldIdentifier[];
|
|
1255
|
+
variant?: MetafieldIdentifier[];
|
|
1256
|
+
};
|
|
1255
1257
|
}
|
|
1256
1258
|
declare function useAllCollections(options?: UseAllCollectionsOptions): swr.SWRResponse<NormalizedCollection[], any, SWRConfiguration<NormalizedCollection[], any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedCollection[]>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedCollection[]>)> | undefined>;
|
|
1257
1259
|
|
|
@@ -1261,39 +1263,40 @@ interface UseCollectionsOptions extends SWRConfiguration<CollectionsConnection>
|
|
|
1261
1263
|
query?: string;
|
|
1262
1264
|
sortKey?: 'TITLE' | 'UPDATED_AT' | 'ID' | 'RELEVANCE';
|
|
1263
1265
|
reverse?: boolean;
|
|
1264
|
-
metafieldIdentifiers?:
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1266
|
+
metafieldIdentifiers?: {
|
|
1267
|
+
product: MetafieldIdentifier[];
|
|
1268
|
+
variant: MetafieldIdentifier[];
|
|
1269
|
+
collection: MetafieldIdentifier[];
|
|
1270
|
+
};
|
|
1268
1271
|
}
|
|
1269
1272
|
declare function useCollections(options?: UseCollectionsOptions): swr.SWRResponse<CollectionsConnection, any, SWRConfiguration<CollectionsConnection, any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<CollectionsConnection>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<CollectionsConnection>)> | undefined>;
|
|
1270
1273
|
|
|
1271
1274
|
interface UseBlogOptions extends SWRConfiguration<NormalizedBlog | undefined> {
|
|
1272
1275
|
handle?: string;
|
|
1273
|
-
metafieldIdentifiers?:
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
}
|
|
1276
|
+
metafieldIdentifiers?: {
|
|
1277
|
+
blog?: MetafieldIdentifier[];
|
|
1278
|
+
article?: MetafieldIdentifier[];
|
|
1279
|
+
};
|
|
1277
1280
|
}
|
|
1278
1281
|
declare function useBlog(options?: UseBlogOptions): swr.SWRResponse<NormalizedBlog | undefined, any, SWRConfiguration<NormalizedBlog | undefined, any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedBlog | undefined>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedBlog | undefined>)> | undefined>;
|
|
1279
1282
|
|
|
1280
1283
|
interface UseAllBlogsOptions extends SWRConfiguration<NormalizedBlog[]> {
|
|
1281
1284
|
first?: number;
|
|
1282
1285
|
query?: string;
|
|
1283
|
-
metafieldIdentifiers?:
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1286
|
+
metafieldIdentifiers?: {
|
|
1287
|
+
blog?: MetafieldIdentifier[];
|
|
1288
|
+
article?: MetafieldIdentifier[];
|
|
1289
|
+
};
|
|
1287
1290
|
}
|
|
1288
1291
|
declare function useAllBlogs(options?: UseAllBlogsOptions): swr.SWRResponse<NormalizedBlog[], any, SWRConfiguration<NormalizedBlog[], any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedBlog[]>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedBlog[]>)> | undefined>;
|
|
1289
1292
|
|
|
1290
1293
|
interface UseArticleOptions extends SWRConfiguration<NormalizedArticle | undefined> {
|
|
1291
1294
|
blogHandle?: string;
|
|
1292
1295
|
articleHandle?: string;
|
|
1293
|
-
metafieldIdentifiers?:
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
}
|
|
1296
|
+
metafieldIdentifiers?: {
|
|
1297
|
+
blog?: MetafieldIdentifier[];
|
|
1298
|
+
article?: MetafieldIdentifier[];
|
|
1299
|
+
};
|
|
1297
1300
|
}
|
|
1298
1301
|
declare function useArticle(options?: UseArticleOptions): swr.SWRResponse<NormalizedArticle | undefined, any, SWRConfiguration<NormalizedArticle | undefined, any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedArticle | undefined>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedArticle | undefined>)> | undefined>;
|
|
1299
1302
|
|
|
@@ -1302,10 +1305,10 @@ interface UseArticlesOptions extends SWRConfiguration<NormalizedArticle[]> {
|
|
|
1302
1305
|
query?: string;
|
|
1303
1306
|
sortKey?: 'PUBLISHED_AT' | 'UPDATED_AT' | 'TITLE' | 'ID' | 'RELEVANCE';
|
|
1304
1307
|
reverse?: boolean;
|
|
1305
|
-
metafieldIdentifiers?:
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
}
|
|
1308
|
+
metafieldIdentifiers?: {
|
|
1309
|
+
blog?: MetafieldIdentifier[];
|
|
1310
|
+
article?: MetafieldIdentifier[];
|
|
1311
|
+
};
|
|
1309
1312
|
}
|
|
1310
1313
|
declare function useArticles(options?: UseArticlesOptions): swr.SWRResponse<NormalizedArticle[], any, SWRConfiguration<NormalizedArticle[], any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedArticle[]>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedArticle[]>)> | undefined>;
|
|
1311
1314
|
|
|
@@ -1314,10 +1317,10 @@ interface UseArticlesInBlogOptions extends SWRConfiguration<NormalizedArticle[]>
|
|
|
1314
1317
|
first?: number;
|
|
1315
1318
|
sortKey?: 'PUBLISHED_AT' | 'UPDATED_AT' | 'TITLE' | 'ID' | 'RELEVANCE';
|
|
1316
1319
|
reverse?: boolean;
|
|
1317
|
-
metafieldIdentifiers?:
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
}
|
|
1320
|
+
metafieldIdentifiers?: {
|
|
1321
|
+
blog?: MetafieldIdentifier[];
|
|
1322
|
+
article?: MetafieldIdentifier[];
|
|
1323
|
+
};
|
|
1321
1324
|
}
|
|
1322
1325
|
declare function useArticlesInBlog(options?: UseArticlesInBlogOptions): swr.SWRResponse<NormalizedArticle[], any, SWRConfiguration<NormalizedArticle[], any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedArticle[]>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedArticle[]>)> | undefined>;
|
|
1323
1326
|
|
|
@@ -1352,10 +1355,9 @@ declare function useSearch(options?: UseSearchOptions): swr.SWRResponse<SearchRe
|
|
|
1352
1355
|
|
|
1353
1356
|
type SiteInfo = NormalizedShop;
|
|
1354
1357
|
interface UseSiteOptions extends SWRConfiguration<SiteInfo | undefined> {
|
|
1355
|
-
metafieldIdentifiers?:
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
}>;
|
|
1358
|
+
metafieldIdentifiers?: {
|
|
1359
|
+
shop?: MetafieldIdentifier[];
|
|
1360
|
+
};
|
|
1359
1361
|
}
|
|
1360
1362
|
declare function useSite(options?: UseSiteOptions): swr.SWRResponse<NormalizedShop | undefined, any, SWRConfiguration<NormalizedShop | undefined, any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedShop | undefined>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedShop | undefined>)> | undefined>;
|
|
1361
1363
|
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as swr_mutation from 'swr/mutation';
|
|
2
2
|
import { SWRMutationConfiguration } from 'swr/mutation';
|
|
3
3
|
import * as _anker_in_shopify_sdk from '@anker-in/shopify-sdk';
|
|
4
|
-
import { CartLineInput, BuyerIdentityInput, NormalizedCart, NormalizedProduct, NormalizedProductVariant, NormalizedLineItem, UpdateCartLinesOptions, HasMetafieldsIdentifier, Media, NormalizedCollection, CollectionsConnection, NormalizedBlog, NormalizedArticle, NormalizedShop, NormalizedAttribute } from '@anker-in/shopify-sdk';
|
|
4
|
+
import { CartLineInput, BuyerIdentityInput, NormalizedCart, NormalizedProduct, NormalizedProductVariant, NormalizedLineItem, UpdateCartLinesOptions, HasMetafieldsIdentifier, MetafieldIdentifier, Media, NormalizedCollection, CollectionsConnection, NormalizedBlog, NormalizedArticle, NormalizedShop, NormalizedAttribute } from '@anker-in/shopify-sdk';
|
|
5
5
|
import { h as UseAddToCartOptions, g as AddToCartInput, A as AddToCartLineItem, G as GtmParams, C as BuyNowTrackConfig, e as UseScriptAutoFreeGiftResult, m as PlusMemberShippingMethodConfig, n as PlusMemberSettingsMetafields, D as DeliveryPlusType, o as SelectedPlusMemberVariant } from '../types-C0UyuPrG.js';
|
|
6
6
|
export { p as DeliveryCustomData, P as PLUS_MEMBER_TYPE, j as PlusMemberMode, l as PlusMemberShippingMethodMetafields, S as ScriptAutoFreeGiftConfig, k as ShippingMethodMode, U as UseAutoRemoveFreeGiftsOptions, a as UseAutoRemoveFreeGiftsResult, d as isAnyGift, c as isBuyGetGift, i as isFunctionGift, b as isScriptGift, u as useAutoRemoveFreeGifts, f as useScriptAutoFreeGift } from '../types-C0UyuPrG.js';
|
|
7
7
|
import * as swr from 'swr';
|
|
@@ -841,10 +841,10 @@ declare const formatFunctionAutoFreeGift: ({ qualifyingGift, giftProductsResult,
|
|
|
841
841
|
|
|
842
842
|
interface UseProductOptions extends SWRConfiguration<NormalizedProduct | undefined> {
|
|
843
843
|
handle?: string;
|
|
844
|
-
metafieldIdentifiers?:
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
}
|
|
844
|
+
metafieldIdentifiers?: {
|
|
845
|
+
product?: MetafieldIdentifier[];
|
|
846
|
+
variant?: MetafieldIdentifier[];
|
|
847
|
+
};
|
|
848
848
|
}
|
|
849
849
|
/**
|
|
850
850
|
* Hook to fetch a single product by handle
|
|
@@ -880,10 +880,10 @@ interface UseAllProductsOptions extends SWRConfiguration<NormalizedProduct[]> {
|
|
|
880
880
|
query?: string;
|
|
881
881
|
sortKey?: 'TITLE' | 'PRODUCT_TYPE' | 'VENDOR' | 'UPDATED_AT' | 'CREATED_AT' | 'BEST_SELLING' | 'PRICE' | 'RELEVANCE';
|
|
882
882
|
reverse?: boolean;
|
|
883
|
-
metafieldIdentifiers?:
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
}
|
|
883
|
+
metafieldIdentifiers?: {
|
|
884
|
+
product?: MetafieldIdentifier[];
|
|
885
|
+
variant?: MetafieldIdentifier[];
|
|
886
|
+
};
|
|
887
887
|
}
|
|
888
888
|
/**
|
|
889
889
|
* Hook to fetch all products
|
|
@@ -923,8 +923,8 @@ declare function useAllProducts(options?: UseAllProductsOptions): swr.SWRRespons
|
|
|
923
923
|
interface UseProductsByHandlesOptions extends SWRConfiguration<(NormalizedProduct | undefined)[]> {
|
|
924
924
|
handles?: string[];
|
|
925
925
|
metafieldIdentifiers?: {
|
|
926
|
-
product
|
|
927
|
-
variant
|
|
926
|
+
product?: MetafieldIdentifier[];
|
|
927
|
+
variant?: MetafieldIdentifier[];
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
930
|
/**
|
|
@@ -1236,10 +1236,11 @@ declare function useVariantMedia({ product, variant, }: {
|
|
|
1236
1236
|
|
|
1237
1237
|
interface UseCollectionOptions extends SWRConfiguration<NormalizedCollection | undefined> {
|
|
1238
1238
|
handle?: string;
|
|
1239
|
-
metafieldIdentifiers?:
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1239
|
+
metafieldIdentifiers?: {
|
|
1240
|
+
collection?: MetafieldIdentifier[];
|
|
1241
|
+
product?: MetafieldIdentifier[];
|
|
1242
|
+
variant?: MetafieldIdentifier[];
|
|
1243
|
+
};
|
|
1243
1244
|
}
|
|
1244
1245
|
declare function useCollection(options?: UseCollectionOptions): swr.SWRResponse<NormalizedCollection | undefined, any, SWRConfiguration<NormalizedCollection | undefined, any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedCollection | undefined>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedCollection | undefined>)> | undefined>;
|
|
1245
1246
|
|
|
@@ -1248,10 +1249,11 @@ interface UseAllCollectionsOptions extends SWRConfiguration<NormalizedCollection
|
|
|
1248
1249
|
query?: string;
|
|
1249
1250
|
sortKey?: 'TITLE' | 'UPDATED_AT' | 'ID' | 'RELEVANCE';
|
|
1250
1251
|
reverse?: boolean;
|
|
1251
|
-
metafieldIdentifiers?:
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1252
|
+
metafieldIdentifiers?: {
|
|
1253
|
+
collection?: MetafieldIdentifier[];
|
|
1254
|
+
product?: MetafieldIdentifier[];
|
|
1255
|
+
variant?: MetafieldIdentifier[];
|
|
1256
|
+
};
|
|
1255
1257
|
}
|
|
1256
1258
|
declare function useAllCollections(options?: UseAllCollectionsOptions): swr.SWRResponse<NormalizedCollection[], any, SWRConfiguration<NormalizedCollection[], any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedCollection[]>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedCollection[]>)> | undefined>;
|
|
1257
1259
|
|
|
@@ -1261,39 +1263,40 @@ interface UseCollectionsOptions extends SWRConfiguration<CollectionsConnection>
|
|
|
1261
1263
|
query?: string;
|
|
1262
1264
|
sortKey?: 'TITLE' | 'UPDATED_AT' | 'ID' | 'RELEVANCE';
|
|
1263
1265
|
reverse?: boolean;
|
|
1264
|
-
metafieldIdentifiers?:
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1266
|
+
metafieldIdentifiers?: {
|
|
1267
|
+
product: MetafieldIdentifier[];
|
|
1268
|
+
variant: MetafieldIdentifier[];
|
|
1269
|
+
collection: MetafieldIdentifier[];
|
|
1270
|
+
};
|
|
1268
1271
|
}
|
|
1269
1272
|
declare function useCollections(options?: UseCollectionsOptions): swr.SWRResponse<CollectionsConnection, any, SWRConfiguration<CollectionsConnection, any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<CollectionsConnection>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<CollectionsConnection>)> | undefined>;
|
|
1270
1273
|
|
|
1271
1274
|
interface UseBlogOptions extends SWRConfiguration<NormalizedBlog | undefined> {
|
|
1272
1275
|
handle?: string;
|
|
1273
|
-
metafieldIdentifiers?:
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
}
|
|
1276
|
+
metafieldIdentifiers?: {
|
|
1277
|
+
blog?: MetafieldIdentifier[];
|
|
1278
|
+
article?: MetafieldIdentifier[];
|
|
1279
|
+
};
|
|
1277
1280
|
}
|
|
1278
1281
|
declare function useBlog(options?: UseBlogOptions): swr.SWRResponse<NormalizedBlog | undefined, any, SWRConfiguration<NormalizedBlog | undefined, any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedBlog | undefined>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedBlog | undefined>)> | undefined>;
|
|
1279
1282
|
|
|
1280
1283
|
interface UseAllBlogsOptions extends SWRConfiguration<NormalizedBlog[]> {
|
|
1281
1284
|
first?: number;
|
|
1282
1285
|
query?: string;
|
|
1283
|
-
metafieldIdentifiers?:
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1286
|
+
metafieldIdentifiers?: {
|
|
1287
|
+
blog?: MetafieldIdentifier[];
|
|
1288
|
+
article?: MetafieldIdentifier[];
|
|
1289
|
+
};
|
|
1287
1290
|
}
|
|
1288
1291
|
declare function useAllBlogs(options?: UseAllBlogsOptions): swr.SWRResponse<NormalizedBlog[], any, SWRConfiguration<NormalizedBlog[], any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedBlog[]>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedBlog[]>)> | undefined>;
|
|
1289
1292
|
|
|
1290
1293
|
interface UseArticleOptions extends SWRConfiguration<NormalizedArticle | undefined> {
|
|
1291
1294
|
blogHandle?: string;
|
|
1292
1295
|
articleHandle?: string;
|
|
1293
|
-
metafieldIdentifiers?:
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
}
|
|
1296
|
+
metafieldIdentifiers?: {
|
|
1297
|
+
blog?: MetafieldIdentifier[];
|
|
1298
|
+
article?: MetafieldIdentifier[];
|
|
1299
|
+
};
|
|
1297
1300
|
}
|
|
1298
1301
|
declare function useArticle(options?: UseArticleOptions): swr.SWRResponse<NormalizedArticle | undefined, any, SWRConfiguration<NormalizedArticle | undefined, any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedArticle | undefined>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedArticle | undefined>)> | undefined>;
|
|
1299
1302
|
|
|
@@ -1302,10 +1305,10 @@ interface UseArticlesOptions extends SWRConfiguration<NormalizedArticle[]> {
|
|
|
1302
1305
|
query?: string;
|
|
1303
1306
|
sortKey?: 'PUBLISHED_AT' | 'UPDATED_AT' | 'TITLE' | 'ID' | 'RELEVANCE';
|
|
1304
1307
|
reverse?: boolean;
|
|
1305
|
-
metafieldIdentifiers?:
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
}
|
|
1308
|
+
metafieldIdentifiers?: {
|
|
1309
|
+
blog?: MetafieldIdentifier[];
|
|
1310
|
+
article?: MetafieldIdentifier[];
|
|
1311
|
+
};
|
|
1309
1312
|
}
|
|
1310
1313
|
declare function useArticles(options?: UseArticlesOptions): swr.SWRResponse<NormalizedArticle[], any, SWRConfiguration<NormalizedArticle[], any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedArticle[]>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedArticle[]>)> | undefined>;
|
|
1311
1314
|
|
|
@@ -1314,10 +1317,10 @@ interface UseArticlesInBlogOptions extends SWRConfiguration<NormalizedArticle[]>
|
|
|
1314
1317
|
first?: number;
|
|
1315
1318
|
sortKey?: 'PUBLISHED_AT' | 'UPDATED_AT' | 'TITLE' | 'ID' | 'RELEVANCE';
|
|
1316
1319
|
reverse?: boolean;
|
|
1317
|
-
metafieldIdentifiers?:
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
}
|
|
1320
|
+
metafieldIdentifiers?: {
|
|
1321
|
+
blog?: MetafieldIdentifier[];
|
|
1322
|
+
article?: MetafieldIdentifier[];
|
|
1323
|
+
};
|
|
1321
1324
|
}
|
|
1322
1325
|
declare function useArticlesInBlog(options?: UseArticlesInBlogOptions): swr.SWRResponse<NormalizedArticle[], any, SWRConfiguration<NormalizedArticle[], any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedArticle[]>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedArticle[]>)> | undefined>;
|
|
1323
1326
|
|
|
@@ -1352,10 +1355,9 @@ declare function useSearch(options?: UseSearchOptions): swr.SWRResponse<SearchRe
|
|
|
1352
1355
|
|
|
1353
1356
|
type SiteInfo = NormalizedShop;
|
|
1354
1357
|
interface UseSiteOptions extends SWRConfiguration<SiteInfo | undefined> {
|
|
1355
|
-
metafieldIdentifiers?:
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
}>;
|
|
1358
|
+
metafieldIdentifiers?: {
|
|
1359
|
+
shop?: MetafieldIdentifier[];
|
|
1360
|
+
};
|
|
1359
1361
|
}
|
|
1360
1362
|
declare function useSite(options?: UseSiteOptions): swr.SWRResponse<NormalizedShop | undefined, any, SWRConfiguration<NormalizedShop | undefined, any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedShop | undefined>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<NormalizedShop | undefined>)> | undefined>;
|
|
1361
1363
|
|