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,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"templateId": "template.xlsx",
|
|
3
|
+
"data": {
|
|
4
|
+
"CompanyBoolean": false,
|
|
5
|
+
"CompanyFloat": 2141.4,
|
|
6
|
+
"CompanyId": "cid1",
|
|
7
|
+
"CompanyInteger": 252454,
|
|
8
|
+
"CompanyLabel": "Company Name",
|
|
9
|
+
"CompanyLastUpdated": "2019-02-02T00:00:00.000Z",
|
|
10
|
+
"sheets": [
|
|
11
|
+
{
|
|
12
|
+
"name": "Q1",
|
|
13
|
+
"fromTemplateSheet": "Project",
|
|
14
|
+
"tabColor": "#FF0000",
|
|
15
|
+
"data": {
|
|
16
|
+
"ProjectId": "12345",
|
|
17
|
+
"ProjectLabel":"MyLabel",
|
|
18
|
+
"Integer":42,
|
|
19
|
+
"Float":37.005,
|
|
20
|
+
"Boolean":true,
|
|
21
|
+
"LastUpdated":"1982-01-25T00:00:00.000Z",
|
|
22
|
+
"MyProjectList": [
|
|
23
|
+
{
|
|
24
|
+
"Action": "Complete adding tables",
|
|
25
|
+
"Description": "Add back tables from the template",
|
|
26
|
+
"Owner":"Markus",
|
|
27
|
+
"Deadline" : "1"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"Action": "Build column magic",
|
|
31
|
+
"Description": "Create function for moving columns",
|
|
32
|
+
"Owner":"Milou",
|
|
33
|
+
"Deadline" : "2"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"Action": "Also get import to JSON",
|
|
37
|
+
"Description": "Take data from Excel to JSON",
|
|
38
|
+
"Owner":"Amelie",
|
|
39
|
+
"Deadline" : "3"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"Action": "",
|
|
43
|
+
"Description": "",
|
|
44
|
+
"Owner":"",
|
|
45
|
+
"Deadline" : ""
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "Q2",
|
|
52
|
+
"fromTemplateSheet": "Project",
|
|
53
|
+
"tabColor": "#00FF00",
|
|
54
|
+
"data": {
|
|
55
|
+
"dummy": "dummy value"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "Q3",
|
|
60
|
+
"fromTemplateSheet": "Project",
|
|
61
|
+
"tabColor": "#0000FF",
|
|
62
|
+
"data": {
|
|
63
|
+
"dummy": "dummy value"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"Initiatives": [
|
|
68
|
+
{
|
|
69
|
+
"Id": "uuidInitiative1",
|
|
70
|
+
"Name": "Initiative 1",
|
|
71
|
+
"StatusId": "uuidStatus1",
|
|
72
|
+
"SavingsPotential": 123.3,
|
|
73
|
+
"Achievement": 0.12,
|
|
74
|
+
"IsComplete": false,
|
|
75
|
+
"Date": "2018-04-11T00:00:00.000Z",
|
|
76
|
+
"Integer": 1,
|
|
77
|
+
"Calculated column": 146.727
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"Id": "uuidInitiative2",
|
|
81
|
+
"Name": "Initiative 2",
|
|
82
|
+
"StatusId": "uuidStatus2",
|
|
83
|
+
"SavingsPotential": null,
|
|
84
|
+
"Achievement": 0,
|
|
85
|
+
"IsComplete": true,
|
|
86
|
+
"Date": "1966-05-01T00:00:00.000Z",
|
|
87
|
+
"Integer": -246537347,
|
|
88
|
+
"Calculated column": 0
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"Id": "uuidInitiative3",
|
|
92
|
+
"Name": "Initiative 3",
|
|
93
|
+
"StatusId": "uuidStatus3",
|
|
94
|
+
"SavingsPotential": 456,
|
|
95
|
+
"Achievement": 0.2,
|
|
96
|
+
"IsComplete": false,
|
|
97
|
+
"Date": "2020-01-01T00:00:00.000Z",
|
|
98
|
+
"Integer": 1324275242,
|
|
99
|
+
"Calculated column": 542.64
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"Status": [
|
|
103
|
+
{
|
|
104
|
+
"Id": "uuidStatus1",
|
|
105
|
+
"Label": "On track"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"Id": "uuidStatus2",
|
|
109
|
+
"Label": "Some progress"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"Id": "uuidStatus3",
|
|
113
|
+
"Label": "Delayed"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"Persons": [
|
|
117
|
+
{
|
|
118
|
+
"Id": "pid1",
|
|
119
|
+
"LastName": "Bolle"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"Id": "pid2",
|
|
123
|
+
"LastName": "Zwille"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"Id": "pid3",
|
|
127
|
+
"LastName": "Ralle"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"templateId": "template.xlsx",
|
|
3
|
+
"data": {
|
|
4
|
+
"CompanyBoolean": false,
|
|
5
|
+
"CompanyFloat": 2141.4,
|
|
6
|
+
"CompanyId": "cid1",
|
|
7
|
+
"CompanyInteger": 252454,
|
|
8
|
+
"CompanyLabel": "Company Name",
|
|
9
|
+
"CompanyLastUpdated": "2019-02-02T00:00:00.000Z",
|
|
10
|
+
"sheets": [
|
|
11
|
+
{
|
|
12
|
+
"name": "Q1",
|
|
13
|
+
"fromTemplateSheet": "Project",
|
|
14
|
+
"tabColor": "#FF0000",
|
|
15
|
+
"data": {
|
|
16
|
+
"ProjectId": "12345",
|
|
17
|
+
"ProjectLabel":"MyLabel",
|
|
18
|
+
"Integer":42,
|
|
19
|
+
"Float":37.005,
|
|
20
|
+
"Boolean":true,
|
|
21
|
+
"LastUpdated":"1982-01-25T00:00:00.000Z",
|
|
22
|
+
"MyProjectList": {
|
|
23
|
+
"columns" : [
|
|
24
|
+
{ "name" : "Alpha",
|
|
25
|
+
"fromTemplateColumn" : "Action" },
|
|
26
|
+
{ "name" : "Beta",
|
|
27
|
+
"fromTemplateColumn" : "Deadline" },
|
|
28
|
+
{ "name" : "Gamma",
|
|
29
|
+
"fromTemplateColumn" : "Action" },
|
|
30
|
+
{ "name" : "Delta",
|
|
31
|
+
"fromTemplateColumn" : "Owner" },
|
|
32
|
+
{ "name" : "TakeTwo",
|
|
33
|
+
"fromTemplateColumn" : "Owner" } ],
|
|
34
|
+
"data":
|
|
35
|
+
[
|
|
36
|
+
{
|
|
37
|
+
"Alpha": "Complete adding tables",
|
|
38
|
+
"Beta": "Add back tables from the template",
|
|
39
|
+
"Gamma":"Markus",
|
|
40
|
+
"Delta" : "1",
|
|
41
|
+
"TakeTwo" : 12.3456
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"Alpha": "Build column magic",
|
|
45
|
+
"Beta": "Create function for moving columns",
|
|
46
|
+
"Gamma":"Milou",
|
|
47
|
+
"Delta" : "2",
|
|
48
|
+
"TakeTwo" : 2.13456
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"Alpha": "Also get import to JSON",
|
|
52
|
+
"Beta": "Take data from Excel to JSON",
|
|
53
|
+
"Gamma":"Amelie",
|
|
54
|
+
"Delta" : "3",
|
|
55
|
+
"TakeTwo" : 6.54321
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"Alpha": "",
|
|
59
|
+
"Beta": "",
|
|
60
|
+
"Gamma":"",
|
|
61
|
+
"Delta" : "",
|
|
62
|
+
"TakeTwo" : 6145.123
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "Q2",
|
|
70
|
+
"fromTemplateSheet": "Project",
|
|
71
|
+
"tabColor": "#00FF00",
|
|
72
|
+
"data": {
|
|
73
|
+
"dummy": "dummy value"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "Q3",
|
|
78
|
+
"fromTemplateSheet": "Project",
|
|
79
|
+
"tabColor": "#0000FF",
|
|
80
|
+
"data": {
|
|
81
|
+
"dummy": "dummy value"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"Initiatives": [
|
|
86
|
+
{
|
|
87
|
+
"Id": "uuidInitiative1",
|
|
88
|
+
"Name": "Initiative 1",
|
|
89
|
+
"StatusId": "uuidStatus1",
|
|
90
|
+
"SavingsPotential": 123.3,
|
|
91
|
+
"Achievement": 0.12,
|
|
92
|
+
"IsComplete": false,
|
|
93
|
+
"Date": "2018-04-11T00:00:00.000Z",
|
|
94
|
+
"Integer": 1,
|
|
95
|
+
"Calculated column": 146.727
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"Id": "uuidInitiative2",
|
|
99
|
+
"Name": "Initiative 2",
|
|
100
|
+
"StatusId": "uuidStatus2",
|
|
101
|
+
"SavingsPotential": null,
|
|
102
|
+
"Achievement": 0,
|
|
103
|
+
"IsComplete": true,
|
|
104
|
+
"Date": "1966-05-01T00:00:00.000Z",
|
|
105
|
+
"Integer": -246537347,
|
|
106
|
+
"Calculated column": 0
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"Id": "uuidInitiative3",
|
|
110
|
+
"Name": "Initiative 3",
|
|
111
|
+
"StatusId": "uuidStatus3",
|
|
112
|
+
"SavingsPotential": 456,
|
|
113
|
+
"Achievement": 0.2,
|
|
114
|
+
"IsComplete": false,
|
|
115
|
+
"Date": "2020-01-01T00:00:00.000Z",
|
|
116
|
+
"Integer": 1324275242,
|
|
117
|
+
"Calculated column": 542.64
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"Status": [
|
|
121
|
+
{
|
|
122
|
+
"Id": "uuidStatus1",
|
|
123
|
+
"Label": "On track"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"Id": "uuidStatus2",
|
|
127
|
+
"Label": "Some progress"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"Id": "uuidStatus3",
|
|
131
|
+
"Label": "Delayed"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"Persons": [
|
|
135
|
+
{
|
|
136
|
+
"Id": "pid1",
|
|
137
|
+
"LastName": "Bolle"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"Id": "pid2",
|
|
141
|
+
"LastName": "Zwille"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"Id": "pid3",
|
|
145
|
+
"LastName": "Ralle"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"templateId": "alma-scorecard-export/template.xlsx",
|
|
3
|
+
"data": {
|
|
4
|
+
"KPIs": [
|
|
5
|
+
{
|
|
6
|
+
"Category": "Category 1",
|
|
7
|
+
"KPI": "KPI 1",
|
|
8
|
+
"Id": 1
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"Category": "Category 1",
|
|
12
|
+
"KPI": "KPI 2",
|
|
13
|
+
"Id": 2
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"Category": "Category 2",
|
|
17
|
+
"KPI": "KPI 3",
|
|
18
|
+
"Id": 3
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"sheets": [
|
|
22
|
+
{
|
|
23
|
+
"name": "AA",
|
|
24
|
+
"fromTemplateSheet": "Template",
|
|
25
|
+
"data": {
|
|
26
|
+
"ScorecardPeriodId": "1",
|
|
27
|
+
"ScorecardName": "RMNCH",
|
|
28
|
+
"PeriodName": "Q1/2022"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"templateId": "alma-scorecard-export/template.xlsx",
|
|
3
|
+
"data": {
|
|
4
|
+
"KPIs": [
|
|
5
|
+
{
|
|
6
|
+
"Category": "Category 1",
|
|
7
|
+
"KPI": "KPI 1",
|
|
8
|
+
"Id": 1
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"Category": "Category 1",
|
|
12
|
+
"KPI": "KPI 2",
|
|
13
|
+
"Id": 2
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"Category": "Category 2",
|
|
17
|
+
"KPI": "KPI 3",
|
|
18
|
+
"Id": 3
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"sheets": [
|
|
22
|
+
{
|
|
23
|
+
"name": "Q1-22",
|
|
24
|
+
"fromTemplateSheet": "Template",
|
|
25
|
+
"data": {
|
|
26
|
+
"ScorecardPeriodId": "1",
|
|
27
|
+
"ScorecardName": "RMNCH",
|
|
28
|
+
"PeriodName": "Q1/2022",
|
|
29
|
+
"Values": {
|
|
30
|
+
"columns": [
|
|
31
|
+
{ "name" : "RegionId"},
|
|
32
|
+
{ "name" : "Region"},
|
|
33
|
+
{ "name": "1", "fromTemplateColumn": "Template" },
|
|
34
|
+
{ "name": "2", "fromTemplateColumn": "Template" },
|
|
35
|
+
{ "name": "3", "fromTemplateColumn": "Template" }
|
|
36
|
+
],
|
|
37
|
+
"data": [
|
|
38
|
+
{
|
|
39
|
+
"RegionId": 1,
|
|
40
|
+
"Region": "Country",
|
|
41
|
+
"1": 1,
|
|
42
|
+
"2": 2,
|
|
43
|
+
"3": 3
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"RegionId": 2,
|
|
47
|
+
"Region": "Child",
|
|
48
|
+
"1": 4,
|
|
49
|
+
"2": 5,
|
|
50
|
+
"3": 6
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "Q2-22",
|
|
58
|
+
"fromTemplateSheet": "Template",
|
|
59
|
+
"data": {
|
|
60
|
+
"ScorecardPeriodId": "1",
|
|
61
|
+
"ScorecardName": "RMNCH",
|
|
62
|
+
"PeriodName": "Q2/2022",
|
|
63
|
+
"Values": {
|
|
64
|
+
"columns": [
|
|
65
|
+
{ "name" : "RegionId"},
|
|
66
|
+
{ "name" : "Region"},
|
|
67
|
+
{ "name": "1", "fromTemplateColumn": "Template" },
|
|
68
|
+
{ "name": "3", "fromTemplateColumn": "Template" }
|
|
69
|
+
],
|
|
70
|
+
"data": [
|
|
71
|
+
{
|
|
72
|
+
"RegionId": 1,
|
|
73
|
+
"Region": "Country",
|
|
74
|
+
"1": 7,
|
|
75
|
+
"3": 8
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"RegionId": 2,
|
|
79
|
+
"Region": "Child",
|
|
80
|
+
"1": 9,
|
|
81
|
+
"3": 10
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"templateId": "alma-scorecard-export/template.xlsx",
|
|
3
|
+
"data": {
|
|
4
|
+
"sheets": [
|
|
5
|
+
{
|
|
6
|
+
"name": "A",
|
|
7
|
+
"fromTemplateSheet": "Template",
|
|
8
|
+
"data": {
|
|
9
|
+
"Values": {
|
|
10
|
+
"columns": [
|
|
11
|
+
{ "name" : "RegionId"},
|
|
12
|
+
{ "name" : "Region"},
|
|
13
|
+
{ "name": "1", "fromTemplateColumn": "Template" },
|
|
14
|
+
{ "name": "2", "fromTemplateColumn": "Template" },
|
|
15
|
+
{ "name": "3", "fromTemplateColumn": "Template" }
|
|
16
|
+
],
|
|
17
|
+
"data": [
|
|
18
|
+
{
|
|
19
|
+
"RegionId": 1,
|
|
20
|
+
"Region": "Country",
|
|
21
|
+
"1": 1,
|
|
22
|
+
"2": 2,
|
|
23
|
+
"3": 3
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"RegionId": 2,
|
|
27
|
+
"Region": "Child",
|
|
28
|
+
"1": 4,
|
|
29
|
+
"2": 5,
|
|
30
|
+
"3": 6
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "B",
|
|
38
|
+
"fromTemplateSheet": "Template",
|
|
39
|
+
"data": {
|
|
40
|
+
"Values": {
|
|
41
|
+
"columns": [
|
|
42
|
+
{ "name" : "RegionId"},
|
|
43
|
+
{ "name" : "Region"},
|
|
44
|
+
{ "name": "1", "fromTemplateColumn": "Template" },
|
|
45
|
+
{ "name": "3", "fromTemplateColumn": "Template" }
|
|
46
|
+
],
|
|
47
|
+
"data": [
|
|
48
|
+
{
|
|
49
|
+
"RegionId": 1,
|
|
50
|
+
"Region": "Country",
|
|
51
|
+
"1": 7,
|
|
52
|
+
"3": 8
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"RegionId": 2,
|
|
56
|
+
"Region": "Child",
|
|
57
|
+
"1": 9,
|
|
58
|
+
"3": 10
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
{
|
|
2
|
+
"templateId": "template.xlsx",
|
|
3
|
+
"data": {
|
|
4
|
+
"CompanyBoolean": false,
|
|
5
|
+
"CompanyFloat": 2141.4,
|
|
6
|
+
"CompanyId": "cid1",
|
|
7
|
+
"CompanyInteger": 252454,
|
|
8
|
+
"CompanyLabel": "Company Name",
|
|
9
|
+
"CompanyLastUpdated": "2019-02-02T00:00:00.000Z",
|
|
10
|
+
"sheets": [
|
|
11
|
+
{
|
|
12
|
+
"name": "Q1",
|
|
13
|
+
"fromTemplateSheet": "Project",
|
|
14
|
+
"tabColor": "#FF0000",
|
|
15
|
+
"data": {
|
|
16
|
+
"ProjectId": "12345",
|
|
17
|
+
"ProjectLabel":"MyLabel",
|
|
18
|
+
"Integer":42,
|
|
19
|
+
"Float":37.005,
|
|
20
|
+
"Boolean":true,
|
|
21
|
+
"LastUpdated":"1982-01-25T00:00:00.000Z",
|
|
22
|
+
"MyProjectList": {
|
|
23
|
+
"columns" : [
|
|
24
|
+
{ "name" : "Alpha",
|
|
25
|
+
"fromTemplateColumn" : "Action" },
|
|
26
|
+
{ "name" : "Beta",
|
|
27
|
+
"fromTemplateColumn" : "Deadline" },
|
|
28
|
+
{ "name" : "Gamma",
|
|
29
|
+
"fromTemplateColumn" : "Action" },
|
|
30
|
+
{ "name" : "Delta",
|
|
31
|
+
"fromTemplateColumn" : "Owner" },
|
|
32
|
+
{ "name" : "TakeTwoShort",
|
|
33
|
+
"format" : "0.0",
|
|
34
|
+
"fromTemplateColumn" : "Owner" },
|
|
35
|
+
{ "name" : "TakeTwoLong",
|
|
36
|
+
"format" : "0.000",
|
|
37
|
+
"fromTemplateColumn" : "Owner" },
|
|
38
|
+
],
|
|
39
|
+
"data":
|
|
40
|
+
[
|
|
41
|
+
{
|
|
42
|
+
"Alpha": "Complete adding tables",
|
|
43
|
+
"Beta": "Add back tables from the template",
|
|
44
|
+
"Gamma":"Markus",
|
|
45
|
+
"Delta" : "1",
|
|
46
|
+
"TakeTwoShort" : 12.3456,
|
|
47
|
+
"TakeTwoLong" : 12.3456
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"Alpha": "Build column magic",
|
|
51
|
+
"Beta": "Create function for moving columns",
|
|
52
|
+
"Gamma":"Milou",
|
|
53
|
+
"Delta" : "2",
|
|
54
|
+
"TakeTwoShort" : 2.13456,
|
|
55
|
+
"TakeTwoLong" : 2.13456
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"Alpha": "Also get import to JSON",
|
|
59
|
+
"Beta": "Take data from Excel to JSON",
|
|
60
|
+
"Gamma":"Amelie",
|
|
61
|
+
"Delta" : "3",
|
|
62
|
+
"TakeTwoShort" : 6.54321,
|
|
63
|
+
"TakeTwoLong" : 6.54321
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"Alpha": "",
|
|
67
|
+
"Beta": "",
|
|
68
|
+
"Gamma":"",
|
|
69
|
+
"Delta" : "",
|
|
70
|
+
"TakeTwoShort" : 6145.123,
|
|
71
|
+
"TakeTwoLong" : 6145.123
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "Q2",
|
|
79
|
+
"fromTemplateSheet": "Project",
|
|
80
|
+
"tabColor": "#00FF00",
|
|
81
|
+
"data": {
|
|
82
|
+
"ProjectLabel":"Label 2",
|
|
83
|
+
"dummy": "dummy value"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "Q3",
|
|
88
|
+
"fromTemplateSheet": "Project",
|
|
89
|
+
"tabColor": "#0000FF",
|
|
90
|
+
"data": {
|
|
91
|
+
"ProjectLabel":"Label X",
|
|
92
|
+
"dummy": "dummy value"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"Initiatives": [
|
|
97
|
+
{
|
|
98
|
+
"Id": "uuidInitiative1",
|
|
99
|
+
"Name": "Initiative 1",
|
|
100
|
+
"StatusId": "uuidStatus1",
|
|
101
|
+
"SavingsPotential": 123.3,
|
|
102
|
+
"Achievement": 0.12,
|
|
103
|
+
"IsComplete": false,
|
|
104
|
+
"Date": "2018-04-11T00:00:00.000Z",
|
|
105
|
+
"Integer": 1,
|
|
106
|
+
"Calculated column": 146.727
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"Id": "uuidInitiative2",
|
|
110
|
+
"Name": "Initiative 2",
|
|
111
|
+
"StatusId": "uuidStatus2",
|
|
112
|
+
"SavingsPotential": null,
|
|
113
|
+
"Achievement": 0,
|
|
114
|
+
"IsComplete": true,
|
|
115
|
+
"Date": "1966-05-01T00:00:00.000Z",
|
|
116
|
+
"Integer": -246537347,
|
|
117
|
+
"Calculated column": 0
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"Id": "uuidInitiative3",
|
|
121
|
+
"Name": "Initiative 3",
|
|
122
|
+
"StatusId": "uuidStatus3",
|
|
123
|
+
"SavingsPotential": 456,
|
|
124
|
+
"Achievement": 0.2,
|
|
125
|
+
"IsComplete": false,
|
|
126
|
+
"Date": "2020-01-01T00:00:00.000Z",
|
|
127
|
+
"Integer": 1324275242,
|
|
128
|
+
"Calculated column": 542.64
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"Status": [
|
|
132
|
+
{
|
|
133
|
+
"Id": "uuidStatus1",
|
|
134
|
+
"Label": "On track"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"Id": "uuidStatus2",
|
|
138
|
+
"Label": "Some progress"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"Id": "uuidStatus3",
|
|
142
|
+
"Label": "Delayed"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"Persons": [
|
|
146
|
+
{
|
|
147
|
+
"Id": "pid1",
|
|
148
|
+
"LastName": "Bolle"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"Id": "pid2",
|
|
152
|
+
"LastName": "Zwille"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"Id": "pid3",
|
|
156
|
+
"LastName": "Ralle"
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
}
|
|
Binary file
|