cocoda-sdk 1.0.13 → 2.0.0

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 (36) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +74 -28
  3. package/dist/cjs/index.cjs +2673 -0
  4. package/dist/cocoda-sdk.js +33 -17423
  5. package/dist/cocoda-sdk.js.LICENSES.txt +105 -86
  6. package/dist/cocoda-sdk.js.map +7 -0
  7. package/dist/esm/errors/index.js +46 -0
  8. package/dist/esm/index.js +9 -0
  9. package/dist/esm/lib/CocodaSDK.js +269 -0
  10. package/dist/esm/providers/base-provider.js +368 -0
  11. package/dist/esm/providers/concept-api-provider.js +278 -0
  12. package/dist/esm/providers/index.js +20 -0
  13. package/dist/esm/providers/label-search-suggestion-provider.js +101 -0
  14. package/dist/esm/providers/loc-api-provider.js +185 -0
  15. package/dist/esm/providers/local-mappings-provider.js +337 -0
  16. package/dist/esm/providers/mappings-api-provider.js +264 -0
  17. package/dist/esm/providers/occurrences-api-provider.js +163 -0
  18. package/dist/esm/providers/reconciliation-api-provider.js +140 -0
  19. package/dist/esm/providers/skosmos-api-provider.js +345 -0
  20. package/{utils → dist/esm/utils}/index.js +40 -53
  21. package/dist/esm/utils/lodash.js +34 -0
  22. package/package.json +16 -17
  23. package/errors/index.js +0 -119
  24. package/index.js +0 -5
  25. package/lib/CocodaSDK.js +0 -360
  26. package/providers/base-provider.js +0 -581
  27. package/providers/concept-api-provider.js +0 -377
  28. package/providers/index.js +0 -34
  29. package/providers/label-search-suggestion-provider.js +0 -219
  30. package/providers/loc-api-provider.js +0 -275
  31. package/providers/local-mappings-provider.js +0 -459
  32. package/providers/mappings-api-provider.js +0 -396
  33. package/providers/occurrences-api-provider.js +0 -234
  34. package/providers/reconciliation-api-provider.js +0 -211
  35. package/providers/skosmos-api-provider.js +0 -441
  36. package/utils/lodash.js +0 -21
@@ -1,17 +1,8 @@
1
- Name: jskos-tools
2
- Version: 1.0.17
3
- License: MIT
4
- Private: false
5
- Description: Tools for working with the JSKOS data format.
6
- Repository: git+https://github.com/gbv/jskos-tools.git
7
- Homepage: https://github.com/gbv/jskos-tools
8
- Author: Stefan Peters
9
- License Copyright:
10
- ===
11
1
 
