@flowio/types 4.0.2 → 5.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 +1 -30
- package/dist/api.d.ts +53 -3
- package/package.json +2 -2
- package/src/api-internal.ts +1 -34
- package/src/api.ts +64 -2
package/dist/api-internal.d.ts
CHANGED
|
@@ -11104,6 +11104,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
11104
11104
|
readonly iso_3166_2: string;
|
|
11105
11105
|
readonly iso_3166_3: string;
|
|
11106
11106
|
readonly name: string;
|
|
11107
|
+
readonly default_currency?: string;
|
|
11107
11108
|
}
|
|
11108
11109
|
interface CountryPickerCurrency {
|
|
11109
11110
|
readonly iso_4217_3: string;
|
|
@@ -12803,32 +12804,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
12803
12804
|
readonly name: string;
|
|
12804
12805
|
readonly schema_compatibility: io.flow.internal.v0.enums.MarketingGatewaySchemaCompatibility;
|
|
12805
12806
|
}
|
|
12806
|
-
interface MultiProductItem {
|
|
12807
|
-
readonly item_id: string;
|
|
12808
|
-
readonly item_number: string;
|
|
12809
|
-
readonly product_id?: string;
|
|
12810
|
-
readonly organization_id: string;
|
|
12811
|
-
readonly sub_items: io.flow.internal.v0.models.MultiProductSubItem[];
|
|
12812
|
-
}
|
|
12813
|
-
interface MultiProductItemForm {
|
|
12814
|
-
readonly sub_item_forms: io.flow.internal.v0.models.MultiProductSubItemForm[];
|
|
12815
|
-
}
|
|
12816
|
-
interface MultiProductSubItem {
|
|
12817
|
-
readonly id: string;
|
|
12818
|
-
readonly origin: string;
|
|
12819
|
-
readonly composition_proportion: number;
|
|
12820
|
-
readonly description: string;
|
|
12821
|
-
readonly hs6_code?: string;
|
|
12822
|
-
readonly phrase_id?: string;
|
|
12823
|
-
readonly customs_description?: string;
|
|
12824
|
-
readonly classification_status: io.flow.internal.v0.enums.ItemClassificationStatus;
|
|
12825
|
-
}
|
|
12826
|
-
interface MultiProductSubItemForm {
|
|
12827
|
-
readonly composition_proportion: number;
|
|
12828
|
-
readonly origin: string;
|
|
12829
|
-
readonly description: string;
|
|
12830
|
-
readonly customs_description: string;
|
|
12831
|
-
}
|
|
12832
12807
|
interface NextBillingStatement {
|
|
12833
12808
|
readonly date: string;
|
|
12834
12809
|
readonly amount: io.flow.common.v0.models.Price;
|
|
@@ -15387,10 +15362,6 @@ export declare type MarketingGatewayProductsStatusCount = io.flow.internal.v0.mo
|
|
|
15387
15362
|
export declare type MarketingGatewaySchemaCompatibility = io.flow.internal.v0.enums.MarketingGatewaySchemaCompatibility;
|
|
15388
15363
|
export declare type MarketingGatewaySchemaSummary = io.flow.internal.v0.models.MarketingGatewaySchemaSummary;
|
|
15389
15364
|
export declare type MarketingGatewaySyncStatus = io.flow.internal.v0.enums.MarketingGatewaySyncStatus;
|
|
15390
|
-
export declare type MultiProductItem = io.flow.internal.v0.models.MultiProductItem;
|
|
15391
|
-
export declare type MultiProductItemForm = io.flow.internal.v0.models.MultiProductItemForm;
|
|
15392
|
-
export declare type MultiProductSubItem = io.flow.internal.v0.models.MultiProductSubItem;
|
|
15393
|
-
export declare type MultiProductSubItemForm = io.flow.internal.v0.models.MultiProductSubItemForm;
|
|
15394
15365
|
export declare type NextBillingStatement = io.flow.internal.v0.models.NextBillingStatement;
|
|
15395
15366
|
export declare type NextInstallment = io.flow.internal.v0.models.NextInstallment;
|
|
15396
15367
|
export declare type NextInstallmentDeleted = io.flow.internal.v0.models.NextInstallmentDeleted;
|
package/dist/api.d.ts
CHANGED
|
@@ -862,7 +862,7 @@ declare namespace io.flow.v0.enums {
|
|
|
862
862
|
type EcommercePlatformType = 'commercetools' | 'custom' | 'magento' | 'shopify' | 'sfcc' | 'solidus' | 'workarea';
|
|
863
863
|
type EconomicTitleLocation = 'high_seas' | 'origination' | 'destination';
|
|
864
864
|
type Environment = 'sandbox' | 'production';
|
|
865
|
-
type EventType = 'attribute_upserted' | 'attribute_deleted' | 'attribute_upserted_v2' | 'attribute_deleted_v2' | 'catalog_upserted' | 'catalog_deleted' | 'subcatalog_upserted' | 'subcatalog_deleted' | 'catalog_item_upserted' | 'catalog_item_deleted' | 'catalog_item_upserted_v2' | 'catalog_item_deleted_v2' | 'subcatalog_item_upserted' | 'subcatalog_item_deleted' | 'b2b_invoice_upserted' | 'b2b_invoice_deleted' | 'b2b_credit_memo_upserted' | 'b2b_credit_memo_deleted' | 'consumer_invoice_upserted' | 'consumer_invoice_deleted' | 'credit_memo_upserted' | 'credit_memo_deleted' | 'crossdock_shipment_upserted' | 'rate_deleted' | 'rate_upserted' | 'rate_deleted_v3' | 'rate_upserted_v3' | 'customer_upserted' | 'customer_deleted' | 'customer_address_book_contact_upserted' | 'customer_address_book_contact_deleted' | 'available_promotions_upserted' | 'available_promotions_deleted' | 'available_promotions_upserted_v2' | 'available_promotions_deleted_v2' | 'allocation_deleted_v2' | 'allocation_upserted_v2' | 'currency_format_deleted' | 'currency_format_upserted' | 'experience_deleted' | 'experience_upserted' | 'experience_deleted_v2' | 'experience_upserted_v2' | 'experience_price_book_mapping_deleted' | 'experience_price_book_mapping_upserted' | 'experience_logistics_settings_upserted' | 'experience_logistics_settings_deleted' | 'item_margin_deleted' | 'item_margin_upserted' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'label_format_deleted' | 'label_format_upserted' | 'order_deleted' | 'order_upserted' | 'order_deleted_v2' | 'order_upserted_v2' | 'order_identifier_deleted' | 'order_identifier_upserted' | 'order_identifier_deleted_v2' | 'order_identifier_upserted_v2' | 'order_identifier_upserted_v3' | 'pricing_deleted' | 'pricing_upserted' | 'order_service_change_request' | 'fraud_status_changed' | 'center_upserted' | 'center_deleted' | 'shipping_configuration_upserted' | 'shipping_configuration_deleted' | 'tier_upserted_v2' | 'tier_deleted_v2' | 'shipping_lane_upserted' | 'shipping_lane_deleted' | 'shipping_configuration_item_availability_upserted' | 'shipping_configuration_item_availability_deleted' | 'shipping_configuration_item_shipping_pricing_upserted' | 'shipping_configuration_item_shipping_pricing_deleted' | 'hs6_code_upserted' | 'hs6_code_deleted' | 'hs10_code_upserted' | 'hs10_code_deleted' | 'item_origin_upserted' | 'item_origin_deleted' | 'harmonized_landed_cost_upserted' | 'fully_harmonized_item_upserted' | 'rule_upserted' | 'rule_deleted' | 'serial_upserted' | 'serial_deleted' | 'snapshot_upserted' | 'snapshot_deleted' | 'label_upserted' | 'notification_upserted' | 'notification_deleted' | 'manifested_label_upserted' | 'manifested_label_deleted' | 'local_item_upserted' | 'local_item_deleted' | 'checkout_optin_responses_upserted' | 'checkout_optin_responses_deleted' | 'browse_optin_responses_upserted' | 'browse_optin_responses_deleted' | 'order_placed' | 'order_placed_v2' | 'ready_to_fulfill' | 'membership_upserted_v2' | 'membership_deleted_v2' | 'organization_upserted' | 'organization_deleted' | 'organization_upserted_v2' | 'organization_deleted_v2' | 'organization_short_id_upserted' | 'organization_short_id_deleted' | 'organization_default_configurations_upserted' | 'organization_default_configurations_deleted' | 'ecommerce_platform_upserted' | 'ecommerce_platform_deleted' | 'authorization_deleted_v2' | 'authorization_status_changed' | 'card_authorization_upserted_v2' | 'card_authorization_deleted_v2' | 'online_authorization_upserted_v2' | 'online_authorization_deleted_v2' | 'capture_upserted_v2' | 'capture_deleted' | 'card_upserted_v2' | 'card_deleted' | 'payment_upserted' | 'payment_deleted' | 'refund_upserted_v2' | 'refund_deleted_v2' | 'refund_capture_upserted_v2' | 'reversal_upserted' | 'reversal_deleted' | 'capture_identifier_upserted' | 'capture_identifier_deleted' | 'refund_identifier_upserted' | 'refund_identifier_deleted' | 'virtual_card_capture_upserted' | 'virtual_card_capture_deleted' | 'virtual_card_refund_upserted' | 'virtual_card_refund_deleted' | 'price_book_upserted' | 'price_book_deleted' | 'price_book_item_upserted' | 'price_book_item_deleted' | 'organization_rates_published' | 'organization_countries_published' | 'ratecard_lane_upserted' | 'ratecard_lane_deleted' | 'ratecard_upserted' | 'ratecard_deleted' | 'return_upserted' | 'return_deleted' | 'shopify_localization_setting_upserted' | 'shopify_localization_setting_deleted' | 'targeting_item_upserted' | 'targeting_item_upserted_v2' | 'targeting_item_deleted' | 'targeting_item_deleted_v3' | 'tracking_label_event_upserted';
|
|
865
|
+
type EventType = 'attribute_upserted' | 'attribute_deleted' | 'attribute_upserted_v2' | 'attribute_deleted_v2' | 'catalog_upserted' | 'catalog_deleted' | 'subcatalog_upserted' | 'subcatalog_deleted' | 'catalog_item_upserted' | 'catalog_item_deleted' | 'catalog_item_upserted_v2' | 'catalog_item_deleted_v2' | 'subcatalog_item_upserted' | 'subcatalog_item_deleted' | 'b2b_invoice_upserted' | 'b2b_invoice_deleted' | 'b2b_credit_memo_upserted' | 'b2b_credit_memo_deleted' | 'consumer_invoice_upserted' | 'consumer_invoice_deleted' | 'credit_memo_upserted' | 'credit_memo_deleted' | 'crossdock_shipment_upserted' | 'rate_deleted' | 'rate_upserted' | 'rate_deleted_v3' | 'rate_upserted_v3' | 'customer_upserted' | 'customer_deleted' | 'customer_address_book_contact_upserted' | 'customer_address_book_contact_deleted' | 'email_notification_upserted' | 'email_notification_deleted' | 'available_promotions_upserted' | 'available_promotions_deleted' | 'available_promotions_upserted_v2' | 'available_promotions_deleted_v2' | 'allocation_deleted_v2' | 'allocation_upserted_v2' | 'currency_format_deleted' | 'currency_format_upserted' | 'experience_deleted' | 'experience_upserted' | 'experience_deleted_v2' | 'experience_upserted_v2' | 'experience_price_book_mapping_deleted' | 'experience_price_book_mapping_upserted' | 'experience_logistics_settings_upserted' | 'experience_logistics_settings_deleted' | 'item_margin_deleted' | 'item_margin_upserted' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'label_format_deleted' | 'label_format_upserted' | 'order_deleted' | 'order_upserted' | 'order_deleted_v2' | 'order_upserted_v2' | 'order_identifier_deleted' | 'order_identifier_upserted' | 'order_identifier_deleted_v2' | 'order_identifier_upserted_v2' | 'order_identifier_upserted_v3' | 'pricing_deleted' | 'pricing_upserted' | 'order_service_change_request' | 'fraud_status_changed' | 'center_upserted' | 'center_deleted' | 'shipping_configuration_upserted' | 'shipping_configuration_deleted' | 'tier_upserted_v2' | 'tier_deleted_v2' | 'shipping_lane_upserted' | 'shipping_lane_deleted' | 'shipping_configuration_item_availability_upserted' | 'shipping_configuration_item_availability_deleted' | 'shipping_configuration_item_shipping_pricing_upserted' | 'shipping_configuration_item_shipping_pricing_deleted' | 'hs6_code_upserted' | 'hs6_code_deleted' | 'hs10_code_upserted' | 'hs10_code_deleted' | 'item_origin_upserted' | 'item_origin_deleted' | 'harmonized_landed_cost_upserted' | 'fully_harmonized_item_upserted' | 'rule_upserted' | 'rule_deleted' | 'serial_upserted' | 'serial_deleted' | 'snapshot_upserted' | 'snapshot_deleted' | 'label_upserted' | 'notification_upserted' | 'notification_deleted' | 'manifested_label_upserted' | 'manifested_label_deleted' | 'local_item_upserted' | 'local_item_deleted' | 'checkout_optin_responses_upserted' | 'checkout_optin_responses_deleted' | 'browse_optin_responses_upserted' | 'browse_optin_responses_deleted' | 'order_placed' | 'order_placed_v2' | 'ready_to_fulfill' | 'membership_upserted_v2' | 'membership_deleted_v2' | 'organization_upserted' | 'organization_deleted' | 'organization_upserted_v2' | 'organization_deleted_v2' | 'organization_short_id_upserted' | 'organization_short_id_deleted' | 'organization_default_configurations_upserted' | 'organization_default_configurations_deleted' | 'ecommerce_platform_upserted' | 'ecommerce_platform_deleted' | 'authorization_deleted_v2' | 'authorization_status_changed' | 'card_authorization_upserted_v2' | 'card_authorization_deleted_v2' | 'online_authorization_upserted_v2' | 'online_authorization_deleted_v2' | 'capture_upserted_v2' | 'capture_deleted' | 'card_upserted_v2' | 'card_deleted' | 'payment_upserted' | 'payment_deleted' | 'refund_upserted_v2' | 'refund_deleted_v2' | 'refund_capture_upserted_v2' | 'reversal_upserted' | 'reversal_deleted' | 'capture_identifier_upserted' | 'capture_identifier_deleted' | 'refund_identifier_upserted' | 'refund_identifier_deleted' | 'virtual_card_capture_upserted' | 'virtual_card_capture_deleted' | 'virtual_card_refund_upserted' | 'virtual_card_refund_deleted' | 'price_book_upserted' | 'price_book_deleted' | 'price_book_item_upserted' | 'price_book_item_deleted' | 'organization_rates_published' | 'organization_countries_published' | 'ratecard_lane_upserted' | 'ratecard_lane_deleted' | 'ratecard_upserted' | 'ratecard_deleted' | 'return_upserted' | 'return_deleted' | 'shopify_localization_setting_upserted' | 'shopify_localization_setting_deleted' | 'targeting_item_upserted' | 'targeting_item_upserted_v2' | 'targeting_item_deleted' | 'targeting_item_deleted_v3' | 'tracking_label_event_upserted';
|
|
866
866
|
type ExceptionType = 'open' | 'closed';
|
|
867
867
|
type ExclusionRuleState = 'current' | 'deleting' | 'updating';
|
|
868
868
|
type ExperienceCloneStatus = 'pending' | 'updating' | 'completed' | 'failed';
|
|
@@ -2536,6 +2536,41 @@ declare namespace io.flow.v0.models {
|
|
|
2536
2536
|
readonly organization: string;
|
|
2537
2537
|
readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
|
|
2538
2538
|
}
|
|
2539
|
+
interface EmailNotification {
|
|
2540
|
+
readonly id: string;
|
|
2541
|
+
readonly to: io.flow.v0.models.EmailRecipient;
|
|
2542
|
+
readonly created_at: string;
|
|
2543
|
+
readonly data: io.flow.v0.unions.EmailNotificationData;
|
|
2544
|
+
}
|
|
2545
|
+
interface EmailNotificationDataRefund {
|
|
2546
|
+
readonly order: io.flow.v0.models.OrderSummary;
|
|
2547
|
+
readonly refund: io.flow.v0.models.OrderSummary;
|
|
2548
|
+
readonly payment: io.flow.v0.models.EmailPaymentSummary;
|
|
2549
|
+
}
|
|
2550
|
+
interface EmailNotificationDeleted {
|
|
2551
|
+
readonly event_id: string;
|
|
2552
|
+
readonly timestamp: string;
|
|
2553
|
+
readonly organization: string;
|
|
2554
|
+
readonly notification: io.flow.v0.models.EmailNotification;
|
|
2555
|
+
}
|
|
2556
|
+
interface EmailNotificationForm {
|
|
2557
|
+
readonly to: io.flow.v0.models.EmailRecipient;
|
|
2558
|
+
readonly created_at: string;
|
|
2559
|
+
readonly data: io.flow.v0.unions.EmailNotificationData;
|
|
2560
|
+
}
|
|
2561
|
+
interface EmailNotificationUpserted {
|
|
2562
|
+
readonly event_id: string;
|
|
2563
|
+
readonly timestamp: string;
|
|
2564
|
+
readonly organization: string;
|
|
2565
|
+
readonly notification: io.flow.v0.models.EmailNotification;
|
|
2566
|
+
}
|
|
2567
|
+
interface EmailPaymentSummary {
|
|
2568
|
+
readonly refund: io.flow.v0.models.Refund;
|
|
2569
|
+
}
|
|
2570
|
+
interface EmailRecipient {
|
|
2571
|
+
readonly email: string;
|
|
2572
|
+
readonly name?: io.flow.v0.models.Name;
|
|
2573
|
+
}
|
|
2539
2574
|
interface EmailVerification {
|
|
2540
2575
|
readonly email: string;
|
|
2541
2576
|
}
|
|
@@ -4467,7 +4502,7 @@ declare namespace io.flow.v0.models {
|
|
|
4467
4502
|
readonly tax?: io.flow.v0.models.OrderSummaryLevy;
|
|
4468
4503
|
readonly duty?: io.flow.v0.models.OrderSummaryLevy;
|
|
4469
4504
|
readonly price_attributes: {
|
|
4470
|
-
[key: string]: io.flow.v0.models.
|
|
4505
|
+
[key: string]: io.flow.v0.models.Price;
|
|
4471
4506
|
};
|
|
4472
4507
|
}
|
|
4473
4508
|
interface OrderSummaryLevy {
|
|
@@ -4482,7 +4517,7 @@ declare namespace io.flow.v0.models {
|
|
|
4482
4517
|
readonly duty?: io.flow.v0.models.OrderSummaryLevy;
|
|
4483
4518
|
readonly total: io.flow.v0.models.Price;
|
|
4484
4519
|
readonly price_attributes: {
|
|
4485
|
-
[key: string]: io.flow.v0.models.
|
|
4520
|
+
[key: string]: io.flow.v0.models.Price;
|
|
4486
4521
|
};
|
|
4487
4522
|
}
|
|
4488
4523
|
interface OrderSummaryPriceDetail {
|
|
@@ -7121,6 +7156,9 @@ declare namespace io.flow.v0.unions {
|
|
|
7121
7156
|
} & io.flow.v0.models.CatalogItemDocument | {
|
|
7122
7157
|
discriminator: 'harmonization_document';
|
|
7123
7158
|
} & io.flow.v0.models.HarmonizationDocument;
|
|
7159
|
+
type EmailNotificationData = {
|
|
7160
|
+
discriminator: 'refund';
|
|
7161
|
+
} & io.flow.v0.models.EmailNotificationDataRefund;
|
|
7124
7162
|
type Event = {
|
|
7125
7163
|
discriminator: 'attribute_upserted';
|
|
7126
7164
|
} & io.flow.v0.models.AttributeUpserted | {
|
|
@@ -7184,6 +7222,10 @@ declare namespace io.flow.v0.unions {
|
|
|
7184
7222
|
} & io.flow.v0.models.CustomerAddressBookContactUpserted | {
|
|
7185
7223
|
discriminator: 'customer_address_book_contact_deleted';
|
|
7186
7224
|
} & io.flow.v0.models.CustomerAddressBookContactDeleted | {
|
|
7225
|
+
discriminator: 'email_notification_upserted';
|
|
7226
|
+
} & io.flow.v0.models.EmailNotificationUpserted | {
|
|
7227
|
+
discriminator: 'email_notification_deleted';
|
|
7228
|
+
} & io.flow.v0.models.EmailNotificationDeleted | {
|
|
7187
7229
|
discriminator: 'available_promotions_upserted';
|
|
7188
7230
|
} & io.flow.v0.models.AvailablePromotionsUpserted | {
|
|
7189
7231
|
discriminator: 'available_promotions_deleted';
|
|
@@ -8037,6 +8079,14 @@ export declare type EcommercePlatformDeleted = io.flow.v0.models.EcommercePlatfo
|
|
|
8037
8079
|
export declare type EcommercePlatformType = io.flow.v0.enums.EcommercePlatformType;
|
|
8038
8080
|
export declare type EcommercePlatformUpserted = io.flow.v0.models.EcommercePlatformUpserted;
|
|
8039
8081
|
export declare type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
|
|
8082
|
+
export declare type EmailNotification = io.flow.v0.models.EmailNotification;
|
|
8083
|
+
export declare type EmailNotificationData = io.flow.v0.unions.EmailNotificationData;
|
|
8084
|
+
export declare type EmailNotificationDataRefund = io.flow.v0.models.EmailNotificationDataRefund;
|
|
8085
|
+
export declare type EmailNotificationDeleted = io.flow.v0.models.EmailNotificationDeleted;
|
|
8086
|
+
export declare type EmailNotificationForm = io.flow.v0.models.EmailNotificationForm;
|
|
8087
|
+
export declare type EmailNotificationUpserted = io.flow.v0.models.EmailNotificationUpserted;
|
|
8088
|
+
export declare type EmailPaymentSummary = io.flow.v0.models.EmailPaymentSummary;
|
|
8089
|
+
export declare type EmailRecipient = io.flow.v0.models.EmailRecipient;
|
|
8040
8090
|
export declare type EmailVerification = io.flow.v0.models.EmailVerification;
|
|
8041
8091
|
export declare type Environment = io.flow.v0.enums.Environment;
|
|
8042
8092
|
export declare type EstimatedDimensions = io.flow.v0.models.EstimatedDimensions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "TypeScript type definitions for custom types found in Flow API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"prettier": "^1.18.2",
|
|
28
28
|
"typescript": "^3.6.3"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "4ad9c425f2a16826ec2358433e88e5da6eb740f3"
|
|
31
31
|
}
|
package/src/api-internal.ts
CHANGED
|
@@ -14018,6 +14018,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
14018
14018
|
readonly iso_3166_2: string;
|
|
14019
14019
|
readonly iso_3166_3: string;
|
|
14020
14020
|
readonly name: string;
|
|
14021
|
+
readonly default_currency?: string;
|
|
14021
14022
|
}
|
|
14022
14023
|
|
|
14023
14024
|
interface CountryPickerCurrency {
|
|
@@ -16006,36 +16007,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
16006
16007
|
readonly schema_compatibility: io.flow.internal.v0.enums.MarketingGatewaySchemaCompatibility;
|
|
16007
16008
|
}
|
|
16008
16009
|
|
|
16009
|
-
interface MultiProductItem {
|
|
16010
|
-
readonly item_id: string;
|
|
16011
|
-
readonly item_number: string;
|
|
16012
|
-
readonly product_id?: string;
|
|
16013
|
-
readonly organization_id: string;
|
|
16014
|
-
readonly sub_items: io.flow.internal.v0.models.MultiProductSubItem[];
|
|
16015
|
-
}
|
|
16016
|
-
|
|
16017
|
-
interface MultiProductItemForm {
|
|
16018
|
-
readonly sub_item_forms: io.flow.internal.v0.models.MultiProductSubItemForm[];
|
|
16019
|
-
}
|
|
16020
|
-
|
|
16021
|
-
interface MultiProductSubItem {
|
|
16022
|
-
readonly id: string;
|
|
16023
|
-
readonly origin: string;
|
|
16024
|
-
readonly composition_proportion: number;
|
|
16025
|
-
readonly description: string;
|
|
16026
|
-
readonly hs6_code?: string;
|
|
16027
|
-
readonly phrase_id?: string;
|
|
16028
|
-
readonly customs_description?: string;
|
|
16029
|
-
readonly classification_status: io.flow.internal.v0.enums.ItemClassificationStatus;
|
|
16030
|
-
}
|
|
16031
|
-
|
|
16032
|
-
interface MultiProductSubItemForm {
|
|
16033
|
-
readonly composition_proportion: number;
|
|
16034
|
-
readonly origin: string;
|
|
16035
|
-
readonly description: string;
|
|
16036
|
-
readonly customs_description: string;
|
|
16037
|
-
}
|
|
16038
|
-
|
|
16039
16010
|
interface NextBillingStatement {
|
|
16040
16011
|
readonly date: string;
|
|
16041
16012
|
readonly amount: io.flow.common.v0.models.Price;
|
|
@@ -19126,10 +19097,6 @@ export type MarketingGatewayProductsStatusCount = io.flow.internal.v0.models.Mar
|
|
|
19126
19097
|
export type MarketingGatewaySchemaCompatibility = io.flow.internal.v0.enums.MarketingGatewaySchemaCompatibility;
|
|
19127
19098
|
export type MarketingGatewaySchemaSummary = io.flow.internal.v0.models.MarketingGatewaySchemaSummary;
|
|
19128
19099
|
export type MarketingGatewaySyncStatus = io.flow.internal.v0.enums.MarketingGatewaySyncStatus;
|
|
19129
|
-
export type MultiProductItem = io.flow.internal.v0.models.MultiProductItem;
|
|
19130
|
-
export type MultiProductItemForm = io.flow.internal.v0.models.MultiProductItemForm;
|
|
19131
|
-
export type MultiProductSubItem = io.flow.internal.v0.models.MultiProductSubItem;
|
|
19132
|
-
export type MultiProductSubItemForm = io.flow.internal.v0.models.MultiProductSubItemForm;
|
|
19133
19100
|
export type NextBillingStatement = io.flow.internal.v0.models.NextBillingStatement;
|
|
19134
19101
|
export type NextInstallment = io.flow.internal.v0.models.NextInstallment;
|
|
19135
19102
|
export type NextInstallmentDeleted = io.flow.internal.v0.models.NextInstallmentDeleted;
|
package/src/api.ts
CHANGED
|
@@ -1194,6 +1194,8 @@ declare namespace io.flow.v0.enums {
|
|
|
1194
1194
|
| 'customer_deleted'
|
|
1195
1195
|
| 'customer_address_book_contact_upserted'
|
|
1196
1196
|
| 'customer_address_book_contact_deleted'
|
|
1197
|
+
| 'email_notification_upserted'
|
|
1198
|
+
| 'email_notification_deleted'
|
|
1197
1199
|
| 'available_promotions_upserted'
|
|
1198
1200
|
| 'available_promotions_deleted'
|
|
1199
1201
|
| 'available_promotions_upserted_v2'
|
|
@@ -3441,6 +3443,48 @@ declare namespace io.flow.v0.models {
|
|
|
3441
3443
|
readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
|
|
3442
3444
|
}
|
|
3443
3445
|
|
|
3446
|
+
interface EmailNotification {
|
|
3447
|
+
readonly id: string;
|
|
3448
|
+
readonly to: io.flow.v0.models.EmailRecipient;
|
|
3449
|
+
readonly created_at: string;
|
|
3450
|
+
readonly data: io.flow.v0.unions.EmailNotificationData;
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
interface EmailNotificationDataRefund {
|
|
3454
|
+
readonly order: io.flow.v0.models.OrderSummary;
|
|
3455
|
+
readonly refund: io.flow.v0.models.OrderSummary;
|
|
3456
|
+
readonly payment: io.flow.v0.models.EmailPaymentSummary;
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
interface EmailNotificationDeleted {
|
|
3460
|
+
readonly event_id: string;
|
|
3461
|
+
readonly timestamp: string;
|
|
3462
|
+
readonly organization: string;
|
|
3463
|
+
readonly notification: io.flow.v0.models.EmailNotification;
|
|
3464
|
+
}
|
|
3465
|
+
|
|
3466
|
+
interface EmailNotificationForm {
|
|
3467
|
+
readonly to: io.flow.v0.models.EmailRecipient;
|
|
3468
|
+
readonly created_at: string;
|
|
3469
|
+
readonly data: io.flow.v0.unions.EmailNotificationData;
|
|
3470
|
+
}
|
|
3471
|
+
|
|
3472
|
+
interface EmailNotificationUpserted {
|
|
3473
|
+
readonly event_id: string;
|
|
3474
|
+
readonly timestamp: string;
|
|
3475
|
+
readonly organization: string;
|
|
3476
|
+
readonly notification: io.flow.v0.models.EmailNotification;
|
|
3477
|
+
}
|
|
3478
|
+
|
|
3479
|
+
interface EmailPaymentSummary {
|
|
3480
|
+
readonly refund: io.flow.v0.models.Refund;
|
|
3481
|
+
}
|
|
3482
|
+
|
|
3483
|
+
interface EmailRecipient {
|
|
3484
|
+
readonly email: string;
|
|
3485
|
+
readonly name?: io.flow.v0.models.Name;
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3444
3488
|
interface EmailVerification {
|
|
3445
3489
|
readonly email: string;
|
|
3446
3490
|
}
|
|
@@ -5685,7 +5729,7 @@ declare namespace io.flow.v0.models {
|
|
|
5685
5729
|
readonly tax?: io.flow.v0.models.OrderSummaryLevy;
|
|
5686
5730
|
readonly duty?: io.flow.v0.models.OrderSummaryLevy;
|
|
5687
5731
|
readonly price_attributes: {
|
|
5688
|
-
[key: string]: io.flow.v0.models.
|
|
5732
|
+
[key: string]: io.flow.v0.models.Price;
|
|
5689
5733
|
};
|
|
5690
5734
|
}
|
|
5691
5735
|
|
|
@@ -5702,7 +5746,7 @@ declare namespace io.flow.v0.models {
|
|
|
5702
5746
|
readonly duty?: io.flow.v0.models.OrderSummaryLevy;
|
|
5703
5747
|
readonly total: io.flow.v0.models.Price;
|
|
5704
5748
|
readonly price_attributes: {
|
|
5705
|
-
[key: string]: io.flow.v0.models.
|
|
5749
|
+
[key: string]: io.flow.v0.models.Price;
|
|
5706
5750
|
};
|
|
5707
5751
|
}
|
|
5708
5752
|
|
|
@@ -8813,6 +8857,10 @@ declare namespace io.flow.v0.unions {
|
|
|
8813
8857
|
discriminator: 'harmonization_document';
|
|
8814
8858
|
} & io.flow.v0.models.HarmonizationDocument;
|
|
8815
8859
|
|
|
8860
|
+
type EmailNotificationData = {
|
|
8861
|
+
discriminator: 'refund';
|
|
8862
|
+
} & io.flow.v0.models.EmailNotificationDataRefund;
|
|
8863
|
+
|
|
8816
8864
|
type Event =
|
|
8817
8865
|
| {
|
|
8818
8866
|
discriminator: 'attribute_upserted';
|
|
@@ -8907,6 +8955,12 @@ declare namespace io.flow.v0.unions {
|
|
|
8907
8955
|
| {
|
|
8908
8956
|
discriminator: 'customer_address_book_contact_deleted';
|
|
8909
8957
|
} & io.flow.v0.models.CustomerAddressBookContactDeleted
|
|
8958
|
+
| {
|
|
8959
|
+
discriminator: 'email_notification_upserted';
|
|
8960
|
+
} & io.flow.v0.models.EmailNotificationUpserted
|
|
8961
|
+
| {
|
|
8962
|
+
discriminator: 'email_notification_deleted';
|
|
8963
|
+
} & io.flow.v0.models.EmailNotificationDeleted
|
|
8910
8964
|
| {
|
|
8911
8965
|
discriminator: 'available_promotions_upserted';
|
|
8912
8966
|
} & io.flow.v0.models.AvailablePromotionsUpserted
|
|
@@ -10044,6 +10098,14 @@ export type EcommercePlatformDeleted = io.flow.v0.models.EcommercePlatformDelete
|
|
|
10044
10098
|
export type EcommercePlatformType = io.flow.v0.enums.EcommercePlatformType;
|
|
10045
10099
|
export type EcommercePlatformUpserted = io.flow.v0.models.EcommercePlatformUpserted;
|
|
10046
10100
|
export type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
|
|
10101
|
+
export type EmailNotification = io.flow.v0.models.EmailNotification;
|
|
10102
|
+
export type EmailNotificationData = io.flow.v0.unions.EmailNotificationData;
|
|
10103
|
+
export type EmailNotificationDataRefund = io.flow.v0.models.EmailNotificationDataRefund;
|
|
10104
|
+
export type EmailNotificationDeleted = io.flow.v0.models.EmailNotificationDeleted;
|
|
10105
|
+
export type EmailNotificationForm = io.flow.v0.models.EmailNotificationForm;
|
|
10106
|
+
export type EmailNotificationUpserted = io.flow.v0.models.EmailNotificationUpserted;
|
|
10107
|
+
export type EmailPaymentSummary = io.flow.v0.models.EmailPaymentSummary;
|
|
10108
|
+
export type EmailRecipient = io.flow.v0.models.EmailRecipient;
|
|
10047
10109
|
export type EmailVerification = io.flow.v0.models.EmailVerification;
|
|
10048
10110
|
export type Environment = io.flow.v0.enums.Environment;
|
|
10049
10111
|
export type EstimatedDimensions = io.flow.v0.models.EstimatedDimensions;
|