From 8a6f05dd893d39207610492d566aadb015d6076a Mon Sep 17 00:00:00 2001 From: Daniil Bratukhin Date: Tue, 1 Dec 2020 01:48:15 +0300 Subject: [PATCH] style: fix eslint issues --- src/customer/API.ts | 6 ++++-- src/integration/Graph/applied_coupon_code.d.ts | 2 +- src/integration/Graph/applied_tax.d.ts | 2 +- src/integration/Graph/billing_address.d.ts | 2 +- src/integration/Graph/cart.d.ts | 2 +- src/integration/Graph/cart_include_template.d.ts | 2 +- src/integration/Graph/cart_template.d.ts | 2 +- src/integration/Graph/checkout_template.d.ts | 2 +- src/integration/Graph/checkout_types.d.ts | 2 +- src/integration/Graph/countries.d.ts | 2 +- src/integration/Graph/coupon.d.ts | 2 +- src/integration/Graph/coupon_code.d.ts | 2 +- src/integration/Graph/coupon_code_transaction.d.ts | 2 +- src/integration/Graph/coupon_detail.d.ts | 2 +- src/integration/Graph/coupon_item_category.d.ts | 2 +- src/integration/Graph/create_user.d.ts | 2 +- src/integration/Graph/custom_field.d.ts | 2 +- src/integration/Graph/customer.d.ts | 2 +- src/integration/Graph/customer_address.d.ts | 2 +- src/integration/Graph/customer_email_template.d.ts | 2 +- src/integration/Graph/customer_password_hash_types.d.ts | 2 +- src/integration/Graph/customer_portal_settings.d.ts | 2 +- src/integration/Graph/default_payment_method.d.ts | 2 +- src/integration/Graph/default_store.d.ts | 2 +- src/integration/Graph/default_templates.d.ts | 2 +- src/integration/Graph/discount.d.ts | 2 +- src/integration/Graph/discount_detail.d.ts | 2 +- src/integration/Graph/downloadable.d.ts | 2 +- src/integration/Graph/downloadable_item_categories.d.ts | 2 +- src/integration/Graph/downloadable_purchase.d.ts | 2 +- src/integration/Graph/email_template.d.ts | 2 +- src/integration/Graph/error_entry.d.ts | 2 +- src/integration/Graph/fraud_protection.d.ts | 2 +- src/integration/Graph/hosted_payment_gateway.d.ts | 2 +- src/integration/Graph/hosted_payment_gateways.d.ts | 2 +- src/integration/Graph/integration.d.ts | 2 +- src/integration/Graph/item.d.ts | 2 +- src/integration/Graph/item_categories.d.ts | 2 +- src/integration/Graph/item_category.d.ts | 2 +- src/integration/Graph/item_option.d.ts | 2 +- src/integration/Graph/item_options.d.ts | 2 +- src/integration/Graph/items.d.ts | 2 +- src/integration/Graph/language_override.d.ts | 2 +- src/integration/Graph/language_overrides.d.ts | 2 +- src/integration/Graph/language_strings.d.ts | 2 +- src/integration/Graph/languages.d.ts | 2 +- src/integration/Graph/last_transaction.d.ts | 2 +- src/integration/Graph/locale_codes.d.ts | 2 +- src/integration/Graph/native_integration.d.ts | 2 +- src/integration/Graph/native_integrations.d.ts | 2 +- src/integration/Graph/original_transaction.d.ts | 2 +- src/integration/Graph/payment.d.ts | 2 +- src/integration/Graph/payment_gateway.d.ts | 2 +- src/integration/Graph/payment_gateways.d.ts | 2 +- src/integration/Graph/payment_method_expiring.d.ts | 2 +- src/integration/Graph/payment_method_set.d.ts | 2 +- .../Graph/payment_method_set_fraud_protection.d.ts | 2 +- .../Graph/payment_method_set_fraud_protections.d.ts | 2 +- .../Graph/payment_method_set_hosted_payment_gateway.d.ts | 2 +- .../Graph/payment_method_set_hosted_payment_gateways.d.ts | 2 +- src/integration/Graph/payment_method_sets.d.ts | 2 +- src/integration/Graph/payments.d.ts | 2 +- src/integration/Graph/property_helpers.d.ts | 2 +- src/integration/Graph/receipt_template.d.ts | 2 +- src/integration/Graph/receipt_templates.d.ts | 2 +- src/integration/Graph/regions.d.ts | 2 +- src/integration/Graph/reporting.d.ts | 2 +- src/integration/Graph/reporting_email_exists.d.ts | 2 +- src/integration/Graph/reporting_store_domain_exists.d.ts | 2 +- src/integration/Graph/shipment.d.ts | 2 +- src/integration/Graph/shipments.d.ts | 2 +- src/integration/Graph/shipping_address_types.d.ts | 2 +- src/integration/Graph/shipping_container.d.ts | 2 +- src/integration/Graph/shipping_containers.d.ts | 2 +- src/integration/Graph/shipping_drop_type.d.ts | 2 +- src/integration/Graph/shipping_drop_types.d.ts | 2 +- src/integration/Graph/shipping_method.d.ts | 2 +- src/integration/Graph/shipping_methods.d.ts | 2 +- src/integration/Graph/shipping_service.d.ts | 2 +- src/integration/Graph/shipping_services.d.ts | 2 +- src/integration/Graph/store.d.ts | 2 +- src/integration/Graph/store_shipping_method.d.ts | 2 +- src/integration/Graph/store_shipping_service.d.ts | 2 +- src/integration/Graph/store_shipping_services.d.ts | 2 +- src/integration/Graph/store_version.d.ts | 2 +- src/integration/Graph/store_versions.d.ts | 2 +- src/integration/Graph/stores.d.ts | 2 +- src/integration/Graph/subscription.d.ts | 2 +- src/integration/Graph/subscription_settings.d.ts | 2 +- src/integration/Graph/subscriptions.d.ts | 2 +- src/integration/Graph/tax.d.ts | 2 +- src/integration/Graph/tax_item_categories.d.ts | 2 +- src/integration/Graph/tax_item_category.d.ts | 2 +- src/integration/Graph/taxes.d.ts | 2 +- src/integration/Graph/template_config.d.ts | 2 +- src/integration/Graph/template_set.d.ts | 2 +- src/integration/Graph/template_sets.d.ts | 2 +- src/integration/Graph/timezones.d.ts | 2 +- src/integration/Graph/transaction.d.ts | 2 +- src/integration/Graph/transaction_log.d.ts | 2 +- src/integration/Graph/transaction_log_detail.d.ts | 2 +- src/integration/Graph/transaction_log_details.d.ts | 2 +- src/integration/Graph/transaction_logs.d.ts | 2 +- src/integration/Graph/transactions.d.ts | 2 +- src/integration/Graph/user.d.ts | 2 +- src/integration/Graph/user_access.d.ts | 2 +- src/integration/Graph/user_accesses.d.ts | 2 +- src/integration/Graph/users.d.ts | 2 +- tests/integration/API.test.ts | 2 +- 109 files changed, 112 insertions(+), 110 deletions(-) diff --git a/src/customer/API.ts b/src/customer/API.ts index adfd60c..e7965bc 100644 --- a/src/customer/API.ts +++ b/src/customer/API.ts @@ -1,6 +1,8 @@ import * as Core from '../core'; + import type { Credentials, Session } from './types'; import { Headers, fetch } from 'cross-fetch'; + import type { Graph } from './Graph'; export class API extends Core.API { @@ -21,9 +23,9 @@ export class API extends Core.API { try { response = await fetch(new URL('authenticate', this.base).toString(), { + body: JSON.stringify(credentials), headers: new Headers({ 'Content-Type': 'application/json' }), method: 'POST', - body: JSON.stringify(credentials), }); } catch (err) { throw new Core.API.AuthError({ @@ -51,9 +53,9 @@ export class API extends Core.API { try { response = await fetch(new URL('forgot_password', this.base).toString(), { + body: JSON.stringify({ email }), headers: new Headers({ 'Content-Type': 'application/json' }), method: 'POST', - body: JSON.stringify({ email }), }); } catch (err) { throw new Core.API.AuthError({ diff --git a/src/integration/Graph/applied_coupon_code.d.ts b/src/integration/Graph/applied_coupon_code.d.ts index 59c4a8e..536aee0 100644 --- a/src/integration/Graph/applied_coupon_code.d.ts +++ b/src/integration/Graph/applied_coupon_code.d.ts @@ -1,8 +1,8 @@ import type { Cart } from './cart'; import type { Coupon } from './coupon'; import type { CouponCode } from './coupon_code'; -import type { Store } from './store'; import type { Graph } from '../../core'; +import type { Store } from './store'; export interface AppliedCouponCode extends Graph { curie: 'fx:applied_coupon_code'; diff --git a/src/integration/Graph/applied_tax.d.ts b/src/integration/Graph/applied_tax.d.ts index 1e55ab1..33aa47a 100644 --- a/src/integration/Graph/applied_tax.d.ts +++ b/src/integration/Graph/applied_tax.d.ts @@ -1,7 +1,7 @@ +import type { Graph } from '../../core'; import type { Store } from './store'; import type { Tax } from './tax'; import type { Transaction } from './transaction'; -import type { Graph } from '../../core'; export interface AppliedTax extends Graph { curie: 'fx:applied_tax'; diff --git a/src/integration/Graph/billing_address.d.ts b/src/integration/Graph/billing_address.d.ts index 5616387..ddd8727 100644 --- a/src/integration/Graph/billing_address.d.ts +++ b/src/integration/Graph/billing_address.d.ts @@ -1,9 +1,9 @@ import type { BillingAddresses } from './billing_addresses'; import type { Customer } from './customer'; import type { CustomerAddress } from './customer_address'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { Transaction } from './transaction'; -import type { Graph } from '../../core'; export interface BillingAddress extends Graph { curie: 'fx:billing_address'; diff --git a/src/integration/Graph/cart.d.ts b/src/integration/Graph/cart.d.ts index de4a4a2..16d34c5 100644 --- a/src/integration/Graph/cart.d.ts +++ b/src/integration/Graph/cart.d.ts @@ -4,10 +4,10 @@ import type { CreateSession } from './create_session'; import type { CustomFields } from './custom_fields'; import type { Customer } from './customer'; import type { Discounts } from './discounts'; +import type { Graph } from '../../core'; import type { Items } from './items'; import type { Store } from './store'; import type { Subscription } from './subscription'; -import type { Graph } from '../../core'; export interface Cart extends Graph { curie: 'fx:cart'; diff --git a/src/integration/Graph/cart_include_template.d.ts b/src/integration/Graph/cart_include_template.d.ts index f3eb69a..248cbe5 100644 --- a/src/integration/Graph/cart_include_template.d.ts +++ b/src/integration/Graph/cart_include_template.d.ts @@ -1,7 +1,7 @@ import type { Cache } from './cache'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { TemplateSets } from './template_sets'; -import type { Graph } from '../../core'; export interface CartIncludeTemplate extends Graph { curie: 'fx:cart_include_template'; diff --git a/src/integration/Graph/cart_template.d.ts b/src/integration/Graph/cart_template.d.ts index b3a0cb4..23ce4c9 100644 --- a/src/integration/Graph/cart_template.d.ts +++ b/src/integration/Graph/cart_template.d.ts @@ -1,7 +1,7 @@ import type { Cache } from './cache'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { TemplateSets } from './template_sets'; -import type { Graph } from '../../core'; export interface CartTemplate extends Graph { curie: 'fx:cart_template'; diff --git a/src/integration/Graph/checkout_template.d.ts b/src/integration/Graph/checkout_template.d.ts index c1d2828..9bdcf20 100644 --- a/src/integration/Graph/checkout_template.d.ts +++ b/src/integration/Graph/checkout_template.d.ts @@ -1,8 +1,8 @@ import type { Cache } from './cache'; import type { Encode } from './encode'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { TemplateSets } from './template_sets'; -import type { Graph } from '../../core'; export interface CheckoutTemplate extends Graph { curie: 'fx:checkout_template'; diff --git a/src/integration/Graph/checkout_types.d.ts b/src/integration/Graph/checkout_types.d.ts index 0819dfc..ebf1900 100644 --- a/src/integration/Graph/checkout_types.d.ts +++ b/src/integration/Graph/checkout_types.d.ts @@ -1,5 +1,5 @@ -import type { PropertyHelpers } from './property_helpers'; import type { Graph } from '../../core'; +import type { PropertyHelpers } from './property_helpers'; export interface CheckoutTypes extends Graph { curie: 'fx:checkout_types'; diff --git a/src/integration/Graph/countries.d.ts b/src/integration/Graph/countries.d.ts index bde080f..01aa735 100644 --- a/src/integration/Graph/countries.d.ts +++ b/src/integration/Graph/countries.d.ts @@ -1,5 +1,5 @@ -import type { PropertyHelpers } from './property_helpers'; import type { Graph } from '../../core'; +import type { PropertyHelpers } from './property_helpers'; export interface Countries extends Graph { curie: 'fx:countries'; diff --git a/src/integration/Graph/coupon.d.ts b/src/integration/Graph/coupon.d.ts index b1fdcf5..aea86c6 100644 --- a/src/integration/Graph/coupon.d.ts +++ b/src/integration/Graph/coupon.d.ts @@ -1,8 +1,8 @@ import type { CouponCodes } from './coupon_codes'; import type { CouponItemCategories } from './coupon_item_categories'; import type { GenerateCodes } from './generate_codes'; -import type { Store } from './store'; import type { Graph } from '../../core'; +import type { Store } from './store'; export interface Coupon extends Graph { curie: 'fx:coupon'; diff --git a/src/integration/Graph/coupon_code.d.ts b/src/integration/Graph/coupon_code.d.ts index 2d48e70..64cf1c5 100644 --- a/src/integration/Graph/coupon_code.d.ts +++ b/src/integration/Graph/coupon_code.d.ts @@ -1,7 +1,7 @@ import type { Coupon } from './coupon'; import type { CouponCodeTransactions } from './coupon_code_transactions'; -import type { Store } from './store'; import type { Graph } from '../../core'; +import type { Store } from './store'; export interface CouponCode extends Graph { curie: 'fx:coupon_code'; diff --git a/src/integration/Graph/coupon_code_transaction.d.ts b/src/integration/Graph/coupon_code_transaction.d.ts index 962ff83..7ecb6d9 100644 --- a/src/integration/Graph/coupon_code_transaction.d.ts +++ b/src/integration/Graph/coupon_code_transaction.d.ts @@ -1,8 +1,8 @@ import type { Coupon } from './coupon'; import type { CouponCode } from './coupon_code'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { Transaction } from './transaction'; -import type { Graph } from '../../core'; export interface CouponCodeTransaction extends Graph { curie: 'fx:coupon_code_transaction'; diff --git a/src/integration/Graph/coupon_detail.d.ts b/src/integration/Graph/coupon_detail.d.ts index 8ce32a8..813ce42 100644 --- a/src/integration/Graph/coupon_detail.d.ts +++ b/src/integration/Graph/coupon_detail.d.ts @@ -1,9 +1,9 @@ import type { Coupon } from './coupon'; import type { CouponCode } from './coupon_code'; +import type { Graph } from '../../core'; import type { Item } from './item'; import type { Store } from './store'; import type { Transaction } from './transaction'; -import type { Graph } from '../../core'; export interface CouponDetail extends Graph { curie: 'fx:coupon_detail'; diff --git a/src/integration/Graph/coupon_item_category.d.ts b/src/integration/Graph/coupon_item_category.d.ts index 4194943..c1b1933 100644 --- a/src/integration/Graph/coupon_item_category.d.ts +++ b/src/integration/Graph/coupon_item_category.d.ts @@ -1,7 +1,7 @@ import type { Coupon } from './coupon'; +import type { Graph } from '../../core'; import type { ItemCategory } from './item_category'; import type { Store } from './store'; -import type { Graph } from '../../core'; export interface CouponItemCategory extends Graph { curie: 'fx:coupon_item_category'; diff --git a/src/integration/Graph/create_user.d.ts b/src/integration/Graph/create_user.d.ts index b1cf96f..3f47f76 100644 --- a/src/integration/Graph/create_user.d.ts +++ b/src/integration/Graph/create_user.d.ts @@ -1,5 +1,5 @@ -import type { User } from './user'; import type { Graph } from '../../core'; +import type { User } from './user'; export interface CreateUser extends Graph { curie: 'fx:create_user'; diff --git a/src/integration/Graph/custom_field.d.ts b/src/integration/Graph/custom_field.d.ts index c0c550f..bd3d0d3 100644 --- a/src/integration/Graph/custom_field.d.ts +++ b/src/integration/Graph/custom_field.d.ts @@ -1,6 +1,6 @@ +import type { Graph } from '../../core'; import type { Store } from './store'; import type { Transaction } from './transaction'; -import type { Graph } from '../../core'; export interface CustomField extends Graph { curie: 'fx:custom_field'; diff --git a/src/integration/Graph/customer.d.ts b/src/integration/Graph/customer.d.ts index 848d7c7..1ef3a5e 100644 --- a/src/integration/Graph/customer.d.ts +++ b/src/integration/Graph/customer.d.ts @@ -3,10 +3,10 @@ import type { CustomerAddresses } from './customer_addresses'; import type { DefaultBillingAddress } from './default_billing_address'; import type { DefaultPaymentMethod } from './default_payment_method'; import type { DefaultShippingAddress } from './default_shipping_address'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { Subscriptions } from './subscriptions'; import type { Transactions } from './transactions'; -import type { Graph } from '../../core'; export interface Customer extends Graph { curie: 'fx:customer'; diff --git a/src/integration/Graph/customer_address.d.ts b/src/integration/Graph/customer_address.d.ts index 571fbd3..d283548 100644 --- a/src/integration/Graph/customer_address.d.ts +++ b/src/integration/Graph/customer_address.d.ts @@ -1,6 +1,6 @@ import type { Customer } from './customer'; -import type { Store } from './store'; import type { Graph } from '../../core'; +import type { Store } from './store'; export interface CustomerAddress extends Graph { curie: 'fx:customer_address'; diff --git a/src/integration/Graph/customer_email_template.d.ts b/src/integration/Graph/customer_email_template.d.ts index d35123c..2c6d6c4 100644 --- a/src/integration/Graph/customer_email_template.d.ts +++ b/src/integration/Graph/customer_email_template.d.ts @@ -1,8 +1,8 @@ import type { Cache } from './cache'; import type { EmailTemplate } from './email_template'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { TemplateSets } from './template_sets'; -import type { Graph } from '../../core'; export interface CustomerEmailTemplate extends Graph { curie: 'fx:customer_email_template'; diff --git a/src/integration/Graph/customer_password_hash_types.d.ts b/src/integration/Graph/customer_password_hash_types.d.ts index 7d51efd..5d56c36 100644 --- a/src/integration/Graph/customer_password_hash_types.d.ts +++ b/src/integration/Graph/customer_password_hash_types.d.ts @@ -1,5 +1,5 @@ -import type { PropertyHelpers } from './property_helpers'; import type { Graph } from '../../core'; +import type { PropertyHelpers } from './property_helpers'; export interface CustomerPasswordHashTypes extends Graph { curie: 'fx:customer_password_hash_types'; diff --git a/src/integration/Graph/customer_portal_settings.d.ts b/src/integration/Graph/customer_portal_settings.d.ts index d312b46..e015688 100644 --- a/src/integration/Graph/customer_portal_settings.d.ts +++ b/src/integration/Graph/customer_portal_settings.d.ts @@ -1,5 +1,5 @@ -import type { Store } from './store'; import type { Graph } from '../../core'; +import type { Store } from './store'; export interface CustomerPortalSettings extends Graph { curie: 'fx:customer_portal_settings'; diff --git a/src/integration/Graph/default_payment_method.d.ts b/src/integration/Graph/default_payment_method.d.ts index bc0f351..09ffd8e 100644 --- a/src/integration/Graph/default_payment_method.d.ts +++ b/src/integration/Graph/default_payment_method.d.ts @@ -1,6 +1,6 @@ import type { Customer } from './customer'; -import type { Store } from './store'; import type { Graph } from '../../core'; +import type { Store } from './store'; export interface DefaultPaymentMethod extends Graph { curie: 'fx:default_payment_method'; diff --git a/src/integration/Graph/default_store.d.ts b/src/integration/Graph/default_store.d.ts index 486e307..5858a44 100644 --- a/src/integration/Graph/default_store.d.ts +++ b/src/integration/Graph/default_store.d.ts @@ -1,5 +1,5 @@ -import type { Store } from './store'; import type { Graph } from '../../core'; +import type { Store } from './store'; export interface DefaultStore extends Graph { curie: 'fx:default_store'; diff --git a/src/integration/Graph/default_templates.d.ts b/src/integration/Graph/default_templates.d.ts index d958515..db01c57 100644 --- a/src/integration/Graph/default_templates.d.ts +++ b/src/integration/Graph/default_templates.d.ts @@ -2,9 +2,9 @@ import type { CartIncludeTemplates } from './cart_include_templates'; import type { CartTemplates } from './cart_templates'; import type { CheckoutTemplates } from './checkout_templates'; import type { EmailTemplates } from './email_templates'; +import type { Graph } from '../../core'; import type { PropertyHelpers } from './property_helpers'; import type { ReceiptTemplates } from './receipt_templates'; -import type { Graph } from '../../core'; export interface DefaultTemplates extends Graph { curie: 'fx:default_templates'; diff --git a/src/integration/Graph/discount.d.ts b/src/integration/Graph/discount.d.ts index f3e7049..c0a0a59 100644 --- a/src/integration/Graph/discount.d.ts +++ b/src/integration/Graph/discount.d.ts @@ -1,9 +1,9 @@ import type { Coupon } from './coupon'; import type { CouponCode } from './coupon_code'; import type { Customer } from './customer'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { Transaction } from './transaction'; -import type { Graph } from '../../core'; export interface Discount extends Graph { curie: 'fx:discount'; diff --git a/src/integration/Graph/discount_detail.d.ts b/src/integration/Graph/discount_detail.d.ts index 7f57cb3..fc5d2f7 100644 --- a/src/integration/Graph/discount_detail.d.ts +++ b/src/integration/Graph/discount_detail.d.ts @@ -1,7 +1,7 @@ +import type { Graph } from '../../core'; import type { Item } from './item'; import type { Store } from './store'; import type { Transaction } from './transaction'; -import type { Graph } from '../../core'; export interface DiscountDetail extends Graph { curie: 'fx:discount_detail'; diff --git a/src/integration/Graph/downloadable.d.ts b/src/integration/Graph/downloadable.d.ts index 5f20056..959fa12 100644 --- a/src/integration/Graph/downloadable.d.ts +++ b/src/integration/Graph/downloadable.d.ts @@ -1,7 +1,7 @@ import type { DownloadableItemCategories } from './downloadable_item_categories'; +import type { Graph } from '../../core'; import type { ItemCategory } from './item_category'; import type { Store } from './store'; -import type { Graph } from '../../core'; export interface Downloadable extends Graph { curie: 'fx:downloadable'; diff --git a/src/integration/Graph/downloadable_item_categories.d.ts b/src/integration/Graph/downloadable_item_categories.d.ts index e323392..b0908a7 100644 --- a/src/integration/Graph/downloadable_item_categories.d.ts +++ b/src/integration/Graph/downloadable_item_categories.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { ItemCategory } from './item_category'; import type { Graph } from '../../core'; +import type { ItemCategory } from './item_category'; export interface DownloadableItemCategories extends Graph { curie: 'fx:downloadable_item_categories'; diff --git a/src/integration/Graph/downloadable_purchase.d.ts b/src/integration/Graph/downloadable_purchase.d.ts index ec38e0f..12bfa32 100644 --- a/src/integration/Graph/downloadable_purchase.d.ts +++ b/src/integration/Graph/downloadable_purchase.d.ts @@ -1,9 +1,9 @@ import type { Customer } from './customer'; import type { Downloadable } from './downloadable'; +import type { Graph } from '../../core'; import type { Item } from './item'; import type { Store } from './store'; import type { Transaction } from './transaction'; -import type { Graph } from '../../core'; export interface DownloadablePurchase extends Graph { curie: 'fx:downloadable_purchase'; diff --git a/src/integration/Graph/email_template.d.ts b/src/integration/Graph/email_template.d.ts index daef5bb..079e24b 100644 --- a/src/integration/Graph/email_template.d.ts +++ b/src/integration/Graph/email_template.d.ts @@ -1,7 +1,7 @@ import type { Cache } from './cache'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { TemplateSets } from './template_sets'; -import type { Graph } from '../../core'; export interface EmailTemplate extends Graph { curie: 'fx:email_template'; diff --git a/src/integration/Graph/error_entry.d.ts b/src/integration/Graph/error_entry.d.ts index f966956..9015865 100644 --- a/src/integration/Graph/error_entry.d.ts +++ b/src/integration/Graph/error_entry.d.ts @@ -1,5 +1,5 @@ -import type { Store } from './store'; import type { Graph } from '../../core'; +import type { Store } from './store'; export interface ErrorEntry extends Graph { curie: 'fx:error_entry'; diff --git a/src/integration/Graph/fraud_protection.d.ts b/src/integration/Graph/fraud_protection.d.ts index 7ae3d5f..fe963a5 100644 --- a/src/integration/Graph/fraud_protection.d.ts +++ b/src/integration/Graph/fraud_protection.d.ts @@ -1,6 +1,6 @@ +import type { Graph } from '../../core'; import type { PaymentMethodSets } from './payment_method_sets'; import type { Store } from './store'; -import type { Graph } from '../../core'; export interface FraudProtection extends Graph { curie: 'fx:fraud_protection'; diff --git a/src/integration/Graph/hosted_payment_gateway.d.ts b/src/integration/Graph/hosted_payment_gateway.d.ts index 67756c1..81d8779 100644 --- a/src/integration/Graph/hosted_payment_gateway.d.ts +++ b/src/integration/Graph/hosted_payment_gateway.d.ts @@ -1,5 +1,5 @@ -import { PaymentGateway } from './payment_gateway'; import type { Graph } from '../../core'; +import type { PaymentGateway } from './payment_gateway'; export interface HostedPaymentGateway extends Graph { curie: 'fx:hosted_payment_gateway'; diff --git a/src/integration/Graph/hosted_payment_gateways.d.ts b/src/integration/Graph/hosted_payment_gateways.d.ts index 7c3237e..d742081 100644 --- a/src/integration/Graph/hosted_payment_gateways.d.ts +++ b/src/integration/Graph/hosted_payment_gateways.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { HostedPaymentGateway } from './hosted_payment_gateway'; import type { Graph } from '../../core'; +import type { HostedPaymentGateway } from './hosted_payment_gateway'; export interface HostedPaymentGateways extends Graph { curie: 'fx:hosted_payment_gateways'; diff --git a/src/integration/Graph/integration.d.ts b/src/integration/Graph/integration.d.ts index 6314074..44feb61 100644 --- a/src/integration/Graph/integration.d.ts +++ b/src/integration/Graph/integration.d.ts @@ -1,7 +1,7 @@ import type { Client } from './client'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { User } from './user'; -import type { Graph } from '../../core'; export interface Integration extends Graph { curie: 'fx:integration'; diff --git a/src/integration/Graph/item.d.ts b/src/integration/Graph/item.d.ts index f7d8f9b..428c0fe 100644 --- a/src/integration/Graph/item.d.ts +++ b/src/integration/Graph/item.d.ts @@ -1,12 +1,12 @@ import type { Attributes } from './attributes'; import type { CouponDetails } from './coupon_details'; import type { DiscountDetails } from './discount_details'; +import type { Graph } from '../../core'; import type { ItemCategory } from './item_category'; import type { ItemOptions } from './item_options'; import type { Shipment } from './shipment'; import type { Store } from './store'; import type { Transaction } from './transaction'; -import type { Graph } from '../../core'; export interface Item extends Graph { curie: 'fx:item'; diff --git a/src/integration/Graph/item_categories.d.ts b/src/integration/Graph/item_categories.d.ts index 8bfcd2f..b8e4781 100644 --- a/src/integration/Graph/item_categories.d.ts +++ b/src/integration/Graph/item_categories.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { ItemCategory } from './item_category'; import type { Graph } from '../../core'; +import type { ItemCategory } from './item_category'; export interface ItemCategories extends Graph { curie: 'fx:item_categories'; diff --git a/src/integration/Graph/item_category.d.ts b/src/integration/Graph/item_category.d.ts index 53e1ec0..187c164 100644 --- a/src/integration/Graph/item_category.d.ts +++ b/src/integration/Graph/item_category.d.ts @@ -1,7 +1,7 @@ import type { EmailTemplates } from './email_templates'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { TaxItemCategories } from './tax_item_categories'; -import type { Graph } from '../../core'; export interface ItemCategory extends Graph { curie: 'fx:item_category'; diff --git a/src/integration/Graph/item_option.d.ts b/src/integration/Graph/item_option.d.ts index 51b4310..8a4e6c6 100644 --- a/src/integration/Graph/item_option.d.ts +++ b/src/integration/Graph/item_option.d.ts @@ -1,7 +1,7 @@ +import type { Graph } from '../../core'; import type { Item } from './item'; import type { Store } from './store'; import type { Transaction } from './transaction'; -import type { Graph } from '../../core'; export interface ItemOption extends Graph { curie: 'fx:item_option'; diff --git a/src/integration/Graph/item_options.d.ts b/src/integration/Graph/item_options.d.ts index 00e1fc4..ddca8f9 100644 --- a/src/integration/Graph/item_options.d.ts +++ b/src/integration/Graph/item_options.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { ItemOption } from './item_option'; import type { Graph } from '../../core'; +import type { ItemOption } from './item_option'; export interface ItemOptions extends Graph { curie: 'fx:item_options'; diff --git a/src/integration/Graph/items.d.ts b/src/integration/Graph/items.d.ts index 1869228..26b9b4d 100644 --- a/src/integration/Graph/items.d.ts +++ b/src/integration/Graph/items.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { Item } from './item'; import type { Graph } from '../../core'; +import type { Item } from './item'; export interface Items extends Graph { curie: 'fx:items'; diff --git a/src/integration/Graph/language_override.d.ts b/src/integration/Graph/language_override.d.ts index b921012..b229907 100644 --- a/src/integration/Graph/language_override.d.ts +++ b/src/integration/Graph/language_override.d.ts @@ -1,7 +1,7 @@ +import type { Graph } from '../../core'; import type { LanguageOverrides } from './language_overrides'; import type { Store } from './store'; import type { TemplateSet } from './template_set'; -import type { Graph } from '../../core'; export interface LanguageOverride extends Graph { curie: 'fx:language_override'; diff --git a/src/integration/Graph/language_overrides.d.ts b/src/integration/Graph/language_overrides.d.ts index 888dc20..b98e365 100644 --- a/src/integration/Graph/language_overrides.d.ts +++ b/src/integration/Graph/language_overrides.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { LanguageOverride } from './language_override'; import type { Graph } from '../../core'; +import type { LanguageOverride } from './language_override'; export interface LanguageOverrides extends Graph { curie: 'fx:language_overrides'; diff --git a/src/integration/Graph/language_strings.d.ts b/src/integration/Graph/language_strings.d.ts index cb82599..a475001 100644 --- a/src/integration/Graph/language_strings.d.ts +++ b/src/integration/Graph/language_strings.d.ts @@ -1,5 +1,5 @@ -import type { PropertyHelpers } from './property_helpers'; import type { Graph } from '../../core'; +import type { PropertyHelpers } from './property_helpers'; interface StringRecord { [key: string]: StringRecord; diff --git a/src/integration/Graph/languages.d.ts b/src/integration/Graph/languages.d.ts index 08fa400..2284857 100644 --- a/src/integration/Graph/languages.d.ts +++ b/src/integration/Graph/languages.d.ts @@ -1,5 +1,5 @@ -import type { PropertyHelpers } from './property_helpers'; import type { Graph } from '../../core'; +import type { PropertyHelpers } from './property_helpers'; export interface Languages extends Graph { curie: 'fx:languages'; diff --git a/src/integration/Graph/last_transaction.d.ts b/src/integration/Graph/last_transaction.d.ts index 06d9369..cb85411 100644 --- a/src/integration/Graph/last_transaction.d.ts +++ b/src/integration/Graph/last_transaction.d.ts @@ -1,5 +1,5 @@ -import type { Transaction } from './transaction'; import type { Graph } from '../../core'; +import type { Transaction } from './transaction'; export interface LastTransaction extends Graph { curie: 'fx:last_transaction'; diff --git a/src/integration/Graph/locale_codes.d.ts b/src/integration/Graph/locale_codes.d.ts index 49989ac..3867c49 100644 --- a/src/integration/Graph/locale_codes.d.ts +++ b/src/integration/Graph/locale_codes.d.ts @@ -1,5 +1,5 @@ -import type { PropertyHelpers } from './property_helpers'; import type { Graph } from '../../core'; +import type { PropertyHelpers } from './property_helpers'; export interface LocaleCodes extends Graph { curie: 'fx:locale_codes'; diff --git a/src/integration/Graph/native_integration.d.ts b/src/integration/Graph/native_integration.d.ts index 173385b..6cd0651 100644 --- a/src/integration/Graph/native_integration.d.ts +++ b/src/integration/Graph/native_integration.d.ts @@ -1,5 +1,5 @@ -import type { Store } from './store'; import type { Graph } from '../../core'; +import type { Store } from './store'; export interface NativeIntegration extends Graph { curie: 'fx:native_integration'; diff --git a/src/integration/Graph/native_integrations.d.ts b/src/integration/Graph/native_integrations.d.ts index a17fc8b..388ec6f 100644 --- a/src/integration/Graph/native_integrations.d.ts +++ b/src/integration/Graph/native_integrations.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { NativeIntegration } from './native_integration'; import type { Graph } from '../../core'; +import type { NativeIntegration } from './native_integration'; export interface NativeIntegrations extends Graph { curie: 'fx:native_integrations'; diff --git a/src/integration/Graph/original_transaction.d.ts b/src/integration/Graph/original_transaction.d.ts index bc36c84..db09d74 100644 --- a/src/integration/Graph/original_transaction.d.ts +++ b/src/integration/Graph/original_transaction.d.ts @@ -1,5 +1,5 @@ -import type { Transaction } from './transaction'; import type { Graph } from '../../core'; +import type { Transaction } from './transaction'; export interface OriginalTransaction extends Graph { curie: 'fx:original_transaction'; diff --git a/src/integration/Graph/payment.d.ts b/src/integration/Graph/payment.d.ts index 6a634f4..2d10188 100644 --- a/src/integration/Graph/payment.d.ts +++ b/src/integration/Graph/payment.d.ts @@ -1,6 +1,6 @@ +import type { Graph } from '../../core'; import type { Store } from './store'; import type { Transaction } from './transaction'; -import type { Graph } from '../../core'; export interface Payment extends Graph { curie: 'fx:payment'; diff --git a/src/integration/Graph/payment_gateway.d.ts b/src/integration/Graph/payment_gateway.d.ts index 38a05c0..aaa6382 100644 --- a/src/integration/Graph/payment_gateway.d.ts +++ b/src/integration/Graph/payment_gateway.d.ts @@ -1,6 +1,6 @@ +import type { Graph } from '../../core'; import type { PaymentMethodSets } from './payment_method_sets'; import type { Store } from './store'; -import type { Graph } from '../../core'; export interface PaymentGateway extends Graph { curie: 'fx:payment_gateway'; diff --git a/src/integration/Graph/payment_gateways.d.ts b/src/integration/Graph/payment_gateways.d.ts index 74a5060..9005bcf 100644 --- a/src/integration/Graph/payment_gateways.d.ts +++ b/src/integration/Graph/payment_gateways.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { PaymentGateway } from './payment_gateway'; import type { Graph } from '../../core'; +import type { PaymentGateway } from './payment_gateway'; export interface PaymentGateways extends Graph { curie: 'fx:payment_gateways'; diff --git a/src/integration/Graph/payment_method_expiring.d.ts b/src/integration/Graph/payment_method_expiring.d.ts index 2853152..b22e14e 100644 --- a/src/integration/Graph/payment_method_expiring.d.ts +++ b/src/integration/Graph/payment_method_expiring.d.ts @@ -1,9 +1,9 @@ import type { Customer } from './customer'; import type { DefaultBillingAddress } from './default_billing_address'; import type { DefaultPaymentMethod } from './default_payment_method'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { Subscriptions } from './subscriptions'; -import type { Graph } from '../../core'; export interface PaymentMethodExpiring extends Graph { curie: 'fx:payment_method_expiring'; diff --git a/src/integration/Graph/payment_method_set.d.ts b/src/integration/Graph/payment_method_set.d.ts index ca6bef0..da14a67 100644 --- a/src/integration/Graph/payment_method_set.d.ts +++ b/src/integration/Graph/payment_method_set.d.ts @@ -1,9 +1,9 @@ +import type { Graph } from '../../core'; import type { PaymentGateway } from './payment_gateway'; import type { PaymentMethodSetFraudProtections } from './payment_method_set_fraud_protections'; import type { PaymentMethodSetHostedPaymentGateways } from './payment_method_set_hosted_payment_gateways'; import type { PaymentMethodSets } from './payment_method_sets'; import type { Store } from './store'; -import type { Graph } from '../../core'; export interface PaymentMethodSet extends Graph { curie: 'fx:payment_method_set'; diff --git a/src/integration/Graph/payment_method_set_fraud_protection.d.ts b/src/integration/Graph/payment_method_set_fraud_protection.d.ts index 3a549d4..4958bb3 100644 --- a/src/integration/Graph/payment_method_set_fraud_protection.d.ts +++ b/src/integration/Graph/payment_method_set_fraud_protection.d.ts @@ -1,7 +1,7 @@ import type { FraudProtection } from './fraud_protection'; +import type { Graph } from '../../core'; import type { PaymentMethodSet } from './payment_method_set'; import type { Store } from './store'; -import type { Graph } from '../../core'; export interface PaymentMethodSetFraudProtection extends Graph { curie: 'fx:payment_method_set_fraud_protection'; diff --git a/src/integration/Graph/payment_method_set_fraud_protections.d.ts b/src/integration/Graph/payment_method_set_fraud_protections.d.ts index ca4d6ea..ceac1e8 100644 --- a/src/integration/Graph/payment_method_set_fraud_protections.d.ts +++ b/src/integration/Graph/payment_method_set_fraud_protections.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { PaymentMethodSetFraudProtection } from './payment_method_set_fraud_protection'; import type { Graph } from '../../core'; +import type { PaymentMethodSetFraudProtection } from './payment_method_set_fraud_protection'; export interface PaymentMethodSetFraudProtections extends Graph { curie: 'fx:payment_method_set_fraud_protections'; diff --git a/src/integration/Graph/payment_method_set_hosted_payment_gateway.d.ts b/src/integration/Graph/payment_method_set_hosted_payment_gateway.d.ts index 2bd70c0..c4f166e 100644 --- a/src/integration/Graph/payment_method_set_hosted_payment_gateway.d.ts +++ b/src/integration/Graph/payment_method_set_hosted_payment_gateway.d.ts @@ -1,7 +1,7 @@ +import type { Graph } from '../../core'; import type { HostedPaymentGateway } from './hosted_payment_gateway'; import type { PaymentMethodSet } from './payment_method_set'; import type { Store } from './store'; -import type { Graph } from '../../core'; export interface PaymentMethodSetHostedPaymentGateway extends Graph { curie: 'fx:payment_method_set_hosted_payment_gateway'; diff --git a/src/integration/Graph/payment_method_set_hosted_payment_gateways.d.ts b/src/integration/Graph/payment_method_set_hosted_payment_gateways.d.ts index de71ace..81165dc 100644 --- a/src/integration/Graph/payment_method_set_hosted_payment_gateways.d.ts +++ b/src/integration/Graph/payment_method_set_hosted_payment_gateways.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { PaymentMethodSetHostedPaymentGateway } from './payment_method_set_hosted_payment_gateway'; import type { Graph } from '../../core'; +import type { PaymentMethodSetHostedPaymentGateway } from './payment_method_set_hosted_payment_gateway'; export interface PaymentMethodSetHostedPaymentGateways extends Graph { curie: 'fx:payment_method_set_hosted_payment_gateways'; diff --git a/src/integration/Graph/payment_method_sets.d.ts b/src/integration/Graph/payment_method_sets.d.ts index 531494d..2840659 100644 --- a/src/integration/Graph/payment_method_sets.d.ts +++ b/src/integration/Graph/payment_method_sets.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { PaymentMethodSet } from './payment_method_set'; import type { Graph } from '../../core'; +import type { PaymentMethodSet } from './payment_method_set'; export interface PaymentMethodSets extends Graph { curie: 'fx:payment_method_sets'; diff --git a/src/integration/Graph/payments.d.ts b/src/integration/Graph/payments.d.ts index 49a7b9b..6679118 100644 --- a/src/integration/Graph/payments.d.ts +++ b/src/integration/Graph/payments.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { Payment } from './payment'; import type { Graph } from '../../core'; +import type { Payment } from './payment'; export interface Payments extends Graph { curie: 'fx:payments'; diff --git a/src/integration/Graph/property_helpers.d.ts b/src/integration/Graph/property_helpers.d.ts index 9cb1924..31c3ff2 100644 --- a/src/integration/Graph/property_helpers.d.ts +++ b/src/integration/Graph/property_helpers.d.ts @@ -2,6 +2,7 @@ import type { CheckoutTypes } from './checkout_types'; import type { Countries } from './countries'; import type { CustomerPasswordHashTypes } from './customer_password_hash_types'; import type { DefaultTemplates } from './default_templates'; +import type { Graph } from '../../core'; import type { HostedPaymentGateways } from './hosted_payment_gateways'; import type { LanguageStrings } from './language_strings'; import type { Languages } from './languages'; @@ -12,7 +13,6 @@ import type { ShippingAddressTypes } from './shipping_address_types'; import type { ShippingMethods } from './shipping_methods'; import type { StoreVersions } from './store_versions'; import type { Timezones } from './timezones'; -import type { Graph } from '../../core'; export interface PropertyHelpers extends Graph { curie: 'fx:property_helpers'; diff --git a/src/integration/Graph/receipt_template.d.ts b/src/integration/Graph/receipt_template.d.ts index 8c75bda..e46189f 100644 --- a/src/integration/Graph/receipt_template.d.ts +++ b/src/integration/Graph/receipt_template.d.ts @@ -1,8 +1,8 @@ import type { Cache } from './cache'; import type { Encode } from './encode'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { TemplateSets } from './template_sets'; -import type { Graph } from '../../core'; export interface ReceiptTemplate extends Graph { curie: 'fx:receipt_template'; diff --git a/src/integration/Graph/receipt_templates.d.ts b/src/integration/Graph/receipt_templates.d.ts index a113154..7a8c9dd 100644 --- a/src/integration/Graph/receipt_templates.d.ts +++ b/src/integration/Graph/receipt_templates.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { ReceiptTemplate } from './receipt_template'; import type { Graph } from '../../core'; +import type { ReceiptTemplate } from './receipt_template'; export interface ReceiptTemplates extends Graph { curie: 'fx:receipt_templates'; diff --git a/src/integration/Graph/regions.d.ts b/src/integration/Graph/regions.d.ts index 75212eb..3428e62 100644 --- a/src/integration/Graph/regions.d.ts +++ b/src/integration/Graph/regions.d.ts @@ -1,5 +1,5 @@ -import type { PropertyHelpers } from './property_helpers'; import type { Graph } from '../../core'; +import type { PropertyHelpers } from './property_helpers'; export interface Regions extends Graph { curie: 'fx:regions'; diff --git a/src/integration/Graph/reporting.d.ts b/src/integration/Graph/reporting.d.ts index beb1536..dde9b3f 100644 --- a/src/integration/Graph/reporting.d.ts +++ b/src/integration/Graph/reporting.d.ts @@ -1,6 +1,6 @@ +import type { Graph } from '../../core'; import type { ReportingEmailExists } from './reporting_email_exists'; import type { ReportingStoreDomainExists } from './reporting_store_domain_exists'; -import type { Graph } from '../../core'; export interface Reporting extends Graph { curie: 'fx:reporting'; diff --git a/src/integration/Graph/reporting_email_exists.d.ts b/src/integration/Graph/reporting_email_exists.d.ts index e0759da..9555921 100644 --- a/src/integration/Graph/reporting_email_exists.d.ts +++ b/src/integration/Graph/reporting_email_exists.d.ts @@ -1,6 +1,6 @@ +import type { Graph } from '../../core'; import type { Reporting } from './reporting'; import type { User } from './user'; -import type { Graph } from '../../core'; export interface ReportingEmailExists extends Graph { curie: 'fx:reporting_email_exists'; diff --git a/src/integration/Graph/reporting_store_domain_exists.d.ts b/src/integration/Graph/reporting_store_domain_exists.d.ts index 58d2f59..1c163e5 100644 --- a/src/integration/Graph/reporting_store_domain_exists.d.ts +++ b/src/integration/Graph/reporting_store_domain_exists.d.ts @@ -1,6 +1,6 @@ +import type { Graph } from '../../core'; import type { Reporting } from './reporting'; import type { Store } from './store'; -import type { Graph } from '../../core'; export interface ReportingStoreDomainExists extends Graph { curie: 'fx:reporting_store_domain_exists'; diff --git a/src/integration/Graph/shipment.d.ts b/src/integration/Graph/shipment.d.ts index dd9bd64..51bc50c 100644 --- a/src/integration/Graph/shipment.d.ts +++ b/src/integration/Graph/shipment.d.ts @@ -1,10 +1,10 @@ import type { Customer } from './customer'; import type { CustomerAddress } from './customer_address'; +import type { Graph } from '../../core'; import type { Items } from './items'; import type { Shipments } from './shipments'; import type { Store } from './store'; import type { Transaction } from './transaction'; -import type { Graph } from '../../core'; export interface Shipment extends Graph { curie: 'fx:shipment'; diff --git a/src/integration/Graph/shipments.d.ts b/src/integration/Graph/shipments.d.ts index bf31610..7f0f712 100644 --- a/src/integration/Graph/shipments.d.ts +++ b/src/integration/Graph/shipments.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { Shipment } from './shipment'; import type { Graph } from '../../core'; +import type { Shipment } from './shipment'; export interface Shipments extends Graph { curie: 'fx:shipments'; diff --git a/src/integration/Graph/shipping_address_types.d.ts b/src/integration/Graph/shipping_address_types.d.ts index d119858..daf1d31 100644 --- a/src/integration/Graph/shipping_address_types.d.ts +++ b/src/integration/Graph/shipping_address_types.d.ts @@ -1,5 +1,5 @@ -import type { PropertyHelpers } from './property_helpers'; import type { Graph } from '../../core'; +import type { PropertyHelpers } from './property_helpers'; export interface ShippingAddressTypes extends Graph { curie: 'fx:shipping_address_types'; diff --git a/src/integration/Graph/shipping_container.d.ts b/src/integration/Graph/shipping_container.d.ts index 84df8b5..c668dc2 100644 --- a/src/integration/Graph/shipping_container.d.ts +++ b/src/integration/Graph/shipping_container.d.ts @@ -1,8 +1,8 @@ +import type { Graph } from '../../core'; import type { PropertyHelpers } from './property_helpers'; import type { ShippingContainers } from './shipping_containers'; import type { ShippingMethod } from './shipping_method'; import type { ShippingMethods } from './shipping_methods'; -import type { Graph } from '../../core'; export interface ShippingContainer extends Graph { curie: 'fx:shipping_container'; diff --git a/src/integration/Graph/shipping_containers.d.ts b/src/integration/Graph/shipping_containers.d.ts index db85907..36f5cbb 100644 --- a/src/integration/Graph/shipping_containers.d.ts +++ b/src/integration/Graph/shipping_containers.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { ShippingContainer } from './shipping_container'; import type { Graph } from '../../core'; +import type { ShippingContainer } from './shipping_container'; export interface ShippingContainers extends Graph { curie: 'fx:shipping_containers'; diff --git a/src/integration/Graph/shipping_drop_type.d.ts b/src/integration/Graph/shipping_drop_type.d.ts index fad88b6..e487749 100644 --- a/src/integration/Graph/shipping_drop_type.d.ts +++ b/src/integration/Graph/shipping_drop_type.d.ts @@ -1,8 +1,8 @@ +import type { Graph } from '../../core'; import type { PropertyHelpers } from './property_helpers'; import type { ShippingDropTypes } from './shipping_drop_types'; import type { ShippingMethod } from './shipping_method'; import type { ShippingMethods } from './shipping_methods'; -import type { Graph } from '../../core'; export interface ShippingDropType extends Graph { curie: 'fx:shipping_drop_type'; diff --git a/src/integration/Graph/shipping_drop_types.d.ts b/src/integration/Graph/shipping_drop_types.d.ts index bfa867f..1c89892 100644 --- a/src/integration/Graph/shipping_drop_types.d.ts +++ b/src/integration/Graph/shipping_drop_types.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { ShippingDropType } from './shipping_drop_type'; import type { Graph } from '../../core'; +import type { ShippingDropType } from './shipping_drop_type'; export interface ShippingDropTypes extends Graph { curie: 'fx:shipping_drop_types'; diff --git a/src/integration/Graph/shipping_method.d.ts b/src/integration/Graph/shipping_method.d.ts index 2ff247a..5c17e58 100644 --- a/src/integration/Graph/shipping_method.d.ts +++ b/src/integration/Graph/shipping_method.d.ts @@ -1,9 +1,9 @@ +import type { Graph } from '../../core'; import type { PropertyHelpers } from './property_helpers'; import type { ShippingContainers } from './shipping_containers'; import type { ShippingDropTypes } from './shipping_drop_types'; import type { ShippingMethods } from './shipping_methods'; import type { ShippingServices } from './shipping_services'; -import type { Graph } from '../../core'; export interface ShippingMethod extends Graph { curie: 'fx:shipping_method'; diff --git a/src/integration/Graph/shipping_methods.d.ts b/src/integration/Graph/shipping_methods.d.ts index 4af75d4..aca4d3a 100644 --- a/src/integration/Graph/shipping_methods.d.ts +++ b/src/integration/Graph/shipping_methods.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { ShippingMethod } from './shipping_method'; import type { Graph } from '../../core'; +import type { ShippingMethod } from './shipping_method'; export interface ShippingMethods extends Graph { curie: 'fx:shipping_methods'; diff --git a/src/integration/Graph/shipping_service.d.ts b/src/integration/Graph/shipping_service.d.ts index 87189f5..166cfc8 100644 --- a/src/integration/Graph/shipping_service.d.ts +++ b/src/integration/Graph/shipping_service.d.ts @@ -1,7 +1,7 @@ +import type { Graph } from '../../core'; import type { PropertyHelpers } from './property_helpers'; import type { ShippingMethod } from './shipping_method'; import type { ShippingMethods } from './shipping_methods'; -import type { Graph } from '../../core'; export interface ShippingService extends Graph { curie: 'fx:shipping_service'; diff --git a/src/integration/Graph/shipping_services.d.ts b/src/integration/Graph/shipping_services.d.ts index f95fb18..ba3ac7d 100644 --- a/src/integration/Graph/shipping_services.d.ts +++ b/src/integration/Graph/shipping_services.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { ShippingService } from './shipping_service'; import type { Graph } from '../../core'; +import type { ShippingService } from './shipping_service'; export interface ShippingServices extends Graph { curie: 'fx:shipping_services'; diff --git a/src/integration/Graph/store.d.ts b/src/integration/Graph/store.d.ts index c1e1ad2..dcbc3e1 100644 --- a/src/integration/Graph/store.d.ts +++ b/src/integration/Graph/store.d.ts @@ -10,6 +10,7 @@ import type { Downloadables } from './downloadables'; import type { EmailTemplates } from './email_templates'; import type { ErrorEntries } from './error_entries'; import type { FraudProtections } from './fraud_protections'; +import type { Graph } from '../../core'; import type { HostedPaymentGateways } from './hosted_payment_gateways'; import type { ItemCategories } from './item_categories'; import type { PaymentMethodSets } from './payment_method_sets'; @@ -23,7 +24,6 @@ import type { TemplateSets } from './template_sets'; import type { Transactions } from './transactions'; import type { UserAccesses } from './user_accesses'; import type { Users } from './users'; -import type { Graph } from '../../core'; export interface Store extends Graph { curie: 'fx:store'; diff --git a/src/integration/Graph/store_shipping_method.d.ts b/src/integration/Graph/store_shipping_method.d.ts index 8a8a710..4ab4efb 100644 --- a/src/integration/Graph/store_shipping_method.d.ts +++ b/src/integration/Graph/store_shipping_method.d.ts @@ -1,3 +1,4 @@ +import type { Graph } from '../../core'; import type { ShippingContainer } from './shipping_container'; import type { ShippingContainers } from './shipping_containers'; import type { ShippingDropType } from './shipping_drop_type'; @@ -7,7 +8,6 @@ import type { ShippingMethods } from './shipping_methods'; import type { ShippingServices } from './shipping_services'; import type { Store } from './store'; import type { StoreShippingServices } from './store_shipping_services'; -import type { Graph } from '../../core'; export interface StoreShippingMethod extends Graph { curie: 'fx:store_shipping_method'; diff --git a/src/integration/Graph/store_shipping_service.d.ts b/src/integration/Graph/store_shipping_service.d.ts index 9395964..7b1588d 100644 --- a/src/integration/Graph/store_shipping_service.d.ts +++ b/src/integration/Graph/store_shipping_service.d.ts @@ -1,9 +1,9 @@ +import type { Graph } from '../../core'; import type { ShippingMethod } from './shipping_method'; import type { ShippingMethods } from './shipping_methods'; import type { ShippingService } from './shipping_service'; import type { ShippingServices } from './shipping_services'; import type { Store } from './store'; -import type { Graph } from '../../core'; export interface StoreShippingService extends Graph { curie: 'fx:store_shipping_service'; diff --git a/src/integration/Graph/store_shipping_services.d.ts b/src/integration/Graph/store_shipping_services.d.ts index 3fb820c..ba65a18 100644 --- a/src/integration/Graph/store_shipping_services.d.ts +++ b/src/integration/Graph/store_shipping_services.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { StoreShippingService } from './store_shipping_service'; import type { Graph } from '../../core'; +import type { StoreShippingService } from './store_shipping_service'; export interface StoreShippingServices extends Graph { curie: 'fx:store_shipping_services'; diff --git a/src/integration/Graph/store_version.d.ts b/src/integration/Graph/store_version.d.ts index efe94a7..f5d6e8c 100644 --- a/src/integration/Graph/store_version.d.ts +++ b/src/integration/Graph/store_version.d.ts @@ -1,6 +1,6 @@ +import type { Graph } from '../../core'; import type { PropertyHelpers } from './property_helpers'; import type { StoreVersions } from './store_versions'; -import type { Graph } from '../../core'; export interface StoreVersion extends Graph { curie: 'fx:store_version'; diff --git a/src/integration/Graph/store_versions.d.ts b/src/integration/Graph/store_versions.d.ts index a6da0a4..b00a2b6 100644 --- a/src/integration/Graph/store_versions.d.ts +++ b/src/integration/Graph/store_versions.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { StoreVersion } from './store_version'; import type { Graph } from '../../core'; +import type { StoreVersion } from './store_version'; export interface StoreVersions extends Graph { curie: 'fx:store_versions'; diff --git a/src/integration/Graph/stores.d.ts b/src/integration/Graph/stores.d.ts index a45b588..8e4c520 100644 --- a/src/integration/Graph/stores.d.ts +++ b/src/integration/Graph/stores.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { Store } from './store'; import type { Graph } from '../../core'; +import type { Store } from './store'; export interface Stores extends Graph { curie: 'fx:stores'; diff --git a/src/integration/Graph/subscription.d.ts b/src/integration/Graph/subscription.d.ts index 2961e54..e16026c 100644 --- a/src/integration/Graph/subscription.d.ts +++ b/src/integration/Graph/subscription.d.ts @@ -1,12 +1,12 @@ import type { Attributes } from './attributes'; import type { Customer } from './customer'; +import type { Graph } from '../../core'; import type { LastTransaction } from './last_transaction'; import type { OriginalTransaction } from './original_transaction'; import type { Store } from './store'; import type { SubTokenUrl } from './sub_token_url'; import type { TransactionTemplate } from './transaction_template'; import type { Transactions } from './transactions'; -import type { Graph } from '../../core'; export interface Subscription extends Graph { curie: 'fx:subscription'; diff --git a/src/integration/Graph/subscription_settings.d.ts b/src/integration/Graph/subscription_settings.d.ts index fefdc22..ecb2c23 100644 --- a/src/integration/Graph/subscription_settings.d.ts +++ b/src/integration/Graph/subscription_settings.d.ts @@ -1,5 +1,5 @@ -import type { Store } from './store'; import type { Graph } from '../../core'; +import type { Store } from './store'; export interface SubscriptionSettings extends Graph { curie: 'fx:subscription_settings'; diff --git a/src/integration/Graph/subscriptions.d.ts b/src/integration/Graph/subscriptions.d.ts index ec0fbad..a1b392a 100644 --- a/src/integration/Graph/subscriptions.d.ts +++ b/src/integration/Graph/subscriptions.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { Subscription } from './subscription'; import type { Graph } from '../../core'; +import type { Subscription } from './subscription'; export interface Subscriptions extends Graph { curie: 'fx:subscriptions'; diff --git a/src/integration/Graph/tax.d.ts b/src/integration/Graph/tax.d.ts index 9686b50..e61dba8 100644 --- a/src/integration/Graph/tax.d.ts +++ b/src/integration/Graph/tax.d.ts @@ -1,7 +1,7 @@ +import type { Graph } from '../../core'; import type { NativeIntegrations } from './native_integrations'; import type { Store } from './store'; import type { TaxItemCategories } from './tax_item_categories'; -import type { Graph } from '../../core'; export interface Tax extends Graph { curie: 'fx:tax'; diff --git a/src/integration/Graph/tax_item_categories.d.ts b/src/integration/Graph/tax_item_categories.d.ts index 13e702c..de119c6 100644 --- a/src/integration/Graph/tax_item_categories.d.ts +++ b/src/integration/Graph/tax_item_categories.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { TaxItemCategory } from './tax_item_category'; import type { Graph } from '../../core'; +import type { TaxItemCategory } from './tax_item_category'; export interface TaxItemCategories extends Graph { curie: 'fx:tax_item_categories'; diff --git a/src/integration/Graph/tax_item_category.d.ts b/src/integration/Graph/tax_item_category.d.ts index 7255bc2..2e87b3c 100644 --- a/src/integration/Graph/tax_item_category.d.ts +++ b/src/integration/Graph/tax_item_category.d.ts @@ -1,7 +1,7 @@ +import type { Graph } from '../../core'; import type { ItemCategory } from './item_category'; import type { Store } from './store'; import type { Tax } from './tax'; -import type { Graph } from '../../core'; export interface TaxItemCategory extends Graph { curie: 'fx:tax_item_category'; diff --git a/src/integration/Graph/taxes.d.ts b/src/integration/Graph/taxes.d.ts index 68cc204..4266056 100644 --- a/src/integration/Graph/taxes.d.ts +++ b/src/integration/Graph/taxes.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { Tax } from './tax'; import type { Graph } from '../../core'; +import type { Tax } from './tax'; export interface Taxes extends Graph { curie: 'fx:taxes'; diff --git a/src/integration/Graph/template_config.d.ts b/src/integration/Graph/template_config.d.ts index d8bcf4d..019d8d8 100644 --- a/src/integration/Graph/template_config.d.ts +++ b/src/integration/Graph/template_config.d.ts @@ -1,6 +1,6 @@ +import type { Graph } from '../../core'; import type { Store } from './store'; import type { TemplateSets } from './template_sets'; -import type { Graph } from '../../core'; export interface TemplateConfig extends Graph { curie: 'fx:template_config'; diff --git a/src/integration/Graph/template_set.d.ts b/src/integration/Graph/template_set.d.ts index 395c2c1..ef4ff61 100644 --- a/src/integration/Graph/template_set.d.ts +++ b/src/integration/Graph/template_set.d.ts @@ -2,10 +2,10 @@ import type { CartIncludeTemplate } from './cart_include_template'; import type { CartTemplate } from './cart_template'; import type { CheckoutTemplate } from './checkout_template'; import type { EmailTemplate } from './email_template'; +import type { Graph } from '../../core'; import type { LanguageOverrides } from './language_overrides'; import type { ReceiptTemplate } from './receipt_template'; import type { Store } from './store'; -import type { Graph } from '../../core'; export interface TemplateSet extends Graph { curie: 'fx:template_set'; diff --git a/src/integration/Graph/template_sets.d.ts b/src/integration/Graph/template_sets.d.ts index 0b393eb..43dbe05 100644 --- a/src/integration/Graph/template_sets.d.ts +++ b/src/integration/Graph/template_sets.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { TemplateSet } from './template_set'; import type { Graph } from '../../core'; +import type { TemplateSet } from './template_set'; export interface TemplateSets extends Graph { curie: 'fx:template_sets'; diff --git a/src/integration/Graph/timezones.d.ts b/src/integration/Graph/timezones.d.ts index fe1dab2..9e85aba 100644 --- a/src/integration/Graph/timezones.d.ts +++ b/src/integration/Graph/timezones.d.ts @@ -1,5 +1,5 @@ -import type { PropertyHelpers } from './property_helpers'; import type { Graph } from '../../core'; +import type { PropertyHelpers } from './property_helpers'; export interface Timezones extends Graph { curie: 'fx:timezones'; diff --git a/src/integration/Graph/transaction.d.ts b/src/integration/Graph/transaction.d.ts index af92672..901e456 100644 --- a/src/integration/Graph/transaction.d.ts +++ b/src/integration/Graph/transaction.d.ts @@ -5,6 +5,7 @@ import type { Capture } from './capture'; import type { CustomFields } from './custom_fields'; import type { Customer } from './customer'; import type { Discounts } from './discounts'; +import type { Graph } from '../../core'; import type { Items } from './items'; import type { NativeIntegrations } from './native_integrations'; import type { Payments } from './payments'; @@ -16,7 +17,6 @@ import type { Shipments } from './shipments'; import type { Store } from './store'; import type { TransactionLogs } from './transaction_logs'; import type { Void } from './void'; -import type { Graph } from '../../core'; export interface Transaction extends Graph { curie: 'fx:transaction'; diff --git a/src/integration/Graph/transaction_log.d.ts b/src/integration/Graph/transaction_log.d.ts index b7f3ee3..ac0f51a 100644 --- a/src/integration/Graph/transaction_log.d.ts +++ b/src/integration/Graph/transaction_log.d.ts @@ -1,9 +1,9 @@ import type { Customer } from './customer'; +import type { Graph } from '../../core'; import type { Store } from './store'; import type { Transaction } from './transaction'; import type { TransactionLogDetails } from './transaction_log_details'; import type { User } from './user'; -import type { Graph } from '../../core'; export interface TransactionLog extends Graph { curie: 'fx:transaction_logs'; diff --git a/src/integration/Graph/transaction_log_detail.d.ts b/src/integration/Graph/transaction_log_detail.d.ts index 6c6630e..9ed076d 100644 --- a/src/integration/Graph/transaction_log_detail.d.ts +++ b/src/integration/Graph/transaction_log_detail.d.ts @@ -1,6 +1,6 @@ +import type { Graph } from '../../core'; import type { Store } from './store'; import type { TransactionLog } from './transaction_log'; -import type { Graph } from '../../core'; export interface TransactionLogDetail extends Graph { curie: 'fx:transaction_log_detail'; diff --git a/src/integration/Graph/transaction_log_details.d.ts b/src/integration/Graph/transaction_log_details.d.ts index 37fe39d..cbefec1 100644 --- a/src/integration/Graph/transaction_log_details.d.ts +++ b/src/integration/Graph/transaction_log_details.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { TransactionLogDetail } from './transaction_log_detail'; import type { Graph } from '../../core'; +import type { TransactionLogDetail } from './transaction_log_detail'; export interface TransactionLogDetails extends Graph { curie: 'fx:transaction_log_details'; diff --git a/src/integration/Graph/transaction_logs.d.ts b/src/integration/Graph/transaction_logs.d.ts index a6411f6..94b2f4d 100644 --- a/src/integration/Graph/transaction_logs.d.ts +++ b/src/integration/Graph/transaction_logs.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { TransactionLog } from './transaction_log'; import type { Graph } from '../../core'; +import type { TransactionLog } from './transaction_log'; export interface TransactionLogs extends Graph { curie: 'fx:transaction_logs'; diff --git a/src/integration/Graph/transactions.d.ts b/src/integration/Graph/transactions.d.ts index 631f31d..752c7c9 100644 --- a/src/integration/Graph/transactions.d.ts +++ b/src/integration/Graph/transactions.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { Transaction } from './transaction'; import type { Graph } from '../../core'; +import type { Transaction } from './transaction'; export interface Transactions extends Graph { curie: 'fx:transactions'; diff --git a/src/integration/Graph/user.d.ts b/src/integration/Graph/user.d.ts index 4affd2a..9348bab 100644 --- a/src/integration/Graph/user.d.ts +++ b/src/integration/Graph/user.d.ts @@ -1,7 +1,7 @@ import type { Attributes } from './attributes'; import type { DefaultStore } from './default_store'; -import type { Stores } from './stores'; import type { Graph } from '../../core'; +import type { Stores } from './stores'; export interface User extends Graph { curie: 'fx:user'; diff --git a/src/integration/Graph/user_access.d.ts b/src/integration/Graph/user_access.d.ts index 5c0594c..3653bf6 100644 --- a/src/integration/Graph/user_access.d.ts +++ b/src/integration/Graph/user_access.d.ts @@ -1,6 +1,6 @@ +import type { Graph } from '../../core'; import type { Store } from './store'; import type { User } from './user'; -import type { Graph } from '../../core'; export interface UserAccess extends Graph { curie: 'fx:user_access'; diff --git a/src/integration/Graph/user_accesses.d.ts b/src/integration/Graph/user_accesses.d.ts index 988b460..ec0bb26 100644 --- a/src/integration/Graph/user_accesses.d.ts +++ b/src/integration/Graph/user_accesses.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { UserAccess } from './user_access'; import type { Graph } from '../../core'; +import type { UserAccess } from './user_access'; export interface UserAccesses extends Graph { curie: 'fx:user_accesses'; diff --git a/src/integration/Graph/users.d.ts b/src/integration/Graph/users.d.ts index 7a1108e..a09b049 100644 --- a/src/integration/Graph/users.d.ts +++ b/src/integration/Graph/users.d.ts @@ -1,6 +1,6 @@ import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults'; -import type { User } from './user'; import type { Graph } from '../../core'; +import type { User } from './user'; export interface Users extends Graph { curie: 'fx:users'; diff --git a/tests/integration/API.test.ts b/tests/integration/API.test.ts index 6689976..9b7de90 100644 --- a/tests/integration/API.test.ts +++ b/tests/integration/API.test.ts @@ -9,9 +9,9 @@ jest.mock('cross-fetch', () => ({ import { Headers, Request, Response, fetch } from 'cross-fetch'; import { API as CoreAPI } from '../../src/core/API'; -import { Token } from '../../src/integration/Rels'; import { API as IntegrationAPI } from '../../src/integration/API'; import MemoryCache from 'fake-storage'; +import { Token } from '../../src/integration/Rels'; const fetchMock = (fetch as unknown) as jest.MockInstance;