@haus-storefront-react/vendure-plugin-configs 0.0.33 → 0.0.35
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/CHANGELOG.md +16 -0
- package/badge.js +13 -13
- package/badge.mjs +841 -792
- package/lib/configs/vendure-badge-plugin.d.ts +14 -0
- package/lib/configs/vendure-campaign-plugin.d.ts +15 -0
- package/lib/configs/vendure-elastic-search-plugin.d.ts +30 -0
- package/lib/configs/vendure-packagesize-plugin.d.ts +13 -0
- package/lib/configs/vendure-product-popularity-plugin.d.ts +11 -0
- package/package.json +4 -10
- package/lib/configs/vendure-badge-plugin.augmentation.d.ts +0 -15
- package/lib/configs/vendure-campaign-plugin.augmentation.d.ts +0 -16
- package/lib/configs/vendure-elastic-search-plugin.augmentation.d.ts +0 -31
- package/lib/configs/vendure-packagesize-plugin.augmentation.d.ts +0 -14
- package/lib/configs/vendure-product-popularity-plugin.augmentation.d.ts +0 -12
- package/lib/exports/augmentations.d.ts +0 -5
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import { Asset, Collection } from '@haus-storefront-react/shared-types';
|
|
2
2
|
import { VendurePluginConfig } from '../plugin-config';
|
|
3
3
|
import { BadgeFeatures, BadgePluginRequests, BadgePluginSettings } from './vendure-badge-plugin.types';
|
|
4
|
+
declare module '@haus-storefront-react/shared-types' {
|
|
5
|
+
interface Product {
|
|
6
|
+
badges?: Maybe<Array<Badge>>;
|
|
7
|
+
}
|
|
8
|
+
interface SearchResult {
|
|
9
|
+
badges?: Maybe<Array<Badge>>;
|
|
10
|
+
}
|
|
11
|
+
interface ProductVariant {
|
|
12
|
+
badges?: Maybe<Array<Badge>>;
|
|
13
|
+
}
|
|
14
|
+
interface PluginFeatureMappings {
|
|
15
|
+
showBadges: BadgeFeatures['showBadges'];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
4
18
|
export declare const VendureBadgePlugin: VendurePluginConfig<BadgeFeatures, BadgePluginRequests, BadgePluginSettings, import('@haus-storefront-react/shared-types').IGraphQLSDK>;
|
|
5
19
|
export type Badge = {
|
|
6
20
|
id: string;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import { VendurePluginConfig } from '../plugin-config';
|
|
2
2
|
import { CampaignFeatures } from './vendure-campaign-plugin.types';
|
|
3
3
|
import { PriceRange, SinglePrice } from '@haus-storefront-react/shared-types';
|
|
4
|
+
declare module '@haus-storefront-react/shared-types' {
|
|
5
|
+
interface Product {
|
|
6
|
+
ordinaryPrice?: Price;
|
|
7
|
+
}
|
|
8
|
+
interface ProductVariant {
|
|
9
|
+
ordinaryPrice?: Price;
|
|
10
|
+
}
|
|
11
|
+
interface SearchResult {
|
|
12
|
+
ordinaryPrice?: Price;
|
|
13
|
+
}
|
|
14
|
+
interface PluginFeatureMappings {
|
|
15
|
+
showCampaignPrices: CampaignFeatures['showCampaignPrices'];
|
|
16
|
+
ordinaryPrice: CampaignFeatures['ordinaryPrice'];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
4
19
|
export declare const VendureCampaignPlugin: VendurePluginConfig<CampaignFeatures, Record<string, (...args: any[]) => any>, {
|
|
5
20
|
[x: string]: any;
|
|
6
21
|
}, import('@haus-storefront-react/shared-types').IGraphQLSDK>;
|
|
@@ -1,4 +1,34 @@
|
|
|
1
1
|
import { VendurePluginConfig } from '../plugin-config';
|
|
2
|
+
declare module '@haus-storefront-react/shared-types' {
|
|
3
|
+
interface SearchResult {
|
|
4
|
+
prices: SearchResponsePriceData;
|
|
5
|
+
}
|
|
6
|
+
interface SearchInput {
|
|
7
|
+
priceRange?: Maybe<PriceRangeInput>;
|
|
8
|
+
priceRangeWithTax?: Maybe<PriceRangeInput>;
|
|
9
|
+
inStock?: Maybe<boolean>;
|
|
10
|
+
}
|
|
11
|
+
interface FilterInputs {
|
|
12
|
+
priceRange?: PriceRangeInput;
|
|
13
|
+
priceRangeWithTax?: PriceRangeInput;
|
|
14
|
+
}
|
|
15
|
+
interface SearchResponsePriceData {
|
|
16
|
+
range: PriceRange;
|
|
17
|
+
rangeWithTax: PriceRange;
|
|
18
|
+
}
|
|
19
|
+
interface SearchInputProps {
|
|
20
|
+
priceRange?: PriceRangeInput;
|
|
21
|
+
priceRangeWithTax?: PriceRangeInput;
|
|
22
|
+
}
|
|
23
|
+
interface PriceRangeBucket {
|
|
24
|
+
to: number;
|
|
25
|
+
count: number;
|
|
26
|
+
}
|
|
27
|
+
type PriceRangeInput = {
|
|
28
|
+
max: number;
|
|
29
|
+
min: number;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
2
32
|
export declare const VendureElasticSearchPlugin: VendurePluginConfig<Partial<{
|
|
3
33
|
showBadges: (props: {
|
|
4
34
|
product?: import('@haus-storefront-react/shared-types').Product | import('@haus-storefront-react/shared-types').SearchResult;
|
|
@@ -18,6 +18,19 @@ import { PackageSizeFeatures } from './vendure-packagesize-plugin.types';
|
|
|
18
18
|
* queryUpdates: {},
|
|
19
19
|
* });
|
|
20
20
|
*/
|
|
21
|
+
declare module '@haus-storefront-react/shared-types' {
|
|
22
|
+
interface ProductVariant {
|
|
23
|
+
packageSize?: number;
|
|
24
|
+
}
|
|
25
|
+
interface SearchResult {
|
|
26
|
+
packageSize?: number;
|
|
27
|
+
}
|
|
28
|
+
interface PluginFeatureMappings {
|
|
29
|
+
changeQuantityByPackageSize: PackageSizeFeatures['changeQuantityByPackageSize'];
|
|
30
|
+
showPackageSize: PackageSizeFeatures['showPackageSize'];
|
|
31
|
+
showCostPerPackage: PackageSizeFeatures['showCostPerPackage'];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
21
34
|
export declare const VendurePackageSizePlugin: VendurePluginConfig<PackageSizeFeatures, Record<string, (...args: any[]) => any>, {
|
|
22
35
|
[x: string]: any;
|
|
23
36
|
}, import('@haus-storefront-react/shared-types').IGraphQLSDK>;
|
|
@@ -27,6 +27,17 @@ import { ProductPopularityFeatures } from './vendure-product-popularity-plugin.t
|
|
|
27
27
|
* queryUpdates: {},
|
|
28
28
|
* });
|
|
29
29
|
*/
|
|
30
|
+
declare module '@haus-storefront-react/shared-types' {
|
|
31
|
+
interface Product {
|
|
32
|
+
popularity?: number;
|
|
33
|
+
}
|
|
34
|
+
interface SearchResult {
|
|
35
|
+
popularity?: number;
|
|
36
|
+
}
|
|
37
|
+
interface PluginFeatureMappings {
|
|
38
|
+
sortByPopularity: ProductPopularityFeatures['sortByPopularity'];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
30
41
|
export declare const VendureProductPopularityPlugin: VendurePluginConfig<ProductPopularityFeatures, Record<string, (...args: any[]) => any>, {
|
|
31
42
|
[x: string]: any;
|
|
32
43
|
}, import('@haus-storefront-react/shared-types').IGraphQLSDK>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haus-storefront-react/vendure-plugin-configs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -9,12 +9,6 @@
|
|
|
9
9
|
"import": "./index.mjs",
|
|
10
10
|
"require": "./index.js"
|
|
11
11
|
},
|
|
12
|
-
"./augmentations": {
|
|
13
|
-
"types": "./lib/exports/augmentations.d.ts",
|
|
14
|
-
"import": "./augmentations.mjs",
|
|
15
|
-
"require": "./augmentations.js",
|
|
16
|
-
"default": "./augmentations"
|
|
17
|
-
},
|
|
18
12
|
"./badge": {
|
|
19
13
|
"types": "./lib/exports/badge.d.ts",
|
|
20
14
|
"import": "./badge.mjs",
|
|
@@ -47,8 +41,8 @@
|
|
|
47
41
|
}
|
|
48
42
|
},
|
|
49
43
|
"dependencies": {
|
|
50
|
-
"@haus-storefront-react/common-utils": "0.0.
|
|
51
|
-
"@haus-storefront-react/core": "0.0.
|
|
52
|
-
"@haus-storefront-react/shared-types": "0.0.
|
|
44
|
+
"@haus-storefront-react/common-utils": "0.0.35",
|
|
45
|
+
"@haus-storefront-react/core": "0.0.35",
|
|
46
|
+
"@haus-storefront-react/shared-types": "0.0.35"
|
|
53
47
|
}
|
|
54
48
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BadgeFeatures } from './vendure-badge-plugin.types';
|
|
2
|
-
declare module '@haus-storefront-react/shared-types' {
|
|
3
|
-
interface Product {
|
|
4
|
-
badges?: Maybe<Array<Badge>>;
|
|
5
|
-
}
|
|
6
|
-
interface SearchResult {
|
|
7
|
-
badges?: Maybe<Array<Badge>>;
|
|
8
|
-
}
|
|
9
|
-
interface ProductVariant {
|
|
10
|
-
badges?: Maybe<Array<Badge>>;
|
|
11
|
-
}
|
|
12
|
-
interface PluginFeatureMappings {
|
|
13
|
-
showBadges: BadgeFeatures['showBadges'];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CampaignFeatures } from './vendure-campaign-plugin.types';
|
|
2
|
-
declare module '@haus-storefront-react/shared-types' {
|
|
3
|
-
interface Product {
|
|
4
|
-
ordinaryPrice?: Price;
|
|
5
|
-
}
|
|
6
|
-
interface ProductVariant {
|
|
7
|
-
ordinaryPrice?: Price;
|
|
8
|
-
}
|
|
9
|
-
interface SearchResult {
|
|
10
|
-
ordinaryPrice?: Price;
|
|
11
|
-
}
|
|
12
|
-
interface PluginFeatureMappings {
|
|
13
|
-
showCampaignPrices: CampaignFeatures['showCampaignPrices'];
|
|
14
|
-
ordinaryPrice: CampaignFeatures['ordinaryPrice'];
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
declare module '@haus-storefront-react/shared-types' {
|
|
2
|
-
interface SearchResult {
|
|
3
|
-
prices: SearchResponsePriceData;
|
|
4
|
-
}
|
|
5
|
-
interface SearchInput {
|
|
6
|
-
priceRange?: Maybe<PriceRangeInput>;
|
|
7
|
-
priceRangeWithTax?: Maybe<PriceRangeInput>;
|
|
8
|
-
inStock?: Maybe<boolean>;
|
|
9
|
-
}
|
|
10
|
-
interface FilterInputs {
|
|
11
|
-
priceRange?: PriceRangeInput;
|
|
12
|
-
priceRangeWithTax?: PriceRangeInput;
|
|
13
|
-
}
|
|
14
|
-
interface SearchResponsePriceData {
|
|
15
|
-
range: PriceRange;
|
|
16
|
-
rangeWithTax: PriceRange;
|
|
17
|
-
}
|
|
18
|
-
interface SearchInputProps {
|
|
19
|
-
priceRange?: PriceRangeInput;
|
|
20
|
-
priceRangeWithTax?: PriceRangeInput;
|
|
21
|
-
}
|
|
22
|
-
interface PriceRangeBucket {
|
|
23
|
-
to: number;
|
|
24
|
-
count: number;
|
|
25
|
-
}
|
|
26
|
-
type PriceRangeInput = {
|
|
27
|
-
max: number;
|
|
28
|
-
min: number;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PackageSizeFeatures } from './vendure-packagesize-plugin.types';
|
|
2
|
-
declare module '@haus-storefront-react/shared-types' {
|
|
3
|
-
interface Product {
|
|
4
|
-
packageSize?: number;
|
|
5
|
-
}
|
|
6
|
-
interface SearchResult {
|
|
7
|
-
packageSize?: number;
|
|
8
|
-
}
|
|
9
|
-
interface PluginFeatureMappings {
|
|
10
|
-
changeQuantityByPackageSize: PackageSizeFeatures['changeQuantityByPackageSize'];
|
|
11
|
-
showPackageSize: PackageSizeFeatures['showPackageSize'];
|
|
12
|
-
showCostPerPackage: PackageSizeFeatures['showCostPerPackage'];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ProductPopularityFeatures } from './vendure-product-popularity-plugin.types';
|
|
2
|
-
declare module '@haus-storefront-react/shared-types' {
|
|
3
|
-
interface Product {
|
|
4
|
-
popularity?: number;
|
|
5
|
-
}
|
|
6
|
-
interface SearchResult {
|
|
7
|
-
popularity?: number;
|
|
8
|
-
}
|
|
9
|
-
interface PluginFeatureMappings {
|
|
10
|
-
sortByPopularity: ProductPopularityFeatures['sortByPopularity'];
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export * from '../configs/vendure-badge-plugin.augmentation';
|
|
2
|
-
export * from '../configs/vendure-campaign-plugin.augmentation';
|
|
3
|
-
export * from '../configs/vendure-packagesize-plugin.augmentation';
|
|
4
|
-
export * from '../configs/vendure-product-popularity-plugin.augmentation';
|
|
5
|
-
export * from '../configs/vendure-elastic-search-plugin.augmentation';
|