forked from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
879 additions
and
144 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
157 changes: 157 additions & 0 deletions
157
scripts/__dropins__/storefront-pdp/__mocks__/product-mocks.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
15 changes: 15 additions & 0 deletions
15
scripts/__dropins__/storefront-pdp/api/fetch-graphql/fetch-graphql.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
scripts/__dropins__/storefront-pdp/api/fetch-graphql/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
15 changes: 15 additions & 0 deletions
15
scripts/__dropins__/storefront-pdp/api/getProductData/graphql/getProductData.graphql.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
15
scripts/__dropins__/storefront-pdp/api/getProductData/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 1 addition & 1 deletion
2
scripts/__dropins__/storefront-pdp/api/getRefinedProduct/getRefinedProduct.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
15 changes: 15 additions & 0 deletions
15
.../__dropins__/storefront-pdp/api/getRefinedProduct/graphql/RefineProductQuery.graphql.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
15 changes: 15 additions & 0 deletions
15
scripts/__dropins__/storefront-pdp/api/getRefinedProduct/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
15 changes: 15 additions & 0 deletions
15
scripts/__dropins__/storefront-pdp/api/graphql/ProductFragment.graphql.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
17 changes: 16 additions & 1 deletion
17
scripts/__dropins__/storefront-pdp/api/graphql/ProductOptionFragment.graphql.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
scripts/__dropins__/storefront-pdp/api/initialize/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.