gantri-components 2.174.0 → 2.175.0-beta.1
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/dist/helpers/get-folder-structure/helpers/get-products-path/get-products-path.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplateVersion } from '../../globals.types';
|
|
2
|
-
export type ProductsFileType = '2d-drawings' | 'bulb-change-instructions' | 'cut-sheets' | 'dimming-photos' | 'downloads' | 'handouts' | 'instructions' | 'lifestyle-photos-sku' | 'lifestyle-photos' | 'model' | 'part-files' | 'product-photos' | 'scale-photo' | 'universal-handouts' | 'value-props' | 'videos-sku' | 'videos';
|
|
2
|
+
export type ProductsFileType = '2d-drawings' | 'bulb-change-instructions' | 'cut-sheets' | 'dimming-photos' | 'downloads' | 'handouts' | 'instructions' | 'lifestyle-photos-sku' | 'lifestyle-photos' | 'model' | 'part-files' | 'product-photos' | 'render-photos' | 'scale-photo' | 'universal-handouts' | 'value-props' | 'videos-sku' | 'videos';
|
|
3
3
|
interface ProductsRootLevel {
|
|
4
4
|
productId: number;
|
|
5
5
|
}
|
|
@@ -15,5 +15,5 @@ interface ProductsArgs<FileType extends ProductsFileType, Identifiers extends Re
|
|
|
15
15
|
fileType: FileType;
|
|
16
16
|
identifiers: Identifiers;
|
|
17
17
|
}
|
|
18
|
-
export type GetProductsArgs<FileType extends ProductsFileType> = FileType extends '2d-drawings' | 'bulb-change-instructions' | 'downloads' | 'handouts' | 'lifestyle-photos' | 'value-props' | 'videos' ? ProductsArgs<FileType, ProductsRootLevel> : FileType extends 'cut-sheets' | 'dimming-photos' | 'lifestyle-photos-sku' | 'model' | 'product-photos' | 'scale-photo' | 'videos-sku' ? ProductsArgs<FileType, ProductsSkuLevel> : FileType extends 'instructions' | 'part-files' ? ProductsArgs<FileType, ProductsTemplateLevel> : FileType extends 'universal-handouts' ? ProductsArgs<FileType, Record<string, never>> : never;
|
|
18
|
+
export type GetProductsArgs<FileType extends ProductsFileType> = FileType extends '2d-drawings' | 'bulb-change-instructions' | 'downloads' | 'handouts' | 'lifestyle-photos' | 'value-props' | 'videos' | 'render-photos' ? ProductsArgs<FileType, ProductsRootLevel> : FileType extends 'cut-sheets' | 'dimming-photos' | 'lifestyle-photos-sku' | 'model' | 'product-photos' | 'scale-photo' | 'videos-sku' ? ProductsArgs<FileType, ProductsSkuLevel> : FileType extends 'instructions' | 'part-files' ? ProductsArgs<FileType, ProductsTemplateLevel> : FileType extends 'universal-handouts' ? ProductsArgs<FileType, Record<string, never>> : never;
|
|
19
19
|
export {};
|