@flowio/types 11.24.2 → 11.24.3

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.
@@ -15735,10 +15735,13 @@ declare namespace io.flow.internal.v0.models {
15735
15735
  readonly messages: string[];
15736
15736
  }
15737
15737
  interface LabelCreationJob {
15738
+ readonly id: string;
15738
15739
  readonly reference_id: string;
15739
15740
  readonly status: io.flow.internal.v0.enums.LabelCreationStatus;
15740
15741
  readonly label_url?: string;
15741
15742
  readonly commercial_invoice_url?: string;
15743
+ readonly service_id?: string;
15744
+ readonly carrier_tracking_number?: string;
15742
15745
  readonly flow_tracking_number?: string;
15743
15746
  readonly errors: string[];
15744
15747
  }
@@ -17425,6 +17428,8 @@ declare namespace io.flow.internal.v0.models {
17425
17428
  interface RatecardInternalServiceFee {
17426
17429
  readonly id: string;
17427
17430
  readonly service_id: string;
17431
+ readonly created_at: string;
17432
+ readonly updated_at: string;
17428
17433
  readonly fees: io.flow.ratecard.v0.unions.ServiceFee[];
17429
17434
  }
17430
17435
  interface RatecardInternalSummary {
package/dist/api.d.ts CHANGED
@@ -2411,7 +2411,6 @@ declare namespace io.flow.v0.enums {
2411
2411
  type TrackingStatus = 'label_created' | 'pending' | 'info_received' | 'picked_up' | 'in_transit' | 'out_for_delivery' | 'attempt_fail' | 'delivered' | 'exception' | 'returned' | 'expired';
2412
2412
  type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
2413
2413
  type TradeAgreementStatus = 'supported' | 'not_supported';
2414
- type TransactionSourceType = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'shipping_label';
2415
2414
  type UnitOfMeasurement = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'cubic_inch' | 'cubic_meter' | 'gram' | 'kilogram' | 'meter' | 'ounce' | 'pound';
2416
2415
  type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
2417
2416
  type UpdatePolicy = 'auto' | 'queue' | 'discard';
@@ -9300,7 +9299,7 @@ declare namespace io.flow.v0.models {
9300
9299
  readonly chargeback_percentage?: number;
9301
9300
  readonly bank_account_number?: string;
9302
9301
  readonly aba_routing_transit_number?: string;
9303
- readonly trade_sector?: io.flow.v0.enums.OnboardingTradeSector[];
9302
+ readonly trade_sectors?: io.flow.v0.enums.OnboardingTradeSector[];
9304
9303
  readonly other_trade_sector?: string;
9305
9304
  readonly third_party_logistics_partners?: io.flow.v0.models.ThirdPartyLogisticsPartner[];
9306
9305
  readonly average_order_weight?: number;
@@ -9323,7 +9322,7 @@ declare namespace io.flow.v0.models {
9323
9322
  readonly chargeback_percentage?: number;
9324
9323
  readonly bank_account_number?: string;
9325
9324
  readonly aba_routing_transit_number?: string;
9326
- readonly trade_sector?: io.flow.v0.enums.OnboardingTradeSector[];
9325
+ readonly trade_sectors?: io.flow.v0.enums.OnboardingTradeSector[];
9327
9326
  readonly other_trade_sector?: string;
9328
9327
  readonly third_party_logistics_partners?: io.flow.v0.models.ThirdPartyLogisticsPartner[];
9329
9328
  readonly average_order_weight?: number;
@@ -10021,18 +10020,34 @@ declare namespace io.flow.v0.models {
10021
10020
  readonly id: string;
10022
10021
  readonly order: io.flow.v0.models.BillingChannelOrderReference;
10023
10022
  readonly statement?: io.flow.v0.models.BillingChannelStatementReference;
10024
- readonly payment_request: io.flow.v0.models.BillingChannelPaymentRequestReference;
10023
+ readonly payment_request?: io.flow.v0.models.BillingChannelPaymentRequestReference;
10025
10024
  readonly currency: string;
10026
- readonly source: io.flow.v0.models.TransactionSource;
10025
+ readonly source: io.flow.v0.unions.TransactionSource;
10027
10026
  readonly gross: number;
10028
10027
  readonly fees: io.flow.v0.models.Deduction[];
10029
10028
  readonly withholdings: io.flow.v0.models.Deduction[];
10030
10029
  readonly net: number;
10031
10030
  readonly created_at: string;
10032
10031
  }
10033
- interface TransactionSource {
10032
+ interface TransactionSourceAdjustment {
10033
+ readonly discriminator: 'transaction_source_adjustment';
10034
+ readonly id: string;
10035
+ }
10036
+ interface TransactionSourceCapture {
10037
+ readonly discriminator: 'transaction_source_capture';
10038
+ readonly id: string;
10039
+ }
10040
+ interface TransactionSourceDispute {
10041
+ readonly discriminator: 'transaction_source_dispute';
10042
+ readonly id: string;
10043
+ }
10044
+ interface TransactionSourceRefund {
10045
+ readonly discriminator: 'transaction_source_refund';
10046
+ readonly id: string;
10047
+ }
10048
+ interface TransactionSourceShippingLabel {
10049
+ readonly discriminator: 'transaction_source_shipping_label';
10034
10050
  readonly id: string;
10035
- readonly type: io.flow.v0.enums.TransactionSourceType;
10036
10051
  }
10037
10052
  interface TransitEstimate {
10038
10053
  readonly origin: io.flow.v0.enums.DeliveryWindowLocation;
@@ -10326,6 +10341,7 @@ declare namespace io.flow.v0.unions {
10326
10341
  type TierRuleOutcomeForm = io.flow.v0.models.AmountMarginForm | io.flow.v0.models.FlatRateForm | io.flow.v0.models.AtCost | io.flow.v0.models.PercentMargin;
10327
10342
  type Token = io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken;
10328
10343
  type TokenReference = io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference;
10344
+ type TransactionSource = io.flow.v0.models.TransactionSourceCapture | io.flow.v0.models.TransactionSourceRefund | io.flow.v0.models.TransactionSourceDispute | io.flow.v0.models.TransactionSourceAdjustment | io.flow.v0.models.TransactionSourceShippingLabel;
10329
10345
  }
10330
10346
  export declare type AbandonedOrderEmailSettings = io.flow.v0.models.AbandonedOrderEmailSettings;
10331
10347
  export declare type AbandonedOrderPromotion = io.flow.v0.models.AbandonedOrderPromotion;
@@ -11831,8 +11847,12 @@ export declare type TradeAgreementDuty = io.flow.v0.models.TradeAgreementDuty;
11831
11847
  export declare type TradeAgreementName = io.flow.v0.enums.TradeAgreementName;
11832
11848
  export declare type TradeAgreementStatus = io.flow.v0.enums.TradeAgreementStatus;
11833
11849
  export declare type Transaction = io.flow.v0.models.Transaction;
11834
- export declare type TransactionSource = io.flow.v0.models.TransactionSource;
11835
- export declare type TransactionSourceType = io.flow.v0.enums.TransactionSourceType;
11850
+ export declare type TransactionSource = io.flow.v0.unions.TransactionSource;
11851
+ export declare type TransactionSourceAdjustment = io.flow.v0.models.TransactionSourceAdjustment;
11852
+ export declare type TransactionSourceCapture = io.flow.v0.models.TransactionSourceCapture;
11853
+ export declare type TransactionSourceDispute = io.flow.v0.models.TransactionSourceDispute;
11854
+ export declare type TransactionSourceRefund = io.flow.v0.models.TransactionSourceRefund;
11855
+ export declare type TransactionSourceShippingLabel = io.flow.v0.models.TransactionSourceShippingLabel;
11836
11856
  export declare type TransitEstimate = io.flow.v0.models.TransitEstimate;
11837
11857
  export declare type TransitWindow = io.flow.v0.models.TransitWindow;
11838
11858
  export declare type UnharmonizedItemExportType = io.flow.v0.models.UnharmonizedItemExportType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.24.2",
3
+ "version": "11.24.3",
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": "5a856f0214138246a416fca9a94b25067a1a1e7e"
28
+ "gitHead": "f902f05cda2ea4fb6a86396488a060cf91595a89"
29
29
  }
@@ -20409,10 +20409,13 @@ declare namespace io.flow.internal.v0.models {
20409
20409
  }
20410
20410
 
20411
20411
  interface LabelCreationJob {
20412
+ readonly id: string;
20412
20413
  readonly reference_id: string;
20413
20414
  readonly status: io.flow.internal.v0.enums.LabelCreationStatus;
20414
20415
  readonly label_url?: string;
20415
20416
  readonly commercial_invoice_url?: string;
20417
+ readonly service_id?: string;
20418
+ readonly carrier_tracking_number?: string;
20416
20419
  readonly flow_tracking_number?: string;
20417
20420
  readonly errors: string[];
20418
20421
  }
@@ -22361,6 +22364,8 @@ declare namespace io.flow.internal.v0.models {
22361
22364
  interface RatecardInternalServiceFee {
22362
22365
  readonly id: string;
22363
22366
  readonly service_id: string;
22367
+ readonly created_at: string;
22368
+ readonly updated_at: string;
22364
22369
  readonly fees: io.flow.ratecard.v0.unions.ServiceFee[];
22365
22370
  }
22366
22371
 
package/src/api.ts CHANGED
@@ -3723,12 +3723,6 @@ declare namespace io.flow.v0.enums {
3723
3723
  | 'expired';
3724
3724
  type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
3725
3725
  type TradeAgreementStatus = 'supported' | 'not_supported';
3726
- type TransactionSourceType =
3727
- | 'capture'
3728
- | 'refund'
3729
- | 'dispute'
3730
- | 'adjustment'
3731
- | 'shipping_label';
3732
3726
  type UnitOfMeasurement =
3733
3727
  | 'millimeter'
3734
3728
  | 'centimeter'
@@ -11768,7 +11762,7 @@ declare namespace io.flow.v0.models {
11768
11762
  readonly chargeback_percentage?: number;
11769
11763
  readonly bank_account_number?: string;
11770
11764
  readonly aba_routing_transit_number?: string;
11771
- readonly trade_sector?: io.flow.v0.enums.OnboardingTradeSector[];
11765
+ readonly trade_sectors?: io.flow.v0.enums.OnboardingTradeSector[];
11772
11766
  readonly other_trade_sector?: string;
11773
11767
  readonly third_party_logistics_partners?: io.flow.v0.models.ThirdPartyLogisticsPartner[];
11774
11768
  readonly average_order_weight?: number;
@@ -11792,7 +11786,7 @@ declare namespace io.flow.v0.models {
11792
11786
  readonly chargeback_percentage?: number;
11793
11787
  readonly bank_account_number?: string;
11794
11788
  readonly aba_routing_transit_number?: string;
11795
- readonly trade_sector?: io.flow.v0.enums.OnboardingTradeSector[];
11789
+ readonly trade_sectors?: io.flow.v0.enums.OnboardingTradeSector[];
11796
11790
  readonly other_trade_sector?: string;
11797
11791
  readonly third_party_logistics_partners?: io.flow.v0.models.ThirdPartyLogisticsPartner[];
11798
11792
  readonly average_order_weight?: number;
@@ -12600,9 +12594,9 @@ declare namespace io.flow.v0.models {
12600
12594
  readonly id: string;
12601
12595
  readonly order: io.flow.v0.models.BillingChannelOrderReference;
12602
12596
  readonly statement?: io.flow.v0.models.BillingChannelStatementReference;
12603
- readonly payment_request: io.flow.v0.models.BillingChannelPaymentRequestReference;
12597
+ readonly payment_request?: io.flow.v0.models.BillingChannelPaymentRequestReference;
12604
12598
  readonly currency: string;
12605
- readonly source: io.flow.v0.models.TransactionSource;
12599
+ readonly source: io.flow.v0.unions.TransactionSource;
12606
12600
  readonly gross: number;
12607
12601
  readonly fees: io.flow.v0.models.Deduction[];
12608
12602
  readonly withholdings: io.flow.v0.models.Deduction[];
@@ -12610,9 +12604,29 @@ declare namespace io.flow.v0.models {
12610
12604
  readonly created_at: string;
12611
12605
  }
12612
12606
 
12613
- interface TransactionSource {
12607
+ interface TransactionSourceAdjustment {
12608
+ readonly discriminator: 'transaction_source_adjustment';
12609
+ readonly id: string;
12610
+ }
12611
+
12612
+ interface TransactionSourceCapture {
12613
+ readonly discriminator: 'transaction_source_capture';
12614
+ readonly id: string;
12615
+ }
12616
+
12617
+ interface TransactionSourceDispute {
12618
+ readonly discriminator: 'transaction_source_dispute';
12619
+ readonly id: string;
12620
+ }
12621
+
12622
+ interface TransactionSourceRefund {
12623
+ readonly discriminator: 'transaction_source_refund';
12624
+ readonly id: string;
12625
+ }
12626
+
12627
+ interface TransactionSourceShippingLabel {
12628
+ readonly discriminator: 'transaction_source_shipping_label';
12614
12629
  readonly id: string;
12615
- readonly type: io.flow.v0.enums.TransactionSourceType;
12616
12630
  }
12617
12631
 
12618
12632
  interface TransitEstimate {
@@ -13357,6 +13371,12 @@ declare namespace io.flow.v0.unions {
13357
13371
  | io.flow.v0.models.OrganizationTokenReference
13358
13372
  | io.flow.v0.models.OrganizationTokenV2Reference
13359
13373
  | io.flow.v0.models.PartnerTokenReference;
13374
+ type TransactionSource =
13375
+ | io.flow.v0.models.TransactionSourceCapture
13376
+ | io.flow.v0.models.TransactionSourceRefund
13377
+ | io.flow.v0.models.TransactionSourceDispute
13378
+ | io.flow.v0.models.TransactionSourceAdjustment
13379
+ | io.flow.v0.models.TransactionSourceShippingLabel;
13360
13380
  }
13361
13381
 
13362
13382
  export type AbandonedOrderEmailSettings =
@@ -15261,8 +15281,16 @@ export type TradeAgreementDuty = io.flow.v0.models.TradeAgreementDuty;
15261
15281
  export type TradeAgreementName = io.flow.v0.enums.TradeAgreementName;
15262
15282
  export type TradeAgreementStatus = io.flow.v0.enums.TradeAgreementStatus;
15263
15283
  export type Transaction = io.flow.v0.models.Transaction;
15264
- export type TransactionSource = io.flow.v0.models.TransactionSource;
15265
- export type TransactionSourceType = io.flow.v0.enums.TransactionSourceType;
15284
+ export type TransactionSource = io.flow.v0.unions.TransactionSource;
15285
+ export type TransactionSourceAdjustment =
15286
+ io.flow.v0.models.TransactionSourceAdjustment;
15287
+ export type TransactionSourceCapture =
15288
+ io.flow.v0.models.TransactionSourceCapture;
15289
+ export type TransactionSourceDispute =
15290
+ io.flow.v0.models.TransactionSourceDispute;
15291
+ export type TransactionSourceRefund = io.flow.v0.models.TransactionSourceRefund;
15292
+ export type TransactionSourceShippingLabel =
15293
+ io.flow.v0.models.TransactionSourceShippingLabel;
15266
15294
  export type TransitEstimate = io.flow.v0.models.TransitEstimate;
15267
15295
  export type TransitWindow = io.flow.v0.models.TransitWindow;
15268
15296
  export type UnharmonizedItemExportType =