@flowio/types 6.0.0 → 7.0.0
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 +647 -514
- package/dist/api.d.ts +48 -31
- package/package.json +2 -2
- package/src/api-internal.ts +863 -731
- package/src/api.ts +55 -38
package/src/api.ts
CHANGED
|
@@ -1110,6 +1110,7 @@ declare namespace io.flow.v0.enums {
|
|
|
1110
1110
|
| 'individual';
|
|
1111
1111
|
type ConsumerInvoiceDocumentType = 'pdf';
|
|
1112
1112
|
type ConsumerInvoiceStatus = 'pending' | 'available' | 'invalid';
|
|
1113
|
+
type CountryPickerSource = 'experience' | 'destination';
|
|
1113
1114
|
type CreditPaymentErrorCode =
|
|
1114
1115
|
| 'generic_error'
|
|
1115
1116
|
| 'invalid_order_number'
|
|
@@ -1382,10 +1383,6 @@ declare namespace io.flow.v0.enums {
|
|
|
1382
1383
|
| 'DEQ'
|
|
1383
1384
|
| 'DDU';
|
|
1384
1385
|
type InputSpecificationType = 'text' | 'number';
|
|
1385
|
-
type InstallmentPlanPaymentErrorCode =
|
|
1386
|
-
| 'invalid_authorization'
|
|
1387
|
-
| 'invalid_authorization_amount'
|
|
1388
|
-
| 'invalid_installment_plan';
|
|
1389
1386
|
type InventoryStatus = 'has_inventory' | 'no_inventory';
|
|
1390
1387
|
type InvitationErrorCode = 'expired' | 'invalid_email';
|
|
1391
1388
|
type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
|
|
@@ -1474,6 +1471,7 @@ declare namespace io.flow.v0.enums {
|
|
|
1474
1471
|
| 'discount'
|
|
1475
1472
|
| 'surcharges';
|
|
1476
1473
|
type OrderStatus = 'open' | 'submitted';
|
|
1474
|
+
type OrderStorage = 'do_not_persist' | 'persist';
|
|
1477
1475
|
type OrganizationPaymentMethodTag = 'deny';
|
|
1478
1476
|
type PaymentErrorCode =
|
|
1479
1477
|
| 'duplicate'
|
|
@@ -2897,6 +2895,15 @@ declare namespace io.flow.v0.models {
|
|
|
2897
2895
|
readonly language: string;
|
|
2898
2896
|
}
|
|
2899
2897
|
|
|
2898
|
+
interface CountryPicker {
|
|
2899
|
+
readonly id: string;
|
|
2900
|
+
readonly source: io.flow.v0.enums.CountryPickerSource;
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
interface CountryPickerForm {
|
|
2904
|
+
readonly source: io.flow.v0.enums.CountryPickerSource;
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2900
2907
|
interface CountryShippingPricing {
|
|
2901
2908
|
readonly pricing: io.flow.v0.models.ItemShippingPricing;
|
|
2902
2909
|
readonly countries: string[];
|
|
@@ -3439,6 +3446,11 @@ declare namespace io.flow.v0.models {
|
|
|
3439
3446
|
readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
|
|
3440
3447
|
}
|
|
3441
3448
|
|
|
3449
|
+
interface EcommercePlatformForm {
|
|
3450
|
+
readonly type: io.flow.v0.enums.EcommercePlatformType;
|
|
3451
|
+
readonly version?: string;
|
|
3452
|
+
}
|
|
3453
|
+
|
|
3442
3454
|
interface EcommercePlatformUpserted {
|
|
3443
3455
|
readonly event_id: string;
|
|
3444
3456
|
readonly timestamp: string;
|
|
@@ -3720,6 +3732,21 @@ declare namespace io.flow.v0.models {
|
|
|
3720
3732
|
readonly experience_price_book_mapping: io.flow.v0.models.ExperiencePriceBookMapping;
|
|
3721
3733
|
}
|
|
3722
3734
|
|
|
3735
|
+
interface ExperiencePriceConversion {
|
|
3736
|
+
readonly request: io.flow.v0.models.ExperiencePriceConversionRequest;
|
|
3737
|
+
readonly price: io.flow.v0.models.PriceWithBase;
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3740
|
+
interface ExperiencePriceConversionRequest {
|
|
3741
|
+
readonly value: number;
|
|
3742
|
+
readonly base: string;
|
|
3743
|
+
readonly local: string;
|
|
3744
|
+
}
|
|
3745
|
+
|
|
3746
|
+
interface ExperiencePriceConversionResponse {
|
|
3747
|
+
readonly prices: io.flow.v0.models.ExperiencePriceConversion[];
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3723
3750
|
interface ExperiencePriceFacetConversion {
|
|
3724
3751
|
readonly request: io.flow.v0.models.ExperiencePriceFacetConversionRequest;
|
|
3725
3752
|
readonly price: io.flow.v0.models.PriceWithBase;
|
|
@@ -4258,7 +4285,7 @@ declare namespace io.flow.v0.models {
|
|
|
4258
4285
|
|
|
4259
4286
|
interface IdentifierForm {
|
|
4260
4287
|
readonly primary?: boolean;
|
|
4261
|
-
readonly name
|
|
4288
|
+
readonly name: string;
|
|
4262
4289
|
}
|
|
4263
4290
|
|
|
4264
4291
|
interface Image {
|
|
@@ -4374,23 +4401,6 @@ declare namespace io.flow.v0.models {
|
|
|
4374
4401
|
readonly limitations?: io.flow.v0.unions.InputSpecificationLimitation[];
|
|
4375
4402
|
}
|
|
4376
4403
|
|
|
4377
|
-
interface InstallmentPlanPaymentError {
|
|
4378
|
-
readonly code: io.flow.v0.enums.InstallmentPlanPaymentErrorCode;
|
|
4379
|
-
readonly messages: string[];
|
|
4380
|
-
readonly codes: io.flow.v0.enums.InstallmentPlanPaymentErrorCode[];
|
|
4381
|
-
}
|
|
4382
|
-
|
|
4383
|
-
interface InstallmentPlanPaymentForm {
|
|
4384
|
-
readonly installment_program_id: string;
|
|
4385
|
-
readonly authorization_key: string;
|
|
4386
|
-
}
|
|
4387
|
-
|
|
4388
|
-
interface InstallmentProgramSummary {
|
|
4389
|
-
readonly id: string;
|
|
4390
|
-
readonly name: string;
|
|
4391
|
-
readonly initial: io.flow.v0.models.Price;
|
|
4392
|
-
}
|
|
4393
|
-
|
|
4394
4404
|
interface InventoryBackorder {
|
|
4395
4405
|
readonly quantity: number;
|
|
4396
4406
|
}
|
|
@@ -5175,7 +5185,6 @@ declare namespace io.flow.v0.models {
|
|
|
5175
5185
|
readonly ip?: string;
|
|
5176
5186
|
readonly options?: io.flow.v0.enums.AuthorizationOption[];
|
|
5177
5187
|
readonly redirect_urls?: io.flow.v0.models.PostPaymentRedirectUrls;
|
|
5178
|
-
readonly installment_program_id?: string;
|
|
5179
5188
|
readonly browser_info?: io.flow.v0.models.BrowserInfo;
|
|
5180
5189
|
}
|
|
5181
5190
|
|
|
@@ -5487,6 +5496,7 @@ declare namespace io.flow.v0.models {
|
|
|
5487
5496
|
[key: string]: string;
|
|
5488
5497
|
};
|
|
5489
5498
|
readonly authorization_keys?: string[];
|
|
5499
|
+
readonly options?: io.flow.v0.models.OrderOptions;
|
|
5490
5500
|
}
|
|
5491
5501
|
|
|
5492
5502
|
interface OrderFraudStatus {
|
|
@@ -5600,6 +5610,10 @@ declare namespace io.flow.v0.models {
|
|
|
5600
5610
|
readonly number: string;
|
|
5601
5611
|
}
|
|
5602
5612
|
|
|
5613
|
+
interface OrderOptions {
|
|
5614
|
+
readonly storage: io.flow.v0.enums.OrderStorage;
|
|
5615
|
+
}
|
|
5616
|
+
|
|
5603
5617
|
interface OrderPayment {
|
|
5604
5618
|
readonly id: string;
|
|
5605
5619
|
readonly type: io.flow.v0.enums.OrderPaymentType;
|
|
@@ -5675,6 +5689,7 @@ declare namespace io.flow.v0.models {
|
|
|
5675
5689
|
[key: string]: string;
|
|
5676
5690
|
};
|
|
5677
5691
|
readonly authorization_keys?: string[];
|
|
5692
|
+
readonly options?: io.flow.v0.models.OrderOptions;
|
|
5678
5693
|
}
|
|
5679
5694
|
|
|
5680
5695
|
interface OrderReference {
|
|
@@ -5737,13 +5752,9 @@ declare namespace io.flow.v0.models {
|
|
|
5737
5752
|
readonly adjustment?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
5738
5753
|
readonly total: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
5739
5754
|
readonly lines: io.flow.v0.models.OrderSummaryLineItem[];
|
|
5740
|
-
readonly identifiers?:
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
interface OrderSummaryIdentifier {
|
|
5744
|
-
readonly name: string;
|
|
5745
|
-
readonly identifier: string;
|
|
5746
|
-
readonly primary: boolean;
|
|
5755
|
+
readonly identifiers?: {
|
|
5756
|
+
[key: string]: string;
|
|
5757
|
+
};
|
|
5747
5758
|
}
|
|
5748
5759
|
|
|
5749
5760
|
interface OrderSummaryImage {
|
|
@@ -6164,7 +6175,9 @@ declare namespace io.flow.v0.models {
|
|
|
6164
6175
|
readonly display_position: number;
|
|
6165
6176
|
readonly content?: io.flow.v0.models.PaymentMethodRuleContent[];
|
|
6166
6177
|
readonly issuers?: io.flow.v0.models.PaymentMethodIssuer[];
|
|
6167
|
-
readonly programs
|
|
6178
|
+
readonly programs?: {
|
|
6179
|
+
[key: string]: string;
|
|
6180
|
+
}[];
|
|
6168
6181
|
readonly q?: io.flow.v0.models.Query;
|
|
6169
6182
|
}
|
|
6170
6183
|
|
|
@@ -6678,13 +6691,13 @@ declare namespace io.flow.v0.models {
|
|
|
6678
6691
|
|
|
6679
6692
|
interface Ratecard {
|
|
6680
6693
|
readonly id: string;
|
|
6694
|
+
readonly number: string;
|
|
6681
6695
|
readonly direction: io.flow.v0.enums.Direction;
|
|
6682
6696
|
readonly effective_at: string;
|
|
6683
6697
|
readonly origination_zones: io.flow.v0.models.Zone[];
|
|
6684
6698
|
readonly service: io.flow.v0.models.RatecardServiceSummary;
|
|
6685
|
-
readonly number?: string;
|
|
6686
6699
|
readonly published_at?: string;
|
|
6687
|
-
readonly ratecard_owner
|
|
6700
|
+
readonly ratecard_owner: io.flow.v0.enums.RatecardOwner;
|
|
6688
6701
|
}
|
|
6689
6702
|
|
|
6690
6703
|
interface RatecardCarrierSummary {
|
|
@@ -10022,6 +10035,9 @@ export type Contact = io.flow.v0.models.Contact;
|
|
|
10022
10035
|
export type Country = io.flow.v0.models.Country;
|
|
10023
10036
|
export type CountryAvailability = io.flow.v0.models.CountryAvailability;
|
|
10024
10037
|
export type CountryDefaults = io.flow.v0.models.CountryDefaults;
|
|
10038
|
+
export type CountryPicker = io.flow.v0.models.CountryPicker;
|
|
10039
|
+
export type CountryPickerForm = io.flow.v0.models.CountryPickerForm;
|
|
10040
|
+
export type CountryPickerSource = io.flow.v0.enums.CountryPickerSource;
|
|
10025
10041
|
export type CountryShippingPricing = io.flow.v0.models.CountryShippingPricing;
|
|
10026
10042
|
export type CreditMemo = io.flow.v0.models.CreditMemo;
|
|
10027
10043
|
export type CreditMemoDeleted = io.flow.v0.models.CreditMemoDeleted;
|
|
@@ -10116,6 +10132,7 @@ export type Duration = io.flow.v0.models.Duration;
|
|
|
10116
10132
|
export type Duty = io.flow.v0.models.Duty;
|
|
10117
10133
|
export type EcommercePlatform = io.flow.v0.models.EcommercePlatform;
|
|
10118
10134
|
export type EcommercePlatformDeleted = io.flow.v0.models.EcommercePlatformDeleted;
|
|
10135
|
+
export type EcommercePlatformForm = io.flow.v0.models.EcommercePlatformForm;
|
|
10119
10136
|
export type EcommercePlatformType = io.flow.v0.enums.EcommercePlatformType;
|
|
10120
10137
|
export type EcommercePlatformUpserted = io.flow.v0.models.EcommercePlatformUpserted;
|
|
10121
10138
|
export type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
|
|
@@ -10177,6 +10194,9 @@ export type ExperiencePriceBookMappingDeleted = io.flow.v0.models.ExperiencePric
|
|
|
10177
10194
|
export type ExperiencePriceBookMappingForm = io.flow.v0.models.ExperiencePriceBookMappingForm;
|
|
10178
10195
|
export type ExperiencePriceBookMappingPutForm = io.flow.v0.models.ExperiencePriceBookMappingPutForm;
|
|
10179
10196
|
export type ExperiencePriceBookMappingUpserted = io.flow.v0.models.ExperiencePriceBookMappingUpserted;
|
|
10197
|
+
export type ExperiencePriceConversion = io.flow.v0.models.ExperiencePriceConversion;
|
|
10198
|
+
export type ExperiencePriceConversionRequest = io.flow.v0.models.ExperiencePriceConversionRequest;
|
|
10199
|
+
export type ExperiencePriceConversionResponse = io.flow.v0.models.ExperiencePriceConversionResponse;
|
|
10180
10200
|
export type ExperiencePriceFacetConversion = io.flow.v0.models.ExperiencePriceFacetConversion;
|
|
10181
10201
|
export type ExperiencePriceFacetConversionRequest = io.flow.v0.models.ExperiencePriceFacetConversionRequest;
|
|
10182
10202
|
export type ExperiencePriceFacetConversionResponse = io.flow.v0.models.ExperiencePriceFacetConversionResponse;
|
|
@@ -10305,10 +10325,6 @@ export type InputSpecificationLimitation = io.flow.v0.unions.InputSpecificationL
|
|
|
10305
10325
|
export type InputSpecificationLimitationMax = io.flow.v0.models.InputSpecificationLimitationMax;
|
|
10306
10326
|
export type InputSpecificationLimitations = io.flow.v0.models.InputSpecificationLimitations;
|
|
10307
10327
|
export type InputSpecificationType = io.flow.v0.enums.InputSpecificationType;
|
|
10308
|
-
export type InstallmentPlanPaymentError = io.flow.v0.models.InstallmentPlanPaymentError;
|
|
10309
|
-
export type InstallmentPlanPaymentErrorCode = io.flow.v0.enums.InstallmentPlanPaymentErrorCode;
|
|
10310
|
-
export type InstallmentPlanPaymentForm = io.flow.v0.models.InstallmentPlanPaymentForm;
|
|
10311
|
-
export type InstallmentProgramSummary = io.flow.v0.models.InstallmentProgramSummary;
|
|
10312
10328
|
export type InventoryBackorder = io.flow.v0.models.InventoryBackorder;
|
|
10313
10329
|
export type InventoryCenterReference = io.flow.v0.models.InventoryCenterReference;
|
|
10314
10330
|
export type InventoryCheckResponse = io.flow.v0.models.InventoryCheckResponse;
|
|
@@ -10488,6 +10504,7 @@ export type OrderNumberGeneratorHexadecimal = io.flow.v0.models.OrderNumberGener
|
|
|
10488
10504
|
export type OrderNumberGeneratorPrefixSuffix = io.flow.v0.models.OrderNumberGeneratorPrefixSuffix;
|
|
10489
10505
|
export type OrderNumberGeneratorUuid = io.flow.v0.models.OrderNumberGeneratorUuid;
|
|
10490
10506
|
export type OrderNumberReference = io.flow.v0.models.OrderNumberReference;
|
|
10507
|
+
export type OrderOptions = io.flow.v0.models.OrderOptions;
|
|
10491
10508
|
export type OrderPayment = io.flow.v0.models.OrderPayment;
|
|
10492
10509
|
export type OrderPaymentType = io.flow.v0.enums.OrderPaymentType;
|
|
10493
10510
|
export type OrderPlaced = io.flow.v0.models.OrderPlaced;
|
|
@@ -10509,10 +10526,10 @@ export type OrderServiceChangeForm = io.flow.v0.models.OrderServiceChangeForm;
|
|
|
10509
10526
|
export type OrderServiceChangeRequest = io.flow.v0.models.OrderServiceChangeRequest;
|
|
10510
10527
|
export type OrderServiceChangeRequestData = io.flow.v0.models.OrderServiceChangeRequestData;
|
|
10511
10528
|
export type OrderStatus = io.flow.v0.enums.OrderStatus;
|
|
10529
|
+
export type OrderStorage = io.flow.v0.enums.OrderStorage;
|
|
10512
10530
|
export type OrderSubmissionForm = io.flow.v0.models.OrderSubmissionForm;
|
|
10513
10531
|
export type OrderSubmissionIdentifierForm = io.flow.v0.models.OrderSubmissionIdentifierForm;
|
|
10514
10532
|
export type OrderSummary = io.flow.v0.models.OrderSummary;
|
|
10515
|
-
export type OrderSummaryIdentifier = io.flow.v0.models.OrderSummaryIdentifier;
|
|
10516
10533
|
export type OrderSummaryImage = io.flow.v0.models.OrderSummaryImage;
|
|
10517
10534
|
export type OrderSummaryItem = io.flow.v0.models.OrderSummaryItem;
|
|
10518
10535
|
export type OrderSummaryLevy = io.flow.v0.models.OrderSummaryLevy;
|