@flowio/types 11.18.0 → 11.19.1
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/dist/api-internal.d.ts +914 -484
- package/dist/api.d.ts +30 -16
- package/package.json +2 -2
- package/src/api-internal.ts +1075 -464
- package/src/api.ts +39 -15
package/dist/api.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
135
135
|
interface Product {
|
|
136
136
|
readonly id: number;
|
|
137
137
|
readonly handle: string;
|
|
138
|
-
readonly variants
|
|
138
|
+
readonly variants?: io.flow.shopify.external.v0.models.ProductVariant[];
|
|
139
139
|
readonly images: io.flow.shopify.external.v0.models.ProductImage[];
|
|
140
140
|
readonly title: string;
|
|
141
141
|
readonly vendor?: string;
|
|
@@ -290,7 +290,7 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
290
290
|
readonly title: string;
|
|
291
291
|
}
|
|
292
292
|
interface ShopifyClientDetail {
|
|
293
|
-
readonly accept_language
|
|
293
|
+
readonly accept_language?: boolean;
|
|
294
294
|
readonly browser_height?: number;
|
|
295
295
|
readonly browser_ip?: string;
|
|
296
296
|
readonly browser_width?: number;
|
|
@@ -305,7 +305,7 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
305
305
|
readonly tax_exempt: boolean;
|
|
306
306
|
readonly verified_email: boolean;
|
|
307
307
|
readonly state: io.flow.shopify.external.v0.enums.ShopifyCustomerState;
|
|
308
|
-
readonly accepts_marketing
|
|
308
|
+
readonly accepts_marketing?: boolean;
|
|
309
309
|
readonly default_address?: any;
|
|
310
310
|
readonly email?: string;
|
|
311
311
|
readonly first_name?: string;
|
|
@@ -377,7 +377,7 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
377
377
|
readonly requires_shipping: boolean;
|
|
378
378
|
readonly currency?: string;
|
|
379
379
|
readonly items: io.flow.shopify.external.v0.models.ShopifyExternalCartItem[];
|
|
380
|
-
readonly cart_level_discount_applications
|
|
380
|
+
readonly cart_level_discount_applications?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
|
|
381
381
|
}
|
|
382
382
|
interface ShopifyExternalCartItem {
|
|
383
383
|
readonly id: number;
|
|
@@ -391,7 +391,7 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
391
391
|
readonly original_line_price: number;
|
|
392
392
|
readonly total_discount: number;
|
|
393
393
|
readonly discounted_price: number;
|
|
394
|
-
readonly discounts
|
|
394
|
+
readonly discounts?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
|
|
395
395
|
readonly taxable: boolean;
|
|
396
396
|
readonly quantity: number;
|
|
397
397
|
readonly sku?: string;
|
|
@@ -409,8 +409,8 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
409
409
|
readonly product_description?: string;
|
|
410
410
|
readonly product_type: string;
|
|
411
411
|
readonly variant_title?: string;
|
|
412
|
-
readonly variant_options
|
|
413
|
-
readonly line_level_discount_allocations
|
|
412
|
+
readonly variant_options?: string[];
|
|
413
|
+
readonly line_level_discount_allocations?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
|
|
414
414
|
}
|
|
415
415
|
interface ShopifyFulfillment {
|
|
416
416
|
readonly location_id: number;
|
|
@@ -630,11 +630,11 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
630
630
|
readonly updated_at?: string;
|
|
631
631
|
readonly user_id?: number;
|
|
632
632
|
readonly order_status_url?: string;
|
|
633
|
-
readonly inventory_behaviour
|
|
633
|
+
readonly inventory_behaviour?: io.flow.shopify.external.v0.enums.InventoryBehaviour;
|
|
634
634
|
readonly gateway?: string;
|
|
635
635
|
readonly transactions?: io.flow.shopify.external.v0.models.ShopifyTransactionForm[];
|
|
636
636
|
readonly send_receipt?: boolean;
|
|
637
|
-
readonly metafields
|
|
637
|
+
readonly metafields?: io.flow.shopify.external.v0.models.MetafieldForm[];
|
|
638
638
|
}
|
|
639
639
|
interface ShopifyOrderCount {
|
|
640
640
|
readonly count: number;
|
|
@@ -755,7 +755,7 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
755
755
|
}
|
|
756
756
|
interface ShopifyWebhookOrder {
|
|
757
757
|
readonly id?: number;
|
|
758
|
-
readonly line_items
|
|
758
|
+
readonly line_items?: io.flow.shopify.external.v0.models.ShopifyWebhookOrderLineItem[];
|
|
759
759
|
}
|
|
760
760
|
interface ShopifyWebhookOrderCancelled {
|
|
761
761
|
readonly id: number;
|
|
@@ -810,7 +810,7 @@ declare namespace io.flow.v0.enums {
|
|
|
810
810
|
type AdjustmentReasonKey = 'duty_deminimis' | 'vat_deminimis';
|
|
811
811
|
type Aggregate = 'maximum' | 'minimum';
|
|
812
812
|
type AttributeDataType = 'boolean' | 'integer' | 'decimal' | 'string' | 'json_array';
|
|
813
|
-
type AttributeIntent = 'brand' | 'color' | 'countries_of_origin' | 'product_id' | 'fulfillment_method' | 'hazardous' | 'price' | 'size' | 'sku' | 'taxability' | 'consumer_url' | 'gtin' | 'mpn' | 'facet' | 'eccn' | 'returnable' | 'searchable' | 'barcode' | 'min_days_to_ship' | 'max_days_to_ship';
|
|
813
|
+
type AttributeIntent = 'brand' | 'color' | 'countries_of_origin' | 'product_id' | 'fulfillment_method' | 'hazardous' | 'price' | 'size' | 'sku' | 'taxability' | 'consumer_url' | 'gtin' | 'mpn' | 'facet' | 'eccn' | 'returnable' | 'searchable' | 'barcode' | 'min_days_to_ship' | 'max_days_to_ship' | 'commercial_invoice_item_number';
|
|
814
814
|
type AuthenticationTechnique = 'anonymous' | 'session' | 'token' | 'partner_token' | 'user';
|
|
815
815
|
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' | 'online_payment_error';
|
|
816
816
|
type AuthorizationOption = 'store_card';
|
|
@@ -834,14 +834,14 @@ declare namespace io.flow.v0.enums {
|
|
|
834
834
|
type ConsumerInvoiceStatus = 'pending' | 'available' | 'invalid';
|
|
835
835
|
type CountryPickerSource = 'experience' | 'destination';
|
|
836
836
|
type CreditPaymentErrorCode = 'generic_error' | 'invalid_order_number' | 'invalid_currency' | 'invalid_description' | 'duplicate' | 'amount_must_be_positive' | 'amount_exceeds_balance' | 'insufficient_amount';
|
|
837
|
-
type CurrencyLabelFormatter = 'strip_trailing_zeros';
|
|
837
|
+
type CurrencyLabelFormatter = 'strip_trailing_zeros' | 'symbol_prefix' | 'symbol_suffix';
|
|
838
838
|
type CurrencySymbolFormat = 'narrow' | 'primary';
|
|
839
839
|
type CustomerAddressType = 'billing' | 'invoice' | 'shipping';
|
|
840
840
|
type CvvCode = 'match' | 'suspicious' | 'unsupported' | 'no_match';
|
|
841
841
|
type DayOfWeek = 'sunday' | 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday';
|
|
842
842
|
type DeliveredDuty = 'paid' | 'unpaid';
|
|
843
843
|
type DeliveredDutyDisplayType = 'all' | 'single';
|
|
844
|
-
type DeliveryOptionCostDetailComponentKey = 'ratecard_base_cost' | 'ratecard_ddp_fee' | 'ratecard_fuel_surcharge' | 'ratecard_oversized_shipment_fee' | 'ratecard_rural_shipment_fee' | 'ratecard_emergency_situation_surcharge_fee' | 'center_commercial_invoice_fee' | 'center_inbound_carton_fee' | 'center_outbound_carton_fee';
|
|
844
|
+
type DeliveryOptionCostDetailComponentKey = 'ratecard_base_cost' | 'ratecard_ddp_fee' | 'ratecard_fuel_surcharge' | 'ratecard_oversized_shipment_fee' | 'ratecard_rural_shipment_fee' | 'ratecard_emergency_situation_surcharge_fee' | 'ratecard_peak_surcharge_fee' | 'center_commercial_invoice_fee' | 'center_inbound_carton_fee' | 'center_outbound_carton_fee';
|
|
845
845
|
type DeliveryOptionCostDetailSource = 'center' | 'ratecard';
|
|
846
846
|
type DeliveryWindowComponentSource = 'flow' | 'organization' | 'carrier' | 'center' | 'mixed';
|
|
847
847
|
type DeliveryWindowLocation = 'center' | 'crossdock' | 'customer';
|
|
@@ -899,7 +899,7 @@ declare namespace io.flow.v0.enums {
|
|
|
899
899
|
type OrderErrorCode = 'generic_error' | 'order_item_not_available' | 'order_identifier_error' | 'authorization_invalid' | 'domestic_shipping_unavailable' | 'shipping_unavailable' | 'value_threshold_exceeded' | 'invalid_currency' | 'invalid_country' | 'invalid_region' | 'invalid_language' | 'item_out_of_stock' | 'gift_card_not_accepted' | 'total_changed';
|
|
900
900
|
type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
|
|
901
901
|
type OrderPaymentType = 'card' | 'online' | 'credit' | 'installment_plan' | 'cash_on_delivery';
|
|
902
|
-
type OrderPriceDetailComponentKey = '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' | 'shipping_discount' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'remote_area_surcharge' | 'fuel_surcharge' | 'emergency_situation_surcharge';
|
|
902
|
+
type OrderPriceDetailComponentKey = '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' | 'shipping_discount' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'remote_area_surcharge' | 'fuel_surcharge' | 'emergency_situation_surcharge' | 'peak_surcharge';
|
|
903
903
|
type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges';
|
|
904
904
|
type OrderRefundSummaryIncludes = 'duties' | 'vat' | 'shipping';
|
|
905
905
|
type OrderRefundSummaryPartialCharged = 'per_item' | 'for_order' | 'by_value_percentage' | 'by_quantity_percentage';
|
|
@@ -5715,6 +5715,18 @@ declare namespace io.flow.v0.models {
|
|
|
5715
5715
|
readonly attributes?: Record<string, string>;
|
|
5716
5716
|
readonly ip?: string;
|
|
5717
5717
|
}
|
|
5718
|
+
interface PeakSurchargeRatecardFee {
|
|
5719
|
+
readonly discriminator: 'peak_surcharge_ratecard_fee';
|
|
5720
|
+
readonly amount: io.flow.v0.models.Money;
|
|
5721
|
+
readonly starts_at?: string;
|
|
5722
|
+
readonly ends_at?: string;
|
|
5723
|
+
}
|
|
5724
|
+
interface PeakSurchargeServiceFee {
|
|
5725
|
+
readonly discriminator: 'peak_surcharge_service_fee';
|
|
5726
|
+
readonly amount: io.flow.v0.models.Money;
|
|
5727
|
+
readonly starts_at?: string;
|
|
5728
|
+
readonly ends_at?: string;
|
|
5729
|
+
}
|
|
5718
5730
|
interface PercentMargin {
|
|
5719
5731
|
readonly discriminator: 'percent_margin';
|
|
5720
5732
|
readonly percentage: number;
|
|
@@ -8050,12 +8062,12 @@ declare namespace io.flow.v0.unions {
|
|
|
8050
8062
|
type QueryFilterForm = io.flow.v0.models.QueryFilterStructuredForm | io.flow.v0.models.QueryFilterUnstructuredForm;
|
|
8051
8063
|
type RatecardEstimate = io.flow.v0.models.RatecardEstimateV1 | io.flow.v0.models.RatecardEstimateV2;
|
|
8052
8064
|
type RatecardEstimateForm = io.flow.v0.models.RatecardEstimateFormV1 | io.flow.v0.models.RatecardEstimateFormV2;
|
|
8053
|
-
type RatecardFee = io.flow.v0.models.DdpRatecardFee | io.flow.v0.models.FuelSurchargeRatecardFee | io.flow.v0.models.OversizedShipmentRatecardFee | io.flow.v0.models.ReturnPackageRatecardFee | io.flow.v0.models.CrossdockRatecardFee | io.flow.v0.models.RemoteAreaRatecardFee | io.flow.v0.models.EmergencySituationSurchargeRatecardFee;
|
|
8065
|
+
type RatecardFee = io.flow.v0.models.DdpRatecardFee | io.flow.v0.models.FuelSurchargeRatecardFee | io.flow.v0.models.OversizedShipmentRatecardFee | io.flow.v0.models.ReturnPackageRatecardFee | io.flow.v0.models.CrossdockRatecardFee | io.flow.v0.models.RemoteAreaRatecardFee | io.flow.v0.models.EmergencySituationSurchargeRatecardFee | io.flow.v0.models.PeakSurchargeRatecardFee;
|
|
8054
8066
|
type RepeatSchedule = io.flow.v0.models.RepeatHourly | io.flow.v0.models.RepeatDaily | io.flow.v0.models.RepeatWeekly | io.flow.v0.models.RepeatMonthly;
|
|
8055
8067
|
type ReservationError = io.flow.v0.models.NoInventoryReservationError | io.flow.v0.models.ExternalApiTimeoutReservationError | io.flow.v0.models.GenericReservationError;
|
|
8056
8068
|
type ReturnSource = io.flow.v0.models.ReturnSourceFlow | io.flow.v0.models.ReturnSourceExternalVendor;
|
|
8057
8069
|
type SdkAdyenV3AuthenticationToken = io.flow.v0.models.AdyenV3FingerprintToken | io.flow.v0.models.AdyenV3ChallengeToken;
|
|
8058
|
-
type ServiceFee = io.flow.v0.models.FuelSurchargeServiceFee | io.flow.v0.models.RemoteAreaServiceFee | io.flow.v0.models.EmergencySituationSurchargeServiceFee;
|
|
8070
|
+
type ServiceFee = io.flow.v0.models.FuelSurchargeServiceFee | io.flow.v0.models.RemoteAreaServiceFee | io.flow.v0.models.EmergencySituationSurchargeServiceFee | io.flow.v0.models.PeakSurchargeServiceFee;
|
|
8059
8071
|
type Session = io.flow.v0.models.OrganizationSession;
|
|
8060
8072
|
type SessionAuthorization = io.flow.v0.models.OrganizationSessionAuthorization;
|
|
8061
8073
|
type ShippingLabelForm = io.flow.v0.models.DetailedShippingLabelForm | io.flow.v0.models.SummaryShippingLabelForm;
|
|
@@ -9000,6 +9012,8 @@ export declare type PaymentUpserted = io.flow.v0.models.PaymentUpserted;
|
|
|
9000
9012
|
export declare type PaymentVersion = io.flow.v0.models.PaymentVersion;
|
|
9001
9013
|
export declare type PaypalAuthorizationDetails = io.flow.v0.models.PaypalAuthorizationDetails;
|
|
9002
9014
|
export declare type PaypalAuthorizationForm = io.flow.v0.models.PaypalAuthorizationForm;
|
|
9015
|
+
export declare type PeakSurchargeRatecardFee = io.flow.v0.models.PeakSurchargeRatecardFee;
|
|
9016
|
+
export declare type PeakSurchargeServiceFee = io.flow.v0.models.PeakSurchargeServiceFee;
|
|
9003
9017
|
export declare type PercentMargin = io.flow.v0.models.PercentMargin;
|
|
9004
9018
|
export declare type PermissionAudit = io.flow.v0.models.PermissionAudit;
|
|
9005
9019
|
export declare type PermissionCheck = io.flow.v0.models.PermissionCheck;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.19.1",
|
|
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",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"maintainers": [
|
|
26
26
|
"Christian Muñoz <christian.munoz@flow.io>"
|
|
27
27
|
],
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "7f3b35e98e80ec68ec0427a77de7b9ee91d1c31b"
|
|
29
29
|
}
|