@plentymarkets/shop-api 0.168.1 → 0.169.0
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/lib/getters/additionalInformationGetters.d.ts.map +1 -1
- package/lib/getters/bannerGetters.d.ts +40 -0
- package/lib/getters/bannerGetters.d.ts.map +1 -1
- package/lib/getters/barcodeGetters.d.ts +35 -0
- package/lib/getters/barcodeGetters.d.ts.map +1 -1
- package/lib/getters/breadcrumbGetters.d.ts +10 -0
- package/lib/getters/breadcrumbGetters.d.ts.map +1 -1
- package/lib/getters/cartGetters.d.ts +250 -0
- package/lib/getters/cartGetters.d.ts.map +1 -1
- package/lib/getters/categoryEntryGetters.d.ts +75 -0
- package/lib/getters/categoryEntryGetters.d.ts.map +1 -1
- package/lib/getters/categoryGetters.d.ts +81 -1
- package/lib/getters/categoryGetters.d.ts.map +1 -1
- package/lib/getters/categoryTreeGetters.d.ts +98 -0
- package/lib/getters/categoryTreeGetters.d.ts.map +1 -1
- package/lib/getters/companyGetters.d.ts +20 -0
- package/lib/getters/companyGetters.d.ts.map +1 -1
- package/lib/getters/cookieBarGetters.d.ts +40 -0
- package/lib/getters/cookieBarGetters.d.ts.map +1 -1
- package/lib/getters/countryGetters.d.ts +42 -0
- package/lib/getters/countryGetters.d.ts.map +1 -1
- package/lib/getters/facetGetters.d.ts +61 -0
- package/lib/getters/facetGetters.d.ts.map +1 -1
- package/lib/getters/forgotPasswordGetters.d.ts +10 -0
- package/lib/getters/forgotPasswordGetters.d.ts.map +1 -1
- package/lib/getters/heroesGetters.d.ts +25 -0
- package/lib/getters/heroesGetters.d.ts.map +1 -1
- package/lib/getters/itemSearchAutocompleteGetters.d.ts.map +1 -1
- package/lib/getters/legalGetters.d.ts +5 -0
- package/lib/getters/legalGetters.d.ts.map +1 -1
- package/lib/getters/localesGetters.d.ts +10 -0
- package/lib/getters/localesGetters.d.ts.map +1 -1
- package/lib/getters/manufacturerGetters.d.ts +120 -0
- package/lib/getters/manufacturerGetters.d.ts.map +1 -1
- package/lib/getters/offerGetters.d.ts +78 -0
- package/lib/getters/offerGetters.d.ts.map +1 -1
- package/lib/getters/orderConfirmationGetters.d.ts.map +1 -1
- package/lib/getters/orderDocumentGetters.d.ts +10 -0
- package/lib/getters/orderDocumentGetters.d.ts.map +1 -1
- package/lib/getters/orderGetters.d.ts +567 -0
- package/lib/getters/orderGetters.d.ts.map +1 -1
- package/lib/getters/paginationGetters.d.ts +15 -0
- package/lib/getters/paginationGetters.d.ts.map +1 -1
- package/lib/getters/paymentProviderGetters.d.ts +54 -0
- package/lib/getters/paymentProviderGetters.d.ts.map +1 -1
- package/lib/getters/paypalGetters.d.ts +15 -0
- package/lib/getters/paypalGetters.d.ts.map +1 -1
- package/lib/getters/productAttributeGetters.d.ts +53 -0
- package/lib/getters/productAttributeGetters.d.ts.map +1 -1
- package/lib/getters/productBundleGetters.d.ts +49 -0
- package/lib/getters/productBundleGetters.d.ts.map +1 -1
- package/lib/getters/productGetters.d.ts +366 -0
- package/lib/getters/productGetters.d.ts.map +1 -1
- package/lib/getters/productImageGetters.d.ts +50 -0
- package/lib/getters/productImageGetters.d.ts.map +1 -1
- package/lib/getters/productPriceGetters.d.ts.map +1 -1
- package/lib/getters/productPropertyGetters.d.ts +268 -0
- package/lib/getters/productPropertyGetters.d.ts.map +1 -1
- package/lib/getters/productSeoSettingsGetters.d.ts +95 -0
- package/lib/getters/productSeoSettingsGetters.d.ts.map +1 -1
- package/lib/getters/returnGetters.d.ts +111 -0
- package/lib/getters/returnGetters.d.ts.map +1 -1
- package/lib/getters/reviewGetters.d.ts +110 -0
- package/lib/getters/reviewGetters.d.ts.map +1 -1
- package/lib/getters/robotGetters.d.ts +45 -0
- package/lib/getters/robotGetters.d.ts.map +1 -1
- package/lib/getters/shippingProviderGetters.d.ts +45 -0
- package/lib/getters/shippingProviderGetters.d.ts.map +1 -1
- package/lib/getters/tagGetters.d.ts +31 -0
- package/lib/getters/tagGetters.d.ts.map +1 -1
- package/lib/getters/userAddressGetters.d.ts +111 -0
- package/lib/getters/userAddressGetters.d.ts.map +1 -1
- package/lib/getters/userGetters.d.ts +25 -0
- package/lib/getters/userGetters.d.ts.map +1 -1
- package/lib/getters/wishlistGetters.d.ts +83 -0
- package/lib/getters/wishlistGetters.d.ts.map +1 -1
- package/lib/index.cjs.js +3342 -21
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.es.js +3342 -21
- package/lib/index.es.js.map +1 -1
- package/lib/types/api/breadcrumbs.d.ts +1 -0
- package/lib/types/api/breadcrumbs.d.ts.map +1 -1
- package/lib/types/api/category.d.ts +7 -0
- package/lib/types/api/category.d.ts.map +1 -1
- package/package.json +3 -3
- package/server/getters/additionalInformationGetters.d.ts.map +1 -1
- package/server/getters/bannerGetters.d.ts +40 -0
- package/server/getters/bannerGetters.d.ts.map +1 -1
- package/server/getters/barcodeGetters.d.ts +35 -0
- package/server/getters/barcodeGetters.d.ts.map +1 -1
- package/server/getters/breadcrumbGetters.d.ts +10 -0
- package/server/getters/breadcrumbGetters.d.ts.map +1 -1
- package/server/getters/cartGetters.d.ts +250 -0
- package/server/getters/cartGetters.d.ts.map +1 -1
- package/server/getters/categoryEntryGetters.d.ts +75 -0
- package/server/getters/categoryEntryGetters.d.ts.map +1 -1
- package/server/getters/categoryGetters.d.ts +81 -1
- package/server/getters/categoryGetters.d.ts.map +1 -1
- package/server/getters/categoryTreeGetters.d.ts +98 -0
- package/server/getters/categoryTreeGetters.d.ts.map +1 -1
- package/server/getters/companyGetters.d.ts +20 -0
- package/server/getters/companyGetters.d.ts.map +1 -1
- package/server/getters/cookieBarGetters.d.ts +40 -0
- package/server/getters/cookieBarGetters.d.ts.map +1 -1
- package/server/getters/countryGetters.d.ts +42 -0
- package/server/getters/countryGetters.d.ts.map +1 -1
- package/server/getters/facetGetters.d.ts +61 -0
- package/server/getters/facetGetters.d.ts.map +1 -1
- package/server/getters/forgotPasswordGetters.d.ts +10 -0
- package/server/getters/forgotPasswordGetters.d.ts.map +1 -1
- package/server/getters/heroesGetters.d.ts +25 -0
- package/server/getters/heroesGetters.d.ts.map +1 -1
- package/server/getters/itemSearchAutocompleteGetters.d.ts.map +1 -1
- package/server/getters/legalGetters.d.ts +5 -0
- package/server/getters/legalGetters.d.ts.map +1 -1
- package/server/getters/localesGetters.d.ts +10 -0
- package/server/getters/localesGetters.d.ts.map +1 -1
- package/server/getters/manufacturerGetters.d.ts +120 -0
- package/server/getters/manufacturerGetters.d.ts.map +1 -1
- package/server/getters/offerGetters.d.ts +78 -0
- package/server/getters/offerGetters.d.ts.map +1 -1
- package/server/getters/orderConfirmationGetters.d.ts.map +1 -1
- package/server/getters/orderDocumentGetters.d.ts +10 -0
- package/server/getters/orderDocumentGetters.d.ts.map +1 -1
- package/server/getters/orderGetters.d.ts +567 -0
- package/server/getters/orderGetters.d.ts.map +1 -1
- package/server/getters/paginationGetters.d.ts +15 -0
- package/server/getters/paginationGetters.d.ts.map +1 -1
- package/server/getters/paymentProviderGetters.d.ts +54 -0
- package/server/getters/paymentProviderGetters.d.ts.map +1 -1
- package/server/getters/paypalGetters.d.ts +15 -0
- package/server/getters/paypalGetters.d.ts.map +1 -1
- package/server/getters/productAttributeGetters.d.ts +53 -0
- package/server/getters/productAttributeGetters.d.ts.map +1 -1
- package/server/getters/productBundleGetters.d.ts +49 -0
- package/server/getters/productBundleGetters.d.ts.map +1 -1
- package/server/getters/productGetters.d.ts +366 -0
- package/server/getters/productGetters.d.ts.map +1 -1
- package/server/getters/productImageGetters.d.ts +50 -0
- package/server/getters/productImageGetters.d.ts.map +1 -1
- package/server/getters/productPriceGetters.d.ts.map +1 -1
- package/server/getters/productPropertyGetters.d.ts +268 -0
- package/server/getters/productPropertyGetters.d.ts.map +1 -1
- package/server/getters/productSeoSettingsGetters.d.ts +95 -0
- package/server/getters/productSeoSettingsGetters.d.ts.map +1 -1
- package/server/getters/returnGetters.d.ts +111 -0
- package/server/getters/returnGetters.d.ts.map +1 -1
- package/server/getters/reviewGetters.d.ts +110 -0
- package/server/getters/reviewGetters.d.ts.map +1 -1
- package/server/getters/robotGetters.d.ts +45 -0
- package/server/getters/robotGetters.d.ts.map +1 -1
- package/server/getters/shippingProviderGetters.d.ts +45 -0
- package/server/getters/shippingProviderGetters.d.ts.map +1 -1
- package/server/getters/tagGetters.d.ts +31 -0
- package/server/getters/tagGetters.d.ts.map +1 -1
- package/server/getters/userAddressGetters.d.ts +111 -0
- package/server/getters/userAddressGetters.d.ts.map +1 -1
- package/server/getters/userGetters.d.ts +25 -0
- package/server/getters/userGetters.d.ts.map +1 -1
- package/server/getters/wishlistGetters.d.ts +83 -0
- package/server/getters/wishlistGetters.d.ts.map +1 -1
- package/server/types/api/breadcrumbs.d.ts +1 -0
- package/server/types/api/breadcrumbs.d.ts.map +1 -1
- package/server/types/api/category.d.ts +7 -0
- package/server/types/api/category.d.ts.map +1 -1
|
@@ -1,18 +1,93 @@
|
|
|
1
|
-
import type { Category, CategoryDetails } from '../types';
|
|
1
|
+
import type { Category, CategoryDetails, SubCategory } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the numeric ID of a category.
|
|
4
|
+
* @param category - The category object.
|
|
5
|
+
* @returns The category ID, or `0` if not set.
|
|
6
|
+
*/
|
|
2
7
|
declare function getId(category: Category): number;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the numeric ID of the parent category.
|
|
10
|
+
* @param category - The category object.
|
|
11
|
+
* @returns The parent category ID, or `0` if not set.
|
|
12
|
+
*/
|
|
3
13
|
declare function getParentId(category: Category): number;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the first localised details entry of a category.
|
|
16
|
+
* @param category - The category object.
|
|
17
|
+
* @returns The first {@link CategoryDetails} entry, or `null` if none exist.
|
|
18
|
+
*/
|
|
4
19
|
declare function getCategoryDetails(category: Category): CategoryDetails | null;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the first long description of the category.
|
|
22
|
+
* @param category - The category object.
|
|
23
|
+
* @returns The first description string, or an empty string if not set.
|
|
24
|
+
*/
|
|
5
25
|
declare function getCategoryDescription1(category: Category): string;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the second long description of the category.
|
|
28
|
+
* @param category - The category object.
|
|
29
|
+
* @returns The second description string, or an empty string if not set.
|
|
30
|
+
*/
|
|
6
31
|
declare function getCategoryDescription2(category: Category): string;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the short description of the category.
|
|
34
|
+
* @param category - The category object.
|
|
35
|
+
* @returns The short description string, or an empty string if not set.
|
|
36
|
+
*/
|
|
7
37
|
declare function getCategoryShortDescription(category: Category): string;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the SEO meta title of the category.
|
|
40
|
+
* @param category - The category object.
|
|
41
|
+
* @returns The meta title string, or an empty string if not set.
|
|
42
|
+
*/
|
|
8
43
|
declare function getMetaTitle(category: Category): string;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the SEO meta description of the category.
|
|
46
|
+
* @param category - The category object.
|
|
47
|
+
* @returns The meta description string, or an empty string if not set.
|
|
48
|
+
*/
|
|
9
49
|
declare function getMetaDescription(category: Category): string;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the SEO meta keywords of the category.
|
|
52
|
+
* @param category - The category object.
|
|
53
|
+
* @returns The meta keywords string, or an empty string if not set.
|
|
54
|
+
*/
|
|
10
55
|
declare function getMetaKeywords(category: Category): string;
|
|
56
|
+
/**
|
|
57
|
+
* Returns the display name of the category from its first details entry.
|
|
58
|
+
* @param category - The category object.
|
|
59
|
+
* @returns The category name string, or an empty string if details are not available.
|
|
60
|
+
*/
|
|
11
61
|
declare function getCategoryName(category: Category): string;
|
|
62
|
+
/**
|
|
63
|
+
* Returns the type of the category (e.g. `"item"`, `"content"`, `"container"`).
|
|
64
|
+
* @param category - The category object.
|
|
65
|
+
* @returns The category type string, or an empty string if not set.
|
|
66
|
+
*/
|
|
12
67
|
declare function getCategoryType(category: Category): string;
|
|
68
|
+
/**
|
|
69
|
+
* Returns the access right of the category (e.g. `"all"`, `"customer"`).
|
|
70
|
+
* @param category - The category object.
|
|
71
|
+
* @returns The right string, or an empty string if not set.
|
|
72
|
+
*/
|
|
13
73
|
declare function getCategoryRight(category: Category): string;
|
|
74
|
+
/**
|
|
75
|
+
* Returns whether the category requires a customer login to access.
|
|
76
|
+
* @param category - The category object.
|
|
77
|
+
* @returns `true` if the category right is `"customer"`, otherwise `false`.
|
|
78
|
+
*/
|
|
14
79
|
declare function hasCustomerRight(category: Category): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Returns the robots meta tag setting for the category.
|
|
82
|
+
* @param category - The category object.
|
|
83
|
+
* @returns The robots string (e.g. `"ALL"`, `"NOINDEX"`), or an empty string if not set.
|
|
84
|
+
*/
|
|
15
85
|
declare function getCategoryRobots(category: Category): string;
|
|
86
|
+
declare function getSubCategories(category: Category): SubCategory[];
|
|
87
|
+
declare function getSubCategoryName(subcategory: SubCategory): string;
|
|
88
|
+
declare function getSubCategoryId(subcategory: SubCategory): number;
|
|
89
|
+
declare function getSubCategoryNameUrl(subcategory: SubCategory): string;
|
|
90
|
+
declare function getSubCategoryItemCount(subcategory: SubCategory): number;
|
|
16
91
|
export declare const categoryGetters: {
|
|
17
92
|
getId: typeof getId;
|
|
18
93
|
getParentId: typeof getParentId;
|
|
@@ -28,6 +103,11 @@ export declare const categoryGetters: {
|
|
|
28
103
|
getCategoryDescription1: typeof getCategoryDescription1;
|
|
29
104
|
getCategoryDescription2: typeof getCategoryDescription2;
|
|
30
105
|
getCategoryShortDescription: typeof getCategoryShortDescription;
|
|
106
|
+
getSubCategories: typeof getSubCategories;
|
|
107
|
+
getSubCategoryName: typeof getSubCategoryName;
|
|
108
|
+
getSubCategoryId: typeof getSubCategoryId;
|
|
109
|
+
getSubCategoryNameUrl: typeof getSubCategoryNameUrl;
|
|
110
|
+
getSubCategoryItemCount: typeof getSubCategoryItemCount;
|
|
31
111
|
};
|
|
32
112
|
export {};
|
|
33
113
|
//# sourceMappingURL=categoryGetters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categoryGetters.d.ts","sourceRoot":"","sources":["../../src/getters/categoryGetters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"categoryGetters.d.ts","sourceRoot":"","sources":["../../src/getters/categoryGetters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvE;;;;GAIG;AACH,iBAAS,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzC;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAE/C;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,eAAe,GAAG,IAAI,CAEtE;AAED;;;;GAIG;AACH,iBAAS,uBAAuB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAE3D;AAED;;;;GAIG;AACH,iBAAS,uBAAuB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAE3D;AAED;;;;GAIG;AACH,iBAAS,2BAA2B,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAE/D;AAED;;;;GAIG;AACH,iBAAS,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEhD;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEtD;AAED;;;;GAIG;AACH,iBAAS,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEnD;AAED;;;;GAIG;AACH,iBAAS,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEnD;AAED;;;;GAIG;AACH,iBAAS,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEnD;AAED;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEpD;AAED;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAErD;AAED;;;;GAIG;AACH,iBAAS,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAErD;AAED,iBAAS,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,WAAW,EAAE,CAE3D;AAED,iBAAS,kBAAkB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAE5D;AAED,iBAAS,gBAAgB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAE1D;AAED,iBAAS,qBAAqB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAE/D;AAED,iBAAS,uBAAuB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAEjE;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;CAoB3B,CAAC"}
|
|
@@ -1,19 +1,117 @@
|
|
|
1
1
|
import type { CategoryTreeItemDetails, CategoryTreeItem, Breadcrumb } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Builds a filtered and normalised category tree from the raw category list.
|
|
4
|
+
* Only entries with valid details are included; children are processed recursively.
|
|
5
|
+
* @param categories - The flat or nested array of raw category tree items.
|
|
6
|
+
* @returns An array of {@link CategoryTreeItem} objects forming the visible tree.
|
|
7
|
+
*/
|
|
2
8
|
declare function getTree(categories: CategoryTreeItem[]): CategoryTreeItem[];
|
|
9
|
+
/**
|
|
10
|
+
* Returns the numeric ID of a category tree item.
|
|
11
|
+
* @param categoryTreeItem - The category tree item.
|
|
12
|
+
* @returns The category ID.
|
|
13
|
+
*/
|
|
3
14
|
declare function getId(categoryTreeItem: CategoryTreeItem): number;
|
|
15
|
+
/**
|
|
16
|
+
* Returns a normalised tree item for the given category, or `null` if the category has no valid details.
|
|
17
|
+
* Recursively processes children and updates the `childCount` property.
|
|
18
|
+
* @param category - The raw category tree item.
|
|
19
|
+
* @returns The normalised {@link CategoryTreeItem}, or `null` if details are missing.
|
|
20
|
+
*/
|
|
4
21
|
declare function getTreeItem(category: CategoryTreeItem): CategoryTreeItem | null;
|
|
22
|
+
/**
|
|
23
|
+
* Searches the category tree for the first category whose `nameUrl` matches the given slug.
|
|
24
|
+
* Performs a depth-first recursive search through children.
|
|
25
|
+
* @param categories - The array of category tree items to search.
|
|
26
|
+
* @param slug - The URL slug to match against each category's `nameUrl`.
|
|
27
|
+
* @returns The matching {@link CategoryTreeItem}, or `null` if not found.
|
|
28
|
+
*/
|
|
5
29
|
declare function findCategoryBySlug(categories: CategoryTreeItem[], slug: string): CategoryTreeItem | null;
|
|
30
|
+
/**
|
|
31
|
+
* Searches the category tree for a category with the given numeric ID.
|
|
32
|
+
* Performs a depth-first recursive search through children.
|
|
33
|
+
* @param categories - The array of category tree items to search.
|
|
34
|
+
* @param categoryId - The numeric ID of the category to find.
|
|
35
|
+
* @returns The matching {@link CategoryTreeItem}, or `null` if not found.
|
|
36
|
+
*/
|
|
6
37
|
declare function findCategoryById(categories: CategoryTreeItem[], categoryId: number): CategoryTreeItem | null;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the full ancestry path (from root to the target category) for the category with the given ID.
|
|
40
|
+
* Performs a depth-first recursive search and accumulates the path of ancestors.
|
|
41
|
+
* @param categories - The array of category tree items to search.
|
|
42
|
+
* @param id - The numeric ID of the target category.
|
|
43
|
+
* @param path - The accumulated path of ancestors so far (used in recursion).
|
|
44
|
+
* @returns An array of {@link CategoryTreeItem} objects from root to the target, or an empty array if not found.
|
|
45
|
+
*/
|
|
7
46
|
declare function findCategoriesPathByCategoryId(categories: CategoryTreeItem[], id: number, path?: CategoryTreeItem[]): CategoryTreeItem[];
|
|
47
|
+
/**
|
|
48
|
+
* Generates the full URL path for a category node within a tree.
|
|
49
|
+
* Traverses the ancestry path and concatenates each category's slug.
|
|
50
|
+
* @param tree - The full category tree.
|
|
51
|
+
* @param node - The target category tree item.
|
|
52
|
+
* @param startStr - An optional prefix to prepend to the generated path (defaults to `""`).
|
|
53
|
+
* @returns The full URL path string for the category.
|
|
54
|
+
*/
|
|
8
55
|
declare function generateCategoryLink(tree: CategoryTreeItem[], node: CategoryTreeItem, startStr?: string): string;
|
|
56
|
+
/**
|
|
57
|
+
* Finds a category by matching successive URL slugs through nested children.
|
|
58
|
+
* Each element in `slugs` corresponds to a level in the category hierarchy.
|
|
59
|
+
* @param categories - The array of category tree items to search at the current level.
|
|
60
|
+
* @param slugs - An ordered array of URL slugs representing the category path.
|
|
61
|
+
* @returns The matching {@link CategoryTreeItem}, or `undefined` if not found.
|
|
62
|
+
*/
|
|
9
63
|
declare function findCategoryBySlugs(categories: CategoryTreeItem[], slugs: string[]): CategoryTreeItem | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Generates an array of breadcrumb entries from the root to the category with the given ID.
|
|
66
|
+
* Each breadcrumb contains the category name and its full URL link.
|
|
67
|
+
* @param tree - The full category tree.
|
|
68
|
+
* @param categoryId - The numeric ID of the target category.
|
|
69
|
+
* @returns An array of {@link Breadcrumb} objects ordered from root to the target category.
|
|
70
|
+
*/
|
|
10
71
|
declare function generateBreadcrumbFromCategory(tree: CategoryTreeItem[], categoryId: number): Breadcrumb[];
|
|
72
|
+
/**
|
|
73
|
+
* Returns the first details entry of a category tree item.
|
|
74
|
+
* @param details - The array of {@link CategoryTreeItemDetails} objects.
|
|
75
|
+
* @returns The first {@link CategoryTreeItemDetails}, or `null` if the array is empty or not provided.
|
|
76
|
+
*/
|
|
11
77
|
declare function getCategoryDetails(details: CategoryTreeItemDetails[]): CategoryTreeItemDetails | null;
|
|
78
|
+
/**
|
|
79
|
+
* Returns the item count for a category tree item.
|
|
80
|
+
* @param category - The category tree item.
|
|
81
|
+
* @returns The numeric item count, or `0` if not available.
|
|
82
|
+
*/
|
|
12
83
|
declare function getCount(category: CategoryTreeItem): number;
|
|
84
|
+
/**
|
|
85
|
+
* Returns the display name of a category tree item from its first details entry.
|
|
86
|
+
* @param category - The category tree item.
|
|
87
|
+
* @returns The category name string, or an empty string if details are not available.
|
|
88
|
+
*/
|
|
13
89
|
declare function getName(category: CategoryTreeItem): string;
|
|
90
|
+
/**
|
|
91
|
+
* Returns the URL slug (`nameUrl`) of a category tree item from its first details entry.
|
|
92
|
+
* @param category - The category tree item.
|
|
93
|
+
* @returns The slug string, or an empty string if details are not available.
|
|
94
|
+
*/
|
|
14
95
|
declare function getSlug(category: CategoryTreeItem): string;
|
|
96
|
+
/**
|
|
97
|
+
* Returns the child categories of a category tree item.
|
|
98
|
+
* @param category - The category tree item.
|
|
99
|
+
* @returns An array of child {@link CategoryTreeItem} objects, or an empty array if none exist.
|
|
100
|
+
*/
|
|
15
101
|
declare function getItems(category: CategoryTreeItem): CategoryTreeItem[];
|
|
102
|
+
/**
|
|
103
|
+
* Returns the access right of a category tree item (e.g. `"all"`, `"customer"`).
|
|
104
|
+
* @param category - The category tree item.
|
|
105
|
+
* @returns The right string, defaulting to `"all"` if not set.
|
|
106
|
+
*/
|
|
16
107
|
declare function getCategoryRight(category: CategoryTreeItem): string;
|
|
108
|
+
/**
|
|
109
|
+
* Returns an array of breadcrumbs for the given category ID, each with name and prefixed link.
|
|
110
|
+
* @param categories - The full category tree.
|
|
111
|
+
* @param categoryId - The numeric ID of the target category.
|
|
112
|
+
* @param prefix - An optional URL prefix to prepend to each breadcrumb link (defaults to `""`).
|
|
113
|
+
* @returns An array of {@link Breadcrumb} objects ordered from root to the target category.
|
|
114
|
+
*/
|
|
17
115
|
declare function getMappedBreadcrumbs(categories: CategoryTreeItem[], categoryId: number, prefix?: string): Breadcrumb[];
|
|
18
116
|
export declare const categoryTreeGetters: {
|
|
19
117
|
getId: typeof getId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categoryTreeGetters.d.ts","sourceRoot":"","sources":["../../src/getters/categoryTreeGetters.ts"],"names":[],"mappings":"AAAA,OAAO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ED;;;;;;;GAOG;AACH,iBAAS,oBAAoB,CAC3B,IAAI,EAAE,gBAAgB,EAAE,EACxB,IAAI,EAAE,gBAAgB,EACtB,QAAQ,SAAK,GACZ,MAAM,CASR;AAED;;;;;;GAMG;AACH,iBAAS,mBAAmB,CAC1B,UAAU,EAAE,gBAAgB,EAAE,EAC9B,KAAK,EAAE,MAAM,EAAE,GACd,gBAAgB,GAAG,SAAS,CAO9B;AAED;;;;;;GAMG;AACH,iBAAS,8BAA8B,CACrC,IAAI,EAAE,gBAAgB,EAAE,EACxB,UAAU,EAAE,MAAM,GACjB,UAAU,EAAE,CAkBd;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,CACzB,OAAO,EAAE,uBAAuB,EAAE,GACjC,uBAAuB,GAAG,IAAI,CAEhC;AAED;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,CAEpD;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,CAInD;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,CAInD;AAED;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAEhE;AAED;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,CAE5D;AAED;;;;;;GAMG;AACH,iBAAS,oBAAoB,CAC3B,UAAU,EAAE,gBAAgB,EAAE,EAC9B,UAAU,EAAE,MAAM,EAClB,MAAM,GAAE,MAAW,GAClB,UAAU,EAAE,CAWd;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;CAiB/B,CAAC"}
|
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import { CompanyDetails } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the name of the company.
|
|
4
|
+
* @param company - The company details object.
|
|
5
|
+
* @returns The company name string, or an empty string if not set.
|
|
6
|
+
*/
|
|
2
7
|
declare function getName(company: CompanyDetails): string;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the street address of the company.
|
|
10
|
+
* @param company - The company details object.
|
|
11
|
+
* @returns The street string, or an empty string if not set.
|
|
12
|
+
*/
|
|
3
13
|
declare function getStreet(company: CompanyDetails): string;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the city of the company.
|
|
16
|
+
* @param company - The company details object.
|
|
17
|
+
* @returns The city string, or an empty string if not set.
|
|
18
|
+
*/
|
|
4
19
|
declare function getCity(company: CompanyDetails): string;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the email address of the company.
|
|
22
|
+
* @param company - The company details object.
|
|
23
|
+
* @returns The email string, or an empty string if not set.
|
|
24
|
+
*/
|
|
5
25
|
declare function getEmail(company: CompanyDetails): string;
|
|
6
26
|
export declare const companyGetters: {
|
|
7
27
|
getName: typeof getName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companyGetters.d.ts","sourceRoot":"","sources":["../../src/getters/companyGetters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,iBAAS,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAEhD;AAED,iBAAS,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAElD;AAED,iBAAS,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAEhD;AAED,iBAAS,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAEjD;AAED,eAAO,MAAM,cAAc;;;;;CAK1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"companyGetters.d.ts","sourceRoot":"","sources":["../../src/getters/companyGetters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;;GAIG;AACH,iBAAS,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAEhD;AAED;;;;GAIG;AACH,iBAAS,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAElD;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAEhD;AAED;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAEjD;AAED,eAAO,MAAM,cAAc;;;;;CAK1B,CAAC"}
|
|
@@ -16,13 +16,53 @@ export interface CookieGroups {
|
|
|
16
16
|
barDescription: string;
|
|
17
17
|
groups: CookieGroup[];
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns the title shown in the cookie consent bar.
|
|
21
|
+
* @param CookieGroups - The cookie groups configuration object.
|
|
22
|
+
* @returns The bar title string.
|
|
23
|
+
*/
|
|
19
24
|
declare function getBarTitle(CookieGroups: CookieGroups): string;
|
|
25
|
+
/**
|
|
26
|
+
* Returns the description text shown in the cookie consent bar.
|
|
27
|
+
* @param cookieGroups - The cookie groups configuration object.
|
|
28
|
+
* @returns The bar description string.
|
|
29
|
+
*/
|
|
20
30
|
declare function getBarDescription(cookieGroups: CookieGroups): string;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the display name of a cookie group.
|
|
33
|
+
* @param CookieGroup - The cookie group object.
|
|
34
|
+
* @returns The group name string, or an empty string if not set.
|
|
35
|
+
*/
|
|
21
36
|
declare function getCookieGroupName(CookieGroup: CookieGroup): string;
|
|
37
|
+
/**
|
|
38
|
+
* Returns the description of a cookie group.
|
|
39
|
+
* @param CookieGroup - The cookie group object.
|
|
40
|
+
* @returns The group description string, or an empty string if not set.
|
|
41
|
+
*/
|
|
22
42
|
declare function getCookieGroupDescription(CookieGroup: CookieGroup): string;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the display name of a cookie.
|
|
45
|
+
* @param Cookie - The cookie object.
|
|
46
|
+
* @returns The cookie name string, or an empty string if not set.
|
|
47
|
+
*/
|
|
23
48
|
declare function getCookieName(Cookie: Cookie): string;
|
|
49
|
+
/**
|
|
50
|
+
* Returns the display name of a cookie group with its cookie count appended in parentheses.
|
|
51
|
+
* @param CookieGroup - The cookie group object.
|
|
52
|
+
* @returns A string in the format `"<name> (<count>)"`.
|
|
53
|
+
*/
|
|
24
54
|
declare function getCookieGroupNameWithCount(CookieGroup: CookieGroup): string;
|
|
55
|
+
/**
|
|
56
|
+
* Returns the list of cookies belonging to a cookie group.
|
|
57
|
+
* @param CookieGroup - The cookie group object.
|
|
58
|
+
* @returns An array of {@link Cookie} objects.
|
|
59
|
+
*/
|
|
25
60
|
declare function getCookiesList(CookieGroup: CookieGroup): Cookie[];
|
|
61
|
+
/**
|
|
62
|
+
* Returns whether the cookie group's details are currently expanded (show more).
|
|
63
|
+
* @param CookieGroup - The cookie group object.
|
|
64
|
+
* @returns `true` if the group is expanded, otherwise `false`.
|
|
65
|
+
*/
|
|
26
66
|
declare function getShowMore(CookieGroup: CookieGroup): boolean;
|
|
27
67
|
export declare const cookieBarGetters: {
|
|
28
68
|
getBarTitle: typeof getBarTitle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookieBarGetters.d.ts","sourceRoot":"","sources":["../../src/getters/cookieBarGetters.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AACD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,WA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AAS,iBAAiB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAE7D;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAE5D;AAED;;;;GAIG;AACH,iBAAS,yBAAyB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAEnE;AAED;;;;GAIG;AACH,iBAAS,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;;GAIG;AACH,iBAAS,2BAA2B,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAErE;AAED;;;;GAIG;AACH,iBAAS,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,EAAE,CAE1D;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAEtD;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;CAS5B,CAAC"}
|
|
@@ -1,11 +1,53 @@
|
|
|
1
1
|
import { type Country, type State } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the numeric ID of a country as a string.
|
|
4
|
+
* @param country - The country object.
|
|
5
|
+
* @returns The country ID string, or an empty string if not set.
|
|
6
|
+
*/
|
|
2
7
|
declare function getCountryId(country: Country): string;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the display name of a country.
|
|
10
|
+
* @param country - The country object.
|
|
11
|
+
* @returns The country name string, or an empty string if not set.
|
|
12
|
+
*/
|
|
3
13
|
declare function getCountryName(country: Country): string;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the ISO 3166-1 alpha-2 country code.
|
|
16
|
+
* @param country - The country object.
|
|
17
|
+
* @returns The two-letter ISO code string (e.g. `"DE"`), or an empty string if not set.
|
|
18
|
+
*/
|
|
4
19
|
declare function getCountryIsoCode(country: Country): string;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the list of states/regions for a country.
|
|
22
|
+
* @param country - The country object.
|
|
23
|
+
* @returns An array of {@link State} objects, or an empty array if none exist.
|
|
24
|
+
*/
|
|
5
25
|
declare function getStates(country: Country): State[];
|
|
26
|
+
/**
|
|
27
|
+
* Returns the numeric ID of a state as a string.
|
|
28
|
+
* @param state - The state object.
|
|
29
|
+
* @returns The state ID string, or an empty string if not set.
|
|
30
|
+
*/
|
|
6
31
|
declare function getStateId(state: State): string;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the display name of a state.
|
|
34
|
+
* @param state - The state object.
|
|
35
|
+
* @returns The state name string, or an empty string if not set.
|
|
36
|
+
*/
|
|
7
37
|
declare function getStateName(state: State): string;
|
|
38
|
+
/**
|
|
39
|
+
* Finds a country by its numeric ID in a list of countries.
|
|
40
|
+
* @param countries - The array of available countries.
|
|
41
|
+
* @param countryId - The numeric or string ID of the country to find.
|
|
42
|
+
* @returns The matching {@link Country} object, or `null` if not found or the list is empty.
|
|
43
|
+
*/
|
|
8
44
|
declare function getCountryById(countries: Country[], countryId: string): Country | null;
|
|
45
|
+
/**
|
|
46
|
+
* Finds a state by its numeric ID within a country's state list.
|
|
47
|
+
* @param country - The country object containing the state list.
|
|
48
|
+
* @param stateId - The numeric or string ID of the state to find.
|
|
49
|
+
* @returns The matching {@link State} object, or `null` if not found or the country has no states.
|
|
50
|
+
*/
|
|
9
51
|
declare function getStateById(country: Country, stateId: string): State | null;
|
|
10
52
|
export declare const countryGetters: {
|
|
11
53
|
getStates: typeof getStates;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countryGetters.d.ts","sourceRoot":"","sources":["../../src/getters/countryGetters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAEpD,iBAAS,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE9C;AAED,iBAAS,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEhD;AAED,iBAAS,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEnD;
|
|
1
|
+
{"version":3,"file":"countryGetters.d.ts","sourceRoot":"","sources":["../../src/getters/countryGetters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAEpD;;;;GAIG;AACH,iBAAS,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE9C;AAED;;;;GAIG;AACH,iBAAS,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEhD;AAED;;;;GAIG;AACH,iBAAS,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEnD;AAED;;;;GAIG;AACH,iBAAS,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,KAAK,EAAE,CAE5C;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAExC;AAED;;;;GAIG;AACH,iBAAS,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAE1C;AAED;;;;;GAKG;AACH,iBAAS,cAAc,CACrB,SAAS,EAAE,OAAO,EAAE,EACpB,SAAS,EAAE,MAAM,GAChB,OAAO,GAAG,IAAI,CAShB;AAED;;;;;GAKG;AACH,iBAAS,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CASrE;AAED,eAAO,MAAM,cAAc;;;;;;;;;CAS1B,CAAC"}
|
|
@@ -1,17 +1,78 @@
|
|
|
1
1
|
import { FacetSearchResult, AgnosticPagination, AgnosticSort, AgnosticFacet } from './agnostic';
|
|
2
2
|
import type { Category, Facet, FacetSearchCriteria, Product } from '../types';
|
|
3
3
|
import { Filter, FilterGroup } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Not yet implemented — always returns an empty array.
|
|
6
|
+
* @param params - The facet search result (currently unused).
|
|
7
|
+
* @param criteria - Optional search criteria (currently unused).
|
|
8
|
+
* @returns An empty array.
|
|
9
|
+
*/
|
|
4
10
|
declare function getAll(params: FacetSearchResult<Facet>, criteria?: FacetSearchCriteria): AgnosticFacet[];
|
|
11
|
+
/**
|
|
12
|
+
* Returns the category associated with a facet search result.
|
|
13
|
+
* @param params - The facet search result.
|
|
14
|
+
* @returns The {@link Category} object from the search data.
|
|
15
|
+
*/
|
|
5
16
|
declare function getCategory(params: FacetSearchResult<Facet>): Category;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the available sort options for a facet search, with the currently selected option marked.
|
|
19
|
+
* @param params - The facet search result containing the selected sort input.
|
|
20
|
+
* @returns An {@link AgnosticSort} object with an array of sort options and the currently selected option ID.
|
|
21
|
+
*/
|
|
6
22
|
declare function getSortOptions(params: FacetSearchResult<Facet>): AgnosticSort;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the list of products from a facet search result.
|
|
25
|
+
* @param searchData - The facet search result.
|
|
26
|
+
* @returns An array of {@link Product} objects, or an empty array if none exist.
|
|
27
|
+
*/
|
|
7
28
|
declare function getProducts(searchData: FacetSearchResult<Facet>): Product[];
|
|
29
|
+
/**
|
|
30
|
+
* Returns the display name of a filter group.
|
|
31
|
+
* @param filterGroup - The filter group object.
|
|
32
|
+
* @returns The filter group name string, or an empty string if not set.
|
|
33
|
+
*/
|
|
8
34
|
declare function getName(filterGroup: FilterGroup): string;
|
|
35
|
+
/**
|
|
36
|
+
* Returns the type of a filter group (e.g. `"price"`, `"attribute"`, `"availability"`).
|
|
37
|
+
* @param filterGroup - The filter group object.
|
|
38
|
+
* @returns The filter group type string, or an empty string if not set.
|
|
39
|
+
*/
|
|
9
40
|
declare function getType(filterGroup: FilterGroup): string;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the individual filter values within a filter group.
|
|
43
|
+
* @param filterGroup - The filter group object.
|
|
44
|
+
* @returns An array of {@link Filter} objects, or an empty array if none exist.
|
|
45
|
+
*/
|
|
10
46
|
declare function getFilters(filterGroup: FilterGroup): Filter[];
|
|
47
|
+
/**
|
|
48
|
+
* Returns whether the given filter group list contains at least one group.
|
|
49
|
+
* @param filterGroup - The array of filter group objects.
|
|
50
|
+
* @returns `true` if there is at least one filter group, otherwise `false`.
|
|
51
|
+
*/
|
|
11
52
|
declare function hasFilters(filterGroup: FilterGroup[]): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the CSS class associated with a filter value.
|
|
55
|
+
* @param filter - The filter object.
|
|
56
|
+
* @returns The CSS class string, or an empty string if not set.
|
|
57
|
+
*/
|
|
12
58
|
declare function getCssClass(filter: Filter): string;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the display name of a filter value.
|
|
61
|
+
* @param filter - The filter object.
|
|
62
|
+
* @returns The filter name string, or an empty string if not set.
|
|
63
|
+
*/
|
|
13
64
|
declare function getFilterName(filter: Filter): string;
|
|
65
|
+
/**
|
|
66
|
+
* Returns the item count associated with a filter value.
|
|
67
|
+
* @param filter - The filter object.
|
|
68
|
+
* @returns The item count, or `0` if not set.
|
|
69
|
+
*/
|
|
14
70
|
declare function getFilterCount(filter: Filter): number;
|
|
71
|
+
/**
|
|
72
|
+
* Returns the pagination data for a facet search result.
|
|
73
|
+
* @param params - The facet search result containing pagination and input data.
|
|
74
|
+
* @returns An {@link AgnosticPagination} object with current page, total pages, total items, items per page, and page options.
|
|
75
|
+
*/
|
|
15
76
|
declare function getPagination(params: FacetSearchResult<Facet>): AgnosticPagination;
|
|
16
77
|
export declare const facetGetters: {
|
|
17
78
|
getAll: typeof getAll;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facetGetters.d.ts","sourceRoot":"","sources":["../../src/getters/facetGetters.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,W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AE,iBAAiB,CAAC,KAAK,CAAC,EAEhC,QAAQ,CAAC,EAAE,mBAAmB,GAC7B,aAAa,EAAE,CAEjB;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,QAAQ,CAE/D;AAED;;;;GAIG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,YAAY,CA2BtE;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,UAAU,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,OAAO,EAAE,CAEpE;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAEjD;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAEjD;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,EAAE,CAEtD;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,WAAW,EAAE,WAAW,EAAE,GAAG,OAAO,CAEvD;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;;;GAIG;AACH,iBAAS,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;;GAIG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE9C;AAgBD;;;;GAIG;AACH,iBAAS,aAAa,CAAC,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,kBAAkB,CAa3E;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAaxB,CAAC"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import type { PasswordResetResult } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Not yet implemented — always returns an empty string.
|
|
4
|
+
* @param result - The password reset result (currently unused).
|
|
5
|
+
* @returns An empty string.
|
|
6
|
+
*/
|
|
2
7
|
declare function getResetPasswordToken(result: PasswordResetResult): string;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Not yet implemented — always returns `true`.
|
|
10
|
+
* @param result - The password reset result (currently unused).
|
|
11
|
+
* @returns Always `true`.
|
|
12
|
+
*/
|
|
3
13
|
declare function isPasswordChanged(result: PasswordResetResult): boolean;
|
|
4
14
|
export declare const forgotPasswordGetters: {
|
|
5
15
|
getResetPasswordToken: typeof getResetPasswordToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forgotPasswordGetters.d.ts","sourceRoot":"","sources":["../../src/getters/forgotPasswordGetters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"forgotPasswordGetters.d.ts","sourceRoot":"","sources":["../../src/getters/forgotPasswordGetters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD;;;;GAIG;AAEH,iBAAS,qBAAqB,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAElE;AAED;;;;GAIG;AAEH,iBAAS,iBAAiB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAE/D;AAED,eAAO,MAAM,qBAAqB;;;CAGjC,CAAC"}
|
|
@@ -5,10 +5,35 @@ export type Hero = {
|
|
|
5
5
|
image: string;
|
|
6
6
|
className: string;
|
|
7
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* Returns the title of a hero banner.
|
|
10
|
+
* @param banner - The hero banner object.
|
|
11
|
+
* @returns The title string, or an empty string if not set.
|
|
12
|
+
*/
|
|
8
13
|
declare function getTitle(banner: Hero): string;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the subtitle of a hero banner.
|
|
16
|
+
* @param banner - The hero banner object.
|
|
17
|
+
* @returns The subtitle string, or an empty string if not set.
|
|
18
|
+
*/
|
|
9
19
|
declare function getSubTitle(banner: Hero): string;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the background value of a hero banner (e.g. a color or image URL).
|
|
22
|
+
* @param banner - The hero banner object.
|
|
23
|
+
* @returns The background string, or an empty string if not set.
|
|
24
|
+
*/
|
|
10
25
|
declare function getBackground(banner: Hero): string;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the image URL of a hero banner.
|
|
28
|
+
* @param banner - The hero banner object.
|
|
29
|
+
* @returns The image URL string, or an empty string if not set.
|
|
30
|
+
*/
|
|
11
31
|
declare function getImage(banner: Hero): string;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the CSS class name applied to a hero banner.
|
|
34
|
+
* @param banner - The hero banner object.
|
|
35
|
+
* @returns The CSS class name string, or an empty string if not set.
|
|
36
|
+
*/
|
|
12
37
|
declare function getClassName(banner: Hero): string;
|
|
13
38
|
export declare const heroesGetters: {
|
|
14
39
|
getTitle: typeof getTitle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heroesGetters.d.ts","sourceRoot":"","sources":["../../src/getters/heroesGetters.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,iBAAS,QAAQ,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,CAEtC;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,CAEzC;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,CAE3C;AAED,iBAAS,QAAQ,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,CAEtC;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,CAE1C;AAED,eAAO,MAAM,aAAa;;;;;;CAMzB,CAAC"}
|
|
1
|
+
{"version":3,"file":"heroesGetters.d.ts","sourceRoot":"","sources":["../../src/getters/heroesGetters.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,CAEtC;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,CAEzC;AAED;;;;GAIG;AACH,iBAAS,aAAa,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,CAE3C;AAED;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,CAEtC;AAED;;;;GAIG;AACH,iBAAS,YAAY,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,CAE1C;AAED,eAAO,MAAM,aAAa;;;;;;CAMzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemSearchAutocompleteGetters.d.ts","sourceRoot":"","sources":["../../src/getters/itemSearchAutocompleteGetters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"itemSearchAutocompleteGetters.d.ts","sourceRoot":"","sources":["../../src/getters/itemSearchAutocompleteGetters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AA6DvD,eAAO,MAAM,6BAA6B;qBAtDlB,0BAA0B,KAAG,MAAM;8BAS1B,0BAA0B,KAAG,MAAM;4BASrC,0BAA0B,KAAG,MAAM,GAAG,IAAI;qCASjC,0BAA0B,KAAG,MAAM;+BAUzC,0BAA0B,KAAG,OAAO;CAuBrE,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the HTML content of a legal text type, falling back to the plain text if no HTML is available.
|
|
3
|
+
* @param type - An object containing `htmlText` and `plainText` properties.
|
|
4
|
+
* @returns The HTML string if non-empty, otherwise the plain text string, or an empty string if neither is set.
|
|
5
|
+
*/
|
|
1
6
|
declare function getHtml(type: {
|
|
2
7
|
htmlText: string;
|
|
3
8
|
plainText: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legalGetters.d.ts","sourceRoot":"","sources":["../../src/getters/legalGetters.ts"],"names":[],"mappings":"AAAA,iBAAS,OAAO,CAAC,IAAI,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAEtE;AACD,eAAO,MAAM,YAAY;;CAExB,CAAC"}
|
|
1
|
+
{"version":3,"file":"legalGetters.d.ts","sourceRoot":"","sources":["../../src/getters/legalGetters.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,iBAAS,OAAO,CAAC,IAAI,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAEtE;AACD,eAAO,MAAM,YAAY;;CAExB,CAAC"}
|
|
@@ -2,7 +2,17 @@ export interface Locale {
|
|
|
2
2
|
code: string;
|
|
3
3
|
label: string;
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* Returns the BCP 47 language code of a locale.
|
|
7
|
+
* @param locale - The locale object.
|
|
8
|
+
* @returns The locale code string (e.g. `"en"`, `"de"`), defaulting to `"en"` if not set.
|
|
9
|
+
*/
|
|
5
10
|
declare function getCode(locale: Locale): string;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the human-readable label of a locale.
|
|
13
|
+
* @param locale - The locale object.
|
|
14
|
+
* @returns The locale label string (e.g. `"English"`, `"Deutsch"`), defaulting to `"en"` if not set.
|
|
15
|
+
*/
|
|
6
16
|
declare function getLabel(locale: Locale): string;
|
|
7
17
|
export declare const localesGetters: {
|
|
8
18
|
getCode: typeof getCode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localesGetters.d.ts","sourceRoot":"","sources":["../../src/getters/localesGetters.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,iBAAS,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvC;
|
|
1
|
+
{"version":3,"file":"localesGetters.d.ts","sourceRoot":"","sources":["../../src/getters/localesGetters.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvC;AAED;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAExC;AAED,eAAO,MAAM,cAAc;;;CAG1B,CAAC"}
|