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.
Files changed (237) hide show
  1. package/.env +1 -0
  2. package/dist/client.d.ts +23 -0
  3. package/dist/client.js +98 -0
  4. package/dist/client.js.map +1 -0
  5. package/dist/export.types.d.ts +53 -0
  6. package/dist/export.types.js +3 -0
  7. package/dist/export.types.js.map +1 -0
  8. package/dist/import.types.d.ts +25 -0
  9. package/dist/import.types.js +11 -0
  10. package/dist/import.types.js.map +1 -0
  11. package/dist/index.d.ts +4 -0
  12. package/dist/index.js +21 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/lib/client.d.ts +7 -9
  15. package/dist/lib/client.d.ts.map +1 -1
  16. package/dist/lib/client.js +109 -69
  17. package/dist/lib/client.js.map +1 -1
  18. package/dist/lib/export.types.d.ts +1 -0
  19. package/dist/lib/export.types.d.ts.map +1 -1
  20. package/dist/lib/index.js +5 -1
  21. package/dist/lib/index.js.map +1 -1
  22. package/dist/lib/shared.types.d.ts +1 -1
  23. package/dist/lib/shared.types.d.ts.map +1 -1
  24. package/dist/shared.types.d.ts +1 -0
  25. package/dist/shared.types.js +3 -0
  26. package/dist/shared.types.js.map +1 -0
  27. package/dist/tests/client/client.e2e.spec.d.ts +1 -0
  28. package/dist/tests/client/client.e2e.spec.js +109 -0
  29. package/dist/tests/client/client.e2e.spec.js.map +1 -0
  30. package/dist/tests/client/export/simple-export/request.json +6 -0
  31. package/dist/tests/client/import/1object/expected.json +10 -0
  32. package/dist/tests/client/import/1table/expected.json +39 -0
  33. package/dist/tests/client/import/1table-10col-100rows/expected.json +1306 -0
  34. package/dist/tests/client/import/multipleObjects/expected.json +20 -0
  35. package/dist/tests/client/import/multipleObjectsAndTables/expected.json +84 -0
  36. package/dist/tests/types/export/column-formatting.json +151 -0
  37. package/dist/tests/types/export/date.json +6 -0
  38. package/dist/tests/types/export/days.json +7 -0
  39. package/dist/tests/types/export/formats.json +169 -0
  40. package/dist/tests/types/export/formulas-and-lookups.json +9 -0
  41. package/dist/tests/types/export/multi-column-with-fixed-column.json +24 -0
  42. package/dist/tests/types/export/multi-sheet-column-fixed-topleft.json +59 -0
  43. package/dist/tests/types/export/multi-sheet-column-fixed.json +59 -0
  44. package/dist/tests/types/export/multi-sheet-column-simple-dash.json +97 -0
  45. package/dist/tests/types/export/multi-sheet-column-simple.json +68 -0
  46. package/dist/tests/types/export/multi-sheet-column.json +68 -0
  47. package/dist/tests/types/export/multi-sheet-simple.json +41 -0
  48. package/dist/tests/types/export/multiple-objects-and-tables.json +83 -0
  49. package/dist/tests/types/export/multiple-objects.json +20 -0
  50. package/dist/tests/types/export/multiple-tables.json +88 -0
  51. package/dist/tests/types/export/object.json +11 -0
  52. package/dist/tests/types/export/query-table-simple.json +12 -0
  53. package/dist/tests/types/export/query-table.json +27 -0
  54. package/dist/tests/types/export/sheets.json +6 -0
  55. package/dist/tests/types/export/table-with-calculations.json +27 -0
  56. package/dist/tests/types/export/table.json +40 -0
  57. package/dist/tests/types/export/utc.json +7 -0
  58. package/dist/tests/types/export.test.d.ts +26 -0
  59. package/dist/tests/types/export.test.js +48 -0
  60. package/dist/tests/types/export.test.js.map +1 -0
  61. package/dist/tests/types/import/large-table.json +1 -0
  62. package/dist/tests/types/import/multisheet.json +1 -0
  63. package/dist/tests/types/import/object.json +1 -0
  64. package/dist/tests/types/import/table.json +1 -0
  65. package/dist/tests/types/import.test.d.ts +5 -0
  66. package/dist/tests/types/import.test.js +12 -0
  67. package/dist/tests/types/import.test.js.map +1 -0
  68. package/dist/tsconfig.tsbuildinfo +1 -0
  69. package/package.json +42 -5
  70. package/tests/client/.env +1 -0
  71. package/tests/client/.env.example +1 -0
  72. package/tests/client/client.e2e.spec.ts +149 -0
  73. package/tests/client/export/1object/expected.xlsx +0 -0
  74. package/tests/{export/object.json → client/export/1object/request.json} +0 -0
  75. package/tests/client/export/1object/template.xlsx +0 -0
  76. package/tests/client/export/1table/expected.xlsx +0 -0
  77. package/tests/client/export/1table/request.json +40 -0
  78. package/tests/client/export/1table/template.xlsx +0 -0
  79. package/tests/client/export/1table/test.xlsx +0 -0
  80. package/tests/client/export/1table-10col-100rows/expected.xlsx +0 -0
  81. package/tests/client/export/1table-10col-100rows/request.json +1307 -0
  82. package/tests/client/export/1table-10col-100rows/template.xlsx +0 -0
  83. package/tests/client/export/1table-with-calculations/expected.xlsx +0 -0
  84. package/tests/{export/table-with-calculations.json → client/export/1table-with-calculations/request.json} +0 -0
  85. package/tests/client/export/1table-with-calculations/template.xlsx +0 -0
  86. package/tests/client/export/4col_10000rows/expected.xlsx +0 -0
  87. package/tests/client/export/4col_10000rows/request.json +70011 -0
  88. package/tests/client/export/4col_10000rows/template.xlsx +0 -0
  89. package/tests/client/export/4col_100rows/expected.xlsx +0 -0
  90. package/tests/client/export/4col_100rows/request.json +711 -0
  91. package/tests/client/export/4col_100rows/template.xlsx +0 -0
  92. package/tests/client/export/4col_20000rows/expected.xlsx +0 -0
  93. package/tests/client/export/4col_20000rows/request.json +140011 -0
  94. package/tests/client/export/4col_20000rows/template.xlsx +0 -0
  95. package/tests/client/export/daysbug/expected.xlsx +0 -0
  96. package/tests/{export/days.json → client/export/daysbug/request.json} +0 -0
  97. package/tests/client/export/daysbug/template.xlsx +0 -0
  98. package/tests/client/export/deals/expected.xlsx +0 -0
  99. package/tests/client/export/deals/request.json +444 -0
  100. package/tests/client/export/deals/template.xlsx +0 -0
  101. package/tests/client/export/firstXlPort2Test/expected.xlsx +0 -0
  102. package/tests/client/export/firstXlPort2Test/request.json +119 -0
  103. package/tests/client/export/firstXlPort2Test/template.xlsx +0 -0
  104. package/tests/client/export/formats/expected.xlsx +0 -0
  105. package/tests/{export/formats.json → client/export/formats/request.json} +0 -0
  106. package/tests/client/export/formats/template.xlsx +0 -0
  107. package/tests/client/export/formulasAndLookups/expected.xlsx +0 -0
  108. package/tests/client/export/formulasAndLookups/request.json +8 -0
  109. package/tests/client/export/formulasAndLookups/template.xlsx +0 -0
  110. package/tests/client/export/multipleObjects/expected.xlsx +0 -0
  111. package/tests/{export/multiple-objects.json → client/export/multipleObjects/request.json} +0 -0
  112. package/tests/client/export/multipleObjects/template.xlsx +0 -0
  113. package/tests/client/export/multipleObjectsAndTables/expected.xlsx +0 -0
  114. package/tests/{export/multiple-objects-and-tables.json → client/export/multipleObjectsAndTables/request.json} +0 -0
  115. package/tests/client/export/multipleObjectsAndTables/template.xlsx +0 -0
  116. package/tests/client/export/multipleTables/expected.xlsx +0 -0
  117. package/tests/{export/multiple-tables.json → client/export/multipleTables/request.json} +0 -0
  118. package/tests/client/export/multipleTables/template.xlsx +0 -0
  119. package/tests/client/export/query_table_bug/expected.xlsx +0 -0
  120. package/tests/{export/query-table.json → client/export/query_table_bug/request.json} +0 -0
  121. package/tests/client/export/query_table_bug/template copy.xlsx +0 -0
  122. package/tests/client/export/query_table_bug/template updated.xlsx +0 -0
  123. package/tests/client/export/query_table_bug/template.xlsx +0 -0
  124. package/tests/client/export/query_table_simple/expected.xlsx +0 -0
  125. package/tests/{export/query-table-simple.json → client/export/query_table_simple/request.json} +0 -0
  126. package/tests/client/export/query_table_simple/template copy.xlsx +0 -0
  127. package/tests/client/export/query_table_simple/template updated.xlsx +0 -0
  128. package/tests/client/export/query_table_simple/template.xlsx +0 -0
  129. package/tests/client/export/secondXlPort2Test/expected.xlsx +0 -0
  130. package/tests/client/export/secondXlPort2Test/request.json +131 -0
  131. package/tests/client/export/secondXlPort2Test/template.xlsx +0 -0
  132. package/tests/client/export/secondXlPort2Test/~$expected.xlsx +0 -0
  133. package/tests/client/export/sheets/expected.xlsx +0 -0
  134. package/tests/{export/sheets.json → client/export/sheets/request.json} +0 -0
  135. package/tests/client/export/simple-export/expected.xlsx +0 -0
  136. package/tests/client/export/simple-export/request.json +6 -0
  137. package/tests/client/export/simple-export/template.xlsx +0 -0
  138. package/tests/client/export/simple-export/test.xlsx +0 -0
  139. package/tests/client/export/thedate/expected.xlsx +0 -0
  140. package/tests/{export/date.json → client/export/thedate/request.json} +0 -0
  141. package/tests/client/export/thedate/template.xlsx +0 -0
  142. package/tests/client/export/thirdXlPort2Test/expected.xlsx +0 -0
  143. package/tests/client/export/thirdXlPort2Test/request.json +149 -0
  144. package/tests/client/export/thirdXlPort2Test/template.xlsx +0 -0
  145. package/tests/client/export/thirdXlPort2Test/~$expected.xlsx +0 -0
  146. package/tests/client/export/thirdXlPort2Test/~$template.xlsx +0 -0
  147. package/tests/client/export/v2-alma-minimized/expected.xlsx +0 -0
  148. package/tests/client/export/v2-alma-minimized/request.json +33 -0
  149. package/tests/client/export/v2-alma-minimized/template.xlsx +0 -0
  150. package/tests/client/export/v2-alma-scorecard-export/expected.xlsx +0 -0
  151. package/tests/client/export/v2-alma-scorecard-export/request.json +89 -0
  152. package/tests/client/export/v2-alma-scorecard-export/template.xlsx +0 -0
  153. package/tests/client/export/v2-alma-table/expected.xlsx +0 -0
  154. package/tests/client/export/v2-alma-table/request.json +66 -0
  155. package/tests/client/export/v2-alma-table/template.xlsx +0 -0
  156. package/tests/client/export/v2-column-formatting/expected.xlsx +0 -0
  157. package/tests/client/export/v2-column-formatting/request.json +160 -0
  158. package/tests/client/export/v2-column-formatting/template.xlsx +0 -0
  159. package/tests/client/export/v2-column-formatting/~$expected.xlsx +0 -0
  160. package/tests/client/export/v2-column-formatting/~$template.xlsx +0 -0
  161. package/tests/client/export/v2-multi-column-with-fixed-column/expected.xlsx +0 -0
  162. package/tests/{export/multi-column-with-fixed-column.json → client/export/v2-multi-column-with-fixed-column/request.json} +0 -0
  163. package/tests/client/export/v2-multi-column-with-fixed-column/template.xlsx +0 -0
  164. package/tests/client/export/v2-multi-sheet-column/expected.xlsx +0 -0
  165. package/tests/{export/multi-sheet-column.json → client/export/v2-multi-sheet-column/request.json} +0 -0
  166. package/tests/client/export/v2-multi-sheet-column/template.xlsx +0 -0
  167. package/tests/client/export/v2-multi-sheet-column-fixed/expected.xlsx +0 -0
  168. package/tests/{export/multi-sheet-column-fixed.json → client/export/v2-multi-sheet-column-fixed/request.json} +0 -0
  169. package/tests/client/export/v2-multi-sheet-column-fixed/template.xlsx +0 -0
  170. package/tests/client/export/v2-multi-sheet-column-fixed-topleft/expected.xlsx +0 -0
  171. package/tests/{export/multi-sheet-column-fixed-topleft.json → client/export/v2-multi-sheet-column-fixed-topleft/request.json} +0 -0
  172. package/tests/client/export/v2-multi-sheet-column-fixed-topleft/template.xlsx +0 -0
  173. package/tests/client/export/v2-multi-sheet-column-simple/expected.xlsx +0 -0
  174. package/tests/{export/multi-sheet-column-simple.json → client/export/v2-multi-sheet-column-simple/request.json} +0 -0
  175. package/tests/client/export/v2-multi-sheet-column-simple/template.xlsx +0 -0
  176. package/tests/client/export/v2-multi-sheet-column-simple-dash/expected.xlsx +0 -0
  177. package/tests/{export/multi-sheet-column-simple-dash.json → client/export/v2-multi-sheet-column-simple-dash/request.json} +0 -0
  178. package/tests/client/export/v2-multi-sheet-column-simple-dash/template.xlsx +0 -0
  179. package/tests/client/export/v2-multi-sheet-simple/expected.xlsx +0 -0
  180. package/tests/{export/multi-sheet-simple.json → client/export/v2-multi-sheet-simple/request.json} +0 -0
  181. package/tests/client/export/v2-multi-sheet-simple/template.xlsx +0 -0
  182. package/tests/client/export/v2-utc/expected.xlsx +0 -0
  183. package/tests/{export/utc.json → client/export/v2-utc/request.json} +0 -0
  184. package/tests/client/export/v2-utc/template.xlsx +0 -0
  185. package/tests/client/import/1object/Source.xlsx +0 -0
  186. package/tests/client/import/1object/data.xlsx +0 -0
  187. package/tests/client/import/1object/expected.json +10 -0
  188. package/tests/client/import/1object/request.json +10 -0
  189. package/tests/client/import/1table/Source.xlsx +0 -0
  190. package/tests/client/import/1table/data.xlsx +0 -0
  191. package/tests/client/import/1table/expected.json +39 -0
  192. package/tests/client/import/1table/request.json +15 -0
  193. package/tests/client/import/1table-10col-100rows/Source.xlsx +0 -0
  194. package/tests/client/import/1table-10col-100rows/data.xlsx +0 -0
  195. package/tests/client/import/1table-10col-100rows/expected.json +1306 -0
  196. package/tests/client/import/1table-10col-100rows/request.json +17 -0
  197. package/tests/client/import/multipleObjects/Source.xlsx +0 -0
  198. package/tests/client/import/multipleObjects/data.xlsx +0 -0
  199. package/tests/client/import/multipleObjects/expected.json +20 -0
  200. package/tests/client/import/multipleObjects/request.json +20 -0
  201. package/tests/client/import/multipleObjectsAndTables/Source.xlsx +0 -0
  202. package/tests/client/import/multipleObjectsAndTables/data.xlsx +0 -0
  203. package/tests/client/import/multipleObjectsAndTables/expected.json +84 -0
  204. package/tests/client/import/multipleObjectsAndTables/request.json +40 -0
  205. package/tests/client/import/multipleTables/Source.xlsx +0 -0
  206. package/tests/client/import/multipleTables/data.xlsx +0 -0
  207. package/tests/client/import/multipleTables/expected.json +87 -0
  208. package/tests/client/import/multipleTables/request.json +29 -0
  209. package/tests/{export → types/export}/column-formatting.json +0 -0
  210. package/tests/types/export/date.json +6 -0
  211. package/tests/types/export/days.json +7 -0
  212. package/tests/types/export/formats.json +169 -0
  213. package/tests/{export → types/export}/formulas-and-lookups.json +0 -0
  214. package/tests/types/export/multi-column-with-fixed-column.json +24 -0
  215. package/tests/types/export/multi-sheet-column-fixed-topleft.json +59 -0
  216. package/tests/types/export/multi-sheet-column-fixed.json +59 -0
  217. package/tests/types/export/multi-sheet-column-simple-dash.json +97 -0
  218. package/tests/types/export/multi-sheet-column-simple.json +68 -0
  219. package/tests/types/export/multi-sheet-column.json +68 -0
  220. package/tests/types/export/multi-sheet-simple.json +41 -0
  221. package/tests/types/export/multiple-objects-and-tables.json +83 -0
  222. package/tests/types/export/multiple-objects.json +20 -0
  223. package/tests/types/export/multiple-tables.json +88 -0
  224. package/tests/types/export/object.json +11 -0
  225. package/tests/types/export/query-table-simple.json +12 -0
  226. package/tests/types/export/query-table.json +27 -0
  227. package/tests/types/export/sheets.json +5 -0
  228. package/tests/types/export/table-with-calculations.json +27 -0
  229. package/tests/{export → types/export}/table.json +0 -0
  230. package/tests/types/export/utc.json +7 -0
  231. package/tests/{export.test.ts → types/export.test.ts} +2 -1
  232. package/tests/{import → types/import}/large-table.json +0 -0
  233. package/tests/{import → types/import}/multisheet.json +0 -0
  234. package/tests/{import → types/import}/object.json +0 -0
  235. package/tests/{import → types/import}/table.json +0 -0
  236. package/tests/{import.test.ts → types/import.test.ts} +1 -2
  237. package/tsconfig.json +6 -44
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=shared.types.js.map
@@ -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;gBACL,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;aACjC;QACH,CAAC,CAAC,CAAA;KACH;SAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAClC,KAAK,MAAM,GAAG,IAAI,GAAG,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,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,6 @@
1
+ {
2
+ "templateId": "simple-export/template.xlsx",
3
+ "data": {
4
+ "test": "Test"
5
+ }
6
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "properties": {
3
+ "Boolean": true,
4
+ "Float": -143242.25,
5
+ "Integer": 114325352,
6
+ "LastUpdated": "2019-01-01T00:00:00.000Z",
7
+ "ProjectId": "pid1",
8
+ "ProjectLabel": "Project Name"
9
+ }
10
+ }
@@ -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
+ }