@constructor-io/constructorio-node 4.14.2 → 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 +1 -1
- package/src/types/catalog.d.ts +10 -7
- package/src/types/index.d.ts +2 -1
package/package.json
CHANGED
package/src/types/catalog.d.ts
CHANGED
|
@@ -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
|
package/src/types/index.d.ts
CHANGED
|
@@ -33,7 +33,8 @@ export interface UserParameters {
|
|
|
33
33
|
|
|
34
34
|
export interface FmtOptions extends Record<string, any> {
|
|
35
35
|
groups_max_depth?: number;
|
|
36
|
-
groups_start?: 'current' | 'top'
|
|
36
|
+
groups_start?: 'current' | 'top' | `group_id:${string}`;
|
|
37
|
+
fields?: string[]; // Array of metadata field to be returned in the data response
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
export interface RequestFeature extends Record<string, any> {
|