@plentymarkets/shop-api 0.168.1 → 0.170.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/api/__tests__/unit/doAddShopLogs.unit.spec.d.ts +2 -0
- package/lib/api/__tests__/unit/doAddShopLogs.unit.spec.d.ts.map +1 -0
- package/lib/api/doAddShopLogs/index.d.ts +36 -0
- package/lib/api/doAddShopLogs/index.d.ts.map +1 -0
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.d.ts.map +1 -1
- 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 +3381 -21
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.es.js +3381 -22
- 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/lib/types/api/index.d.ts +1 -0
- package/lib/types/api/index.d.ts.map +1 -1
- package/lib/types/api/logs.d.ts +12 -0
- package/lib/types/api/logs.d.ts.map +1 -0
- package/package.json +3 -3
- package/server/api/__tests__/unit/doAddShopLogs.unit.spec.d.ts +2 -0
- package/server/api/__tests__/unit/doAddShopLogs.unit.spec.d.ts.map +1 -0
- package/server/api/doAddShopLogs/index.d.ts +36 -0
- package/server/api/doAddShopLogs/index.d.ts.map +1 -0
- package/server/api/index.d.ts +1 -0
- package/server/api/index.d.ts.map +1 -1
- 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/index.js +39 -0
- package/server/index.js.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
- package/server/types/api/index.d.ts +1 -0
- package/server/types/api/index.d.ts.map +1 -1
- package/server/types/api/logs.d.ts +12 -0
- package/server/types/api/logs.d.ts.map +1 -0
|
@@ -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;IA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CAAC;IACvB,MAAM,EAAE,WAAW,EAAE,CAAC;CACvB;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAEvD;AAED;;;;GAIG;AACH,iBAAS,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,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
|
@@ -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"}
|
|
@@ -1,27 +1,147 @@
|
|
|
1
1
|
import { Manufacturer, ProducingCountry } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the logo URL of the manufacturer.
|
|
4
|
+
* @param manufacturer - The manufacturer object.
|
|
5
|
+
* @returns The logo URL string, or an empty string if not set.
|
|
6
|
+
*/
|
|
2
7
|
declare function getManufacturerLogo(manufacturer: Manufacturer): string;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the internal name of the manufacturer.
|
|
10
|
+
* @param manufacturer - The manufacturer object.
|
|
11
|
+
* @returns The name string, or an empty string if not set.
|
|
12
|
+
*/
|
|
3
13
|
declare function getManufacturerName(manufacturer: Manufacturer): string;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the external name of the manufacturer.
|
|
16
|
+
* @param manufacturer - The manufacturer object.
|
|
17
|
+
* @returns The external name string, or an empty string if not set.
|
|
18
|
+
*/
|
|
4
19
|
declare function getManufacturerExternalName(manufacturer: Manufacturer): string;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the alternative external name of the manufacturer.
|
|
22
|
+
* @param manufacturer - The manufacturer object.
|
|
23
|
+
* @returns The `nameExternal` string, or an empty string if not set.
|
|
24
|
+
*/
|
|
5
25
|
declare function getManufacturerNameExternal(manufacturer: Manufacturer): string;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the legal (registered) name of the manufacturer.
|
|
28
|
+
* @param manufacturer - The manufacturer object.
|
|
29
|
+
* @returns The legal name string, or an empty string if not set.
|
|
30
|
+
*/
|
|
6
31
|
declare function getManufacturerLegalName(manufacturer: Manufacturer): string;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the contact page URL of the manufacturer.
|
|
34
|
+
* @param manufacturer - The manufacturer object.
|
|
35
|
+
* @returns The contact URL string, or an empty string if not set.
|
|
36
|
+
*/
|
|
7
37
|
declare function getManufacturerContactUrl(manufacturer: Manufacturer): string;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the street address of the manufacturer.
|
|
40
|
+
* @param manufacturer - The manufacturer object.
|
|
41
|
+
* @returns The street name string, or an empty string if not set.
|
|
42
|
+
*/
|
|
8
43
|
declare function getManufacturerStreet(manufacturer: Manufacturer): string;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the house number of the manufacturer's address.
|
|
46
|
+
* @param manufacturer - The manufacturer object.
|
|
47
|
+
* @returns The house number string, or an empty string if not set.
|
|
48
|
+
*/
|
|
9
49
|
declare function getManufacturerHouseNo(manufacturer: Manufacturer): string;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the postal code of the manufacturer's address.
|
|
52
|
+
* @param manufacturer - The manufacturer object.
|
|
53
|
+
* @returns The postcode string, or an empty string if not set.
|
|
54
|
+
*/
|
|
10
55
|
declare function getManufacturerPostCode(manufacturer: Manufacturer): string;
|
|
56
|
+
/**
|
|
57
|
+
* Returns the town/city of the manufacturer's address.
|
|
58
|
+
* @param manufacturer - The manufacturer object.
|
|
59
|
+
* @returns The town string, or an empty string if not set.
|
|
60
|
+
*/
|
|
11
61
|
declare function getManufacturerTown(manufacturer: Manufacturer): string;
|
|
62
|
+
/**
|
|
63
|
+
* Returns the producing country of the manufacturer.
|
|
64
|
+
* @param manufacturer - The manufacturer object.
|
|
65
|
+
* @returns The {@link ProducingCountry} object, or an empty object cast to `ProducingCountry` if not set.
|
|
66
|
+
*/
|
|
12
67
|
declare function getManufacturerCountry(manufacturer: Manufacturer): ProducingCountry;
|
|
68
|
+
/**
|
|
69
|
+
* Returns the email address of the manufacturer.
|
|
70
|
+
* @param manufacturer - The manufacturer object.
|
|
71
|
+
* @returns The email string, or an empty string if not set.
|
|
72
|
+
*/
|
|
13
73
|
declare function getManufacturerEmail(manufacturer: Manufacturer): string;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the phone number of the manufacturer.
|
|
76
|
+
* @param manufacturer - The manufacturer object.
|
|
77
|
+
* @returns The phone number string, or an empty string if not set.
|
|
78
|
+
*/
|
|
14
79
|
declare function getManufacturerPhoneNumber(manufacturer: Manufacturer): string;
|
|
80
|
+
/**
|
|
81
|
+
* Returns the fax number of the manufacturer.
|
|
82
|
+
* @param manufacturer - The manufacturer object.
|
|
83
|
+
* @returns The fax number string, or an empty string if not set.
|
|
84
|
+
*/
|
|
15
85
|
declare function getManufacturerFaxNumber(manufacturer: Manufacturer): string;
|
|
86
|
+
/**
|
|
87
|
+
* Returns the website URL of the manufacturer.
|
|
88
|
+
* @param manufacturer - The manufacturer object.
|
|
89
|
+
* @returns The URL string, or an empty string if not set.
|
|
90
|
+
*/
|
|
16
91
|
declare function getManufacturerUrl(manufacturer: Manufacturer): string;
|
|
92
|
+
/**
|
|
93
|
+
* Returns the name of the responsible person (EU representative) for the manufacturer.
|
|
94
|
+
* @param manufacturer - The manufacturer object.
|
|
95
|
+
* @returns The responsible person's name string, or an empty string if not set.
|
|
96
|
+
*/
|
|
17
97
|
declare function getManufacturerResponsibleName(manufacturer: Manufacturer): string;
|
|
98
|
+
/**
|
|
99
|
+
* Returns the street address of the responsible person for the manufacturer.
|
|
100
|
+
* @param manufacturer - The manufacturer object.
|
|
101
|
+
* @returns The street string, or an empty string if not set.
|
|
102
|
+
*/
|
|
18
103
|
declare function getManufacturerResponsibleStreet(manufacturer: Manufacturer): string;
|
|
104
|
+
/**
|
|
105
|
+
* Returns the house number of the responsible person's address for the manufacturer.
|
|
106
|
+
* @param manufacturer - The manufacturer object.
|
|
107
|
+
* @returns The house number string, or an empty string if not set.
|
|
108
|
+
*/
|
|
19
109
|
declare function getManufacturerResponsibleHouseNo(manufacturer: Manufacturer): string;
|
|
110
|
+
/**
|
|
111
|
+
* Returns the postal code of the responsible person's address for the manufacturer.
|
|
112
|
+
* @param manufacturer - The manufacturer object.
|
|
113
|
+
* @returns The postcode string, or an empty string if not set.
|
|
114
|
+
*/
|
|
20
115
|
declare function getManufacturerResponsiblePostCode(manufacturer: Manufacturer): string;
|
|
116
|
+
/**
|
|
117
|
+
* Returns the town/city of the responsible person's address for the manufacturer.
|
|
118
|
+
* @param manufacturer - The manufacturer object.
|
|
119
|
+
* @returns The town string, or an empty string if not set.
|
|
120
|
+
*/
|
|
21
121
|
declare function getManufacturerResponsibleTown(manufacturer: Manufacturer): string;
|
|
122
|
+
/**
|
|
123
|
+
* Returns the country of the responsible person for the manufacturer.
|
|
124
|
+
* @param manufacturer - The manufacturer object.
|
|
125
|
+
* @returns The {@link ProducingCountry} object, or an empty object cast to `ProducingCountry` if not set.
|
|
126
|
+
*/
|
|
22
127
|
declare function getManufacturerResponsibleCountry(manufacturer: Manufacturer): ProducingCountry;
|
|
128
|
+
/**
|
|
129
|
+
* Returns the email address of the responsible person for the manufacturer.
|
|
130
|
+
* @param manufacturer - The manufacturer object.
|
|
131
|
+
* @returns The email string, or an empty string if not set.
|
|
132
|
+
*/
|
|
23
133
|
declare function getManufacturerResponsibleEmail(manufacturer: Manufacturer): string;
|
|
134
|
+
/**
|
|
135
|
+
* Returns the phone number of the responsible person for the manufacturer.
|
|
136
|
+
* @param manufacturer - The manufacturer object.
|
|
137
|
+
* @returns The phone number string, or an empty string if not set.
|
|
138
|
+
*/
|
|
24
139
|
declare function getManufacturerResponsiblePhoneNo(manufacturer: Manufacturer): string;
|
|
140
|
+
/**
|
|
141
|
+
* Returns the contact URL of the responsible person for the manufacturer.
|
|
142
|
+
* @param manufacturer - The manufacturer object.
|
|
143
|
+
* @returns The contact URL string, or an empty string if not set.
|
|
144
|
+
*/
|
|
25
145
|
declare function getManufacturerResponsibleContactUrl(manufacturer: Manufacturer): string;
|
|
26
146
|
export declare const manufacturerGetters: {
|
|
27
147
|
getManufacturerLogo: typeof getManufacturerLogo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manufacturerGetters.d.ts","sourceRoot":"","sources":["../../src/getters/manufacturerGetters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE1D,iBAAS,mBAAmB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAE/D;AAED,iBAAS,mBAAmB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAE/D;AAED,iBAAS,2BAA2B,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAEvE;AAED,iBAAS,2BAA2B,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAEvE;AAED,iBAAS,wBAAwB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAEpE;AAED,iBAAS,yBAAyB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAErE;A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AEpE;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAE9D;AAED;;;;GAIG;AACH,iBAAS,8BAA8B,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAE1E;AAED;;;;GAIG;AACH,iBAAS,gCAAgC,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAE5E;AAED;;;;GAIG;AACH,iBAAS,iCAAiC,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAE7E;AAED;;;;GAIG;AACH,iBAAS,kCAAkC,CACzC,YAAY,EAAE,YAAY,GACzB,MAAM,CAER;AAED;;;;GAIG;AACH,iBAAS,8BAA8B,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAE1E;AAED;;;;GAIG;AACH,iBAAS,iCAAiC,CACxC,YAAY,EAAE,YAAY,GACzB,gBAAgB,CAElB;AAED;;;;GAIG;AACH,iBAAS,+BAA+B,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAE3E;AAED;;;;GAIG;AACH,iBAAS,iCAAiC,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAE7E;AAED;;;;GAIG;AACH,iBAAS,oCAAoC,CAC3C,YAAY,EAAE,YAAY,GACzB,MAAM,CAER;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;CAyB/B,CAAC"}
|
|
@@ -1,18 +1,96 @@
|
|
|
1
1
|
import { Offer, OrderItem, Product, type Address } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the mapped shipping address from the offer, or `null` if not set.
|
|
4
|
+
* @param offer - The offer object.
|
|
5
|
+
* @returns The shipping {@link Address}, or `null` if delivery address data is not available.
|
|
6
|
+
*/
|
|
2
7
|
declare function getShippingAddress(offer: Offer): Address | null;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the mapped billing address from the offer, or `null` if not set.
|
|
10
|
+
* @param offer - The offer object.
|
|
11
|
+
* @returns The billing {@link Address}, or `null` if billing address data is not available.
|
|
12
|
+
*/
|
|
3
13
|
declare function getBillingAddress(offer: Offer): Address | null;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the display name of the payment method used in the offer.
|
|
16
|
+
* @param offer - The offer object.
|
|
17
|
+
* @returns The payment method name string.
|
|
18
|
+
*/
|
|
4
19
|
declare function getPaymentMethodName(offer: Offer): string;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the icon path/URL for the payment method used in the offer.
|
|
22
|
+
* @param offer - The offer object.
|
|
23
|
+
* @returns The payment method icon path string.
|
|
24
|
+
*/
|
|
5
25
|
declare function getPaymentMethodIconPath(offer: Offer): string;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the combined shipping method name in `"<profileName> - <providerName>"` format.
|
|
28
|
+
* @param offer - The offer object.
|
|
29
|
+
* @returns The combined shipping method name, or an empty string if either part is missing.
|
|
30
|
+
*/
|
|
6
31
|
declare function getShippingMethodName(offer: Offer): string;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the gross shipping costs for the offer.
|
|
34
|
+
* @param offer - The offer object.
|
|
35
|
+
* @returns The shipping gross amount as a number.
|
|
36
|
+
*/
|
|
7
37
|
declare function getShippingMethodCosts(offer: Offer): number;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the number of order items in the offer, excluding one reserved/administrative item.
|
|
40
|
+
* @param offer - The offer object.
|
|
41
|
+
* @returns The item count (at least `0`).
|
|
42
|
+
*/
|
|
8
43
|
declare function getOfferItemsCount(offer: Offer): number;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the original gross unit price of an offer item.
|
|
46
|
+
* @param offerItem - The offer order item.
|
|
47
|
+
* @returns The gross price as a number.
|
|
48
|
+
*/
|
|
9
49
|
declare function getOfferItemOriginalPrice(offerItem: OrderItem): number;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the display name (`name1`) of the product variation in an offer item.
|
|
52
|
+
* @param variation - The product variation object.
|
|
53
|
+
* @returns The variation name string, or an empty string if not set.
|
|
54
|
+
*/
|
|
10
55
|
declare function getOfferItemVariationName(variation: Product): string;
|
|
56
|
+
/**
|
|
57
|
+
* Returns whether the offer is of type "offer" (type ID `7`).
|
|
58
|
+
* @param offer - The offer object.
|
|
59
|
+
* @returns `true` if the order type ID is `7`, otherwise `false`.
|
|
60
|
+
*/
|
|
11
61
|
declare function isTypeOffer(offer: Offer): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Returns the quantity of an offer item.
|
|
64
|
+
* @param item - The offer order item.
|
|
65
|
+
* @returns The item quantity.
|
|
66
|
+
*/
|
|
12
67
|
declare function getOfferItemQty(item: OrderItem): number;
|
|
68
|
+
/**
|
|
69
|
+
* Returns the total quantity of items in the offer (excluding the last administrative item).
|
|
70
|
+
* Returns `0` if the offer has fewer than two items.
|
|
71
|
+
* @param items - The array of offer order items.
|
|
72
|
+
* @returns The summed quantity of all items except the last one.
|
|
73
|
+
*/
|
|
13
74
|
declare function getItemsCountInOffer(items: OrderItem[]): number;
|
|
75
|
+
/**
|
|
76
|
+
* Returns the gross line total (unit price × quantity) for an offer item.
|
|
77
|
+
* @param item - The offer order item.
|
|
78
|
+
* @returns The line total as a number.
|
|
79
|
+
*/
|
|
14
80
|
declare function getOfferItemOriginalPriceWithQuantity(item: OrderItem): number;
|
|
81
|
+
/**
|
|
82
|
+
* Returns the email address from the offer's billing address, validated before returning.
|
|
83
|
+
* @param offer - The offer object.
|
|
84
|
+
* @returns A valid email address string, or an empty string if the email is invalid or not set.
|
|
85
|
+
*/
|
|
15
86
|
declare function getOfferEmail(offer: Offer): string;
|
|
87
|
+
/**
|
|
88
|
+
* Returns the "valid until" date of the offer formatted as a localised date string.
|
|
89
|
+
* Uses the date with type ID `20` from the order dates.
|
|
90
|
+
* @param offer - The offer object.
|
|
91
|
+
* @param locale - The BCP 47 locale string to use for date formatting (defaults to `"en"`).
|
|
92
|
+
* @returns The formatted date string, or `null` if the valid-until date is not set.
|
|
93
|
+
*/
|
|
16
94
|
declare function getValidUntil(offer: Offer, locale?: string): string | null;
|
|
17
95
|
export declare const offerGetters: {
|
|
18
96
|
getShippingAddress: typeof getShippingAddress;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offerGetters.d.ts","sourceRoot":"","sources":["../../src/getters/offerGetters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,UAAU,CAAC;AAGnE,iBAAS,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,GAAG,IAAI,CAIxD;AAED,iBAAS,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,GAAG,IAAI,CAIvD;AAED,iBAAS,oBAAoB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAElD;AAED,iBAAS,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEtD;AAED,iBAAS,qBAAqB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAInD;AAED,iBAAS,sBAAsB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEpD;AAED,iBAAS,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAIhD;AAED,iBAAS,yBAAyB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAE/D;AAED,iBAAS,yBAAyB,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAE7D;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAE1C;AAED,iBAAS,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAEhD;AAED,iBAAS,oBAAoB,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,MAAM,CAMxD;AAED,iBAAS,qCAAqC,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAEtE;AAED,iBAAS,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAI3C;AAED,iBAAS,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE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AAG,MAAM,CAMxD;AAED;;;;GAIG;AACH,iBAAS,qCAAqC,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAEtE;AAED;;;;GAIG;AACH,iBAAS,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAI3C;AAED;;;;;;GAMG;AACH,iBAAS,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,GAAE,MAAa,GAAG,MAAM,GAAG,IAAI,CAQzE;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;CAgBxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orderConfirmationGetters.d.ts","sourceRoot":"","sources":["../../src/getters/orderConfirmationGetters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"orderConfirmationGetters.d.ts","sourceRoot":"","sources":["../../src/getters/orderConfirmationGetters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAqBlC,eAAO,MAAM,wBAAwB;wCAbM,KAAK,KAAG,OAAO;yBAS9B,KAAK,KAAG,OAAO;CAO1C,CAAC"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import type { OrderDocument } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the type of an order document (e.g. `"invoice"`, `"delivery_note"`).
|
|
4
|
+
* @param document - The order document object.
|
|
5
|
+
* @returns The document type string, or an empty string if not set.
|
|
6
|
+
*/
|
|
2
7
|
declare function getType(document: OrderDocument): string;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the document number with its type prefix (e.g. `"INV-12345"`).
|
|
10
|
+
* @param document - The order document object.
|
|
11
|
+
* @returns The number-with-prefix string, or an empty string if not set.
|
|
12
|
+
*/
|
|
3
13
|
declare function getNumberWithPrefix(document: OrderDocument): string;
|
|
4
14
|
export declare const orderDocumentGetters: {
|
|
5
15
|
getType: typeof getType;
|