@auxilium/datalynk-client 0.6.2 → 0.6.3

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.
@@ -162,7 +162,7 @@ function checkType(field) {
162
162
  return `export enum ${field.id}Options {\n\t${field.options.map(option => `${option.replace(/^\d+/gm, '').replace(/\W/g, '')} = '${option}',`).join('\n\t')}\n}`
163
163
  }).join('\n\n') + '\n\n';
164
164
 
165
- body += `export interface ${slice.name} implements SliceMeta {\n\t${slice.fields.map(field => `${field.readonly ? 'readonly ' : ''}'${field.id}'${(!field.required || FieldType[field.type] == FieldType.control_checkbox) ? '?' : ''}: ${checkType(field)};`).join('\n\t')}\n}`;
165
+ body += `export interface ${slice.name} extends SliceMeta {\n\t${slice.fields.map(field => `${field.readonly ? 'readonly ' : ''}'${field.id}'${(!field.required || FieldType[field.type] == FieldType.control_checkbox) ? '?' : ''}: ${checkType(field)};`).join('\n\t')}\n}`;
166
166
 
167
167
  writingPromises.push(new Promise(res => fs.writeFile(`${path}/${slice.name}.model.ts`, body, () => res())));
168
168
  });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@auxilium/datalynk-client",
3
3
  "description": "Datalynk client library",
4
4
  "repository": "https://gitlab.auxiliumgroup.com/auxilium/datalynk/datalynk-client",
5
- "version": "0.6.2",
5
+ "version": "0.6.3",
6
6
  "author": "Zak Timson <zaktimson@gmail.com>",
7
7
  "private": false,
8
8
  "main": "./dist/index.cjs",