Skip to content

Commit

Permalink
feat(core): Implement adding notes to an Order
Browse files Browse the repository at this point in the history
Relates to #118
  • Loading branch information
michaelbromley committed Jul 3, 2019
1 parent e4927c3 commit 3682cbf
Show file tree
Hide file tree
Showing 8 changed files with 192 additions and 91 deletions.
105 changes: 58 additions & 47 deletions packages/common/src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export type Scalars = {
Upload: any,
};

export type AddNoteToOrderInput = {
id: Scalars['ID'],
note: Scalars['String'],
};

export type Address = Node & {
__typename?: 'Address',
id: Scalars['ID'],
Expand Down Expand Up @@ -1546,12 +1551,6 @@ export type Mutation = {
updateCollection: Collection,
/** Move a Collection to a different parent or index */
moveCollection: Collection,
/** Create a new Country */
createCountry: Country,
/** Update an existing Country */
updateCountry: Country,
/** Delete a Country */
deleteCountry: DeletionResponse,
/** Create a new CustomerGroup */
createCustomerGroup: CustomerGroup,
/** Update an existing CustomerGroup */
Expand All @@ -1560,6 +1559,12 @@ export type Mutation = {
addCustomersToGroup: CustomerGroup,
/** Remove Customers from a CustomerGroup */
removeCustomersFromGroup: CustomerGroup,
/** Create a new Country */
createCountry: Country,
/** Update an existing Country */
updateCountry: Country,
/** Delete a Country */
deleteCountry: DeletionResponse,
/** Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer. */
createCustomer: Customer,
/** Update an existing Customer */
Expand Down Expand Up @@ -1591,6 +1596,7 @@ export type Mutation = {
cancelOrder: Order,
refundOrder: Refund,
settleRefund: Refund,
addNoteToOrder: Order,
/** Update an existing PaymentMethod */
updatePaymentMethod: PaymentMethod,
/** Create a new ProductOptionGroup */
Expand Down Expand Up @@ -1623,14 +1629,14 @@ export type Mutation = {
createShippingMethod: ShippingMethod,
/** Update an existing ShippingMethod */
updateShippingMethod: ShippingMethod,
/** Create a new TaxRate */
createTaxRate: TaxRate,
/** Update an existing TaxRate */
updateTaxRate: TaxRate,
/** Create a new TaxCategory */
createTaxCategory: TaxCategory,
/** Update an existing TaxCategory */
updateTaxCategory: TaxCategory,
/** Create a new TaxRate */
createTaxRate: TaxRate,
/** Update an existing TaxRate */
updateTaxRate: TaxRate,
/** Create a new Zone */
createZone: Zone,
/** Update an existing Zone */
Expand Down Expand Up @@ -1697,21 +1703,6 @@ export type MutationMoveCollectionArgs = {
};


export type MutationCreateCountryArgs = {
input: CreateCountryInput
};


export type MutationUpdateCountryArgs = {
input: UpdateCountryInput
};


export type MutationDeleteCountryArgs = {
id: Scalars['ID']
};


export type MutationCreateCustomerGroupArgs = {
input: CreateCustomerGroupInput
};
Expand All @@ -1734,6 +1725,21 @@ export type MutationRemoveCustomersFromGroupArgs = {
};


export type MutationCreateCountryArgs = {
input: CreateCountryInput
};


export type MutationUpdateCountryArgs = {
input: UpdateCountryInput
};


export type MutationDeleteCountryArgs = {
id: Scalars['ID']
};


export type MutationCreateCustomerArgs = {
input: CreateCustomerInput,
password?: Maybe<Scalars['String']>
Expand Down Expand Up @@ -1833,6 +1839,11 @@ export type MutationSettleRefundArgs = {
};


export type MutationAddNoteToOrderArgs = {
input: AddNoteToOrderInput
};


export type MutationUpdatePaymentMethodArgs = {
input: UpdatePaymentMethodInput
};
Expand Down Expand Up @@ -1923,23 +1934,23 @@ export type MutationUpdateShippingMethodArgs = {
};


export type MutationCreateTaxRateArgs = {
input: CreateTaxRateInput
export type MutationCreateTaxCategoryArgs = {
input: CreateTaxCategoryInput
};


export type MutationUpdateTaxRateArgs = {
input: UpdateTaxRateInput
export type MutationUpdateTaxCategoryArgs = {
input: UpdateTaxCategoryInput
};


export type MutationCreateTaxCategoryArgs = {
input: CreateTaxCategoryInput
export type MutationCreateTaxRateArgs = {
input: CreateTaxRateInput
};


export type MutationUpdateTaxCategoryArgs = {
input: UpdateTaxCategoryInput
export type MutationUpdateTaxRateArgs = {
input: UpdateTaxRateInput
};


Expand Down Expand Up @@ -2475,10 +2486,10 @@ export type Query = {
collections: CollectionList,
collection?: Maybe<Collection>,
collectionFilters: Array<ConfigurableOperation>,
countries: CountryList,
country?: Maybe<Country>,
customerGroups: Array<CustomerGroup>,
customerGroup?: Maybe<CustomerGroup>,
countries: CountryList,
country?: Maybe<Country>,
customers: CustomerList,
customer?: Maybe<Customer>,
facets: FacetList,
Expand All @@ -2505,10 +2516,10 @@ export type Query = {
shippingMethod?: Maybe<ShippingMethod>,
shippingEligibilityCheckers: Array<ConfigurableOperation>,
shippingCalculators: Array<ConfigurableOperation>,
taxRates: TaxRateList,
taxRate?: Maybe<TaxRate>,
taxCategories: Array<TaxCategory>,
taxCategory?: Maybe<TaxCategory>,
taxRates: TaxRateList,
taxRate?: Maybe<TaxRate>,
zones: Array<Zone>,
zone?: Maybe<Zone>,
};
Expand Down Expand Up @@ -2551,17 +2562,17 @@ export type QueryCollectionArgs = {
};


export type QueryCountriesArgs = {
options?: Maybe<CountryListOptions>
export type QueryCustomerGroupArgs = {
id: Scalars['ID']
};


export type QueryCountryArgs = {
id: Scalars['ID']
export type QueryCountriesArgs = {
options?: Maybe<CountryListOptions>
};


export type QueryCustomerGroupArgs = {
export type QueryCountryArgs = {
id: Scalars['ID']
};

Expand Down Expand Up @@ -2678,17 +2689,17 @@ export type QueryShippingMethodArgs = {
};


export type QueryTaxRatesArgs = {
options?: Maybe<TaxRateListOptions>
export type QueryTaxCategoryArgs = {
id: Scalars['ID']
};


export type QueryTaxRateArgs = {
id: Scalars['ID']
export type QueryTaxRatesArgs = {
options?: Maybe<TaxRateListOptions>
};


export type QueryTaxCategoryArgs = {
export type QueryTaxRateArgs = {
id: Scalars['ID']
};

Expand Down
Loading

0 comments on commit 3682cbf

Please sign in to comment.