Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Update GraphQL queries #567

Merged
merged 6 commits into from
Jan 14, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions apollo.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ module.exports = {
client: {
service: {
name: "saleor",
url: "http://localhost:8000/graphql/"
}
}
url: "http://localhost:8000/graphql/",
includes: ["./**/*.js", "./**/*.ts"],
excludes: ["**/__tests__/**/*"],
},
},
};
2 changes: 1 addition & 1 deletion src/@sdk/fragments/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const productVariantFragment = gql`
id
name
}
value {
values {
id
name
value: name
Expand Down
6 changes: 3 additions & 3 deletions src/@sdk/fragments/types/ProductVariantFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface ProductVariantFields_attributes_attribute {
name: string | null;
}

export interface ProductVariantFields_attributes_value {
export interface ProductVariantFields_attributes_values {
__typename: "AttributeValue";
/**
* The ID of the object.
Expand All @@ -145,9 +145,9 @@ export interface ProductVariantFields_attributes {
*/
attribute: ProductVariantFields_attributes_attribute;
/**
* The value or the first value of an attribute.
* Values of an attribute.
*/
value: ProductVariantFields_attributes_value | null;
values: (ProductVariantFields_attributes_values | null)[];
}

export interface ProductVariantFields {
Expand Down
26 changes: 1 addition & 25 deletions src/@sdk/mutations/types/AccountUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
// This file was automatically generated and should not be edited.

import { AccountInput } from "./../../types/globalTypes";
import { AccountInput } from "./../../../../types/globalTypes";

// ====================================================
// GraphQL mutation operation: AccountUpdate
Expand Down Expand Up @@ -52,14 +52,6 @@ export interface AccountUpdate_accountUpdate_user_defaultShippingAddress {
country: AccountUpdate_accountUpdate_user_defaultShippingAddress_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface AccountUpdate_accountUpdate_user_defaultBillingAddress_country {
Expand Down Expand Up @@ -93,14 +85,6 @@ export interface AccountUpdate_accountUpdate_user_defaultBillingAddress {
country: AccountUpdate_accountUpdate_user_defaultBillingAddress_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface AccountUpdate_accountUpdate_user_addresses_country {
Expand Down Expand Up @@ -134,14 +118,6 @@ export interface AccountUpdate_accountUpdate_user_addresses {
country: AccountUpdate_accountUpdate_user_addresses_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface AccountUpdate_accountUpdate_user {
Expand Down
18 changes: 1 addition & 17 deletions src/@sdk/mutations/types/CreateCheckout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
// This file was automatically generated and should not be edited.

import { CheckoutCreateInput } from "./../../types/globalTypes";
import { CheckoutCreateInput } from "./../../../../types/globalTypes";

// ====================================================
// GraphQL mutation operation: CreateCheckout
Expand Down Expand Up @@ -169,14 +169,6 @@ export interface CreateCheckout_checkoutCreate_checkout_billingAddress {
country: CreateCheckout_checkoutCreate_checkout_billingAddress_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface CreateCheckout_checkoutCreate_checkout_shippingAddress_country {
Expand Down Expand Up @@ -210,14 +202,6 @@ export interface CreateCheckout_checkoutCreate_checkout_shippingAddress {
country: CreateCheckout_checkoutCreate_checkout_shippingAddress_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface CreateCheckout_checkoutCreate_checkout_availableShippingMethods_price {
Expand Down
26 changes: 1 addition & 25 deletions src/@sdk/mutations/types/CreateUserAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
// This file was automatically generated and should not be edited.

import { AddressInput } from "./../../types/globalTypes";
import { AddressInput } from "./../../../../types/globalTypes";

// ====================================================
// GraphQL mutation operation: CreateUserAddress
Expand Down Expand Up @@ -52,14 +52,6 @@ export interface CreateUserAddress_accountAddressCreate_user_defaultShippingAddr
country: CreateUserAddress_accountAddressCreate_user_defaultShippingAddress_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface CreateUserAddress_accountAddressCreate_user_defaultBillingAddress_country {
Expand Down Expand Up @@ -93,14 +85,6 @@ export interface CreateUserAddress_accountAddressCreate_user_defaultBillingAddre
country: CreateUserAddress_accountAddressCreate_user_defaultBillingAddress_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface CreateUserAddress_accountAddressCreate_user_addresses_country {
Expand Down Expand Up @@ -134,14 +118,6 @@ export interface CreateUserAddress_accountAddressCreate_user_addresses {
country: CreateUserAddress_accountAddressCreate_user_addresses_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface CreateUserAddress_accountAddressCreate_user {
Expand Down
24 changes: 0 additions & 24 deletions src/@sdk/mutations/types/DeleteUserAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ export interface DeleteUserAddress_accountAddressDelete_user_defaultShippingAddr
country: DeleteUserAddress_accountAddressDelete_user_defaultShippingAddress_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface DeleteUserAddress_accountAddressDelete_user_defaultBillingAddress_country {
Expand Down Expand Up @@ -91,14 +83,6 @@ export interface DeleteUserAddress_accountAddressDelete_user_defaultBillingAddre
country: DeleteUserAddress_accountAddressDelete_user_defaultBillingAddress_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface DeleteUserAddress_accountAddressDelete_user_addresses_country {
Expand Down Expand Up @@ -132,14 +116,6 @@ export interface DeleteUserAddress_accountAddressDelete_user_addresses {
country: DeleteUserAddress_accountAddressDelete_user_addresses_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface DeleteUserAddress_accountAddressDelete_user {
Expand Down
26 changes: 1 addition & 25 deletions src/@sdk/mutations/types/SetCustomerDefaultAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
// This file was automatically generated and should not be edited.

import { AddressTypeEnum } from "./../../types/globalTypes";
import { AddressTypeEnum } from "./../../../../types/globalTypes";

// ====================================================
// GraphQL mutation operation: SetCustomerDefaultAddress
Expand Down Expand Up @@ -52,14 +52,6 @@ export interface SetCustomerDefaultAddress_accountSetDefaultAddress_user_default
country: SetCustomerDefaultAddress_accountSetDefaultAddress_user_defaultShippingAddress_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface SetCustomerDefaultAddress_accountSetDefaultAddress_user_defaultBillingAddress_country {
Expand Down Expand Up @@ -93,14 +85,6 @@ export interface SetCustomerDefaultAddress_accountSetDefaultAddress_user_default
country: SetCustomerDefaultAddress_accountSetDefaultAddress_user_defaultBillingAddress_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface SetCustomerDefaultAddress_accountSetDefaultAddress_user_addresses_country {
Expand Down Expand Up @@ -134,14 +118,6 @@ export interface SetCustomerDefaultAddress_accountSetDefaultAddress_user_address
country: SetCustomerDefaultAddress_accountSetDefaultAddress_user_addresses_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface SetCustomerDefaultAddress_accountSetDefaultAddress_user {
Expand Down
18 changes: 1 addition & 17 deletions src/@sdk/mutations/types/UpdateCheckoutBillingAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
// This file was automatically generated and should not be edited.

import { AddressInput } from "./../../types/globalTypes";
import { AddressInput } from "./../../../../types/globalTypes";

// ====================================================
// GraphQL mutation operation: UpdateCheckoutBillingAddress
Expand Down Expand Up @@ -169,14 +169,6 @@ export interface UpdateCheckoutBillingAddress_checkoutBillingAddressUpdate_check
country: UpdateCheckoutBillingAddress_checkoutBillingAddressUpdate_checkout_billingAddress_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface UpdateCheckoutBillingAddress_checkoutBillingAddressUpdate_checkout_shippingAddress_country {
Expand Down Expand Up @@ -210,14 +202,6 @@ export interface UpdateCheckoutBillingAddress_checkoutBillingAddressUpdate_check
country: UpdateCheckoutBillingAddress_checkoutBillingAddressUpdate_checkout_shippingAddress_country;
countryArea: string;
phone: string | null;
/**
* Address is user's default billing address.
*/
isDefaultBillingAddress: boolean | null;
/**
* Address is user's default shipping address.
*/
isDefaultShippingAddress: boolean | null;
}

export interface UpdateCheckoutBillingAddress_checkoutBillingAddressUpdate_checkout_availableShippingMethods_price {
Expand Down
2 changes: 1 addition & 1 deletion src/@sdk/mutations/types/UpdateCheckoutLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
// This file was automatically generated and should not be edited.

import { CheckoutLineInput } from "./../../types/globalTypes";
import { CheckoutLineInput } from "./../../../../types/globalTypes";

// ====================================================
// GraphQL mutation operation: UpdateCheckoutLine
Expand Down
Loading