@flowio/types 11.15.2 → 11.16.1
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 +57 -4
- package/package.json +2 -2
- package/src/api-internal.ts +64 -4
package/dist/api-internal.d.ts
CHANGED
|
@@ -313,6 +313,37 @@ declare namespace io.flow.experience.v0.models {
|
|
|
313
313
|
readonly included: io.flow.experience.v0.unions.AllocationComponent[];
|
|
314
314
|
readonly not_included: io.flow.experience.v0.unions.AllocationComponent[];
|
|
315
315
|
}
|
|
316
|
+
interface AllocationLineSummary {
|
|
317
|
+
readonly line_items: io.flow.experience.v0.models.AllocationLineSummaryLineItem[];
|
|
318
|
+
readonly shipping: io.flow.experience.v0.models.AllocationLineSummaryShipping;
|
|
319
|
+
readonly subtotal: io.flow.common.v0.models.MoneyWithBase;
|
|
320
|
+
readonly discount: io.flow.common.v0.models.MoneyWithBase;
|
|
321
|
+
readonly duties: io.flow.common.v0.models.MoneyWithBase;
|
|
322
|
+
readonly tax: io.flow.common.v0.models.MoneyWithBase;
|
|
323
|
+
readonly tax_subsidy: io.flow.common.v0.models.MoneyWithBase;
|
|
324
|
+
readonly duties_subsidy: io.flow.common.v0.models.MoneyWithBase;
|
|
325
|
+
readonly total: io.flow.common.v0.models.MoneyWithBase;
|
|
326
|
+
}
|
|
327
|
+
interface AllocationLineSummaryLineItem {
|
|
328
|
+
readonly item_number: string;
|
|
329
|
+
readonly line_number: string;
|
|
330
|
+
readonly subtotal: io.flow.common.v0.models.MoneyWithBase;
|
|
331
|
+
readonly discount: io.flow.common.v0.models.MoneyWithBase;
|
|
332
|
+
readonly duties: io.flow.common.v0.models.MoneyWithBase;
|
|
333
|
+
readonly tax: io.flow.common.v0.models.MoneyWithBase;
|
|
334
|
+
readonly tax_subsidy: io.flow.common.v0.models.MoneyWithBase;
|
|
335
|
+
readonly duties_subsidy: io.flow.common.v0.models.MoneyWithBase;
|
|
336
|
+
readonly total: io.flow.common.v0.models.MoneyWithBase;
|
|
337
|
+
}
|
|
338
|
+
interface AllocationLineSummaryShipping {
|
|
339
|
+
readonly subtotal: io.flow.common.v0.models.MoneyWithBase;
|
|
340
|
+
readonly discount: io.flow.common.v0.models.MoneyWithBase;
|
|
341
|
+
readonly duties: io.flow.common.v0.models.MoneyWithBase;
|
|
342
|
+
readonly tax: io.flow.common.v0.models.MoneyWithBase;
|
|
343
|
+
readonly tax_subsidy: io.flow.common.v0.models.MoneyWithBase;
|
|
344
|
+
readonly duties_subsidy: io.flow.common.v0.models.MoneyWithBase;
|
|
345
|
+
readonly total: io.flow.common.v0.models.MoneyWithBase;
|
|
346
|
+
}
|
|
316
347
|
interface AllocationOrderDetail {
|
|
317
348
|
readonly discriminator: 'allocation_order_detail';
|
|
318
349
|
readonly key: io.flow.order.price.v0.enums.OrderPriceDetailKey;
|
|
@@ -1261,6 +1292,28 @@ declare namespace io.flow.shopify.xborder.v0.models {
|
|
|
1261
1292
|
readonly shop_money: io.flow.shopify.xborder.v0.models.ShopifyOrderMoney;
|
|
1262
1293
|
readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
|
|
1263
1294
|
}
|
|
1295
|
+
interface ShopifyOrderEdit {
|
|
1296
|
+
readonly id: number;
|
|
1297
|
+
readonly created_at: string;
|
|
1298
|
+
readonly notify_customer: boolean;
|
|
1299
|
+
readonly order_id: number;
|
|
1300
|
+
readonly staff_note: string;
|
|
1301
|
+
readonly user_id?: number;
|
|
1302
|
+
readonly line_items: io.flow.shopify.xborder.v0.models.ShopifyOrderEditLineItems;
|
|
1303
|
+
readonly discounts: any;
|
|
1304
|
+
readonly shipping_lines: any;
|
|
1305
|
+
}
|
|
1306
|
+
interface ShopifyOrderEditLineItems {
|
|
1307
|
+
readonly additions: io.flow.shopify.xborder.v0.models.ShopifyOrderEditLineItemsChange[];
|
|
1308
|
+
readonly removals: io.flow.shopify.xborder.v0.models.ShopifyOrderEditLineItemsChange[];
|
|
1309
|
+
}
|
|
1310
|
+
interface ShopifyOrderEditLineItemsChange {
|
|
1311
|
+
readonly id: number;
|
|
1312
|
+
readonly delta: number;
|
|
1313
|
+
}
|
|
1314
|
+
interface ShopifyOrderEditWrapper {
|
|
1315
|
+
readonly order_edit: io.flow.shopify.xborder.v0.models.ShopifyOrderEdit;
|
|
1316
|
+
}
|
|
1264
1317
|
interface ShopifyOrderFulfillment {
|
|
1265
1318
|
readonly created_at?: string;
|
|
1266
1319
|
readonly id?: number;
|
|
@@ -8292,13 +8345,13 @@ declare namespace io.flow.label.internal.v0.models {
|
|
|
8292
8345
|
readonly carrier: io.flow.fulfillment.v0.models.CarrierReference;
|
|
8293
8346
|
readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
|
|
8294
8347
|
readonly q?: string;
|
|
8295
|
-
readonly position
|
|
8348
|
+
readonly position: number;
|
|
8296
8349
|
}
|
|
8297
8350
|
interface CarrierAccountForm {
|
|
8298
8351
|
readonly carrier_id: string;
|
|
8299
8352
|
readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
|
|
8300
8353
|
readonly q?: string;
|
|
8301
|
-
readonly position
|
|
8354
|
+
readonly position: number;
|
|
8302
8355
|
}
|
|
8303
8356
|
interface CarrierInvoice {
|
|
8304
8357
|
readonly number: string;
|
|
@@ -10661,7 +10714,7 @@ declare namespace io.flow.checkout.protocol.v0.enums {
|
|
|
10661
10714
|
type CheckoutInfoOrderSummaryKeyField = 'shipping_country' | 'shipping_province' | 'shipping_postal' | 'delivery_option_id';
|
|
10662
10715
|
type CheckoutInfoPaymentDetailsKeyField = 'value' | 'currency' | 'payment_method_id';
|
|
10663
10716
|
type CheckoutInfoPaymentsFormDataKeyField = 'value' | 'currency' | 'shipping_country';
|
|
10664
|
-
type CheckoutInfoTranslationsKeyField = '
|
|
10717
|
+
type CheckoutInfoTranslationsKeyField = 'language';
|
|
10665
10718
|
type CheckoutInitiatePaymentErrorCode = 'payment_failed' | 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
|
|
10666
10719
|
type CheckoutPaymentAuthorizationParametersErrorCode = 'order_balance_not_available';
|
|
10667
10720
|
type CheckoutSetAddressCityErrorCode = 'address_city_invalid' | 'address_city_required';
|
|
@@ -13999,7 +14052,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
13999
14052
|
type CheckoutInfoOrderSummaryKeyField = 'shipping_country' | 'shipping_province' | 'shipping_postal' | 'delivery_option_id';
|
|
14000
14053
|
type CheckoutInfoPaymentDetailsKeyField = 'value' | 'currency' | 'payment_method_id';
|
|
14001
14054
|
type CheckoutInfoPaymentsFormDataKeyField = 'value' | 'currency' | 'shipping_country';
|
|
14002
|
-
type CheckoutInfoTranslationsKeyField = '
|
|
14055
|
+
type CheckoutInfoTranslationsKeyField = 'language';
|
|
14003
14056
|
type CheckoutInitiatePaymentErrorCode = 'payment_failed' | 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
|
|
14004
14057
|
type CheckoutLineErrorCode = 'line_quantity_invalid' | 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_value_threshold_exceeded';
|
|
14005
14058
|
type CheckoutPaymentAuthorizationParametersErrorCode = 'order_balance_not_available';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.16.1",
|
|
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": "fbd4b0964f2c1283e416a565a6ca2966a727ef63"
|
|
29
29
|
}
|
package/src/api-internal.ts
CHANGED
|
@@ -448,6 +448,40 @@ declare namespace io.flow.experience.v0.models {
|
|
|
448
448
|
readonly not_included: io.flow.experience.v0.unions.AllocationComponent[];
|
|
449
449
|
}
|
|
450
450
|
|
|
451
|
+
interface AllocationLineSummary {
|
|
452
|
+
readonly line_items: io.flow.experience.v0.models.AllocationLineSummaryLineItem[];
|
|
453
|
+
readonly shipping: io.flow.experience.v0.models.AllocationLineSummaryShipping;
|
|
454
|
+
readonly subtotal: io.flow.common.v0.models.MoneyWithBase;
|
|
455
|
+
readonly discount: io.flow.common.v0.models.MoneyWithBase;
|
|
456
|
+
readonly duties: io.flow.common.v0.models.MoneyWithBase;
|
|
457
|
+
readonly tax: io.flow.common.v0.models.MoneyWithBase;
|
|
458
|
+
readonly tax_subsidy: io.flow.common.v0.models.MoneyWithBase;
|
|
459
|
+
readonly duties_subsidy: io.flow.common.v0.models.MoneyWithBase;
|
|
460
|
+
readonly total: io.flow.common.v0.models.MoneyWithBase;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
interface AllocationLineSummaryLineItem {
|
|
464
|
+
readonly item_number: string;
|
|
465
|
+
readonly line_number: string;
|
|
466
|
+
readonly subtotal: io.flow.common.v0.models.MoneyWithBase;
|
|
467
|
+
readonly discount: io.flow.common.v0.models.MoneyWithBase;
|
|
468
|
+
readonly duties: io.flow.common.v0.models.MoneyWithBase;
|
|
469
|
+
readonly tax: io.flow.common.v0.models.MoneyWithBase;
|
|
470
|
+
readonly tax_subsidy: io.flow.common.v0.models.MoneyWithBase;
|
|
471
|
+
readonly duties_subsidy: io.flow.common.v0.models.MoneyWithBase;
|
|
472
|
+
readonly total: io.flow.common.v0.models.MoneyWithBase;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
interface AllocationLineSummaryShipping {
|
|
476
|
+
readonly subtotal: io.flow.common.v0.models.MoneyWithBase;
|
|
477
|
+
readonly discount: io.flow.common.v0.models.MoneyWithBase;
|
|
478
|
+
readonly duties: io.flow.common.v0.models.MoneyWithBase;
|
|
479
|
+
readonly tax: io.flow.common.v0.models.MoneyWithBase;
|
|
480
|
+
readonly tax_subsidy: io.flow.common.v0.models.MoneyWithBase;
|
|
481
|
+
readonly duties_subsidy: io.flow.common.v0.models.MoneyWithBase;
|
|
482
|
+
readonly total: io.flow.common.v0.models.MoneyWithBase;
|
|
483
|
+
}
|
|
484
|
+
|
|
451
485
|
interface AllocationOrderDetail {
|
|
452
486
|
readonly discriminator: 'allocation_order_detail';
|
|
453
487
|
readonly key: io.flow.order.price.v0.enums.OrderPriceDetailKey;
|
|
@@ -1636,6 +1670,32 @@ declare namespace io.flow.shopify.xborder.v0.models {
|
|
|
1636
1670
|
readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
|
|
1637
1671
|
}
|
|
1638
1672
|
|
|
1673
|
+
interface ShopifyOrderEdit {
|
|
1674
|
+
readonly id: number;
|
|
1675
|
+
readonly created_at: string;
|
|
1676
|
+
readonly notify_customer: boolean;
|
|
1677
|
+
readonly order_id: number;
|
|
1678
|
+
readonly staff_note: string;
|
|
1679
|
+
readonly user_id?: number;
|
|
1680
|
+
readonly line_items: io.flow.shopify.xborder.v0.models.ShopifyOrderEditLineItems;
|
|
1681
|
+
readonly discounts: any /*object*/;
|
|
1682
|
+
readonly shipping_lines: any /*object*/;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
interface ShopifyOrderEditLineItems {
|
|
1686
|
+
readonly additions: io.flow.shopify.xborder.v0.models.ShopifyOrderEditLineItemsChange[];
|
|
1687
|
+
readonly removals: io.flow.shopify.xborder.v0.models.ShopifyOrderEditLineItemsChange[];
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
interface ShopifyOrderEditLineItemsChange {
|
|
1691
|
+
readonly id: number;
|
|
1692
|
+
readonly delta: number;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
interface ShopifyOrderEditWrapper {
|
|
1696
|
+
readonly order_edit: io.flow.shopify.xborder.v0.models.ShopifyOrderEdit;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1639
1699
|
interface ShopifyOrderFulfillment {
|
|
1640
1700
|
readonly created_at?: string;
|
|
1641
1701
|
readonly id?: number;
|
|
@@ -10765,14 +10825,14 @@ declare namespace io.flow.label.internal.v0.models {
|
|
|
10765
10825
|
readonly carrier: io.flow.fulfillment.v0.models.CarrierReference;
|
|
10766
10826
|
readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
|
|
10767
10827
|
readonly q?: string;
|
|
10768
|
-
readonly position
|
|
10828
|
+
readonly position: number;
|
|
10769
10829
|
}
|
|
10770
10830
|
|
|
10771
10831
|
interface CarrierAccountForm {
|
|
10772
10832
|
readonly carrier_id: string;
|
|
10773
10833
|
readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
|
|
10774
10834
|
readonly q?: string;
|
|
10775
|
-
readonly position
|
|
10835
|
+
readonly position: number;
|
|
10776
10836
|
}
|
|
10777
10837
|
|
|
10778
10838
|
interface CarrierInvoice {
|
|
@@ -13795,7 +13855,7 @@ declare namespace io.flow.checkout.protocol.v0.enums {
|
|
|
13795
13855
|
| 'value'
|
|
13796
13856
|
| 'currency'
|
|
13797
13857
|
| 'shipping_country';
|
|
13798
|
-
type CheckoutInfoTranslationsKeyField = '
|
|
13858
|
+
type CheckoutInfoTranslationsKeyField = 'language';
|
|
13799
13859
|
type CheckoutInitiatePaymentErrorCode =
|
|
13800
13860
|
| 'payment_failed'
|
|
13801
13861
|
| 'authorization_form_not_supported'
|
|
@@ -18319,7 +18379,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
18319
18379
|
| 'value'
|
|
18320
18380
|
| 'currency'
|
|
18321
18381
|
| 'shipping_country';
|
|
18322
|
-
type CheckoutInfoTranslationsKeyField = '
|
|
18382
|
+
type CheckoutInfoTranslationsKeyField = 'language';
|
|
18323
18383
|
type CheckoutInitiatePaymentErrorCode =
|
|
18324
18384
|
| 'payment_failed'
|
|
18325
18385
|
| 'authorization_form_not_supported'
|