@flowio/types 8.0.4 → 8.0.7

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
@@ -310,10 +310,6 @@ declare namespace io.flow.v0.enums {
310
310
  | 'return_deleted'
311
311
  | 'shopify_localization_setting_upserted'
312
312
  | 'shopify_localization_setting_deleted'
313
- | 'targeting_item_upserted'
314
- | 'targeting_item_upserted_v2'
315
- | 'targeting_item_deleted'
316
- | 'targeting_item_deleted_v3'
317
313
  | 'tracking_label_event_upserted';
318
314
  type ExceptionType = 'open' | 'closed';
319
315
  type ExclusionRuleState = 'current' | 'deleting' | 'updating';
@@ -1909,6 +1905,19 @@ declare namespace io.flow.v0.models {
1909
1905
  readonly phone?: string;
1910
1906
  }
1911
1907
 
1908
+ interface Context {
1909
+ readonly id: string;
1910
+ readonly experiments: io.flow.v0.models.Experiment[];
1911
+ }
1912
+
1913
+ interface ContextForm {
1914
+ readonly experiments: io.flow.v0.models.ExperimentForm[];
1915
+ }
1916
+
1917
+ interface ContextReference {
1918
+ readonly id: string;
1919
+ }
1920
+
1912
1921
  interface Country {
1913
1922
  readonly name: string;
1914
1923
  readonly iso_3166_2: string;
@@ -2877,6 +2886,25 @@ declare namespace io.flow.v0.models {
2877
2886
  readonly experience: io.flow.v0.models.Experience;
2878
2887
  }
2879
2888
 
2889
+ interface Experiment {
2890
+ readonly key: string;
2891
+ readonly variant?: io.flow.v0.models.ExperimentVariant;
2892
+ }
2893
+
2894
+ interface ExperimentForm {
2895
+ readonly key: string;
2896
+ readonly variant?: io.flow.v0.models.ExperimentVariantForm;
2897
+ }
2898
+
2899
+ interface ExperimentVariant {
2900
+ readonly key: string;
2901
+ readonly name: string;
2902
+ }
2903
+
2904
+ interface ExperimentVariantForm {
2905
+ readonly key: string;
2906
+ }
2907
+
2880
2908
  interface Expiration {
2881
2909
  readonly month: number;
2882
2910
  readonly year: number;
@@ -5078,6 +5106,7 @@ declare namespace io.flow.v0.models {
5078
5106
  readonly experience?: io.flow.v0.models.ExperienceGeo;
5079
5107
  readonly format?: io.flow.v0.models.SessionFormat;
5080
5108
  readonly experiment?: io.flow.v0.models.SessionExperiment;
5109
+ readonly context?: io.flow.v0.models.ContextReference;
5081
5110
  }
5082
5111
 
5083
5112
  interface OrganizationSessionAuthorization {
@@ -6572,6 +6601,7 @@ declare namespace io.flow.v0.models {
6572
6601
  readonly locale?: string;
6573
6602
  readonly attributes?: Record<string, string>;
6574
6603
  readonly experiment?: io.flow.v0.models.SessionExperimentForm;
6604
+ readonly context?: io.flow.v0.models.ContextForm;
6575
6605
  }
6576
6606
 
6577
6607
  interface SessionFormat {
@@ -6594,6 +6624,7 @@ declare namespace io.flow.v0.models {
6594
6624
  readonly locale?: string;
6595
6625
  readonly attributes?: Record<string, string>;
6596
6626
  readonly experiment?: io.flow.v0.models.SessionExperimentForm;
6627
+ readonly context?: io.flow.v0.models.ContextForm;
6597
6628
  }
6598
6629
 
6599
6630
  interface SessionReference {
@@ -7313,91 +7344,6 @@ declare namespace io.flow.v0.models {
7313
7344
  readonly available: io.flow.v0.models.SurchargeResponsiblePartyDisplay[];
7314
7345
  }
7315
7346
 
7316
- interface Targeting {
7317
- readonly id: string;
7318
- readonly key: string;
7319
- readonly queries: io.flow.v0.models.TargetingQuery[];
7320
- readonly catalog: io.flow.v0.models.CatalogReference;
7321
- readonly subcatalog?: io.flow.v0.models.SubcatalogReference;
7322
- }
7323
-
7324
- interface TargetingForm {
7325
- readonly key: string;
7326
- readonly queries: io.flow.v0.models.TargetingQueryForm[];
7327
- readonly subcatalog_id?: string;
7328
- }
7329
-
7330
- interface TargetingItem {
7331
- readonly id: string;
7332
- readonly targeting: io.flow.v0.models.TargetingSummary;
7333
- readonly item_number: string;
7334
- readonly query: io.flow.v0.models.TargetingQuery;
7335
- }
7336
-
7337
- interface TargetingItemDeleted {
7338
- readonly discriminator: 'targeting_item_deleted';
7339
- readonly event_id: string;
7340
- readonly timestamp: string;
7341
- readonly id: string;
7342
- }
7343
-
7344
- interface TargetingItemDeletedV3 {
7345
- readonly discriminator: 'targeting_item_deleted_v3';
7346
- readonly event_id: string;
7347
- readonly timestamp: string;
7348
- readonly organization: string;
7349
- readonly id: string;
7350
- }
7351
-
7352
- interface TargetingItemUpserted {
7353
- readonly discriminator: 'targeting_item_upserted';
7354
- readonly event_id: string;
7355
- readonly timestamp: string;
7356
- readonly organization: string;
7357
- readonly id: string;
7358
- readonly targeting_id: string;
7359
- readonly item_number: string;
7360
- readonly q: string;
7361
- readonly outcome_id: string;
7362
- readonly catalog_id: string;
7363
- readonly key: string;
7364
- readonly subcatalog_id?: string;
7365
- }
7366
-
7367
- interface TargetingItemUpsertedV2 {
7368
- readonly discriminator: 'targeting_item_upserted_v2';
7369
- readonly event_id: string;
7370
- readonly timestamp: string;
7371
- readonly organization: string;
7372
- readonly targeting_item: io.flow.v0.models.TargetingItem;
7373
- }
7374
-
7375
- interface TargetingQuery {
7376
- readonly id: string;
7377
- readonly q: string;
7378
- readonly outcome_id: string;
7379
- readonly position: number;
7380
- }
7381
-
7382
- interface TargetingQueryForm {
7383
- readonly q: string;
7384
- readonly outcome_id: string;
7385
- }
7386
-
7387
- interface TargetingSummary {
7388
- readonly id: string;
7389
- readonly key: string;
7390
- readonly catalog: io.flow.v0.models.CatalogReference;
7391
- readonly subcatalog?: io.flow.v0.models.SubcatalogReference;
7392
- }
7393
-
7394
- interface TargetingVersion {
7395
- readonly id: string;
7396
- readonly timestamp: string;
7397
- readonly type: io.flow.v0.enums.ChangeType;
7398
- readonly targeting: io.flow.v0.models.Targeting;
7399
- }
7400
-
7401
7347
  interface Tax {
7402
7348
  readonly name: string;
7403
7349
  readonly rate: number;
@@ -8116,10 +8062,6 @@ declare namespace io.flow.v0.unions {
8116
8062
  | io.flow.v0.models.ReturnDeleted
8117
8063
  | io.flow.v0.models.ShopifyLocalizationSettingUpserted
8118
8064
  | io.flow.v0.models.ShopifyLocalizationSettingDeleted
8119
- | io.flow.v0.models.TargetingItemUpserted
8120
- | io.flow.v0.models.TargetingItemUpsertedV2
8121
- | io.flow.v0.models.TargetingItemDeleted
8122
- | io.flow.v0.models.TargetingItemDeletedV3
8123
8065
  | io.flow.v0.models.TrackingLabelEventUpserted;
8124
8066
  type ExpandableCard =
8125
8067
  | io.flow.v0.models.Card
@@ -8496,6 +8438,9 @@ export type ConsumerInvoiceReference = io.flow.v0.models.ConsumerInvoiceReferenc
8496
8438
  export type ConsumerInvoiceStatus = io.flow.v0.enums.ConsumerInvoiceStatus;
8497
8439
  export type ConsumerInvoiceUpserted = io.flow.v0.models.ConsumerInvoiceUpserted;
8498
8440
  export type Contact = io.flow.v0.models.Contact;
8441
+ export type Context = io.flow.v0.models.Context;
8442
+ export type ContextForm = io.flow.v0.models.ContextForm;
8443
+ export type ContextReference = io.flow.v0.models.ContextReference;
8499
8444
  export type Country = io.flow.v0.models.Country;
8500
8445
  export type CountryAvailability = io.flow.v0.models.CountryAvailability;
8501
8446
  export type CountryDefaults = io.flow.v0.models.CountryDefaults;
@@ -8673,6 +8618,10 @@ export type ExperienceSummary = io.flow.v0.models.ExperienceSummary;
8673
8618
  export type ExperienceUpserted = io.flow.v0.models.ExperienceUpserted;
8674
8619
  export type ExperienceUpsertedV2 = io.flow.v0.models.ExperienceUpsertedV2;
8675
8620
  export type ExperienceVersion = io.flow.v0.models.ExperienceVersion;
8621
+ export type Experiment = io.flow.v0.models.Experiment;
8622
+ export type ExperimentForm = io.flow.v0.models.ExperimentForm;
8623
+ export type ExperimentVariant = io.flow.v0.models.ExperimentVariant;
8624
+ export type ExperimentVariantForm = io.flow.v0.models.ExperimentVariantForm;
8676
8625
  export type Expiration = io.flow.v0.models.Expiration;
8677
8626
  export type Export = io.flow.v0.models.Export;
8678
8627
  export type ExportDelivery = io.flow.v0.unions.ExportDelivery;
@@ -9399,17 +9348,6 @@ export type SurchargeResponsibleParty = io.flow.v0.enums.SurchargeResponsiblePar
9399
9348
  export type SurchargeResponsiblePartyDisplay = io.flow.v0.models.SurchargeResponsiblePartyDisplay;
9400
9349
  export type SurchargeSetting = io.flow.v0.models.SurchargeSetting;
9401
9350
  export type SurchargeSettingDisplay = io.flow.v0.models.SurchargeSettingDisplay;
9402
- export type Targeting = io.flow.v0.models.Targeting;
9403
- export type TargetingForm = io.flow.v0.models.TargetingForm;
9404
- export type TargetingItem = io.flow.v0.models.TargetingItem;
9405
- export type TargetingItemDeleted = io.flow.v0.models.TargetingItemDeleted;
9406
- export type TargetingItemDeletedV3 = io.flow.v0.models.TargetingItemDeletedV3;
9407
- export type TargetingItemUpserted = io.flow.v0.models.TargetingItemUpserted;
9408
- export type TargetingItemUpsertedV2 = io.flow.v0.models.TargetingItemUpsertedV2;
9409
- export type TargetingQuery = io.flow.v0.models.TargetingQuery;
9410
- export type TargetingQueryForm = io.flow.v0.models.TargetingQueryForm;
9411
- export type TargetingSummary = io.flow.v0.models.TargetingSummary;
9412
- export type TargetingVersion = io.flow.v0.models.TargetingVersion;
9413
9351
  export type Tax = io.flow.v0.models.Tax;
9414
9352
  export type TaxApplicability = io.flow.v0.enums.TaxApplicability;
9415
9353
  export type TaxRegistration = io.flow.v0.models.TaxRegistration;