@flowio/types 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Flow Commerce
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,4 +1,3 @@
1
- declare namespace io.flow.ratecard.v0.enums { }
2
1
  declare namespace io.flow.ratecard.v0.models {
3
2
  interface CrossdockRatecardFee {
4
3
  readonly amount: io.flow.common.v0.models.Money;
@@ -528,7 +527,6 @@ declare namespace io.flow.tracking.v0.models {
528
527
  readonly tracking: io.flow.tracking.v0.models.TrackingSummary;
529
528
  }
530
529
  }
531
- declare namespace io.flow.tracking.v0.unions { }
532
530
  declare namespace io.flow.experience.v0.enums {
533
531
  type CreditPaymentErrorCode = 'generic_error' | 'invalid_order_number' | 'invalid_currency' | 'invalid_description' | 'duplicate' | 'amount_must_be_positive' | 'amount_exceeds_balance' | 'insufficient_amount';
534
532
  type DeliveredDutyDisplayType = 'all' | 'single';
@@ -1255,7 +1253,6 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
1255
1253
  readonly return: io.flow.RESERVED_WORD_return.v0.models.Return;
1256
1254
  }
1257
1255
  }
1258
- declare namespace io.flow.RESERVED_WORD_return.v0.unions { }
1259
1256
  declare namespace io.flow.shopify.external.v0.enums {
1260
1257
  type CancelReason = 'customer' | 'fraud' | 'inventory' | 'declined' | 'other';
1261
1258
  type DiscountStatus = 'enabled' | 'disabled' | 'depleted';
@@ -2077,7 +2074,6 @@ declare namespace io.flow.shopify.external.v0.models {
2077
2074
  readonly webhook: io.flow.shopify.external.v0.models.Webhook;
2078
2075
  }
2079
2076
  }
2080
- declare namespace io.flow.shopify.external.v0.unions { }
2081
2077
  declare namespace io.flow.billing.v0.enums {
2082
2078
  type BillingStatementAttachmentKey = 'invoice' | 'statement' | 'consumer_invoice' | 'credit_memo' | 'transactions' | 'virtual_card' | 'tax_remittance' | 'manual' | 'orders' | 'all';
2083
2079
  type BillingTransactionStatus = 'pending' | 'posted';
@@ -2190,7 +2186,6 @@ declare namespace io.flow.billing.v0.models {
2190
2186
  readonly created_at: string;
2191
2187
  }
2192
2188
  }
2193
- declare namespace io.flow.billing.v0.unions { }
2194
2189
  declare namespace io.flow.svb.v0.enums {
2195
2190
  type ClearingType = 'Credit' | 'Debit';
2196
2191
  type NotificationType = 'virtualcard.clearings' | 'virtualcard.created' | 'virtualcard.deleted' | 'virtualcard.realtime.auths';
@@ -2347,7 +2342,6 @@ declare namespace io.flow.svb.v0.models {
2347
2342
  readonly data: io.flow.svb.v0.models.VirtualCard;
2348
2343
  }
2349
2344
  }
2350
- declare namespace io.flow.svb.v0.unions { }
2351
2345
  declare namespace io.flow.external.paypal.v1.enums {
2352
2346
  type AllowedPaymentMethod = 'INSTANT_FUNDING_SOURCE' | 'UNRESTRICTED' | 'IMMEDIATE_PAY';
2353
2347
  type FailureReason = 'UNABLE_TO_COMPLETE_TRANSACTION' | 'INVALID_PAYMENT_METHOD' | 'PAYER_CANNOT_PAY' | 'CANNOT_PAY_THIS_PAYEE' | 'REDIRECT_REQUIRED' | 'PAYEE_FILTER_RESTRICTIONS';
@@ -2508,7 +2502,6 @@ declare namespace io.flow.external.paypal.v1.models {
2508
2502
  };
2509
2503
  }
2510
2504
  }
2511
- declare namespace io.flow.external.paypal.v1.unions { }
2512
2505
  declare namespace io.flow.bundle.internal.v0.enums {
2513
2506
  type CheckoutErrorCode = 'generic_error' | 'order_identifier_invalid' | 'url_invalid' | 'organization_invalid' | 'session_invalid' | 'session_organization_invalid';
2514
2507
  }
@@ -2643,8 +2636,6 @@ declare namespace io.flow.price.internal.v0.enums {
2643
2636
  type DeminimisAdjustmentType = 'none' | 'duty' | 'vat' | 'vat_and_duty';
2644
2637
  type SimpleRoundingStrategy = 'no_rounding' | 'currency_precision';
2645
2638
  }
2646
- declare namespace io.flow.price.internal.v0.models { }
2647
- declare namespace io.flow.price.internal.v0.unions { }
2648
2639
  declare namespace io.flow.feature.v0.enums {
2649
2640
  type FeatureScope = 'global' | 'organization';
2650
2641
  type FeatureStatus = 'draft' | 'active' | 'archived';
@@ -3373,7 +3364,6 @@ declare namespace io.flow.organization.v0.models {
3373
3364
  readonly status: io.flow.common.v0.enums.AvailabilityStatus;
3374
3365
  }
3375
3366
  }
