|
@@ -77,6 +77,7 @@ export interface Query {
|
|
|
adjustmentOperations: AdjustmentOperations;
|
|
adjustmentOperations: AdjustmentOperations;
|
|
|
roles: RoleList;
|
|
roles: RoleList;
|
|
|
role?: Role | null;
|
|
role?: Role | null;
|
|
|
|
|
+ search: SearchResponse;
|
|
|
shippingMethods: ShippingMethodList;
|
|
shippingMethods: ShippingMethodList;
|
|
|
shippingMethod?: ShippingMethod | null;
|
|
shippingMethod?: ShippingMethod | null;
|
|
|
shippingEligibilityCheckers: AdjustmentOperation[];
|
|
shippingEligibilityCheckers: AdjustmentOperation[];
|
|
@@ -584,6 +585,26 @@ export interface RoleList extends PaginatedList {
|
|
|
totalItems: number;
|
|
totalItems: number;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export interface SearchResponse {
|
|
|
|
|
+ items: SearchResult[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+ facetValues: FacetValue[];
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface SearchResult {
|
|
|
|
|
+ sku: string;
|
|
|
|
|
+ productVariantName: string;
|
|
|
|
|
+ productName: string;
|
|
|
|
|
+ productVariantId: string;
|
|
|
|
|
+ productId: string;
|
|
|
|
|
+ description: string;
|
|
|
|
|
+ productPreview: string;
|
|
|
|
|
+ productVariantPreview: string;
|
|
|
|
|
+ facetIds: string[];
|
|
|
|
|
+ facetValueIds: string[];
|
|
|
|
|
+ score: number;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export interface ShippingMethodList extends PaginatedList {
|
|
export interface ShippingMethodList extends PaginatedList {
|
|
|
items: ShippingMethod[];
|
|
items: ShippingMethod[];
|
|
|
totalItems: number;
|
|
totalItems: number;
|
|
@@ -659,6 +680,7 @@ export interface Mutation {
|
|
|
updatePromotion: Promotion;
|
|
updatePromotion: Promotion;
|
|
|
createRole: Role;
|
|
createRole: Role;
|
|
|
updateRole: Role;
|
|
updateRole: Role;
|
|
|
|
|
+ reindex: boolean;
|
|
|
createShippingMethod: ShippingMethod;
|
|
createShippingMethod: ShippingMethod;
|
|
|
updateShippingMethod: ShippingMethod;
|
|
updateShippingMethod: ShippingMethod;
|
|
|
createTaxCategory: TaxCategory;
|
|
createTaxCategory: TaxCategory;
|
|
@@ -956,6 +978,14 @@ export interface RoleFilterParameter {
|
|
|
updatedAt?: DateOperators | null;
|
|
updatedAt?: DateOperators | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export interface SearchInput {
|
|
|
|
|
+ term?: string | null;
|
|
|
|
|
+ facetIds?: string[] | null;
|
|
|
|
|
+ groupByProduct?: boolean | null;
|
|
|
|
|
+ take?: number | null;
|
|
|
|
|
+ skip?: number | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export interface ShippingMethodListOptions {
|
|
export interface ShippingMethodListOptions {
|
|
|
take?: number | null;
|
|
take?: number | null;
|
|
|
skip?: number | null;
|
|
skip?: number | null;
|
|
@@ -1503,6 +1533,9 @@ export interface RolesQueryArgs {
|
|
|
export interface RoleQueryArgs {
|
|
export interface RoleQueryArgs {
|
|
|
id: string;
|
|
id: string;
|
|
|
}
|
|
}
|
|
|
|
|
+export interface SearchQueryArgs {
|
|
|
|
|
+ input: SearchInput;
|
|
|
|
|
+}
|
|
|
export interface ShippingMethodsQueryArgs {
|
|
export interface ShippingMethodsQueryArgs {
|
|
|
options?: ShippingMethodListOptions | null;
|
|
options?: ShippingMethodListOptions | null;
|
|
|
}
|
|
}
|
|
@@ -1998,6 +2031,7 @@ export namespace QueryResolvers {
|
|
|
adjustmentOperations?: AdjustmentOperationsResolver<AdjustmentOperations, any, Context>;
|
|
adjustmentOperations?: AdjustmentOperationsResolver<AdjustmentOperations, any, Context>;
|
|
|
roles?: RolesResolver<RoleList, any, Context>;
|
|
roles?: RolesResolver<RoleList, any, Context>;
|
|
|
role?: RoleResolver<Role | null, any, Context>;
|
|
role?: RoleResolver<Role | null, any, Context>;
|
|
|
|
|
+ search?: SearchResolver<SearchResponse, any, Context>;
|
|
|
shippingMethods?: ShippingMethodsResolver<ShippingMethodList, any, Context>;
|
|
shippingMethods?: ShippingMethodsResolver<ShippingMethodList, any, Context>;
|
|
|
shippingMethod?: ShippingMethodResolver<ShippingMethod | null, any, Context>;
|
|
shippingMethod?: ShippingMethodResolver<ShippingMethod | null, any, Context>;
|
|
|
shippingEligibilityCheckers?: ShippingEligibilityCheckersResolver<
|
|
shippingEligibilityCheckers?: ShippingEligibilityCheckersResolver<
|
|
@@ -2342,6 +2376,16 @@ export namespace QueryResolvers {
|
|
|
id: string;
|
|
id: string;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ export type SearchResolver<R = SearchResponse, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ SearchArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface SearchArgs {
|
|
|
|
|
+ input: SearchInput;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
export type ShippingMethodsResolver<R = ShippingMethodList, Parent = any, Context = any> = Resolver<
|
|
export type ShippingMethodsResolver<R = ShippingMethodList, Parent = any, Context = any> = Resolver<
|
|
|
R,
|
|
R,
|
|
|
Parent,
|
|
Parent,
|
|
@@ -3834,6 +3878,70 @@ export namespace RoleListResolvers {
|
|
|
export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export namespace SearchResponseResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ items?: ItemsResolver<SearchResult[], any, Context>;
|
|
|
|
|
+ totalItems?: TotalItemsResolver<number, any, Context>;
|
|
|
|
|
+ facetValues?: FacetValuesResolver<FacetValue[], any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ItemsResolver<R = SearchResult[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type FacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace SearchResultResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ sku?: SkuResolver<string, any, Context>;
|
|
|
|
|
+ productVariantName?: ProductVariantNameResolver<string, any, Context>;
|
|
|
|
|
+ productName?: ProductNameResolver<string, any, Context>;
|
|
|
|
|
+ productVariantId?: ProductVariantIdResolver<string, any, Context>;
|
|
|
|
|
+ productId?: ProductIdResolver<string, any, Context>;
|
|
|
|
|
+ description?: DescriptionResolver<string, any, Context>;
|
|
|
|
|
+ productPreview?: ProductPreviewResolver<string, any, Context>;
|
|
|
|
|
+ productVariantPreview?: ProductVariantPreviewResolver<string, any, Context>;
|
|
|
|
|
+ facetIds?: FacetIdsResolver<string[], any, Context>;
|
|
|
|
|
+ facetValueIds?: FacetValueIdsResolver<string[], any, Context>;
|
|
|
|
|
+ score?: ScoreResolver<number, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type SkuResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type ProductVariantNameResolver<R = string, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type ProductNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type ProductVariantIdResolver<R = string, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type ProductIdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type ProductPreviewResolver<R = string, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type ProductVariantPreviewResolver<R = string, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type FacetIdsResolver<R = string[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type FacetValueIdsResolver<R = string[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type ScoreResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export namespace ShippingMethodListResolvers {
|
|
export namespace ShippingMethodListResolvers {
|
|
|
export interface Resolvers<Context = any> {
|
|
export interface Resolvers<Context = any> {
|
|
|
items?: ItemsResolver<ShippingMethod[], any, Context>;
|
|
items?: ItemsResolver<ShippingMethod[], any, Context>;
|
|
@@ -3946,6 +4054,7 @@ export namespace MutationResolvers {
|
|
|
updatePromotion?: UpdatePromotionResolver<Promotion, any, Context>;
|
|
updatePromotion?: UpdatePromotionResolver<Promotion, any, Context>;
|
|
|
createRole?: CreateRoleResolver<Role, any, Context>;
|
|
createRole?: CreateRoleResolver<Role, any, Context>;
|
|
|
updateRole?: UpdateRoleResolver<Role, any, Context>;
|
|
updateRole?: UpdateRoleResolver<Role, any, Context>;
|
|
|
|
|
+ reindex?: ReindexResolver<boolean, any, Context>;
|
|
|
createShippingMethod?: CreateShippingMethodResolver<ShippingMethod, any, Context>;
|
|
createShippingMethod?: CreateShippingMethodResolver<ShippingMethod, any, Context>;
|
|
|
updateShippingMethod?: UpdateShippingMethodResolver<ShippingMethod, any, Context>;
|
|
updateShippingMethod?: UpdateShippingMethodResolver<ShippingMethod, any, Context>;
|
|
|
createTaxCategory?: CreateTaxCategoryResolver<TaxCategory, any, Context>;
|
|
createTaxCategory?: CreateTaxCategoryResolver<TaxCategory, any, Context>;
|
|
@@ -4466,6 +4575,7 @@ export namespace MutationResolvers {
|
|
|
input: UpdateRoleInput;
|
|
input: UpdateRoleInput;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ export type ReindexResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
export type CreateShippingMethodResolver<R = ShippingMethod, Parent = any, Context = any> = Resolver<
|
|
export type CreateShippingMethodResolver<R = ShippingMethod, Parent = any, Context = any> = Resolver<
|
|
|
R,
|
|
R,
|
|
|
Parent,
|
|
Parent,
|
|
@@ -5465,6 +5575,33 @@ export namespace MoveProductCategory {
|
|
|
export type MoveProductCategory = ProductCategory.Fragment;
|
|
export type MoveProductCategory = ProductCategory.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export namespace SearchProducts {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: SearchInput;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ search: Search;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Search = {
|
|
|
|
|
+ __typename?: 'SearchResponse';
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+ items: Items[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Items = {
|
|
|
|
|
+ __typename?: 'SearchResult';
|
|
|
|
|
+ productName: string;
|
|
|
|
|
+ productVariantName: string;
|
|
|
|
|
+ productId: string;
|
|
|
|
|
+ productVariantId: string;
|
|
|
|
|
+ productPreview: string;
|
|
|
|
|
+ sku: string;
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export namespace GetPromotionList {
|
|
export namespace GetPromotionList {
|
|
|
export type Variables = {
|
|
export type Variables = {
|
|
|
options?: PromotionListOptions | null;
|
|
options?: PromotionListOptions | null;
|