@eventconnectors/ndtrc_model 1.0.2 → 1.0.4

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/index.js CHANGED
@@ -27,4 +27,5 @@ module.exports = {
27
27
  TRCItemGroup: require("./src/model/ndtrc/TRCItemGroup"),
28
28
  TRCItemRelation: require("./src/model/ndtrc/TRCItemRelation"),
29
29
  Categories: require("./src/model/ndtrc/Categories"),
30
+ CategoryMap: require("./src/util/CategoryMap"),
30
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventconnectors/ndtrc_model",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "jest"
@@ -0,0 +1,194 @@
1
+ const CategoryMap = {
2
+ categoryMap: {
3
+ "hedendaags|klassiek": {
4
+ catId: "2.6.3",
5
+ tags: "music;classicalmusic;musicevent",
6
+ },
7
+ oud: { catId: "2.6.3", tags: "music;classicalmusic;musicevent" },
8
+ hedendaags: { catId: "2.6.3", tags: "music;classicalmusic;musicevent" },
9
+ concert: { catId: "2.6.5", tags: "music;poprock;musicevent" },
10
+ wereldmuziek: { catId: "2.6.2", tags: "music;jazz;worldmusic;musicevent" },
11
+ ballet: { catId: "2.9.2", tags: "theatreproduction;dance" },
12
+ clubnacht: { catId: "2.6.1", tags: "music;clubbing;dancemusic;musicevent" },
13
+ film: { catId: "2.5.2", tags: "filmevent;documentaryfilm" },
14
+ expositie: { catId: "2.3.14", tags: "exhibition" },
15
+ festival: { catId: "2.4.1", tags: "festivals" },
16
+ "dance / elektronisch": {
17
+ catId: "2.6.1",
18
+ tags: "music;clubbing;dancemusic;musicevent",
19
+ },
20
+ heavy: { catId: "2.6.5", tags: "music;poprock;musicevent" },
21
+ "hiphop / reggae / soul": {
22
+ catId: "2.6.6",
23
+ tags: "music;rbsoul;clubbing;hiphop;musicevent",
24
+ },
25
+ "indie / alternative": { catId: "2.6.5", tags: "music;poprock;musicevent" },
26
+ pop: { catId: "2.6.5", tags: "music;poprock;musicevent" },
27
+ "elektronisch|pop": { catId: "2.6.5", tags: "music;poprock;musicevent" },
28
+ "world / roots / jazz": {
29
+ catId: "2.6.2",
30
+ tags: "music;jazz;worldmusic;musicevent",
31
+ },
32
+ "world / roots": {
33
+ catId: "2.6.2",
34
+ tags: "music;jazz;worldmusic;musicevent",
35
+ },
36
+ jazz: { catId: "2.6.2", tags: "music;jazz;worldmusic;musicevent" },
37
+ "bimhuis tipt": {
38
+ catId: "2.6.2",
39
+ tags: "music;jazz;worldmusic;musicevent",
40
+ },
41
+ muziek: { catId: "2.6.5", tags: "music;poprock;musicevent" },
42
+ cabaret: { catId: "2.9.1", tags: "performingarts;comedy;comedyevents" },
43
+ danstheater: { catId: "2.9.2", tags: "dance;performingarts" },
44
+ jeugd: { catId: "2.9.3", tags: "performingarts;kids" },
45
+ jeugdvoorstelling: { catId: "2.9.3", tags: "performingarts;kids" },
46
+ musical: { catId: "2.9.4", tags: "musical;performingarts" },
47
+ theater: { catId: "2.9.6", tags: "theatreproduction;performingarts" },
48
+ jeugdtheater: {
49
+ catId: "2.9.6",
50
+ tags: "theatreproduction;performingarts;kids",
51
+ },
52
+ "expanding theatre": {
53
+ catId: "2.9.6",
54
+ tags: "theatreproduction;performingarts",
55
+ },
56
+ "poppen- objecttheater": {
57
+ catId: "2.9.6",
58
+ tags: "theatreproduction;performingarts",
59
+ },
60
+ muziektheater: { catId: "2.9.4", tags: "theatreproduction;performingarts" },
61
+ specials: { catId: "2.9.8", tags: "theatreproduction;performingarts" },
62
+ toneelmuziektheater: {
63
+ catId: "2.9.6",
64
+ tags: "theatreproduction;performingarts",
65
+ },
66
+ internationaalmuziektheater: {
67
+ catId: "2.9.6",
68
+ tags: "theatreproduction;performingarts",
69
+ },
70
+ muziektheaterinternationaal: {
71
+ catId: "2.9.6",
72
+ tags: "theatreproduction;performingarts",
73
+ },
74
+ opera: { catId: "2.9.5", tags: "opera;performingarts" },
75
+ show: { catId: "2.9.4", tags: "musical;performingarts" },
76
+ educatie: { catId: "2.3.9", tags: "performingarts;spokenword" },
77
+ dans: { catId: "2.9.2", tags: "dance;performingarts" },
78
+ jeugddans: { catId: "2.9.2", tags: "dance;performingarts;kids" },
79
+ dansjeugd: { catId: "2.9.2", tags: "dance;performingarts;kids" },
80
+ dansjongeren: { catId: "2.9.2", tags: "dance;performingarts" },
81
+ dansinternationaal: { catId: "2.9.2", tags: "dance;performingarts" },
82
+ "dans (lnp)": { catId: "2.9.2", tags: "dance;performingarts" },
83
+ performance: { catId: "2.9.6", tags: "theatreproduction;performingarts" },
84
+ toneel: { catId: "2.9.6", tags: "theatreproduction;performingarts" },
85
+ toneelinternationaal: {
86
+ catId: "2.9.6",
87
+ tags: "theatreproduction;performingarts",
88
+ },
89
+ internationaaltoneel: {
90
+ catId: "2.9.6",
91
+ tags: "theatreproduction;performingarts",
92
+ },
93
+ jeugdtoneel: { catId: "2.9.6", tags: "theatreproduction;performingarts" },
94
+ toneeldiversen: {
95
+ catId: "2.9.6",
96
+ tags: "theatreproduction;performingarts",
97
+ },
98
+ kleinkunst: { catId: "2.9.6", tags: "theatreproduction;performingarts" },
99
+ diversentoneel: {
100
+ catId: "2.9.6",
101
+ tags: "theatreproduction;performingarts",
102
+ },
103
+ "poppen- en objecttheater": {
104
+ catId: "2.9.6",
105
+ tags: "theatreproduction;performingarts",
106
+ },
107
+ "2.6.3": { catId: "2.6.3", tags: "music;classicalmusic;musicevent" },
108
+ familie: { catId: "2.9.3", tags: "performingarts;kids" },
109
+ special: { catId: "2.6.8", tags: "music" },
110
+ vocal: { catId: "2.6.3", tags: "music;classicalmusic;musicevent" },
111
+ zwaargewicht: { catId: "2.9.8", tags: "performingarts" },
112
+ impro: { catId: "2.9.1", tags: "performingarts;comedy;comedyevents" },
113
+ regulars: { catId: "2.9.8", tags: "performingarts" },
114
+ laboratorium: { catId: "2.9.8", tags: "performingarts" },
115
+ "theatrale lezing": { catId: "2.3.9", tags: "performingarts;spokenword" },
116
+ "nieuw talent": { catId: "2.9.8", tags: "performingarts" },
117
+ "van eigen bodem": { catId: "2.6.5", tags: "music;poprock" },
118
+ "net bevestigd": { catId: "2.6.5", tags: "music;poprock" },
119
+ kindervoorstelling: { catId: "2.9.3", tags: "performingarts;kids" },
120
+ comedy: { catId: "2.9.1", tags: "performingarts;comedy;comedyevents" },
121
+ storytelling: { catId: "2.3.9", tags: "performingarts;spokenword" },
122
+ "nieuwe makers": {
123
+ catId: "2.9.6",
124
+ tags: "theatreproduction;performingarts",
125
+ },
126
+ },
127
+
128
+ categoryType: {
129
+ Beurs: "2.3.1",
130
+ Braderie: "2.3.2",
131
+ Ceremonie: "2.3.24",
132
+ Circus: "2.3.3",
133
+ Congres: "2.3.4",
134
+ "Corso of Optocht": "2.3.5",
135
+ Culinair: "2.3.6",
136
+ "Cultureel festival": "2.4.1",
137
+ Excursie: "2.7.2",
138
+ Fietstocht: "2.3.16",
139
+ Filmfestival: "2.4.2",
140
+ Folklore: "2.3.7",
141
+ "Grootstedelijk evenement": "2.3.23",
142
+ Huifkartocht: "2.3.19",
143
+ Jeugdfestival: "2.4.5",
144
+ Kermis: "2.3.8",
145
+ Koopavond: "2.3.22",
146
+ Koopzondag: "2.3.21",
147
+ "Lezing/Debat": "2.3.9",
148
+ Markt: "2.3.10",
149
+ Muziekfestival: "2.4.3",
150
+ "Open Dag": "2.3.11",
151
+ Rommelmarkt: "2.4.6",
152
+ Rondleiding: "2.3.12",
153
+ Sportevenement: "2.3.13",
154
+ Theaterfestival: "2.4.4",
155
+ Varia: "2.3.18",
156
+ Wandeltocht: "2.3.17",
157
+ Winkelen: "2.3.20",
158
+ Workshop: "2.3.15",
159
+ Film: "2.5.2",
160
+ Dance: "2.6.1",
161
+ "Gezelschap/orkest": "2.6.9",
162
+ Jazz: "2.6.10",
163
+ "Jazz of Wereldmuziek": "2.6.2",
164
+ "Klassieke muziek": "2.6.3",
165
+ "Lichte muziek": "2.6.4",
166
+ "Muziek overig": "2.6.8",
167
+ "Pop en Rock": "2.6.5",
168
+ "R&B en Soul": "2.6.6",
169
+ Cabaret: "2.9.1",
170
+ "Dans en Ballet": "2.9.2",
171
+ Jeugdtheater: "2.9.3",
172
+ "Musical of Show": "2.9.4",
173
+ Opera: "2.9.5",
174
+ Straattheater: "2.9.10",
175
+ "Theater en Toneel": "2.9.6",
176
+ "Theater overig": "2.9.8",
177
+ Tentoonstelling: "2.3.14",
178
+ },
179
+
180
+ transformCategoryType() {
181
+ const transformedCategoryType = {};
182
+ for (const [key, value] of Object.entries(this.categoryType)) {
183
+ const matchingEntry = Object.entries(this.categoryMap).find(
184
+ ([_, entry]) => entry.catId === value
185
+ );
186
+ transformedCategoryType[key] = matchingEntry
187
+ ? matchingEntry[1]
188
+ : { catId: value, tags: "" };
189
+ }
190
+ return transformedCategoryType;
191
+ },
192
+ };
193
+
194
+ module.exports = { CategoryMap };