@flowio/types 3.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 +92 -24
- package/dist/api.d.ts +52 -3
- package/package.json +3 -4
- package/src/api-internal.ts +114 -28
- package/src/api.ts +58 -3
- package/LICENSE +0 -21
package/dist/api-internal.d.ts
CHANGED
|
@@ -10019,7 +10019,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
10019
10019
|
type DutyCompoundExpressionType = 'sum' | 'max' | 'min';
|
|
10020
10020
|
type DutyRateUnitOfMeasure = 'kg' | 'sq m' | 'item' | 'pair';
|
|
10021
10021
|
type DutySimpleExpressionType = 'free' | 'percent' | 'per_uom' | 'flat';
|
|
10022
|
-
type EventType = 'adyen_authorization_deleted' | 'adyen_authorization_upserted' | 'adyen_cancel_deleted' | 'adyen_cancel_upserted' | 'adyen_capture_deleted' | 'adyen_capture_upserted' | 'adyen_refund_deleted' | 'adyen_refund_upserted' | 'billing_statement_upserted' | 'billing_statement_deleted' | 'tax_remittance_transaction_upserted' | 'tax_remittance_transaction_deleted' | 'account_transactions_export_request' | 'account_orders_export_request' | 'carrier_account_upserted' | 'catalog_import_request' | 'catalog_item_region_availabilities_published' | 'checkout_configuration_upserted' | 'checkout_configuration_deleted' | 'localized_content_upserted' | 'localization_upserted' | 'rate_deleted' | 'rate_upserted' | 'spot_rate_deleted' | 'spot_rate_upserted' | 'organization_currency_settings_upserted' | 'organization_currency_settings_deleted' | 'rate_deleted_v2' | 'rate_upserted_v2' | 'customs_description_import' | 'customs_description_tariffs_import' | 'item_dimension_estimate_upserted' | 'item_dimension_estimate_deleted' | 'duty_rate_request' | 'duty_rate_bulk_request' | 'duty_raw_upserted' | 'duty_raw_bulk_upserted' | 'duty_rate_upserted' | 'duty_rate_response' | 'duty_rate_bulk_response' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'order_attribute_deleted' | 'order_attribute_upserted' | 'experience_export_request' | 'experience_import_request' | 'submitted_order_upserted' | 'experiment_upserted' | 'experiment_deleted' | 'experiment_results_upserted' | 'experiment_results_deleted' | 'export_completed' | 'export_failed' | 'feature_upserted' | 'feature_deleted' | 'organization_boolean_value_upserted' | 'organization_boolean_value_deleted' | 'fraud_review_upserted' | 'fraud_review_deleted' | 'fraud_pending_review_upserted' | 'fraud_pending_review_deleted' | 'fraud_review_decision_upserted' | 'fraud_review_decision_deleted' | 'ftp_file_upserted' | 'ftp_file_deleted' | 'ftp_file_to_process_uploaded' | 'pregenerated_quote_upserted' | 'pregenerated_quote_deleted' | 'pregenerated_request_event' | 'blacklisted_item_created' | 'blacklisted_item_updated' | 'blacklisted_item_deleted' | 'all_items_export' | 'harmonized_items_hs6_export' | 'unharmonized_items_export' | 'dutied_items_export' | 'landed_cost_export' | 'harmonization_phrase_suggestion_request_import' | 'harmonization_codes_import' | 'customs_description_sugestion_created' | '
|
|
10022
|
+
type EventType = 'adyen_authorization_deleted' | 'adyen_authorization_upserted' | 'adyen_cancel_deleted' | 'adyen_cancel_upserted' | 'adyen_capture_deleted' | 'adyen_capture_upserted' | 'adyen_refund_deleted' | 'adyen_refund_upserted' | 'billing_statement_upserted' | 'billing_statement_deleted' | 'tax_remittance_transaction_upserted' | 'tax_remittance_transaction_deleted' | 'account_transactions_export_request' | 'account_orders_export_request' | 'carrier_account_upserted' | 'catalog_import_request' | 'catalog_item_region_availabilities_published' | 'checkout_configuration_upserted' | 'checkout_configuration_deleted' | 'localized_content_upserted' | 'localization_upserted' | 'rate_deleted' | 'rate_upserted' | 'spot_rate_deleted' | 'spot_rate_upserted' | 'organization_currency_settings_upserted' | 'organization_currency_settings_deleted' | 'rate_deleted_v2' | 'rate_upserted_v2' | 'customs_description_import' | 'customs_description_tariffs_import' | 'item_dimension_estimate_upserted' | 'item_dimension_estimate_deleted' | 'duty_rate_request' | 'duty_rate_bulk_request' | 'duty_raw_upserted' | 'duty_raw_bulk_upserted' | 'duty_rate_upserted' | 'duty_rate_response' | 'duty_rate_bulk_response' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'order_attribute_deleted' | 'order_attribute_upserted' | 'experience_export_request' | 'experience_import_request' | 'submitted_order_upserted' | 'experiment_upserted' | 'experiment_deleted' | 'experiment_results_upserted' | 'experiment_results_deleted' | 'export_completed' | 'export_failed' | 'feature_upserted' | 'feature_deleted' | 'organization_boolean_value_upserted' | 'organization_boolean_value_deleted' | 'fraud_review_upserted' | 'fraud_review_deleted' | 'fraud_pending_review_upserted' | 'fraud_pending_review_deleted' | 'fraud_review_decision_upserted' | 'fraud_review_decision_deleted' | 'ftp_file_upserted' | 'ftp_file_deleted' | 'ftp_file_to_process_uploaded' | 'pregenerated_quote_upserted' | 'pregenerated_quote_deleted' | 'pregenerated_request_event' | 'blacklisted_item_created' | 'blacklisted_item_updated' | 'blacklisted_item_deleted' | 'all_items_export' | 'harmonized_items_hs6_export' | 'unharmonized_items_export' | 'dutied_items_export' | 'landed_cost_export' | 'harmonization_phrase_suggestion_request_import' | 'harmonization_codes_import' | 'customs_description_sugestion_created' | 'harmonize_fully_with_rate' | 'item_harmonized' | 'harmonize_fully_request' | 'import_completed' | 'import_failed' | 'next_installment_upserted' | 'next_installment_deleted' | 'installment_upserted' | 'installment_deleted' | 'installment_program_upserted' | 'installment_program_deleted' | 'installment_plan_upserted' | 'installment_plan_deleted' | 'installment_plan_authorization_upserted' | 'installment_plan_authorization_deleted' | 'issuer_upserted' | 'issuer_deleted' | 'localized_item_upserted_v2' | 'localized_item_deleted' | 'localized_item_deleted_v2' | 'localized_item_snapshot' | 'localized_item_prices_export_request' | 'optin_prompt_upserted' | 'optin_prompt_deleted' | 'order_fulfillment_deleted' | 'order_fulfillment_upserted' | 'order_placed' | 'ready_to_fulfill' | 'fulfillment_cancel' | 'order_shipped' | 'items_shipped' | 'internal_authorization_upserted' | 'internal_authorization_deleted' | 'afterpay_authorization_upserted' | 'afterpay_authorization_deleted' | 'afterpay_capture_upserted' | 'afterpay_capture_deleted' | 'afterpay_refund_upserted' | 'afterpay_refund_deleted' | 'adyen_merchant_account_upserted' | 'adyen_merchant_account_deleted' | 'paypal_payment_deleted' | 'paypal_payment_upserted' | 'paypal_execution_deleted' | 'paypal_execution_upserted' | 'paypal_refund_deleted' | 'paypal_refund_upserted' | 'order_rates_published_v3' | 'ratecard_lanes_import_request' | 'shopify_shop_upserted' | 'shopify_shop_deleted' | 'shopify_experience_short_id_upserted' | 'shopify_experience_short_id_deleted' | 'stripe_authorization_deleted' | 'stripe_authorization_upserted' | 'stripe_reversal_deleted' | 'stripe_reversal_upserted' | 'stripe_capture_deleted' | 'stripe_capture_upserted' | 'stripe_refund_deleted' | 'stripe_refund_upserted' | 'svb_virtual_card_clearing_upserted' | 'svb_virtual_card_clearing_deleted' | 'tracking_label_event_upserted_v2' | 'tracking_label_event_deleted_v2' | 'tracking_label_upserted' | 'tracking_label_deleted' | 'tracking_upserted' | 'tracking_deleted' | 'tracking_request_upserted' | 'tracking_response_upserted' | 'user_upserted_v2' | 'user_deleted_v2';
|
|
10023
10023
|
type ExperienceImportType = 'experience_with_settings';
|
|
10024
10024
|
type ExperienceOrderAction = 'submit' | 'refund_gift_cards';
|
|
10025
10025
|
type ExperienceOrderActionTrigger = 'zero_balance' | 'unsubmitted_order';
|
|
@@ -10689,6 +10689,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
10689
10689
|
readonly country_picker: io.flow.country.picker.v0.models.CountryPickerData;
|
|
10690
10690
|
readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
|
|
10691
10691
|
readonly features: io.flow.feature.v0.models.FeatureValueResult;
|
|
10692
|
+
readonly payment_methods?: io.flow.internal.v0.models.BrowserBundlePaymentMethods;
|
|
10692
10693
|
}
|
|
10693
10694
|
interface BrowserBundleCountryPickerForm {
|
|
10694
10695
|
readonly country?: string;
|
|
@@ -10707,10 +10708,21 @@ declare namespace io.flow.internal.v0.models {
|
|
|
10707
10708
|
readonly optin?: io.flow.internal.v0.models.BrowserBundleOptinForm;
|
|
10708
10709
|
readonly country_picker?: io.flow.internal.v0.models.BrowserBundleCountryPickerForm;
|
|
10709
10710
|
readonly feature?: io.flow.internal.v0.models.BrowserBundleFeatureForm;
|
|
10711
|
+
readonly payment_method?: io.flow.internal.v0.models.BrowserBundlePaymentMethodForm;
|
|
10710
10712
|
}
|
|
10711
10713
|
interface BrowserBundleOptinForm {
|
|
10712
10714
|
readonly country: string;
|
|
10713
10715
|
}
|
|
10716
|
+
interface BrowserBundlePaymentMethod {
|
|
10717
|
+
readonly id: string;
|
|
10718
|
+
}
|
|
10719
|
+
interface BrowserBundlePaymentMethodForm {
|
|
10720
|
+
readonly experience_key?: string;
|
|
10721
|
+
readonly country?: string;
|
|
10722
|
+
}
|
|
10723
|
+
interface BrowserBundlePaymentMethods {
|
|
10724
|
+
readonly displayed?: io.flow.internal.v0.models.BrowserBundlePaymentMethod[];
|
|
10725
|
+
}
|
|
10714
10726
|
interface CalculatedTaxAmount {
|
|
10715
10727
|
readonly amount: number;
|
|
10716
10728
|
readonly rate: number;
|
|
@@ -11462,6 +11474,26 @@ declare namespace io.flow.internal.v0.models {
|
|
|
11462
11474
|
readonly repeat_every_minutes: number;
|
|
11463
11475
|
readonly count: number;
|
|
11464
11476
|
}
|
|
11477
|
+
interface ExportTrackingLabel {
|
|
11478
|
+
readonly id: string;
|
|
11479
|
+
readonly carrier: string;
|
|
11480
|
+
readonly carrier_tracking_number: string;
|
|
11481
|
+
readonly status: io.flow.tracking.v0.enums.TrackingStatus;
|
|
11482
|
+
readonly timestamp: string;
|
|
11483
|
+
readonly delivery_estimate?: string;
|
|
11484
|
+
readonly description?: string;
|
|
11485
|
+
}
|
|
11486
|
+
interface ExportTrackingLabelEvent {
|
|
11487
|
+
readonly address?: io.flow.common.v0.models.Address;
|
|
11488
|
+
readonly carrier: string;
|
|
11489
|
+
readonly carrier_timestamp: string;
|
|
11490
|
+
readonly carrier_tracking_number: string;
|
|
11491
|
+
readonly flow_tracking_number: string;
|
|
11492
|
+
readonly status: io.flow.tracking.v0.enums.TrackingStatus;
|
|
11493
|
+
readonly delivery_estimate?: string;
|
|
11494
|
+
readonly description?: string;
|
|
11495
|
+
readonly order_number?: string;
|
|
11496
|
+
}
|
|
11465
11497
|
interface ExternalVariant {
|
|
11466
11498
|
readonly key: string;
|
|
11467
11499
|
readonly traffic_percentage: number;
|
|
@@ -12240,10 +12272,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
12240
12272
|
readonly format: io.flow.internal.v0.enums.Format;
|
|
12241
12273
|
readonly value: string;
|
|
12242
12274
|
}
|
|
12243
|
-
interface LabelProbability {
|
|
12244
|
-
readonly label: string;
|
|
12245
|
-
readonly probability: number;
|
|
12246
|
-
}
|
|
12247
12275
|
interface LabelSummary {
|
|
12248
12276
|
readonly commercial_invoice?: string;
|
|
12249
12277
|
readonly pdf?: string;
|
|
@@ -13357,20 +13385,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
13357
13385
|
readonly parent_transaction_id?: string;
|
|
13358
13386
|
readonly order?: io.flow.internal.v0.models.BillingOrderSummary;
|
|
13359
13387
|
}
|
|
13360
|
-
interface ProductClassification {
|
|
13361
|
-
readonly material: io.flow.internal.v0.models.LabelProbability[];
|
|
13362
|
-
readonly gender: io.flow.internal.v0.models.LabelProbability[];
|
|
13363
|
-
readonly construction: io.flow.internal.v0.models.LabelProbability[];
|
|
13364
|
-
readonly product_type: io.flow.internal.v0.models.LabelProbability[];
|
|
13365
|
-
}
|
|
13366
|
-
interface ProductClassificationCreated {
|
|
13367
|
-
readonly event_id: string;
|
|
13368
|
-
readonly timestamp: string;
|
|
13369
|
-
readonly organization: string;
|
|
13370
|
-
readonly product_id: string;
|
|
13371
|
-
readonly model_id: string;
|
|
13372
|
-
readonly classification: io.flow.internal.v0.models.ProductClassification;
|
|
13373
|
-
}
|
|
13374
13388
|
interface ProductClassificationJudgementForm {
|
|
13375
13389
|
readonly organization_id: string;
|
|
13376
13390
|
readonly product_id: string;
|
|
@@ -14102,12 +14116,42 @@ declare namespace io.flow.internal.v0.models {
|
|
|
14102
14116
|
readonly time: string;
|
|
14103
14117
|
readonly timezone: string;
|
|
14104
14118
|
}
|
|
14119
|
+
interface TrackingDeleted {
|
|
14120
|
+
readonly event_id: string;
|
|
14121
|
+
readonly timestamp: string;
|
|
14122
|
+
readonly organization: string;
|
|
14123
|
+
readonly tracking: io.flow.tracking.v0.models.Tracking;
|
|
14124
|
+
}
|
|
14105
14125
|
interface TrackingEvent {
|
|
14106
14126
|
readonly timestamp: string;
|
|
14107
14127
|
readonly carrier_status_code: string;
|
|
14108
14128
|
readonly location?: string;
|
|
14109
14129
|
readonly description?: string;
|
|
14110
14130
|
}
|
|
14131
|
+
interface TrackingLabelDeleted {
|
|
14132
|
+
readonly event_id: string;
|
|
14133
|
+
readonly timestamp: string;
|
|
14134
|
+
readonly organization: string;
|
|
14135
|
+
readonly tracking_label: io.flow.internal.v0.models.ExportTrackingLabel;
|
|
14136
|
+
}
|
|
14137
|
+
interface TrackingLabelEventDeletedV2 {
|
|
14138
|
+
readonly event_id: string;
|
|
14139
|
+
readonly timestamp: string;
|
|
14140
|
+
readonly organization: string;
|
|
14141
|
+
readonly tracking_label_event: io.flow.internal.v0.models.ExportTrackingLabelEvent;
|
|
14142
|
+
}
|
|
14143
|
+
interface TrackingLabelEventUpsertedV2 {
|
|
14144
|
+
readonly event_id: string;
|
|
14145
|
+
readonly timestamp: string;
|
|
14146
|
+
readonly organization: string;
|
|
14147
|
+
readonly tracking_label_event: io.flow.internal.v0.models.ExportTrackingLabelEvent;
|
|
14148
|
+
}
|
|
14149
|
+
interface TrackingLabelUpserted {
|
|
14150
|
+
readonly event_id: string;
|
|
14151
|
+
readonly timestamp: string;
|
|
14152
|
+
readonly organization: string;
|
|
14153
|
+
readonly tracking_label: io.flow.internal.v0.models.ExportTrackingLabel;
|
|
14154
|
+
}
|
|
14111
14155
|
interface TrackingRequest {
|
|
14112
14156
|
readonly carrier: string;
|
|
14113
14157
|
readonly carrier_tracking_number: string;
|
|
@@ -14139,6 +14183,12 @@ declare namespace io.flow.internal.v0.models {
|
|
|
14139
14183
|
readonly status: io.flow.tracking.v0.enums.TrackingStatus;
|
|
14140
14184
|
readonly label: io.flow.internal.v0.models.LabelSummary;
|
|
14141
14185
|
}
|
|
14186
|
+
interface TrackingUpserted {
|
|
14187
|
+
readonly event_id: string;
|
|
14188
|
+
readonly timestamp: string;
|
|
14189
|
+
readonly organization: string;
|
|
14190
|
+
readonly tracking: io.flow.tracking.v0.models.Tracking;
|
|
14191
|
+
}
|
|
14142
14192
|
interface TransactionReference {
|
|
14143
14193
|
readonly id: string;
|
|
14144
14194
|
}
|
|
@@ -14425,8 +14475,6 @@ declare namespace io.flow.internal.v0.unions {
|
|
|
14425
14475
|
} & io.flow.internal.v0.models.HarmonizationCodesImport | {
|
|
14426
14476
|
discriminator: 'customs_description_sugestion_created';
|
|
14427
14477
|
} & io.flow.internal.v0.models.CustomsDescriptionSugestionCreated | {
|
|
14428
|
-
discriminator: 'product_classification_created';
|
|
14429
|
-
} & io.flow.internal.v0.models.ProductClassificationCreated | {
|
|
14430
14478
|
discriminator: 'harmonize_fully_with_rate';
|
|
14431
14479
|
} & io.flow.internal.v0.models.HarmonizeFullyWithRate | {
|
|
14432
14480
|
discriminator: 'item_harmonized';
|
|
@@ -14553,6 +14601,18 @@ declare namespace io.flow.internal.v0.unions {
|
|
|
14553
14601
|
} & io.flow.internal.v0.models.SvbVirtualCardClearingUpserted | {
|
|
14554
14602
|
discriminator: 'svb_virtual_card_clearing_deleted';
|
|
14555
14603
|
} & io.flow.internal.v0.models.SvbVirtualCardClearingDeleted | {
|
|
14604
|
+
discriminator: 'tracking_label_event_upserted_v2';
|
|
14605
|
+
} & io.flow.internal.v0.models.TrackingLabelEventUpsertedV2 | {
|
|
14606
|
+
discriminator: 'tracking_label_event_deleted_v2';
|
|
14607
|
+
} & io.flow.internal.v0.models.TrackingLabelEventDeletedV2 | {
|
|
14608
|
+
discriminator: 'tracking_label_upserted';
|
|
14609
|
+
} & io.flow.internal.v0.models.TrackingLabelUpserted | {
|
|
14610
|
+
discriminator: 'tracking_label_deleted';
|
|
14611
|
+
} & io.flow.internal.v0.models.TrackingLabelDeleted | {
|
|
14612
|
+
discriminator: 'tracking_upserted';
|
|
14613
|
+
} & io.flow.internal.v0.models.TrackingUpserted | {
|
|
14614
|
+
discriminator: 'tracking_deleted';
|
|
14615
|
+
} & io.flow.internal.v0.models.TrackingDeleted | {
|
|
14556
14616
|
discriminator: 'tracking_request_upserted';
|
|
14557
14617
|
} & io.flow.internal.v0.models.TrackingRequestUpserted | {
|
|
14558
14618
|
discriminator: 'tracking_response_upserted';
|
|
@@ -14883,6 +14943,9 @@ export declare type BrowserBundleErrorCode = io.flow.internal.v0.enums.BrowserBu
|
|
|
14883
14943
|
export declare type BrowserBundleFeatureForm = io.flow.internal.v0.models.BrowserBundleFeatureForm;
|
|
14884
14944
|
export declare type BrowserBundleForm = io.flow.internal.v0.models.BrowserBundleForm;
|
|
14885
14945
|
export declare type BrowserBundleOptinForm = io.flow.internal.v0.models.BrowserBundleOptinForm;
|
|
14946
|
+
export declare type BrowserBundlePaymentMethod = io.flow.internal.v0.models.BrowserBundlePaymentMethod;
|
|
14947
|
+
export declare type BrowserBundlePaymentMethodForm = io.flow.internal.v0.models.BrowserBundlePaymentMethodForm;
|
|
14948
|
+
export declare type BrowserBundlePaymentMethods = io.flow.internal.v0.models.BrowserBundlePaymentMethods;
|
|
14886
14949
|
export declare type CalculatedTaxAmount = io.flow.internal.v0.models.CalculatedTaxAmount;
|
|
14887
14950
|
export declare type CarrierAccount = io.flow.internal.v0.models.CarrierAccount;
|
|
14888
14951
|
export declare type CarrierAccountUpserted = io.flow.internal.v0.models.CarrierAccountUpserted;
|
|
@@ -15042,6 +15105,8 @@ export declare type ExportFailed = io.flow.internal.v0.models.ExportFailed;
|
|
|
15042
15105
|
export declare type ExportSchedule = io.flow.internal.v0.unions.ExportSchedule;
|
|
15043
15106
|
export declare type ExportScheduleDaily = io.flow.internal.v0.models.ExportScheduleDaily;
|
|
15044
15107
|
export declare type ExportScheduleRepeated = io.flow.internal.v0.models.ExportScheduleRepeated;
|
|
15108
|
+
export declare type ExportTrackingLabel = io.flow.internal.v0.models.ExportTrackingLabel;
|
|
15109
|
+
export declare type ExportTrackingLabelEvent = io.flow.internal.v0.models.ExportTrackingLabelEvent;
|
|
15045
15110
|
export declare type ExternalVariant = io.flow.internal.v0.models.ExternalVariant;
|
|
15046
15111
|
export declare type Feature = io.flow.internal.v0.models.Feature;
|
|
15047
15112
|
export declare type FeatureContextForm = io.flow.internal.v0.models.FeatureContextForm;
|
|
@@ -15211,7 +15276,6 @@ export declare type Key = io.flow.internal.v0.models.Key;
|
|
|
15211
15276
|
export declare type KeyReference = io.flow.internal.v0.models.KeyReference;
|
|
15212
15277
|
export declare type Label = io.flow.internal.v0.models.Label;
|
|
15213
15278
|
export declare type LabelBillingStrategy = io.flow.internal.v0.enums.LabelBillingStrategy;
|
|
15214
|
-
export declare type LabelProbability = io.flow.internal.v0.models.LabelProbability;
|
|
15215
15279
|
export declare type LabelSummary = io.flow.internal.v0.models.LabelSummary;
|
|
15216
15280
|
export declare type LabeledContent = io.flow.internal.v0.models.LabeledContent;
|
|
15217
15281
|
export declare type LandedCostExport = io.flow.internal.v0.models.LandedCostExport;
|
|
@@ -15427,8 +15491,6 @@ export declare type PrioritizedCenterReference = io.flow.internal.v0.models.Prio
|
|
|
15427
15491
|
export declare type ProcessingTransaction = io.flow.internal.v0.models.ProcessingTransaction;
|
|
15428
15492
|
export declare type ProcessingTransactionType = io.flow.internal.v0.enums.ProcessingTransactionType;
|
|
15429
15493
|
export declare type Processor = io.flow.internal.v0.enums.Processor;
|
|
15430
|
-
export declare type ProductClassification = io.flow.internal.v0.models.ProductClassification;
|
|
15431
|
-
export declare type ProductClassificationCreated = io.flow.internal.v0.models.ProductClassificationCreated;
|
|
15432
15494
|
export declare type ProductClassificationJudgementForm = io.flow.internal.v0.models.ProductClassificationJudgementForm;
|
|
15433
15495
|
export declare type ProductClassificationResult = io.flow.internal.v0.models.ProductClassificationResult;
|
|
15434
15496
|
export declare type PromptAction = io.flow.internal.v0.enums.PromptAction;
|
|
@@ -15581,13 +15643,19 @@ export declare type TaxRemittanceTransactionUpserted = io.flow.internal.v0.model
|
|
|
15581
15643
|
export declare type TimeCondition = io.flow.internal.v0.models.TimeCondition;
|
|
15582
15644
|
export declare type TimeWithTimezone = io.flow.internal.v0.models.TimeWithTimezone;
|
|
15583
15645
|
export declare type TimeseriesType = io.flow.internal.v0.enums.TimeseriesType;
|
|
15646
|
+
export declare type TrackingDeleted = io.flow.internal.v0.models.TrackingDeleted;
|
|
15584
15647
|
export declare type TrackingEvent = io.flow.internal.v0.models.TrackingEvent;
|
|
15585
15648
|
export declare type TrackingIntegrationType = io.flow.internal.v0.enums.TrackingIntegrationType;
|
|
15649
|
+
export declare type TrackingLabelDeleted = io.flow.internal.v0.models.TrackingLabelDeleted;
|
|
15650
|
+
export declare type TrackingLabelEventDeletedV2 = io.flow.internal.v0.models.TrackingLabelEventDeletedV2;
|
|
15651
|
+
export declare type TrackingLabelEventUpsertedV2 = io.flow.internal.v0.models.TrackingLabelEventUpsertedV2;
|
|
15652
|
+
export declare type TrackingLabelUpserted = io.flow.internal.v0.models.TrackingLabelUpserted;
|
|
15586
15653
|
export declare type TrackingRequest = io.flow.internal.v0.models.TrackingRequest;
|
|
15587
15654
|
export declare type TrackingRequestUpserted = io.flow.internal.v0.models.TrackingRequestUpserted;
|
|
15588
15655
|
export declare type TrackingResponse = io.flow.internal.v0.models.TrackingResponse;
|
|
15589
15656
|
export declare type TrackingResponseUpserted = io.flow.internal.v0.models.TrackingResponseUpserted;
|
|
15590
15657
|
export declare type TrackingSummary = io.flow.internal.v0.models.TrackingSummary;
|
|
15658
|
+
export declare type TrackingUpserted = io.flow.internal.v0.models.TrackingUpserted;
|
|
15591
15659
|
export declare type Transaction = io.flow.internal.v0.unions.Transaction;
|
|
15592
15660
|
export declare type TransactionReference = io.flow.internal.v0.models.TransactionReference;
|
|
15593
15661
|
export declare type TransactionSummary = io.flow.internal.v0.unions.TransactionSummary;
|
package/dist/api.d.ts
CHANGED
|
@@ -2309,7 +2309,6 @@ declare namespace io.flow.v0.models {
|
|
|
2309
2309
|
[key: string]: string;
|
|
2310
2310
|
};
|
|
2311
2311
|
readonly center?: string;
|
|
2312
|
-
readonly discount?: io.flow.v0.models.MoneyWithOptionalBase;
|
|
2313
2312
|
readonly line_number?: number;
|
|
2314
2313
|
}
|
|
2315
2314
|
interface DeliveryOption {
|
|
@@ -3060,6 +3059,8 @@ declare namespace io.flow.v0.models {
|
|
|
3060
3059
|
interface HarmonizedItemForm {
|
|
3061
3060
|
readonly name: string;
|
|
3062
3061
|
readonly number: string;
|
|
3062
|
+
readonly currency: string;
|
|
3063
|
+
readonly price: number;
|
|
3063
3064
|
readonly categories?: string[];
|
|
3064
3065
|
readonly description?: string;
|
|
3065
3066
|
readonly attributes?: {
|
|
@@ -3068,6 +3069,8 @@ declare namespace io.flow.v0.models {
|
|
|
3068
3069
|
}
|
|
3069
3070
|
interface HarmonizedItemPutForm {
|
|
3070
3071
|
readonly name: string;
|
|
3072
|
+
readonly currency: string;
|
|
3073
|
+
readonly price: number;
|
|
3071
3074
|
readonly categories?: string[];
|
|
3072
3075
|
readonly description?: string;
|
|
3073
3076
|
readonly attributes?: {
|
|
@@ -4454,6 +4457,48 @@ declare namespace io.flow.v0.models {
|
|
|
4454
4457
|
readonly identifier: string;
|
|
4455
4458
|
readonly primary?: boolean;
|
|
4456
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
|
+
}
|
|
4457
4502
|
interface OrderUpserted {
|
|
4458
4503
|
readonly event_id: string;
|
|
4459
4504
|
readonly timestamp: string;
|
|
@@ -5164,8 +5209,6 @@ declare namespace io.flow.v0.models {
|
|
|
5164
5209
|
[key: string]: string;
|
|
5165
5210
|
};
|
|
5166
5211
|
readonly center?: string;
|
|
5167
|
-
readonly discount?: io.flow.v0.models.Money;
|
|
5168
|
-
readonly discounts?: io.flow.v0.models.DiscountsForm;
|
|
5169
5212
|
}
|
|
5170
5213
|
interface QuoteSummary {
|
|
5171
5214
|
readonly id: string;
|
|
@@ -8390,6 +8433,12 @@ export declare type OrderServiceChangeRequestData = io.flow.v0.models.OrderServi
|
|
|
8390
8433
|
export declare type OrderStatus = io.flow.v0.enums.OrderStatus;
|
|
8391
8434
|
export declare type OrderSubmissionForm = io.flow.v0.models.OrderSubmissionForm;
|
|
8392
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;
|
|
8393
8442
|
export declare type OrderUpserted = io.flow.v0.models.OrderUpserted;
|
|
8394
8443
|
export declare type OrderUpsertedV2 = io.flow.v0.models.OrderUpsertedV2;
|
|
8395
8444
|
export declare type OrderVersion = io.flow.v0.models.OrderVersion;
|
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": "b14e279c40a45cb8aa4087422e3853e514f5b34a"
|
|
28
|
+
"typescript": "^3.6.3"
|
|
29
|
+
}
|
|
31
30
|
}
|
package/src/api-internal.ts
CHANGED
|
@@ -12612,7 +12612,6 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
12612
12612
|
| 'harmonization_phrase_suggestion_request_import'
|
|
12613
12613
|
| 'harmonization_codes_import'
|
|
12614
12614
|
| 'customs_description_sugestion_created'
|
|
12615
|
-
| 'product_classification_created'
|
|
12616
12615
|
| 'harmonize_fully_with_rate'
|
|
12617
12616
|
| 'item_harmonized'
|
|
12618
12617
|
| 'harmonize_fully_request'
|
|
@@ -12676,6 +12675,12 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
12676
12675
|
| 'stripe_refund_upserted'
|
|
12677
12676
|
| 'svb_virtual_card_clearing_upserted'
|
|
12678
12677
|
| 'svb_virtual_card_clearing_deleted'
|
|
12678
|
+
| 'tracking_label_event_upserted_v2'
|
|
12679
|
+
| 'tracking_label_event_deleted_v2'
|
|
12680
|
+
| 'tracking_label_upserted'
|
|
12681
|
+
| 'tracking_label_deleted'
|
|
12682
|
+
| 'tracking_upserted'
|
|
12683
|
+
| 'tracking_deleted'
|
|
12679
12684
|
| 'tracking_request_upserted'
|
|
12680
12685
|
| 'tracking_response_upserted'
|
|
12681
12686
|
| 'user_upserted_v2'
|
|
@@ -13524,6 +13529,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
13524
13529
|
readonly country_picker: io.flow.country.picker.v0.models.CountryPickerData;
|
|
13525
13530
|
readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
|
|
13526
13531
|
readonly features: io.flow.feature.v0.models.FeatureValueResult;
|
|
13532
|
+
readonly payment_methods?: io.flow.internal.v0.models.BrowserBundlePaymentMethods;
|
|
13527
13533
|
}
|
|
13528
13534
|
|
|
13529
13535
|
interface BrowserBundleCountryPickerForm {
|
|
@@ -13546,12 +13552,26 @@ declare namespace io.flow.internal.v0.models {
|
|
|
13546
13552
|
readonly optin?: io.flow.internal.v0.models.BrowserBundleOptinForm;
|
|
13547
13553
|
readonly country_picker?: io.flow.internal.v0.models.BrowserBundleCountryPickerForm;
|
|
13548
13554
|
readonly feature?: io.flow.internal.v0.models.BrowserBundleFeatureForm;
|
|
13555
|
+
readonly payment_method?: io.flow.internal.v0.models.BrowserBundlePaymentMethodForm;
|
|
13549
13556
|
}
|
|
13550
13557
|
|
|
13551
13558
|
interface BrowserBundleOptinForm {
|
|
13552
13559
|
readonly country: string;
|
|
13553
13560
|
}
|
|
13554
13561
|
|
|
13562
|
+
interface BrowserBundlePaymentMethod {
|
|
13563
|
+
readonly id: string;
|
|
13564
|
+
}
|
|
13565
|
+
|
|
13566
|
+
interface BrowserBundlePaymentMethodForm {
|
|
13567
|
+
readonly experience_key?: string;
|
|
13568
|
+
readonly country?: string;
|
|
13569
|
+
}
|
|
13570
|
+
|
|
13571
|
+
interface BrowserBundlePaymentMethods {
|
|
13572
|
+
readonly displayed?: io.flow.internal.v0.models.BrowserBundlePaymentMethod[];
|
|
13573
|
+
}
|
|
13574
|
+
|
|
13555
13575
|
interface CalculatedTaxAmount {
|
|
13556
13576
|
readonly amount: number;
|
|
13557
13577
|
readonly rate: number;
|
|
@@ -14432,6 +14452,28 @@ declare namespace io.flow.internal.v0.models {
|
|
|
14432
14452
|
readonly count: number;
|
|
14433
14453
|
}
|
|
14434
14454
|
|
|
14455
|
+
interface ExportTrackingLabel {
|
|
14456
|
+
readonly id: string;
|
|
14457
|
+
readonly carrier: string;
|
|
14458
|
+
readonly carrier_tracking_number: string;
|
|
14459
|
+
readonly status: io.flow.tracking.v0.enums.TrackingStatus;
|
|
14460
|
+
readonly timestamp: string;
|
|
14461
|
+
readonly delivery_estimate?: string;
|
|
14462
|
+
readonly description?: string;
|
|
14463
|
+
}
|
|
14464
|
+
|
|
14465
|
+
interface ExportTrackingLabelEvent {
|
|
14466
|
+
readonly address?: io.flow.common.v0.models.Address;
|
|
14467
|
+
readonly carrier: string;
|
|
14468
|
+
readonly carrier_timestamp: string;
|
|
14469
|
+
readonly carrier_tracking_number: string;
|
|
14470
|
+
readonly flow_tracking_number: string;
|
|
14471
|
+
readonly status: io.flow.tracking.v0.enums.TrackingStatus;
|
|
14472
|
+
readonly delivery_estimate?: string;
|
|
14473
|
+
readonly description?: string;
|
|
14474
|
+
readonly order_number?: string;
|
|
14475
|
+
}
|
|
14476
|
+
|
|
14435
14477
|
interface ExternalVariant {
|
|
14436
14478
|
readonly key: string;
|
|
14437
14479
|
readonly traffic_percentage: number;
|
|
@@ -15345,11 +15387,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
15345
15387
|
readonly value: string;
|
|
15346
15388
|
}
|
|
15347
15389
|
|
|
15348
|
-
interface LabelProbability {
|
|
15349
|
-
readonly label: string;
|
|
15350
|
-
readonly probability: number;
|
|
15351
|
-
}
|
|
15352
|
-
|
|
15353
15390
|
interface LabelSummary {
|
|
15354
15391
|
readonly commercial_invoice?: string;
|
|
15355
15392
|
readonly pdf?: string;
|
|
@@ -16642,22 +16679,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
16642
16679
|
readonly order?: io.flow.internal.v0.models.BillingOrderSummary;
|
|
16643
16680
|
}
|
|
16644
16681
|
|
|
16645
|
-
interface ProductClassification {
|
|
16646
|
-
readonly material: io.flow.internal.v0.models.LabelProbability[];
|
|
16647
|
-
readonly gender: io.flow.internal.v0.models.LabelProbability[];
|
|
16648
|
-
readonly construction: io.flow.internal.v0.models.LabelProbability[];
|
|
16649
|
-
readonly product_type: io.flow.internal.v0.models.LabelProbability[];
|
|
16650
|
-
}
|
|
16651
|
-
|
|
16652
|
-
interface ProductClassificationCreated {
|
|
16653
|
-
readonly event_id: string;
|
|
16654
|
-
readonly timestamp: string;
|
|
16655
|
-
readonly organization: string;
|
|
16656
|
-
readonly product_id: string;
|
|
16657
|
-
readonly model_id: string;
|
|
16658
|
-
readonly classification: io.flow.internal.v0.models.ProductClassification;
|
|
16659
|
-
}
|
|
16660
|
-
|
|
16661
16682
|
interface ProductClassificationJudgementForm {
|
|
16662
16683
|
readonly organization_id: string;
|
|
16663
16684
|
readonly product_id: string;
|
|
@@ -17513,6 +17534,13 @@ declare namespace io.flow.internal.v0.models {
|
|
|
17513
17534
|
readonly timezone: string;
|
|
17514
17535
|
}
|
|
17515
17536
|
|
|
17537
|
+
interface TrackingDeleted {
|
|
17538
|
+
readonly event_id: string;
|
|
17539
|
+
readonly timestamp: string;
|
|
17540
|
+
readonly organization: string;
|
|
17541
|
+
readonly tracking: io.flow.tracking.v0.models.Tracking;
|
|
17542
|
+
}
|
|
17543
|
+
|
|
17516
17544
|
interface TrackingEvent {
|
|
17517
17545
|
readonly timestamp: string;
|
|
17518
17546
|
readonly carrier_status_code: string;
|
|
@@ -17520,6 +17548,34 @@ declare namespace io.flow.internal.v0.models {
|
|
|
17520
17548
|
readonly description?: string;
|
|
17521
17549
|
}
|
|
17522
17550
|
|
|
17551
|
+
interface TrackingLabelDeleted {
|
|
17552
|
+
readonly event_id: string;
|
|
17553
|
+
readonly timestamp: string;
|
|
17554
|
+
readonly organization: string;
|
|
17555
|
+
readonly tracking_label: io.flow.internal.v0.models.ExportTrackingLabel;
|
|
17556
|
+
}
|
|
17557
|
+
|
|
17558
|
+
interface TrackingLabelEventDeletedV2 {
|
|
17559
|
+
readonly event_id: string;
|
|
17560
|
+
readonly timestamp: string;
|
|
17561
|
+
readonly organization: string;
|
|
17562
|
+
readonly tracking_label_event: io.flow.internal.v0.models.ExportTrackingLabelEvent;
|
|
17563
|
+
}
|
|
17564
|
+
|
|
17565
|
+
interface TrackingLabelEventUpsertedV2 {
|
|
17566
|
+
readonly event_id: string;
|
|
17567
|
+
readonly timestamp: string;
|
|
17568
|
+
readonly organization: string;
|
|
17569
|
+
readonly tracking_label_event: io.flow.internal.v0.models.ExportTrackingLabelEvent;
|
|
17570
|
+
}
|
|
17571
|
+
|
|
17572
|
+
interface TrackingLabelUpserted {
|
|
17573
|
+
readonly event_id: string;
|
|
17574
|
+
readonly timestamp: string;
|
|
17575
|
+
readonly organization: string;
|
|
17576
|
+
readonly tracking_label: io.flow.internal.v0.models.ExportTrackingLabel;
|
|
17577
|
+
}
|
|
17578
|
+
|
|
17523
17579
|
interface TrackingRequest {
|
|
17524
17580
|
readonly carrier: string;
|
|
17525
17581
|
readonly carrier_tracking_number: string;
|
|
@@ -17556,6 +17612,13 @@ declare namespace io.flow.internal.v0.models {
|
|
|
17556
17612
|
readonly label: io.flow.internal.v0.models.LabelSummary;
|
|
17557
17613
|
}
|
|
17558
17614
|
|
|
17615
|
+
interface TrackingUpserted {
|
|
17616
|
+
readonly event_id: string;
|
|
17617
|
+
readonly timestamp: string;
|
|
17618
|
+
readonly organization: string;
|
|
17619
|
+
readonly tracking: io.flow.tracking.v0.models.Tracking;
|
|
17620
|
+
}
|
|
17621
|
+
|
|
17559
17622
|
interface TransactionReference {
|
|
17560
17623
|
readonly id: string;
|
|
17561
17624
|
}
|
|
@@ -17960,9 +18023,6 @@ declare namespace io.flow.internal.v0.unions {
|
|
|
17960
18023
|
| {
|
|
17961
18024
|
discriminator: 'customs_description_sugestion_created';
|
|
17962
18025
|
} & io.flow.internal.v0.models.CustomsDescriptionSugestionCreated
|
|
17963
|
-
| {
|
|
17964
|
-
discriminator: 'product_classification_created';
|
|
17965
|
-
} & io.flow.internal.v0.models.ProductClassificationCreated
|
|
17966
18026
|
| {
|
|
17967
18027
|
discriminator: 'harmonize_fully_with_rate';
|
|
17968
18028
|
} & io.flow.internal.v0.models.HarmonizeFullyWithRate
|
|
@@ -18152,6 +18212,24 @@ declare namespace io.flow.internal.v0.unions {
|
|
|
18152
18212
|
| {
|
|
18153
18213
|
discriminator: 'svb_virtual_card_clearing_deleted';
|
|
18154
18214
|
} & io.flow.internal.v0.models.SvbVirtualCardClearingDeleted
|
|
18215
|
+
| {
|
|
18216
|
+
discriminator: 'tracking_label_event_upserted_v2';
|
|
18217
|
+
} & io.flow.internal.v0.models.TrackingLabelEventUpsertedV2
|
|
18218
|
+
| {
|
|
18219
|
+
discriminator: 'tracking_label_event_deleted_v2';
|
|
18220
|
+
} & io.flow.internal.v0.models.TrackingLabelEventDeletedV2
|
|
18221
|
+
| {
|
|
18222
|
+
discriminator: 'tracking_label_upserted';
|
|
18223
|
+
} & io.flow.internal.v0.models.TrackingLabelUpserted
|
|
18224
|
+
| {
|
|
18225
|
+
discriminator: 'tracking_label_deleted';
|
|
18226
|
+
} & io.flow.internal.v0.models.TrackingLabelDeleted
|
|
18227
|
+
| {
|
|
18228
|
+
discriminator: 'tracking_upserted';
|
|
18229
|
+
} & io.flow.internal.v0.models.TrackingUpserted
|
|
18230
|
+
| {
|
|
18231
|
+
discriminator: 'tracking_deleted';
|
|
18232
|
+
} & io.flow.internal.v0.models.TrackingDeleted
|
|
18155
18233
|
| {
|
|
18156
18234
|
discriminator: 'tracking_request_upserted';
|
|
18157
18235
|
} & io.flow.internal.v0.models.TrackingRequestUpserted
|
|
@@ -18603,6 +18681,9 @@ export type BrowserBundleErrorCode = io.flow.internal.v0.enums.BrowserBundleErro
|
|
|
18603
18681
|
export type BrowserBundleFeatureForm = io.flow.internal.v0.models.BrowserBundleFeatureForm;
|
|
18604
18682
|
export type BrowserBundleForm = io.flow.internal.v0.models.BrowserBundleForm;
|
|
18605
18683
|
export type BrowserBundleOptinForm = io.flow.internal.v0.models.BrowserBundleOptinForm;
|
|
18684
|
+
export type BrowserBundlePaymentMethod = io.flow.internal.v0.models.BrowserBundlePaymentMethod;
|
|
18685
|
+
export type BrowserBundlePaymentMethodForm = io.flow.internal.v0.models.BrowserBundlePaymentMethodForm;
|
|
18686
|
+
export type BrowserBundlePaymentMethods = io.flow.internal.v0.models.BrowserBundlePaymentMethods;
|
|
18606
18687
|
export type CalculatedTaxAmount = io.flow.internal.v0.models.CalculatedTaxAmount;
|
|
18607
18688
|
export type CarrierAccount = io.flow.internal.v0.models.CarrierAccount;
|
|
18608
18689
|
export type CarrierAccountUpserted = io.flow.internal.v0.models.CarrierAccountUpserted;
|
|
@@ -18762,6 +18843,8 @@ export type ExportFailed = io.flow.internal.v0.models.ExportFailed;
|
|
|
18762
18843
|
export type ExportSchedule = io.flow.internal.v0.unions.ExportSchedule;
|
|
18763
18844
|
export type ExportScheduleDaily = io.flow.internal.v0.models.ExportScheduleDaily;
|
|
18764
18845
|
export type ExportScheduleRepeated = io.flow.internal.v0.models.ExportScheduleRepeated;
|
|
18846
|
+
export type ExportTrackingLabel = io.flow.internal.v0.models.ExportTrackingLabel;
|
|
18847
|
+
export type ExportTrackingLabelEvent = io.flow.internal.v0.models.ExportTrackingLabelEvent;
|
|
18765
18848
|
export type ExternalVariant = io.flow.internal.v0.models.ExternalVariant;
|
|
18766
18849
|
export type Feature = io.flow.internal.v0.models.Feature;
|
|
18767
18850
|
export type FeatureContextForm = io.flow.internal.v0.models.FeatureContextForm;
|
|
@@ -18931,7 +19014,6 @@ export type Key = io.flow.internal.v0.models.Key;
|
|
|
18931
19014
|
export type KeyReference = io.flow.internal.v0.models.KeyReference;
|
|
18932
19015
|
export type Label = io.flow.internal.v0.models.Label;
|
|
18933
19016
|
export type LabelBillingStrategy = io.flow.internal.v0.enums.LabelBillingStrategy;
|
|
18934
|
-
export type LabelProbability = io.flow.internal.v0.models.LabelProbability;
|
|
18935
19017
|
export type LabelSummary = io.flow.internal.v0.models.LabelSummary;
|
|
18936
19018
|
export type LabeledContent = io.flow.internal.v0.models.LabeledContent;
|
|
18937
19019
|
export type LandedCostExport = io.flow.internal.v0.models.LandedCostExport;
|
|
@@ -19147,8 +19229,6 @@ export type PrioritizedCenterReference = io.flow.internal.v0.models.PrioritizedC
|
|
|
19147
19229
|
export type ProcessingTransaction = io.flow.internal.v0.models.ProcessingTransaction;
|
|
19148
19230
|
export type ProcessingTransactionType = io.flow.internal.v0.enums.ProcessingTransactionType;
|
|
19149
19231
|
export type Processor = io.flow.internal.v0.enums.Processor;
|
|
19150
|
-
export type ProductClassification = io.flow.internal.v0.models.ProductClassification;
|
|
19151
|
-
export type ProductClassificationCreated = io.flow.internal.v0.models.ProductClassificationCreated;
|
|
19152
19232
|
export type ProductClassificationJudgementForm = io.flow.internal.v0.models.ProductClassificationJudgementForm;
|
|
19153
19233
|
export type ProductClassificationResult = io.flow.internal.v0.models.ProductClassificationResult;
|
|
19154
19234
|
export type PromptAction = io.flow.internal.v0.enums.PromptAction;
|
|
@@ -19301,13 +19381,19 @@ export type TaxRemittanceTransactionUpserted = io.flow.internal.v0.models.TaxRem
|
|
|
19301
19381
|
export type TimeCondition = io.flow.internal.v0.models.TimeCondition;
|
|
19302
19382
|
export type TimeWithTimezone = io.flow.internal.v0.models.TimeWithTimezone;
|
|
19303
19383
|
export type TimeseriesType = io.flow.internal.v0.enums.TimeseriesType;
|
|
19384
|
+
export type TrackingDeleted = io.flow.internal.v0.models.TrackingDeleted;
|
|
19304
19385
|
export type TrackingEvent = io.flow.internal.v0.models.TrackingEvent;
|
|
19305
19386
|
export type TrackingIntegrationType = io.flow.internal.v0.enums.TrackingIntegrationType;
|
|
19387
|
+
export type TrackingLabelDeleted = io.flow.internal.v0.models.TrackingLabelDeleted;
|
|
19388
|
+
export type TrackingLabelEventDeletedV2 = io.flow.internal.v0.models.TrackingLabelEventDeletedV2;
|
|
19389
|
+
export type TrackingLabelEventUpsertedV2 = io.flow.internal.v0.models.TrackingLabelEventUpsertedV2;
|
|
19390
|
+
export type TrackingLabelUpserted = io.flow.internal.v0.models.TrackingLabelUpserted;
|
|
19306
19391
|
export type TrackingRequest = io.flow.internal.v0.models.TrackingRequest;
|
|
19307
19392
|
export type TrackingRequestUpserted = io.flow.internal.v0.models.TrackingRequestUpserted;
|
|
19308
19393
|
export type TrackingResponse = io.flow.internal.v0.models.TrackingResponse;
|
|
19309
19394
|
export type TrackingResponseUpserted = io.flow.internal.v0.models.TrackingResponseUpserted;
|
|
19310
19395
|
export type TrackingSummary = io.flow.internal.v0.models.TrackingSummary;
|
|
19396
|
+
export type TrackingUpserted = io.flow.internal.v0.models.TrackingUpserted;
|
|
19311
19397
|
export type Transaction = io.flow.internal.v0.unions.Transaction;
|
|
19312
19398
|
export type TransactionReference = io.flow.internal.v0.models.TransactionReference;
|
|
19313
19399
|
export type TransactionSummary = io.flow.internal.v0.unions.TransactionSummary;
|
package/src/api.ts
CHANGED
|
@@ -3180,7 +3180,6 @@ declare namespace io.flow.v0.models {
|
|
|
3180
3180
|
[key: string]: string;
|
|
3181
3181
|
};
|
|
3182
3182
|
readonly center?: string;
|
|
3183
|
-
readonly discount?: io.flow.v0.models.MoneyWithOptionalBase;
|
|
3184
3183
|
readonly line_number?: number;
|
|
3185
3184
|
}
|
|
3186
3185
|
|
|
@@ -4065,6 +4064,8 @@ declare namespace io.flow.v0.models {
|
|
|
4065
4064
|
interface HarmonizedItemForm {
|
|
4066
4065
|
readonly name: string;
|
|
4067
4066
|
readonly number: string;
|
|
4067
|
+
readonly currency: string;
|
|
4068
|
+
readonly price: number;
|
|
4068
4069
|
readonly categories?: string[];
|
|
4069
4070
|
readonly description?: string;
|
|
4070
4071
|
readonly attributes?: {
|
|
@@ -4074,6 +4075,8 @@ declare namespace io.flow.v0.models {
|
|
|
4074
4075
|
|
|
4075
4076
|
interface HarmonizedItemPutForm {
|
|
4076
4077
|
readonly name: string;
|
|
4078
|
+
readonly currency: string;
|
|
4079
|
+
readonly price: number;
|
|
4077
4080
|
readonly categories?: string[];
|
|
4078
4081
|
readonly description?: string;
|
|
4079
4082
|
readonly attributes?: {
|
|
@@ -5674,6 +5677,54 @@ declare namespace io.flow.v0.models {
|
|
|
5674
5677
|
readonly primary?: boolean;
|
|
5675
5678
|
}
|
|
5676
5679
|
|
|
5680
|
+
interface OrderSummary {
|
|
5681
|
+
readonly subtotal: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
5682
|
+
readonly shipping: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
5683
|
+
readonly tax?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
5684
|
+
readonly duty?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
5685
|
+
readonly insurance?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
5686
|
+
readonly discount?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
5687
|
+
readonly surcharges?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
5688
|
+
readonly total: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
5689
|
+
readonly lines: io.flow.v0.models.OrderSummaryLineItem[];
|
|
5690
|
+
}
|
|
5691
|
+
|
|
5692
|
+
interface OrderSummaryImage {
|
|
5693
|
+
readonly url: string;
|
|
5694
|
+
}
|
|
5695
|
+
|
|
5696
|
+
interface OrderSummaryItem {
|
|
5697
|
+
readonly number: string;
|
|
5698
|
+
readonly name: string;
|
|
5699
|
+
readonly description?: string;
|
|
5700
|
+
readonly attributes: io.flow.v0.models.CheckoutItemContentAttribute[];
|
|
5701
|
+
readonly image?: io.flow.v0.models.OrderSummaryImage;
|
|
5702
|
+
readonly price: io.flow.v0.models.Price;
|
|
5703
|
+
readonly discount?: io.flow.v0.models.Price;
|
|
5704
|
+
readonly tax?: io.flow.v0.models.OrderSummaryLevy;
|
|
5705
|
+
readonly duty?: io.flow.v0.models.OrderSummaryLevy;
|
|
5706
|
+
}
|
|
5707
|
+
|
|
5708
|
+
interface OrderSummaryLevy {
|
|
5709
|
+
readonly rate: number;
|
|
5710
|
+
readonly value: io.flow.v0.models.Price;
|
|
5711
|
+
}
|
|
5712
|
+
|
|
5713
|
+
interface OrderSummaryLineItem {
|
|
5714
|
+
readonly item: io.flow.v0.models.OrderSummaryItem;
|
|
5715
|
+
readonly quantity: number;
|
|
5716
|
+
readonly discount?: io.flow.v0.models.Price;
|
|
5717
|
+
readonly tax?: io.flow.v0.models.OrderSummaryLevy;
|
|
5718
|
+
readonly duty?: io.flow.v0.models.OrderSummaryLevy;
|
|
5719
|
+
readonly total: io.flow.v0.models.Price;
|
|
5720
|
+
}
|
|
5721
|
+
|
|
5722
|
+
interface OrderSummaryPriceDetail {
|
|
5723
|
+
readonly price: io.flow.v0.models.Price;
|
|
5724
|
+
readonly name?: string;
|
|
5725
|
+
readonly rate?: number;
|
|
5726
|
+
}
|
|
5727
|
+
|
|
5677
5728
|
interface OrderUpserted {
|
|
5678
5729
|
readonly event_id: string;
|
|
5679
5730
|
readonly timestamp: string;
|
|
@@ -6505,8 +6556,6 @@ declare namespace io.flow.v0.models {
|
|
|
6505
6556
|
[key: string]: string;
|
|
6506
6557
|
};
|
|
6507
6558
|
readonly center?: string;
|
|
6508
|
-
readonly discount?: io.flow.v0.models.Money;
|
|
6509
|
-
readonly discounts?: io.flow.v0.models.DiscountsForm;
|
|
6510
6559
|
}
|
|
6511
6560
|
|
|
6512
6561
|
interface QuoteSummary {
|
|
@@ -10397,6 +10446,12 @@ export type OrderServiceChangeRequestData = io.flow.v0.models.OrderServiceChange
|
|
|
10397
10446
|
export type OrderStatus = io.flow.v0.enums.OrderStatus;
|
|
10398
10447
|
export type OrderSubmissionForm = io.flow.v0.models.OrderSubmissionForm;
|
|
10399
10448
|
export type OrderSubmissionIdentifierForm = io.flow.v0.models.OrderSubmissionIdentifierForm;
|
|
10449
|
+
export type OrderSummary = io.flow.v0.models.OrderSummary;
|
|
10450
|
+
export type OrderSummaryImage = io.flow.v0.models.OrderSummaryImage;
|
|
10451
|
+
export type OrderSummaryItem = io.flow.v0.models.OrderSummaryItem;
|
|
10452
|
+
export type OrderSummaryLevy = io.flow.v0.models.OrderSummaryLevy;
|
|
10453
|
+
export type OrderSummaryLineItem = io.flow.v0.models.OrderSummaryLineItem;
|
|
10454
|
+
export type OrderSummaryPriceDetail = io.flow.v0.models.OrderSummaryPriceDetail;
|
|
10400
10455
|
export type OrderUpserted = io.flow.v0.models.OrderUpserted;
|
|
10401
10456
|
export type OrderUpsertedV2 = io.flow.v0.models.OrderUpsertedV2;
|
|
10402
10457
|
export type OrderVersion = io.flow.v0.models.OrderVersion;
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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.
|