@flowio/types 0.0.3 → 0.0.5
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/LICENSE +21 -0
- package/dist/api-internal.d.ts +22 -1
- package/dist/api.d.ts +14 -1
- package/package.json +3 -2
- package/src/api-internal.ts +25 -1
- package/src/api.ts +18 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Flow Commerce
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/api-internal.d.ts
CHANGED
|
@@ -5668,6 +5668,11 @@ declare namespace io.flow.experience.internal.v0.models {
|
|
|
5668
5668
|
readonly input_specification?: io.flow.common.v0.models.InputFormSpecification;
|
|
5669
5669
|
readonly cards: io.flow.experience.internal.v0.models.GiftCard[];
|
|
5670
5670
|
}
|
|
5671
|
+
interface InternalOrder {
|
|
5672
|
+
readonly order: io.flow.experience.v0.models.Order;
|
|
5673
|
+
readonly session?: unknown;
|
|
5674
|
+
readonly rates: io.flow.currency.internal.v0.models.RateDataV3[];
|
|
5675
|
+
}
|
|
5671
5676
|
interface ItemFilterResponse {
|
|
5672
5677
|
readonly filter: string;
|
|
5673
5678
|
readonly responses: io.flow.experience.internal.v0.models.ItemFilterValueResponse[];
|
|
@@ -10674,7 +10679,9 @@ declare namespace io.flow.internal.v0.models {
|
|
|
10674
10679
|
readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
|
|
10675
10680
|
readonly customer?: io.flow.customer.v0.models.Customer;
|
|
10676
10681
|
readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
|
|
10677
|
-
readonly
|
|
10682
|
+
readonly gift_card_program?: io.flow.experience.internal.v0.models.GiftCardProgram;
|
|
10683
|
+
readonly loyalty_program?: io.flow.experience.internal.v0.models.LoyaltyProgram;
|
|
10684
|
+
readonly payment: io.flow.internal.v0.models.CheckoutPayment;
|
|
10678
10685
|
}
|
|
10679
10686
|
interface CheckoutBehavior {
|
|
10680
10687
|
readonly shipping_address: io.flow.internal.v0.models.CheckoutBehaviorShippingAddress;
|
|
@@ -10800,10 +10807,21 @@ declare namespace io.flow.internal.v0.models {
|
|
|
10800
10807
|
readonly order_number: string;
|
|
10801
10808
|
readonly feature_keys?: string[];
|
|
10802
10809
|
}
|
|
10810
|
+
interface CheckoutPayment {
|
|
10811
|
+
readonly sources: unknown[];
|
|
10812
|
+
readonly public_key: io.flow.payment.v0.models.PublicKey;
|
|
10813
|
+
readonly method_types: io.flow.reference.v0.enums.PaymentMethodType[];
|
|
10814
|
+
readonly method_rules: io.flow.experience.v0.models.PaymentMethodRule[];
|
|
10815
|
+
}
|
|
10803
10816
|
interface CheckoutPaymentContent {
|
|
10804
10817
|
readonly default: io.flow.internal.v0.models.ApmContent;
|
|
10805
10818
|
readonly paypal?: io.flow.internal.v0.models.ApmContent;
|
|
10806
10819
|
}
|
|
10820
|
+
interface CheckoutReferenceForm {
|
|
10821
|
+
readonly order_number: string;
|
|
10822
|
+
readonly order_form: io.flow.experience.v0.models.OrderPutForm;
|
|
10823
|
+
readonly session_id: string;
|
|
10824
|
+
}
|
|
10807
10825
|
interface CheckoutSettings {
|
|
10808
10826
|
readonly session_persistence_timeout?: io.flow.common.v0.models.Duration;
|
|
10809
10827
|
readonly session_persistence_attribute_keys?: string[];
|
|
@@ -12516,6 +12534,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
12516
12534
|
readonly country: string;
|
|
12517
12535
|
readonly currency: string;
|
|
12518
12536
|
readonly language: string;
|
|
12537
|
+
readonly tsv_download_url: string;
|
|
12519
12538
|
}
|
|
12520
12539
|
interface MarketingGatewayFilterSummary {
|
|
12521
12540
|
readonly id: string;
|
|
@@ -14690,8 +14709,10 @@ export declare type CheckoutForm = io.flow.internal.v0.unions.CheckoutForm;
|
|
|
14690
14709
|
export declare type CheckoutMarketingContent = io.flow.internal.v0.models.CheckoutMarketingContent;
|
|
14691
14710
|
export declare type CheckoutOrderForm = io.flow.internal.v0.models.CheckoutOrderForm;
|
|
14692
14711
|
export declare type CheckoutOrderNumberForm = io.flow.internal.v0.models.CheckoutOrderNumberForm;
|
|
14712
|
+
export declare type CheckoutPayment = io.flow.internal.v0.models.CheckoutPayment;
|
|
14693
14713
|
export declare type CheckoutPaymentContent = io.flow.internal.v0.models.CheckoutPaymentContent;
|
|
14694
14714
|
export declare type CheckoutPromptBehavior = io.flow.internal.v0.enums.CheckoutPromptBehavior;
|
|
14715
|
+
export declare type CheckoutReferenceForm = io.flow.internal.v0.models.CheckoutReferenceForm;
|
|
14695
14716
|
export declare type CheckoutSettings = io.flow.internal.v0.models.CheckoutSettings;
|
|
14696
14717
|
export declare type CheckoutShippingMethodPromptBehavior = io.flow.internal.v0.enums.CheckoutShippingMethodPromptBehavior;
|
|
14697
14718
|
export declare type CheckoutSourceOrderForm = io.flow.internal.v0.models.CheckoutSourceOrderForm;
|
package/dist/api.d.ts
CHANGED
|
@@ -1391,7 +1391,14 @@ declare namespace io.flow.v0.models {
|
|
|
1391
1391
|
readonly lead_days?: io.flow.v0.models.NumberRange;
|
|
1392
1392
|
}
|
|
1393
1393
|
interface AvalaraTaxCsvSetting {
|
|
1394
|
-
readonly schedule:
|
|
1394
|
+
readonly schedule: {
|
|
1395
|
+
discriminator: 'repeat_daily';
|
|
1396
|
+
} & io.flow.v0.models.RepeatDaily | {
|
|
1397
|
+
discriminator: 'repeat_weekly';
|
|
1398
|
+
} & io.flow.v0.models.RepeatWeekly | {
|
|
1399
|
+
discriminator: 'repeat_monthly';
|
|
1400
|
+
} & io.flow.v0.models.RepeatMonthly;
|
|
1401
|
+
readonly timezone: string;
|
|
1395
1402
|
readonly email_recipients?: string[];
|
|
1396
1403
|
}
|
|
1397
1404
|
interface AvalaraTaxSetting {
|
|
@@ -1900,6 +1907,9 @@ declare namespace io.flow.v0.models {
|
|
|
1900
1907
|
readonly organization: string;
|
|
1901
1908
|
readonly checkout_optin_responses: io.flow.v0.models.CheckoutOptinResponses;
|
|
1902
1909
|
}
|
|
1910
|
+
interface CheckoutReference {
|
|
1911
|
+
readonly id: string;
|
|
1912
|
+
}
|
|
1903
1913
|
interface CheckoutSettings {
|
|
1904
1914
|
readonly configuration: io.flow.v0.models.ExperienceConfigurationReference;
|
|
1905
1915
|
}
|
|
@@ -1911,6 +1921,7 @@ declare namespace io.flow.v0.models {
|
|
|
1911
1921
|
readonly expires_at: string;
|
|
1912
1922
|
readonly session?: io.flow.v0.models.SessionReference;
|
|
1913
1923
|
readonly customer?: io.flow.v0.models.CustomerReference;
|
|
1924
|
+
readonly checkout?: io.flow.v0.models.CheckoutReference;
|
|
1914
1925
|
}
|
|
1915
1926
|
interface CheckoutTokenOrderForm {
|
|
1916
1927
|
readonly order_form: io.flow.v0.models.OrderForm;
|
|
@@ -1919,6 +1930,7 @@ declare namespace io.flow.v0.models {
|
|
|
1919
1930
|
readonly payment_sources?: ({
|
|
1920
1931
|
discriminator: 'card_payment_source_form';
|
|
1921
1932
|
} & io.flow.v0.models.CardPaymentSourceForm)[];
|
|
1933
|
+
readonly session_id: string;
|
|
1922
1934
|
readonly urls?: io.flow.v0.models.CheckoutUrlsForm;
|
|
1923
1935
|
}
|
|
1924
1936
|
interface CheckoutTokenReferenceForm {
|
|
@@ -8063,6 +8075,7 @@ export declare type CheckoutItemContentAttribute = io.flow.v0.models.CheckoutIte
|
|
|
8063
8075
|
export declare type CheckoutOptinResponses = io.flow.v0.models.CheckoutOptinResponses;
|
|
8064
8076
|
export declare type CheckoutOptinResponsesDeleted = io.flow.v0.models.CheckoutOptinResponsesDeleted;
|
|
8065
8077
|
export declare type CheckoutOptinResponsesUpserted = io.flow.v0.models.CheckoutOptinResponsesUpserted;
|
|
8078
|
+
export declare type CheckoutReference = io.flow.v0.models.CheckoutReference;
|
|
8066
8079
|
export declare type CheckoutSettings = io.flow.v0.models.CheckoutSettings;
|
|
8067
8080
|
export declare type CheckoutToken = io.flow.v0.models.CheckoutToken;
|
|
8068
8081
|
export declare type CheckoutTokenForm = io.flow.v0.unions.CheckoutTokenForm;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
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",
|
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"typescript": "^3.2.2"
|
|
23
|
-
}
|
|
23
|
+
},
|
|
24
|
+
"gitHead": "0ec4f7aef585bef3ff555b0d48cd68d6e0321fe6"
|
|
24
25
|
}
|
package/src/api-internal.ts
CHANGED
|
@@ -7117,6 +7117,12 @@ namespace io.flow.experience.internal.v0.models {
|
|
|
7117
7117
|
readonly cards: io.flow.experience.internal.v0.models.GiftCard[];
|
|
7118
7118
|
}
|
|
7119
7119
|
|
|
7120
|
+
export interface InternalOrder {
|
|
7121
|
+
readonly order: io.flow.experience.v0.models.Order;
|
|
7122
|
+
readonly session?: unknown;
|
|
7123
|
+
readonly rates: io.flow.currency.internal.v0.models.RateDataV3[];
|
|
7124
|
+
}
|
|
7125
|
+
|
|
7120
7126
|
export interface ItemFilterResponse {
|
|
7121
7127
|
readonly filter: string;
|
|
7122
7128
|
readonly responses: io.flow.experience.internal.v0.models.ItemFilterValueResponse[];
|
|
@@ -13774,7 +13780,9 @@ namespace io.flow.internal.v0.models {
|
|
|
13774
13780
|
readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
|
|
13775
13781
|
readonly customer?: io.flow.customer.v0.models.Customer;
|
|
13776
13782
|
readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
|
|
13777
|
-
readonly
|
|
13783
|
+
readonly gift_card_program?: io.flow.experience.internal.v0.models.GiftCardProgram;
|
|
13784
|
+
readonly loyalty_program?: io.flow.experience.internal.v0.models.LoyaltyProgram;
|
|
13785
|
+
readonly payment: io.flow.internal.v0.models.CheckoutPayment;
|
|
13778
13786
|
}
|
|
13779
13787
|
|
|
13780
13788
|
export interface CheckoutBehavior {
|
|
@@ -13935,11 +13943,24 @@ namespace io.flow.internal.v0.models {
|
|
|
13935
13943
|
readonly feature_keys?: string[];
|
|
13936
13944
|
}
|
|
13937
13945
|
|
|
13946
|
+
export interface CheckoutPayment {
|
|
13947
|
+
readonly sources: unknown[];
|
|
13948
|
+
readonly public_key: io.flow.payment.v0.models.PublicKey;
|
|
13949
|
+
readonly method_types: io.flow.reference.v0.enums.PaymentMethodType[];
|
|
13950
|
+
readonly method_rules: io.flow.experience.v0.models.PaymentMethodRule[];
|
|
13951
|
+
}
|
|
13952
|
+
|
|
13938
13953
|
export interface CheckoutPaymentContent {
|
|
13939
13954
|
readonly default: io.flow.internal.v0.models.ApmContent;
|
|
13940
13955
|
readonly paypal?: io.flow.internal.v0.models.ApmContent;
|
|
13941
13956
|
}
|
|
13942
13957
|
|
|
13958
|
+
export interface CheckoutReferenceForm {
|
|
13959
|
+
readonly order_number: string;
|
|
13960
|
+
readonly order_form: io.flow.experience.v0.models.OrderPutForm;
|
|
13961
|
+
readonly session_id: string;
|
|
13962
|
+
}
|
|
13963
|
+
|
|
13943
13964
|
export interface CheckoutSettings {
|
|
13944
13965
|
readonly session_persistence_timeout?: io.flow.common.v0.models.Duration;
|
|
13945
13966
|
readonly session_persistence_attribute_keys?: string[];
|
|
@@ -15976,6 +15997,7 @@ namespace io.flow.internal.v0.models {
|
|
|
15976
15997
|
readonly country: string;
|
|
15977
15998
|
readonly currency: string;
|
|
15978
15999
|
readonly language: string;
|
|
16000
|
+
readonly tsv_download_url: string;
|
|
15979
16001
|
}
|
|
15980
16002
|
|
|
15981
16003
|
export interface MarketingGatewayFilterSummary {
|
|
@@ -18668,8 +18690,10 @@ export type CheckoutForm = io.flow.internal.v0.unions.CheckoutForm;
|
|
|
18668
18690
|
export type CheckoutMarketingContent = io.flow.internal.v0.models.CheckoutMarketingContent;
|
|
18669
18691
|
export type CheckoutOrderForm = io.flow.internal.v0.models.CheckoutOrderForm;
|
|
18670
18692
|
export type CheckoutOrderNumberForm = io.flow.internal.v0.models.CheckoutOrderNumberForm;
|
|
18693
|
+
export type CheckoutPayment = io.flow.internal.v0.models.CheckoutPayment;
|
|
18671
18694
|
export type CheckoutPaymentContent = io.flow.internal.v0.models.CheckoutPaymentContent;
|
|
18672
18695
|
export type CheckoutPromptBehavior = io.flow.internal.v0.enums.CheckoutPromptBehavior;
|
|
18696
|
+
export type CheckoutReferenceForm = io.flow.internal.v0.models.CheckoutReferenceForm;
|
|
18673
18697
|
export type CheckoutSettings = io.flow.internal.v0.models.CheckoutSettings;
|
|
18674
18698
|
export type CheckoutShippingMethodPromptBehavior = io.flow.internal.v0.enums.CheckoutShippingMethodPromptBehavior;
|
|
18675
18699
|
export type CheckoutSourceOrderForm = io.flow.internal.v0.models.CheckoutSourceOrderForm;
|
package/src/api.ts
CHANGED
|
@@ -2180,7 +2180,17 @@ namespace io.flow.v0.models {
|
|
|
2180
2180
|
}
|
|
2181
2181
|
|
|
2182
2182
|
export interface AvalaraTaxCsvSetting {
|
|
2183
|
-
readonly schedule:
|
|
2183
|
+
readonly schedule:
|
|
2184
|
+
| {
|
|
2185
|
+
discriminator: 'repeat_daily';
|
|
2186
|
+
} & io.flow.v0.models.RepeatDaily
|
|
2187
|
+
| {
|
|
2188
|
+
discriminator: 'repeat_weekly';
|
|
2189
|
+
} & io.flow.v0.models.RepeatWeekly
|
|
2190
|
+
| {
|
|
2191
|
+
discriminator: 'repeat_monthly';
|
|
2192
|
+
} & io.flow.v0.models.RepeatMonthly;
|
|
2193
|
+
readonly timezone: string;
|
|
2184
2194
|
readonly email_recipients?: string[];
|
|
2185
2195
|
}
|
|
2186
2196
|
|
|
@@ -2770,6 +2780,10 @@ namespace io.flow.v0.models {
|
|
|
2770
2780
|
readonly checkout_optin_responses: io.flow.v0.models.CheckoutOptinResponses;
|
|
2771
2781
|
}
|
|
2772
2782
|
|
|
2783
|
+
export interface CheckoutReference {
|
|
2784
|
+
readonly id: string;
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2773
2787
|
export interface CheckoutSettings {
|
|
2774
2788
|
readonly configuration: io.flow.v0.models.ExperienceConfigurationReference;
|
|
2775
2789
|
}
|
|
@@ -2782,6 +2796,7 @@ namespace io.flow.v0.models {
|
|
|
2782
2796
|
readonly expires_at: string;
|
|
2783
2797
|
readonly session?: io.flow.v0.models.SessionReference;
|
|
2784
2798
|
readonly customer?: io.flow.v0.models.CustomerReference;
|
|
2799
|
+
readonly checkout?: io.flow.v0.models.CheckoutReference;
|
|
2785
2800
|
}
|
|
2786
2801
|
|
|
2787
2802
|
export interface CheckoutTokenOrderForm {
|
|
@@ -2791,6 +2806,7 @@ namespace io.flow.v0.models {
|
|
|
2791
2806
|
readonly payment_sources?: ({
|
|
2792
2807
|
discriminator: 'card_payment_source_form';
|
|
2793
2808
|
} & io.flow.v0.models.CardPaymentSourceForm)[];
|
|
2809
|
+
readonly session_id: string;
|
|
2794
2810
|
readonly urls?: io.flow.v0.models.CheckoutUrlsForm;
|
|
2795
2811
|
}
|
|
2796
2812
|
|
|
@@ -10276,6 +10292,7 @@ export type CheckoutItemContentAttribute = io.flow.v0.models.CheckoutItemContent
|
|
|
10276
10292
|
export type CheckoutOptinResponses = io.flow.v0.models.CheckoutOptinResponses;
|
|
10277
10293
|
export type CheckoutOptinResponsesDeleted = io.flow.v0.models.CheckoutOptinResponsesDeleted;
|
|
10278
10294
|
export type CheckoutOptinResponsesUpserted = io.flow.v0.models.CheckoutOptinResponsesUpserted;
|
|
10295
|
+
export type CheckoutReference = io.flow.v0.models.CheckoutReference;
|
|
10279
10296
|
export type CheckoutSettings = io.flow.v0.models.CheckoutSettings;
|
|
10280
10297
|
export type CheckoutToken = io.flow.v0.models.CheckoutToken;
|
|
10281
10298
|
export type CheckoutTokenForm = io.flow.v0.unions.CheckoutTokenForm;
|