@flowio/types 2.0.0 → 4.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 +390 -207
- package/dist/api.d.ts +64 -3
- package/package.json +3 -4
- package/src/api-internal.ts +475 -233
- package/src/api.ts +72 -3
- package/LICENSE +0 -21
package/dist/api.d.ts
CHANGED
|
@@ -880,6 +880,7 @@ declare namespace io.flow.v0.enums {
|
|
|
880
880
|
type FulfillmentMethodType = 'fulfillment_method';
|
|
881
881
|
type FulfillmentMethodValue = 'digital' | 'physical';
|
|
882
882
|
type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
|
|
883
|
+
type GoodsSupply = 'export' | 'intra_community' | 'local';
|
|
883
884
|
type HolidayCalendar = 'us_bank_holidays' | 'jewish_holidays';
|
|
884
885
|
type ImageTag = 'thumbnail' | 'checkout';
|
|
885
886
|
type ImportType = 'catalog_items' | 'customs_descriptions' | 'customs_description_tariffs' | 'experiences_with_settings' | 'harmonization_codes' | 'item_form_overlays' | 'price_book_items' | 'price_book_items_query' | 'ratecard_lanes' | 'order_service_changes';
|
|
@@ -1820,6 +1821,7 @@ declare namespace io.flow.v0.models {
|
|
|
1820
1821
|
interface CenterSummary {
|
|
1821
1822
|
readonly id: string;
|
|
1822
1823
|
readonly key: string;
|
|
1824
|
+
readonly address?: io.flow.v0.models.ShippingAddress;
|
|
1823
1825
|
}
|
|
1824
1826
|
interface CenterUpserted {
|
|
1825
1827
|
readonly event_id: string;
|
|
@@ -1911,10 +1913,12 @@ declare namespace io.flow.v0.models {
|
|
|
1911
1913
|
interface CheckoutUrls {
|
|
1912
1914
|
readonly continue_shopping?: string;
|
|
1913
1915
|
readonly confirmation?: string;
|
|
1916
|
+
readonly invalid_checkout?: string;
|
|
1914
1917
|
}
|
|
1915
1918
|
interface CheckoutUrlsForm {
|
|
1916
1919
|
readonly continue_shopping?: string;
|
|
1917
1920
|
readonly confirmation?: string;
|
|
1921
|
+
readonly invalid_checkout?: string;
|
|
1918
1922
|
}
|
|
1919
1923
|
interface Cleartext {
|
|
1920
1924
|
readonly value: string;
|
|
@@ -2305,7 +2309,6 @@ declare namespace io.flow.v0.models {
|
|
|
2305
2309
|
[key: string]: string;
|
|
2306
2310
|
};
|
|
2307
2311
|
readonly center?: string;
|
|
2308
|
-
readonly discount?: io.flow.v0.models.MoneyWithOptionalBase;
|
|
2309
2312
|
readonly line_number?: number;
|
|
2310
2313
|
}
|
|
2311
2314
|
interface DeliveryOption {
|
|
@@ -3056,6 +3059,8 @@ declare namespace io.flow.v0.models {
|
|
|
3056
3059
|
interface HarmonizedItemForm {
|
|
3057
3060
|
readonly name: string;
|
|
3058
3061
|
readonly number: string;
|
|
3062
|
+
readonly currency: string;
|
|
3063
|
+
readonly price: number;
|
|
3059
3064
|
readonly categories?: string[];
|
|
3060
3065
|
readonly description?: string;
|
|
3061
3066
|
readonly attributes?: {
|
|
@@ -3064,6 +3069,8 @@ declare namespace io.flow.v0.models {
|
|
|
3064
3069
|
}
|
|
3065
3070
|
interface HarmonizedItemPutForm {
|
|
3066
3071
|
readonly name: string;
|
|
3072
|
+
readonly currency: string;
|
|
3073
|
+
readonly price: number;
|
|
3067
3074
|
readonly categories?: string[];
|
|
3068
3075
|
readonly description?: string;
|
|
3069
3076
|
readonly attributes?: {
|
|
@@ -4450,6 +4457,48 @@ declare namespace io.flow.v0.models {
|
|
|
4450
4457
|
readonly identifier: string;
|
|
4451
4458
|
readonly primary?: boolean;
|
|
4452
4459
|
}
|
|
4460
|
+
interface OrderSummary {
|
|
4461
|
+
readonly subtotal: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4462
|
+
readonly shipping: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4463
|
+
readonly tax?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4464
|
+
readonly duty?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4465
|
+
readonly insurance?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4466
|
+
readonly discount?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4467
|
+
readonly surcharges?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4468
|
+
readonly total: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4469
|
+
readonly lines: io.flow.v0.models.OrderSummaryLineItem[];
|
|
4470
|
+
}
|
|
4471
|
+
interface OrderSummaryImage {
|
|
4472
|
+
readonly url: string;
|
|
4473
|
+
}
|
|
4474
|
+
interface OrderSummaryItem {
|
|
4475
|
+
readonly number: string;
|
|
4476
|
+
readonly name: string;
|
|
4477
|
+
readonly description?: string;
|
|
4478
|
+
readonly attributes: io.flow.v0.models.CheckoutItemContentAttribute[];
|
|
4479
|
+
readonly image?: io.flow.v0.models.OrderSummaryImage;
|
|
4480
|
+
readonly price: io.flow.v0.models.Price;
|
|
4481
|
+
readonly discount?: io.flow.v0.models.Price;
|
|
4482
|
+
readonly tax?: io.flow.v0.models.OrderSummaryLevy;
|
|
4483
|
+
readonly duty?: io.flow.v0.models.OrderSummaryLevy;
|
|
4484
|
+
}
|
|
4485
|
+
interface OrderSummaryLevy {
|
|
4486
|
+
readonly rate: number;
|
|
4487
|
+
readonly value: io.flow.v0.models.Price;
|
|
4488
|
+
}
|
|
4489
|
+
interface OrderSummaryLineItem {
|
|
4490
|
+
readonly item: io.flow.v0.models.OrderSummaryItem;
|
|
4491
|
+
readonly quantity: number;
|
|
4492
|
+
readonly discount?: io.flow.v0.models.Price;
|
|
4493
|
+
readonly tax?: io.flow.v0.models.OrderSummaryLevy;
|
|
4494
|
+
readonly duty?: io.flow.v0.models.OrderSummaryLevy;
|
|
4495
|
+
readonly total: io.flow.v0.models.Price;
|
|
4496
|
+
}
|
|
4497
|
+
interface OrderSummaryPriceDetail {
|
|
4498
|
+
readonly price: io.flow.v0.models.Price;
|
|
4499
|
+
readonly name?: string;
|
|
4500
|
+
readonly rate?: number;
|
|
4501
|
+
}
|
|
4453
4502
|
interface OrderUpserted {
|
|
4454
4503
|
readonly event_id: string;
|
|
4455
4504
|
readonly timestamp: string;
|
|
@@ -4874,6 +4923,7 @@ declare namespace io.flow.v0.models {
|
|
|
4874
4923
|
readonly special_services?: io.flow.v0.enums.PhysicalDeliverySpecialSerivce[];
|
|
4875
4924
|
readonly prices?: io.flow.v0.models.OrderPriceDetail[];
|
|
4876
4925
|
readonly total?: io.flow.v0.models.LocalizedTotal;
|
|
4926
|
+
readonly goods_supply?: io.flow.v0.enums.GoodsSupply;
|
|
4877
4927
|
}
|
|
4878
4928
|
interface PostPaymentRedirectUrls {
|
|
4879
4929
|
readonly success: string;
|
|
@@ -5159,8 +5209,6 @@ declare namespace io.flow.v0.models {
|
|
|
5159
5209
|
[key: string]: string;
|
|
5160
5210
|
};
|
|
5161
5211
|
readonly center?: string;
|
|
5162
|
-
readonly discount?: io.flow.v0.models.Money;
|
|
5163
|
-
readonly discounts?: io.flow.v0.models.DiscountsForm;
|
|
5164
5212
|
}
|
|
5165
5213
|
interface QuoteSummary {
|
|
5166
5214
|
readonly id: string;
|
|
@@ -5560,6 +5608,9 @@ declare namespace io.flow.v0.models {
|
|
|
5560
5608
|
interface RepeatDaily {
|
|
5561
5609
|
readonly interval: number;
|
|
5562
5610
|
}
|
|
5611
|
+
interface RepeatHourly {
|
|
5612
|
+
readonly interval: number;
|
|
5613
|
+
}
|
|
5563
5614
|
interface RepeatMonthly {
|
|
5564
5615
|
readonly interval: number;
|
|
5565
5616
|
readonly days: number[];
|
|
@@ -7617,6 +7668,8 @@ declare namespace io.flow.v0.unions {
|
|
|
7617
7668
|
discriminator: 'remote_area_ratecard_fee';
|
|
7618
7669
|
} & io.flow.v0.models.RemoteAreaRatecardFee;
|
|
7619
7670
|
type RepeatSchedule = {
|
|
7671
|
+
discriminator: 'repeat_hourly';
|
|
7672
|
+
} & io.flow.v0.models.RepeatHourly | {
|
|
7620
7673
|
discriminator: 'repeat_daily';
|
|
7621
7674
|
} & io.flow.v0.models.RepeatDaily | {
|
|
7622
7675
|
discriminator: 'repeat_weekly';
|
|
@@ -8118,6 +8171,7 @@ export declare type GenericError = io.flow.v0.models.GenericError;
|
|
|
8118
8171
|
export declare type GenericErrorCode = io.flow.v0.enums.GenericErrorCode;
|
|
8119
8172
|
export declare type GenericReservationError = io.flow.v0.models.GenericReservationError;
|
|
8120
8173
|
export declare type GeoForm = io.flow.v0.models.GeoForm;
|
|
8174
|
+
export declare type GoodsSupply = io.flow.v0.enums.GoodsSupply;
|
|
8121
8175
|
export declare type GooglePayAuthorizationPayload = io.flow.v0.models.GooglePayAuthorizationPayload;
|
|
8122
8176
|
export declare type HarmonizationDocument = io.flow.v0.models.HarmonizationDocument;
|
|
8123
8177
|
export declare type HarmonizationHs10ExportType = io.flow.v0.models.HarmonizationHs10ExportType;
|
|
@@ -8379,6 +8433,12 @@ export declare type OrderServiceChangeRequestData = io.flow.v0.models.OrderServi
|
|
|
8379
8433
|
export declare type OrderStatus = io.flow.v0.enums.OrderStatus;
|
|
8380
8434
|
export declare type OrderSubmissionForm = io.flow.v0.models.OrderSubmissionForm;
|
|
8381
8435
|
export declare type OrderSubmissionIdentifierForm = io.flow.v0.models.OrderSubmissionIdentifierForm;
|
|
8436
|
+
export declare type OrderSummary = io.flow.v0.models.OrderSummary;
|
|
8437
|
+
export declare type OrderSummaryImage = io.flow.v0.models.OrderSummaryImage;
|
|
8438
|
+
export declare type OrderSummaryItem = io.flow.v0.models.OrderSummaryItem;
|
|
8439
|
+
export declare type OrderSummaryLevy = io.flow.v0.models.OrderSummaryLevy;
|
|
8440
|
+
export declare type OrderSummaryLineItem = io.flow.v0.models.OrderSummaryLineItem;
|
|
8441
|
+
export declare type OrderSummaryPriceDetail = io.flow.v0.models.OrderSummaryPriceDetail;
|
|
8382
8442
|
export declare type OrderUpserted = io.flow.v0.models.OrderUpserted;
|
|
8383
8443
|
export declare type OrderUpsertedV2 = io.flow.v0.models.OrderUpsertedV2;
|
|
8384
8444
|
export declare type OrderVersion = io.flow.v0.models.OrderVersion;
|
|
@@ -8592,6 +8652,7 @@ export declare type RegionSettingForm = io.flow.v0.models.RegionSettingForm;
|
|
|
8592
8652
|
export declare type RemoteAreaRatecardFee = io.flow.v0.models.RemoteAreaRatecardFee;
|
|
8593
8653
|
export declare type RemoteAreaServiceFee = io.flow.v0.models.RemoteAreaServiceFee;
|
|
8594
8654
|
export declare type RepeatDaily = io.flow.v0.models.RepeatDaily;
|
|
8655
|
+
export declare type RepeatHourly = io.flow.v0.models.RepeatHourly;
|
|
8595
8656
|
export declare type RepeatMonthly = io.flow.v0.models.RepeatMonthly;
|
|
8596
8657
|
export declare type RepeatSchedule = io.flow.v0.unions.RepeatSchedule;
|
|
8597
8658
|
export declare type RepeatWeekly = io.flow.v0.models.RepeatWeekly;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.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",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
],
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"prettier": "^1.18.2",
|
|
28
|
-
"typescript": "^3.
|
|
29
|
-
}
|
|
30
|
-
"gitHead": "01dc3b32b4cc3fead046853b473a6f58d42e6dd5"
|
|
28
|
+
"typescript": "^3.6.3"
|
|
29
|
+
}
|
|
31
30
|
}
|