@dataggo/node-akeneo-api 1.1.0 → 1.2.1

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)
@@ -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 = {
@@ -55,6 +55,7 @@ export default {
55
55
  const params = config?.params;
56
56
  const { items, _links } = await this.get(http, url, {
57
57
  params: {
58
+ ...params,
58
59
  ...(params?.search_after ? { search_after: params.search_after } : {}),
59
60
  pagination_type: 'search_after',
60
61
  limit: 100,
@@ -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.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "A Node Rest Client for the Akeneo PIM",
5
- "author": "Constant B <contact@dataggo>",
5
+ "author": "Dataggo <contact@dataggo>",
6
6
  "license": "MIT",
7
7
  "types": "dist/cjs/index.d.ts",
8
8
  "exports": {