3376
- declare namespace io.flow.organization.v0.unions { }
3377
3367
  declare namespace io.flow.bitpay.v0.enums {
3378
3368
  type ExceptionStatus = 'paidPartial' | 'paidOver' | 'paidLate';
3379
3369
  type InvoiceStatus = 'new' | 'paid' | 'confirmed' | 'complete' | 'expired' | 'invalid';
@@ -3519,8 +3509,6 @@ declare namespace io.flow.bitpay.v0.models {
3519
3509
  readonly name: io.flow.bitpay.v0.enums.WebhookEventName;
3520
3510
  }
3521
3511
  }
3522
- declare namespace io.flow.bitpay.v0.unions { }
3523
- declare namespace io.flow.search.v0.enums { }
3524
3512
  declare namespace io.flow.search.v0.models {
3525
3513
  interface CatalogItemDocument {
3526
3514
  readonly number: string;
@@ -3548,6 +3536,10 @@ declare namespace io.flow.search.v0.models {
3548
3536
  readonly q: string;
3549
3537
  readonly count?: number;
3550
3538
  }
3539
+ interface PriceBookItemSearchingForm {
3540
+ readonly price_book_key?: string;
3541
+ readonly item_query?: string;
3542
+ }
3551
3543
  interface Suggestion {
3552
3544
  readonly label: string;
3553
3545
  readonly count: number;
@@ -3948,8 +3940,6 @@ declare namespace io.flow.classification.internal.v0.models {
3948
3940
  readonly classification_model_id: string;
3949
3941
  }
3950
3942
  }
3951
- declare namespace io.flow.classification.internal.v0.unions { }
3952
- declare namespace io.flow.session.v0.enums { }
3953
3943
  declare namespace io.flow.session.v0.models {
3954
3944
  interface CartReference {
3955
3945
  readonly id: string;
@@ -5322,7 +5312,6 @@ declare namespace io.flow.common.v0.unions {
5322
5312
  discriminator: 'provided';
5323
5313
  } & io.flow.common.v0.models.PriceSourceProvided;
5324
5314
  }
5325
- declare namespace io.flow.issuer.v0.enums { }
5326
5315
  declare namespace io.flow.issuer.v0.models {
5327
5316
  interface Issuer {
5328
5317
  readonly id: string;
@@ -5336,7 +5325,6 @@ declare namespace io.flow.issuer.v0.models {
5336
5325
  readonly phone?: string;
5337
5326
  }
5338
5327
  }
5339
- declare namespace io.flow.issuer.v0.unions { }
5340
5328
  declare namespace io.flow.reference.v0.enums {
5341
5329
  type PaymentMethodType = 'card' | 'online' | 'offline';
5342
5330
  type ProvinceType = 'city' | 'dependency' | 'district' | 'emirate' | 'entity' | 'municipality' | 'outlying_area' | 'parish' | 'province' | 'state' | 'territory' | 'other';
@@ -5433,7 +5421,6 @@ declare namespace io.flow.reference.v0.models {
5433
5421
  readonly offset: number;
5434
5422
  }
5435
5423
  }
5436
- declare namespace io.flow.reference.v0.unions { }
5437
5424
  declare namespace io.flow.fraud.internal.v0.enums {
5438
5425
  type RiskEvaluation = 'pending' | 'high' | 'low' | 'restricted' | 'none';
5439
5426
  }
@@ -5486,7 +5473,6 @@ declare namespace io.flow.fraud.internal.v0.models {
5486
5473
  readonly order: io.flow.fraud.internal.v0.models.Decision;
5487
5474
  }
5488
5475
  }
5489
- declare namespace io.flow.fraud.internal.v0.unions { }
5490
5476
  declare namespace io.flow.experience.internal.v0.enums {
5491
5477
  type DeliveredDutyOptionMessageType = 'warning';
5492
5478
  type DiscountRequestOrderEntitlementKey = 'subtotal';
@@ -5664,7 +5650,6 @@ declare namespace io.flow.experience.internal.v0.unions {
5664
5650
  discriminator: 'discount_request_offer_fixed_amount_form';
5665
5651
  } & io.flow.experience.internal.v0.models.DiscountRequestOfferFixedAmountForm;
5666
5652
  }
5667
- declare namespace io.flow.fulfillment.internal.v0.enums { }
5668
5653
  declare namespace io.flow.fulfillment.internal.v0.models {
5669
5654
  interface CenterQueryBuilder {
5670
5655
  readonly placeholder: string;
@@ -5686,7 +5671,6 @@ declare namespace io.flow.fulfillment.internal.v0.models {
5686
5671
  readonly position: number;
5687
5672
  }
5688
5673
  }
5689
- declare namespace io.flow.fulfillment.internal.v0.unions { }
5690
5674
  declare namespace io.flow.duty.internal.v0.enums {
5691
5675
  type DutyCompoundExpressionType = 'sum' | 'max' | 'min';
5692
5676
  type DutyRateUnitOfMeasure = 'kg' | 'sq m' | 'item' | 'pair';
@@ -6181,7 +6165,6 @@ declare namespace io.flow.stripe.v0.models {
6181
6165
  readonly user_agent?: string;
6182
6166
  }
6183
6167
  }
6184
- declare namespace io.flow.stripe.v0.unions { }
6185
6168
  declare namespace io.flow.RESERVED_WORD_export.v0.enums {
6186
6169
  type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
6187
6170
  }
@@ -6229,6 +6212,18 @@ declare namespace io.flow.RESERVED_WORD_export.v0.models {
6229
6212
  readonly q?: string;
6230
6213
  readonly sort?: string;
6231
6214
  }
6215
+ interface CsvPriceBookItemExportRow {
6216
+ readonly price_book_key: string;
6217
+ readonly item_number: string;
6218
+ readonly item_Name: string;
6219
+ readonly amount: number;
6220
+ readonly item_attributes?: {
6221
+ [key: string]: string;
6222
+ };
6223
+ readonly starts_at: string;
6224
+ readonly ends_at?: string;
6225
+ readonly price_book_item_key: string;
6226
+ }
6232
6227
  interface ExperienceExportType {
6233
6228
  readonly organization_id: string;
6234
6229
  readonly ids?: string[];
@@ -6313,7 +6308,7 @@ declare namespace io.flow.RESERVED_WORD_export.v0.models {
6313
6308
  readonly sort?: string;
6314
6309
  }
6315
6310
  interface PriceBookItemExportType {
6316
- readonly price_book_key: string;
6311
+ readonly price_book_key?: string;
6317
6312
  readonly item_numbers?: string[];
6318
6313
  readonly start_date?: string;
6319
6314
  readonly end_date?: string;
@@ -6626,7 +6621,6 @@ declare namespace io.flow.ftp.v0.models {
6626
6621
  readonly password?: string;
6627
6622
  }
6628
6623
  }
6629
- declare namespace io.flow.ftp.v0.unions { }
6630
6624
  declare namespace io.flow.checkout.configuration.v0.enums {
6631
6625
  type CheckoutPromptBehavior = 'always' | 'incomplete';
6632
6626
  type CheckoutShippingMethodPromptBehavior = 'always' | 'multiple';
@@ -6661,7 +6655,6 @@ declare namespace io.flow.checkout.configuration.v0.models {
6661
6655
  readonly session_persistence_timeout?: io.flow.common.v0.models.Duration;
6662
6656
  }
6663
6657
  }
6664
- declare namespace io.flow.checkout.configuration.v0.unions { }
6665
6658
  declare namespace io.flow.flexe.v0.enums {
6666
6659
  type FlexeAttachmentType = 'shipping_label' | 'packing_slip' | 'packing_slip_letter';
6667
6660
  type FlexeNotification = 'receipt' | 'shipment';
@@ -6928,7 +6921,6 @@ declare namespace io.flow.flexe.v0.models {
6928
6921
  readonly unit: string;
6929
6922
  }
6930
6923
  }
6931
- declare namespace io.flow.flexe.v0.unions { }
6932
6924
  declare namespace io.flow.fraud.v0.enums {
6933
6925
  type FraudEmailRuleDecision = 'approved' | 'declined';
6934
6926
  type FraudLiability = 'flow' | 'organization';
@@ -6947,7 +6939,6 @@ declare namespace io.flow.fraud.v0.models {
6947
6939
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
6948
6940
  }
6949
6941
  }
6950
- declare namespace io.flow.fraud.v0.unions { }
6951
6942
  declare namespace io.flow.payment.v0.enums {
6952
6943
  type AuthorizationDeclineCode = 'expired' | 'invalid_name' | 'invalid_number' | 'invalid_expiration' | 'invalid_address' | 'invalid_token_type' | 'invalid_token' | 'no_account' | 'avs' | 'cvv' | 'fraud' | 'duplicate' | 'not_supported' | 'unknown';
6953
6944
  type AuthorizationOption = 'store_card';
@@ -7620,7 +7611,6 @@ declare namespace io.flow.invoice.v0.models {
7620
7611
  readonly value: io.flow.common.v0.models.Price;
7621
7612
  }
7622
7613
  }
7623
- declare namespace io.flow.invoice.v0.unions { }
7624
7614
  declare namespace io.flow.inventory.v0.enums {
7625
7615
  type Aggregate = 'maximum' | 'minimum';
7626
7616
  type InventoryStatus = 'has_inventory' | 'no_inventory';
@@ -7987,7 +7977,6 @@ declare namespace io.flow.label.internal.v0.models {
7987
7977
  readonly default_contents: string;
7988
7978
  }
7989
7979
  }
7990
- declare namespace io.flow.label.internal.v0.unions { }
7991
7980
  declare namespace io.flow.experiment.internal.v0.enums {
7992
7981
  type Status = 'draft' | 'ended' | 'live';
7993
7982
  type TimeseriesType = 'daily' | 'weekly' | 'monthly' | 'yearly';
@@ -8046,7 +8035,6 @@ declare namespace io.flow.experiment.internal.v0.unions {
8046
8035
  discriminator: 'external_variant';
8047
8036
  } & io.flow.experiment.internal.v0.models.ExternalVariant;
8048
8037
  }
8049
- declare namespace io.flow.magento.v0.enums { }
8050
8038
  declare namespace io.flow.magento.v0.models {
8051
8039
  interface BundleProductOption {
8052
8040
  readonly option_id?: number;
@@ -8340,7 +8328,6 @@ declare namespace io.flow.magento.v0.models {
8340
8328
  readonly video_metadata: string;
8341
8329
  }
8342
8330
  }
8343
- declare namespace io.flow.magento.v0.unions { }
8344
8331
  declare namespace io.flow.content.internal.v0.enums {
8345
8332
  type ContentElementType = 'markdown' | 'html' | 'plain_text' | 'href';
8346
8333
  type ContentStatus = 'draft' | 'live' | 'archived';
@@ -8653,7 +8640,6 @@ declare namespace io.flow.currency.internal.v0.models {
8653
8640
  readonly spot_rate: io.flow.currency.internal.v0.models.SpotRate;
8654
8641
  }
8655
8642
  }
8656
- declare namespace io.flow.currency.internal.v0.unions { }
8657
8643
  declare namespace io.flow.adyen.v0.enums {
8658
8644
  type Contract = 'RECURRING';
8659
8645
  type EventCode = 'AUTHORISATION' | 'CANCELLATION' | 'REFUND' | 'CANCEL_OR_REFUND' | 'CAPTURE' | 'CAPTURE_FAILED' | 'REFUND_FAILED' | 'REFUNDED_REVERSED' | 'PAIDOUT_REVERSED' | 'REQUEST_FOR_INFORMATION' | 'CHARGEBACK' | 'CHARGEBACK_REVERSED' | 'NOTIFICATION_OF_CHARGEBACK' | 'NOTIFICATION_OF_FRAUD' | 'MANUAL_REVIEW_ACCEPT' | 'MANUAL_REVIEW_REJECT' | 'RECURRING_CONTRACT' | 'PAYOUT_EXPIRE' | 'PAYOUT_DECLINE' | 'PAYOUT_THIRDPARTY' | 'REFUND_WITH_DATA' | 'AUTHORISE_REFERRAL' | 'EXPIRE' | 'FRAUD_ONLY' | 'FUND_TRANSFER' | 'HANDLED_EXTERNALLY' | 'OFFER_CLOSED' | 'ORDER_OPENED' | 'ORDER_CLOSED' | 'PENDING' | 'PROCESS_RETRY' | 'REPORT_AVAILABLE';
@@ -8802,7 +8788,6 @@ declare namespace io.flow.adyen.v0.models {
8802
8788
  readonly xid?: string;
8803
8789
  }
8804
8790
  }
8805
- declare namespace io.flow.adyen.v0.unions { }
8806
8791
  declare namespace io.flow.customer.v0.enums {
8807
8792
  type CustomerAddressType = 'billing' | 'invoice' | 'shipping';
8808
8793
  }
@@ -8864,7 +8849,6 @@ declare namespace io.flow.customer.v0.models {
8864
8849
  readonly token: string;
8865
8850
  }
8866
8851
  }
8867
- declare namespace io.flow.customer.v0.unions { }
8868
8852
  declare namespace io.flow.currency.v0.enums {
8869
8853
  type RateType = 'flow' | 'organization';
8870
8854
  }
@@ -8905,9 +8889,8 @@ declare namespace io.flow.currency.v0.models {
8905
8889
  readonly rate: io.flow.currency.v0.models.Rate;
8906
8890
  }
8907
8891
  }
8908
- declare namespace io.flow.currency.v0.unions { }
8909
8892
  declare namespace io.flow.RESERVED_WORD_import.v0.enums {
8910
- type ImportType = 'harmonization_codes' | 'catalog_items' | 'price_book_items' | 'price_book_items_query' | 'customs_descriptions' | 'customs_description_tariffs' | 'item_form_overlays' | 'experiences_with_settings';
8893
+ type ImportType = 'catalog_items' | 'customs_descriptions' | 'customs_description_tariffs' | 'experiences_with_settings' | 'harmonization_codes' | 'item_form_overlays' | 'price_book_items' | 'price_book_items_query' | 'ratecard_lanes';
8911
8894
  }
8912
8895
  declare namespace io.flow.RESERVED_WORD_import.v0.models {
8913
8896
  interface Import {
@@ -8950,8 +8933,6 @@ declare namespace io.flow.RESERVED_WORD_import.v0.models {
8950
8933
  readonly import: io.flow.RESERVED_WORD_import.v0.models.Import;
8951
8934
  }
8952
8935
  }
8953
- declare namespace io.flow.RESERVED_WORD_import.v0.unions { }
8954
- declare namespace io.flow.order.management.event.v0.enums { }
8955
8936
  declare namespace io.flow.order.management.event.v0.models {
8956
8937
  interface FulfillmentItemAllocationDetails {
8957
8938
  readonly item_number: string;
@@ -9365,7 +9346,6 @@ declare namespace io.flow.error.v0.models {
9365
9346
  readonly messages: string[];
9366
9347
  }
9367
9348
  }
9368
- declare namespace io.flow.error.v0.unions { }
9369
9349
  declare namespace io.flow.permission.v0.enums {
9370
9350
  type AuthenticationTechnique = 'anonymous' | 'session' | 'token' | 'partner_token' | 'user';
9371
9351
  type FlowAddonRole = 'consumer_data_viewer' | 'membership_manager';
@@ -9419,7 +9399,6 @@ declare namespace io.flow.permission.v0.unions {
9419
9399
  value: io.flow.permission.v0.enums.FlowAddonRole;
9420
9400
  };
9421
9401
  }
9422
- declare namespace io.flow.checkout.v0.enums { }
9423
9402
  declare namespace io.flow.checkout.v0.models {
9424
9403
  interface CheckoutToken {
9425
9404
  readonly id: string;
@@ -9498,7 +9477,6 @@ declare namespace io.flow.order.management.v0.models {
9498
9477
  readonly quantity: number;
9499
9478
  }
9500
9479
  }
9501
- declare namespace io.flow.order.management.v0.unions { }
9502
9480
  declare namespace io.flow.internal.v0.enums {
9503
9481
  type BillingAllocationKey = 'freight_cost' | 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'fuel_surcharge' | 'remote_area_surcharge';
9504
9482
  type BillingStatementAttachmentKey = 'invoice' | 'statement' | 'consumer_invoice' | 'credit_memo' | 'transactions' | 'virtual_card' | 'tax_remittance' | 'manual' | 'orders' | 'all';
@@ -9523,7 +9501,6 @@ declare namespace io.flow.internal.v0.enums {
9523
9501
  type DutyRateUnitOfMeasure = 'kg' | 'sq m' | 'item' | 'pair';
9524
9502
  type DutySimpleExpressionType = 'free' | 'percent' | 'per_uom' | 'flat';
9525
9503
  type EventType = 'adyen_authorization_deleted' | 'adyen_authorization_upserted' | 'adyen_cancel_deleted' | 'adyen_cancel_upserted' | 'adyen_capture_deleted' | 'adyen_capture_upserted' | 'adyen_refund_deleted' | 'adyen_refund_upserted' | 'billing_statement_upserted' | 'billing_statement_deleted' | 'tax_remittance_transaction_upserted' | 'tax_remittance_transaction_deleted' | 'account_transactions_export_request' | 'account_orders_export_request' | 'carrier_account_upserted' | 'catalog_import_request' | 'catalog_item_region_availabilities_published' | 'checkout_configuration_upserted' | 'checkout_configuration_deleted' | 'product_classification_upserted' | 'product_classification_deleted' | 'localized_content_upserted' | 'localization_upserted' | 'rate_deleted' | 'rate_upserted' | 'spot_rate_deleted' | 'spot_rate_upserted' | 'organization_currency_settings_upserted' | 'organization_currency_settings_deleted' | 'rate_deleted_v2' | 'rate_upserted_v2' | 'customs_description_import' | 'customs_description_tariffs_import' | 'item_dimension_estimate_upserted' | 'item_dimension_estimate_deleted' | 'duty_rate_request' | 'duty_rate_bulk_request' | 'duty_raw_upserted' | 'duty_raw_bulk_upserted' | 'duty_rate_upserted' | 'duty_rate_response' | 'duty_rate_bulk_response' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'order_attribute_deleted' | 'order_attribute_upserted' | 'experience_export_request' | 'experience_import_request' | 'submitted_order_upserted' | 'experiment_upserted' | 'experiment_deleted' | 'experiment_results_upserted' | 'experiment_results_deleted' | 'export_completed' | 'export_failed' | 'fraud_review_upserted' | 'fraud_review_deleted' | 'fraud_pending_review_upserted' | 'fraud_pending_review_deleted' | 'fraud_review_decision_upserted' | 'fraud_review_decision_deleted' | 'ftp_file_upserted' | 'ftp_file_deleted' | 'ftp_file_to_process_uploaded' | 'pregenerated_quote_upserted' | 'pregenerated_quote_deleted' | 'pregenerated_request_event' | 'blacklisted_item_created' | 'blacklisted_item_updated' | 'blacklisted_item_deleted' | 'all_items_export' | 'harmonized_items_hs6_export' | 'unharmonized_items_export' | 'dutied_items_export' | 'landed_cost_export' | 'harmonization_phrase_suggestion_request_import' | 'harmonization_codes_import' | 'customs_description_sugestion_created' | 'harmonize_fully_with_rate' | 'item_harmonized' | 'harmonize_fully_request' | 'import_completed' | 'import_failed' | 'next_installment_upserted' | 'next_installment_deleted' | 'installment_upserted' | 'installment_deleted' | 'installment_program_upserted' | 'installment_program_deleted' | 'installment_plan_upserted' | 'installment_plan_deleted' | 'installment_plan_authorization_upserted' | 'installment_plan_authorization_deleted' | 'issuer_upserted' | 'issuer_deleted' | 'localized_item_upserted_v2' | 'localized_item_deleted' | 'localized_item_deleted_v2' | 'localized_item_snapshot' | 'localized_item_prices_export_request' | 'optin_prompt_upserted' | 'optin_prompt_deleted' | 'order_fulfillment_deleted' | 'order_fulfillment_upserted' | 'order_placed' | 'ready_to_fulfill' | 'fulfillment_cancel' | 'order_shipped' | 'items_shipped' | 'internal_authorization_upserted' | 'internal_authorization_deleted' | 'afterpay_authorization_upserted' | 'afterpay_authorization_deleted' | 'afterpay_capture_upserted' | 'afterpay_capture_deleted' | 'afterpay_refund_upserted' | 'afterpay_refund_deleted' | 'adyen_merchant_account_upserted' | 'adyen_merchant_account_deleted' | 'paypal_payment_deleted' | 'paypal_payment_upserted' | 'paypal_execution_deleted' | 'paypal_execution_upserted' | 'paypal_refund_deleted' | 'paypal_refund_upserted' | 'order_rates_published_v3' | 'ratecard_lanes_import_request' | 'shopify_shop_upserted' | 'shopify_shop_deleted' | 'shopify_experience_short_id_upserted' | 'shopify_experience_short_id_deleted' | 'stripe_authorization_deleted' | 'stripe_authorization_upserted' | 'stripe_reversal_deleted' | 'stripe_reversal_upserted' | 'stripe_capture_deleted' | 'stripe_capture_upserted' | 'stripe_refund_deleted' | 'stripe_refund_upserted' | 'svb_virtual_card_clearing_upserted' | 'svb_virtual_card_clearing_deleted' | 'tracking_request_upserted' | 'tracking_response_upserted' | 'user_upserted' | 'user_deleted';
9526
- type ExclusionRuleState = 'current' | 'deleting' | 'updating';
9527
9504
  type ExperienceImportType = 'experience_with_settings';
9528
9505
  type ExperienceOrderAction = 'submit' | 'refund_gift_cards';
9529
9506
  type ExperienceOrderActionTrigger = 'zero_balance' | 'unsubmitted_order';
@@ -10827,30 +10804,6 @@ declare namespace io.flow.internal.v0.models {
10827
10804
  readonly cipher: string;
10828
10805
  readonly passphrase_ids: string[];
10829
10806
  }
10830
- interface ExclusionRule {
10831
- readonly id: string;
10832
- readonly q: string;
10833
- readonly query: io.flow.query.builder.v0.models.Query;
10834
- readonly regions: io.flow.reference.v0.models.Region[];
10835
- readonly status: io.flow.catalog.v0.enums.SubcatalogItemStatus;
10836
- readonly description?: string;
10837
- readonly statistics: io.flow.internal.v0.models.ExclusionRuleStatistic;
10838
- }
10839
- interface ExclusionRuleForm {
10840
- readonly q: string;
10841
- readonly regions: string[];
10842
- readonly description?: string;
10843
- }
10844
- interface ExclusionRuleStatistic {
10845
- readonly state: io.flow.internal.v0.enums.ExclusionRuleState;
10846
- readonly number_items: number;
10847
- }
10848
- interface ExclusionRuleVersion {
10849
- readonly id: string;
10850
- readonly timestamp: string;
10851
- readonly type: io.flow.common.v0.enums.ChangeType;
10852
- readonly exclusion_rule: io.flow.internal.v0.models.ExclusionRule;
10853
- }
10854
10807
  interface ExpectedOrderSummary {
10855
10808
  readonly total?: io.flow.common.v0.models.Money;
10856
10809
  }
@@ -14307,11 +14260,6 @@ export declare type EmailModificationForm = io.flow.internal.v0.models.EmailModi
14307
14260
  export declare type Encryption = io.flow.internal.v0.models.Encryption;
14308
14261
  export declare type Event = io.flow.internal.v0.unions.Event;
14309
14262
  export declare type EventType = io.flow.internal.v0.enums.EventType;
14310
- export declare type ExclusionRule = io.flow.internal.v0.models.ExclusionRule;
14311
- export declare type ExclusionRuleForm = io.flow.internal.v0.models.ExclusionRuleForm;
14312
- export declare type ExclusionRuleState = io.flow.internal.v0.enums.ExclusionRuleState;
14313
- export declare type ExclusionRuleStatistic = io.flow.internal.v0.models.ExclusionRuleStatistic;
14314
- export declare type ExclusionRuleVersion = io.flow.internal.v0.models.ExclusionRuleVersion;
14315
14263
  export declare type ExpectedOrderSummary = io.flow.internal.v0.models.ExpectedOrderSummary;
14316
14264
  export declare type ExperienceExportRequest = io.flow.internal.v0.models.ExperienceExportRequest;
14317
14265
  export declare type ExperienceFeedSummary = io.flow.internal.v0.models.ExperienceFeedSummary;
package/dist/api.d.ts CHANGED
@@ -819,7 +819,6 @@ declare namespace io.flow.shopify.external.v0.models {
819
819
  readonly webhook: io.flow.shopify.external.v0.models.Webhook;
820
820
  }
821
821
  }
822
- declare namespace io.flow.shopify.external.v0.unions { }
823
822
  declare namespace io.flow.v0.enums {
824
823
  type AdjustmentReasonKey = 'duty_deminimis' | 'vat_deminimis';
825
824
  type Aggregate = 'maximum' | 'minimum';
@@ -864,6 +863,7 @@ declare namespace io.flow.v0.enums {
864
863
  type Environment = 'sandbox' | 'production';
865
864
  type EventType = 'attribute_upserted' | 'attribute_deleted' | 'attribute_upserted_v2' | 'attribute_deleted_v2' | 'catalog_upserted' | 'catalog_deleted' | 'subcatalog_upserted' | 'subcatalog_deleted' | 'catalog_item_upserted' | 'catalog_item_deleted' | 'catalog_item_upserted_v2' | 'catalog_item_deleted_v2' | 'subcatalog_item_upserted' | 'subcatalog_item_deleted' | 'b2b_invoice_upserted' | 'b2b_invoice_deleted' | 'consumer_invoice_upserted' | 'consumer_invoice_deleted' | 'credit_memo_upserted' | 'credit_memo_deleted' | 'crossdock_shipment_upserted' | 'rate_deleted' | 'rate_upserted' | 'rate_deleted_v3' | 'rate_upserted_v3' | 'customer_upserted' | 'customer_deleted' | 'customer_address_book_contact_upserted' | 'customer_address_book_contact_deleted' | 'available_promotions_upserted' | 'available_promotions_deleted' | 'available_promotions_upserted_v2' | 'available_promotions_deleted_v2' | 'allocation_deleted_v2' | 'allocation_upserted_v2' | 'currency_format_deleted' | 'currency_format_upserted' | 'experience_deleted' | 'experience_upserted' | 'experience_deleted_v2' | 'experience_upserted_v2' | 'experience_price_book_mapping_deleted' | 'experience_price_book_mapping_upserted' | 'experience_logistics_settings_upserted' | 'experience_logistics_settings_deleted' | 'item_margin_deleted' | 'item_margin_upserted' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'label_format_deleted' | 'label_format_upserted' | 'order_deleted' | 'order_upserted' | 'order_deleted_v2' | 'order_upserted_v2' | 'order_identifier_deleted' | 'order_identifier_upserted' | 'order_identifier_deleted_v2' | 'order_identifier_upserted_v2' | 'order_identifier_upserted_v3' | 'pricing_deleted' | 'pricing_upserted' | 'fraud_status_changed' | 'center_upserted' | 'center_deleted' | 'shipping_configuration_upserted' | 'shipping_configuration_deleted' | 'tier_upserted_v2' | 'tier_deleted_v2' | 'shipping_lane_upserted' | 'shipping_lane_deleted' | 'shipping_configuration_item_availability_upserted' | 'shipping_configuration_item_availability_deleted' | 'shipping_configuration_item_shipping_pricing_upserted' | 'shipping_configuration_item_shipping_pricing_deleted' | 'hs6_code_upserted' | 'hs6_code_deleted' | 'hs10_code_upserted' | 'hs10_code_deleted' | 'item_origin_upserted' | 'item_origin_deleted' | 'harmonized_item_upserted' | 'harmonized_item_deleted' | 'harmonized_landed_cost_upserted' | 'fully_harmonized_item_upserted' | 'rule_upserted' | 'rule_deleted' | 'serial_upserted' | 'serial_deleted' | 'snapshot_upserted' | 'snapshot_deleted' | 'label_upserted' | 'notification_upserted' | 'notification_deleted' | 'manifested_label_upserted' | 'manifested_label_deleted' | 'local_item_upserted' | 'local_item_deleted' | 'checkout_optin_responses_upserted' | 'checkout_optin_responses_deleted' | 'browse_optin_responses_upserted' | 'browse_optin_responses_deleted' | 'order_placed' | 'order_placed_v2' | 'ready_to_fulfill' | 'membership_upserted_v2' | 'membership_deleted_v2' | 'organization_upserted' | 'organization_deleted' | 'organization_upserted_v2' | 'organization_deleted_v2' | 'organization_short_id_upserted' | 'organization_short_id_deleted' | 'organization_default_configurations_upserted' | 'organization_default_configurations_deleted' | 'ecommerce_platform_upserted' | 'ecommerce_platform_deleted' | 'authorization_deleted_v2' | 'authorization_status_changed' | 'card_authorization_upserted_v2' | 'card_authorization_deleted_v2' | 'online_authorization_upserted_v2' | 'online_authorization_deleted_v2' | 'capture_upserted_v2' | 'capture_deleted' | 'card_upserted_v2' | 'card_deleted' | 'payment_upserted' | 'payment_deleted' | 'refund_upserted_v2' | 'refund_deleted_v2' | 'refund_capture_upserted_v2' | 'reversal_upserted' | 'reversal_deleted' | 'capture_identifier_upserted' | 'capture_identifier_deleted' | 'refund_identifier_upserted' | 'refund_identifier_deleted' | 'virtual_card_capture_upserted' | 'virtual_card_capture_deleted' | 'virtual_card_refund_upserted' | 'virtual_card_refund_deleted' | 'price_book_upserted' | 'price_book_deleted' | 'price_book_item_upserted' | 'price_book_item_deleted' | 'organization_rates_published' | 'organization_countries_published' | 'ratecard_lane_upserted' | 'ratecard_lane_deleted' | 'return_upserted' | 'return_deleted' | 'shopify_localization_setting_upserted' | 'shopify_localization_setting_deleted' | 'targeting_item_upserted' | 'targeting_item_upserted_v2' | 'targeting_item_deleted' | 'targeting_item_deleted_v3' | 'tracking_label_event_upserted';
866
865
  type ExceptionType = 'open' | 'closed';
866
+ type ExclusionRuleState = 'current' | 'deleting' | 'updating';
867
867
  type ExperienceCloneStatus = 'pending' | 'updating' | 'completed' | 'failed';
868
868
  type ExperiencePaymentMethodTag = 'display';
869
869
  type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
@@ -2434,6 +2434,30 @@ declare namespace io.flow.v0.models {
2434
2434
  readonly type: io.flow.v0.enums.ExceptionType;
2435
2435
  readonly datetime_range: io.flow.v0.models.DatetimeRange;
2436
2436
  }
2437
+ interface ExclusionRule {
2438
+ readonly id: string;
2439
+ readonly q: string;
2440
+ readonly query: io.flow.v0.models.Query;
2441
+ readonly regions: io.flow.v0.models.Region[];
2442
+ readonly status: io.flow.v0.enums.SubcatalogItemStatus;
2443
+ readonly description?: string;
2444
+ readonly statistics: io.flow.v0.models.ExclusionRuleStatistic;
2445
+ }
2446
+ interface ExclusionRuleForm {
2447
+ readonly q: string;
2448
+ readonly regions: string[];
2449
+ readonly description?: string;
2450
+ }
2451
+ interface ExclusionRuleStatistic {
2452
+ readonly state: io.flow.v0.enums.ExclusionRuleState;
2453
+ readonly number_items: number;
2454
+ }
2455
+ interface ExclusionRuleVersion {
2456
+ readonly id: string;
2457
+ readonly timestamp: string;
2458
+ readonly type: io.flow.v0.enums.ChangeType;
2459
+ readonly exclusion_rule: io.flow.v0.models.ExclusionRule;
2460
+ }
2437
2461
  interface Experience {
2438
2462
  readonly id: string;
2439
2463
  readonly key: string;
@@ -7747,6 +7771,11 @@ export declare type Event = io.flow.v0.unions.Event;
7747
7771
  export declare type EventType = io.flow.v0.enums.EventType;
7748
7772
  export declare type Exception = io.flow.v0.models.Exception;
7749
7773
  export declare type ExceptionType = io.flow.v0.enums.ExceptionType;
7774
+ export declare type ExclusionRule = io.flow.v0.models.ExclusionRule;
7775
+ export declare type ExclusionRuleForm = io.flow.v0.models.ExclusionRuleForm;
7776
+ export declare type ExclusionRuleState = io.flow.v0.enums.ExclusionRuleState;
7777
+ export declare type ExclusionRuleStatistic = io.flow.v0.models.ExclusionRuleStatistic;
7778
+ export declare type ExclusionRuleVersion = io.flow.v0.models.ExclusionRuleVersion;
7750
7779
  export declare type ExpandableCard = io.flow.v0.unions.ExpandableCard;
7751
7780
  export declare type ExpandableCenter = io.flow.v0.unions.ExpandableCenter;
7752
7781
  export declare type ExpandableExperience = io.flow.v0.unions.ExpandableExperience;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "TypeScript type definitions for custom types found in Flow API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,5 +26,6 @@
26
26
  "devDependencies": {
27
27
  "prettier": "^1.18.2",
28
28
  "typescript": "^3.2.2"
29
- }
29
+ },
30
+ "gitHead": "69ce722b812cec7074f4d84a86a141720713b775"
30
31
  }