@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/dist/api.d.ts CHANGED
@@ -52,22 +52,6 @@ declare namespace io.flow.shopify.external.v0.models {
52
52
  interface Count {
53
53
  readonly 'count': number;
54
54
  }
55
- interface Discount {
56
- readonly 'id': number;
57
- readonly 'discount_type': io.flow.shopify.external.v0.enums.DiscountType;
58
- readonly 'code': string;
59
- readonly 'value'?: number;
60
- readonly 'status': io.flow.shopify.external.v0.enums.DiscountStatus;
61
- readonly 'usage_limit'?: number;
62
- readonly 'applies_once': boolean;
63
- readonly 'applies_once_per_customer': boolean;
64
- readonly 'ends_at'?: string;
65
- readonly 'starts_at'?: string;
66
- readonly 'minimum_order_amount'?: number;
67
- readonly 'applies_to_id'?: number;
68
- readonly 'applies_to_resource'?: string;
69
- readonly 'times_used': number;
70
- }
71
55
  interface Metafield {
72
56
  readonly 'id': number;
73
57
  readonly 'key': string;
@@ -218,12 +202,6 @@ declare namespace io.flow.shopify.external.v0.models {
218
202
  interface ResponseCollects {
219
203
  readonly 'collects': io.flow.shopify.external.v0.models.Collect[];
220
204
  }
221
- interface ResponseDiscount {
222
- readonly 'discount': io.flow.shopify.external.v0.models.Discount;
223
- }
224
- interface ResponseDiscounts {
225
- readonly 'discounts': io.flow.shopify.external.v0.models.Discount[];
226
- }
227
205
  interface ResponseMetafield {
228
206
  readonly 'metafield': io.flow.shopify.external.v0.models.Metafield;
229
207
  }
@@ -304,54 +282,6 @@ declare namespace io.flow.shopify.external.v0.models {
304
282
  readonly 'name': string;
305
283
  readonly 'value': string;
306
284
  }
307
- interface ShopifyCart {
308
- readonly 'token': string;
309
- readonly 'note'?: string;
310
- readonly 'attributes'?: any;
311
- readonly 'items_subtotal_price'?: number;
312
- readonly 'total_price': number;
313
- readonly 'total_weight': number;
314
- readonly 'total_discount': number;
315
- readonly 'original_total_price': number;
316
- readonly 'item_count': number;
317
- readonly 'requires_shipping': boolean;
318
- readonly 'currency'?: string;
319
- readonly 'items': io.flow.shopify.external.v0.models.ShopifyCartItem[];
320
- readonly 'cart_level_discount_applications'?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
321
- }
322
- interface ShopifyCartItem {
323
- readonly 'id': number;
324
- readonly 'title': string;
325
- readonly 'key'?: string;
326
- readonly 'price': number;
327
- readonly 'line_price': number;
328
- readonly 'final_price': number;
329
- readonly 'final_line_price': number;
330
- readonly 'original_price': number;
331
- readonly 'original_line_price': number;
332
- readonly 'total_discount': number;
333
- readonly 'discounted_price': number;
334
- readonly 'discounts'?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
335
- readonly 'taxable': boolean;
336
- readonly 'quantity': number;
337
- readonly 'sku'?: string;
338
- readonly 'grams'?: number;
339
- readonly 'vendor'?: string;
340
- readonly 'properties'?: any;
341
- readonly 'variant_id'?: number;
342
- readonly 'gift_card': boolean;
343
- readonly 'url': string;
344
- readonly 'image'?: string;
345
- readonly 'handle': string;
346
- readonly 'requires_shipping': boolean;
347
- readonly 'product_id': number;
348
- readonly 'product_title': string;
349
- readonly 'product_description'?: string;
350
- readonly 'product_type': string;
351
- readonly 'variant_title'?: string;
352
- readonly 'variant_options'?: string[];
353
- readonly 'line_level_discount_allocations'?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
354
- }
355
285
  interface ShopifyCartItemDiscount {
356
286
  readonly 'amount': number;
357
287
  readonly 'title': string;
@@ -431,6 +361,54 @@ declare namespace io.flow.shopify.external.v0.models {
431
361
  interface ShopifyError {
432
362
  readonly 'errors': any;
433
363
  }
364
+ interface ShopifyExternalCart {
365
+ readonly 'token': string;
366
+ readonly 'note'?: string;
367
+ readonly 'attributes'?: any;
368
+ readonly 'items_subtotal_price'?: number;
369
+ readonly 'total_price': number;
370
+ readonly 'total_weight': number;
371
+ readonly 'total_discount': number;
372
+ readonly 'original_total_price': number;
373
+ readonly 'item_count': number;
374
+ readonly 'requires_shipping': boolean;
375
+ readonly 'currency'?: string;
376
+ readonly 'items': io.flow.shopify.external.v0.models.ShopifyExternalCartItem[];
377
+ readonly 'cart_level_discount_applications'?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
378
+ }
379
+ interface ShopifyExternalCartItem {
380
+ readonly 'id': number;
381
+ readonly 'title': string;
382
+ readonly 'key'?: string;
383
+ readonly 'price': number;
384
+ readonly 'line_price': number;
385
+ readonly 'final_price': number;
386
+ readonly 'final_line_price': number;
387
+ readonly 'original_price': number;
388
+ readonly 'original_line_price': number;
389
+ readonly 'total_discount': number;
390
+ readonly 'discounted_price': number;
391
+ readonly 'discounts'?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
392
+ readonly 'taxable': boolean;
393
+ readonly 'quantity': number;
394
+ readonly 'sku'?: string;
395
+ readonly 'grams'?: number;
396
+ readonly 'vendor'?: string;
397
+ readonly 'properties'?: any;
398
+ readonly 'variant_id'?: number;
399
+ readonly 'gift_card': boolean;
400
+ readonly 'url': string;
401
+ readonly 'image'?: string;
402
+ readonly 'handle': string;
403
+ readonly 'requires_shipping': boolean;
404
+ readonly 'product_id': number;
405
+ readonly 'product_title': string;
406
+ readonly 'product_description'?: string;
407
+ readonly 'product_type': string;
408
+ readonly 'variant_title'?: string;
409
+ readonly 'variant_options'?: string[];
410
+ readonly 'line_level_discount_allocations'?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
411
+ }
434
412
  interface ShopifyFulfillment {
435
413
  readonly 'location_id': number;
436
414
  readonly 'created_at'?: string;
@@ -832,7 +810,7 @@ declare namespace io.flow.v0.enums {
832
810
  type Capability = 'crossdock';
833
811
  type CaptureDeclineCode = 'expired' | 'insufficient_funds' | 'unknown';
834
812
  type CaptureStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
835
- type CardErrorCode = 'invalid_address' | 'invalid_name' | 'invalid_number' | 'invalid_expiration' | 'invalid_token_type' | 'avs' | 'cvv' | 'fraud' | 'unknown';
813
+ type CardErrorCode = 'invalid_address' | 'invalid_currency' | 'invalid_name' | 'invalid_number' | 'invalid_expiration' | 'invalid_token_type' | 'avs' | 'cvv' | 'fraud' | 'unknown';
836
814
  type CardType = 'american_express' | 'cartes_bancaires' | 'china_union_pay' | 'dankort' | 'diners_club' | 'discover' | 'jcb' | 'maestro' | 'mastercard' | 'visa';
837
815
  type CenterCapability = 'international' | 'domestic' | 'crossdock' | 'commercial_invoice';
838
816
  type ChangeType = 'insert' | 'update' | 'delete';
@@ -1652,6 +1630,7 @@ declare namespace io.flow.v0.models {
1652
1630
  readonly 'challenge_text'?: string;
1653
1631
  readonly 'challenge_cipher'?: string;
1654
1632
  readonly 'token_type'?: io.flow.v0.enums.TokenType;
1633
+ readonly 'requested_currency'?: string;
1655
1634
  }
1656
1635
  interface CardNonceForm {
1657
1636
  readonly 'token': string;
@@ -1944,9 +1923,6 @@ declare namespace io.flow.v0.models {
1944
1923
  interface CheckoutReference {
1945
1924
  readonly 'id': string;
1946
1925
  }
1947
- interface CheckoutSettings {
1948
- readonly 'configuration': io.flow.v0.models.ExperienceConfigurationReference;
1949
- }
1950
1926
  interface CheckoutToken {
1951
1927
  readonly 'id': string;
1952
1928
  readonly 'organization': io.flow.v0.models.OrganizationReference;
@@ -2114,10 +2090,10 @@ declare namespace io.flow.v0.models {
2114
2090
  }
2115
2091
  interface Context {
2116
2092
  readonly 'id': string;
2117
- readonly 'experiments': io.flow.v0.models.Experiment[];
2093
+ readonly 'experiments': io.flow.v0.models.SessionContextExperiment[];
2118
2094
  }
2119
2095
  interface ContextForm {
2120
- readonly 'experiments': io.flow.v0.models.Experiment[];
2096
+ readonly 'experiments': io.flow.v0.models.SessionContextExperiment[];
2121
2097
  }
2122
2098
  interface ContextReference {
2123
2099
  readonly 'id': string;
@@ -2794,6 +2770,9 @@ declare namespace io.flow.v0.models {
2794
2770
  readonly 'settings': io.flow.v0.models.ExperienceSettings;
2795
2771
  readonly 'status'?: io.flow.v0.enums.ExperienceStatus;
2796
2772
  }
2773
+ interface ExperienceCheckoutConfigurationSettings {
2774
+ readonly 'configuration': io.flow.v0.models.ExperienceConfigurationReference;
2775
+ }
2797
2776
  interface ExperienceCheckoutSettings {
2798
2777
  readonly 'id': string;
2799
2778
  readonly 'experience': io.flow.v0.models.ExperienceOverview;
@@ -2977,7 +2956,7 @@ declare namespace io.flow.v0.models {
2977
2956
  readonly 'delivered_duty': io.flow.v0.models.DeliveredDutySetting;
2978
2957
  readonly 'pricing_settings'?: io.flow.v0.models.PricingSettings;
2979
2958
  readonly 'logistics_settings'?: io.flow.v0.models.LogisticsSettings;
2980
- readonly 'checkout_settings'?: io.flow.v0.models.CheckoutSettings;
2959
+ readonly 'checkout_settings'?: io.flow.v0.models.ExperienceCheckoutConfigurationSettings;
2981
2960
  }
2982
2961
  interface ExperienceStatusForm {
2983
2962
  readonly 'status': io.flow.v0.enums.ExperienceStatus;
@@ -3020,10 +2999,6 @@ declare namespace io.flow.v0.models {
3020
2999
  readonly 'type': io.flow.v0.enums.ChangeType;
3021
3000
  readonly 'experience': io.flow.v0.models.Experience;
3022
3001
  }
3023
- interface Experiment {
3024
- readonly 'key': string;
3025
- readonly 'variant'?: io.flow.v0.models.ExperimentVariant;
3026
- }
3027
3002
  interface ExperimentVariant {
3028
3003
  readonly 'key': string;
3029
3004
  }
@@ -3291,6 +3266,10 @@ declare namespace io.flow.v0.models {
3291
3266
  readonly 'destination'?: string;
3292
3267
  readonly 'sort'?: string;
3293
3268
  }
3269
+ interface HarmonizationTariffCodesExportType {
3270
+ readonly 'discriminator': 'harmonization_tariff_codes_export_type';
3271
+ readonly 'sort'?: string;
3272
+ }
3294
3273
  interface HarmonizedCategory {
3295
3274
  readonly 'id': string;
3296
3275
  readonly 'name': string;
@@ -6162,6 +6141,10 @@ declare namespace io.flow.v0.models {
6162
6141
  interface SessionAuthorizationForm {
6163
6142
  readonly 'session': string;
6164
6143
  }
6144
+ interface SessionContextExperiment {
6145
+ readonly 'key': string;
6146
+ readonly 'variant'?: io.flow.v0.models.ExperimentVariant;
6147
+ }
6165
6148
  interface SessionCurrencyFormat {
6166
6149
  readonly 'symbol': io.flow.v0.enums.CurrencySymbolFormat;
6167
6150
  readonly 'label_formatters': io.flow.v0.enums.CurrencyLabelFormatter[];
@@ -6471,7 +6454,7 @@ declare namespace io.flow.v0.models {
6471
6454
  readonly 'errors'?: io.flow.v0.models.OrderError[];
6472
6455
  }
6473
6456
  interface ShopifyCartConversionShopifyCart {
6474
- readonly 'cart': io.flow.shopify.external.v0.models.ShopifyCart;
6457
+ readonly 'cart': io.flow.shopify.external.v0.models.ShopifyExternalCart;
6475
6458
  }
6476
6459
  interface ShopifyCartItem {
6477
6460
  readonly 'id': string;
@@ -7342,7 +7325,7 @@ declare namespace io.flow.v0.unions {
7342
7325
  type ExpandableSubcatalog = (io.flow.v0.models.Subcatalog | io.flow.v0.models.SubcatalogReference);
7343
7326
  type ExpandableUser = (io.flow.v0.models.User | io.flow.v0.models.UserReference);
7344
7327
  type ExportDelivery = (io.flow.v0.models.ExportDeliveryEmail);
7345
- 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);
7328
+ 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);
7346
7329
  type FieldValidationRule = (io.flow.v0.models.FieldValidationRequired | io.flow.v0.models.FieldValidationMin | io.flow.v0.models.FieldValidationMax | io.flow.v0.models.FieldValidationPattern);
7347
7330
  type GatewayAuthenticationData = (io.flow.v0.models.StripeAuthenticationData);
7348
7331
  type GatewayAuthenticationDataForm = (io.flow.v0.models.StripeAuthenticationDataForm);
@@ -7564,7 +7547,6 @@ export declare type CheckoutOptinResponses = io.flow.v0.models.CheckoutOptinResp
7564
7547
  export declare type CheckoutOptinResponsesDeleted = io.flow.v0.models.CheckoutOptinResponsesDeleted;
7565
7548
  export declare type CheckoutOptinResponsesUpserted = io.flow.v0.models.CheckoutOptinResponsesUpserted;
7566
7549
  export declare type CheckoutReference = io.flow.v0.models.CheckoutReference;
7567
- export declare type CheckoutSettings = io.flow.v0.models.CheckoutSettings;
7568
7550
  export declare type CheckoutToken = io.flow.v0.models.CheckoutToken;
7569
7551
  export declare type CheckoutTokenForm = io.flow.v0.unions.CheckoutTokenForm;
7570
7552
  export declare type CheckoutTokenOrderForm = io.flow.v0.models.CheckoutTokenOrderForm;
@@ -7752,6 +7734,7 @@ export declare type ExpandableOrganization = io.flow.v0.unions.ExpandableOrganiz
7752
7734
  export declare type ExpandableSubcatalog = io.flow.v0.unions.ExpandableSubcatalog;
7753
7735
  export declare type ExpandableUser = io.flow.v0.unions.ExpandableUser;
7754
7736
  export declare type Experience = io.flow.v0.models.Experience;
7737
+ export declare type ExperienceCheckoutConfigurationSettings = io.flow.v0.models.ExperienceCheckoutConfigurationSettings;
7755
7738
  export declare type ExperienceCheckoutSettings = io.flow.v0.models.ExperienceCheckoutSettings;
7756
7739
  export declare type ExperienceCheckoutSettingsForm = io.flow.v0.models.ExperienceCheckoutSettingsForm;
7757
7740
  export declare type ExperienceClone = io.flow.v0.models.ExperienceClone;
@@ -7796,7 +7779,6 @@ export declare type ExperienceSummary = io.flow.v0.models.ExperienceSummary;
7796
7779
  export declare type ExperienceUpserted = io.flow.v0.models.ExperienceUpserted;
7797
7780
  export declare type ExperienceUpsertedV2 = io.flow.v0.models.ExperienceUpsertedV2;
7798
7781
  export declare type ExperienceVersion = io.flow.v0.models.ExperienceVersion;
7799
- export declare type Experiment = io.flow.v0.models.Experiment;
7800
7782
  export declare type ExperimentVariant = io.flow.v0.models.ExperimentVariant;
7801
7783
  export declare type Expiration = io.flow.v0.models.Expiration;
7802
7784
  export declare type Export = io.flow.v0.models.Export;
@@ -7865,6 +7847,7 @@ export declare type HarmonizationDocument = io.flow.v0.models.HarmonizationDocum
7865
7847
  export declare type HarmonizationHs10ExportType = io.flow.v0.models.HarmonizationHs10ExportType;
7866
7848
  export declare type HarmonizationHs6ExportType = io.flow.v0.models.HarmonizationHs6ExportType;
7867
7849
  export declare type HarmonizationOverviewExportType = io.flow.v0.models.HarmonizationOverviewExportType;
7850
+ export declare type HarmonizationTariffCodesExportType = io.flow.v0.models.HarmonizationTariffCodesExportType;
7868
7851
  export declare type HarmonizedCategory = io.flow.v0.models.HarmonizedCategory;
7869
7852
  export declare type HarmonizedCategoryReference = io.flow.v0.models.HarmonizedCategoryReference;
7870
7853
  export declare type HarmonizedItem = io.flow.v0.models.HarmonizedItem;
@@ -8393,6 +8376,7 @@ export declare type ServiceSummary = io.flow.v0.models.ServiceSummary;
8393
8376
  export declare type Session = io.flow.v0.unions.Session;
8394
8377
  export declare type SessionAuthorization = io.flow.v0.unions.SessionAuthorization;
8395
8378
  export declare type SessionAuthorizationForm = io.flow.v0.models.SessionAuthorizationForm;
8379
+ export declare type SessionContextExperiment = io.flow.v0.models.SessionContextExperiment;
8396
8380
  export declare type SessionCurrencyFormat = io.flow.v0.models.SessionCurrencyFormat;
8397
8381
  export declare type SessionExperiment = io.flow.v0.models.SessionExperiment;
8398
8382
  export declare type SessionExperimentForm = io.flow.v0.models.SessionExperimentForm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "9.5.0",
3
+ "version": "10.1.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.8.3"
29
29
  },
30
- "gitHead": "43b3ec32f71367c5889a59f765989914fc8425cb"
30
+ "gitHead": "8dce4f366374b93b7fe2f148b21b9c03a74b13e6"
31
31
  }