|
|
@@ -362,6 +362,7 @@ export type Channel = Node & {
|
|
|
defaultTaxZone?: Maybe<Zone>;
|
|
|
id: Scalars['ID'];
|
|
|
pricesIncludeTax: Scalars['Boolean'];
|
|
|
+ seller?: Maybe<Seller>;
|
|
|
token: Scalars['String'];
|
|
|
updatedAt: Scalars['DateTime'];
|
|
|
};
|
|
|
@@ -660,6 +661,7 @@ export type CreateChannelInput = {
|
|
|
defaultShippingZoneId: Scalars['ID'];
|
|
|
defaultTaxZoneId: Scalars['ID'];
|
|
|
pricesIncludeTax: Scalars['Boolean'];
|
|
|
+ sellerId?: InputMaybe<Scalars['ID']>;
|
|
|
token: Scalars['String'];
|
|
|
};
|
|
|
|
|
|
@@ -818,6 +820,15 @@ export type CreateRoleInput = {
|
|
|
permissions: Array<Permission>;
|
|
|
};
|
|
|
|
|
|
+export type CreateSellerCustomFieldsInput = {
|
|
|
+ connectedAccountId?: InputMaybe<Scalars['String']>;
|
|
|
+};
|
|
|
+
|
|
|
+export type CreateSellerInput = {
|
|
|
+ customFields?: InputMaybe<CreateSellerCustomFieldsInput>;
|
|
|
+ name: Scalars['String'];
|
|
|
+};
|
|
|
+
|
|
|
export type CreateShippingMethodInput = {
|
|
|
calculator: ConfigurableOperationInput;
|
|
|
checker: ConfigurableOperationInput;
|
|
|
@@ -847,6 +858,10 @@ export type CreateTaxRateInput = {
|
|
|
zoneId: Scalars['ID'];
|
|
|
};
|
|
|
|
|
|
+export type CreateVendorInput = {
|
|
|
+ name: Scalars['String'];
|
|
|
+};
|
|
|
+
|
|
|
export type CreateZoneInput = {
|
|
|
customFields?: InputMaybe<Scalars['JSON']>;
|
|
|
memberIds?: InputMaybe<Array<Scalars['ID']>>;
|
|
|
@@ -1227,6 +1242,7 @@ export type CustomFields = {
|
|
|
ProductOptionGroup: Array<CustomFieldConfig>;
|
|
|
ProductVariant: Array<CustomFieldConfig>;
|
|
|
Promotion: Array<CustomFieldConfig>;
|
|
|
+ Seller: Array<CustomFieldConfig>;
|
|
|
ShippingMethod: Array<CustomFieldConfig>;
|
|
|
TaxCategory: Array<CustomFieldConfig>;
|
|
|
TaxRate: Array<CustomFieldConfig>;
|
|
|
@@ -2478,6 +2494,8 @@ export type Mutation = {
|
|
|
createPromotion: CreatePromotionResult;
|
|
|
/** Create a new Role */
|
|
|
createRole: Role;
|
|
|
+ /** Create a new Seller */
|
|
|
+ createSeller: Seller;
|
|
|
/** Create a new ShippingMethod */
|
|
|
createShippingMethod: ShippingMethod;
|
|
|
/** Create a new Tag */
|
|
|
@@ -2486,6 +2504,8 @@ export type Mutation = {
|
|
|
createTaxCategory: TaxCategory;
|
|
|
/** Create a new TaxRate */
|
|
|
createTaxRate: TaxRate;
|
|
|
+ /** Create a new Vendor */
|
|
|
+ createVendor: Vendor;
|
|
|
/** Create a new Zone */
|
|
|
createZone: Zone;
|
|
|
/** Delete an Administrator */
|
|
|
@@ -2533,6 +2553,8 @@ export type Mutation = {
|
|
|
deletePromotion: DeletionResponse;
|
|
|
/** Delete an existing Role */
|
|
|
deleteRole: DeletionResponse;
|
|
|
+ /** Delete a Seller */
|
|
|
+ deleteSeller: DeletionResponse;
|
|
|
/** Delete a ShippingMethod */
|
|
|
deleteShippingMethod: DeletionResponse;
|
|
|
/** Delete an existing Tag */
|
|
|
@@ -2541,6 +2563,8 @@ export type Mutation = {
|
|
|
deleteTaxCategory: DeletionResponse;
|
|
|
/** Delete a TaxRate */
|
|
|
deleteTaxRate: DeletionResponse;
|
|
|
+ /** Delete a Vendor */
|
|
|
+ deleteVendor: DeletionResponse;
|
|
|
/** Delete a Zone */
|
|
|
deleteZone: DeletionResponse;
|
|
|
flushBufferedJobs: Success;
|
|
|
@@ -2635,6 +2659,8 @@ export type Mutation = {
|
|
|
updatePromotion: UpdatePromotionResult;
|
|
|
/** Update an existing Role */
|
|
|
updateRole: Role;
|
|
|
+ /** Update an existing Seller */
|
|
|
+ updateSeller: Seller;
|
|
|
/** Update an existing ShippingMethod */
|
|
|
updateShippingMethod: ShippingMethod;
|
|
|
/** Update an existing Tag */
|
|
|
@@ -2643,6 +2669,8 @@ export type Mutation = {
|
|
|
updateTaxCategory: TaxCategory;
|
|
|
/** Update an existing TaxRate */
|
|
|
updateTaxRate: TaxRate;
|
|
|
+ /** Update an existing Vendor */
|
|
|
+ updateVendor: Vendor;
|
|
|
/** Update an existing Zone */
|
|
|
updateZone: Zone;
|
|
|
};
|
|
|
@@ -2848,6 +2876,11 @@ export type MutationCreateRoleArgs = {
|
|
|
};
|
|
|
|
|
|
|
|
|
+export type MutationCreateSellerArgs = {
|
|
|
+ input: CreateSellerInput;
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
export type MutationCreateShippingMethodArgs = {
|
|
|
input: CreateShippingMethodInput;
|
|
|
};
|
|
|
@@ -2868,6 +2901,11 @@ export type MutationCreateTaxRateArgs = {
|
|
|
};
|
|
|
|
|
|
|
|
|
+export type MutationCreateVendorArgs = {
|
|
|
+ input: CreateVendorInput;
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
export type MutationCreateZoneArgs = {
|
|
|
input: CreateZoneInput;
|
|
|
};
|
|
|
@@ -2997,6 +3035,11 @@ export type MutationDeleteRoleArgs = {
|
|
|
};
|
|
|
|
|
|
|
|
|
+export type MutationDeleteSellerArgs = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
export type MutationDeleteShippingMethodArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
@@ -3017,6 +3060,11 @@ export type MutationDeleteTaxRateArgs = {
|
|
|
};
|
|
|
|
|
|
|
|
|
+export type MutationDeleteVendorArgs = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
export type MutationDeleteZoneArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
@@ -3289,6 +3337,11 @@ export type MutationUpdateRoleArgs = {
|
|
|
};
|
|
|
|
|
|
|
|
|
+export type MutationUpdateSellerArgs = {
|
|
|
+ input: UpdateSellerInput;
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
export type MutationUpdateShippingMethodArgs = {
|
|
|
input: UpdateShippingMethodInput;
|
|
|
};
|
|
|
@@ -3309,6 +3362,11 @@ export type MutationUpdateTaxRateArgs = {
|
|
|
};
|
|
|
|
|
|
|
|
|
+export type MutationUpdateVendorArgs = {
|
|
|
+ input: UpdateVendorInput;
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
export type MutationUpdateZoneArgs = {
|
|
|
input: UpdateZoneInput;
|
|
|
};
|
|
|
@@ -3387,7 +3445,10 @@ export type Order = Node & {
|
|
|
__typename?: 'Order';
|
|
|
/** An order is active as long as the payment process has not been completed */
|
|
|
active: Scalars['Boolean'];
|
|
|
+ aggregateOrder?: Maybe<Order>;
|
|
|
+ aggregateOrderId?: Maybe<Scalars['ID']>;
|
|
|
billingAddress?: Maybe<OrderAddress>;
|
|
|
+ channels: Array<Channel>;
|
|
|
/** A unique code for the Order */
|
|
|
code: Scalars['String'];
|
|
|
/** An array of all coupon codes applied to the Order */
|
|
|
@@ -3411,6 +3472,7 @@ export type Order = Node & {
|
|
|
payments?: Maybe<Array<Payment>>;
|
|
|
/** Promotions applied to the order. Only gets populated after the payment process has completed. */
|
|
|
promotions: Array<Promotion>;
|
|
|
+ sellerOrders?: Maybe<Array<Order>>;
|
|
|
shipping: Scalars['Int'];
|
|
|
shippingAddress?: Maybe<OrderAddress>;
|
|
|
shippingLines: Array<ShippingLine>;
|
|
|
@@ -3439,6 +3501,7 @@ export type Order = Node & {
|
|
|
totalQuantity: Scalars['Int'];
|
|
|
/** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */
|
|
|
totalWithTax: Scalars['Int'];
|
|
|
+ type: OrderType;
|
|
|
updatedAt: Scalars['DateTime'];
|
|
|
};
|
|
|
|
|
|
@@ -3464,6 +3527,7 @@ export type OrderAddress = {
|
|
|
|
|
|
export type OrderFilterParameter = {
|
|
|
active?: InputMaybe<BooleanOperators>;
|
|
|
+ aggregateOrderId?: InputMaybe<IdOperators>;
|
|
|
code?: InputMaybe<StringOperators>;
|
|
|
createdAt?: InputMaybe<DateOperators>;
|
|
|
currencyCode?: InputMaybe<StringOperators>;
|
|
|
@@ -3479,6 +3543,7 @@ export type OrderFilterParameter = {
|
|
|
totalQuantity?: InputMaybe<NumberOperators>;
|
|
|
totalWithTax?: InputMaybe<NumberOperators>;
|
|
|
transactionId?: InputMaybe<StringOperators>;
|
|
|
+ type?: InputMaybe<StringOperators>;
|
|
|
updatedAt?: InputMaybe<DateOperators>;
|
|
|
};
|
|
|
|
|
|
@@ -3648,6 +3713,7 @@ export type OrderProcessState = {
|
|
|
};
|
|
|
|
|
|
export type OrderSortParameter = {
|
|
|
+ aggregateOrderId?: InputMaybe<SortOrder>;
|
|
|
code?: InputMaybe<SortOrder>;
|
|
|
createdAt?: InputMaybe<SortOrder>;
|
|
|
customerLastName?: InputMaybe<SortOrder>;
|
|
|
@@ -3691,6 +3757,12 @@ export type OrderTaxSummary = {
|
|
|
taxTotal: Scalars['Int'];
|
|
|
};
|
|
|
|
|
|
+export enum OrderType {
|
|
|
+ Aggregate = 'Aggregate',
|
|
|
+ Regular = 'Regular',
|
|
|
+ Seller = 'Seller'
|
|
|
+}
|
|
|
+
|
|
|
export type PaginatedList = {
|
|
|
items: Array<Node>;
|
|
|
totalItems: Scalars['Int'];
|
|
|
@@ -3862,6 +3934,8 @@ export enum Permission {
|
|
|
CreateProduct = 'CreateProduct',
|
|
|
/** Grants permission to create Promotion */
|
|
|
CreatePromotion = 'CreatePromotion',
|
|
|
+ /** Grants permission to create Seller */
|
|
|
+ CreateSeller = 'CreateSeller',
|
|
|
/** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
|
|
|
CreateSettings = 'CreateSettings',
|
|
|
/** Grants permission to create ShippingMethod */
|
|
|
@@ -3902,6 +3976,8 @@ export enum Permission {
|
|
|
DeleteProduct = 'DeleteProduct',
|
|
|
/** Grants permission to delete Promotion */
|
|
|
DeletePromotion = 'DeletePromotion',
|
|
|
+ /** Grants permission to delete Seller */
|
|
|
+ DeleteSeller = 'DeleteSeller',
|
|
|
/** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
|
|
|
DeleteSettings = 'DeleteSettings',
|
|
|
/** Grants permission to delete ShippingMethod */
|
|
|
@@ -3946,6 +4022,8 @@ export enum Permission {
|
|
|
ReadProduct = 'ReadProduct',
|
|
|
/** Grants permission to read Promotion */
|
|
|
ReadPromotion = 'ReadPromotion',
|
|
|
+ /** Grants permission to read Seller */
|
|
|
+ ReadSeller = 'ReadSeller',
|
|
|
/** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
|
|
|
ReadSettings = 'ReadSettings',
|
|
|
/** Grants permission to read ShippingMethod */
|
|
|
@@ -3990,6 +4068,8 @@ export enum Permission {
|
|
|
UpdateProduct = 'UpdateProduct',
|
|
|
/** Grants permission to update Promotion */
|
|
|
UpdatePromotion = 'UpdatePromotion',
|
|
|
+ /** Grants permission to update Seller */
|
|
|
+ UpdateSeller = 'UpdateSeller',
|
|
|
/** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
|
|
|
UpdateSettings = 'UpdateSettings',
|
|
|
/** Grants permission to update ShippingMethod */
|
|
|
@@ -4414,6 +4494,8 @@ export type Query = {
|
|
|
role?: Maybe<Role>;
|
|
|
roles: RoleList;
|
|
|
search: SearchResponse;
|
|
|
+ seller?: Maybe<Seller>;
|
|
|
+ sellers: SellerList;
|
|
|
shippingCalculators: Array<ConfigurableOperationDefinition>;
|
|
|
shippingEligibilityCheckers: Array<ConfigurableOperationDefinition>;
|
|
|
shippingMethod?: Maybe<ShippingMethod>;
|
|
|
@@ -4426,6 +4508,8 @@ export type Query = {
|
|
|
taxRates: TaxRateList;
|
|
|
testEligibleShippingMethods: Array<ShippingMethodQuote>;
|
|
|
testShippingMethod: TestShippingMethodResult;
|
|
|
+ vendor?: Maybe<Vendor>;
|
|
|
+ vendors: VendorList;
|
|
|
zone?: Maybe<Zone>;
|
|
|
zones: Array<Zone>;
|
|
|
};
|
|
|
@@ -4620,6 +4704,16 @@ export type QuerySearchArgs = {
|
|
|
};
|
|
|
|
|
|
|
|
|
+export type QuerySellerArgs = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+export type QuerySellersArgs = {
|
|
|
+ options?: InputMaybe<SellerListOptions>;
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
export type QueryShippingMethodArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
@@ -4665,6 +4759,16 @@ export type QueryTestShippingMethodArgs = {
|
|
|
};
|
|
|
|
|
|
|
|
|
+export type QueryVendorArgs = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+export type QueryVendorsArgs = {
|
|
|
+ options?: InputMaybe<VendorListOptions>;
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
export type QueryZoneArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
@@ -4917,6 +5021,55 @@ export type SearchResultSortParameter = {
|
|
|
price?: InputMaybe<SortOrder>;
|
|
|
};
|
|
|
|
|
|
+export type Seller = Node & {
|
|
|
+ __typename?: 'Seller';
|
|
|
+ createdAt: Scalars['DateTime'];
|
|
|
+ customFields?: Maybe<SellerCustomFields>;
|
|
|
+ id: Scalars['ID'];
|
|
|
+ name: Scalars['String'];
|
|
|
+ updatedAt: Scalars['DateTime'];
|
|
|
+};
|
|
|
+
|
|
|
+export type SellerCustomFields = {
|
|
|
+ __typename?: 'SellerCustomFields';
|
|
|
+ connectedAccountId?: Maybe<Scalars['String']>;
|
|
|
+};
|
|
|
+
|
|
|
+export type SellerFilterParameter = {
|
|
|
+ connectedAccountId?: InputMaybe<StringOperators>;
|
|
|
+ createdAt?: InputMaybe<DateOperators>;
|
|
|
+ id?: InputMaybe<IdOperators>;
|
|
|
+ name?: InputMaybe<StringOperators>;
|
|
|
+ updatedAt?: InputMaybe<DateOperators>;
|
|
|
+};
|
|
|
+
|
|
|
+export type SellerList = PaginatedList & {
|
|
|
+ __typename?: 'SellerList';
|
|
|
+ items: Array<Seller>;
|
|
|
+ totalItems: Scalars['Int'];
|
|
|
+};
|
|
|
+
|
|
|
+export type SellerListOptions = {
|
|
|
+ /** Allows the results to be filtered */
|
|
|
+ filter?: InputMaybe<SellerFilterParameter>;
|
|
|
+ /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
|
|
|
+ filterOperator?: InputMaybe<LogicalOperator>;
|
|
|
+ /** Skips the first n results, for use in pagination */
|
|
|
+ skip?: InputMaybe<Scalars['Int']>;
|
|
|
+ /** Specifies which properties to sort the results by */
|
|
|
+ sort?: InputMaybe<SellerSortParameter>;
|
|
|
+ /** Takes n results, for use in pagination */
|
|
|
+ take?: InputMaybe<Scalars['Int']>;
|
|
|
+};
|
|
|
+
|
|
|
+export type SellerSortParameter = {
|
|
|
+ connectedAccountId?: InputMaybe<SortOrder>;
|
|
|
+ createdAt?: InputMaybe<SortOrder>;
|
|
|
+ id?: InputMaybe<SortOrder>;
|
|
|
+ name?: InputMaybe<SortOrder>;
|
|
|
+ updatedAt?: InputMaybe<SortOrder>;
|
|
|
+};
|
|
|
+
|
|
|
export type ServerConfig = {
|
|
|
__typename?: 'ServerConfig';
|
|
|
customFieldConfig: CustomFields;
|
|
|
@@ -5371,6 +5524,7 @@ export type UpdateChannelInput = {
|
|
|
defaultTaxZoneId?: InputMaybe<Scalars['ID']>;
|
|
|
id: Scalars['ID'];
|
|
|
pricesIncludeTax?: InputMaybe<Scalars['Boolean']>;
|
|
|
+ sellerId?: InputMaybe<Scalars['ID']>;
|
|
|
token?: InputMaybe<Scalars['String']>;
|
|
|
};
|
|
|
|
|
|
@@ -5552,6 +5706,16 @@ export type UpdateRoleInput = {
|
|
|
permissions?: InputMaybe<Array<Permission>>;
|
|
|
};
|
|
|
|
|
|
+export type UpdateSellerCustomFieldsInput = {
|
|
|
+ connectedAccountId?: InputMaybe<Scalars['String']>;
|
|
|
+};
|
|
|
+
|
|
|
+export type UpdateSellerInput = {
|
|
|
+ customFields?: InputMaybe<UpdateSellerCustomFieldsInput>;
|
|
|
+ id: Scalars['ID'];
|
|
|
+ name?: InputMaybe<Scalars['String']>;
|
|
|
+};
|
|
|
+
|
|
|
export type UpdateShippingMethodInput = {
|
|
|
calculator?: InputMaybe<ConfigurableOperationInput>;
|
|
|
checker?: InputMaybe<ConfigurableOperationInput>;
|
|
|
@@ -5585,6 +5749,11 @@ export type UpdateTaxRateInput = {
|
|
|
zoneId?: InputMaybe<Scalars['ID']>;
|
|
|
};
|
|
|
|
|
|
+export type UpdateVendorInput = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+ name?: InputMaybe<Scalars['String']>;
|
|
|
+};
|
|
|
+
|
|
|
export type UpdateZoneInput = {
|
|
|
customFields?: InputMaybe<Scalars['JSON']>;
|
|
|
id: Scalars['ID'];
|
|
|
@@ -5604,6 +5773,47 @@ export type User = Node & {
|
|
|
verified: Scalars['Boolean'];
|
|
|
};
|
|
|
|
|
|
+export type Vendor = Node & {
|
|
|
+ __typename?: 'Vendor';
|
|
|
+ createdAt: Scalars['DateTime'];
|
|
|
+ id: Scalars['ID'];
|
|
|
+ name: Scalars['String'];
|
|
|
+ updatedAt: Scalars['DateTime'];
|
|
|
+};
|
|
|
+
|
|
|
+export type VendorFilterParameter = {
|
|
|
+ createdAt?: InputMaybe<DateOperators>;
|
|
|
+ id?: InputMaybe<IdOperators>;
|
|
|
+ name?: InputMaybe<StringOperators>;
|
|
|
+ updatedAt?: InputMaybe<DateOperators>;
|
|
|
+};
|
|
|
+
|
|
|
+export type VendorList = PaginatedList & {
|
|
|
+ __typename?: 'VendorList';
|
|
|
+ items: Array<Vendor>;
|
|
|
+ totalItems: Scalars['Int'];
|
|
|
+};
|
|
|
+
|
|
|
+export type VendorListOptions = {
|
|
|
+ /** Allows the results to be filtered */
|
|
|
+ filter?: InputMaybe<VendorFilterParameter>;
|
|
|
+ /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
|
|
|
+ filterOperator?: InputMaybe<LogicalOperator>;
|
|
|
+ /** Skips the first n results, for use in pagination */
|
|
|
+ skip?: InputMaybe<Scalars['Int']>;
|
|
|
+ /** Specifies which properties to sort the results by */
|
|
|
+ sort?: InputMaybe<VendorSortParameter>;
|
|
|
+ /** Takes n results, for use in pagination */
|
|
|
+ take?: InputMaybe<Scalars['Int']>;
|
|
|
+};
|
|
|
+
|
|
|
+export type VendorSortParameter = {
|
|
|
+ createdAt?: InputMaybe<SortOrder>;
|
|
|
+ id?: InputMaybe<SortOrder>;
|
|
|
+ name?: InputMaybe<SortOrder>;
|
|
|
+ updatedAt?: InputMaybe<SortOrder>;
|
|
|
+};
|
|
|
+
|
|
|
export type Zone = Node & {
|
|
|
__typename?: 'Zone';
|
|
|
createdAt: Scalars['DateTime'];
|