@constructor-io/constructorio-node 4.14.3 → 4.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-node",
3
- "version": "4.14.3",
3
+ "version": "4.14.4",
4
4
  "description": "Constructor.io Node.js client",
5
5
  "main": "src/constructorio.js",
6
6
  "types": "src/types/constructorio.d.ts",
@@ -1,3 +1,6 @@
1
+ import type fs from 'fs';
2
+ import type { Duplex } from 'stream';
3
+
1
4
  import {
2
5
  ConstructorClientOptions,
3
6
  Item,
@@ -167,9 +170,9 @@ export interface ReplaceCatalogParameters {
167
170
  section: string;
168
171
  notificationEmail?: string;
169
172
  force?: boolean;
170
- items?: File;
171
- variations?: File;
172
- itemGroups?: File;
173
+ items?: File | fs.ReadStream | Duplex
174
+ variations?: File | fs.ReadStream | Duplex;
175
+ itemGroups?: File | fs.ReadStream | Duplex;
173
176
  }
174
177
 
175
178
  export interface UpdateCatalogParameters extends ReplaceCatalogParameters {}
@@ -179,16 +182,16 @@ export interface PatchCatalogParameters {
179
182
  notificationEmail?: string;
180
183
  force?: boolean;
181
184
  onMissing?: 'IGNORE' | 'CREATE' | 'FAIL';
182
- items?: File;
183
- variations?: File;
184
- itemGroups?: File;
185
+ items?: File | fs.ReadStream | Duplex
186
+ variations?: File | fs.ReadStream | Duplex;
187
+ itemGroups?: File | fs.ReadStream | Duplex;
185
188
  }
186
189
 
187
190
  export interface ReplaceCatalogUsingTarArchiveParameters {
188
191
  section: string;
189
192
  notificationEmail?: string;
190
193
  force?: boolean;
191
- tarArchive?: File;
194
+ tarArchive?: File | fs.ReadStream | Duplex;
192
195
  }
193
196
 
194
197
  export interface UpdateCatalogUsingTarArchiveParameters