Skip to content

Commit

Permalink
updated tools & pdp versions
Browse files Browse the repository at this point in the history
  • Loading branch information
alandana committed Sep 4, 2024
1 parent bafeb72 commit d31cd46
Show file tree
Hide file tree
Showing 87 changed files with 879 additions and 144 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@adobe/magento-storefront-event-collector": "^1.8.0",
"@adobe/magento-storefront-events-sdk": "^1.8.0",
"@dropins/storefront-pdp": "^0.3.0",
"@dropins/tools": "^0.25.0"
"@dropins/storefront-pdp": "^0.4.0-alpha9",
"@dropins/tools": "^0.29.0"
}
}
157 changes: 157 additions & 0 deletions scripts/__dropins__/storefront-pdp/__mocks__/product-mocks.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
export declare const MOCK_DATA_BUNDLE: {
__typename: string;
id: string;
sku: string;
name: string;
shortDescription: string;
metaDescription: string;
metaKeyword: string;
metaTitle: string;
description: string;
inStock: boolean;
addToCartAllowed: boolean;
url: string;
urlKey: string;
externalId: string;
images: {
url: string;
label: string;
roles: string[];
}[];
options: {
id: string;
title: string;
required: boolean;
multi: null;
values: {
id: string;
title: string;
inStock: boolean;
__typename: string;
quantity: number;
isDefault: boolean;
product: {
sku: string;
shortDescription: string;
metaDescription: string;
metaKeyword: string;
metaTitle: string;
name: string;
price: {
final: {
amount: {
value: number;
currency: string;
};
};
regular: {
amount: {
value: number;
currency: string;
};
};
roles: string[];
};
};
}[];
}[];
priceRange: {
maximum: {
final: {
amount: {
value: number;
currency: string;
};
};
regular: {
amount: {
value: number;
currency: string;
};
};
roles: string[];
};
minimum: {
final: {
amount: {
value: number;
currency: string;
};
};
regular: {
amount: {
value: number;
currency: string;
};
};
roles: string[];
};
};
};
export declare const MOCK_DATA_BUNDLE_TRANSFORMED: {
name: string;
sku: string;
addToCartAllowed: boolean;
inStock: boolean;
shortDescription: string;
metaDescription: string;
metaKeyword: string;
metaTitle: string;
description: string;
images: {
url: string;
label: string;
width: number;
height: number;
}[];
prices: {
final: {
amount: number;
currency: string;
};
regular: {
amount: number;
currency: string;
};
visible: boolean;
};
options: {
id: string;
type: "text" | "image" | "color" | "dropdown";
typename: "ProductViewOptionValueProduct" | "ProductViewOptionValueSwatch" | "ProductViewOptionValueConfiguration";
label: string;
required: boolean;
multiple: boolean;
items: {
id: string;
inStock: boolean;
label: string;
selected: boolean;
value: string;
product: {
sku: string;
shortDescription: string;
metaDescription: string;
metaKeyword: string;
metaTitle: string;
name: string;
price: {
final: {
amount: {
value: number;
currency: string;
};
};
regular: {
amount: {
value: number;
currency: string;
};
};
roles: string[];
};
};
}[];
}[];
};
//# sourceMappingURL=product-mocks.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* ADOBE CONFIDENTIAL
* __________________
* Copyright 2023 Adobe
* All Rights Reserved.
* __________________
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
*/
export declare const setEndpoint: (endpoint: string) => void, setFetchGraphQlHeader: (key: string, value: string | null) => void, removeFetchGraphQlHeader: (key: string) => void, setFetchGraphQlHeaders: (header: import('@adobe/fetch-graphql').Header) => void, fetchGraphQl: <T = any>(query: string, options?: import('@adobe/fetch-graphql').FetchOptions | undefined) => Promise<{
errors?: import('@adobe/fetch-graphql').FetchQueryError | undefined;
data: T;
Expand Down
15 changes: 15 additions & 0 deletions scripts/__dropins__/storefront-pdp/api/fetch-graphql/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
/**
* ADOBE CONFIDENTIAL
* __________________
* Copyright 2023 Adobe
* All Rights Reserved.
* __________________
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
*/
export * from './fetch-graphql';
//# sourceMappingURL=index.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
/**
* ADOBE CONFIDENTIAL
* __________________
* Copyright 2023 Adobe
* All Rights Reserved.
* __________________
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
*/
export declare const GET_PRODUCT_DATA: string;
//# sourceMappingURL=getProductData.graphql.d.ts.map
15 changes: 15 additions & 0 deletions scripts/__dropins__/storefront-pdp/api/getProductData/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
/**
* ADOBE CONFIDENTIAL
* __________________
* Copyright 2023 Adobe
* All Rights Reserved.
* __________________
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
*/
export * from './getProductData';
//# sourceMappingURL=index.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ProductModel } from '../../data/models';

export declare const getRefinedProduct: (sku: string, optionUIDs: string[], anchorOptions?: string[]) => Promise<ProductModel | null>;
export declare const getRefinedProduct: (sku: string, optionUIDs: string[], anchorOptions?: string[], isBundle?: boolean) => Promise<ProductModel | null>;
//# sourceMappingURL=getRefinedProduct.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
/**
* ADOBE CONFIDENTIAL
* __________________
* Copyright 2023 Adobe
* All Rights Reserved.
* __________________
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
*/
export declare const REFINE_PRODUCT_QUERY: string;
//# sourceMappingURL=RefineProductQuery.graphql.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
/**
* ADOBE CONFIDENTIAL
* __________________
* Copyright 2023 Adobe
* All Rights Reserved.
* __________________
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
*/
export * from './getRefinedProduct';
//# sourceMappingURL=index.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
/**
* ADOBE CONFIDENTIAL
* __________________
* Copyright 2023 Adobe
* All Rights Reserved.
* __________________
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
*/
export declare const ProductFragment: string;
//# sourceMappingURL=ProductFragment.graphql.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
export declare const ProductOptionFragment = "\nfragment ProductOptionFragment on ProductViewOption {\n id\n title\n required\n multi\n values {\n id\n title\n inStock\n __typename\n ... on ProductViewOptionValueProduct {\n title\n quantity\n isDefault\n product {\n sku\n shortDescription\n metaDescription\n metaKeyword\n metaTitle\n name\n price {\n final {\n amount {\n value\n currency\n }\n }\n regular {\n amount {\n value\n currency\n }\n }\n roles\n }\n }\n }\n ... on ProductViewOptionValueSwatch {\n id\n title\n type\n value\n inStock\n }\n }\n }\n";
/**
* ADOBE CONFIDENTIAL
* __________________
* Copyright 2023 Adobe
* All Rights Reserved.
* __________________
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
*/
export declare const ProductOptionFragment = "\nfragment ProductOptionFragment on ProductViewOption {\n id\n title\n required\n multi\n values {\n id\n title\n inStock\n __typename\n ... on ProductViewOptionValueProduct {\n title\n quantity\n isDefault\n __typename\n product {\n sku\n shortDescription\n metaDescription\n metaKeyword\n metaTitle\n name\n price {\n final {\n amount {\n value\n currency\n }\n }\n regular {\n amount {\n value\n currency\n }\n }\n roles\n }\n }\n }\n ... on ProductViewOptionValueSwatch {\n id\n title\n type\n value\n inStock\n }\n }\n }\n";
//# sourceMappingURL=ProductOptionFragment.graphql.d.ts.map
15 changes: 15 additions & 0 deletions scripts/__dropins__/storefront-pdp/api/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* ADOBE CONFIDENTIAL
* __________________
* Copyright 2023 Adobe
* All Rights Reserved.
* __________________
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
*/
export * from './initialize';
export * from './fetch-graphql';
export * from './getProductData';
Expand Down
15 changes: 15 additions & 0 deletions scripts/__dropins__/storefront-pdp/api/initialize/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
/**
* ADOBE CONFIDENTIAL
* __________________
* Copyright 2023 Adobe
* All Rights Reserved.
* __________________
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
*/
export * from './initialize';
//# sourceMappingURL=index.d.ts.map
Loading

0 comments on commit d31cd46

Please sign in to comment.