@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/dist/api.d.ts
CHANGED
|
@@ -845,6 +845,7 @@ declare namespace io.flow.v0.enums {
|
|
|
845
845
|
type ConsumerInvoiceCustomerType = 'business_eu_verified' | 'business_non_verified' | 'individual';
|
|
846
846
|
type ConsumerInvoiceDocumentType = 'pdf';
|
|
847
847
|
type ConsumerInvoiceStatus = 'pending' | 'available' | 'invalid';
|
|
848
|
+
type CountryPickerSource = 'experience' | 'destination';
|
|
848
849
|
type CreditPaymentErrorCode = 'generic_error' | 'invalid_order_number' | 'invalid_currency' | 'invalid_description' | 'duplicate' | 'amount_must_be_positive' | 'amount_exceeds_balance' | 'insufficient_amount';
|
|
849
850
|
type CurrencyLabelFormatter = 'strip_trailing_zeros';
|
|
850
851
|
type CurrencySymbolFormat = 'narrow' | 'primary';
|
|
@@ -887,7 +888,6 @@ declare namespace io.flow.v0.enums {
|
|
|
887
888
|
type IncludedLevyKey = 'duty' | 'vat' | 'vat_and_duty' | 'none';
|
|
888
889
|
type Incoterm = 'EXW' | 'FCA' | 'CPT' | 'CIP' | 'DAT' | 'DAP' | 'DDP' | 'FAS' | 'FOB' | 'CFR' | 'CIF' | 'DAF' | 'DES' | 'DEQ' | 'DDU';
|
|
889
890
|
type InputSpecificationType = 'text' | 'number';
|
|
890
|
-
type InstallmentPlanPaymentErrorCode = 'invalid_authorization' | 'invalid_authorization_amount' | 'invalid_installment_plan';
|
|
891
891
|
type InventoryStatus = 'has_inventory' | 'no_inventory';
|
|
892
892
|
type InvitationErrorCode = 'expired' | 'invalid_email';
|
|
893
893
|
type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
|
|
@@ -910,6 +910,7 @@ declare namespace io.flow.v0.enums {
|
|
|
910
910
|
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' | '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';
|
|
911
911
|
type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges';
|
|
912
912
|
type OrderStatus = 'open' | 'submitted';
|
|
913
|
+
type OrderStorage = 'do_not_persist' | 'persist';
|
|
913
914
|
type OrganizationPaymentMethodTag = 'deny';
|
|
914
915
|
type PaymentErrorCode = 'duplicate' | 'invalid_amount' | 'invalid_currency' | 'invalid_method' | 'invalid_order' | 'invalid_customer' | 'invalid_destination' | 'unknown';
|
|
915
916
|
type PaymentMethodRuleContentKey = 'description';
|
|
@@ -2068,6 +2069,13 @@ declare namespace io.flow.v0.models {
|
|
|
2068
2069
|
readonly currency: string;
|
|
2069
2070
|
readonly language: string;
|
|
2070
2071
|
}
|
|
2072
|
+
interface CountryPicker {
|
|
2073
|
+
readonly id: string;
|
|
2074
|
+
readonly source: io.flow.v0.enums.CountryPickerSource;
|
|
2075
|
+
}
|
|
2076
|
+
interface CountryPickerForm {
|
|
2077
|
+
readonly source: io.flow.v0.enums.CountryPickerSource;
|
|
2078
|
+
}
|
|
2071
2079
|
interface CountryShippingPricing {
|
|
2072
2080
|
readonly pricing: io.flow.v0.models.ItemShippingPricing;
|
|
2073
2081
|
readonly countries: string[];
|
|
@@ -2534,6 +2542,10 @@ declare namespace io.flow.v0.models {
|
|
|
2534
2542
|
readonly organization: string;
|
|
2535
2543
|
readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
|
|
2536
2544
|
}
|
|
2545
|
+
interface EcommercePlatformForm {
|
|
2546
|
+
readonly type: io.flow.v0.enums.EcommercePlatformType;
|
|
2547
|
+
readonly version?: string;
|
|
2548
|
+
}
|
|
2537
2549
|
interface EcommercePlatformUpserted {
|
|
2538
2550
|
readonly event_id: string;
|
|
2539
2551
|
readonly timestamp: string;
|
|
@@ -2771,6 +2783,18 @@ declare namespace io.flow.v0.models {
|
|
|
2771
2783
|
readonly organization: string;
|
|
2772
2784
|
readonly experience_price_book_mapping: io.flow.v0.models.ExperiencePriceBookMapping;
|
|
2773
2785
|
}
|
|
2786
|
+
interface ExperiencePriceConversion {
|
|
2787
|
+
readonly request: io.flow.v0.models.ExperiencePriceConversionRequest;
|
|
2788
|
+
readonly price: io.flow.v0.models.PriceWithBase;
|
|
2789
|
+
}
|
|
2790
|
+
interface ExperiencePriceConversionRequest {
|
|
2791
|
+
readonly value: number;
|
|
2792
|
+
readonly base: string;
|
|
2793
|
+
readonly local: string;
|
|
2794
|
+
}
|
|
2795
|
+
interface ExperiencePriceConversionResponse {
|
|
2796
|
+
readonly prices: io.flow.v0.models.ExperiencePriceConversion[];
|
|
2797
|
+
}
|
|
2774
2798
|
interface ExperiencePriceFacetConversion {
|
|
2775
2799
|
readonly request: io.flow.v0.models.ExperiencePriceFacetConversionRequest;
|
|
2776
2800
|
readonly price: io.flow.v0.models.PriceWithBase;
|
|
@@ -3227,7 +3251,7 @@ declare namespace io.flow.v0.models {
|
|
|
3227
3251
|
}
|
|
3228
3252
|
interface IdentifierForm {
|
|
3229
3253
|
readonly primary?: boolean;
|
|
3230
|
-
readonly name
|
|
3254
|
+
readonly name: string;
|
|
3231
3255
|
}
|
|
3232
3256
|
interface Image {
|
|
3233
3257
|
readonly url: string;
|
|
@@ -3324,20 +3348,6 @@ declare namespace io.flow.v0.models {
|
|
|
3324
3348
|
interface InputSpecificationLimitations {
|
|
3325
3349
|
readonly limitations?: io.flow.v0.unions.InputSpecificationLimitation[];
|
|
3326
3350
|
}
|
|
3327
|
-
interface InstallmentPlanPaymentError {
|
|
3328
|
-
readonly code: io.flow.v0.enums.InstallmentPlanPaymentErrorCode;
|
|
3329
|
-
readonly messages: string[];
|
|
3330
|
-
readonly codes: io.flow.v0.enums.InstallmentPlanPaymentErrorCode[];
|
|
3331
|
-
}
|
|
3332
|
-
interface InstallmentPlanPaymentForm {
|
|
3333
|
-
readonly installment_program_id: string;
|
|
3334
|
-
readonly authorization_key: string;
|
|
3335
|
-
}
|
|
3336
|
-
interface InstallmentProgramSummary {
|
|
3337
|
-
readonly id: string;
|
|
3338
|
-
readonly name: string;
|
|
3339
|
-
readonly initial: io.flow.v0.models.Price;
|
|
3340
|
-
}
|
|
3341
3351
|
interface InventoryBackorder {
|
|
3342
3352
|
readonly quantity: number;
|
|
3343
3353
|
}
|
|
@@ -4020,7 +4030,6 @@ declare namespace io.flow.v0.models {
|
|
|
4020
4030
|
readonly ip?: string;
|
|
4021
4031
|
readonly options?: io.flow.v0.enums.AuthorizationOption[];
|
|
4022
4032
|
readonly redirect_urls?: io.flow.v0.models.PostPaymentRedirectUrls;
|
|
4023
|
-
readonly installment_program_id?: string;
|
|
4024
4033
|
readonly browser_info?: io.flow.v0.models.BrowserInfo;
|
|
4025
4034
|
}
|
|
4026
4035
|
interface MerchantOfRecordEntity {
|
|
@@ -4295,6 +4304,7 @@ declare namespace io.flow.v0.models {
|
|
|
4295
4304
|
[key: string]: string;
|
|
4296
4305
|
};
|
|
4297
4306
|
readonly authorization_keys?: string[];
|
|
4307
|
+
readonly options?: io.flow.v0.models.OrderOptions;
|
|
4298
4308
|
}
|
|
4299
4309
|
interface OrderFraudStatus {
|
|
4300
4310
|
readonly order: io.flow.v0.models.OrderReference;
|
|
@@ -4390,6 +4400,9 @@ declare namespace io.flow.v0.models {
|
|
|
4390
4400
|
interface OrderNumberReference {
|
|
4391
4401
|
readonly number: string;
|
|
4392
4402
|
}
|
|
4403
|
+
interface OrderOptions {
|
|
4404
|
+
readonly storage: io.flow.v0.enums.OrderStorage;
|
|
4405
|
+
}
|
|
4393
4406
|
interface OrderPayment {
|
|
4394
4407
|
readonly id: string;
|
|
4395
4408
|
readonly type: io.flow.v0.enums.OrderPaymentType;
|
|
@@ -4458,6 +4471,7 @@ declare namespace io.flow.v0.models {
|
|
|
4458
4471
|
[key: string]: string;
|
|
4459
4472
|
};
|
|
4460
4473
|
readonly authorization_keys?: string[];
|
|
4474
|
+
readonly options?: io.flow.v0.models.OrderOptions;
|
|
4461
4475
|
}
|
|
4462
4476
|
interface OrderReference {
|
|
4463
4477
|
readonly id: string;
|
|
@@ -4510,12 +4524,9 @@ declare namespace io.flow.v0.models {
|
|
|
4510
4524
|
readonly adjustment?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4511
4525
|
readonly total: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4512
4526
|
readonly lines: io.flow.v0.models.OrderSummaryLineItem[];
|
|
4513
|
-
readonly identifiers?:
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
readonly name: string;
|
|
4517
|
-
readonly identifier: string;
|
|
4518
|
-
readonly primary: boolean;
|
|
4527
|
+
readonly identifiers?: {
|
|
4528
|
+
[key: string]: string;
|
|
4529
|
+
};
|
|
4519
4530
|
}
|
|
4520
4531
|
interface OrderSummaryImage {
|
|
4521
4532
|
readonly url: string;
|
|
@@ -4877,7 +4888,9 @@ declare namespace io.flow.v0.models {
|
|
|
4877
4888
|
readonly display_position: number;
|
|
4878
4889
|
readonly content?: io.flow.v0.models.PaymentMethodRuleContent[];
|
|
4879
4890
|
readonly issuers?: io.flow.v0.models.PaymentMethodIssuer[];
|
|
4880
|
-
readonly programs
|
|
4891
|
+
readonly programs?: {
|
|
4892
|
+
[key: string]: string;
|
|
4893
|
+
}[];
|
|
4881
4894
|
readonly q?: io.flow.v0.models.Query;
|
|
4882
4895
|
}
|
|
4883
4896
|
interface PaymentMethodRuleContent {
|
|
@@ -5315,13 +5328,13 @@ declare namespace io.flow.v0.models {
|
|
|
5315
5328
|
}
|
|
5316
5329
|
interface Ratecard {
|
|
5317
5330
|
readonly id: string;
|
|
5331
|
+
readonly number: string;
|
|
5318
5332
|
readonly direction: io.flow.v0.enums.Direction;
|
|
5319
5333
|
readonly effective_at: string;
|
|
5320
5334
|
readonly origination_zones: io.flow.v0.models.Zone[];
|
|
5321
5335
|
readonly service: io.flow.v0.models.RatecardServiceSummary;
|
|
5322
|
-
readonly number?: string;
|
|
5323
5336
|
readonly published_at?: string;
|
|
5324
|
-
readonly ratecard_owner
|
|
5337
|
+
readonly ratecard_owner: io.flow.v0.enums.RatecardOwner;
|
|
5325
5338
|
}
|
|
5326
5339
|
interface RatecardCarrierSummary {
|
|
5327
5340
|
readonly id: string;
|
|
@@ -8003,6 +8016,9 @@ export declare type Contact = io.flow.v0.models.Contact;
|
|
|
8003
8016
|
export declare type Country = io.flow.v0.models.Country;
|
|
8004
8017
|
export declare type CountryAvailability = io.flow.v0.models.CountryAvailability;
|
|
8005
8018
|
export declare type CountryDefaults = io.flow.v0.models.CountryDefaults;
|
|
8019
|
+
export declare type CountryPicker = io.flow.v0.models.CountryPicker;
|
|
8020
|
+
export declare type CountryPickerForm = io.flow.v0.models.CountryPickerForm;
|
|
8021
|
+
export declare type CountryPickerSource = io.flow.v0.enums.CountryPickerSource;
|
|
8006
8022
|
export declare type CountryShippingPricing = io.flow.v0.models.CountryShippingPricing;
|
|
8007
8023
|
export declare type CreditMemo = io.flow.v0.models.CreditMemo;
|
|
8008
8024
|
export declare type CreditMemoDeleted = io.flow.v0.models.CreditMemoDeleted;
|
|
@@ -8097,6 +8113,7 @@ export declare type Duration = io.flow.v0.models.Duration;
|
|
|
8097
8113
|
export declare type Duty = io.flow.v0.models.Duty;
|
|
8098
8114
|
export declare type EcommercePlatform = io.flow.v0.models.EcommercePlatform;
|
|
8099
8115
|
export declare type EcommercePlatformDeleted = io.flow.v0.models.EcommercePlatformDeleted;
|
|
8116
|
+
export declare type EcommercePlatformForm = io.flow.v0.models.EcommercePlatformForm;
|
|
8100
8117
|
export declare type EcommercePlatformType = io.flow.v0.enums.EcommercePlatformType;
|
|
8101
8118
|
export declare type EcommercePlatformUpserted = io.flow.v0.models.EcommercePlatformUpserted;
|
|
8102
8119
|
export declare type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
|
|
@@ -8158,6 +8175,9 @@ export declare type ExperiencePriceBookMappingDeleted = io.flow.v0.models.Experi
|
|
|
8158
8175
|
export declare type ExperiencePriceBookMappingForm = io.flow.v0.models.ExperiencePriceBookMappingForm;
|
|
8159
8176
|
export declare type ExperiencePriceBookMappingPutForm = io.flow.v0.models.ExperiencePriceBookMappingPutForm;
|
|
8160
8177
|
export declare type ExperiencePriceBookMappingUpserted = io.flow.v0.models.ExperiencePriceBookMappingUpserted;
|
|
8178
|
+
export declare type ExperiencePriceConversion = io.flow.v0.models.ExperiencePriceConversion;
|
|
8179
|
+
export declare type ExperiencePriceConversionRequest = io.flow.v0.models.ExperiencePriceConversionRequest;
|
|
8180
|
+
export declare type ExperiencePriceConversionResponse = io.flow.v0.models.ExperiencePriceConversionResponse;
|
|
8161
8181
|
export declare type ExperiencePriceFacetConversion = io.flow.v0.models.ExperiencePriceFacetConversion;
|
|
8162
8182
|
export declare type ExperiencePriceFacetConversionRequest = io.flow.v0.models.ExperiencePriceFacetConversionRequest;
|
|
8163
8183
|
export declare type ExperiencePriceFacetConversionResponse = io.flow.v0.models.ExperiencePriceFacetConversionResponse;
|
|
@@ -8286,10 +8306,6 @@ export declare type InputSpecificationLimitation = io.flow.v0.unions.InputSpecif
|
|
|
8286
8306
|
export declare type InputSpecificationLimitationMax = io.flow.v0.models.InputSpecificationLimitationMax;
|
|
8287
8307
|
export declare type InputSpecificationLimitations = io.flow.v0.models.InputSpecificationLimitations;
|
|
8288
8308
|
export declare type InputSpecificationType = io.flow.v0.enums.InputSpecificationType;
|
|
8289
|
-
export declare type InstallmentPlanPaymentError = io.flow.v0.models.InstallmentPlanPaymentError;
|
|
8290
|
-
export declare type InstallmentPlanPaymentErrorCode = io.flow.v0.enums.InstallmentPlanPaymentErrorCode;
|
|
8291
|
-
export declare type InstallmentPlanPaymentForm = io.flow.v0.models.InstallmentPlanPaymentForm;
|
|
8292
|
-
export declare type InstallmentProgramSummary = io.flow.v0.models.InstallmentProgramSummary;
|
|
8293
8309
|
export declare type InventoryBackorder = io.flow.v0.models.InventoryBackorder;
|
|
8294
8310
|
export declare type InventoryCenterReference = io.flow.v0.models.InventoryCenterReference;
|
|
8295
8311
|
export declare type InventoryCheckResponse = io.flow.v0.models.InventoryCheckResponse;
|
|
@@ -8469,6 +8485,7 @@ export declare type OrderNumberGeneratorHexadecimal = io.flow.v0.models.OrderNum
|
|
|
8469
8485
|
export declare type OrderNumberGeneratorPrefixSuffix = io.flow.v0.models.OrderNumberGeneratorPrefixSuffix;
|
|
8470
8486
|
export declare type OrderNumberGeneratorUuid = io.flow.v0.models.OrderNumberGeneratorUuid;
|
|
8471
8487
|
export declare type OrderNumberReference = io.flow.v0.models.OrderNumberReference;
|
|
8488
|
+
export declare type OrderOptions = io.flow.v0.models.OrderOptions;
|
|
8472
8489
|
export declare type OrderPayment = io.flow.v0.models.OrderPayment;
|
|
8473
8490
|
export declare type OrderPaymentType = io.flow.v0.enums.OrderPaymentType;
|
|
8474
8491
|
export declare type OrderPlaced = io.flow.v0.models.OrderPlaced;
|
|
@@ -8490,10 +8507,10 @@ export declare type OrderServiceChangeForm = io.flow.v0.models.OrderServiceChang
|
|
|
8490
8507
|
export declare type OrderServiceChangeRequest = io.flow.v0.models.OrderServiceChangeRequest;
|
|
8491
8508
|
export declare type OrderServiceChangeRequestData = io.flow.v0.models.OrderServiceChangeRequestData;
|
|
8492
8509
|
export declare type OrderStatus = io.flow.v0.enums.OrderStatus;
|
|
8510
|
+
export declare type OrderStorage = io.flow.v0.enums.OrderStorage;
|
|
8493
8511
|
export declare type OrderSubmissionForm = io.flow.v0.models.OrderSubmissionForm;
|
|
8494
8512
|
export declare type OrderSubmissionIdentifierForm = io.flow.v0.models.OrderSubmissionIdentifierForm;
|
|
8495
8513
|
export declare type OrderSummary = io.flow.v0.models.OrderSummary;
|
|
8496
|
-
export declare type OrderSummaryIdentifier = io.flow.v0.models.OrderSummaryIdentifier;
|
|
8497
8514
|
export declare type OrderSummaryImage = io.flow.v0.models.OrderSummaryImage;
|
|
8498
8515
|
export declare type OrderSummaryItem = io.flow.v0.models.OrderSummaryItem;
|
|
8499
8516
|
export declare type OrderSummaryLevy = io.flow.v0.models.OrderSummaryLevy;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
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",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"prettier": "^1.18.2",
|
|
28
28
|
"typescript": "^3.6.3"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "dae9f844c34ce21efaa053d516550f36b97d11ac"
|
|
31
31
|
}
|