@dataggo/node-akeneo-api 1.1.0 → 1.2.2
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.
|
@@ -77,7 +77,7 @@ exports.default = {
|
|
|
77
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
78
|
const params = config === null || config === void 0 ? void 0 : config.params;
|
|
79
79
|
const { items, _links } = yield this.get(http, url, {
|
|
80
|
-
params: Object.assign(Object.assign({}, ((params === null || params === void 0 ? void 0 : params.search_after) ? { search_after: params.search_after } : {})), { pagination_type: 'search_after', limit: 100 }),
|
|
80
|
+
params: Object.assign(Object.assign(Object.assign({}, params), ((params === null || params === void 0 ? void 0 : params.search_after) ? { search_after: params.search_after } : {})), { pagination_type: 'search_after', limit: 100 }),
|
|
81
81
|
});
|
|
82
82
|
const nextUrl = (_a = _links === null || _links === void 0 ? void 0 : _links.next) === null || _a === void 0 ? void 0 : _a.href;
|
|
83
83
|
if (!nextUrl)
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -166,6 +166,14 @@ export type Variant = {
|
|
|
166
166
|
variant_attribute_sets: VariantAttributeSet[];
|
|
167
167
|
labels: Record<string, any>;
|
|
168
168
|
};
|
|
169
|
+
export type AttributeTableConfiguration = {
|
|
170
|
+
code: string;
|
|
171
|
+
data_type: string;
|
|
172
|
+
labels: Record<string, string>;
|
|
173
|
+
validations: Record<string, any>;
|
|
174
|
+
is_required_for_completeness: boolean;
|
|
175
|
+
default_value: any | null;
|
|
176
|
+
};
|
|
169
177
|
export type Attribute = {
|
|
170
178
|
code: string;
|
|
171
179
|
type: string;
|
|
@@ -193,6 +201,7 @@ export type Attribute = {
|
|
|
193
201
|
allowed_extensions: string[];
|
|
194
202
|
max_file_size: string;
|
|
195
203
|
reference_data_name: string;
|
|
204
|
+
table_configuration?: AttributeTableConfiguration[];
|
|
196
205
|
default_value: boolean;
|
|
197
206
|
};
|
|
198
207
|
export type AttributeOption = {
|
package/dist/mjs/types.d.ts
CHANGED
|
@@ -166,6 +166,14 @@ export type Variant = {
|
|
|
166
166
|
variant_attribute_sets: VariantAttributeSet[];
|
|
167
167
|
labels: Record<string, any>;
|
|
168
168
|
};
|
|
169
|
+
export type AttributeTableConfiguration = {
|
|
170
|
+
code: string;
|
|
171
|
+
data_type: string;
|
|
172
|
+
labels: Record<string, string>;
|
|
173
|
+
validations: Record<string, any>;
|
|
174
|
+
is_required_for_completeness: boolean;
|
|
175
|
+
default_value: any | null;
|
|
176
|
+
};
|
|
169
177
|
export type Attribute = {
|
|
170
178
|
code: string;
|
|
171
179
|
type: string;
|
|
@@ -193,6 +201,7 @@ export type Attribute = {
|
|
|
193
201
|
allowed_extensions: string[];
|
|
194
202
|
max_file_size: string;
|
|
195
203
|
reference_data_name: string;
|
|
204
|
+
table_configuration?: AttributeTableConfiguration[];
|
|
196
205
|
default_value: boolean;
|
|
197
206
|
};
|
|
198
207
|
export type AttributeOption = {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dataggo/node-akeneo-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "A Node Rest Client for the Akeneo PIM",
|
|
5
|
-
"author": "
|
|
5
|
+
"author": "Dataggo <contact@dataggo>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"types": "dist/cjs/index.d.ts",
|
|
8
8
|
"exports": {
|