@flowio/types 10.2.2 → 10.2.4
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-internal.d.ts +6080 -6178
- package/dist/api.d.ts +14 -17
- package/package.json +2 -2
- package/src/api-internal.ts +4768 -4866
- package/src/api.ts +16 -20
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;
|
|
@@ -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
|
}
|
|
@@ -890,6 +875,7 @@ declare namespace io.flow.v0.enums {
|
|
|
890
875
|
type InventoryStatus = 'has_inventory' | 'no_inventory';
|
|
891
876
|
type InvitationErrorCode = 'expired' | 'invalid_email';
|
|
892
877
|
type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
|
|
878
|
+
type ItemIdentifier = 'item_number' | 'sku';
|
|
893
879
|
type LaneDirection = 'outbound' | 'return';
|
|
894
880
|
type LanePreselectPreference = 'lowest_cost' | 'default_tier';
|
|
895
881
|
type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost' | 'highest_priority';
|
|
@@ -2248,6 +2234,7 @@ declare namespace io.flow.v0.models {
|
|
|
2248
2234
|
readonly 'price_book_key': string;
|
|
2249
2235
|
readonly 'price_book_item_key': string;
|
|
2250
2236
|
readonly 'item_number': string;
|
|
2237
|
+
readonly 'sku': string;
|
|
2251
2238
|
readonly 'item_name': string;
|
|
2252
2239
|
readonly 'amount': number;
|
|
2253
2240
|
readonly 'item_attributes'?: Record<string, string>;
|
|
@@ -3285,13 +3272,11 @@ declare namespace io.flow.v0.models {
|
|
|
3285
3272
|
readonly 'payload': any;
|
|
3286
3273
|
}
|
|
3287
3274
|
interface GraphqlRequest {
|
|
3288
|
-
readonly 'id': string;
|
|
3289
3275
|
readonly 'query': string;
|
|
3290
3276
|
readonly 'operation_name'?: string;
|
|
3291
3277
|
readonly 'variables'?: Record<string, string>;
|
|
3292
3278
|
}
|
|
3293
3279
|
interface GraphqlResponse {
|
|
3294
|
-
readonly 'request_id': string;
|
|
3295
3280
|
readonly 'data'?: any;
|
|
3296
3281
|
readonly 'errors'?: any[];
|
|
3297
3282
|
}
|
|
@@ -3988,6 +3973,9 @@ declare namespace io.flow.v0.models {
|
|
|
3988
3973
|
readonly 'center'?: string;
|
|
3989
3974
|
readonly 'discount'?: io.flow.v0.models.Money;
|
|
3990
3975
|
}
|
|
3976
|
+
interface LineItemAttributesForm {
|
|
3977
|
+
readonly 'attributes': Record<string, string>;
|
|
3978
|
+
}
|
|
3991
3979
|
interface LineItemForm {
|
|
3992
3980
|
readonly 'number': string;
|
|
3993
3981
|
readonly 'quantity': number;
|
|
@@ -3998,6 +3986,9 @@ declare namespace io.flow.v0.models {
|
|
|
3998
3986
|
readonly 'discount'?: io.flow.v0.models.Money;
|
|
3999
3987
|
readonly 'discounts'?: io.flow.v0.models.DiscountsForm;
|
|
4000
3988
|
}
|
|
3989
|
+
interface LineItemQuantityForm {
|
|
3990
|
+
readonly 'quantity': number;
|
|
3991
|
+
}
|
|
4001
3992
|
interface Link {
|
|
4002
3993
|
readonly 'url': string;
|
|
4003
3994
|
}
|
|
@@ -4768,6 +4759,7 @@ declare namespace io.flow.v0.models {
|
|
|
4768
4759
|
readonly 'total': io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4769
4760
|
readonly 'lines': io.flow.v0.models.OrderSummaryLineItem[];
|
|
4770
4761
|
readonly 'identifiers'?: Record<string, string>;
|
|
4762
|
+
readonly 'attributes'?: Record<string, string>;
|
|
4771
4763
|
}
|
|
4772
4764
|
interface OrderSummaryImage {
|
|
4773
4765
|
readonly 'url': string;
|
|
@@ -4798,6 +4790,7 @@ declare namespace io.flow.v0.models {
|
|
|
4798
4790
|
readonly 'duty'?: io.flow.v0.models.OrderSummaryLevy;
|
|
4799
4791
|
readonly 'total': io.flow.v0.models.Price;
|
|
4800
4792
|
readonly 'price_attributes': Record<string, io.flow.v0.models.Price>;
|
|
4793
|
+
readonly 'attributes'?: Record<string, string>;
|
|
4801
4794
|
}
|
|
4802
4795
|
interface OrderSummaryPriceDetail {
|
|
4803
4796
|
readonly 'price': io.flow.v0.models.Price;
|
|
@@ -5310,6 +5303,7 @@ declare namespace io.flow.v0.models {
|
|
|
5310
5303
|
readonly 'item_numbers'?: string[];
|
|
5311
5304
|
readonly 'start_date'?: string;
|
|
5312
5305
|
readonly 'end_date'?: string;
|
|
5306
|
+
readonly 'item_identifier'?: io.flow.v0.enums.ItemIdentifier;
|
|
5313
5307
|
}
|
|
5314
5308
|
interface PriceBookItemForm {
|
|
5315
5309
|
readonly 'price_book_key': string;
|
|
@@ -7996,6 +7990,7 @@ export declare type ItemAvailabilityStatus = io.flow.v0.enums.ItemAvailabilitySt
|
|
|
7996
7990
|
export declare type ItemForm = io.flow.v0.models.ItemForm;
|
|
7997
7991
|
export declare type ItemFormOverlay = io.flow.v0.models.ItemFormOverlay;
|
|
7998
7992
|
export declare type ItemFormOverlayForm = io.flow.v0.models.ItemFormOverlayForm;
|
|
7993
|
+
export declare type ItemIdentifier = io.flow.v0.enums.ItemIdentifier;
|
|
7999
7994
|
export declare type ItemMargin = io.flow.v0.models.ItemMargin;
|
|
8000
7995
|
export declare type ItemMarginDeleted = io.flow.v0.models.ItemMarginDeleted;
|
|
8001
7996
|
export declare type ItemMarginPostForm = io.flow.v0.models.ItemMarginPostForm;
|
|
@@ -8033,7 +8028,9 @@ export declare type LevyComponent = io.flow.v0.enums.LevyComponent;
|
|
|
8033
8028
|
export declare type LevyStrategy = io.flow.v0.enums.LevyStrategy;
|
|
8034
8029
|
export declare type Line = io.flow.v0.models.Line;
|
|
8035
8030
|
export declare type LineItem = io.flow.v0.models.LineItem;
|
|
8031
|
+
export declare type LineItemAttributesForm = io.flow.v0.models.LineItemAttributesForm;
|
|
8036
8032
|
export declare type LineItemForm = io.flow.v0.models.LineItemForm;
|
|
8033
|
+
export declare type LineItemQuantityForm = io.flow.v0.models.LineItemQuantityForm;
|
|
8037
8034
|
export declare type Link = io.flow.v0.models.Link;
|
|
8038
8035
|
export declare type Local = io.flow.v0.models.Local;
|
|
8039
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.
|
|
3
|
+
"version": "10.2.4",
|
|
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": "
|
|
30
|
+
"gitHead": "983fbe9f0246219203bc66bfabb40b52894e70e4"
|
|
31
31
|
}
|