@flowio/types 11.5.2 → 11.6.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 +5 -27
- package/dist/api.d.ts +4 -4
- package/package.json +2 -2
- package/src/api-internal.ts +7 -29
- package/src/api.ts +5 -4
package/dist/api-internal.d.ts
CHANGED
|
@@ -1241,7 +1241,7 @@ declare namespace io.flow.checkout.protocol.v0.enums {
|
|
|
1241
1241
|
type CheckoutInfoContentKeyField = 'locale';
|
|
1242
1242
|
type CheckoutInfoDeliveriesFormDataKeyField = 'country' | 'lines';
|
|
1243
1243
|
type CheckoutInfoOrderSummaryKeyField = 'shipping_country' | 'shipping_province' | 'shipping_postal' | 'delivery_option_id';
|
|
1244
|
-
type CheckoutInfoPaymentAuthorizationParametersKeyField = 'value' | 'currency';
|
|
1244
|
+
type CheckoutInfoPaymentAuthorizationParametersKeyField = 'value' | 'currency' | 'shipping_country';
|
|
1245
1245
|
type CheckoutInfoPaymentDetailsKeyField = 'value' | 'currency' | 'payment_method_id';
|
|
1246
1246
|
type CheckoutSetAddressCityErrorCode = 'address_city_invalid' | 'address_city_required';
|
|
1247
1247
|
type CheckoutSetAddressCountryErrorCode = 'address_country_invalid' | 'address_country_required' | 'country_not_supported';
|
|
@@ -7592,6 +7592,7 @@ declare namespace io.flow.shopify.internal.v0.models {
|
|
|
7592
7592
|
}
|
|
7593
7593
|
interface ShopForm {
|
|
7594
7594
|
readonly organization_id: string;
|
|
7595
|
+
readonly token?: string;
|
|
7595
7596
|
}
|
|
7596
7597
|
interface ShopVersion {
|
|
7597
7598
|
readonly id: string;
|
|
@@ -9091,17 +9092,6 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
9091
9092
|
readonly description: string;
|
|
9092
9093
|
readonly posted_at?: string;
|
|
9093
9094
|
}
|
|
9094
|
-
interface MasterTransaction {
|
|
9095
|
-
readonly id: string;
|
|
9096
|
-
readonly account: io.flow.billing.v0.models.AccountReference;
|
|
9097
|
-
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
9098
|
-
readonly value: io.flow.common.v0.models.Price;
|
|
9099
|
-
readonly posted_at: string;
|
|
9100
|
-
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
9101
|
-
readonly created_at: string;
|
|
9102
|
-
readonly original_at?: string;
|
|
9103
|
-
readonly disposition?: io.flow.billing.internal.v0.enums.BillingStatementReviewStatus;
|
|
9104
|
-
}
|
|
9105
9095
|
interface PendingBankPayment {
|
|
9106
9096
|
readonly organization: string;
|
|
9107
9097
|
readonly account: io.flow.billing.v0.models.AccountReference;
|
|
@@ -12923,7 +12913,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
12923
12913
|
type CheckoutInfoContentKeyField = 'locale';
|
|
12924
12914
|
type CheckoutInfoDeliveriesFormDataKeyField = 'country' | 'lines';
|
|
12925
12915
|
type CheckoutInfoOrderSummaryKeyField = 'shipping_country' | 'shipping_province' | 'shipping_postal' | 'delivery_option_id';
|
|
12926
|
-
type CheckoutInfoPaymentAuthorizationParametersKeyField = 'value' | 'currency';
|
|
12916
|
+
type CheckoutInfoPaymentAuthorizationParametersKeyField = 'value' | 'currency' | 'shipping_country';
|
|
12927
12917
|
type CheckoutInfoPaymentDetailsKeyField = 'value' | 'currency' | 'payment_method_id';
|
|
12928
12918
|
type CheckoutPaymentGroupType = 'credit' | 'debit' | 'all_cards';
|
|
12929
12919
|
type CheckoutPromptBehavior = 'always' | 'incomplete';
|
|
@@ -17875,30 +17865,19 @@ declare namespace io.flow.internal.v0.models {
|
|
|
17875
17865
|
readonly localized_feed_count?: number;
|
|
17876
17866
|
readonly connected_at?: string;
|
|
17877
17867
|
}
|
|
17878
|
-
interface MasterTransaction {
|
|
17879
|
-
readonly id: string;
|
|
17880
|
-
readonly account: io.flow.billing.v0.models.AccountReference;
|
|
17881
|
-
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
17882
|
-
readonly value: io.flow.common.v0.models.Price;
|
|
17883
|
-
readonly posted_at: string;
|
|
17884
|
-
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
17885
|
-
readonly created_at: string;
|
|
17886
|
-
readonly original_at?: string;
|
|
17887
|
-
readonly disposition?: io.flow.internal.v0.enums.BillingStatementReviewStatus;
|
|
17888
|
-
}
|
|
17889
17868
|
interface MasterTransactionDeleted {
|
|
17890
17869
|
readonly discriminator: 'master_transaction_deleted';
|
|
17891
17870
|
readonly event_id: string;
|
|
17892
17871
|
readonly timestamp: string;
|
|
17893
17872
|
readonly organization: string;
|
|
17894
|
-
readonly master_transaction:
|
|
17873
|
+
readonly master_transaction: unknown;
|
|
17895
17874
|
}
|
|
17896
17875
|
interface MasterTransactionUpserted {
|
|
17897
17876
|
readonly discriminator: 'master_transaction_upserted';
|
|
17898
17877
|
readonly event_id: string;
|
|
17899
17878
|
readonly timestamp: string;
|
|
17900
17879
|
readonly organization: string;
|
|
17901
|
-
readonly master_transaction:
|
|
17880
|
+
readonly master_transaction: unknown;
|
|
17902
17881
|
}
|
|
17903
17882
|
interface MerchantOfRecordEntitySettings {
|
|
17904
17883
|
readonly id: string;
|
|
@@ -21106,7 +21085,6 @@ export declare type MarketingGatewaySchemaCompatibility = io.flow.internal.v0.en
|
|
|
21106
21085
|
export declare type MarketingGatewaySchemaSummary = io.flow.internal.v0.models.MarketingGatewaySchemaSummary;
|
|
21107
21086
|
export declare type MarketingGatewaySourceSummary = io.flow.internal.v0.unions.MarketingGatewaySourceSummary;
|
|
21108
21087
|
export declare type MarketingGatewaySupportedChannelDetails = io.flow.internal.v0.models.MarketingGatewaySupportedChannelDetails;
|
|
21109
|
-
export declare type MasterTransaction = io.flow.internal.v0.models.MasterTransaction;
|
|
21110
21088
|
export declare type MasterTransactionDeleted = io.flow.internal.v0.models.MasterTransactionDeleted;
|
|
21111
21089
|
export declare type MasterTransactionUpserted = io.flow.internal.v0.models.MasterTransactionUpserted;
|
|
21112
21090
|
export declare type MerchantOfRecordEntitySettings = io.flow.internal.v0.models.MerchantOfRecordEntitySettings;
|
package/dist/api.d.ts
CHANGED
|
@@ -810,7 +810,7 @@ declare namespace io.flow.v0.enums {
|
|
|
810
810
|
type AdjustmentReasonKey = 'duty_deminimis' | 'vat_deminimis';
|
|
811
811
|
type Aggregate = 'maximum' | 'minimum';
|
|
812
812
|
type AttributeDataType = 'boolean' | 'decimal' | 'string' | 'json_array';
|
|
813
|
-
type AttributeIntent = 'brand' | 'color' | 'countries_of_origin' | 'product_id' | 'fulfillment_method' | 'hazardous' | 'price' | 'size' | 'sku' | 'taxability' | 'consumer_url' | 'gtin' | 'mpn' | 'facet' | 'eccn' | 'returnable' | 'searchable';
|
|
813
|
+
type AttributeIntent = 'brand' | 'color' | 'countries_of_origin' | 'product_id' | 'fulfillment_method' | 'hazardous' | 'price' | 'size' | 'sku' | 'taxability' | 'consumer_url' | 'gtin' | 'mpn' | 'facet' | 'eccn' | 'returnable' | 'searchable' | 'barcode';
|
|
814
814
|
type AuthenticationTechnique = 'anonymous' | 'session' | 'token' | 'partner_token' | 'user';
|
|
815
815
|
type AuthorizationDeclineCode = 'expired' | 'invalid_name' | 'invalid_number' | 'invalid_expiration' | 'invalid_address' | 'invalid_token_type' | 'invalid_token' | 'no_account' | 'avs' | 'cvv' | 'fraud' | 'duplicate' | 'not_supported' | 'unknown' | 'online_payment_error';
|
|
816
816
|
type AuthorizationOption = 'store_card';
|
|
@@ -946,6 +946,7 @@ declare namespace io.flow.v0.enums {
|
|
|
946
946
|
type SyncStreamType = 'submitted_order' | 'placed_order';
|
|
947
947
|
type SyncUnitOfTime = 'day' | 'hour' | 'minute' | 'second';
|
|
948
948
|
type TaxApplicability = 'none' | 'all';
|
|
949
|
+
type TaxReportType = 'consumer' | 'b2b';
|
|
949
950
|
type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
|
|
950
951
|
type TaxabilityType = 'tax_rule';
|
|
951
952
|
type TaxabilityValue = 'exempt';
|
|
@@ -1378,9 +1379,6 @@ declare namespace io.flow.v0.models {
|
|
|
1378
1379
|
}
|
|
1379
1380
|
interface AvalaraTaxCsvSetting {
|
|
1380
1381
|
readonly discriminator: 'avalara_tax_csv_setting';
|
|
1381
|
-
readonly schedule?: io.flow.v0.unions.RepeatSchedule;
|
|
1382
|
-
readonly timezone?: string;
|
|
1383
|
-
readonly email_recipients?: string[];
|
|
1384
1382
|
readonly reports?: io.flow.v0.models.TaxReport[];
|
|
1385
1383
|
}
|
|
1386
1384
|
interface AvalaraTaxSetting {
|
|
@@ -7062,6 +7060,7 @@ declare namespace io.flow.v0.models {
|
|
|
7062
7060
|
interface TaxReport {
|
|
7063
7061
|
readonly schedule: io.flow.v0.unions.RepeatSchedule;
|
|
7064
7062
|
readonly timezone: string;
|
|
7063
|
+
readonly types: io.flow.v0.enums.TaxReportType[];
|
|
7065
7064
|
readonly email_recipients?: string[];
|
|
7066
7065
|
}
|
|
7067
7066
|
interface ThreeDSecure {
|
|
@@ -8760,6 +8759,7 @@ export declare type TaxApplicability = io.flow.v0.enums.TaxApplicability;
|
|
|
8760
8759
|
export declare type TaxRegistration = io.flow.v0.models.TaxRegistration;
|
|
8761
8760
|
export declare type TaxRegistrationForm = io.flow.v0.models.TaxRegistrationForm;
|
|
8762
8761
|
export declare type TaxReport = io.flow.v0.models.TaxReport;
|
|
8762
|
+
export declare type TaxReportType = io.flow.v0.enums.TaxReportType;
|
|
8763
8763
|
export declare type TaxSetting = io.flow.v0.unions.TaxSetting;
|
|
8764
8764
|
export declare type TaxVerificationResult = io.flow.v0.enums.TaxVerificationResult;
|
|
8765
8765
|
export declare type TaxabilityType = io.flow.v0.enums.TaxabilityType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.6.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,5 +25,5 @@
|
|
|
25
25
|
"maintainers": [
|
|
26
26
|
"Christian Muñoz <christian.munoz@flow.io>"
|
|
27
27
|
],
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "1ffd33fee424109b19014867c7287063237bac51"
|
|
29
29
|
}
|
package/src/api-internal.ts
CHANGED
|
@@ -1612,7 +1612,8 @@ declare namespace io.flow.checkout.protocol.v0.enums {
|
|
|
1612
1612
|
| 'delivery_option_id';
|
|
1613
1613
|
type CheckoutInfoPaymentAuthorizationParametersKeyField =
|
|
1614
1614
|
| 'value'
|
|
1615
|
-
| 'currency'
|
|
1615
|
+
| 'currency'
|
|
1616
|
+
| 'shipping_country';
|
|
1616
1617
|
type CheckoutInfoPaymentDetailsKeyField =
|
|
1617
1618
|
| 'value'
|
|
1618
1619
|
| 'currency'
|
|
@@ -10037,6 +10038,7 @@ declare namespace io.flow.shopify.internal.v0.models {
|
|
|
10037
10038
|
|
|
10038
10039
|
interface ShopForm {
|
|
10039
10040
|
readonly organization_id: string;
|
|
10041
|
+
readonly token?: string;
|
|
10040
10042
|
}
|
|
10041
10043
|
|
|
10042
10044
|
interface ShopVersion {
|
|
@@ -11997,18 +11999,6 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
11997
11999
|
readonly posted_at?: string;
|
|
11998
12000
|
}
|
|
11999
12001
|
|
|
12000
|
-
interface MasterTransaction {
|
|
12001
|
-
readonly id: string;
|
|
12002
|
-
readonly account: io.flow.billing.v0.models.AccountReference;
|
|
12003
|
-
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
12004
|
-
readonly value: io.flow.common.v0.models.Price;
|
|
12005
|
-
readonly posted_at: string;
|
|
12006
|
-
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
12007
|
-
readonly created_at: string;
|
|
12008
|
-
readonly original_at?: string;
|
|
12009
|
-
readonly disposition?: io.flow.billing.internal.v0.enums.BillingStatementReviewStatus;
|
|
12010
|
-
}
|
|
12011
|
-
|
|
12012
12002
|
interface PendingBankPayment {
|
|
12013
12003
|
readonly organization: string;
|
|
12014
12004
|
readonly account: io.flow.billing.v0.models.AccountReference;
|
|
@@ -16857,7 +16847,8 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
16857
16847
|
| 'delivery_option_id';
|
|
16858
16848
|
type CheckoutInfoPaymentAuthorizationParametersKeyField =
|
|
16859
16849
|
| 'value'
|
|
16860
|
-
| 'currency'
|
|
16850
|
+
| 'currency'
|
|
16851
|
+
| 'shipping_country';
|
|
16861
16852
|
type CheckoutInfoPaymentDetailsKeyField =
|
|
16862
16853
|
| 'value'
|
|
16863
16854
|
| 'currency'
|
|
@@ -23055,24 +23046,12 @@ declare namespace io.flow.internal.v0.models {
|
|
|
23055
23046
|
readonly connected_at?: string;
|
|
23056
23047
|
}
|
|
23057
23048
|
|
|
23058
|
-
interface MasterTransaction {
|
|
23059
|
-
readonly id: string;
|
|
23060
|
-
readonly account: io.flow.billing.v0.models.AccountReference;
|
|
23061
|
-
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
23062
|
-
readonly value: io.flow.common.v0.models.Price;
|
|
23063
|
-
readonly posted_at: string;
|
|
23064
|
-
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
23065
|
-
readonly created_at: string;
|
|
23066
|
-
readonly original_at?: string;
|
|
23067
|
-
readonly disposition?: io.flow.internal.v0.enums.BillingStatementReviewStatus;
|
|
23068
|
-
}
|
|
23069
|
-
|
|
23070
23049
|
interface MasterTransactionDeleted {
|
|
23071
23050
|
readonly discriminator: 'master_transaction_deleted';
|
|
23072
23051
|
readonly event_id: string;
|
|
23073
23052
|
readonly timestamp: string;
|
|
23074
23053
|
readonly organization: string;
|
|
23075
|
-
readonly master_transaction: io.flow.billing.internal.v0.models.
|
|
23054
|
+
readonly master_transaction: unknown /*io.flow.billing.internal.v0.models.master_transaction*/;
|
|
23076
23055
|
}
|
|
23077
23056
|
|
|
23078
23057
|
interface MasterTransactionUpserted {
|
|
@@ -23080,7 +23059,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
23080
23059
|
readonly event_id: string;
|
|
23081
23060
|
readonly timestamp: string;
|
|
23082
23061
|
readonly organization: string;
|
|
23083
|
-
readonly master_transaction: io.flow.billing.internal.v0.models.
|
|
23062
|
+
readonly master_transaction: unknown /*io.flow.billing.internal.v0.models.master_transaction*/;
|
|
23084
23063
|
}
|
|
23085
23064
|
|
|
23086
23065
|
interface MerchantOfRecordEntitySettings {
|
|
@@ -27136,7 +27115,6 @@ export type MarketingGatewaySchemaCompatibility = io.flow.internal.v0.enums.Mark
|
|
|
27136
27115
|
export type MarketingGatewaySchemaSummary = io.flow.internal.v0.models.MarketingGatewaySchemaSummary;
|
|
27137
27116
|
export type MarketingGatewaySourceSummary = io.flow.internal.v0.unions.MarketingGatewaySourceSummary;
|
|
27138
27117
|
export type MarketingGatewaySupportedChannelDetails = io.flow.internal.v0.models.MarketingGatewaySupportedChannelDetails;
|
|
27139
|
-
export type MasterTransaction = io.flow.internal.v0.models.MasterTransaction;
|
|
27140
27118
|
export type MasterTransactionDeleted = io.flow.internal.v0.models.MasterTransactionDeleted;
|
|
27141
27119
|
export type MasterTransactionUpserted = io.flow.internal.v0.models.MasterTransactionUpserted;
|
|
27142
27120
|
export type MerchantOfRecordEntitySettings = io.flow.internal.v0.models.MerchantOfRecordEntitySettings;
|
package/src/api.ts
CHANGED
|
@@ -1031,7 +1031,8 @@ declare namespace io.flow.v0.enums {
|
|
|
1031
1031
|
| 'facet'
|
|
1032
1032
|
| 'eccn'
|
|
1033
1033
|
| 'returnable'
|
|
1034
|
-
| 'searchable'
|
|
1034
|
+
| 'searchable'
|
|
1035
|
+
| 'barcode';
|
|
1035
1036
|
type AuthenticationTechnique =
|
|
1036
1037
|
| 'anonymous'
|
|
1037
1038
|
| 'session'
|
|
@@ -1620,6 +1621,7 @@ declare namespace io.flow.v0.enums {
|
|
|
1620
1621
|
type SyncStreamType = 'submitted_order' | 'placed_order';
|
|
1621
1622
|
type SyncUnitOfTime = 'day' | 'hour' | 'minute' | 'second';
|
|
1622
1623
|
type TaxApplicability = 'none' | 'all';
|
|
1624
|
+
type TaxReportType = 'consumer' | 'b2b';
|
|
1623
1625
|
type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
|
|
1624
1626
|
type TaxabilityType = 'tax_rule';
|
|
1625
1627
|
type TaxabilityValue = 'exempt';
|
|
@@ -2143,9 +2145,6 @@ declare namespace io.flow.v0.models {
|
|
|
2143
2145
|
|
|
2144
2146
|
interface AvalaraTaxCsvSetting {
|
|
2145
2147
|
readonly discriminator: 'avalara_tax_csv_setting';
|
|
2146
|
-
readonly schedule?: io.flow.v0.unions.RepeatSchedule;
|
|
2147
|
-
readonly timezone?: string;
|
|
2148
|
-
readonly email_recipients?: string[];
|
|
2149
2148
|
readonly reports?: io.flow.v0.models.TaxReport[];
|
|
2150
2149
|
}
|
|
2151
2150
|
|
|
@@ -8743,6 +8742,7 @@ declare namespace io.flow.v0.models {
|
|
|
8743
8742
|
interface TaxReport {
|
|
8744
8743
|
readonly schedule: io.flow.v0.unions.RepeatSchedule;
|
|
8745
8744
|
readonly timezone: string;
|
|
8745
|
+
readonly types: io.flow.v0.enums.TaxReportType[];
|
|
8746
8746
|
readonly email_recipients?: string[];
|
|
8747
8747
|
}
|
|
8748
8748
|
|
|
@@ -10833,6 +10833,7 @@ export type TaxApplicability = io.flow.v0.enums.TaxApplicability;
|
|
|
10833
10833
|
export type TaxRegistration = io.flow.v0.models.TaxRegistration;
|
|
10834
10834
|
export type TaxRegistrationForm = io.flow.v0.models.TaxRegistrationForm;
|
|
10835
10835
|
export type TaxReport = io.flow.v0.models.TaxReport;
|
|
10836
|
+
export type TaxReportType = io.flow.v0.enums.TaxReportType;
|
|
10836
10837
|
export type TaxSetting = io.flow.v0.unions.TaxSetting;
|
|
10837
10838
|
export type TaxVerificationResult = io.flow.v0.enums.TaxVerificationResult;
|
|
10838
10839
|
export type TaxabilityType = io.flow.v0.enums.TaxabilityType;
|