UNPKG

@commercelayer/sdk-utils

Version:
1,556 lines (1,554 loc) 124 kB
'use strict'; var chunkDH6DQ2Y4_cjs = require('./chunk-DH6DQ2Y4.cjs'); // src/helpers/filter/resources.ts var AddressFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get business() { return this.addField("business"); } get first_name() { return this.addField("first_name"); } get last_name() { return this.addField("last_name"); } get company() { return this.addField("company"); } get line_1() { return this.addField("line_1"); } get line_2() { return this.addField("line_2"); } get city() { return this.addField("city"); } get zip_code() { return this.addField("zip_code"); } get state_code() { return this.addField("state_code"); } get country_code() { return this.addField("country_code"); } get phone() { return this.addField("phone"); } get email() { return this.addField("email"); } get notes() { return this.addField("notes"); } get lat() { return this.addField("lat"); } get lng() { return this.addField("lng"); } get billing_info() { return this.addField("billing_info"); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var AdjustmentFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get currency_code() { return this.addField("currency_code"); } get amount_cents() { return this.addField("amount_cents"); } }; var AdyenGatewayFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get payment_methods() { return new PaymentMethodFilterFields(this.master, this.operator, this.addRelationship("payment_methods")); } get adyen_payments() { return new AdyenPaymentFilterFields(this.master, this.operator, this.addRelationship("adyen_payments")); } }; var AdyenPaymentFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get order() { return new OrderFilterFields(this.master, this.operator, this.addRelationship("order")); } }; var AttachmentFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get description() { return this.addField("description"); } }; var AuthorizationFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get number() { return this.addField("number"); } get type() { return this.addField("type"); } get currency_code() { return this.addField("currency_code"); } get amount_cents() { return this.addField("amount_cents"); } get succeeded() { return this.addField("succeeded"); } get message() { return this.addField("message"); } get error_code() { return this.addField("error_code"); } get error_detail() { return this.addField("error_detail"); } get token() { return this.addField("token"); } get gateway_transaction_id() { return this.addField("gateway_transaction_id"); } get order() { return new OrderFilterFields(this.master, this.operator, this.addRelationship("order")); } get payment_source() { return new chunkDH6DQ2Y4_cjs.ResourceFilterFields(this.master, this.operator, this.addRelationship("payment_source")); } // polymorphic get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } }; var AvalaraAccountFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tax_categories() { return new TaxCategoryFilterFields(this.master, this.operator, this.addRelationship("tax_categories")); } }; var AxerveGatewayFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get payment_methods() { return new PaymentMethodFilterFields(this.master, this.operator, this.addRelationship("payment_methods")); } get axerve_payments() { return new AxervePaymentFilterFields(this.master, this.operator, this.addRelationship("axerve_payments")); } }; var AxervePaymentFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get order() { return new OrderFilterFields(this.master, this.operator, this.addRelationship("order")); } }; var BillingInfoValidationRuleFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get type() { return this.addField("type"); } get market() { return new MarketFilterFields(this.master, this.operator, this.addRelationship("market")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } }; var BingGeocoderFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } }; var BraintreeGatewayFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get payment_methods() { return new PaymentMethodFilterFields(this.master, this.operator, this.addRelationship("payment_methods")); } get braintree_payments() { return new BraintreePaymentFilterFields(this.master, this.operator, this.addRelationship("braintree_payments")); } }; var BraintreePaymentFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get order() { return new OrderFilterFields(this.master, this.operator, this.addRelationship("order")); } }; var BundleFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get code() { return this.addField("code"); } get name() { return this.addField("name"); } get currency_code() { return this.addField("currency_code"); } get description() { return this.addField("description"); } get image_url() { return this.addField("image_url"); } get do_not_ship() { return this.addField("do_not_ship"); } get do_not_track() { return this.addField("do_not_track"); } get price_amount_cents() { return this.addField("price_amount_cents"); } get compare_at_amount_cents() { return this.addField("compare_at_amount_cents"); } get market() { return new MarketFilterFields(this.master, this.operator, this.addRelationship("market")); } get sku_list() { return new SkuListFilterFields(this.master, this.operator, this.addRelationship("sku_list")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var BuyXPayYPromotionFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get currency_code() { return this.addField("currency_code"); } get exclusive() { return this.addField("exclusive"); } get priority() { return this.addField("priority"); } get starts_at() { return this.addField("starts_at"); } get expires_at() { return this.addField("expires_at"); } get total_usage_limit() { return this.addField("total_usage_limit"); } get total_usage_count() { return this.addField("total_usage_count"); } get total_usage_reached() { return this.addField("total_usage_reached"); } get disabled_at() { return this.addField("disabled_at"); } get x() { return this.addField("x"); } get y() { return this.addField("y"); } get market() { return new MarketFilterFields(this.master, this.operator, this.addRelationship("market")); } get promotion_rules() { return new PromotionRuleFilterFields(this.master, this.operator, this.addRelationship("promotion_rules")); } get order_amount_promotion_rule() { return new OrderAmountPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("order_amount_promotion_rule")); } get sku_list_promotion_rule() { return new SkuListPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("sku_list_promotion_rule")); } get coupon_codes_promotion_rule() { return new CouponCodesPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("coupon_codes_promotion_rule")); } get custom_promotion_rule() { return new CustomPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("custom_promotion_rule")); } get sku_list() { return new SkuListFilterFields(this.master, this.operator, this.addRelationship("sku_list")); } get coupons() { return new CouponFilterFields(this.master, this.operator, this.addRelationship("coupons")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var CaptureFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get number() { return this.addField("number"); } get type() { return this.addField("type"); } get currency_code() { return this.addField("currency_code"); } get amount_cents() { return this.addField("amount_cents"); } get succeeded() { return this.addField("succeeded"); } get message() { return this.addField("message"); } get error_code() { return this.addField("error_code"); } get error_detail() { return this.addField("error_detail"); } get token() { return this.addField("token"); } get gateway_transaction_id() { return this.addField("gateway_transaction_id"); } get order() { return new OrderFilterFields(this.master, this.operator, this.addRelationship("order")); } get payment_source() { return new chunkDH6DQ2Y4_cjs.ResourceFilterFields(this.master, this.operator, this.addRelationship("payment_source")); } // polymorphic get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get return() { return new ReturnFilterFields(this.master, this.operator, this.addRelationship("return")); } }; var CarrierAccountFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get easypost_type() { return this.addField("easypost_type"); } get market() { return new MarketFilterFields(this.master, this.operator, this.addRelationship("market")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } }; var CheckoutComGatewayFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get payment_methods() { return new PaymentMethodFilterFields(this.master, this.operator, this.addRelationship("payment_methods")); } get checkout_com_payments() { return new CheckoutComPaymentFilterFields(this.master, this.operator, this.addRelationship("checkout_com_payments")); } }; var CheckoutComPaymentFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get order() { return new OrderFilterFields(this.master, this.operator, this.addRelationship("order")); } }; var CleanupFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get resource_type() { return this.addField("resource_type"); } get status() { return this.addField("status"); } get started_at() { return this.addField("started_at"); } get completed_at() { return this.addField("completed_at"); } get interrupted_at() { return this.addField("interrupted_at"); } get records_count() { return this.addField("records_count"); } get errors_count() { return this.addField("errors_count"); } get processed_count() { return this.addField("processed_count"); } get errors_log() { return this.addField("errors_log"); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } }; var CouponFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get code() { return this.addField("code"); } get customer_single_use() { return this.addField("customer_single_use"); } get usage_limit() { return this.addField("usage_limit"); } get usage_count() { return this.addField("usage_count"); } get expires_at() { return this.addField("expires_at"); } get promotion_rule() { return new CouponCodesPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("promotion_rule")); } get coupon_recipient() { return new CouponRecipientFilterFields(this.master, this.operator, this.addRelationship("coupon_recipient")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var CouponCodesPromotionRuleFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get type() { return this.addField("type"); } get promotion() { return new PromotionFilterFields(this.master, this.operator, this.addRelationship("promotion")); } get coupons() { return new CouponFilterFields(this.master, this.operator, this.addRelationship("coupons")); } }; var CouponRecipientFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get email() { return this.addField("email"); } get first_name() { return this.addField("first_name"); } get last_name() { return this.addField("last_name"); } get customer() { return new CustomerFilterFields(this.master, this.operator, this.addRelationship("customer")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } }; var CustomPromotionRuleFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get type() { return this.addField("type"); } get promotion() { return new PromotionFilterFields(this.master, this.operator, this.addRelationship("promotion")); } }; var CustomerFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get email() { return this.addField("email"); } get status() { return this.addField("status"); } get total_orders_count() { return this.addField("total_orders_count"); } get anonymization_status() { return this.addField("anonymization_status"); } get customer_group() { return new CustomerGroupFilterFields(this.master, this.operator, this.addRelationship("customer_group")); } get customer_addresses() { return new CustomerAddressFilterFields(this.master, this.operator, this.addRelationship("customer_addresses")); } get customer_payment_sources() { return new CustomerPaymentSourceFilterFields(this.master, this.operator, this.addRelationship("customer_payment_sources")); } get customer_subscriptions() { return new CustomerSubscriptionFilterFields(this.master, this.operator, this.addRelationship("customer_subscriptions")); } get order_subscriptions() { return new OrderSubscriptionFilterFields(this.master, this.operator, this.addRelationship("order_subscriptions")); } get returns() { return new ReturnFilterFields(this.master, this.operator, this.addRelationship("returns")); } get sku_lists() { return new SkuListFilterFields(this.master, this.operator, this.addRelationship("sku_lists")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var CustomerAddressFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get customer() { return new CustomerFilterFields(this.master, this.operator, this.addRelationship("customer")); } get address() { return new AddressFilterFields(this.master, this.operator, this.addRelationship("address")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } }; var CustomerGroupFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get code() { return this.addField("code"); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } }; var CustomerPasswordResetFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get reset_password_token() { return this.addField("reset_password_token"); } get reset_password_at() { return this.addField("reset_password_at"); } get customer() { return new CustomerFilterFields(this.master, this.operator, this.addRelationship("customer")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } }; var CustomerPaymentSourceFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get payment_source_token() { return this.addField("payment_source_token"); } get customer() { return new CustomerFilterFields(this.master, this.operator, this.addRelationship("customer")); } get payment_method() { return new PaymentMethodFilterFields(this.master, this.operator, this.addRelationship("payment_method")); } }; var CustomerSubscriptionFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get customer() { return new CustomerFilterFields(this.master, this.operator, this.addRelationship("customer")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } }; var DeliveryLeadTimeFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get min_hours() { return this.addField("min_hours"); } get max_hours() { return this.addField("max_hours"); } get min_days() { return this.addField("min_days"); } get max_days() { return this.addField("max_days"); } get stock_location() { return new StockLocationFilterFields(this.master, this.operator, this.addRelationship("stock_location")); } get shipping_method() { return new ShippingMethodFilterFields(this.master, this.operator, this.addRelationship("shipping_method")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } }; var DiscountEngineFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } }; var DiscountEngineItemFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get body() { return this.addField("body"); } get discount_engine() { return new DiscountEngineFilterFields(this.master, this.operator, this.addRelationship("discount_engine")); } get order() { return new OrderFilterFields(this.master, this.operator, this.addRelationship("order")); } }; var EasypostPickupFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get type() { return this.addField("type"); } get status() { return this.addField("status"); } get min_datetime() { return this.addField("min_datetime"); } get max_datetime() { return this.addField("max_datetime"); } get purchase_started_at() { return this.addField("purchase_started_at"); } get purchase_completed_at() { return this.addField("purchase_completed_at"); } get shipment() { return new ShipmentFilterFields(this.master, this.operator, this.addRelationship("shipment")); } get parcels() { return new ParcelFilterFields(this.master, this.operator, this.addRelationship("parcels")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } }; var EventFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } }; var EventCallbackFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get callback_url() { return this.addField("callback_url"); } get response_code() { return this.addField("response_code"); } get response_message() { return this.addField("response_message"); } get webhook() { return new WebhookFilterFields(this.master, this.operator, this.addRelationship("webhook")); } }; var EventStoreFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { }; var ExportFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get resource_type() { return this.addField("resource_type"); } get format() { return this.addField("format"); } get status() { return this.addField("status"); } get started_at() { return this.addField("started_at"); } get completed_at() { return this.addField("completed_at"); } get interrupted_at() { return this.addField("interrupted_at"); } get records_count() { return this.addField("records_count"); } get attachment_url() { return this.addField("attachment_url"); } get errors_log() { return this.addField("errors_log"); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } }; var ExternalGatewayFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get circuit_state() { return this.addField("circuit_state"); } get circuit_failure_count() { return this.addField("circuit_failure_count"); } get payment_methods() { return new PaymentMethodFilterFields(this.master, this.operator, this.addRelationship("payment_methods")); } get external_payments() { return new ExternalPaymentFilterFields(this.master, this.operator, this.addRelationship("external_payments")); } }; var ExternalPaymentFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get payment_source_token() { return this.addField("payment_source_token"); } get order() { return new OrderFilterFields(this.master, this.operator, this.addRelationship("order")); } }; var ExternalPromotionFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get currency_code() { return this.addField("currency_code"); } get exclusive() { return this.addField("exclusive"); } get priority() { return this.addField("priority"); } get starts_at() { return this.addField("starts_at"); } get expires_at() { return this.addField("expires_at"); } get total_usage_limit() { return this.addField("total_usage_limit"); } get total_usage_count() { return this.addField("total_usage_count"); } get total_usage_reached() { return this.addField("total_usage_reached"); } get disabled_at() { return this.addField("disabled_at"); } get circuit_state() { return this.addField("circuit_state"); } get circuit_failure_count() { return this.addField("circuit_failure_count"); } get market() { return new MarketFilterFields(this.master, this.operator, this.addRelationship("market")); } get promotion_rules() { return new PromotionRuleFilterFields(this.master, this.operator, this.addRelationship("promotion_rules")); } get order_amount_promotion_rule() { return new OrderAmountPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("order_amount_promotion_rule")); } get sku_list_promotion_rule() { return new SkuListPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("sku_list_promotion_rule")); } get coupon_codes_promotion_rule() { return new CouponCodesPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("coupon_codes_promotion_rule")); } get custom_promotion_rule() { return new CustomPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("custom_promotion_rule")); } get sku_list() { return new SkuListFilterFields(this.master, this.operator, this.addRelationship("sku_list")); } get coupons() { return new CouponFilterFields(this.master, this.operator, this.addRelationship("coupons")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var ExternalTaxCalculatorFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get circuit_state() { return this.addField("circuit_state"); } get circuit_failure_count() { return this.addField("circuit_failure_count"); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } }; var FixedAmountPromotionFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get currency_code() { return this.addField("currency_code"); } get exclusive() { return this.addField("exclusive"); } get priority() { return this.addField("priority"); } get starts_at() { return this.addField("starts_at"); } get expires_at() { return this.addField("expires_at"); } get total_usage_limit() { return this.addField("total_usage_limit"); } get total_usage_count() { return this.addField("total_usage_count"); } get total_usage_reached() { return this.addField("total_usage_reached"); } get disabled_at() { return this.addField("disabled_at"); } get market() { return new MarketFilterFields(this.master, this.operator, this.addRelationship("market")); } get promotion_rules() { return new PromotionRuleFilterFields(this.master, this.operator, this.addRelationship("promotion_rules")); } get order_amount_promotion_rule() { return new OrderAmountPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("order_amount_promotion_rule")); } get sku_list_promotion_rule() { return new SkuListPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("sku_list_promotion_rule")); } get coupon_codes_promotion_rule() { return new CouponCodesPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("coupon_codes_promotion_rule")); } get custom_promotion_rule() { return new CustomPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("custom_promotion_rule")); } get sku_list() { return new SkuListFilterFields(this.master, this.operator, this.addRelationship("sku_list")); } get coupons() { return new CouponFilterFields(this.master, this.operator, this.addRelationship("coupons")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var FixedPricePromotionFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get currency_code() { return this.addField("currency_code"); } get exclusive() { return this.addField("exclusive"); } get priority() { return this.addField("priority"); } get starts_at() { return this.addField("starts_at"); } get expires_at() { return this.addField("expires_at"); } get total_usage_limit() { return this.addField("total_usage_limit"); } get total_usage_count() { return this.addField("total_usage_count"); } get total_usage_reached() { return this.addField("total_usage_reached"); } get disabled_at() { return this.addField("disabled_at"); } get market() { return new MarketFilterFields(this.master, this.operator, this.addRelationship("market")); } get promotion_rules() { return new PromotionRuleFilterFields(this.master, this.operator, this.addRelationship("promotion_rules")); } get order_amount_promotion_rule() { return new OrderAmountPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("order_amount_promotion_rule")); } get sku_list_promotion_rule() { return new SkuListPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("sku_list_promotion_rule")); } get coupon_codes_promotion_rule() { return new CouponCodesPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("coupon_codes_promotion_rule")); } get custom_promotion_rule() { return new CustomPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("custom_promotion_rule")); } get sku_list() { return new SkuListFilterFields(this.master, this.operator, this.addRelationship("sku_list")); } get coupons() { return new CouponFilterFields(this.master, this.operator, this.addRelationship("coupons")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var FlexPromotionFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get exclusive() { return this.addField("exclusive"); } get priority() { return this.addField("priority"); } get starts_at() { return this.addField("starts_at"); } get expires_at() { return this.addField("expires_at"); } get total_usage_limit() { return this.addField("total_usage_limit"); } get total_usage_count() { return this.addField("total_usage_count"); } get rules() { return this.addField("rules"); } get disabled_at() { return this.addField("disabled_at"); } get coupon_codes_promotion_rule() { return new CouponCodesPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("coupon_codes_promotion_rule")); } get coupons() { return new CouponFilterFields(this.master, this.operator, this.addRelationship("coupons")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var FreeGiftPromotionFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get currency_code() { return this.addField("currency_code"); } get exclusive() { return this.addField("exclusive"); } get priority() { return this.addField("priority"); } get starts_at() { return this.addField("starts_at"); } get expires_at() { return this.addField("expires_at"); } get total_usage_limit() { return this.addField("total_usage_limit"); } get total_usage_count() { return this.addField("total_usage_count"); } get total_usage_reached() { return this.addField("total_usage_reached"); } get disabled_at() { return this.addField("disabled_at"); } get market() { return new MarketFilterFields(this.master, this.operator, this.addRelationship("market")); } get promotion_rules() { return new PromotionRuleFilterFields(this.master, this.operator, this.addRelationship("promotion_rules")); } get order_amount_promotion_rule() { return new OrderAmountPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("order_amount_promotion_rule")); } get sku_list_promotion_rule() { return new SkuListPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("sku_list_promotion_rule")); } get coupon_codes_promotion_rule() { return new CouponCodesPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("coupon_codes_promotion_rule")); } get custom_promotion_rule() { return new CustomPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("custom_promotion_rule")); } get sku_list() { return new SkuListFilterFields(this.master, this.operator, this.addRelationship("sku_list")); } get coupons() { return new CouponFilterFields(this.master, this.operator, this.addRelationship("coupons")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var FreeShippingPromotionFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get currency_code() { return this.addField("currency_code"); } get exclusive() { return this.addField("exclusive"); } get priority() { return this.addField("priority"); } get starts_at() { return this.addField("starts_at"); } get expires_at() { return this.addField("expires_at"); } get total_usage_limit() { return this.addField("total_usage_limit"); } get total_usage_count() { return this.addField("total_usage_count"); } get total_usage_reached() { return this.addField("total_usage_reached"); } get disabled_at() { return this.addField("disabled_at"); } get market() { return new MarketFilterFields(this.master, this.operator, this.addRelationship("market")); } get promotion_rules() { return new PromotionRuleFilterFields(this.master, this.operator, this.addRelationship("promotion_rules")); } get order_amount_promotion_rule() { return new OrderAmountPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("order_amount_promotion_rule")); } get sku_list_promotion_rule() { return new SkuListPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("sku_list_promotion_rule")); } get coupon_codes_promotion_rule() { return new CouponCodesPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("coupon_codes_promotion_rule")); } get custom_promotion_rule() { return new CustomPromotionRuleFilterFields(this.master, this.operator, this.addRelationship("custom_promotion_rule")); } get sku_list() { return new SkuListFilterFields(this.master, this.operator, this.addRelationship("sku_list")); } get coupons() { return new CouponFilterFields(this.master, this.operator, this.addRelationship("coupons")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var GeocoderFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } }; var GiftCardFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get status() { return this.addField("status"); } get code() { return this.addField("code"); } get currency_code() { return this.addField("currency_code"); } get balance_cents() { return this.addField("balance_cents"); } get balance_max_cents() { return this.addField("balance_max_cents"); } get single_use() { return this.addField("single_use"); } get rechargeable() { return this.addField("rechargeable"); } get expires_at() { return this.addField("expires_at"); } get market() { return new MarketFilterFields(this.master, this.operator, this.addRelationship("market")); } get gift_card_recipient() { return new GiftCardRecipientFilterFields(this.master, this.operator, this.addRelationship("gift_card_recipient")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var GiftCardRecipientFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get email() { return this.addField("email"); } get first_name() { return this.addField("first_name"); } get last_name() { return this.addField("last_name"); } get customer() { return new CustomerFilterFields(this.master, this.operator, this.addRelationship("customer")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } }; var GoogleGeocoderFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } }; var ImportFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get resource_type() { return this.addField("resource_type"); } get format() { return this.addField("format"); } get parent_resource_id() { return this.addField("parent_resource_id"); } get status() { return this.addField("status"); } get started_at() { return this.addField("started_at"); } get completed_at() { return this.addField("completed_at"); } get interrupted_at() { return this.addField("interrupted_at"); } get inputs_size() { return this.addField("inputs_size"); } get errors_count() { return this.addField("errors_count"); } get warnings_count() { return this.addField("warnings_count"); } get destroyed_count() { return this.addField("destroyed_count"); } get processed_count() { return this.addField("processed_count"); } get errors_log() { return this.addField("errors_log"); } get warnings_log() { return this.addField("warnings_log"); } get attachment_url() { return this.addField("attachment_url"); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } }; var InStockSubscriptionFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get status() { return this.addField("status"); } get stock_threshold() { return this.addField("stock_threshold"); } get market() { return new MarketFilterFields(this.master, this.operator, this.addRelationship("market")); } get customer() { return new CustomerFilterFields(this.master, this.operator, this.addRelationship("customer")); } get sku() { return new SkuFilterFields(this.master, this.operator, this.addRelationship("sku")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } }; var InventoryModelFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get strategy() { return this.addField("strategy"); } get stock_locations_cutoff() { return this.addField("stock_locations_cutoff"); } get stock_reservation_cutoff() { return this.addField("stock_reservation_cutoff"); } get inventory_stock_locations() { return new InventoryStockLocationFilterFields(this.master, this.operator, this.addRelationship("inventory_stock_locations")); } get inventory_return_locations() { return new InventoryReturnLocationFilterFields(this.master, this.operator, this.addRelationship("inventory_return_locations")); } get attachments() { return new AttachmentFilterFields(this.master, this.operator, this.addRelationship("attachments")); } }; var InventoryReturnLocationFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get priority() { return this.addField("priority"); } get stock_location() { return new StockLocationFilterFields(this.master, this.operator, this.addRelationship("stock_location")); } get inventory_model() { return new InventoryModelFilterFields(this.master, this.operator, this.addRelationship("inventory_model")); } }; var InventoryStockLocationFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get priority() { return this.addField("priority"); } get on_hold() { return this.addField("on_hold"); } get stock_location() { return new StockLocationFilterFields(this.master, this.operator, this.addRelationship("stock_location")); } get inventory_model() { return new InventoryModelFilterFields(this.master, this.operator, this.addRelationship("inventory_model")); } }; var KlarnaGatewayFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get payment_methods() { return new PaymentMethodFilterFields(this.master, this.operator, this.addRelationship("payment_methods")); } get klarna_payments() { return new KlarnaPaymentFilterFields(this.master, this.operator, this.addRelationship("klarna_payments")); } }; var KlarnaPaymentFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get mismatched_amounts() { return this.addField("mismatched_amounts"); } get order() { return new OrderFilterFields(this.master, this.operator, this.addRelationship("order")); } }; var LineItemFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get sku_code() { return this.addField("sku_code"); } get quantity() { return this.addField("quantity"); } get currency_code() { return this.addField("currency_code"); } get unit_amount_cents() { return this.addField("unit_amount_cents"); } get compare_at_amount_cents() { return this.addField("compare_at_amount_cents"); } get options_amount_cents() { return this.addField("options_amount_cents"); } get discount_cents() { return this.addField("discount_cents"); } get total_amount_cents() { return this.addField("total_amount_cents"); } get tax_amount_cents() { return this.addField("tax_amount_cents"); } get name() { return this.addField("name"); } get image_url() { return this.addField("image_url"); } get item_type() { return this.addField("item_type"); } get circuit_state() { return this.addField("circuit_state"); } get circuit_failure_count() { return this.addField("circuit_failure_count"); } get order() { return new OrderFilterFields(this.master, this.operator, this.addRelationship("order")); } get sku() { return new SkuFilterFields(this.master, this.operator, this.addRelationship("sku")); } get bundle() { return new BundleFilterFields(this.master, this.operator, this.addRelationship("bundle")); } get adjustment() { return new AdjustmentFilterFields(this.master, this.operator, this.addRelationship("adjustment")); } get gift_card() { return new GiftCardFilterFields(this.master, this.operator, this.addRelationship("gift_card")); } get shipment() { return new ShipmentFilterFields(this.master, this.operator, this.addRelationship("shipment")); } get payment_method() { return new PaymentMethodFilterFields(this.master, this.operator, this.addRelationship("payment_method")); } get line_item_options() { return new LineItemOptionFilterFields(this.master, this.operator, this.addRelationship("line_item_options")); } get return_line_items() { return new ReturnLineItemFilterFields(this.master, this.operator, this.addRelationship("return_line_items")); } get stock_reservations() { return new StockReservationFilterFields(this.master, this.operator, this.addRelationship("stock_reservations")); } get stock_line_items() { return new StockLineItemFilterFields(this.master, this.operator, this.addRelationship("stock_line_items")); } get stock_transfers() { return new StockTransferFilterFields(this.master, this.operator, this.addRelationship("stock_transfers")); } get notifications() { return new NotificationFilterFields(this.master, this.operator, this.addRelationship("notifications")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var LineItemOptionFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get quantity() { return this.addField("quantity"); } get currency_code() { return this.addField("currency_code"); } get unit_amount_cents() { return this.addField("unit_amount_cents"); } get delay_hours() { return this.addField("delay_hours"); } get delay_days() { return this.addField("delay_days"); } get line_item() { return new LineItemFilterFields(this.master, this.operator, this.addRelationship("line_item")); } get sku_option() { return new SkuOptionFilterFields(this.master, this.operator, this.addRelationship("sku_option")); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } get tags() { return new TagFilterFields(this.master, this.operator, this.addRelationship("tags")); } }; var LinkFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get client_id() { return this.addField("client_id"); } get scope() { return this.addField("scope"); } get starts_at() { return this.addField("starts_at"); } get expires_at() { return this.addField("expires_at"); } get item_type() { return this.addField("item_type"); } get params() { return this.addField("params"); } get disabled_at() { return this.addField("disabled_at"); } get events() { return new EventFilterFields(this.master, this.operator, this.addRelationship("events")); } }; var ManualGatewayFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get payment_methods() { return new PaymentMethodFilterFields(this.master, this.operator, this.addRelationship("payment_methods")); } }; var ManualTaxCalculatorFilterFields = class extends chunkDH6DQ2Y4_cjs.ResourceFilterFields { get name() { return this.addField("name"); } get type() { return this.addField("type"); } get attachments() { return new AttachmentFilterF