@flowio/api-types 0.0.204 → 0.0.206
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/generated/io.flow.billing.csv.v0.billing-csv.d.ts +42 -4
- package/generated/io.flow.billing.internal.v0.billing-internal.d.ts +11 -3
- package/generated/io.flow.billing.reporting.csv.v0.billing-reporting-csv.d.ts +19 -6
- package/generated/io.flow.billing.v0.billing.d.ts +28 -9
- package/generated/io.flow.channel.internal.v0.channel-internal.d.ts +64 -0
- package/generated/io.flow.external.paypal.v1.paypal.d.ts +38 -9
- package/generated/io.flow.internal.v0.api-internal.d.ts +239 -137
- package/generated/io.flow.label.v0.label.d.ts +4 -3
- package/generated/io.flow.payment.v0.payment.d.ts +13 -0
- package/generated/io.flow.ratecard.v0.ratecard.d.ts +14 -0
- package/generated/io.flow.shopify.markets.internal.event.v0.shopify-markets-internal-event.d.ts +104 -0
- package/generated/io.flow.shopify.markets.internal.v0.shopify-markets-internal.d.ts +189 -0
- package/generated/io.flow.shopify.markets.v0.shopify-markets.d.ts +1 -1
- package/generated/io.flow.stripe.v0.stripe.d.ts +9 -0
- package/generated/io.flow.trueup.v0.trueup.d.ts +52 -0
- package/generated/io.flow.v0.api.d.ts +114 -10
- package/index.d.ts +4 -1
- package/package.json +2 -2
- package/generated/io.flow.billing.true.up.v0.billing-true-up.d.ts +0 -164
|
@@ -140,7 +140,7 @@ declare namespace io.flow.v0.enums {
|
|
|
140
140
|
type PaymentType = 'card' | 'klarna' | 'googlepay' | 'paypal' | 'applepay' | 'ideal' | 'sofort' | 'afterpay' | 'bancontact';
|
|
141
141
|
type PayoutAttachmentType = 'transactions';
|
|
142
142
|
type PayoutStatusFailureCode = 'invalid_account_number' | 'account_closed' | 'could_not_process';
|
|
143
|
-
type PendingPayoutTransactionReasonCode = 'waiting_for_full_refund' | 'waiting_for_fulfillment' | 'waiting_for_in_transit' | 'waiting_for_next_payout_date' | '
|
|
143
|
+
type PendingPayoutTransactionReasonCode = 'waiting_for_full_refund' | 'waiting_for_fulfillment' | 'waiting_for_in_transit' | 'waiting_for_next_payout_date' | 'waiting_for_tracking_info' | 'waiting_for_positive_account_balance';
|
|
144
144
|
type PermittedHttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
145
145
|
type PhysicalDeliverySpecialSerivce = 'cold_storage' | 'hazardous' | 'perishable';
|
|
146
146
|
type PostalType = 'eircode' | 'pin' | 'postal' | 'zip';
|
|
@@ -1661,6 +1661,18 @@ declare namespace io.flow.v0.models {
|
|
|
1661
1661
|
readonly 'id': string;
|
|
1662
1662
|
}
|
|
1663
1663
|
|
|
1664
|
+
interface ChannelCurrencyPair {
|
|
1665
|
+
readonly 'id': string;
|
|
1666
|
+
readonly 'base': string;
|
|
1667
|
+
readonly 'target': string;
|
|
1668
|
+
readonly 'rate': io.flow.v0.models.ChannelCurrencyRate;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
interface ChannelCurrencyRate {
|
|
1672
|
+
readonly 'id': string;
|
|
1673
|
+
readonly 'value': number;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1664
1676
|
interface ChannelCurrencyUpserted {
|
|
1665
1677
|
readonly 'discriminator': 'channel_currency_upserted';
|
|
1666
1678
|
readonly 'event_id': string;
|
|
@@ -1760,6 +1772,9 @@ declare namespace io.flow.v0.models {
|
|
|
1760
1772
|
readonly 'id': string;
|
|
1761
1773
|
readonly 'reason': io.flow.v0.models.PendingPayoutTransactionReason;
|
|
1762
1774
|
readonly 'timeout'?: io.flow.v0.models.PendingPayoutTransactionTimeout;
|
|
1775
|
+
readonly 'created_at': string;
|
|
1776
|
+
readonly 'updated_at': string;
|
|
1777
|
+
readonly 'deleted_at'?: string;
|
|
1763
1778
|
}
|
|
1764
1779
|
|
|
1765
1780
|
interface ChannelPendingPayoutTransactionDeleted {
|
|
@@ -2553,6 +2568,10 @@ declare namespace io.flow.v0.models {
|
|
|
2553
2568
|
readonly 'reason': string;
|
|
2554
2569
|
}
|
|
2555
2570
|
|
|
2571
|
+
interface DeadWeight {
|
|
2572
|
+
readonly 'weight': number;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2556
2575
|
interface DefaultBankAccountForm {
|
|
2557
2576
|
readonly 'bank_account_id': string;
|
|
2558
2577
|
}
|
|
@@ -2797,6 +2816,13 @@ declare namespace io.flow.v0.models {
|
|
|
2797
2816
|
readonly 'dimension_estimate': io.flow.v0.models.DimensionEstimate;
|
|
2798
2817
|
}
|
|
2799
2818
|
|
|
2819
|
+
interface DimensionalWeight {
|
|
2820
|
+
readonly 'weight': number;
|
|
2821
|
+
readonly 'length'?: number;
|
|
2822
|
+
readonly 'width'?: number;
|
|
2823
|
+
readonly 'height'?: number;
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2800
2826
|
interface Dimensions {
|
|
2801
2827
|
readonly 'product'?: io.flow.v0.models.Dimension;
|
|
2802
2828
|
readonly 'packaging'?: io.flow.v0.models.Dimension;
|
|
@@ -3644,9 +3670,21 @@ declare namespace io.flow.v0.models {
|
|
|
3644
3670
|
readonly 'ends_at'?: string;
|
|
3645
3671
|
}
|
|
3646
3672
|
|
|
3673
|
+
interface FuelSurchargeByWeight {
|
|
3674
|
+
readonly 'discriminator': 'fuel_surcharge_by_weight';
|
|
3675
|
+
readonly 'amount': number;
|
|
3676
|
+
readonly 'weight_unit': io.flow.v0.enums.UnitOfMeasurement;
|
|
3677
|
+
}
|
|
3678
|
+
|
|
3679
|
+
interface FuelSurchargePercent {
|
|
3680
|
+
readonly 'discriminator': 'fuel_surcharge_percent';
|
|
3681
|
+
readonly 'percent': number;
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3647
3684
|
interface FuelSurchargeRatecardFee {
|
|
3648
3685
|
readonly 'discriminator': 'fuel_surcharge_ratecard_fee';
|
|
3649
3686
|
readonly 'amount': io.flow.v0.models.Money;
|
|
3687
|
+
readonly 'fuel_surcharge_rate'?: io.flow.v0.unions.FuelSurchargeRate;
|
|
3650
3688
|
}
|
|
3651
3689
|
|
|
3652
3690
|
interface FuelSurchargeServiceFee {
|
|
@@ -3900,6 +3938,7 @@ declare namespace io.flow.v0.models {
|
|
|
3900
3938
|
readonly 'currency': string;
|
|
3901
3939
|
readonly 'amount': number;
|
|
3902
3940
|
readonly 'fees': io.flow.v0.unions.RatecardFee[];
|
|
3941
|
+
readonly 'weight_break'?: number;
|
|
3903
3942
|
readonly 'total': number;
|
|
3904
3943
|
readonly 'lane': io.flow.v0.models.LaneSummary;
|
|
3905
3944
|
}
|
|
@@ -4553,6 +4592,11 @@ declare namespace io.flow.v0.models {
|
|
|
4553
4592
|
readonly 'status': string;
|
|
4554
4593
|
}
|
|
4555
4594
|
|
|
4595
|
+
interface LabelBase {
|
|
4596
|
+
readonly 'amount': number;
|
|
4597
|
+
readonly 'weight': number;
|
|
4598
|
+
}
|
|
4599
|
+
|
|
4556
4600
|
interface LabelDeletedV2 {
|
|
4557
4601
|
readonly 'discriminator': 'label_deleted_v2';
|
|
4558
4602
|
readonly 'event_id': string;
|
|
@@ -4587,6 +4631,27 @@ declare namespace io.flow.v0.models {
|
|
|
4587
4631
|
readonly 'id': string;
|
|
4588
4632
|
}
|
|
4589
4633
|
|
|
4634
|
+
interface LabelSurcharge {
|
|
4635
|
+
readonly 'amount': number;
|
|
4636
|
+
readonly 'type': io.flow.v0.enums.TrueupSurchargeType;
|
|
4637
|
+
readonly 'detail': io.flow.v0.unions.LabelSurchargeDetail;
|
|
4638
|
+
}
|
|
4639
|
+
|
|
4640
|
+
interface LabelSurchargeDetailFlat {
|
|
4641
|
+
readonly 'discriminator': 'flat';
|
|
4642
|
+
readonly 'placeholder'?: string;
|
|
4643
|
+
}
|
|
4644
|
+
|
|
4645
|
+
interface LabelSurchargeDetailPerWeightUnit {
|
|
4646
|
+
readonly 'discriminator': 'per_weight_unit';
|
|
4647
|
+
readonly 'fee': number;
|
|
4648
|
+
}
|
|
4649
|
+
|
|
4650
|
+
interface LabelSurchargeDetailPercentage {
|
|
4651
|
+
readonly 'discriminator': 'percentage';
|
|
4652
|
+
readonly 'percentage': number;
|
|
4653
|
+
}
|
|
4654
|
+
|
|
4590
4655
|
interface LabelTrackingCarrierService {
|
|
4591
4656
|
readonly 'carrier_id': string;
|
|
4592
4657
|
readonly 'service_id'?: string;
|
|
@@ -4608,6 +4673,12 @@ declare namespace io.flow.v0.models {
|
|
|
4608
4673
|
readonly 'created_at'?: string;
|
|
4609
4674
|
}
|
|
4610
4675
|
|
|
4676
|
+
interface LabelUnits {
|
|
4677
|
+
readonly 'currency': string;
|
|
4678
|
+
readonly 'weight': io.flow.v0.enums.UnitOfWeight;
|
|
4679
|
+
readonly 'length': io.flow.v0.enums.UnitOfLength;
|
|
4680
|
+
}
|
|
4681
|
+
|
|
4611
4682
|
interface LabelUpserted {
|
|
4612
4683
|
readonly 'discriminator': 'label_upserted';
|
|
4613
4684
|
readonly 'event_id': string;
|
|
@@ -6196,6 +6267,9 @@ declare namespace io.flow.v0.models {
|
|
|
6196
6267
|
readonly 'id': string;
|
|
6197
6268
|
readonly 'reason': io.flow.v0.models.PendingPayoutTransactionReason;
|
|
6198
6269
|
readonly 'timeout'?: io.flow.v0.models.PendingPayoutTransactionTimeout;
|
|
6270
|
+
readonly 'created_at': string;
|
|
6271
|
+
readonly 'updated_at': string;
|
|
6272
|
+
readonly 'deleted_at'?: string;
|
|
6199
6273
|
}
|
|
6200
6274
|
|
|
6201
6275
|
interface OrganizationPendingPayoutTransactionDeleted {
|
|
@@ -6889,6 +6963,7 @@ declare namespace io.flow.v0.models {
|
|
|
6889
6963
|
readonly 'processor': string;
|
|
6890
6964
|
readonly 'operation_identifier'?: io.flow.v0.models.PaymentProcessorIdentifier;
|
|
6891
6965
|
readonly 'account'?: io.flow.v0.models.PaymentProcessorAccount;
|
|
6966
|
+
readonly 'transaction_details'?: io.flow.v0.unions.PaymentProcessorTransactionDetails;
|
|
6892
6967
|
}
|
|
6893
6968
|
|
|
6894
6969
|
interface PaymentProcessorAccount {
|
|
@@ -6913,6 +6988,17 @@ declare namespace io.flow.v0.models {
|
|
|
6913
6988
|
readonly 'processor': string;
|
|
6914
6989
|
}
|
|
6915
6990
|
|
|
6991
|
+
interface PaymentProcessorTransactionDetailsCard {
|
|
6992
|
+
readonly 'discriminator': 'card';
|
|
6993
|
+
readonly 'transaction_identifier'?: string;
|
|
6994
|
+
readonly 'method_type'?: string;
|
|
6995
|
+
readonly 'result_status'?: string;
|
|
6996
|
+
readonly 'reason_code'?: string;
|
|
6997
|
+
readonly 'avs_result_code'?: string;
|
|
6998
|
+
readonly 'cvv_result_code'?: string;
|
|
6999
|
+
readonly 'threeds_result_code'?: string;
|
|
7000
|
+
}
|
|
7001
|
+
|
|
6916
7002
|
interface PaymentReference {
|
|
6917
7003
|
readonly 'id': string;
|
|
6918
7004
|
}
|
|
@@ -8739,9 +8825,9 @@ declare namespace io.flow.v0.models {
|
|
|
8739
8825
|
}
|
|
8740
8826
|
|
|
8741
8827
|
interface ShippingLabelHopCostItemizedEstimate {
|
|
8742
|
-
readonly 'units': io.flow.
|
|
8743
|
-
readonly 'base': io.flow.
|
|
8744
|
-
readonly 'surcharges': io.flow.
|
|
8828
|
+
readonly 'units': io.flow.v0.models.LabelUnits;
|
|
8829
|
+
readonly 'base': io.flow.v0.models.LabelBase;
|
|
8830
|
+
readonly 'surcharges': io.flow.v0.models.LabelSurcharge[];
|
|
8745
8831
|
}
|
|
8746
8832
|
|
|
8747
8833
|
interface ShippingLabelHopSummary {
|
|
@@ -8753,6 +8839,7 @@ declare namespace io.flow.v0.models {
|
|
|
8753
8839
|
interface ShippingLabelLaneSummary {
|
|
8754
8840
|
readonly 'id'?: string;
|
|
8755
8841
|
readonly 'ratecard': io.flow.v0.models.ShippingLabelRatecardSummary;
|
|
8842
|
+
readonly 'weight_break'?: number;
|
|
8756
8843
|
}
|
|
8757
8844
|
|
|
8758
8845
|
interface ShippingLabelPackage {
|
|
@@ -9996,14 +10083,30 @@ declare namespace io.flow.v0.models {
|
|
|
9996
10083
|
readonly 'country': string;
|
|
9997
10084
|
}
|
|
9998
10085
|
|
|
10086
|
+
interface TransactionMetadataManual {
|
|
10087
|
+
readonly 'discriminator': 'manual';
|
|
10088
|
+
readonly 'original'?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
|
|
10089
|
+
readonly 'url'?: string;
|
|
10090
|
+
}
|
|
10091
|
+
|
|
10092
|
+
interface TransactionMetadataOriginalTransaction {
|
|
10093
|
+
readonly 'id': string;
|
|
10094
|
+
}
|
|
10095
|
+
|
|
9999
10096
|
interface TransactionMetadataShippingLabel {
|
|
10000
10097
|
readonly 'discriminator': 'shipping_label';
|
|
10001
10098
|
readonly 'request_method'?: io.flow.v0.enums.LabelRequestMethod;
|
|
10099
|
+
readonly 'carrier': io.flow.v0.models.TransactionMetadataShippingLabelCarrier;
|
|
10100
|
+
}
|
|
10101
|
+
|
|
10102
|
+
interface TransactionMetadataShippingLabelCarrier {
|
|
10103
|
+
readonly 'id': string;
|
|
10104
|
+
readonly 'tracking_number': string;
|
|
10002
10105
|
}
|
|
10003
10106
|
|
|
10004
10107
|
interface TransactionMetadataTrueup {
|
|
10005
10108
|
readonly 'discriminator': 'trueup';
|
|
10006
|
-
readonly 'original': io.flow.v0.models.
|
|
10109
|
+
readonly 'original': io.flow.v0.models.TransactionMetadataOriginalTransaction;
|
|
10007
10110
|
readonly 'estimate': io.flow.v0.models.TransactionMetadataTrueupData;
|
|
10008
10111
|
readonly 'actual': io.flow.v0.models.TransactionMetadataTrueupData;
|
|
10009
10112
|
}
|
|
@@ -10014,10 +10117,8 @@ declare namespace io.flow.v0.models {
|
|
|
10014
10117
|
readonly 'base': io.flow.v0.models.TrueupLabelBase;
|
|
10015
10118
|
readonly 'surcharges': io.flow.v0.models.TrueupLabelSurcharge[];
|
|
10016
10119
|
readonly 'total': number;
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
interface TransactionMetadataTrueupOriginalTransaction {
|
|
10020
|
-
readonly 'id': string;
|
|
10120
|
+
readonly 'dead'?: io.flow.v0.models.DeadWeight;
|
|
10121
|
+
readonly 'dimensional'?: io.flow.v0.models.DimensionalWeight;
|
|
10021
10122
|
}
|
|
10022
10123
|
|
|
10023
10124
|
interface TransactionNetworkDetailsCard {
|
|
@@ -10333,6 +10434,7 @@ declare namespace io.flow.v0.unions {
|
|
|
10333
10434
|
type ExportType = (io.flow.v0.models.AccountTransactionsExportType | io.flow.v0.models.AccountOrdersExportType | io.flow.v0.models.AnalyticsExportType | io.flow.v0.models.CatalogItemExportType | io.flow.v0.models.ExperienceExportType | io.flow.v0.models.HarmonizationOverviewExportType | io.flow.v0.models.HarmonizationHs6ExportType | io.flow.v0.models.HarmonizationHs10ExportType | io.flow.v0.models.HarmonizationTariffCodesExportType | io.flow.v0.models.UnharmonizedItemExportType | io.flow.v0.models.OrderExportType | io.flow.v0.models.PriceBookItemExportType | io.flow.v0.models.SolidusProductExportType | io.flow.v0.models.SolidusVariantExportType | io.flow.v0.models.LocalizedItemPricesExportType | io.flow.v0.models.MarketingFeedsExportType | io.flow.v0.models.ExclusionRulesExportType);
|
|
10334
10435
|
type FieldValidationRule = (io.flow.v0.models.FieldValidationRequired | io.flow.v0.models.FieldValidationRequiredIfPresent | io.flow.v0.models.FieldValidationMin | io.flow.v0.models.FieldValidationMax | io.flow.v0.models.FieldValidationPattern);
|
|
10335
10436
|
type FraudOrderReference = (io.flow.v0.models.FraudFlowOrderReference | io.flow.v0.models.FraudPaymentRequestReference);
|
|
10437
|
+
type FuelSurchargeRate = (io.flow.v0.models.FuelSurchargePercent | io.flow.v0.models.FuelSurchargeByWeight);
|
|
10336
10438
|
type GatewayAuthenticationData = (io.flow.v0.models.StripeAuthenticationData);
|
|
10337
10439
|
type GatewayAuthenticationDataForm = (io.flow.v0.models.StripeAuthenticationDataForm);
|
|
10338
10440
|
type InlineActionConfiguration = (io.flow.v0.models.BrowserInlineActionConfiguration);
|
|
@@ -10340,6 +10442,7 @@ declare namespace io.flow.v0.unions {
|
|
|
10340
10442
|
type InventoryStrategy = (io.flow.v0.models.InventoryBackorder | io.flow.v0.models.InventoryStock | io.flow.v0.models.InventoryUnlimited | io.flow.v0.models.InventoryFollowEcommercePlatform);
|
|
10341
10443
|
type KnowYourBusiness = (io.flow.v0.models.KnowYourBusinessUsa);
|
|
10342
10444
|
type KnowYourBusinessForm = (io.flow.v0.models.KnowYourBusinessUsaForm);
|
|
10445
|
+
type LabelSurchargeDetail = (io.flow.v0.models.LabelSurchargeDetailFlat | io.flow.v0.models.LabelSurchargeDetailPercentage | io.flow.v0.models.LabelSurchargeDetailPerWeightUnit);
|
|
10343
10446
|
type LocalizedPrice = (io.flow.v0.models.LocalizedItemPrice | io.flow.v0.models.LocalizedItemVat | io.flow.v0.models.LocalizedItemDuty | io.flow.v0.models.LocalizedTotal);
|
|
10344
10447
|
type LogoImage = (io.flow.v0.models.LogoImageSvg | io.flow.v0.models.LogoImageSetStatic);
|
|
10345
10448
|
type MerchantApplication = (io.flow.v0.models.ShopifyMerchantApplication);
|
|
@@ -10375,6 +10478,7 @@ declare namespace io.flow.v0.unions {
|
|
|
10375
10478
|
});
|
|
10376
10479
|
|
|
10377
10480
|
type PaymentOrderReference = (io.flow.v0.models.AuthorizationOrderReference | io.flow.v0.models.PaymentPaymentRequestReference);
|
|
10481
|
+
type PaymentProcessorTransactionDetails = (io.flow.v0.models.PaymentProcessorTransactionDetailsCard);
|
|
10378
10482
|
type PaymentSource = (io.flow.v0.models.CardPaymentSource);
|
|
10379
10483
|
type PaymentSourceForm = (io.flow.v0.models.CardPaymentSourceForm);
|
|
10380
10484
|
type PayoutStatus = (io.flow.v0.models.PayoutStatusScheduled | io.flow.v0.models.PayoutStatusSent | io.flow.v0.models.PayoutStatusFailed);
|
|
@@ -10407,5 +10511,5 @@ declare namespace io.flow.v0.unions {
|
|
|
10407
10511
|
type Token = (io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken);
|
|
10408
10512
|
type TokenReference = (io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference);
|
|
10409
10513
|
type TransactionDetails = (io.flow.v0.models.TransactionDetailsCard);
|
|
10410
|
-
type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataChannel | io.flow.v0.models.TransactionMetadataTrueup);
|
|
10514
|
+
type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataChannel | io.flow.v0.models.TransactionMetadataTrueup | io.flow.v0.models.TransactionMetadataManual);
|
|
10411
10515
|
}
|
package/index.d.ts
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
/// <reference path="generated/io.flow.billing.csv.v0.billing-csv.d.ts" />
|
|
7
7
|
/// <reference path="generated/io.flow.billing.internal.v0.billing-internal.d.ts" />
|
|
8
8
|
/// <reference path="generated/io.flow.billing.reporting.csv.v0.billing-reporting-csv.d.ts" />
|
|
9
|
-
/// <reference path="generated/io.flow.billing.true.up.v0.billing-true-up.d.ts" />
|
|
10
9
|
/// <reference path="generated/io.flow.billing.v0.billing.d.ts" />
|
|
11
10
|
/// <reference path="generated/io.flow.bitpay.v0.bitpay.d.ts" />
|
|
12
11
|
/// <reference path="generated/io.flow.brickftp.v0.brickftp.d.ts" />
|
|
13
12
|
/// <reference path="generated/io.flow.catalog.exclusion.v0.catalog-exclusion.d.ts" />
|
|
14
13
|
/// <reference path="generated/io.flow.catalog.return.v0.catalog-return.d.ts" />
|
|
15
14
|
/// <reference path="generated/io.flow.catalog.v0.catalog.d.ts" />
|
|
15
|
+
/// <reference path="generated/io.flow.channel.internal.v0.channel-internal.d.ts" />
|
|
16
16
|
/// <reference path="generated/io.flow.channel.v0.channel.d.ts" />
|
|
17
17
|
/// <reference path="generated/io.flow.checkout.analytics.v0.checkout-analytics.d.ts" />
|
|
18
18
|
/// <reference path="generated/io.flow.checkout.backend.v0.checkout-backend.d.ts" />
|
|
@@ -69,6 +69,8 @@
|
|
|
69
69
|
/// <reference path="generated/io.flow.session.context.v0.session-context.d.ts" />
|
|
70
70
|
/// <reference path="generated/io.flow.session.v0.session.d.ts" />
|
|
71
71
|
/// <reference path="generated/io.flow.shopify.external.v0.shopify-external.d.ts" />
|
|
72
|
+
/// <reference path="generated/io.flow.shopify.markets.internal.event.v0.shopify-markets-internal-event.d.ts" />
|
|
73
|
+
/// <reference path="generated/io.flow.shopify.markets.internal.v0.shopify-markets-internal.d.ts" />
|
|
72
74
|
/// <reference path="generated/io.flow.shopify.markets.v0.shopify-markets.d.ts" />
|
|
73
75
|
/// <reference path="generated/io.flow.shopify.merchant.config.v0.shopify-merchant-config.d.ts" />
|
|
74
76
|
/// <reference path="generated/io.flow.shopify.v0.shopify.d.ts" />
|
|
@@ -76,5 +78,6 @@
|
|
|
76
78
|
/// <reference path="generated/io.flow.svb.v0.svb.d.ts" />
|
|
77
79
|
/// <reference path="generated/io.flow.token.v0.token.d.ts" />
|
|
78
80
|
/// <reference path="generated/io.flow.tracking.v0.tracking.d.ts" />
|
|
81
|
+
/// <reference path="generated/io.flow.trueup.v0.trueup.d.ts" />
|
|
79
82
|
/// <reference path="generated/io.flow.units.v0.units.d.ts" />
|
|
80
83
|
/// <reference path="generated/io.flow.v0.api.d.ts" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.206",
|
|
4
4
|
"description": "Global TypeScript typings for Flow Commerce API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"generate": "apibuilder update && node scripts/generate-index.js"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "8ec8b535c64db79aa4a49bf6bd6eb53f46deee7d"
|
|
18
18
|
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.enums {
|
|
2
|
-
type TrueUpSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
6
|
-
interface CarrierChargeFile {
|
|
7
|
-
readonly 'id': string;
|
|
8
|
-
readonly 'url': string;
|
|
9
|
-
readonly 'created_at': string;
|
|
10
|
-
readonly 'result'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.CarrierChargeFileResult;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface CarrierChargeFileForm {
|
|
14
|
-
readonly 'url': string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface CarrierChargeFileResult {
|
|
18
|
-
readonly 'processed_at': string;
|
|
19
|
-
readonly 'number_lines_successful': number;
|
|
20
|
-
readonly 'number_lines_with_errors': number;
|
|
21
|
-
readonly 'errors_url'?: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface CarrierChargeFormLabel {
|
|
25
|
-
readonly 'discriminator': 'label';
|
|
26
|
-
readonly 'id': string;
|
|
27
|
-
readonly 'label_invoice_request_id': string;
|
|
28
|
-
readonly 'units': io.flow.billing.RESERVED_WORD_true.up.v0.models.CarrierChargeUnits;
|
|
29
|
-
readonly 'base': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase;
|
|
30
|
-
readonly 'surcharges': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeForm;
|
|
31
|
-
readonly 'total': number;
|
|
32
|
-
readonly 'attributes'?: Record<string, string>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface CarrierChargeFormReturnToOrigin {
|
|
36
|
-
readonly 'discriminator': 'return_to_origin';
|
|
37
|
-
readonly 'id': string;
|
|
38
|
-
readonly 'carrier_id': string;
|
|
39
|
-
readonly 'carrier_tracking_number': string;
|
|
40
|
-
readonly 'units': io.flow.billing.RESERVED_WORD_true.up.v0.models.CarrierChargeUnits;
|
|
41
|
-
readonly 'base': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase;
|
|
42
|
-
readonly 'surcharges': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeForm;
|
|
43
|
-
readonly 'total': number;
|
|
44
|
-
readonly 'attributes'?: Record<string, string>;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface CarrierChargeUnits {
|
|
48
|
-
readonly 'currency': string;
|
|
49
|
-
readonly 'weight': io.flow.units.v0.enums.UnitOfWeight;
|
|
50
|
-
readonly 'length'?: io.flow.units.v0.enums.UnitOfLength;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface LabelBase {
|
|
54
|
-
readonly 'amount': number;
|
|
55
|
-
readonly 'weight': number;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
interface LabelDestination {
|
|
59
|
-
readonly 'country': string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
interface LabelInvoiceRequest {
|
|
63
|
-
readonly 'id': string;
|
|
64
|
-
readonly 'label': io.flow.billing.RESERVED_WORD_true.up.v0.models.TrueUpLabelSummary;
|
|
65
|
-
readonly 'units': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelUnits;
|
|
66
|
-
readonly 'base': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase;
|
|
67
|
-
readonly 'surcharges': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurcharge[];
|
|
68
|
-
readonly 'total': number;
|
|
69
|
-
readonly 'destination': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelDestination;
|
|
70
|
-
readonly 'metadata': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelMetadata;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
interface LabelMetadata {
|
|
74
|
-
readonly 'ratecard': io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataRatecard;
|
|
75
|
-
readonly 'weights': io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataWeights;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface LabelSurcharge {
|
|
79
|
-
readonly 'amount': number;
|
|
80
|
-
readonly 'type': io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType;
|
|
81
|
-
readonly 'detail': io.flow.billing.RESERVED_WORD_true.up.v0.unions.LabelSurchargeDetail;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface LabelSurchargeDetailFlat {
|
|
85
|
-
readonly 'discriminator': 'flat';
|
|
86
|
-
readonly 'placeholder'?: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
interface LabelSurchargeDetailPerWeightUnit {
|
|
90
|
-
readonly 'discriminator': 'per_weight_unit';
|
|
91
|
-
readonly 'fee': number;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
interface LabelSurchargeDetailPercentage {
|
|
95
|
-
readonly 'discriminator': 'percentage';
|
|
96
|
-
readonly 'percentage': number;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
interface LabelSurchargeForm {
|
|
100
|
-
readonly 'fuel'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
101
|
-
readonly 'remote_area'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
102
|
-
readonly 'oversize'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
103
|
-
readonly 'duties_paid'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
104
|
-
readonly 'emergency'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
105
|
-
readonly 'peak'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
106
|
-
readonly 'address_correction'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
interface LabelSurchargeSingleForm {
|
|
110
|
-
readonly 'amount': number;
|
|
111
|
-
readonly 'percentage'?: number;
|
|
112
|
-
readonly 'fee_per_weight_unit'?: number;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
interface LabelUnits {
|
|
116
|
-
readonly 'currency': string;
|
|
117
|
-
readonly 'weight': io.flow.units.v0.enums.UnitOfWeight;
|
|
118
|
-
readonly 'length': io.flow.units.v0.enums.UnitOfLength;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
interface MetadataProposition {
|
|
122
|
-
readonly 'shipping_method': io.flow.billing.RESERVED_WORD_true.up.v0.models.ShippingMethodReference;
|
|
123
|
-
readonly 'name': string;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
interface MetadataRatecard {
|
|
127
|
-
readonly 'id': string;
|
|
128
|
-
readonly 'proposition': io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataProposition;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
interface MetadataWeights {
|
|
132
|
-
readonly 'dead'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDead;
|
|
133
|
-
readonly 'dimensional'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDimensional;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
interface ShippingMethodReference {
|
|
137
|
-
readonly 'id': string;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
interface TrueUpLabelSummary {
|
|
141
|
-
readonly 'id': string;
|
|
142
|
-
readonly 'carrier_service_id': string;
|
|
143
|
-
readonly 'carrier_tracking_number': string;
|
|
144
|
-
readonly 'flow_tracking_number': string;
|
|
145
|
-
readonly 'source': io.flow.label.v0.enums.CostEstimateSource;
|
|
146
|
-
readonly 'created_at': string;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
interface WeightsDead {
|
|
150
|
-
readonly 'weight': number;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
interface WeightsDimensional {
|
|
154
|
-
readonly 'weight': number;
|
|
155
|
-
readonly 'length': number;
|
|
156
|
-
readonly 'width': number;
|
|
157
|
-
readonly 'height': number;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.unions {
|
|
162
|
-
type CarrierChargeForm = (io.flow.billing.RESERVED_WORD_true.up.v0.models.CarrierChargeFormLabel | io.flow.billing.RESERVED_WORD_true.up.v0.models.CarrierChargeFormReturnToOrigin);
|
|
163
|
-
type LabelSurchargeDetail = (io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeDetailFlat | io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeDetailPercentage | io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeDetailPerWeightUnit);
|
|
164
|
-
}
|