gantri-components 2.107.3 → 2.107.5
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-file-url/get-file-url.constants.d.ts +1 -0
- package/dist/helpers/get-file-url/get-file-url.types.d.ts +6 -0
- package/dist/helpers/get-folder-structure/helpers/get-products-path/get-products-path.types.d.ts +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const cloudinaryImagePrefix = "https://res.cloudinary.com/gantri/image/upload";
|
|
2
2
|
export declare const cloudinaryVideoPrefix = "https://res.cloudinary.com/gantri/video/upload";
|
|
3
|
+
export declare const cloudinaryRawPrefix = "https://res.cloudinary.com/gantri/raw/upload";
|
|
@@ -2,4 +2,10 @@ import { GetFolderStructureArgs } from '../get-folder-structure/get-folder-struc
|
|
|
2
2
|
import { DirectoryName } from '../get-folder-structure/globals.types';
|
|
3
3
|
export type GetFileUrlArgs<Directory extends DirectoryName> = GetFolderStructureArgs<Directory> & {
|
|
4
4
|
fileName: string;
|
|
5
|
+
/**
|
|
6
|
+
* Set to `true` if the file is not an image or video.
|
|
7
|
+
*
|
|
8
|
+
* https://cloudinary.com/documentation/upload_parameters#uploading_non_media_files_as_raw_files
|
|
9
|
+
*/
|
|
10
|
+
isRawFile?: boolean;
|
|
5
11
|
};
|
package/dist/helpers/get-folder-structure/helpers/get-products-path/get-products-path.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateVersion } from '../../globals.types';
|
|
2
2
|
import { Environment } from '../../../../global';
|
|
3
|
-
export type ProductsFileType = 'bulb-change-instructions' | 'dimming-photos' | 'handouts' | 'universal-handouts' | 'instructions' | 'lifestyle-photos' | 'model' | 'part-files' | 'product-photos' | 'scale-photo' | 'value-props' | 'videos';
|
|
3
|
+
export type ProductsFileType = 'bulb-change-instructions' | 'dimming-photos' | 'downloads' | 'handouts' | 'universal-handouts' | 'instructions' | 'lifestyle-photos' | 'model' | 'part-files' | 'product-photos' | 'scale-photo' | 'value-props' | 'videos';
|
|
4
4
|
interface ProductsRootLevel {
|
|
5
5
|
productId: number;
|
|
6
6
|
}
|
|
@@ -17,5 +17,5 @@ interface ProductsArgs<FileType extends ProductsFileType, Identifiers extends Re
|
|
|
17
17
|
fileType: FileType;
|
|
18
18
|
identifiers: Identifiers;
|
|
19
19
|
}
|
|
20
|
-
export type GetProductsArgs<FileType extends ProductsFileType> = FileType extends 'bulb-change-instructions' | 'handouts' | 'value-props' ? ProductsArgs<FileType, ProductsRootLevel> : FileType extends 'dimming-photos' | 'lifestyle-photos' | 'model' | 'product-photos' | 'scale-photo' | 'videos' ? ProductsArgs<FileType, ProductsSkuLevel> : FileType extends 'instructions' | 'part-files' ? ProductsArgs<FileType, ProductsTemplateLevel> : FileType extends 'universal-handouts' ? ProductsArgs<FileType, Record<string, never>> : never;
|
|
20
|
+
export type GetProductsArgs<FileType extends ProductsFileType> = FileType extends 'bulb-change-instructions' | 'downloads' | 'handouts' | 'value-props' ? ProductsArgs<FileType, ProductsRootLevel> : FileType extends 'dimming-photos' | 'lifestyle-photos' | 'model' | 'product-photos' | 'scale-photo' | 'videos' ? ProductsArgs<FileType, ProductsSkuLevel> : FileType extends 'instructions' | 'part-files' ? ProductsArgs<FileType, ProductsTemplateLevel> : FileType extends 'universal-handouts' ? ProductsArgs<FileType, Record<string, never>> : never;
|
|
21
21
|
export {};
|