@flowio/types 11.19.35 → 11.20.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 +405 -62
- package/dist/api.d.ts +210 -11
- package/package.json +2 -2
- package/src/api-internal.ts +571 -104
- package/src/api.ts +283 -6
package/dist/api.d.ts
CHANGED
|
@@ -1577,6 +1577,8 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
1577
1577
|
}
|
|
1578
1578
|
declare namespace io.flow.channel.internal.v0.enums {
|
|
1579
1579
|
type ChannelCurrencyCapability = 'payment_authorizations' | 'settlement_currency';
|
|
1580
|
+
type ChannelOrderAcceptanceRejectionReason = 'unsupported_origin_country' | 'unsupported_destination_country' | 'domestic_order' | 'order_contains_gift_card';
|
|
1581
|
+
type ChannelOrderAcceptanceStatus = 'accepted' | 'rejected' | 'held_for_review' | 'reviewed';
|
|
1580
1582
|
}
|
|
1581
1583
|
declare namespace io.flow.channel.internal.v0.models {
|
|
1582
1584
|
interface Channel {
|
|
@@ -1601,6 +1603,31 @@ declare namespace io.flow.channel.internal.v0.models {
|
|
|
1601
1603
|
readonly environment: io.flow.common.v0.enums.Environment;
|
|
1602
1604
|
readonly organization_id_prefix?: string;
|
|
1603
1605
|
}
|
|
1606
|
+
interface ChannelMembership {
|
|
1607
|
+
readonly id: string;
|
|
1608
|
+
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
1609
|
+
readonly user: io.flow.common.v0.unions.ExpandableUser;
|
|
1610
|
+
readonly role?: io.flow.common.v0.enums.Role;
|
|
1611
|
+
}
|
|
1612
|
+
interface ChannelMembershipForm {
|
|
1613
|
+
readonly channel_id: string;
|
|
1614
|
+
readonly user_id: string;
|
|
1615
|
+
readonly role?: io.flow.common.v0.enums.Role;
|
|
1616
|
+
}
|
|
1617
|
+
interface ChannelMembershipPutForm {
|
|
1618
|
+
readonly role?: io.flow.common.v0.enums.Role;
|
|
1619
|
+
}
|
|
1620
|
+
interface ChannelOrderAcceptance {
|
|
1621
|
+
readonly id: string;
|
|
1622
|
+
readonly organization_id: string;
|
|
1623
|
+
readonly order_number: string;
|
|
1624
|
+
readonly channel_id: string;
|
|
1625
|
+
readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
|
|
1626
|
+
readonly reasons: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason[];
|
|
1627
|
+
}
|
|
1628
|
+
interface ChannelOrderAcceptanceForm {
|
|
1629
|
+
readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
|
|
1630
|
+
}
|
|
1604
1631
|
}
|
|
1605
1632
|
declare namespace io.flow.common.v0.enums {
|
|
1606
1633
|
type AttributeDataType = 'boolean' | 'integer' | 'decimal' | 'string' | 'json_array';
|
|
@@ -1625,7 +1652,7 @@ declare namespace io.flow.common.v0.enums {
|
|
|
1625
1652
|
type MeasurementSystem = 'imperial' | 'metric';
|
|
1626
1653
|
type MerchantOfRecord = 'flow' | 'organization';
|
|
1627
1654
|
type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
|
|
1628
|
-
type OrganizationStatus = 'active' | 'inactive' | 'deactivated';
|
|
1655
|
+
type OrganizationStatus = 'active' | 'inactive' | 'deactivated' | 'provisioned';
|
|
1629
1656
|
type PriceBookStatus = 'draft' | 'published' | 'archived';
|
|
1630
1657
|
type Role = 'admin' | 'member';
|
|
1631
1658
|
type RoundingMethod = 'up' | 'down' | 'nearest';
|
|
@@ -1975,9 +2002,14 @@ declare namespace io.flow.token.v0.models {
|
|
|
1975
2002
|
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
1976
2003
|
readonly user: io.flow.common.v0.models.UserReference;
|
|
1977
2004
|
readonly partial: string;
|
|
2005
|
+
readonly cleartext?: string;
|
|
1978
2006
|
readonly created_at: string;
|
|
1979
2007
|
readonly description?: string;
|
|
1980
2008
|
}
|
|
2009
|
+
interface ChannelTokenForm {
|
|
2010
|
+
readonly channel_id: string;
|
|
2011
|
+
readonly description?: string;
|
|
2012
|
+
}
|
|
1981
2013
|
interface ChannelTokenReference {
|
|
1982
2014
|
readonly discriminator: 'channel_token_reference';
|
|
1983
2015
|
readonly id: string;
|
|
@@ -2001,6 +2033,10 @@ declare namespace io.flow.token.v0.models {
|
|
|
2001
2033
|
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2002
2034
|
readonly description?: string;
|
|
2003
2035
|
}
|
|
2036
|
+
interface OrganizationTokenFormV2 {
|
|
2037
|
+
readonly organization_id: string;
|
|
2038
|
+
readonly description?: string;
|
|
2039
|
+
}
|
|
2004
2040
|
interface OrganizationTokenReference {
|
|
2005
2041
|
readonly discriminator: 'organization_token_reference';
|
|
2006
2042
|
readonly id: string;
|
|
@@ -2008,6 +2044,21 @@ declare namespace io.flow.token.v0.models {
|
|
|
2008
2044
|
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2009
2045
|
readonly user: io.flow.common.v0.models.UserReference;
|
|
2010
2046
|
}
|
|
2047
|
+
interface OrganizationTokenV2 {
|
|
2048
|
+
readonly discriminator: 'organization_token_v2';
|
|
2049
|
+
readonly id: string;
|
|
2050
|
+
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2051
|
+
readonly user: io.flow.common.v0.models.UserReference;
|
|
2052
|
+
readonly partial: string;
|
|
2053
|
+
readonly cleartext?: string;
|
|
2054
|
+
readonly created_at: string;
|
|
2055
|
+
readonly description?: string;
|
|
2056
|
+
}
|
|
2057
|
+
interface OrganizationTokenV2Reference {
|
|
2058
|
+
readonly discriminator: 'organization_token_v2_reference';
|
|
2059
|
+
readonly id: string;
|
|
2060
|
+
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2061
|
+
}
|
|
2011
2062
|
interface PartnerToken {
|
|
2012
2063
|
readonly discriminator: 'partner_token';
|
|
2013
2064
|
readonly id: string;
|
|
@@ -2043,8 +2094,8 @@ declare namespace io.flow.token.v0.models {
|
|
|
2043
2094
|
}
|
|
2044
2095
|
}
|
|
2045
2096
|
declare namespace io.flow.token.v0.unions {
|
|
2046
|
-
type Token = io.flow.token.v0.models.ChannelToken | io.flow.token.v0.models.OrganizationToken | io.flow.token.v0.models.PartnerToken;
|
|
2047
|
-
type TokenReference = io.flow.token.v0.models.ChannelTokenReference | io.flow.token.v0.models.OrganizationTokenReference | io.flow.token.v0.models.PartnerTokenReference;
|
|
2097
|
+
type Token = io.flow.token.v0.models.ChannelToken | io.flow.token.v0.models.OrganizationToken | io.flow.token.v0.models.OrganizationTokenV2 | io.flow.token.v0.models.PartnerToken;
|
|
2098
|
+
type TokenReference = io.flow.token.v0.models.ChannelTokenReference | io.flow.token.v0.models.OrganizationTokenReference | io.flow.token.v0.models.OrganizationTokenV2Reference | io.flow.token.v0.models.PartnerTokenReference;
|
|
2048
2099
|
}
|
|
2049
2100
|
declare namespace io.flow.error.v0.enums {
|
|
2050
2101
|
type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
|
|
@@ -2098,6 +2149,12 @@ declare namespace io.flow.permission.v0.models {
|
|
|
2098
2149
|
readonly behaviors: io.flow.permission.v0.enums.FlowBehavior[];
|
|
2099
2150
|
}
|
|
2100
2151
|
}
|
|
2152
|
+
declare namespace io.flow.token.internal.v0.models {
|
|
2153
|
+
interface ChannelTokenForm {
|
|
2154
|
+
readonly channel_id: string;
|
|
2155
|
+
readonly description?: string;
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2101
2158
|
declare namespace io.flow.apple.pay.v0.enums {
|
|
2102
2159
|
type ApplePayContactField = 'email' | 'name' | 'phone' | 'postal_address' | 'phonetic_name';
|
|
2103
2160
|
type ApplePayLineItemType = 'final' | 'pending';
|
|
@@ -2172,7 +2229,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2172
2229
|
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';
|
|
2173
2230
|
type AuthorizationOption = 'store_card';
|
|
2174
2231
|
type AuthorizationResultActionType = 'native' | 'redirect' | 'wait';
|
|
2175
|
-
type AuthorizationStatus = 'pending' | 'expired' | 'authorized' | 'review' | 'declined' | 'reversed';
|
|
2232
|
+
type AuthorizationStatus = 'initiated' | 'pending' | 'expired' | 'authorized' | 'review' | 'declined' | 'reversed';
|
|
2176
2233
|
type AvailabilityStatus = 'enabled' | 'disabled';
|
|
2177
2234
|
type AvailableFilterFormat = 'boolean' | 'date' | 'money' | 'decimal' | 'string' | 'unit_of_length' | 'unit_of_mass';
|
|
2178
2235
|
type AvsCode = 'match' | 'partial' | 'unsupported' | 'no_match';
|
|
@@ -2247,6 +2304,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2247
2304
|
type LanePreselectPreference = 'lowest_cost' | 'default_tier';
|
|
2248
2305
|
type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost' | 'highest_priority';
|
|
2249
2306
|
type LevyComponent = 'goods' | 'duty' | 'insurance' | 'freight' | 'vat';
|
|
2307
|
+
type LevyInclusion = 'tax' | 'duty';
|
|
2250
2308
|
type LevyStrategy = 'minimum' | 'average' | 'maximum';
|
|
2251
2309
|
type LocationErrorCode = 'address_required' | 'ip_invalid' | 'ip_required' | 'timezone_unavailable';
|
|
2252
2310
|
type MarginType = 'fixed' | 'percent';
|
|
@@ -2270,7 +2328,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2270
2328
|
type OrderStorage = 'do_not_persist' | 'persist';
|
|
2271
2329
|
type OrderType = 'standard' | 'replacement';
|
|
2272
2330
|
type OrganizationPaymentMethodTag = 'deny';
|
|
2273
|
-
type OrganizationStatus = 'active' | 'inactive' | 'deactivated';
|
|
2331
|
+
type OrganizationStatus = 'active' | 'inactive' | 'deactivated' | 'provisioned';
|
|
2274
2332
|
type PaymentActionType = 'redirect' | 'use_sdk_klarna_v1' | 'use_sdk_applepay_js' | 'use_sdk_googlepay' | 'use_sdk_paypal' | 'use_sdk_stripe_v3' | 'use_sdk_adyen_v3' | 'use_sdk_adyen_v4' | 'execute_script' | 'display_inline_window';
|
|
2275
2333
|
type PaymentErrorCode = 'duplicate' | 'invalid_amount' | 'invalid_currency' | 'invalid_method' | 'invalid_order' | 'invalid_customer' | 'invalid_destination' | 'unknown';
|
|
2276
2334
|
type PaymentFailureCode = 'action_expired' | 'action_cancelled' | 'action_failed' | 'authorization_declined' | 'not_supported' | 'fraudulent' | 'error';
|
|
@@ -2311,6 +2369,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2311
2369
|
type ShopifyGrant = 'customer' | 'discount' | 'gift_card' | 'metafield' | 'order';
|
|
2312
2370
|
type ShopifyLocalizationMethod = 'api' | 'ssr';
|
|
2313
2371
|
type ShopifySyncCheck = 'localized_variants' | 'flow_variant_metafields';
|
|
2372
|
+
type ShortIdSourceKey = 'channel' | 'organization';
|
|
2314
2373
|
type SortDirection = 'ascending' | 'descending';
|
|
2315
2374
|
type Strategy = 'range' | 'from' | 'to';
|
|
2316
2375
|
type SubcatalogItemStatus = 'excluded' | 'included' | 'restricted';
|
|
@@ -2319,6 +2378,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2319
2378
|
type SyncStreamType = 'submitted_order' | 'placed_order';
|
|
2320
2379
|
type SyncUnitOfTime = 'day' | 'hour' | 'minute' | 'second';
|
|
2321
2380
|
type TaxApplicability = 'none' | 'all';
|
|
2381
|
+
type TaxDutyCalculatorValidationErrorCode = 'generic_error' | 'destination_country_not_defined' | 'destination_address_iso3166_unrecognized' | 'line_item_shipfrom_shipto_country_invalid' | 'line_item_ship_from_invalid' | 'line_item_currency_iso4217_unrecognized' | 'line_quantity_invalid' | 'line_item_quantity_invalid' | 'line_item_unit_price_precision_invalid' | 'line_item_unit_price_negative' | 'line_item_discount_amount_precision_invalid' | 'line_item_discount_amount_positive' | 'line_item_country_of_origin_iso3166_unrecognized' | 'line_item_hs_code_invalid' | 'line_item_duty_provider_invalid' | 'shipping_unit_price_precision_invalid' | 'shipping_unit_price_negative' | 'shipping_discount_amount_precision_invalid' | 'shipping_discount_amount_invalid' | 'merchant_of_record_invalid';
|
|
2322
2382
|
type TaxReportType = 'consumer' | 'b2b';
|
|
2323
2383
|
type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
|
|
2324
2384
|
type TaxabilityType = 'tax_rule';
|
|
@@ -2342,6 +2402,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2342
2402
|
type Visibility = 'public' | 'private';
|
|
2343
2403
|
type WebhookStatus = 'pending' | 'success' | 'failure';
|
|
2344
2404
|
type ZeroAmountIndicator = 'zero' | 'free';
|
|
2405
|
+
type ZeroLevyReasonCode = 'zero_basis' | 'zero_rate_on_goods' | 'value_rounds_to_zero' | 'order_below_de_minimis_threshold' | 'amount_below_de_minimis_threshold' | 'delivered_unpaid' | 'duty_free_domestic' | 'duty_free_intra_community' | 'duty_free_reimport' | 'duty_free_by_trade_agreement';
|
|
2345
2406
|
}
|
|
2346
2407
|
declare namespace io.flow.v0.models {
|
|
2347
2408
|
interface AbandonedOrderEmailSettings {
|
|
@@ -3473,13 +3534,13 @@ declare namespace io.flow.v0.models {
|
|
|
3473
3534
|
}
|
|
3474
3535
|
interface ChannelOrganizationForm {
|
|
3475
3536
|
readonly key: string;
|
|
3476
|
-
readonly name
|
|
3537
|
+
readonly name?: string;
|
|
3477
3538
|
readonly slug?: string;
|
|
3478
3539
|
readonly defaults: io.flow.v0.models.OrganizationDefaults;
|
|
3479
3540
|
readonly attributes?: Record<string, string>;
|
|
3480
3541
|
}
|
|
3481
3542
|
interface ChannelOrganizationPutForm {
|
|
3482
|
-
readonly name
|
|
3543
|
+
readonly name?: string;
|
|
3483
3544
|
readonly slug?: string;
|
|
3484
3545
|
readonly defaults: io.flow.v0.models.OrganizationDefaults;
|
|
3485
3546
|
readonly attributes?: Record<string, string>;
|
|
@@ -3502,9 +3563,14 @@ declare namespace io.flow.v0.models {
|
|
|
3502
3563
|
readonly channel: io.flow.v0.models.ChannelReference;
|
|
3503
3564
|
readonly user: io.flow.v0.models.UserReference;
|
|
3504
3565
|
readonly partial: string;
|
|
3566
|
+
readonly cleartext?: string;
|
|
3505
3567
|
readonly created_at: string;
|
|
3506
3568
|
readonly description?: string;
|
|
3507
3569
|
}
|
|
3570
|
+
interface ChannelTokenForm {
|
|
3571
|
+
readonly channel_id: string;
|
|
3572
|
+
readonly description?: string;
|
|
3573
|
+
}
|
|
3508
3574
|
interface ChannelTokenReference {
|
|
3509
3575
|
readonly discriminator: 'channel_token_reference';
|
|
3510
3576
|
readonly id: string;
|
|
@@ -5806,6 +5872,7 @@ declare namespace io.flow.v0.models {
|
|
|
5806
5872
|
readonly price: io.flow.v0.models.LocalizedItemPrice;
|
|
5807
5873
|
readonly vat?: io.flow.v0.models.LocalizedItemVat;
|
|
5808
5874
|
readonly duty?: io.flow.v0.models.LocalizedItemDuty;
|
|
5875
|
+
readonly shipping?: io.flow.v0.models.Price;
|
|
5809
5876
|
readonly attributes: Record<string, io.flow.v0.models.PriceWithBase>;
|
|
5810
5877
|
readonly price_attributes?: Record<string, io.flow.v0.models.LocalItemAttributePricing>;
|
|
5811
5878
|
}
|
|
@@ -6273,6 +6340,7 @@ declare namespace io.flow.v0.models {
|
|
|
6273
6340
|
readonly discounts?: io.flow.v0.models.PaymentDiscount[];
|
|
6274
6341
|
readonly tax?: io.flow.v0.models.PaymentTax;
|
|
6275
6342
|
readonly duty?: io.flow.v0.models.PaymentDuty;
|
|
6343
|
+
readonly reference?: string;
|
|
6276
6344
|
}
|
|
6277
6345
|
interface OrderError {
|
|
6278
6346
|
readonly code: io.flow.v0.enums.OrderErrorCode;
|
|
@@ -6966,6 +7034,10 @@ declare namespace io.flow.v0.models {
|
|
|
6966
7034
|
readonly environment: io.flow.v0.enums.Environment;
|
|
6967
7035
|
readonly description?: string;
|
|
6968
7036
|
}
|
|
7037
|
+
interface OrganizationTokenFormV2 {
|
|
7038
|
+
readonly organization_id: string;
|
|
7039
|
+
readonly description?: string;
|
|
7040
|
+
}
|
|
6969
7041
|
interface OrganizationTokenReference {
|
|
6970
7042
|
readonly discriminator: 'organization_token_reference';
|
|
6971
7043
|
readonly id: string;
|
|
@@ -6973,6 +7045,21 @@ declare namespace io.flow.v0.models {
|
|
|
6973
7045
|
readonly environment: io.flow.v0.enums.Environment;
|
|
6974
7046
|
readonly user: io.flow.v0.models.UserReference;
|
|
6975
7047
|
}
|
|
7048
|
+
interface OrganizationTokenV2 {
|
|
7049
|
+
readonly discriminator: 'organization_token_v2';
|
|
7050
|
+
readonly id: string;
|
|
7051
|
+
readonly organization: io.flow.v0.models.OrganizationReference;
|
|
7052
|
+
readonly user: io.flow.v0.models.UserReference;
|
|
7053
|
+
readonly partial: string;
|
|
7054
|
+
readonly cleartext?: string;
|
|
7055
|
+
readonly created_at: string;
|
|
7056
|
+
readonly description?: string;
|
|
7057
|
+
}
|
|
7058
|
+
interface OrganizationTokenV2Reference {
|
|
7059
|
+
readonly discriminator: 'organization_token_v2_reference';
|
|
7060
|
+
readonly id: string;
|
|
7061
|
+
readonly organization: io.flow.v0.models.OrganizationReference;
|
|
7062
|
+
}
|
|
6976
7063
|
interface OrganizationUpserted {
|
|
6977
7064
|
readonly discriminator: 'organization_upserted';
|
|
6978
7065
|
readonly event_id: string;
|
|
@@ -7121,14 +7208,14 @@ declare namespace io.flow.v0.models {
|
|
|
7121
7208
|
readonly reason?: io.flow.v0.enums.CaptureDeclineCode;
|
|
7122
7209
|
}
|
|
7123
7210
|
interface PaymentContactBilling {
|
|
7124
|
-
readonly first_name
|
|
7211
|
+
readonly first_name?: string;
|
|
7125
7212
|
readonly last_name: string;
|
|
7126
7213
|
readonly company?: string;
|
|
7127
7214
|
readonly email?: string;
|
|
7128
7215
|
readonly phone?: string;
|
|
7129
7216
|
}
|
|
7130
7217
|
interface PaymentContactShipping {
|
|
7131
|
-
readonly first_name
|
|
7218
|
+
readonly first_name?: string;
|
|
7132
7219
|
readonly last_name: string;
|
|
7133
7220
|
readonly email: string;
|
|
7134
7221
|
readonly phone: string;
|
|
@@ -9124,6 +9211,15 @@ declare namespace io.flow.v0.models {
|
|
|
9124
9211
|
readonly experience: io.flow.v0.models.ExperienceReference;
|
|
9125
9212
|
readonly status: io.flow.v0.enums.ItemAvailabilityStatus;
|
|
9126
9213
|
}
|
|
9214
|
+
interface ShortId {
|
|
9215
|
+
readonly id: string;
|
|
9216
|
+
readonly source: io.flow.v0.models.ShortIdSource;
|
|
9217
|
+
readonly identifier: string;
|
|
9218
|
+
}
|
|
9219
|
+
interface ShortIdSource {
|
|
9220
|
+
readonly key: io.flow.v0.enums.ShortIdSourceKey;
|
|
9221
|
+
readonly id: string;
|
|
9222
|
+
}
|
|
9127
9223
|
interface SimplePermissionCheck {
|
|
9128
9224
|
readonly behaviors: io.flow.v0.enums.FlowBehavior[];
|
|
9129
9225
|
}
|
|
@@ -9162,6 +9258,13 @@ declare namespace io.flow.v0.models {
|
|
|
9162
9258
|
readonly numbers?: string[];
|
|
9163
9259
|
readonly sort?: string;
|
|
9164
9260
|
}
|
|
9261
|
+
interface StreetAddress {
|
|
9262
|
+
readonly streets?: string[];
|
|
9263
|
+
readonly city?: string;
|
|
9264
|
+
readonly province?: string;
|
|
9265
|
+
readonly postal?: string;
|
|
9266
|
+
readonly country?: string;
|
|
9267
|
+
}
|
|
9165
9268
|
interface StripeAuthenticationData {
|
|
9166
9269
|
readonly discriminator: 'stripe_authentication_data';
|
|
9167
9270
|
readonly secret_key_reference: string;
|
|
@@ -9353,6 +9456,79 @@ declare namespace io.flow.v0.models {
|
|
|
9353
9456
|
readonly components: io.flow.v0.enums.LevyComponent[];
|
|
9354
9457
|
readonly deminimis?: io.flow.v0.unions.Deminimis;
|
|
9355
9458
|
}
|
|
9459
|
+
interface TaxDutyCalculatorValidationError {
|
|
9460
|
+
readonly code: io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode;
|
|
9461
|
+
readonly messages: string[];
|
|
9462
|
+
readonly codes: io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode[];
|
|
9463
|
+
}
|
|
9464
|
+
interface TaxDutyQuote {
|
|
9465
|
+
readonly id: string;
|
|
9466
|
+
readonly primary_identifier: string;
|
|
9467
|
+
readonly attributes?: Record<string, string>;
|
|
9468
|
+
readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
|
|
9469
|
+
readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
|
|
9470
|
+
readonly destination: io.flow.v0.models.StreetAddress;
|
|
9471
|
+
readonly quote_date: string;
|
|
9472
|
+
readonly currency: string;
|
|
9473
|
+
readonly lines: io.flow.v0.models.TaxDutyQuoteLineItem[];
|
|
9474
|
+
readonly shipping: io.flow.v0.models.TaxDutyQuoteSimpleShipping[];
|
|
9475
|
+
readonly total_values: io.flow.v0.models.TaxDutyQuoteValues;
|
|
9476
|
+
}
|
|
9477
|
+
interface TaxDutyQuoteFeeValue {
|
|
9478
|
+
readonly amount: number;
|
|
9479
|
+
readonly description: string;
|
|
9480
|
+
}
|
|
9481
|
+
interface TaxDutyQuoteForm {
|
|
9482
|
+
readonly primary_identifier: string;
|
|
9483
|
+
readonly attributes?: Record<string, string>;
|
|
9484
|
+
readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
|
|
9485
|
+
readonly destination: io.flow.v0.models.StreetAddress;
|
|
9486
|
+
readonly currency: string;
|
|
9487
|
+
readonly lines: io.flow.v0.models.TaxDutyQuoteLineItemForm[];
|
|
9488
|
+
readonly shipping: io.flow.v0.models.TaxDutyQuoteSimpleShippingForm[];
|
|
9489
|
+
}
|
|
9490
|
+
interface TaxDutyQuoteLineItem {
|
|
9491
|
+
readonly primary_identifier: string;
|
|
9492
|
+
readonly attributes?: Record<string, string>;
|
|
9493
|
+
readonly ship_from: io.flow.v0.models.StreetAddress;
|
|
9494
|
+
readonly quantity: number;
|
|
9495
|
+
readonly unit_values: io.flow.v0.models.TaxDutyQuoteValues;
|
|
9496
|
+
readonly country_of_origin: string;
|
|
9497
|
+
readonly hs_code: string;
|
|
9498
|
+
}
|
|
9499
|
+
interface TaxDutyQuoteLineItemForm {
|
|
9500
|
+
readonly primary_identifier: string;
|
|
9501
|
+
readonly attributes?: Record<string, string>;
|
|
9502
|
+
readonly ship_from: io.flow.v0.models.StreetAddress;
|
|
9503
|
+
readonly quantity: number;
|
|
9504
|
+
readonly unit_price: number;
|
|
9505
|
+
readonly country_of_origin: string;
|
|
9506
|
+
readonly hs_code: string;
|
|
9507
|
+
readonly includes: io.flow.v0.enums.LevyInclusion[];
|
|
9508
|
+
}
|
|
9509
|
+
interface TaxDutyQuoteSimpleLevyValue {
|
|
9510
|
+
readonly discriminator: 'tax_duty_quote_simple_levy_value';
|
|
9511
|
+
readonly amount: number;
|
|
9512
|
+
readonly rate: number;
|
|
9513
|
+
readonly description: string;
|
|
9514
|
+
readonly zero_levy_reason?: io.flow.v0.enums.ZeroLevyReasonCode[];
|
|
9515
|
+
}
|
|
9516
|
+
interface TaxDutyQuoteSimpleShipping {
|
|
9517
|
+
readonly values: io.flow.v0.models.TaxDutyQuoteValues;
|
|
9518
|
+
readonly ship_from: io.flow.v0.models.StreetAddress;
|
|
9519
|
+
}
|
|
9520
|
+
interface TaxDutyQuoteSimpleShippingForm {
|
|
9521
|
+
readonly price: number;
|
|
9522
|
+
readonly includes: io.flow.v0.enums.LevyInclusion[];
|
|
9523
|
+
readonly ship_from?: io.flow.v0.models.StreetAddress;
|
|
9524
|
+
}
|
|
9525
|
+
interface TaxDutyQuoteValues {
|
|
9526
|
+
readonly price: number;
|
|
9527
|
+
readonly duty: io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
|
|
9528
|
+
readonly tax: io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
|
|
9529
|
+
readonly fees: io.flow.v0.models.TaxDutyQuoteFeeValue;
|
|
9530
|
+
readonly total: number;
|
|
9531
|
+
}
|
|
9356
9532
|
interface TaxRegistration {
|
|
9357
9533
|
readonly id: string;
|
|
9358
9534
|
readonly key: string;
|
|
@@ -9917,13 +10093,14 @@ declare namespace io.flow.v0.unions {
|
|
|
9917
10093
|
type ShippingNotificationForm = io.flow.v0.models.DetailedShippingNotificationForm | io.flow.v0.models.SinglePackageShippingNotificationForm | io.flow.v0.models.SummaryShippingNotificationForm;
|
|
9918
10094
|
type ShopifyCartAddForm = io.flow.v0.models.ShopifyCartAddSingleForm | io.flow.v0.models.ShopifyCartAddMultipleForm;
|
|
9919
10095
|
type ShopifyEventBucket = io.flow.v0.models.ShopifyItemEventBucket;
|
|
10096
|
+
type TaxDutyQuoteLevyValue = io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
|
|
9920
10097
|
type TaxSetting = io.flow.v0.models.AvalaraTaxSetting | io.flow.v0.models.AvalaraTaxCsvSetting;
|
|
9921
10098
|
type ThreedsChallengeAction = io.flow.v0.models.ThreedsTwoChallengeRequest;
|
|
9922
10099
|
type ThreedsIdentifyAction = io.flow.v0.models.ThreedsTwoMethod;
|
|
9923
10100
|
type TierRuleOutcome = io.flow.v0.models.AmountMargin | io.flow.v0.models.AtCost | io.flow.v0.models.FlatRate | io.flow.v0.models.PercentMargin;
|
|
9924
10101
|
type TierRuleOutcomeForm = io.flow.v0.models.AmountMarginForm | io.flow.v0.models.FlatRateForm | io.flow.v0.models.AtCost | io.flow.v0.models.PercentMargin;
|
|
9925
|
-
type Token = io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.PartnerToken;
|
|
9926
|
-
type TokenReference = io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.PartnerTokenReference;
|
|
10102
|
+
type Token = io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken;
|
|
10103
|
+
type TokenReference = io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference;
|
|
9927
10104
|
}
|
|
9928
10105
|
export declare type AbandonedOrderEmailSettings = io.flow.v0.models.AbandonedOrderEmailSettings;
|
|
9929
10106
|
export declare type AbandonedOrderPromotion = io.flow.v0.models.AbandonedOrderPromotion;
|
|
@@ -10140,6 +10317,7 @@ export declare type ChannelOrganizationUpserted = io.flow.v0.models.ChannelOrgan
|
|
|
10140
10317
|
export declare type ChannelRate = io.flow.v0.models.ChannelRate;
|
|
10141
10318
|
export declare type ChannelReference = io.flow.v0.models.ChannelReference;
|
|
10142
10319
|
export declare type ChannelToken = io.flow.v0.models.ChannelToken;
|
|
10320
|
+
export declare type ChannelTokenForm = io.flow.v0.models.ChannelTokenForm;
|
|
10143
10321
|
export declare type ChannelTokenReference = io.flow.v0.models.ChannelTokenReference;
|
|
10144
10322
|
export declare type ChannelUpserted = io.flow.v0.models.ChannelUpserted;
|
|
10145
10323
|
export declare type CheckoutAttribute = io.flow.v0.models.CheckoutAttribute;
|
|
@@ -10607,6 +10785,7 @@ export declare type LaneStrategy = io.flow.v0.enums.LaneStrategy;
|
|
|
10607
10785
|
export declare type LaneSummary = io.flow.v0.models.LaneSummary;
|
|
10608
10786
|
export declare type Language = io.flow.v0.models.Language;
|
|
10609
10787
|
export declare type LevyComponent = io.flow.v0.enums.LevyComponent;
|
|
10788
|
+
export declare type LevyInclusion = io.flow.v0.enums.LevyInclusion;
|
|
10610
10789
|
export declare type LevyStrategy = io.flow.v0.enums.LevyStrategy;
|
|
10611
10790
|
export declare type Line = io.flow.v0.models.Line;
|
|
10612
10791
|
export declare type LineItem = io.flow.v0.models.LineItem;
|
|
@@ -10834,7 +11013,10 @@ export declare type OrganizationStatus = io.flow.v0.enums.OrganizationStatus;
|
|
|
10834
11013
|
export declare type OrganizationSummary = io.flow.v0.models.OrganizationSummary;
|
|
10835
11014
|
export declare type OrganizationToken = io.flow.v0.models.OrganizationToken;
|
|
10836
11015
|
export declare type OrganizationTokenForm = io.flow.v0.models.OrganizationTokenForm;
|
|
11016
|
+
export declare type OrganizationTokenFormV2 = io.flow.v0.models.OrganizationTokenFormV2;
|
|
10837
11017
|
export declare type OrganizationTokenReference = io.flow.v0.models.OrganizationTokenReference;
|
|
11018
|
+
export declare type OrganizationTokenV2 = io.flow.v0.models.OrganizationTokenV2;
|
|
11019
|
+
export declare type OrganizationTokenV2Reference = io.flow.v0.models.OrganizationTokenV2Reference;
|
|
10838
11020
|
export declare type OrganizationUpserted = io.flow.v0.models.OrganizationUpserted;
|
|
10839
11021
|
export declare type OrganizationUpsertedV2 = io.flow.v0.models.OrganizationUpsertedV2;
|
|
10840
11022
|
export declare type OrganizationVersion = io.flow.v0.models.OrganizationVersion;
|
|
@@ -11255,6 +11437,9 @@ export declare type ShopifySyncCheck = io.flow.v0.enums.ShopifySyncCheck;
|
|
|
11255
11437
|
export declare type ShopifySyncStatus = io.flow.v0.models.ShopifySyncStatus;
|
|
11256
11438
|
export declare type ShopifyVariantFlowMetafield = io.flow.v0.models.ShopifyVariantFlowMetafield;
|
|
11257
11439
|
export declare type ShopifyVariantInventoryMetafield = io.flow.v0.models.ShopifyVariantInventoryMetafield;
|
|
11440
|
+
export declare type ShortId = io.flow.v0.models.ShortId;
|
|
11441
|
+
export declare type ShortIdSource = io.flow.v0.models.ShortIdSource;
|
|
11442
|
+
export declare type ShortIdSourceKey = io.flow.v0.enums.ShortIdSourceKey;
|
|
11258
11443
|
export declare type SimplePermissionCheck = io.flow.v0.models.SimplePermissionCheck;
|
|
11259
11444
|
export declare type SinglePackageShippingNotificationForm = io.flow.v0.models.SinglePackageShippingNotificationForm;
|
|
11260
11445
|
export declare type SnapshotDeleted = io.flow.v0.models.SnapshotDeleted;
|
|
@@ -11263,6 +11448,7 @@ export declare type SolidusProductExportType = io.flow.v0.models.SolidusProductE
|
|
|
11263
11448
|
export declare type SolidusVariantExportType = io.flow.v0.models.SolidusVariantExportType;
|
|
11264
11449
|
export declare type SortDirection = io.flow.v0.enums.SortDirection;
|
|
11265
11450
|
export declare type Strategy = io.flow.v0.enums.Strategy;
|
|
11451
|
+
export declare type StreetAddress = io.flow.v0.models.StreetAddress;
|
|
11266
11452
|
export declare type StripeAuthenticationData = io.flow.v0.models.StripeAuthenticationData;
|
|
11267
11453
|
export declare type StripeAuthenticationDataForm = io.flow.v0.models.StripeAuthenticationDataForm;
|
|
11268
11454
|
export declare type StripeAuthorizationResultActionDetails = io.flow.v0.models.StripeAuthorizationResultActionDetails;
|
|
@@ -11303,6 +11489,18 @@ export declare type SyncStreamType = io.flow.v0.enums.SyncStreamType;
|
|
|
11303
11489
|
export declare type SyncUnitOfTime = io.flow.v0.enums.SyncUnitOfTime;
|
|
11304
11490
|
export declare type Tax = io.flow.v0.models.Tax;
|
|
11305
11491
|
export declare type TaxApplicability = io.flow.v0.enums.TaxApplicability;
|
|
11492
|
+
export declare type TaxDutyCalculatorValidationError = io.flow.v0.models.TaxDutyCalculatorValidationError;
|
|
11493
|
+
export declare type TaxDutyCalculatorValidationErrorCode = io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode;
|
|
11494
|
+
export declare type TaxDutyQuote = io.flow.v0.models.TaxDutyQuote;
|
|
11495
|
+
export declare type TaxDutyQuoteFeeValue = io.flow.v0.models.TaxDutyQuoteFeeValue;
|
|
11496
|
+
export declare type TaxDutyQuoteForm = io.flow.v0.models.TaxDutyQuoteForm;
|
|
11497
|
+
export declare type TaxDutyQuoteLevyValue = io.flow.v0.unions.TaxDutyQuoteLevyValue;
|
|
11498
|
+
export declare type TaxDutyQuoteLineItem = io.flow.v0.models.TaxDutyQuoteLineItem;
|
|
11499
|
+
export declare type TaxDutyQuoteLineItemForm = io.flow.v0.models.TaxDutyQuoteLineItemForm;
|
|
11500
|
+
export declare type TaxDutyQuoteSimpleLevyValue = io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
|
|
11501
|
+
export declare type TaxDutyQuoteSimpleShipping = io.flow.v0.models.TaxDutyQuoteSimpleShipping;
|
|
11502
|
+
export declare type TaxDutyQuoteSimpleShippingForm = io.flow.v0.models.TaxDutyQuoteSimpleShippingForm;
|
|
11503
|
+
export declare type TaxDutyQuoteValues = io.flow.v0.models.TaxDutyQuoteValues;
|
|
11306
11504
|
export declare type TaxRegistration = io.flow.v0.models.TaxRegistration;
|
|
11307
11505
|
export declare type TaxRegistrationForm = io.flow.v0.models.TaxRegistrationForm;
|
|
11308
11506
|
export declare type TaxReport = io.flow.v0.models.TaxReport;
|
|
@@ -11406,5 +11604,6 @@ export declare type WebhookResponse = io.flow.v0.models.WebhookResponse;
|
|
|
11406
11604
|
export declare type WebhookSettings = io.flow.v0.models.WebhookSettings;
|
|
11407
11605
|
export declare type WebhookStatus = io.flow.v0.enums.WebhookStatus;
|
|
11408
11606
|
export declare type ZeroAmountIndicator = io.flow.v0.enums.ZeroAmountIndicator;
|
|
11607
|
+
export declare type ZeroLevyReasonCode = io.flow.v0.enums.ZeroLevyReasonCode;
|
|
11409
11608
|
export declare type Zone = io.flow.v0.models.Zone;
|
|
11410
11609
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.20.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": "38af75487da2f490f599a0825d0b541106b9ba43"
|
|
29
29
|
}
|