@flowio/types 10.2.1 → 10.2.3

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
@@ -33,16 +33,6 @@ declare namespace io.flow.shopify.external.v0.enums {
33
33
  }
34
34
 
35
35
  declare namespace io.flow.shopify.external.v0.models {
36
- interface Collect {
37
- readonly 'id': number;
38
- readonly 'collection_id': number;
39
- readonly 'product_id': number;
40
- readonly 'created_at'?: string;
41
- readonly 'updated_at'?: string;
42
- readonly 'position': number;
43
- readonly 'sort_value': string;
44
- }
45
-
46
36
  interface Collection {
47
37
  readonly 'id': number;
48
38
  readonly 'handle': string;
@@ -154,7 +144,7 @@ declare namespace io.flow.shopify.external.v0.models {
154
144
  interface Product {
155
145
  readonly 'id': number;
156
146
  readonly 'handle': string;
157
- readonly 'variants': io.flow.shopify.external.v0.models.ProductVariant[];
147
+ readonly 'variants'?: io.flow.shopify.external.v0.models.ProductVariant[];
158
148
  readonly 'images': io.flow.shopify.external.v0.models.ProductImage[];
159
149
  readonly 'title': string;
160
150
  readonly 'vendor'?: string;
@@ -226,18 +216,10 @@ declare namespace io.flow.shopify.external.v0.models {
226
216
  readonly 'transaction': io.flow.shopify.external.v0.models.ShopifyTransactionForm;
227
217
  }
228
218
 
229
- interface ResponseCollect {
230
- readonly 'collect': io.flow.shopify.external.v0.models.Collect;
231
- }
232
-
233
219
  interface ResponseCollection {
234
220
  readonly 'collection': io.flow.shopify.external.v0.models.Collection;
235
221
  }
236
222
 
237
- interface ResponseCollects {
238
- readonly 'collects': io.flow.shopify.external.v0.models.Collect[];
239
- }
240
-
241
223
  interface ResponseMetafield {
242
224
  readonly 'metafield': io.flow.shopify.external.v0.models.Metafield;
243
225
  }
@@ -294,6 +276,10 @@ declare namespace io.flow.shopify.external.v0.models {
294
276
  readonly 'transaction': io.flow.shopify.external.v0.models.ShopifyTransaction;
295
277
  }
296
278
 
279
+ interface ResponseSmartCollection {
280
+ readonly 'smart_collections': io.flow.shopify.external.v0.models.SmartCollection[];
281
+ }
282
+
297
283
  interface ResponseVariant {
298
284
  readonly 'variant': io.flow.shopify.external.v0.models.ProductVariant;
299
285
  }
@@ -876,6 +862,13 @@ declare namespace io.flow.shopify.external.v0.models {
876
862
  readonly 'shop_domain': string;
877
863
  }
878
864
 
865
+ interface SmartCollection {
866
+ readonly 'id': number;
867
+ readonly 'handle': string;
868
+ readonly 'title': string;
869
+ readonly 'updated_at': string;
870
+ }
871
+
879
872
  interface Webhook {
880
873
  readonly 'address': string;
881
874
  readonly 'created_at': string;
@@ -982,6 +975,7 @@ declare namespace io.flow.v0.enums {
982
975
  type InventoryStatus = 'has_inventory' | 'no_inventory';
983
976
  type InvitationErrorCode = 'expired' | 'invalid_email';
984
977
  type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
978
+ type ItemIdentifier = 'item_number' | 'sku';
985
979
  type LaneDirection = 'outbound' | 'return';
986
980
  type LanePreselectPreference = 'lowest_cost' | 'default_tier';
987
981
  type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost' | 'highest_priority';
@@ -2533,6 +2527,7 @@ declare namespace io.flow.v0.models {
2533
2527
  readonly 'price_book_key': string;
2534
2528
  readonly 'price_book_item_key': string;
2535
2529
  readonly 'item_number': string;
2530
+ readonly 'sku': string;
2536
2531
  readonly 'item_name': string;
2537
2532
  readonly 'amount': number;
2538
2533
  readonly 'item_attributes'?: Record<string, string>;
@@ -3756,14 +3751,12 @@ declare namespace io.flow.v0.models {
3756
3751
  }
3757
3752
 
3758
3753
  interface GraphqlRequest {
3759
- readonly 'id': string;
3760
3754
  readonly 'query': string;
3761
3755
  readonly 'operation_name'?: string;
3762
3756
  readonly 'variables'?: Record<string, string>;
3763
3757
  }
3764
3758
 
3765
3759
  interface GraphqlResponse {
3766
- readonly 'request_id': string;
3767
3760
  readonly 'data'?: any/*object*/;
3768
3761
  readonly 'errors'?: any/*object*/[];
3769
3762
  }
@@ -4570,6 +4563,10 @@ declare namespace io.flow.v0.models {
4570
4563
  readonly 'discount'?: io.flow.v0.models.Money;
4571
4564
  }
4572
4565
 
4566
+ interface LineItemAttributesForm {
4567
+ readonly 'attributes': Record<string, string>;
4568
+ }
4569
+
4573
4570
  interface LineItemForm {
4574
4571
  readonly 'number': string;
4575
4572
  readonly 'quantity': number;
@@ -4581,6 +4578,10 @@ declare namespace io.flow.v0.models {
4581
4578
  readonly 'discounts'?: io.flow.v0.models.DiscountsForm;
4582
4579
  }
4583
4580
 
4581
+ interface LineItemQuantityForm {
4582
+ readonly 'quantity': number;
4583
+ }
4584
+
4584
4585
  interface Link {
4585
4586
  readonly 'url': string;
4586
4587
  }
@@ -5466,6 +5467,7 @@ declare namespace io.flow.v0.models {
5466
5467
  readonly 'total': io.flow.v0.models.OrderSummaryPriceDetail;
5467
5468
  readonly 'lines': io.flow.v0.models.OrderSummaryLineItem[];
5468
5469
  readonly 'identifiers'?: Record<string, string>;
5470
+ readonly 'attributes'?: Record<string, string>;
5469
5471
  }
5470
5472
 
5471
5473
  interface OrderSummaryImage {
@@ -5500,6 +5502,7 @@ declare namespace io.flow.v0.models {
5500
5502
  readonly 'duty'?: io.flow.v0.models.OrderSummaryLevy;
5501
5503
  readonly 'total': io.flow.v0.models.Price;
5502
5504
  readonly 'price_attributes': Record<string, io.flow.v0.models.Price>;
5505
+ readonly 'attributes'?: Record<string, string>;
5503
5506
  }
5504
5507
 
5505
5508
  interface OrderSummaryPriceDetail {
@@ -6094,6 +6097,7 @@ declare namespace io.flow.v0.models {
6094
6097
  readonly 'item_numbers'?: string[];
6095
6098
  readonly 'start_date'?: string;
6096
6099
  readonly 'end_date'?: string;
6100
+ readonly 'item_identifier'?: io.flow.v0.enums.ItemIdentifier;
6097
6101
  }
6098
6102
 
6099
6103
  interface PriceBookItemForm {
@@ -9109,6 +9113,7 @@ export type ItemAvailabilityStatus = io.flow.v0.enums.ItemAvailabilityStatus;
9109
9113
  export type ItemForm = io.flow.v0.models.ItemForm;
9110
9114
  export type ItemFormOverlay = io.flow.v0.models.ItemFormOverlay;
9111
9115
  export type ItemFormOverlayForm = io.flow.v0.models.ItemFormOverlayForm;
9116
+ export type ItemIdentifier = io.flow.v0.enums.ItemIdentifier;
9112
9117
  export type ItemMargin = io.flow.v0.models.ItemMargin;
9113
9118
  export type ItemMarginDeleted = io.flow.v0.models.ItemMarginDeleted;
9114
9119
  export type ItemMarginPostForm = io.flow.v0.models.ItemMarginPostForm;
@@ -9146,7 +9151,9 @@ export type LevyComponent = io.flow.v0.enums.LevyComponent;
9146
9151
  export type LevyStrategy = io.flow.v0.enums.LevyStrategy;
9147
9152
  export type Line = io.flow.v0.models.Line;
9148
9153
  export type LineItem = io.flow.v0.models.LineItem;
9154
+ export type LineItemAttributesForm = io.flow.v0.models.LineItemAttributesForm;
9149
9155
  export type LineItemForm = io.flow.v0.models.LineItemForm;
9156
+ export type LineItemQuantityForm = io.flow.v0.models.LineItemQuantityForm;
9150
9157
  export type Link = io.flow.v0.models.Link;
9151
9158
  export type Local = io.flow.v0.models.Local;
9152
9159
  export type LocalItem = io.flow.v0.models.LocalItem;