gantri-components 2.197.0 → 2.199.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.
@@ -5,6 +5,7 @@ export interface ProductColorDetail {
5
5
  shortColorName: string;
6
6
  }
7
7
  export interface GetColorsByProductProps {
8
+ allowGantriColors?: boolean;
8
9
  allowTradeColors: boolean;
9
10
  isPainted: boolean;
10
11
  productId: number;
@@ -0,0 +1,3 @@
1
+ import { GetLightsColorsProps } from './get-light-colors.types';
2
+ import { ProductColorDetail } from '../get-colors-by-product';
3
+ export declare const getLightColors: (props?: GetLightsColorsProps) => ProductColorDetail[];
@@ -0,0 +1,3 @@
1
+ export interface GetLightsColorsProps {
2
+ allowGantriColors?: boolean;
3
+ }
@@ -0,0 +1 @@
1
+ export * from './get-light-colors';
@@ -2,3 +2,4 @@ export declare const momaExclusiveColorsProductIds: number[];
2
2
  export declare const momaExclusiveColorCodes: readonly ["cobalt", "poppy"];
3
3
  export declare const kobbleExclusiveColorsProductIds: number[];
4
4
  export declare const kobbleExclusiveColorCodes: readonly ["glossysnowwhite"];
5
+ export declare const gantriColorCodes: Partial<Record<"blossompink" | "canyon" | "carbon" | "cobalt" | "coral" | "fog" | "forest" | "gantri" | "glossysnowwhite" | "hibiscus" | "meadow" | "midnight" | "mist" | "mustard" | "olive" | "peach" | "persimmon" | "poppy" | "sage" | "sand" | "sedona" | "sky" | "smoke" | "snow" | "sproutgreen" | "stone" | "sunrise" | "walnut", boolean>>;
@@ -1,6 +1,7 @@
1
1
  import { ProductColorCode } from '../../../../styles/theme';
2
2
  export declare const getIsColorAvailableForProductId: (props: {
3
+ allowGantriColors?: boolean | undefined;
3
4
  allowTradeColors: boolean;
4
5
  colorCode: ProductColorCode;
5
6
  productId: number;
6
- }) => boolean;
7
+ }) => boolean | undefined;
@@ -4,3 +4,4 @@ export * from './generate-skus';
4
4
  export * from './generate-skus-for-product-id';
5
5
  export * from './get-sku-details';
6
6
  export * from './helpers/get-is-color-available-for-product-id';
7
+ export * from './get-light-colors';
@@ -6,8 +6,8 @@ export declare const getCloudinaryPrefixFolders: (props: {
6
6
  }) => string;
7
7
  export declare const getCloudinaryPrefixPath: (props: {
8
8
  resourceType: CloudinaryResourceType;
9
- }) => `https://res.cloudinary.com/gantri-dev/video/upload${string}` | `https://res.cloudinary.com/gantri-dev/image/upload${string}` | `https://res.cloudinary.com/gantri-dev/raw/upload${string}` | `https://res.cloudinary.com/gantri-staging/video/upload${string}` | `https://res.cloudinary.com/gantri-staging/image/upload${string}` | `https://res.cloudinary.com/gantri-staging/raw/upload${string}` | `https://res.cloudinary.com/gantri/video/upload${string}` | `https://res.cloudinary.com/gantri/image/upload${string}` | `https://res.cloudinary.com/gantri/raw/upload${string}`;
9
+ }) => `https://res.cloudinary.com/gantri/video/upload${string}` | `https://res.cloudinary.com/gantri/image/upload${string}` | `https://res.cloudinary.com/gantri/raw/upload${string}` | `https://res.cloudinary.com/gantri-dev/video/upload${string}` | `https://res.cloudinary.com/gantri-dev/image/upload${string}` | `https://res.cloudinary.com/gantri-dev/raw/upload${string}` | `https://res.cloudinary.com/gantri-staging/video/upload${string}` | `https://res.cloudinary.com/gantri-staging/image/upload${string}` | `https://res.cloudinary.com/gantri-staging/raw/upload${string}`;
10
10
  export declare const getCloudinaryPrefixPathForFileType: <Directory extends DirectoryName>(props: {
11
11
  fileType: GetFileUrlArgs<Directory>["fileType"];
12
12
  isRawFile: boolean | undefined;
13
- }) => `https://res.cloudinary.com/gantri-dev/video/upload${string}` | `https://res.cloudinary.com/gantri-dev/image/upload${string}` | `https://res.cloudinary.com/gantri-dev/raw/upload${string}` | `https://res.cloudinary.com/gantri-staging/video/upload${string}` | `https://res.cloudinary.com/gantri-staging/image/upload${string}` | `https://res.cloudinary.com/gantri-staging/raw/upload${string}` | `https://res.cloudinary.com/gantri/video/upload${string}` | `https://res.cloudinary.com/gantri/image/upload${string}` | `https://res.cloudinary.com/gantri/raw/upload${string}`;
13
+ }) => `https://res.cloudinary.com/gantri/video/upload${string}` | `https://res.cloudinary.com/gantri/image/upload${string}` | `https://res.cloudinary.com/gantri/raw/upload${string}` | `https://res.cloudinary.com/gantri-dev/video/upload${string}` | `https://res.cloudinary.com/gantri-dev/image/upload${string}` | `https://res.cloudinary.com/gantri-dev/raw/upload${string}` | `https://res.cloudinary.com/gantri-staging/video/upload${string}` | `https://res.cloudinary.com/gantri-staging/image/upload${string}` | `https://res.cloudinary.com/gantri-staging/raw/upload${string}`;
@@ -1,11 +1,15 @@
1
- export type OrganizationsFileType = 'msa' | 'contract' | 'logo';
1
+ export type OrganizationsFileType = 'msa' | 'contract' | 'logo' | 'sketch-concept';
2
2
  interface OrganizationsRootLevel {
3
3
  organizationId: number;
4
4
  }
5
+ interface OrganizationsConceptLevel {
6
+ conceptId: number;
7
+ organizationId: number;
8
+ }
5
9
  interface OrganizationsArgs<FileType extends OrganizationsFileType, Identifiers extends Record<string, any>> {
6
10
  directory: 'organizations';
7
11
  fileType: FileType;
8
12
  identifiers: Identifiers;
9
13
  }
10
- export type GetOrganizationsArgs<FileType extends OrganizationsFileType> = FileType extends 'msa' | 'contract' | 'logo' ? OrganizationsArgs<FileType, OrganizationsRootLevel> : never;
14
+ export type GetOrganizationsArgs<FileType extends OrganizationsFileType> = FileType extends 'msa' | 'contract' | 'logo' ? OrganizationsArgs<FileType, OrganizationsRootLevel> : FileType extends 'sketch-concept' ? OrganizationsArgs<FileType, OrganizationsConceptLevel> : never;
11
15
  export {};