xlport 0.3.0 → 0.3.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.
- package/.env +1 -0
- package/dist/client.d.ts +23 -0
- package/dist/client.js +98 -0
- package/dist/client.js.map +1 -0
- package/dist/export.types.d.ts +53 -0
- package/dist/export.types.js +3 -0
- package/dist/export.types.js.map +1 -0
- package/dist/import.types.d.ts +25 -0
- package/dist/import.types.js +11 -0
- package/dist/import.types.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/client.d.ts +7 -9
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +109 -69
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/export.types.d.ts +1 -0
- package/dist/lib/export.types.d.ts.map +1 -1
- package/dist/lib/index.js +5 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/shared.types.d.ts +1 -1
- package/dist/lib/shared.types.d.ts.map +1 -1
- package/dist/shared.types.d.ts +1 -0
- package/dist/shared.types.js +3 -0
- package/dist/shared.types.js.map +1 -0
- package/dist/tests/client/client.e2e.spec.d.ts +1 -0
- package/dist/tests/client/client.e2e.spec.js +109 -0
- package/dist/tests/client/client.e2e.spec.js.map +1 -0
- package/dist/tests/client/export/simple-export/request.json +6 -0
- package/dist/tests/client/import/1object/expected.json +10 -0
- package/dist/tests/client/import/1table/expected.json +39 -0
- package/dist/tests/client/import/1table-10col-100rows/expected.json +1306 -0
- package/dist/tests/client/import/multipleObjects/expected.json +20 -0
- package/dist/tests/client/import/multipleObjectsAndTables/expected.json +84 -0
- package/dist/tests/types/export/column-formatting.json +151 -0
- package/dist/tests/types/export/date.json +6 -0
- package/dist/tests/types/export/days.json +7 -0
- package/dist/tests/types/export/formats.json +169 -0
- package/dist/tests/types/export/formulas-and-lookups.json +9 -0
- package/dist/tests/types/export/multi-column-with-fixed-column.json +24 -0
- package/dist/tests/types/export/multi-sheet-column-fixed-topleft.json +59 -0
- package/dist/tests/types/export/multi-sheet-column-fixed.json +59 -0
- package/dist/tests/types/export/multi-sheet-column-simple-dash.json +97 -0
- package/dist/tests/types/export/multi-sheet-column-simple.json +68 -0
- package/dist/tests/types/export/multi-sheet-column.json +68 -0
- package/dist/tests/types/export/multi-sheet-simple.json +41 -0
- package/dist/tests/types/export/multiple-objects-and-tables.json +83 -0
- package/dist/tests/types/export/multiple-objects.json +20 -0
- package/dist/tests/types/export/multiple-tables.json +88 -0
- package/dist/tests/types/export/object.json +11 -0
- package/dist/tests/types/export/query-table-simple.json +12 -0
- package/dist/tests/types/export/query-table.json +27 -0
- package/dist/tests/types/export/sheets.json +6 -0
- package/dist/tests/types/export/table-with-calculations.json +27 -0
- package/dist/tests/types/export/table.json +40 -0
- package/dist/tests/types/export/utc.json +7 -0
- package/dist/tests/types/export.test.d.ts +26 -0
- package/dist/tests/types/export.test.js +48 -0
- package/dist/tests/types/export.test.js.map +1 -0
- package/dist/tests/types/import/large-table.json +1 -0
- package/dist/tests/types/import/multisheet.json +1 -0
- package/dist/tests/types/import/object.json +1 -0
- package/dist/tests/types/import/table.json +1 -0
- package/dist/tests/types/import.test.d.ts +5 -0
- package/dist/tests/types/import.test.js +12 -0
- package/dist/tests/types/import.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +42 -5
- package/tests/client/.env +1 -0
- package/tests/client/.env.example +1 -0
- package/tests/client/client.e2e.spec.ts +149 -0
- package/tests/client/export/1object/expected.xlsx +0 -0
- package/tests/{export/object.json → client/export/1object/request.json} +0 -0
- package/tests/client/export/1object/template.xlsx +0 -0
- package/tests/client/export/1table/expected.xlsx +0 -0
- package/tests/client/export/1table/request.json +40 -0
- package/tests/client/export/1table/template.xlsx +0 -0
- package/tests/client/export/1table/test.xlsx +0 -0
- package/tests/client/export/1table-10col-100rows/expected.xlsx +0 -0
- package/tests/client/export/1table-10col-100rows/request.json +1307 -0
- package/tests/client/export/1table-10col-100rows/template.xlsx +0 -0
- package/tests/client/export/1table-with-calculations/expected.xlsx +0 -0
- package/tests/{export/table-with-calculations.json → client/export/1table-with-calculations/request.json} +0 -0
- package/tests/client/export/1table-with-calculations/template.xlsx +0 -0
- package/tests/client/export/4col_10000rows/expected.xlsx +0 -0
- package/tests/client/export/4col_10000rows/request.json +70011 -0
- package/tests/client/export/4col_10000rows/template.xlsx +0 -0
- package/tests/client/export/4col_100rows/expected.xlsx +0 -0
- package/tests/client/export/4col_100rows/request.json +711 -0
- package/tests/client/export/4col_100rows/template.xlsx +0 -0
- package/tests/client/export/4col_20000rows/expected.xlsx +0 -0
- package/tests/client/export/4col_20000rows/request.json +140011 -0
- package/tests/client/export/4col_20000rows/template.xlsx +0 -0
- package/tests/client/export/daysbug/expected.xlsx +0 -0
- package/tests/{export/days.json → client/export/daysbug/request.json} +0 -0
- package/tests/client/export/daysbug/template.xlsx +0 -0
- package/tests/client/export/deals/expected.xlsx +0 -0
- package/tests/client/export/deals/request.json +444 -0
- package/tests/client/export/deals/template.xlsx +0 -0
- package/tests/client/export/firstXlPort2Test/expected.xlsx +0 -0
- package/tests/client/export/firstXlPort2Test/request.json +119 -0
- package/tests/client/export/firstXlPort2Test/template.xlsx +0 -0
- package/tests/client/export/formats/expected.xlsx +0 -0
- package/tests/{export/formats.json → client/export/formats/request.json} +0 -0
- package/tests/client/export/formats/template.xlsx +0 -0
- package/tests/client/export/formulasAndLookups/expected.xlsx +0 -0
- package/tests/client/export/formulasAndLookups/request.json +8 -0
- package/tests/client/export/formulasAndLookups/template.xlsx +0 -0
- package/tests/client/export/multipleObjects/expected.xlsx +0 -0
- package/tests/{export/multiple-objects.json → client/export/multipleObjects/request.json} +0 -0
- package/tests/client/export/multipleObjects/template.xlsx +0 -0
- package/tests/client/export/multipleObjectsAndTables/expected.xlsx +0 -0
- package/tests/{export/multiple-objects-and-tables.json → client/export/multipleObjectsAndTables/request.json} +0 -0
- package/tests/client/export/multipleObjectsAndTables/template.xlsx +0 -0
- package/tests/client/export/multipleTables/expected.xlsx +0 -0
- package/tests/{export/multiple-tables.json → client/export/multipleTables/request.json} +0 -0
- package/tests/client/export/multipleTables/template.xlsx +0 -0
- package/tests/client/export/query_table_bug/expected.xlsx +0 -0
- package/tests/{export/query-table.json → client/export/query_table_bug/request.json} +0 -0
- package/tests/client/export/query_table_bug/template copy.xlsx +0 -0
- package/tests/client/export/query_table_bug/template updated.xlsx +0 -0
- package/tests/client/export/query_table_bug/template.xlsx +0 -0
- package/tests/client/export/query_table_simple/expected.xlsx +0 -0
- package/tests/{export/query-table-simple.json → client/export/query_table_simple/request.json} +0 -0
- package/tests/client/export/query_table_simple/template copy.xlsx +0 -0
- package/tests/client/export/query_table_simple/template updated.xlsx +0 -0
- package/tests/client/export/query_table_simple/template.xlsx +0 -0
- package/tests/client/export/secondXlPort2Test/expected.xlsx +0 -0
- package/tests/client/export/secondXlPort2Test/request.json +131 -0
- package/tests/client/export/secondXlPort2Test/template.xlsx +0 -0
- package/tests/client/export/secondXlPort2Test/~$expected.xlsx +0 -0
- package/tests/client/export/sheets/expected.xlsx +0 -0
- package/tests/{export/sheets.json → client/export/sheets/request.json} +0 -0
- package/tests/client/export/simple-export/expected.xlsx +0 -0
- package/tests/client/export/simple-export/request.json +6 -0
- package/tests/client/export/simple-export/template.xlsx +0 -0
- package/tests/client/export/simple-export/test.xlsx +0 -0
- package/tests/client/export/thedate/expected.xlsx +0 -0
- package/tests/{export/date.json → client/export/thedate/request.json} +0 -0
- package/tests/client/export/thedate/template.xlsx +0 -0
- package/tests/client/export/thirdXlPort2Test/expected.xlsx +0 -0
- package/tests/client/export/thirdXlPort2Test/request.json +149 -0
- package/tests/client/export/thirdXlPort2Test/template.xlsx +0 -0
- package/tests/client/export/thirdXlPort2Test/~$expected.xlsx +0 -0
- package/tests/client/export/thirdXlPort2Test/~$template.xlsx +0 -0
- package/tests/client/export/v2-alma-minimized/expected.xlsx +0 -0
- package/tests/client/export/v2-alma-minimized/request.json +33 -0
- package/tests/client/export/v2-alma-minimized/template.xlsx +0 -0
- package/tests/client/export/v2-alma-scorecard-export/expected.xlsx +0 -0
- package/tests/client/export/v2-alma-scorecard-export/request.json +89 -0
- package/tests/client/export/v2-alma-scorecard-export/template.xlsx +0 -0
- package/tests/client/export/v2-alma-table/expected.xlsx +0 -0
- package/tests/client/export/v2-alma-table/request.json +66 -0
- package/tests/client/export/v2-alma-table/template.xlsx +0 -0
- package/tests/client/export/v2-column-formatting/expected.xlsx +0 -0
- package/tests/client/export/v2-column-formatting/request.json +160 -0
- package/tests/client/export/v2-column-formatting/template.xlsx +0 -0
- package/tests/client/export/v2-column-formatting/~$expected.xlsx +0 -0
- package/tests/client/export/v2-column-formatting/~$template.xlsx +0 -0
- package/tests/client/export/v2-multi-column-with-fixed-column/expected.xlsx +0 -0
- package/tests/{export/multi-column-with-fixed-column.json → client/export/v2-multi-column-with-fixed-column/request.json} +0 -0
- package/tests/client/export/v2-multi-column-with-fixed-column/template.xlsx +0 -0
- package/tests/client/export/v2-multi-sheet-column/expected.xlsx +0 -0
- package/tests/{export/multi-sheet-column.json → client/export/v2-multi-sheet-column/request.json} +0 -0
- package/tests/client/export/v2-multi-sheet-column/template.xlsx +0 -0
- package/tests/client/export/v2-multi-sheet-column-fixed/expected.xlsx +0 -0
- package/tests/{export/multi-sheet-column-fixed.json → client/export/v2-multi-sheet-column-fixed/request.json} +0 -0
- package/tests/client/export/v2-multi-sheet-column-fixed/template.xlsx +0 -0
- package/tests/client/export/v2-multi-sheet-column-fixed-topleft/expected.xlsx +0 -0
- package/tests/{export/multi-sheet-column-fixed-topleft.json → client/export/v2-multi-sheet-column-fixed-topleft/request.json} +0 -0
- package/tests/client/export/v2-multi-sheet-column-fixed-topleft/template.xlsx +0 -0
- package/tests/client/export/v2-multi-sheet-column-simple/expected.xlsx +0 -0
- package/tests/{export/multi-sheet-column-simple.json → client/export/v2-multi-sheet-column-simple/request.json} +0 -0
- package/tests/client/export/v2-multi-sheet-column-simple/template.xlsx +0 -0
- package/tests/client/export/v2-multi-sheet-column-simple-dash/expected.xlsx +0 -0
- package/tests/{export/multi-sheet-column-simple-dash.json → client/export/v2-multi-sheet-column-simple-dash/request.json} +0 -0
- package/tests/client/export/v2-multi-sheet-column-simple-dash/template.xlsx +0 -0
- package/tests/client/export/v2-multi-sheet-simple/expected.xlsx +0 -0
- package/tests/{export/multi-sheet-simple.json → client/export/v2-multi-sheet-simple/request.json} +0 -0
- package/tests/client/export/v2-multi-sheet-simple/template.xlsx +0 -0
- package/tests/client/export/v2-utc/expected.xlsx +0 -0
- package/tests/{export/utc.json → client/export/v2-utc/request.json} +0 -0
- package/tests/client/export/v2-utc/template.xlsx +0 -0
- package/tests/client/import/1object/Source.xlsx +0 -0
- package/tests/client/import/1object/data.xlsx +0 -0
- package/tests/client/import/1object/expected.json +10 -0
- package/tests/client/import/1object/request.json +10 -0
- package/tests/client/import/1table/Source.xlsx +0 -0
- package/tests/client/import/1table/data.xlsx +0 -0
- package/tests/client/import/1table/expected.json +39 -0
- package/tests/client/import/1table/request.json +15 -0
- package/tests/client/import/1table-10col-100rows/Source.xlsx +0 -0
- package/tests/client/import/1table-10col-100rows/data.xlsx +0 -0
- package/tests/client/import/1table-10col-100rows/expected.json +1306 -0
- package/tests/client/import/1table-10col-100rows/request.json +17 -0
- package/tests/client/import/multipleObjects/Source.xlsx +0 -0
- package/tests/client/import/multipleObjects/data.xlsx +0 -0
- package/tests/client/import/multipleObjects/expected.json +20 -0
- package/tests/client/import/multipleObjects/request.json +20 -0
- package/tests/client/import/multipleObjectsAndTables/Source.xlsx +0 -0
- package/tests/client/import/multipleObjectsAndTables/data.xlsx +0 -0
- package/tests/client/import/multipleObjectsAndTables/expected.json +84 -0
- package/tests/client/import/multipleObjectsAndTables/request.json +40 -0
- package/tests/client/import/multipleTables/Source.xlsx +0 -0
- package/tests/client/import/multipleTables/data.xlsx +0 -0
- package/tests/client/import/multipleTables/expected.json +87 -0
- package/tests/client/import/multipleTables/request.json +29 -0
- package/tests/{export → types/export}/column-formatting.json +0 -0
- package/tests/types/export/date.json +6 -0
- package/tests/types/export/days.json +7 -0
- package/tests/types/export/formats.json +169 -0
- package/tests/{export → types/export}/formulas-and-lookups.json +0 -0
- package/tests/types/export/multi-column-with-fixed-column.json +24 -0
- package/tests/types/export/multi-sheet-column-fixed-topleft.json +59 -0
- package/tests/types/export/multi-sheet-column-fixed.json +59 -0
- package/tests/types/export/multi-sheet-column-simple-dash.json +97 -0
- package/tests/types/export/multi-sheet-column-simple.json +68 -0
- package/tests/types/export/multi-sheet-column.json +68 -0
- package/tests/types/export/multi-sheet-simple.json +41 -0
- package/tests/types/export/multiple-objects-and-tables.json +83 -0
- package/tests/types/export/multiple-objects.json +20 -0
- package/tests/types/export/multiple-tables.json +88 -0
- package/tests/types/export/object.json +11 -0
- package/tests/types/export/query-table-simple.json +12 -0
- package/tests/types/export/query-table.json +27 -0
- package/tests/types/export/sheets.json +5 -0
- package/tests/types/export/table-with-calculations.json +27 -0
- package/tests/{export → types/export}/table.json +0 -0
- package/tests/types/export/utc.json +7 -0
- package/tests/{export.test.ts → types/export.test.ts} +2 -1
- package/tests/{import → types/import}/large-table.json +0 -0
- package/tests/{import → types/import}/multisheet.json +0 -0
- package/tests/{import → types/import}/object.json +0 -0
- package/tests/{import → types/import}/table.json +0 -0
- package/tests/{import.test.ts → types/import.test.ts} +1 -2
- package/tsconfig.json +6 -44
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.types.js","sourceRoot":"","sources":["../lib/shared.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const lib_1 = require("../../lib");
|
|
4
|
+
const dotenv = require("dotenv");
|
|
5
|
+
const simpleExport = require("./export/simple-export/request.json");
|
|
6
|
+
const import1Object = require("./import/1object/expected.json");
|
|
7
|
+
const import1Table = require("./import/1table/expected.json");
|
|
8
|
+
const importLargeTable = require("./import/1table-10col-100rows/expected.json");
|
|
9
|
+
const importMultipleObjects = require("./import/multipleObjects/expected.json");
|
|
10
|
+
const importMultipleObjectsAndTables = require("./import/multipleObjectsAndTables/expected.json");
|
|
11
|
+
const fs_1 = require("fs");
|
|
12
|
+
const round = (value, precision) => Math.round(value * Math.pow(10, precision)) / Math.pow(10, precision);
|
|
13
|
+
const roundNumbers = (obj, precision = 8) => {
|
|
14
|
+
if (Array.isArray(obj)) {
|
|
15
|
+
obj.forEach((element) => {
|
|
16
|
+
if (typeof element === 'number') {
|
|
17
|
+
element = round(element, precision);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
roundNumbers(element, precision);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
else if (typeof obj === 'object') {
|
|
25
|
+
for (const key in obj) {
|
|
26
|
+
if (obj.hasOwnProperty(key)) {
|
|
27
|
+
const element = obj[key];
|
|
28
|
+
if (typeof element === 'number') {
|
|
29
|
+
obj[key] = round(element, precision);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
roundNumbers(element, precision);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
else if (typeof obj === 'number') {
|
|
38
|
+
obj = round(obj, precision);
|
|
39
|
+
}
|
|
40
|
+
return obj;
|
|
41
|
+
};
|
|
42
|
+
describe('Client', () => {
|
|
43
|
+
const getClient = () => {
|
|
44
|
+
dotenv.config({ path: './tests/client/.env' });
|
|
45
|
+
return new lib_1.Client({ apiKey: process.env.XLPORT_APIKEY });
|
|
46
|
+
};
|
|
47
|
+
it('should throw if API Key is undefined', () => {
|
|
48
|
+
expect(() => new lib_1.Client({ apiKey: undefined })).toThrow();
|
|
49
|
+
});
|
|
50
|
+
it('should be able to create a client', () => {
|
|
51
|
+
const client = getClient();
|
|
52
|
+
expect(client).toBeDefined();
|
|
53
|
+
});
|
|
54
|
+
it('should be able to download a file', async () => {
|
|
55
|
+
const client = getClient();
|
|
56
|
+
const file = await client.exportToFile(simpleExport);
|
|
57
|
+
expect(file).toBeDefined();
|
|
58
|
+
});
|
|
59
|
+
it('should be able to upload a template', async () => {
|
|
60
|
+
const client = getClient();
|
|
61
|
+
const result = await client.exportToFile({
|
|
62
|
+
template: fs_1.createReadStream('./tests/client/export/simple-export/template.xlsx'),
|
|
63
|
+
data: { test: 'Test' },
|
|
64
|
+
});
|
|
65
|
+
expect(result).toBeDefined();
|
|
66
|
+
});
|
|
67
|
+
it('should import data - 1object', async () => {
|
|
68
|
+
const client = getClient();
|
|
69
|
+
const result = await client.importFromFile('./tests/client/import/1object/Source.xlsx');
|
|
70
|
+
expect(result.status).toBe('success');
|
|
71
|
+
if (result.status === 'success') {
|
|
72
|
+
expect(result.data.properties).toEqual(import1Object.properties);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
it('should import data - 1table', async () => {
|
|
76
|
+
const client = getClient();
|
|
77
|
+
const result = await client.importFromFile('./tests/client/import/1table/Source.xlsx');
|
|
78
|
+
expect(result.status).toBe('success');
|
|
79
|
+
if (result.status === 'success') {
|
|
80
|
+
expect(result.data.tables).toEqual(import1Table.tables);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
it('should import data - large table', async () => {
|
|
84
|
+
const client = getClient();
|
|
85
|
+
const result = await client.importFromFile('./tests/client/import/1table-10col-100rows/Source.xlsx');
|
|
86
|
+
expect(result.status).toBe('success');
|
|
87
|
+
if (result.status === 'success') {
|
|
88
|
+
expect(roundNumbers(result.data.tables)).toEqual(roundNumbers(importLargeTable.tables));
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
it('should import data - multipleObjects', async () => {
|
|
92
|
+
const client = getClient();
|
|
93
|
+
const result = await client.importFromFile('./tests/client/import/multipleObjects/Source.xlsx');
|
|
94
|
+
expect(result.status).toBe('success');
|
|
95
|
+
if (result.status === 'success') {
|
|
96
|
+
expect(result.data.properties).toEqual(importMultipleObjects.properties);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
it('should import data - multipleObjectsAndTables', async () => {
|
|
100
|
+
const client = getClient();
|
|
101
|
+
const result = await client.importFromFile('./tests/client/import/multipleObjectsAndTables/Source.xlsx');
|
|
102
|
+
expect(result.status).toBe('success');
|
|
103
|
+
if (result.status === 'success') {
|
|
104
|
+
expect(result.data.properties).toEqual(importMultipleObjectsAndTables.properties);
|
|
105
|
+
expect(result.data.tables).toEqual(importMultipleObjectsAndTables.tables);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
//# sourceMappingURL=client.e2e.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.e2e.spec.js","sourceRoot":"","sources":["../../../tests/client/client.e2e.spec.ts"],"names":[],"mappings":";;AAAA,mCAAkC;AAClC,iCAAgC;AAKhC,oEAAmE;AACnE,gEAA+D;AAC/D,8DAA6D;AAC7D,gFAA+E;AAC/E,gFAA+E;AAC/E,kGAAiG;AACjG,2BAAqC;AASrC,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,SAAiB,EAAE,EAAE,CACjD,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;AACvE,MAAM,YAAY,GAAG,CAAC,GAAQ,EAAE,SAAS,GAAG,CAAC,EAAE,EAAE;IAC/C,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACtB,GAAG,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACtB,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;gBAE/B,OAAO,GAAG,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;aACpC;iBAAM;gBAC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AC1B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,4DAA4D,CAAC,CAAA;QACxG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QACrC,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE;YAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAA;YACjF,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAA;SAC1E;IACH,CAAC,CAAC,CAAA;AA4BJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tables": {
|
|
3
|
+
"Initiatives": [
|
|
4
|
+
{
|
|
5
|
+
"Id": "uuidInitiative1",
|
|
6
|
+
"Name": "Initiative 1",
|
|
7
|
+
"StatusId": "uuidStatus1",
|
|
8
|
+
"SavingsPotential": 123.3,
|
|
9
|
+
"Achievement": 0.12,
|
|
10
|
+
"IsComplete": false,
|
|
11
|
+
"Date": "2018-04-11T00:00:00.000Z",
|
|
12
|
+
"Integer": 1,
|
|
13
|
+
"Calculated column": 146.727
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"Id": "uuidInitiative2",
|
|
17
|
+
"Name": "Initiative 2",
|
|
18
|
+
"StatusId": "uuidStatus2",
|
|
19
|
+
"SavingsPotential": null,
|
|
20
|
+
"Achievement": 0,
|
|
21
|
+
"IsComplete": true,
|
|
22
|
+
"Date": "1966-05-01T00:00:00.000Z",
|
|
23
|
+
"Integer": -246537347,
|
|
24
|
+
"Calculated column": 0
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"Id": "uuidInitiative3",
|
|
28
|
+
"Name": "Initiative 3",
|
|
29
|
+
"StatusId": "uuidStatus3",
|
|
30
|
+
"SavingsPotential": 456,
|
|
31
|
+
"Achievement": 0.2,
|
|
32
|
+
"IsComplete": false,
|
|
33
|
+
"Date": "2020-01-01T00:00:00.000Z",
|
|
34
|
+
"Integer": 1324275242,
|
|
35
|
+
"Calculated column": 542.64
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|