|
|
@@ -4289,79 +4289,6 @@ export type GetRunningJobsQuery = { __typename?: 'Query' } & {
|
|
|
jobs: Array<{ __typename?: 'JobInfo' } & Pick<JobInfo, 'name' | 'state'>>;
|
|
|
};
|
|
|
|
|
|
-export type GetProductsQueryVariables = {
|
|
|
- options?: Maybe<ProductListOptions>;
|
|
|
-};
|
|
|
-
|
|
|
-export type GetProductsQuery = { __typename?: 'Query' } & {
|
|
|
- products: { __typename?: 'ProductList' } & Pick<ProductList, 'totalItems'> & {
|
|
|
- items: Array<
|
|
|
- { __typename?: 'Product' } & Pick<Product, 'id' | 'name' | 'slug' | 'description'> & {
|
|
|
- featuredAsset: Maybe<
|
|
|
- { __typename?: 'Asset' } & Pick<Asset, 'id' | 'name' | 'preview' | 'source'>
|
|
|
- >;
|
|
|
- assets: Array<
|
|
|
- { __typename?: 'Asset' } & Pick<Asset, 'id' | 'name' | 'preview' | 'source'>
|
|
|
- >;
|
|
|
- optionGroups: Array<
|
|
|
- { __typename?: 'ProductOptionGroup' } & Pick<
|
|
|
- ProductOptionGroup,
|
|
|
- 'id' | 'code' | 'name'
|
|
|
- >
|
|
|
- >;
|
|
|
- facetValues: Array<
|
|
|
- { __typename?: 'FacetValue' } & Pick<FacetValue, 'id' | 'name'> & {
|
|
|
- facet: { __typename?: 'Facet' } & Pick<Facet, 'id' | 'name'>;
|
|
|
- }
|
|
|
- >;
|
|
|
- variants: Array<
|
|
|
- { __typename?: 'ProductVariant' } & Pick<
|
|
|
- ProductVariant,
|
|
|
- 'id' | 'name' | 'sku' | 'price' | 'stockOnHand' | 'trackInventory'
|
|
|
- > & {
|
|
|
- taxCategory: { __typename?: 'TaxCategory' } & Pick<
|
|
|
- TaxCategory,
|
|
|
- 'id' | 'name'
|
|
|
- >;
|
|
|
- options: Array<
|
|
|
- { __typename?: 'ProductOption' } & Pick<ProductOption, 'id' | 'code'>
|
|
|
- >;
|
|
|
- assets: Array<
|
|
|
- { __typename?: 'Asset' } & Pick<
|
|
|
- Asset,
|
|
|
- 'id' | 'name' | 'preview' | 'source'
|
|
|
- >
|
|
|
- >;
|
|
|
- featuredAsset: Maybe<
|
|
|
- { __typename?: 'Asset' } & Pick<
|
|
|
- Asset,
|
|
|
- 'id' | 'name' | 'preview' | 'source'
|
|
|
- >
|
|
|
- >;
|
|
|
- facetValues: Array<
|
|
|
- { __typename?: 'FacetValue' } & Pick<
|
|
|
- FacetValue,
|
|
|
- 'id' | 'code' | 'name'
|
|
|
- > & { facet: { __typename?: 'Facet' } & Pick<Facet, 'id' | 'name'> }
|
|
|
- >;
|
|
|
- stockMovements: { __typename?: 'StockMovementList' } & {
|
|
|
- items: Array<
|
|
|
- {
|
|
|
- __typename?:
|
|
|
- | 'StockAdjustment'
|
|
|
- | 'Sale'
|
|
|
- | 'Cancellation'
|
|
|
- | 'Return';
|
|
|
- } & Pick<StockMovement, 'id' | 'type' | 'quantity'>
|
|
|
- >;
|
|
|
- };
|
|
|
- }
|
|
|
- >;
|
|
|
- }
|
|
|
- >;
|
|
|
- };
|
|
|
-};
|
|
|
-
|
|
|
export type UpdateOptionGroupMutationVariables = {
|
|
|
input: UpdateProductOptionGroupInput;
|
|
|
};
|
|
|
@@ -5647,70 +5574,6 @@ export namespace GetRunningJobs {
|
|
|
export type Jobs = NonNullable<GetRunningJobsQuery['jobs'][0]>;
|
|
|
}
|
|
|
|
|
|
-export namespace GetProducts {
|
|
|
- export type Variables = GetProductsQueryVariables;
|
|
|
- export type Query = GetProductsQuery;
|
|
|
- export type Products = GetProductsQuery['products'];
|
|
|
- export type Items = NonNullable<GetProductsQuery['products']['items'][0]>;
|
|
|
- export type FeaturedAsset = NonNullable<
|
|
|
- (NonNullable<GetProductsQuery['products']['items'][0]>)['featuredAsset']
|
|
|
- >;
|
|
|
- export type Assets = NonNullable<(NonNullable<GetProductsQuery['products']['items'][0]>)['assets'][0]>;
|
|
|
- export type OptionGroups = NonNullable<
|
|
|
- (NonNullable<GetProductsQuery['products']['items'][0]>)['optionGroups'][0]
|
|
|
- >;
|
|
|
- export type FacetValues = NonNullable<
|
|
|
- (NonNullable<GetProductsQuery['products']['items'][0]>)['facetValues'][0]
|
|
|
- >;
|
|
|
- export type Facet = (NonNullable<
|
|
|
- (NonNullable<GetProductsQuery['products']['items'][0]>)['facetValues'][0]
|
|
|
- >)['facet'];
|
|
|
- export type Variants = NonNullable<
|
|
|
- (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
|
|
|
- >;
|
|
|
- export type TaxCategory = (NonNullable<
|
|
|
- (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
|
|
|
- >)['taxCategory'];
|
|
|
- export type Options = NonNullable<
|
|
|
- (NonNullable<(NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]>)['options'][0]
|
|
|
- >;
|
|
|
- export type _Assets = NonNullable<
|
|
|
- (NonNullable<(NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]>)['assets'][0]
|
|
|
- >;
|
|
|
- export type _FeaturedAsset = NonNullable<
|
|
|
- (NonNullable<(NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]>)['featuredAsset']
|
|
|
- >;
|
|
|
- export type _FacetValues = NonNullable<
|
|
|
- (NonNullable<
|
|
|
- (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
|
|
|
- >)['facetValues'][0]
|
|
|
- >;
|
|
|
- export type _Facet = (NonNullable<
|
|
|
- (NonNullable<
|
|
|
- (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
|
|
|
- >)['facetValues'][0]
|
|
|
- >)['facet'];
|
|
|
- export type StockMovements = (NonNullable<
|
|
|
- (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
|
|
|
- >)['stockMovements'];
|
|
|
- export type _Items = NonNullable<
|
|
|
- (NonNullable<
|
|
|
- (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
|
|
|
- >)['stockMovements']['items'][0]
|
|
|
- >;
|
|
|
- export type StockMovementInlineFragment = DiscriminateUnion<
|
|
|
- RequireField<
|
|
|
- NonNullable<
|
|
|
- (NonNullable<
|
|
|
- (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
|
|
|
- >)['stockMovements']['items'][0]
|
|
|
- >,
|
|
|
- '__typename'
|
|
|
- >,
|
|
|
- { __typename: 'StockMovement' }
|
|
|
- >;
|
|
|
-}
|
|
|
-
|
|
|
export namespace UpdateOptionGroup {
|
|
|
export type Variables = UpdateOptionGroupMutationVariables;
|
|
|
export type Mutation = UpdateOptionGroupMutation;
|