gantri-components 2.21.0 → 2.21.2
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/global/environment.d.ts +6 -0
- package/dist/global/index.d.ts +1 -0
- package/dist/helpers/get-folder-structure/get-folder-structure.constants.d.ts +0 -2
- package/dist/helpers/get-folder-structure/globals.types.d.ts +0 -1
- package/dist/helpers/get-folder-structure/helpers/get-products-path/get-products-path.types.d.ts +3 -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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
export type DirectoryName = 'designers' | 'designs' | 'downloads' | 'floating-parts' | 'inventory-purchases' | 'parts' | 'products' | 'stocks' | 'users';
|
|
2
2
|
export type TemplateVersion = 'draft' | string;
|
|
3
|
-
export type Environment = 'local' | 'develop' | 'staging' | 'production';
|
package/dist/helpers/get-folder-structure/helpers/get-products-path/get-products-path.types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateVersion } from '../../globals.types';
|
|
2
|
+
import { Environment } from '../../../../global';
|
|
2
3
|
export type ProductsFileType = 'bulb-change-instructions' | 'dimming-photos' | 'handouts' | 'universal-handouts' | 'instructions' | 'lifestyle-photos' | 'model' | 'part-files' | 'product-photos' | 'scale-photo' | 'value-props';
|
|
3
4
|
interface ProductsRootLevel {
|
|
4
5
|
productId: number;
|
|
@@ -12,7 +13,7 @@ interface ProductsTemplateLevel extends ProductsSkuLevel {
|
|
|
12
13
|
}
|
|
13
14
|
interface ProductsArgs<FileType extends ProductsFileType, Identifiers extends Record<string, any>> {
|
|
14
15
|
directory: 'products';
|
|
15
|
-
env?: Environment;
|
|
16
|
+
env?: Environment['CLOUDINARY_ENVIRONMENT'];
|
|
16
17
|
fileType: FileType;
|
|
17
18
|
identifiers: Identifiers;
|
|
18
19
|
}
|