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