@teemill/gfn-catalog 1.2.0 → 1.3.0

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.
Files changed (92) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/ProductsApi.d.ts +1 -1
  5. package/dist/apis/ProductsApi.js +47 -128
  6. package/dist/apis/VariantsApi.d.ts +19 -2
  7. package/dist/apis/VariantsApi.js +170 -245
  8. package/dist/esm/apis/ProductsApi.d.ts +35 -0
  9. package/dist/esm/apis/ProductsApi.js +81 -0
  10. package/dist/esm/apis/VariantsApi.d.ts +82 -0
  11. package/dist/esm/apis/VariantsApi.js +225 -0
  12. package/dist/esm/apis/index.d.ts +2 -0
  13. package/dist/esm/apis/index.js +4 -0
  14. package/dist/esm/index.d.ts +3 -0
  15. package/dist/esm/index.js +5 -0
  16. package/dist/esm/models/ApiError.d.ts +37 -0
  17. package/dist/esm/models/ApiError.js +42 -0
  18. package/dist/esm/models/Attribute.d.ts +50 -0
  19. package/dist/esm/models/Attribute.js +49 -0
  20. package/dist/esm/models/AttributeThumbnail.d.ts +46 -0
  21. package/dist/esm/models/AttributeThumbnail.js +48 -0
  22. package/dist/esm/models/Image.d.ts +67 -0
  23. package/dist/esm/models/Image.js +50 -0
  24. package/dist/esm/models/Product.d.ts +67 -0
  25. package/dist/esm/models/Product.js +52 -0
  26. package/dist/esm/models/ProductsResponse.d.ts +38 -0
  27. package/dist/esm/models/ProductsResponse.js +41 -0
  28. package/dist/esm/models/Stock.d.ts +31 -0
  29. package/dist/esm/models/Stock.js +38 -0
  30. package/dist/esm/models/StockResponse.d.ts +38 -0
  31. package/dist/esm/models/StockResponse.js +41 -0
  32. package/dist/esm/models/Variant.d.ts +78 -0
  33. package/dist/esm/models/Variant.js +61 -0
  34. package/dist/esm/models/VariantManufacturerOrigin.d.ts +37 -0
  35. package/dist/esm/models/VariantManufacturerOrigin.js +40 -0
  36. package/dist/esm/models/VariantProduct.d.ts +37 -0
  37. package/dist/esm/models/VariantProduct.js +40 -0
  38. package/dist/esm/models/VariantStock.d.ts +50 -0
  39. package/dist/esm/models/VariantStock.js +45 -0
  40. package/dist/esm/models/VariantsResponse.d.ts +38 -0
  41. package/dist/esm/models/VariantsResponse.js +41 -0
  42. package/dist/esm/models/index.d.ts +13 -0
  43. package/dist/esm/models/index.js +15 -0
  44. package/dist/esm/runtime.d.ts +187 -0
  45. package/dist/esm/runtime.js +333 -0
  46. package/dist/models/ApiError.d.ts +1 -1
  47. package/dist/models/ApiError.js +1 -1
  48. package/dist/models/Attribute.d.ts +1 -1
  49. package/dist/models/Attribute.js +2 -2
  50. package/dist/models/AttributeThumbnail.d.ts +1 -1
  51. package/dist/models/AttributeThumbnail.js +1 -1
  52. package/dist/models/Image.d.ts +1 -1
  53. package/dist/models/Image.js +1 -1
  54. package/dist/models/Product.d.ts +1 -1
  55. package/dist/models/Product.js +1 -1
  56. package/dist/models/ProductsResponse.d.ts +1 -1
  57. package/dist/models/ProductsResponse.js +2 -2
  58. package/dist/models/Stock.d.ts +1 -1
  59. package/dist/models/Stock.js +1 -1
  60. package/dist/models/StockResponse.d.ts +1 -1
  61. package/dist/models/StockResponse.js +2 -2
  62. package/dist/models/Variant.d.ts +1 -1
  63. package/dist/models/Variant.js +6 -6
  64. package/dist/models/VariantManufacturerOrigin.d.ts +1 -1
  65. package/dist/models/VariantManufacturerOrigin.js +1 -1
  66. package/dist/models/VariantProduct.d.ts +1 -1
  67. package/dist/models/VariantProduct.js +1 -1
  68. package/dist/models/VariantStock.d.ts +1 -1
  69. package/dist/models/VariantStock.js +2 -2
  70. package/dist/models/VariantsResponse.d.ts +1 -1
  71. package/dist/models/VariantsResponse.js +2 -2
  72. package/dist/runtime.d.ts +1 -1
  73. package/dist/runtime.js +223 -439
  74. package/package.json +4 -2
  75. package/src/apis/ProductsApi.ts +1 -1
  76. package/src/apis/VariantsApi.ts +84 -1
  77. package/src/models/ApiError.ts +1 -1
  78. package/src/models/Attribute.ts +1 -1
  79. package/src/models/AttributeThumbnail.ts +1 -1
  80. package/src/models/Image.ts +1 -1
  81. package/src/models/Product.ts +1 -1
  82. package/src/models/ProductsResponse.ts +1 -1
  83. package/src/models/Stock.ts +1 -1
  84. package/src/models/StockResponse.ts +1 -1
  85. package/src/models/Variant.ts +1 -1
  86. package/src/models/VariantManufacturerOrigin.ts +1 -1
  87. package/src/models/VariantProduct.ts +1 -1
  88. package/src/models/VariantStock.ts +1 -1
  89. package/src/models/VariantsResponse.ts +1 -1
  90. package/src/runtime.ts +1 -1
  91. package/tsconfig.esm.json +7 -0
  92. package/tsconfig.json +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/gfn-catalog",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "OpenAPI client for @teemill/gfn-catalog",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -9,8 +9,10 @@
