@flowio/types 10.0.0 → 10.1.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 +227 -192
- package/dist/api.d.ts +63 -62
- package/package.json +2 -2
- package/src/api-internal.ts +255 -220
- package/src/api.ts +67 -65
package/src/api.ts
CHANGED
|
@@ -417,56 +417,6 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
417
417
|
readonly value: string;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
interface ShopifyCart {
|
|
421
|
-
readonly token: string;
|
|
422
|
-
readonly note?: string;
|
|
423
|
-
readonly attributes?: any /*object*/;
|
|
424
|
-
readonly items_subtotal_price?: number;
|
|
425
|
-
readonly total_price: number;
|
|
426
|
-
readonly total_weight: number;
|
|
427
|
-
readonly total_discount: number;
|
|
428
|
-
readonly original_total_price: number;
|
|
429
|
-
readonly item_count: number;
|
|
430
|
-
readonly requires_shipping: boolean;
|
|
431
|
-
readonly currency?: string;
|
|
432
|
-
readonly items: io.flow.shopify.external.v0.models.ShopifyCartItem[];
|
|
433
|
-
readonly cart_level_discount_applications?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
interface ShopifyCartItem {
|
|
437
|
-
readonly id: number;
|
|
438
|
-
readonly title: string;
|
|
439
|
-
readonly key?: string;
|
|
440
|
-
readonly price: number;
|
|
441
|
-
readonly line_price: number;
|
|
442
|
-
readonly final_price: number;
|
|
443
|
-
readonly final_line_price: number;
|
|
444
|
-
readonly original_price: number;
|
|
445
|
-
readonly original_line_price: number;
|
|
446
|
-
readonly total_discount: number;
|
|
447
|
-
readonly discounted_price: number;
|
|
448
|
-
readonly discounts?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
|
|
449
|
-
readonly taxable: boolean;
|
|
450
|
-
readonly quantity: number;
|
|
451
|
-
readonly sku?: string;
|
|
452
|
-
readonly grams?: number;
|
|
453
|
-
readonly vendor?: string;
|
|
454
|
-
readonly properties?: any /*object*/;
|
|
455
|
-
readonly variant_id?: number;
|
|
456
|
-
readonly gift_card: boolean;
|
|
457
|
-
readonly url: string;
|
|
458
|
-
readonly image?: string;
|
|
459
|
-
readonly handle: string;
|
|
460
|
-
readonly requires_shipping: boolean;
|
|
461
|
-
readonly product_id: number;
|
|
462
|
-
readonly product_title: string;
|
|
463
|
-
readonly product_description?: string;
|
|
464
|
-
readonly product_type: string;
|
|
465
|
-
readonly variant_title?: string;
|
|
466
|
-
readonly variant_options?: string[];
|
|
467
|
-
readonly line_level_discount_allocations?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
|
|
468
|
-
}
|
|
469
|
-
|
|
470
420
|
interface ShopifyCartItemDiscount {
|
|
471
421
|
readonly amount: number;
|
|
472
422
|
readonly title: string;
|
|
@@ -555,6 +505,56 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
555
505
|
readonly errors: any /*object*/;
|
|
556
506
|
}
|
|
557
507
|
|
|
508
|
+
interface ShopifyExternalCart {
|
|
509
|
+
readonly token?: string;
|
|
510
|
+
readonly note?: string;
|
|
511
|
+
readonly attributes?: any /*object*/;
|
|
512
|
+
readonly items_subtotal_price?: number;
|
|
513
|
+
readonly total_price: number;
|
|
514
|
+
readonly total_weight: number;
|
|
515
|
+
readonly total_discount: number;
|
|
516
|
+
readonly original_total_price: number;
|
|
517
|
+
readonly item_count: number;
|
|
518
|
+
readonly requires_shipping: boolean;
|
|
519
|
+
readonly currency?: string;
|
|
520
|
+
readonly items: io.flow.shopify.external.v0.models.ShopifyExternalCartItem[];
|
|
521
|
+
readonly cart_level_discount_applications?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
interface ShopifyExternalCartItem {
|
|
525
|
+
readonly id: number;
|
|
526
|
+
readonly title: string;
|
|
527
|
+
readonly key?: string;
|
|
528
|
+
readonly price: number;
|
|
529
|
+
readonly line_price: number;
|
|
530
|
+
readonly final_price: number;
|
|
531
|
+
readonly final_line_price: number;
|
|
532
|
+
readonly original_price: number;
|
|
533
|
+
readonly original_line_price: number;
|
|
534
|
+
readonly total_discount: number;
|
|
535
|
+
readonly discounted_price: number;
|
|
536
|
+
readonly discounts?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
|
|
537
|
+
readonly taxable: boolean;
|
|
538
|
+
readonly quantity: number;
|
|
539
|
+
readonly sku?: string;
|
|
540
|
+
readonly grams?: number;
|
|
541
|
+
readonly vendor?: string;
|
|
542
|
+
readonly properties?: any /*object*/;
|
|
543
|
+
readonly variant_id?: number;
|
|
544
|
+
readonly gift_card: boolean;
|
|
545
|
+
readonly url: string;
|
|
546
|
+
readonly image?: string;
|
|
547
|
+
readonly handle: string;
|
|
548
|
+
readonly requires_shipping: boolean;
|
|
549
|
+
readonly product_id: number;
|
|
550
|
+
readonly product_title: string;
|
|
551
|
+
readonly product_description?: string;
|
|
552
|
+
readonly product_type: string;
|
|
553
|
+
readonly variant_title?: string;
|
|
554
|
+
readonly variant_options?: string[];
|
|
555
|
+
readonly line_level_discount_allocations?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
|
|
556
|
+
}
|
|
557
|
+
|
|
558
558
|
interface ShopifyFulfillment {
|
|
559
559
|
readonly location_id: number;
|
|
560
560
|
readonly created_at?: string;
|
|
@@ -1059,6 +1059,7 @@ declare namespace io.flow.v0.enums {
|
|
|
1059
1059
|
type CaptureStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
|
|
1060
1060
|
type CardErrorCode =
|
|
1061
1061
|
| 'invalid_address'
|
|
1062
|
+
| 'invalid_currency'
|
|
1062
1063
|
| 'invalid_name'
|
|
1063
1064
|
| 'invalid_number'
|
|
1064
1065
|
| 'invalid_expiration'
|
|
@@ -2393,6 +2394,7 @@ declare namespace io.flow.v0.models {
|
|
|
2393
2394
|
readonly challenge_text?: string;
|
|
2394
2395
|
readonly challenge_cipher?: string;
|
|
2395
2396
|
readonly token_type?: io.flow.v0.enums.TokenType;
|
|
2397
|
+
readonly requested_currency?: string;
|
|
2396
2398
|
}
|
|
2397
2399
|
|
|
2398
2400
|
interface CardNonceForm {
|
|
@@ -2733,10 +2735,6 @@ declare namespace io.flow.v0.models {
|
|
|
2733
2735
|
readonly id: string;
|
|
2734
2736
|
}
|
|
2735
2737
|
|
|
2736
|
-
interface CheckoutSettings {
|
|
2737
|
-
readonly configuration: io.flow.v0.models.ExperienceConfigurationReference;
|
|
2738
|
-
}
|
|
2739
|
-
|
|
2740
2738
|
interface CheckoutToken {
|
|
2741
2739
|
readonly id: string;
|
|
2742
2740
|
readonly organization: io.flow.v0.models.OrganizationReference;
|
|
@@ -2930,11 +2928,11 @@ declare namespace io.flow.v0.models {
|
|
|
2930
2928
|
|
|
2931
2929
|
interface Context {
|
|
2932
2930
|
readonly id: string;
|
|
2933
|
-
readonly experiments: io.flow.v0.models.
|
|
2931
|
+
readonly experiments: io.flow.v0.models.SessionContextExperiment[];
|
|
2934
2932
|
}
|
|
2935
2933
|
|
|
2936
2934
|
interface ContextForm {
|
|
2937
|
-
readonly experiments: io.flow.v0.models.
|
|
2935
|
+
readonly experiments: io.flow.v0.models.SessionContextExperiment[];
|
|
2938
2936
|
}
|
|
2939
2937
|
|
|
2940
2938
|
interface ContextReference {
|
|
@@ -3727,6 +3725,10 @@ declare namespace io.flow.v0.models {
|
|
|
3727
3725
|
readonly status?: io.flow.v0.enums.ExperienceStatus;
|
|
3728
3726
|
}
|
|
3729
3727
|
|
|
3728
|
+
interface ExperienceCheckoutConfigurationSettings {
|
|
3729
|
+
readonly configuration: io.flow.v0.models.ExperienceConfigurationReference;
|
|
3730
|
+
}
|
|
3731
|
+
|
|
3730
3732
|
interface ExperienceCheckoutSettings {
|
|
3731
3733
|
readonly id: string;
|
|
3732
3734
|
readonly experience: io.flow.v0.models.ExperienceOverview;
|
|
@@ -3945,7 +3947,7 @@ declare namespace io.flow.v0.models {
|
|
|
3945
3947
|
readonly delivered_duty: io.flow.v0.models.DeliveredDutySetting;
|
|
3946
3948
|
readonly pricing_settings?: io.flow.v0.models.PricingSettings;
|
|
3947
3949
|
readonly logistics_settings?: io.flow.v0.models.LogisticsSettings;
|
|
3948
|
-
readonly checkout_settings?: io.flow.v0.models.
|
|
3950
|
+
readonly checkout_settings?: io.flow.v0.models.ExperienceCheckoutConfigurationSettings;
|
|
3949
3951
|
}
|
|
3950
3952
|
|
|
3951
3953
|
interface ExperienceStatusForm {
|
|
@@ -3994,11 +3996,6 @@ declare namespace io.flow.v0.models {
|
|
|
3994
3996
|
readonly experience: io.flow.v0.models.Experience;
|
|
3995
3997
|
}
|
|
3996
3998
|
|
|
3997
|
-
interface Experiment {
|
|
3998
|
-
readonly key: string;
|
|
3999
|
-
readonly variant?: io.flow.v0.models.ExperimentVariant;
|
|
4000
|
-
}
|
|
4001
|
-
|
|
4002
3999
|
interface ExperimentVariant {
|
|
4003
4000
|
readonly key: string;
|
|
4004
4001
|
}
|
|
@@ -7641,6 +7638,11 @@ declare namespace io.flow.v0.models {
|
|
|
7641
7638
|
readonly session: string;
|
|
7642
7639
|
}
|
|
7643
7640
|
|
|
7641
|
+
interface SessionContextExperiment {
|
|
7642
|
+
readonly key: string;
|
|
7643
|
+
readonly variant?: io.flow.v0.models.ExperimentVariant;
|
|
7644
|
+
}
|
|
7645
|
+
|
|
7644
7646
|
interface SessionCurrencyFormat {
|
|
7645
7647
|
readonly symbol: io.flow.v0.enums.CurrencySymbolFormat;
|
|
7646
7648
|
readonly label_formatters: io.flow.v0.enums.CurrencyLabelFormatter[];
|
|
@@ -8001,7 +8003,7 @@ declare namespace io.flow.v0.models {
|
|
|
8001
8003
|
}
|
|
8002
8004
|
|
|
8003
8005
|
interface ShopifyCartConversionShopifyCart {
|
|
8004
|
-
readonly cart: io.flow.shopify.external.v0.models.
|
|
8006
|
+
readonly cart: io.flow.shopify.external.v0.models.ShopifyExternalCart;
|
|
8005
8007
|
}
|
|
8006
8008
|
|
|
8007
8009
|
interface ShopifyCartItem {
|
|
@@ -9542,7 +9544,6 @@ export type CheckoutOptinResponses = io.flow.v0.models.CheckoutOptinResponses;
|
|
|
9542
9544
|
export type CheckoutOptinResponsesDeleted = io.flow.v0.models.CheckoutOptinResponsesDeleted;
|
|
9543
9545
|
export type CheckoutOptinResponsesUpserted = io.flow.v0.models.CheckoutOptinResponsesUpserted;
|
|
9544
9546
|
export type CheckoutReference = io.flow.v0.models.CheckoutReference;
|
|
9545
|
-
export type CheckoutSettings = io.flow.v0.models.CheckoutSettings;
|
|
9546
9547
|
export type CheckoutToken = io.flow.v0.models.CheckoutToken;
|
|
9547
9548
|
export type CheckoutTokenForm = io.flow.v0.unions.CheckoutTokenForm;
|
|
9548
9549
|
export type CheckoutTokenOrderForm = io.flow.v0.models.CheckoutTokenOrderForm;
|
|
@@ -9730,6 +9731,7 @@ export type ExpandableOrganization = io.flow.v0.unions.ExpandableOrganization;
|
|
|
9730
9731
|
export type ExpandableSubcatalog = io.flow.v0.unions.ExpandableSubcatalog;
|
|
9731
9732
|
export type ExpandableUser = io.flow.v0.unions.ExpandableUser;
|
|
9732
9733
|
export type Experience = io.flow.v0.models.Experience;
|
|
9734
|
+
export type ExperienceCheckoutConfigurationSettings = io.flow.v0.models.ExperienceCheckoutConfigurationSettings;
|
|
9733
9735
|
export type ExperienceCheckoutSettings = io.flow.v0.models.ExperienceCheckoutSettings;
|
|
9734
9736
|
export type ExperienceCheckoutSettingsForm = io.flow.v0.models.ExperienceCheckoutSettingsForm;
|
|
9735
9737
|
export type ExperienceClone = io.flow.v0.models.ExperienceClone;
|
|
@@ -9774,7 +9776,6 @@ export type ExperienceSummary = io.flow.v0.models.ExperienceSummary;
|
|
|
9774
9776
|
export type ExperienceUpserted = io.flow.v0.models.ExperienceUpserted;
|
|
9775
9777
|
export type ExperienceUpsertedV2 = io.flow.v0.models.ExperienceUpsertedV2;
|
|
9776
9778
|
export type ExperienceVersion = io.flow.v0.models.ExperienceVersion;
|
|
9777
|
-
export type Experiment = io.flow.v0.models.Experiment;
|
|
9778
9779
|
export type ExperimentVariant = io.flow.v0.models.ExperimentVariant;
|
|
9779
9780
|
export type Expiration = io.flow.v0.models.Expiration;
|
|
9780
9781
|
export type Export = io.flow.v0.models.Export;
|
|
@@ -10372,6 +10373,7 @@ export type ServiceSummary = io.flow.v0.models.ServiceSummary;
|
|
|
10372
10373
|
export type Session = io.flow.v0.unions.Session;
|
|
10373
10374
|
export type SessionAuthorization = io.flow.v0.unions.SessionAuthorization;
|
|
10374
10375
|
export type SessionAuthorizationForm = io.flow.v0.models.SessionAuthorizationForm;
|
|
10376
|
+
export type SessionContextExperiment = io.flow.v0.models.SessionContextExperiment;
|
|
10375
10377
|
export type SessionCurrencyFormat = io.flow.v0.models.SessionCurrencyFormat;
|
|
10376
10378
|
export type SessionExperiment = io.flow.v0.models.SessionExperiment;
|
|
10377
10379
|
export type SessionExperimentForm = io.flow.v0.models.SessionExperimentForm;
|