@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/dist/api.d.ts CHANGED
@@ -32,15 +32,6 @@ declare namespace io.flow.shopify.external.v0.enums {
32
32
  type WeightUnit = 'g' | 'kg' | 'oz' | 'lb';
33
33
  }
34
34
  declare namespace io.flow.shopify.external.v0.models {
35
- interface Collect {
36
- readonly 'id': number;
37
- readonly 'collection_id': number;
38
- readonly 'product_id': number;
39
- readonly 'created_at'?: string;
40
- readonly 'updated_at'?: string;
41
- readonly 'position': number;
42
- readonly 'sort_value': string;
43
- }
44
35
  interface Collection {
45
36
  readonly 'id': number;
46
37
  readonly 'handle': string;
@@ -140,7 +131,7 @@ declare namespace io.flow.shopify.external.v0.models {
140
131
  interface Product {
141
132
  readonly 'id': number;
142
133
  readonly 'handle': string;
143
- readonly 'variants': io.flow.shopify.external.v0.models.ProductVariant[];
134
+ readonly 'variants'?: io.flow.shopify.external.v0.models.ProductVariant[];
144
135
  readonly 'images': io.flow.shopify.external.v0.models.ProductImage[];
145
136
  readonly 'title': string;
146
137
  readonly 'vendor'?: string;
@@ -204,15 +195,9 @@ declare namespace io.flow.shopify.external.v0.models {
204
195
  interface RequestShopifyTransactionForm {
205
196
  readonly 'transaction': io.flow.shopify.external.v0.models.ShopifyTransactionForm;
206
197
  }
207
- interface ResponseCollect {
208
- readonly 'collect': io.flow.shopify.external.v0.models.Collect;
209
- }
210
198
  interface ResponseCollection {
211
199
  readonly 'collection': io.flow.shopify.external.v0.models.Collection;
212
200
  }
213
- interface ResponseCollects {
214
- readonly 'collects': io.flow.shopify.external.v0.models.Collect[];
215
- }
216
201
  interface ResponseMetafield {
217
202
  readonly 'metafield': io.flow.shopify.external.v0.models.Metafield;
218
203
  }
@@ -255,6 +240,9 @@ declare namespace io.flow.shopify.external.v0.models {
255
240
  interface ResponseShopifyTransactionSingle {
256
241
  readonly 'transaction': io.flow.shopify.external.v0.models.ShopifyTransaction;
257
242
  }
243
+ interface ResponseSmartCollection {
244
+ readonly 'smart_collections': io.flow.shopify.external.v0.models.SmartCollection[];
245
+ }
258
246
  interface ResponseVariant {
259
247
  readonly 'variant': io.flow.shopify.external.v0.models.ProductVariant;
260
248
  }
@@ -780,6 +768,12 @@ declare namespace io.flow.shopify.external.v0.models {
780
768
  readonly 'shop_id': number;
781
769
  readonly 'shop_domain': string;
782
770
  }
771
+ interface SmartCollection {
772
+ readonly 'id': number;
773
+ readonly 'handle': string;
774
+ readonly 'title': string;
775
+ readonly 'updated_at': string;
776
+ }
783
777
  interface Webhook {
784
778
  readonly 'address': string;
785
779
  readonly 'created_at': string;
@@ -881,6 +875,7 @@ declare namespace io.flow.v0.enums {
881
875
  type InventoryStatus = 'has_inventory' | 'no_inventory';
882
876
  type InvitationErrorCode = 'expired' | 'invalid_email';
883
877
  type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
878
+ type ItemIdentifier = 'item_number' | 'sku';
884
879
  type LaneDirection = 'outbound' | 'return';
885
880
  type LanePreselectPreference = 'lowest_cost' | 'default_tier';
886
881
  type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost' | 'highest_priority';
@@ -2239,6 +2234,7 @@ declare namespace io.flow.v0.models {
2239
2234
  readonly 'price_book_key': string;
2240
2235
  readonly 'price_book_item_key': string;
2241
2236
  readonly 'item_number': string;
2237
+ readonly 'sku': string;
2242
2238
  readonly 'item_name': string;
2243
2239
  readonly 'amount': number;
2244
2240
  readonly 'item_attributes'?: Record<string, string>;
@@ -3276,13 +3272,11 @@ declare namespace io.flow.v0.models {
3276
3272
  readonly 'payload': any;
3277
3273
  }
3278
3274
  interface GraphqlRequest {
3279
- readonly 'id': string;
3280
3275
  readonly 'query': string;
3281
3276
  readonly 'operation_name'?: string;
3282
3277
  readonly 'variables'?: Record<string, string>;
3283
3278
  }
3284
3279
  interface GraphqlResponse {
3285
- readonly 'request_id': string;
3286
3280
  readonly 'data'?: any;
3287
3281
  readonly 'errors'?: any[];
3288
3282
  }
@@ -3979,6 +3973,9 @@ declare namespace io.flow.v0.models {
3979
3973
  readonly 'center'?: string;
3980
3974
  readonly 'discount'?: io.flow.v0.models.Money;
3981
3975
  }
3976
+ interface LineItemAttributesForm {
3977
+ readonly 'attributes': Record<string, string>;
3978
+ }
3982
3979
  interface LineItemForm {
3983
3980
  readonly 'number': string;
3984
3981
  readonly 'quantity': number;
@@ -3989,6 +3986,9 @@ declare namespace io.flow.v0.models {
3989
3986
  readonly 'discount'?: io.flow.v0.models.Money;
3990
3987
  readonly 'discounts'?: io.flow.v0.models.DiscountsForm;
3991
3988
  }
3989
+ interface LineItemQuantityForm {
3990
+ readonly 'quantity': number;
3991
+ }
3992
3992
  interface Link {
3993
3993
  readonly 'url': string;
3994
3994
  }
@@ -4759,6 +4759,7 @@ declare namespace io.flow.v0.models {
4759
4759
  readonly 'total': io.flow.v0.models.OrderSummaryPriceDetail;
4760
4760
  readonly 'lines': io.flow.v0.models.OrderSummaryLineItem[];
4761
4761
  readonly 'identifiers'?: Record<string, string>;
4762
+ readonly 'attributes'?: Record<string, string>;
4762
4763
  }
4763
4764
  interface OrderSummaryImage {
4764
4765
  readonly 'url': string;
@@ -4789,6 +4790,7 @@ declare namespace io.flow.v0.models {
4789
4790
  readonly 'duty'?: io.flow.v0.models.OrderSummaryLevy;
4790
4791
  readonly 'total': io.flow.v0.models.Price;
4791
4792
  readonly 'price_attributes': Record<string, io.flow.v0.models.Price>;
4793
+ readonly 'attributes'?: Record<string, string>;
4792
4794
  }
4793
4795
  interface OrderSummaryPriceDetail {
4794
4796
  readonly 'price': io.flow.v0.models.Price;
@@ -5301,6 +5303,7 @@ declare namespace io.flow.v0.models {
5301
5303
  readonly 'item_numbers'?: string[];
5302
5304
  readonly 'start_date'?: string;
5303
5305
  readonly 'end_date'?: string;
5306
+ readonly 'item_identifier'?: io.flow.v0.enums.ItemIdentifier;
5304
5307
  }
5305
5308
  interface PriceBookItemForm {
5306
5309
  readonly 'price_book_key': string;
@@ -7987,6 +7990,7 @@ export declare type ItemAvailabilityStatus = io.flow.v0.enums.ItemAvailabilitySt
7987
7990
  export declare type ItemForm = io.flow.v0.models.ItemForm;
7988
7991
  export declare type ItemFormOverlay = io.flow.v0.models.ItemFormOverlay;
7989
7992
  export declare type ItemFormOverlayForm = io.flow.v0.models.ItemFormOverlayForm;
7993
+ export declare type ItemIdentifier = io.flow.v0.enums.ItemIdentifier;
7990
7994
  export declare type ItemMargin = io.flow.v0.models.ItemMargin;
7991
7995
  export declare type ItemMarginDeleted = io.flow.v0.models.ItemMarginDeleted;
7992
7996
  export declare type ItemMarginPostForm = io.flow.v0.models.ItemMarginPostForm;
@@ -8024,7 +8028,9 @@ export declare type LevyComponent = io.flow.v0.enums.LevyComponent;
8024
8028
  export declare type LevyStrategy = io.flow.v0.enums.LevyStrategy;
8025
8029
  export declare type Line = io.flow.v0.models.Line;
8026
8030
  export declare type LineItem = io.flow.v0.models.LineItem;
8031
+ export declare type LineItemAttributesForm = io.flow.v0.models.LineItemAttributesForm;
8027
8032
  export declare type LineItemForm = io.flow.v0.models.LineItemForm;
8033
+ export declare type LineItemQuantityForm = io.flow.v0.models.LineItemQuantityForm;
8028
8034
  export declare type Link = io.flow.v0.models.Link;
8029
8035
  export declare type Local = io.flow.v0.models.Local;
8030
8036
  export declare type LocalItem = io.flow.v0.models.LocalItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "10.2.1",
3
+ "version": "10.2.3",
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": "9a2a3ca5af0494e83b7421514353a4fbf04a95d8"
30
+ "gitHead": "c41e100681284f81c8717887e7057ee530962592"
31
31
  }