9
9
  },
10
10
  "main": "./dist/index.js",
11
11
  "typings": "./dist/index.d.ts",
12
+ "module": "./dist/esm/index.js",
13
+ "sideEffects": false,
12
14
  "scripts": {
13
- "build": "tsc",
15
+ "build": "tsc && tsc -p tsconfig.esm.json",
14
16
  "prepare": "npm run build"
15
17
  },
16
18
  "devDependencies": {
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,6 +18,7 @@ import type {
18
18
  ApiError,
19
19
  StockResponse,
20
20
  Variant,
21
+ VariantStock,
21
22
  VariantsResponse,
22
23
  } from '../models/index';
23
24
  import {
@@ -27,10 +28,18 @@ import {
27
28
  StockResponseToJSON,
28
29
  VariantFromJSON,
29
30
  VariantToJSON,
31
+ VariantStockFromJSON,
32
+ VariantStockToJSON,
30
33
  VariantsResponseFromJSON,
31
34
  VariantsResponseToJSON,
32
35
  } from '../models/index';
33
36
 
37
+ export interface GetStockRequest {
38
+ project: string;
39
+ variantId: string;
40
+ fulfillmentProjects?: string;
41
+ }
42
+
34
43
  export interface GetVariantRequest {
35
44
  project: string;
36
45
  variantId: string;
@@ -39,8 +48,10 @@ export interface GetVariantRequest {
39
48
 
40
49
  export interface ListStockRequest {
41
50
  project: string;
51
+ fulfillmentProjects?: string;
42
52
  pageToken?: number;
43
53
  pageSize?: number;
54
+ search?: string;
44
55
  }
45
56
 
46
57
  export interface ListVariantsRequest {
@@ -56,6 +67,70 @@ export interface ListVariantsRequest {
56
67
  */
57
68
  export class VariantsApi extends runtime.BaseAPI {
58
69
 
70
+ /**
71
+ * Gets the stock level for the GFN variant with the given ID.
72
+ * Get GFN variant stock
73
+ */
74
+ async getStockRaw(requestParameters: GetStockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VariantStock>> {
75
+ if (requestParameters.project === null || requestParameters.project === undefined) {
76
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getStock.');
77
+ }
78
+
79
+ if (requestParameters.variantId === null || requestParameters.variantId === undefined) {
80
+ throw new runtime.RequiredError('variantId','Required parameter requestParameters.variantId was null or undefined when calling getStock.');
81
+ }
82
+
83
+ const queryParameters: any = {};
84
+
85
+ if (requestParameters.project !== undefined) {
86
+ queryParameters['project'] = requestParameters.project;
87
+ }
88
+
89
+ if (requestParameters.fulfillmentProjects !== undefined) {
90
+ queryParameters['fulfillmentProjects'] = requestParameters.fulfillmentProjects;
91
+ }
92
+
93
+ const headerParameters: runtime.HTTPHeaders = {};
94
+
95
+ if (this.configuration && this.configuration.accessToken) {
96
+ // oauth required
97
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
98
+ }
99
+
100
+ if (this.configuration && this.configuration.apiKey) {
101
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
102
+ }
103
+
104
+ const response = await this.request({
105
+ path: `/v1/gfn/catalog/stock/{variantId}`.replace(`{${"variantId"}}`, encodeURIComponent(String(requestParameters.variantId))),
106
+ method: 'GET',
107
+ headers: headerParameters,
108
+ query: queryParameters,
109
+ }, initOverrides);
110
+
111
+ return new runtime.JSONApiResponse(response, (jsonValue) => VariantStockFromJSON(jsonValue));
112
+ }
113
+
114
+ /**
115
+ * Gets the stock level for the GFN variant with the given ID.
116
+ * Get GFN variant stock
117
+ */
118
+ async getStock(
119
+ project: string, variantId: string,
120
+ optionalParameters: runtime.OptionalOnly<GetStockRequest> = {},
121
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
122
+ ): Promise<VariantStock> {
123
+ const response = await this.getStockRaw(
124
+ {
125
+ project: project,variantId: variantId,
126
+ ...optionalParameters,
127
+ },
128
+ initOverrides
129
+ );
130
+
131
+ return await response.value();
132
+ }
133
+
59
134
  /**
60
135
  * Gets a GFN variant by the given ID.
61
136
  * Get a GFN variant
@@ -135,6 +210,10 @@ export class VariantsApi extends runtime.BaseAPI {
135
210
  queryParameters['project'] = requestParameters.project;
136
211
  }
137
212
 
213
+ if (requestParameters.fulfillmentProjects !== undefined) {
214
+ queryParameters['fulfillmentProjects'] = requestParameters.fulfillmentProjects;
215
+ }
216
+
138
217
  if (requestParameters.pageToken !== undefined) {
139
218
  queryParameters['pageToken'] = requestParameters.pageToken;
140
219
  }
@@ -143,6 +222,10 @@ export class VariantsApi extends runtime.BaseAPI {
143
222
  queryParameters['pageSize'] = requestParameters.pageSize;
144
223
  }
145
224
 
225
+ if (requestParameters.search !== undefined) {
226
+ queryParameters['search'] = requestParameters.search;
227
+ }
228
+
146
229
  const headerParameters: runtime.HTTPHeaders = {};
147
230
 
148
231
  if (this.configuration && this.configuration.accessToken) {
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/src/runtime.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * GFN Catalog API
5
5
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
6
  *
7
- * The version of the OpenAPI document: 1.2.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "esnext",
5
+ "outDir": "dist/esm"
6
+ }
7
+ }
package/tsconfig.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "declaration": true,
4
- "target": "es5",
4
+ "target": "es6",
5
5
  "module": "commonjs",
6
6
  "moduleResolution": "node",
7
7
  "outDir": "dist",
8
8
  "lib": [
9
- "es6",
9
+ "esnext",
10
10
  "dom"
11
11
  ],
12
12
  "typeRoots": [