@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.d.ts CHANGED
@@ -282,54 +282,6 @@ declare namespace io.flow.shopify.external.v0.models {
282
282
  readonly name: string;
283
283
  readonly value: string;
284
284
  }
285
- interface ShopifyCart {
286
- readonly token: string;
287
- readonly note?: string;
288
- readonly attributes?: any;
289
- readonly items_subtotal_price?: number;
290
- readonly total_price: number;
291
- readonly total_weight: number;
292
- readonly total_discount: number;
293
- readonly original_total_price: number;
294
- readonly item_count: number;
295
- readonly requires_shipping: boolean;
296
- readonly currency?: string;
297
- readonly items: io.flow.shopify.external.v0.models.ShopifyCartItem[];
298
- readonly cart_level_discount_applications?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
299
- }
300
- interface ShopifyCartItem {
301
- readonly id: number;
302
- readonly title: string;
303
- readonly key?: string;
304
- readonly price: number;
305
- readonly line_price: number;
306
- readonly final_price: number;
307
- readonly final_line_price: number;
308
- readonly original_price: number;
309
- readonly original_line_price: number;
310
- readonly total_discount: number;
311
- readonly discounted_price: number;
312
- readonly discounts?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
313
- readonly taxable: boolean;
314
- readonly quantity: number;
315
- readonly sku?: string;
316
- readonly grams?: number;
317
- readonly vendor?: string;
318
- readonly properties?: any;
319
- readonly variant_id?: number;
320
- readonly gift_card: boolean;
321
- readonly url: string;
322
- readonly image?: string;
323
- readonly handle: string;
324
- readonly requires_shipping: boolean;
325
- readonly product_id: number;
326
- readonly product_title: string;
327
- readonly product_description?: string;
328
- readonly product_type: string;
329
- readonly variant_title?: string;
330
- readonly variant_options?: string[];
331
- readonly line_level_discount_allocations?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
332
- }
333
285
  interface ShopifyCartItemDiscount {
334
286
  readonly amount: number;
335
287
  readonly title: string;
@@ -409,6 +361,54 @@ declare namespace io.flow.shopify.external.v0.models {
409
361
  interface ShopifyError {
410
362
  readonly errors: any;
411
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
+ }
412
412
  interface ShopifyFulfillment {
413
413
  readonly location_id: number;
414
414
  readonly created_at?: string;
@@ -810,7 +810,7 @@ declare namespace io.flow.v0.enums {
810
810
  type Capability = 'crossdock';
811
811
  type CaptureDeclineCode = 'expired' | 'insufficient_funds' | 'unknown';
812
812
  type CaptureStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
813
- 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';
814
814
  type CardType = 'american_express' | 'cartes_bancaires' | 'china_union_pay' | 'dankort' | 'diners_club' | 'discover' | 'jcb' | 'maestro' | 'mastercard' | 'visa';
815
815
  type CenterCapability = 'international' | 'domestic' | 'crossdock' | 'commercial_invoice';
816
816
  type ChangeType = 'insert' | 'update' | 'delete';
@@ -1630,6 +1630,7 @@ declare namespace io.flow.v0.models {
1630
1630
  readonly challenge_text?: string;
1631
1631
  readonly challenge_cipher?: string;
1632
1632
  readonly token_type?: io.flow.v0.enums.TokenType;
1633
+ readonly requested_currency?: string;
1633
1634
  }
1634
1635
  interface CardNonceForm {
1635
1636
  readonly token: string;
@@ -1922,9 +1923,6 @@ declare namespace io.flow.v0.models {
1922
1923
  interface CheckoutReference {
1923
1924
  readonly id: string;
1924
1925
  }
1925
- interface CheckoutSettings {
1926
- readonly configuration: io.flow.v0.models.ExperienceConfigurationReference;
1927
- }
1928
1926
  interface CheckoutToken {
1929
1927
  readonly id: string;
1930
1928
  readonly organization: io.flow.v0.models.OrganizationReference;
@@ -2092,10 +2090,10 @@ declare namespace io.flow.v0.models {
2092
2090
  }
2093
2091
  interface Context {
2094
2092
  readonly id: string;
2095
- readonly experiments: io.flow.v0.models.Experiment[];
2093
+ readonly experiments: io.flow.v0.models.SessionContextExperiment[];
2096
2094
  }
2097
2095
  interface ContextForm {
2098
- readonly experiments: io.flow.v0.models.Experiment[];
2096
+ readonly experiments: io.flow.v0.models.SessionContextExperiment[];
2099
2097
  }
2100
2098
  interface ContextReference {
2101
2099
  readonly id: string;
@@ -2772,6 +2770,9 @@ declare namespace io.flow.v0.models {
2772
2770
  readonly settings: io.flow.v0.models.ExperienceSettings;
2773
2771
  readonly status?: io.flow.v0.enums.ExperienceStatus;
2774
2772
  }
2773
+ interface ExperienceCheckoutConfigurationSettings {
2774
+ readonly configuration: io.flow.v0.models.ExperienceConfigurationReference;
2775
+ }
2775
2776
  interface ExperienceCheckoutSettings {
2776
2777
  readonly id: string;
2777
2778
  readonly experience: io.flow.v0.models.ExperienceOverview;
@@ -2955,7 +2956,7 @@ declare namespace io.flow.v0.models {
2955
2956
  readonly delivered_duty: io.flow.v0.models.DeliveredDutySetting;
2956
2957
  readonly pricing_settings?: io.flow.v0.models.PricingSettings;
2957
2958
  readonly logistics_settings?: io.flow.v0.models.LogisticsSettings;
2958
- readonly checkout_settings?: io.flow.v0.models.CheckoutSettings;
2959
+ readonly checkout_settings?: io.flow.v0.models.ExperienceCheckoutConfigurationSettings;
2959
2960
  }
2960
2961
  interface ExperienceStatusForm {
2961
2962
  readonly status: io.flow.v0.enums.ExperienceStatus;
@@ -2998,10 +2999,6 @@ declare namespace io.flow.v0.models {
2998
2999
  readonly type: io.flow.v0.enums.ChangeType;
2999
3000
  readonly experience: io.flow.v0.models.Experience;
3000
3001
  }
3001
- interface Experiment {
3002
- readonly key: string;
3003
- readonly variant?: io.flow.v0.models.ExperimentVariant;
3004
- }
3005
3002
  interface ExperimentVariant {
3006
3003
  readonly key: string;
3007
3004
  }
@@ -6144,6 +6141,10 @@ declare namespace io.flow.v0.models {
6144
6141
  interface SessionAuthorizationForm {
6145
6142
  readonly session: string;
6146
6143
  }
6144
+ interface SessionContextExperiment {
6145
+ readonly key: string;
6146
+ readonly variant?: io.flow.v0.models.ExperimentVariant;
6147
+ }
6147
6148
  interface SessionCurrencyFormat {
6148
6149
  readonly symbol: io.flow.v0.enums.CurrencySymbolFormat;
6149
6150
  readonly label_formatters: io.flow.v0.enums.CurrencyLabelFormatter[];
@@ -6453,7 +6454,7 @@ declare namespace io.flow.v0.models {
6453
6454
  readonly errors?: io.flow.v0.models.OrderError[];
6454
6455
  }
6455
6456
  interface ShopifyCartConversionShopifyCart {
6456
- readonly cart: io.flow.shopify.external.v0.models.ShopifyCart;
6457
+ readonly cart: io.flow.shopify.external.v0.models.ShopifyExternalCart;
6457
6458
  }
6458
6459
  interface ShopifyCartItem {
6459
6460
  readonly id: string;
@@ -7546,7 +7547,6 @@ export declare type CheckoutOptinResponses = io.flow.v0.models.CheckoutOptinResp
7546
7547
  export declare type CheckoutOptinResponsesDeleted = io.flow.v0.models.CheckoutOptinResponsesDeleted;
7547
7548
  export declare type CheckoutOptinResponsesUpserted = io.flow.v0.models.CheckoutOptinResponsesUpserted;
7548
7549
  export declare type CheckoutReference = io.flow.v0.models.CheckoutReference;
7549
- export declare type CheckoutSettings = io.flow.v0.models.CheckoutSettings;
7550
7550
  export declare type CheckoutToken = io.flow.v0.models.CheckoutToken;
7551
7551
  export declare type CheckoutTokenForm = io.flow.v0.unions.CheckoutTokenForm;
7552
7552
  export declare type CheckoutTokenOrderForm = io.flow.v0.models.CheckoutTokenOrderForm;
@@ -7734,6 +7734,7 @@ export declare type ExpandableOrganization = io.flow.v0.unions.ExpandableOrganiz
7734
7734
  export declare type ExpandableSubcatalog = io.flow.v0.unions.ExpandableSubcatalog;
7735
7735
  export declare type ExpandableUser = io.flow.v0.unions.ExpandableUser;
7736
7736
  export declare type Experience = io.flow.v0.models.Experience;
7737
+ export declare type ExperienceCheckoutConfigurationSettings = io.flow.v0.models.ExperienceCheckoutConfigurationSettings;
7737
7738
  export declare type ExperienceCheckoutSettings = io.flow.v0.models.ExperienceCheckoutSettings;
7738
7739
  export declare type ExperienceCheckoutSettingsForm = io.flow.v0.models.ExperienceCheckoutSettingsForm;
7739
7740
  export declare type ExperienceClone = io.flow.v0.models.ExperienceClone;
@@ -7778,7 +7779,6 @@ export declare type ExperienceSummary = io.flow.v0.models.ExperienceSummary;
7778
7779
  export declare type ExperienceUpserted = io.flow.v0.models.ExperienceUpserted;
7779
7780
  export declare type ExperienceUpsertedV2 = io.flow.v0.models.ExperienceUpsertedV2;
7780
7781
  export declare type ExperienceVersion = io.flow.v0.models.ExperienceVersion;
7781
- export declare type Experiment = io.flow.v0.models.Experiment;
7782
7782
  export declare type ExperimentVariant = io.flow.v0.models.ExperimentVariant;
7783
7783
  export declare type Expiration = io.flow.v0.models.Expiration;
7784
7784
  export declare type Export = io.flow.v0.models.Export;
@@ -8376,6 +8376,7 @@ export declare type ServiceSummary = io.flow.v0.models.ServiceSummary;
8376
8376
  export declare type Session = io.flow.v0.unions.Session;
8377
8377
  export declare type SessionAuthorization = io.flow.v0.unions.SessionAuthorization;
8378
8378
  export declare type SessionAuthorizationForm = io.flow.v0.models.SessionAuthorizationForm;
8379
+ export declare type SessionContextExperiment = io.flow.v0.models.SessionContextExperiment;
8379
8380
  export declare type SessionCurrencyFormat = io.flow.v0.models.SessionCurrencyFormat;
8380
8381
  export declare type SessionExperiment = io.flow.v0.models.SessionExperiment;
8381
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": "10.0.0",
3
+ "version": "10.1.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",
@@ -27,5 +27,5 @@
27
27
  "prettier": "^1.18.2",
28
28
  "typescript": "3.8.3"
29
29
  },
30
- "gitHead": "56776feef4dfb699db3a581bca2c6541c3fbe16c"
30
+ "gitHead": "21eccc1be06d4db5332399088bb4045603592533"
31
31
  }