12
- MIT License
2
+ axios@0.21.4 by Matt Zabriskie (https://github.com/axios/axios)
3
+ License: MIT
13
4
 
14
- Copyright (c) 2018 Verbundzentrale des GBV (VZG)
5
+ Copyright (c) 2014-present Matt Zabriskie
15
6
 
16
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
17
8
  of this software and associated documentation files (the "Software"), to deal
@@ -20,47 +11,47 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
11
  copies of the Software, and to permit persons to whom the Software is
21
12
  furnished to do so, subject to the following conditions:
22
13
 
23
- The above copyright notice and this permission notice shall be included in all
24
- copies or substantial portions of the Software.
14
+ The above copyright notice and this permission notice shall be included in
15
+ all copies or substantial portions of the Software.
25
16
 
26
17
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
18
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
19
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
20
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
21
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
- SOFTWARE.
33
-
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ THE SOFTWARE.
34
24
 
35
25
  ---
36
26
 
37
- Name: lodash
38
- Version: 4.17.21
27
+ follow-redirects@1.14.3 by Ruben Verborgh (https://github.com/follow-redirects/follow-redirects)
39
28
  License: MIT
40
- Private: false
41
- Description: Lodash modular utilities.
42
- Repository: git+https://github.com/lodash/lodash.git
43
- Homepage: https://lodash.com/
44
- Author: John-David Dalton <john.david.dalton@gmail.com>
45
- Contributors:
46
- John-David Dalton <john.david.dalton@gmail.com>
47
- Mathias Bynens <mathias@qiwi.be>
48
- License Copyright:
49
- ===
50
29
 
51
- Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
30
+ Copyright 2014–present Olivier Lalonde <olalonde@gmail.com>, James Talmage <james@talmage.io>, Ruben Verborgh
52
31
 
53
- Based on Underscore.js, copyright Jeremy Ashkenas,
54
- DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
32
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
33
+ this software and associated documentation files (the "Software"), to deal in
34
+ the Software without restriction, including without limitation the rights to
35
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
36
+ of the Software, and to permit persons to whom the Software is furnished to do
37
+ so, subject to the following conditions:
55
38
 
56
- This software consists of voluntary contributions made by many
57
- individuals. For exact contribution history, see the revision history
58
- available at https://github.com/lodash/lodash
39
+ The above copyright notice and this permission notice shall be included in all
40
+ copies or substantial portions of the Software.
59
41
 
60
- The following license applies to all parts of this software except as
61
- documented below:
42
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
46
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
47
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
62
48
 
63
- ====
49
+ ---
50
+
51
+ immediate@3.0.6 by undefined (https://github.com/calvinmetcalf/immediate)
52
+ License: MIT
53
+
54
+ Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, Domenic Denicola, Brian Cavalier
64
55
 
65
56
  Permission is hereby granted, free of charge, to any person obtaining
66
57
  a copy of this software and associated documentation files (the
@@ -81,36 +72,14 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
81
72
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
82
73
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
83
74
 
84
- ====
85
-
86
- Copyright and related rights for sample code are waived via CC0. Sample
87
- code is defined as all source code displayed within the prose of the
88
- documentation.
89
-
90
- CC0: http://creativecommons.org/publicdomain/zero/1.0/
91
-
92
- ====
93
-
94
- Files located in the node_modules and vendor directories are externally
95
- maintained libraries used by this software which have their own
96
- licenses; we recommend you read them, as their terms may differ from the
97
- terms above.
98
-
99
-
100
75
  ---
101
76
 
102
- Name: axios
103
- Version: 0.21.1
77
+ jskos-tools@1.0.17 by Stefan Peters (https://github.com/gbv/jskos-tools)
104
78
  License: MIT
105
- Private: false
106
- Description: Promise based HTTP client for the browser and node.js
107
- Repository: git+https://github.com/axios/axios.git
108
- Homepage: https://github.com/axios/axios
109
- Author: Matt Zabriskie
110
- License Copyright:
111
- ===
112
79
 
113
- Copyright (c) 2014-present Matt Zabriskie
80
+ MIT License
81
+
82
+ Copyright (c) 2018 Verbundzentrale des GBV (VZG)
114
83
 
115
84
  Permission is hereby granted, free of charge, to any person obtaining a copy
116
85
  of this software and associated documentation files (the "Software"), to deal
@@ -119,30 +88,33 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
119
88
  copies of the Software, and to permit persons to whom the Software is
120
89
  furnished to do so, subject to the following conditions:
121
90
 
122
- The above copyright notice and this permission notice shall be included in
123
- all copies or substantial portions of the Software.
91
+ The above copyright notice and this permission notice shall be included in all
92
+ copies or substantial portions of the Software.
124
93
 
125
94
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
126
95
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
127
96
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
128
97
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
129
98
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
130
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
131
- THE SOFTWARE.
99
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
100
+ SOFTWARE.
132
101
 
102
+ ---
133
103
 
104
+ lie@3.1.1 by undefined (https://github.com/calvinmetcalf/lie)
105
+ License: MIT
106
+
107
+ #Copyright (c) 2014 Calvin Metcalf
108
+
109
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
110
+
111
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
112
+
113
+ **THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.**
134
114
  ---
135
115
 
136
- Name: localforage
137
- Version: 1.10.0
116
+ localforage@1.10.0 by Mozilla (https://github.com/localForage/localForage)
138
117
  License: Apache-2.0
139
- Private: false
140
- Description: Offline storage, improved.
141
- Repository: git://github.com/localForage/localForage.git
142
- Homepage: https://github.com/localForage/localForage
143
- Author: Mozilla
144
- License Copyright:
145
- ===
146
118
 
147
119
  Apache License
148
120
  Version 2.0, January 2004
@@ -346,18 +318,63 @@ License Copyright:
346
318
  See the License for the specific language governing permissions and
347
319
  limitations under the License.
348
320
 
321
+ ---
322
+
323
+ lodash-es@4.17.21 by John-David Dalton (https://github.com/lodash/lodash)
324
+ License: MIT
325
+
326
+ Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
327
+
328
+ Based on Underscore.js, copyright Jeremy Ashkenas,
329
+ DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
330
+
331
+ This software consists of voluntary contributions made by many
332
+ individuals. For exact contribution history, see the revision history
333
+ available at https://github.com/lodash/lodash
334
+
335
+ The following license applies to all parts of this software except as
336
+ documented below:
337
+
338
+ ====
339
+
340
+ Permission is hereby granted, free of charge, to any person obtaining
341
+ a copy of this software and associated documentation files (the
342
+ "Software"), to deal in the Software without restriction, including
343
+ without limitation the rights to use, copy, modify, merge, publish,
344
+ distribute, sublicense, and/or sell copies of the Software, and to
345
+ permit persons to whom the Software is furnished to do so, subject to
346
+ the following conditions:
347
+
348
+ The above copyright notice and this permission notice shall be
349
+ included in all copies or substantial portions of the Software.
350
+
351
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
352
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
353
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
354
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
355
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
356
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
357
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
358
+
359
+ ====
360
+
361
+ Copyright and related rights for sample code are waived via CC0. Sample
362
+ code is defined as all source code displayed within the prose of the
363
+ documentation.
364
+
365
+ CC0: http://creativecommons.org/publicdomain/zero/1.0/
366
+
367
+ ====
368
+
369
+ Files located in the node_modules and vendor directories are externally
370
+ maintained libraries used by this software which have their own
371
+ licenses; we recommend you read them, as their terms may differ from the
372
+ terms above.
349
373
 
350
374
  ---
351
375
 
352
- Name: uuid
353
- Version: 8.3.2
376
+ uuid@8.3.2 by undefined (https://github.com/uuidjs/uuid)
354
377
  License: MIT
355
- Private: false
356
- Description: RFC4122 (v1, v4, and v5) UUIDs
357
- Repository: git+https://github.com/uuidjs/uuid.git
358
- Homepage: https://github.com/uuidjs/uuid#readme
359
- License Copyright:
360
- ===
361
378
 
362
379
  The MIT License (MIT)
363
380
 
@@ -367,4 +384,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
367
384
 
368
385
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
369
386
 
370
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
387
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
388
+
389
+ ---