@flowio/types 9.5.0 → 10.1.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/src/api.ts CHANGED
@@ -56,23 +56,6 @@ declare namespace io.flow.shopify.external.v0.models {
56
56
  readonly 'count': number;
57
57
  }
58
58
 
59
- interface Discount {
60
- readonly 'id': number;
61
- readonly 'discount_type': io.flow.shopify.external.v0.enums.DiscountType;
62
- readonly 'code': string;
63
- readonly 'value'?: number;
64
- readonly 'status': io.flow.shopify.external.v0.enums.DiscountStatus;
65
- readonly 'usage_limit'?: number;
66
- readonly 'applies_once': boolean;
67
- readonly 'applies_once_per_customer': boolean;
68
- readonly 'ends_at'?: string;
69
- readonly 'starts_at'?: string;
70
- readonly 'minimum_order_amount'?: number;
71
- readonly 'applies_to_id'?: number;
72
- readonly 'applies_to_resource'?: string;
73
- readonly 'times_used': number;
74
- }
75
-
76
59
  interface Metafield {
77
60
  readonly 'id': number;
78
61
  readonly 'key': string;
@@ -242,14 +225,6 @@ declare namespace io.flow.shopify.external.v0.models {
242
225
  readonly 'collects': io.flow.shopify.external.v0.models.Collect[];
243
226
  }
244
227
 
245
- interface ResponseDiscount {
246
- readonly 'discount': io.flow.shopify.external.v0.models.Discount;
247
- }
248
-
249
- interface ResponseDiscounts {
250
- readonly 'discounts': io.flow.shopify.external.v0.models.Discount[];
251
- }
252
-
253
228
  interface ResponseMetafield {
254
229
  readonly 'metafield': io.flow.shopify.external.v0.models.Metafield;
255
230
  }
@@ -349,56 +324,6 @@ declare namespace io.flow.shopify.external.v0.models {
349
324
  readonly 'value': string;
350
325
  }
351
326
 
352
- interface ShopifyCart {
353
- readonly 'token': string;
354
- readonly 'note'?: string;
355
- readonly 'attributes'?: any/*object*/;
356
- readonly 'items_subtotal_price'?: number;
357
- readonly 'total_price': number;
358
- readonly 'total_weight': number;
359
- readonly 'total_discount': number;
360
- readonly 'original_total_price': number;
361
- readonly 'item_count': number;
362
- readonly 'requires_shipping': boolean;
363
- readonly 'currency'?: string;
364
- readonly 'items': io.flow.shopify.external.v0.models.ShopifyCartItem[];
365
- readonly 'cart_level_discount_applications'?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
366
- }
367
-
368
- interface ShopifyCartItem {
369
- readonly 'id': number;
370
- readonly 'title': string;
371
- readonly 'key'?: string;
372
- readonly 'price': number;
373
- readonly 'line_price': number;
374
- readonly 'final_price': number;
375
- readonly 'final_line_price': number;
376
- readonly 'original_price': number;
377
- readonly 'original_line_price': number;
378
- readonly 'total_discount': number;
379
- readonly 'discounted_price': number;
380
- readonly 'discounts'?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
381
- readonly 'taxable': boolean;
382
- readonly 'quantity': number;
383
- readonly 'sku'?: string;
384
- readonly 'grams'?: number;
385
- readonly 'vendor'?: string;
386
- readonly 'properties'?: any/*object*/;
387
- readonly 'variant_id'?: number;
388
- readonly 'gift_card': boolean;
389
- readonly 'url': string;
390
- readonly 'image'?: string;
391
- readonly 'handle': string;
392
- readonly 'requires_shipping': boolean;
393
- readonly 'product_id': number;
394
- readonly 'product_title': string;
395
- readonly 'product_description'?: string;
396
- readonly 'product_type': string;
397
- readonly 'variant_title'?: string;
398
- readonly 'variant_options'?: string[];
399
- readonly 'line_level_discount_allocations'?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
400
- }
401
-
402
327
  interface ShopifyCartItemDiscount {
403
328
  readonly 'amount': number;
404
329
  readonly 'title': string;
@@ -487,6 +412,56 @@ declare namespace io.flow.shopify.external.v0.models {
487
412
  readonly 'errors': any/*object*/;
488
413
  }
489
414
 
415
+ interface ShopifyExternalCart {
416
+ readonly 'token': string;
417
+ readonly 'note'?: string;
418
+ readonly 'attributes'?: any/*object*/;
419
+ readonly 'items_subtotal_price'?: number;
420
+ readonly 'total_price': number;
421
+ readonly 'total_weight': number;
422
+ readonly 'total_discount': number;
423
+ readonly 'original_total_price': number;
424
+ readonly 'item_count': number;
425
+ readonly 'requires_shipping': boolean;
426
+ readonly 'currency'?: string;
427
+ readonly 'items': io.flow.shopify.external.v0.models.ShopifyExternalCartItem[];
428
+ readonly 'cart_level_discount_applications'?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
429
+ }
430
+
431
+ interface ShopifyExternalCartItem {
432
+ readonly 'id': number;
433
+ readonly 'title': string;
434
+ readonly 'key'?: string;
435
+ readonly 'price': number;
436
+ readonly 'line_price': number;
437
+ readonly 'final_price': number;
438
+ readonly 'final_line_price': number;
439
+ readonly 'original_price': number;
440
+ readonly 'original_line_price': number;
441
+ readonly 'total_discount': number;
442
+ readonly 'discounted_price': number;
443
+ readonly 'discounts'?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
444
+ readonly 'taxable': boolean;
445
+ readonly 'quantity': number;
446
+ readonly 'sku'?: string;
447
+ readonly 'grams'?: number;
448
+ readonly 'vendor'?: string;
449
+ readonly 'properties'?: any/*object*/;
450
+ readonly 'variant_id'?: number;
451
+ readonly 'gift_card': boolean;
452
+ readonly 'url': string;
453
+ readonly 'image'?: string;
454
+ readonly 'handle': string;
455
+ readonly 'requires_shipping': boolean;
456
+ readonly 'product_id': number;
457
+ readonly 'product_title': string;
458
+ readonly 'product_description'?: string;
459
+ readonly 'product_type': string;
460
+ readonly 'variant_title'?: string;
461
+ readonly 'variant_options'?: string[];
462
+ readonly 'line_level_discount_allocations'?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
463
+ }
464
+
490
465
  interface ShopifyFulfillment {
491
466
  readonly 'location_id': number;
492
467
  readonly 'created_at'?: string;
@@ -933,7 +908,7 @@ declare namespace io.flow.v0.enums {
933
908
  type Capability = 'crossdock';
934
909
  type CaptureDeclineCode = 'expired' | 'insufficient_funds' | 'unknown';
935
910
  type CaptureStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
936
- type CardErrorCode = 'invalid_address' | 'invalid_name' | 'invalid_number' | 'invalid_expiration' | 'invalid_token_type' | 'avs' | 'cvv' | 'fraud' | 'unknown';
911
+ type CardErrorCode = 'invalid_address' | 'invalid_currency' | 'invalid_name' | 'invalid_number' | 'invalid_expiration' | 'invalid_token_type' | 'avs' | 'cvv' | 'fraud' | 'unknown';
937
912
  type CardType = 'american_express' | 'cartes_bancaires' | 'china_union_pay' | 'dankort' | 'diners_club' | 'discover' | 'jcb' | 'maestro' | 'mastercard' | 'visa';
938
913
  type CenterCapability = 'international' | 'domestic' | 'crossdock' | 'commercial_invoice';
939
914
  type ChangeType = 'insert' | 'update' | 'delete';
@@ -1850,6 +1825,7 @@ declare namespace io.flow.v0.models {
1850
1825
  readonly 'challenge_text'?: string;
1851
1826
  readonly 'challenge_cipher'?: string;
1852
1827
  readonly 'token_type'?: io.flow.v0.enums.TokenType;
1828
+ readonly 'requested_currency'?: string;
1853
1829
  }
1854
1830
 
1855
1831
  interface CardNonceForm {
@@ -2190,10 +2166,6 @@ declare namespace io.flow.v0.models {
2190
2166
  readonly 'id': string;
2191
2167
  }
2192
2168
 
2193
- interface CheckoutSettings {
2194
- readonly 'configuration': io.flow.v0.models.ExperienceConfigurationReference;
2195
- }
2196
-
2197
2169
  interface CheckoutToken {
2198
2170
  readonly 'id': string;
2199
2171
  readonly 'organization': io.flow.v0.models.OrganizationReference;
@@ -2387,11 +2359,11 @@ declare namespace io.flow.v0.models {
2387
2359
 
2388
2360
  interface Context {
2389
2361
  readonly 'id': string;
2390
- readonly 'experiments': io.flow.v0.models.Experiment[];
2362
+ readonly 'experiments': io.flow.v0.models.SessionContextExperiment[];
2391
2363
  }
2392
2364
 
2393
2365
  interface ContextForm {
2394
- readonly 'experiments': io.flow.v0.models.Experiment[];
2366
+ readonly 'experiments': io.flow.v0.models.SessionContextExperiment[];
2395
2367
  }
2396
2368
 
2397
2369
  interface ContextReference {
@@ -3184,6 +3156,10 @@ declare namespace io.flow.v0.models {
3184
3156
  readonly 'status'?: io.flow.v0.enums.ExperienceStatus;
3185
3157
  }
3186
3158
 
3159
+ interface ExperienceCheckoutConfigurationSettings {
3160
+ readonly 'configuration': io.flow.v0.models.ExperienceConfigurationReference;
3161
+ }
3162
+
3187
3163
  interface ExperienceCheckoutSettings {
3188
3164
  readonly 'id': string;
3189
3165
  readonly 'experience': io.flow.v0.models.ExperienceOverview;
@@ -3402,7 +3378,7 @@ declare namespace io.flow.v0.models {
3402
3378
  readonly 'delivered_duty': io.flow.v0.models.DeliveredDutySetting;
3403
3379
  readonly 'pricing_settings'?: io.flow.v0.models.PricingSettings;
3404
3380
  readonly 'logistics_settings'?: io.flow.v0.models.LogisticsSettings;
3405
- readonly 'checkout_settings'?: io.flow.v0.models.CheckoutSettings;
3381
+ readonly 'checkout_settings'?: io.flow.v0.models.ExperienceCheckoutConfigurationSettings;
3406
3382
  }
3407
3383
 
3408
3384
  interface ExperienceStatusForm {
@@ -3451,11 +3427,6 @@ declare namespace io.flow.v0.models {
3451
3427
  readonly 'experience': io.flow.v0.models.Experience;
3452
3428
  }
3453
3429
 
3454
- interface Experiment {
3455
- readonly 'key': string;
3456
- readonly 'variant'?: io.flow.v0.models.ExperimentVariant;
3457
- }
3458
-
3459
3430
  interface ExperimentVariant {
3460
3431
  readonly 'key': string;
3461
3432
  }
@@ -3774,6 +3745,11 @@ declare namespace io.flow.v0.models {
3774
3745
  readonly 'sort'?: string;
3775
3746
  }
3776
3747
 
3748
+ interface HarmonizationTariffCodesExportType {
3749
+ readonly 'discriminator': 'harmonization_tariff_codes_export_type';
3750
+ readonly 'sort'?: string;
3751
+ }
3752
+
3777
3753
  interface HarmonizedCategory {
3778
3754
  readonly 'id': string;
3779
3755
  readonly 'name': string;
@@ -7090,6 +7066,11 @@ declare namespace io.flow.v0.models {
7090
7066
  readonly 'session': string;
7091
7067
  }
7092
7068
 
7069
+ interface SessionContextExperiment {
7070
+ readonly 'key': string;
7071
+ readonly 'variant'?: io.flow.v0.models.ExperimentVariant;
7072
+ }
7073
+
7093
7074
  interface SessionCurrencyFormat {
7094
7075
  readonly 'symbol': io.flow.v0.enums.CurrencySymbolFormat;
7095
7076
  readonly 'label_formatters': io.flow.v0.enums.CurrencyLabelFormatter[];
@@ -7450,7 +7431,7 @@ declare namespace io.flow.v0.models {
7450
7431
  }
7451
7432
 
7452
7433
  interface ShopifyCartConversionShopifyCart {
7453
- readonly 'cart': io.flow.shopify.external.v0.models.ShopifyCart;
7434
+ readonly 'cart': io.flow.shopify.external.v0.models.ShopifyExternalCart;
7454
7435
  }
7455
7436
 
7456
7437
  interface ShopifyCartItem {
@@ -8456,7 +8437,7 @@ declare namespace io.flow.v0.unions {
8456
8437
  type ExpandableSubcatalog = (io.flow.v0.models.Subcatalog | io.flow.v0.models.SubcatalogReference);
8457
8438
  type ExpandableUser = (io.flow.v0.models.User | io.flow.v0.models.UserReference);
8458
8439
  type ExportDelivery = (io.flow.v0.models.ExportDeliveryEmail);
8459
- type ExportType = (io.flow.v0.models.AccountTransactionsExportType | io.flow.v0.models.AccountOrdersExportType | io.flow.v0.models.AnalyticsExportType | io.flow.v0.models.CatalogItemExportType | io.flow.v0.models.ExperienceExportType | io.flow.v0.models.HarmonizationOverviewExportType | io.flow.v0.models.HarmonizationHs6ExportType | io.flow.v0.models.HarmonizationHs10ExportType | io.flow.v0.models.UnharmonizedItemExportType | io.flow.v0.models.OrderExportType | io.flow.v0.models.PriceBookItemExportType | io.flow.v0.models.SolidusProductExportType | io.flow.v0.models.SolidusVariantExportType | io.flow.v0.models.LocalizedItemPricesExportType | io.flow.v0.models.MarketingFeedsExportType);
8440
+ type ExportType = (io.flow.v0.models.AccountTransactionsExportType | io.flow.v0.models.AccountOrdersExportType | io.flow.v0.models.AnalyticsExportType | io.flow.v0.models.CatalogItemExportType | io.flow.v0.models.ExperienceExportType | io.flow.v0.models.HarmonizationOverviewExportType | io.flow.v0.models.HarmonizationHs6ExportType | io.flow.v0.models.HarmonizationHs10ExportType | io.flow.v0.models.HarmonizationTariffCodesExportType | io.flow.v0.models.UnharmonizedItemExportType | io.flow.v0.models.OrderExportType | io.flow.v0.models.PriceBookItemExportType | io.flow.v0.models.SolidusProductExportType | io.flow.v0.models.SolidusVariantExportType | io.flow.v0.models.LocalizedItemPricesExportType | io.flow.v0.models.MarketingFeedsExportType);
8460
8441
  type FieldValidationRule = (io.flow.v0.models.FieldValidationRequired | io.flow.v0.models.FieldValidationMin | io.flow.v0.models.FieldValidationMax | io.flow.v0.models.FieldValidationPattern);
8461
8442
  type GatewayAuthenticationData = (io.flow.v0.models.StripeAuthenticationData);
8462
8443
  type GatewayAuthenticationDataForm = (io.flow.v0.models.StripeAuthenticationDataForm);
@@ -8681,7 +8662,6 @@ export type CheckoutOptinResponses = io.flow.v0.models.CheckoutOptinResponses;
8681
8662
  export type CheckoutOptinResponsesDeleted = io.flow.v0.models.CheckoutOptinResponsesDeleted;
8682
8663
  export type CheckoutOptinResponsesUpserted = io.flow.v0.models.CheckoutOptinResponsesUpserted;
8683
8664
  export type CheckoutReference = io.flow.v0.models.CheckoutReference;
8684
- export type CheckoutSettings = io.flow.v0.models.CheckoutSettings;
8685
8665
  export type CheckoutToken = io.flow.v0.models.CheckoutToken;
8686
8666
  export type CheckoutTokenForm = io.flow.v0.unions.CheckoutTokenForm;
8687
8667
  export type CheckoutTokenOrderForm = io.flow.v0.models.CheckoutTokenOrderForm;
@@ -8869,6 +8849,7 @@ export type ExpandableOrganization = io.flow.v0.unions.ExpandableOrganization;
8869
8849
  export type ExpandableSubcatalog = io.flow.v0.unions.ExpandableSubcatalog;
8870
8850
  export type ExpandableUser = io.flow.v0.unions.ExpandableUser;
8871
8851
  export type Experience = io.flow.v0.models.Experience;
8852
+ export type ExperienceCheckoutConfigurationSettings = io.flow.v0.models.ExperienceCheckoutConfigurationSettings;
8872
8853
  export type ExperienceCheckoutSettings = io.flow.v0.models.ExperienceCheckoutSettings;
8873
8854
  export type ExperienceCheckoutSettingsForm = io.flow.v0.models.ExperienceCheckoutSettingsForm;
8874
8855
  export type ExperienceClone = io.flow.v0.models.ExperienceClone;
@@ -8913,7 +8894,6 @@ export type ExperienceSummary = io.flow.v0.models.ExperienceSummary;
8913
8894
  export type ExperienceUpserted = io.flow.v0.models.ExperienceUpserted;
8914
8895
  export type ExperienceUpsertedV2 = io.flow.v0.models.ExperienceUpsertedV2;
8915
8896
  export type ExperienceVersion = io.flow.v0.models.ExperienceVersion;
8916
- export type Experiment = io.flow.v0.models.Experiment;
8917
8897
  export type ExperimentVariant = io.flow.v0.models.ExperimentVariant;
8918
8898
  export type Expiration = io.flow.v0.models.Expiration;
8919
8899
  export type Export = io.flow.v0.models.Export;
@@ -8982,6 +8962,7 @@ export type HarmonizationDocument = io.flow.v0.models.HarmonizationDocument;
8982
8962
  export type HarmonizationHs10ExportType = io.flow.v0.models.HarmonizationHs10ExportType;
8983
8963
  export type HarmonizationHs6ExportType = io.flow.v0.models.HarmonizationHs6ExportType;
8984
8964
  export type HarmonizationOverviewExportType = io.flow.v0.models.HarmonizationOverviewExportType;
8965
+ export type HarmonizationTariffCodesExportType = io.flow.v0.models.HarmonizationTariffCodesExportType;
8985
8966
  export type HarmonizedCategory = io.flow.v0.models.HarmonizedCategory;
8986
8967
  export type HarmonizedCategoryReference = io.flow.v0.models.HarmonizedCategoryReference;
8987
8968
  export type HarmonizedItem = io.flow.v0.models.HarmonizedItem;
@@ -9510,6 +9491,7 @@ export type ServiceSummary = io.flow.v0.models.ServiceSummary;
9510
9491
  export type Session = io.flow.v0.unions.Session;
9511
9492
  export type SessionAuthorization = io.flow.v0.unions.SessionAuthorization;
9512
9493
  export type SessionAuthorizationForm = io.flow.v0.models.SessionAuthorizationForm;
9494
+ export type SessionContextExperiment = io.flow.v0.models.SessionContextExperiment;
9513
9495
  export type SessionCurrencyFormat = io.flow.v0.models.SessionCurrencyFormat;
9514
9496
  export type SessionExperiment = io.flow.v0.models.SessionExperiment;
9515
9497
  export type SessionExperimentForm = io.flow.v0.models.SessionExperimentForm;