arlas-web-core 23.2.2 → 24.0.0-beta.1

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 (43) hide show
  1. package/.editorconfig +13 -0
  2. package/.eslintignore +2 -0
  3. package/.eslintrc.json +155 -0
  4. package/.github/workflows/main.yml +45 -0
  5. package/CHANGELOG.md +514 -0
  6. package/CONTRIBUTING.md +48 -0
  7. package/NOTICE.txt +10 -0
  8. package/README-NPM.md +78 -0
  9. package/README.md +5 -5
  10. package/build.sh +9 -0
  11. package/jsconfig.json +13 -0
  12. package/mkDocs.sh +18 -0
  13. package/package-release.json +26 -0
  14. package/package.json +18 -2
  15. package/release.sh +426 -0
  16. package/{index.js → src/index.ts} +7 -4
  17. package/{models/collaboration.js → src/models/collaboration.ts} +30 -6
  18. package/src/models/contributor.ts +165 -0
  19. package/src/models/projections.ts +58 -0
  20. package/{services/collaborativesearch.service.js → src/services/collaborativesearch.service.ts} +370 -184
  21. package/{services/config.service.js → src/services/config.service.ts} +16 -12
  22. package/src/utils/utils.ts +80 -0
  23. package/tsconfig-build.json +21 -0
  24. package/tsconfig.json +15 -0
  25. package/tslint.json +116 -0
  26. package/index.d.ts +0 -6
  27. package/index.js.map +0 -1
  28. package/models/collaboration.d.ts +0 -29
  29. package/models/collaboration.js.map +0 -1
  30. package/models/contributor.d.ts +0 -57
  31. package/models/contributor.js +0 -122
  32. package/models/contributor.js.map +0 -1
  33. package/models/projections.d.ts +0 -35
  34. package/models/projections.js +0 -38
  35. package/models/projections.js.map +0 -1
  36. package/services/collaborativesearch.service.d.ts +0 -353
  37. package/services/collaborativesearch.service.js.map +0 -1
  38. package/services/config.service.d.ts +0 -31
  39. package/services/config.service.js.map +0 -1
  40. package/utils/utils.d.ts +0 -22
  41. package/utils/utils.js +0 -63
  42. package/utils/utils.js.map +0 -1
  43. /package/{LICENSE → LICENSE.txt} +0 -0
package/README.md CHANGED
@@ -4,12 +4,12 @@
4
4
  [![npm version](https://badge.fury.io/js/arlas-web-core.svg)](https://badge.fury.io/js/arlas-web-core)
5
5
 
6
6
  `arlas-web-core ` is a typescript library that provides :
7
- - A collaborative search service (`CSS`) that coordinates the [ARLAS-web-contributors](https://www.npmjs.com/package/arlas-web-contributors) collaborations.
8
- - A configuration service that allows to read and parse a configuration file (that is used by the `CSS` & other services in [ARLAS-wui-toolkit](https://www.npmjs.com/package/arlas-wui-toolkit)).
7
+ - A collaborative search service (`CSS`) that coordinates the [ARLAS-web-contributors](https://github.com/gisaia/ARLAS-web-contributors) collaborations.
8
+ - A configuration service that allows to read and parse a configuration file (that is used by the `CSS` & other services in [ARLAS-wui-toolkit](https://github.com/gisaia/ARLAS-wui-toolkit)).
9
9
 
10
10
  ## Install
11
11
 
12
- To install this library in your web application, add the dependency in your `package.json` file.
12
+ To install this library in your npm web application, add the dependency in your `package.json` file.
13
13
 
14
14
  ```shell
15
15
  $ npm install --save arlas-web-core
@@ -17,7 +17,7 @@ $ npm install --save arlas-web-core
17
17
 
18
18
  ## Documentation
19
19
 
20
- Please find the documentation [here](http://docs.arlas.io/arlas-tech/current/classes/_src_app_services_startup_startup_service_.arlascollaborativesearchservice/)
20
+ Please find the documentation [here](https://docs.arlas.io/classes/CollaborativesearchService/).
21
21
 
22
22
  ## Build
23
23
 
@@ -68,7 +68,7 @@ We use [SemVer](http://semver.org/) for versioning : `x.y.z`.
68
68
 
69
69
  ## Authors
70
70
 
71
- * **Gisaïa** - *Initial work* - [Gisaïa](http://gisaia.fr/)
71
+ * **Gisaïa** - *Initial work* - [Gisaïa](http://gisaia.com/)
72
72
 
73
73
  See also the list of [contributors](https://github.com/gisaia/ARLAS-web-core/graphs/contributors) who participated in this project.
74
74
 
package/build.sh ADDED
@@ -0,0 +1,9 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ # rm -rf package-lock.json node_modules
5
+ # npm install
6
+
7
+ # rm -r node_modules/arlas-api/*
8
+ # cp -r ../arlas-api/* node_modules/arlas-api/
9
+ npm run build-release
package/jsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ // See https://go.microsoft.com/fwlink/?LinkId=759670
3
+ // for the documentation about the jsconfig.json format
4
+ "compilerOptions": {
5
+ "target": "es6",
6
+ "module": "commonjs",
7
+ "allowSyntheticDefaultImports": true
8
+ },
9
+ "exclude": [
10
+ "node_modules",
11
+ "dist"
12
+ ]
13
+ }
package/mkDocs.sh ADDED
@@ -0,0 +1,18 @@
1
+ #!/bin/sh -e
2
+
3
+ ## CREATE TARGET DIRECTORY ##
4
+ rm -rf target
5
+ mkdir target
6
+ mkdir target/generated-docs
7
+
8
+ ## GENERATE THE DOCUMENTATION ##
9
+ docker run -a STDERR --rm -i -v `pwd`:/docs gisaia/typedocgen:0.0.7 generatedoc --entryPoints src/index.ts
10
+
11
+ ## MOVE ALL THE DOCUMENTATION TO THE 'generated-docs' FOLDER ##
12
+ mv typedoc_docs/* target/generated-docs
13
+ cp CHANGELOG.md target/generated-docs/CHANGELOG_ARLAS-web-core.md
14
+ if [ -d ./docs ] ; then
15
+ cp -r docs/* target/generated-docs
16
+ fi
17
+
18
+
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "arlas-web-core",
3
+ "version": "***update during release***",
4
+ "description": "Core Service Library for ARLAS Web App",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/gisaia/ARLAS-web-core.git"
8
+ },
9
+ "author": "gisaia-team",
10
+ "license": "Apache-2.0",
11
+ "dependencies": {
12
+ "arlas-api": "23.0.9",
13
+ "rxjs": "~7.4.0"
14
+ },
15
+ "overrides": {
16
+ "arlas-api": {
17
+ "portable-fetch": {
18
+ "node-fetch": "3.3.0"
19
+ }
20
+ }
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/gisaia/ARLAS-web-core/issues"
24
+ },
25
+ "homepage": "https://github.com/gisaia/ARLAS-web-core/blob/master/README.md"
26
+ }
package/package.json CHANGED
@@ -1,15 +1,23 @@
1
1
  {
2
2
  "name": "arlas-web-core",
3
- "version": "23.2.2",
3
+ "version": "24.0.0-beta.1",
4
4
  "description": "Core Service Library for ARLAS Web App",
5
+ "scripts": {
6
+ "build-release": "tsc -p tsconfig-build.json && cp -r patches dist/",
7
+ "clean": "npm cache clear && rimraf -- dist",
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "lint": "eslint . --ext .ts",
10
+ "postinstall": "patch-package"
11
+ },
5
12
  "repository": {
6
13
  "type": "git",
7
14
  "url": "https://github.com/gisaia/ARLAS-web-core.git"
8
15
  },
9
- "author": "gisaia-team",
16
+ "author": "gisaia",
10
17
  "license": "Apache-2.0",
11
18
  "dependencies": {
12
19
  "arlas-api": "23.0.9",
20
+ "patch-package": "^6.4.7",
13
21
  "rxjs": "~7.4.0"
14
22
  },
15
23
  "overrides": {
@@ -19,6 +27,14 @@
19
27
  }
20
28
  }
21
29
  },
30
+ "devDependencies": {
31
+ "@types/node": "16.11.20",
32
+ "@typescript-eslint/eslint-plugin": "^5.27.1",
33
+ "@typescript-eslint/parser": "^5.27.1",
34
+ "eslint": "^8.17.0",
35
+ "rimraf": "^2.6.2",
36
+ "typescript": "~4.6.0"
37
+ },
22
38
  "bugs": {
23
39
  "url": "https://github.com/gisaia/ARLAS-web-core/issues"
24
40
  },
package/release.sh ADDED
@@ -0,0 +1,426 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ SCRIPT_DIRECTORY="$(cd "$(dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd)"
5
+
6
+ if [ -z "$GITHUB_CHANGELOG_TOKEN" ] ; then echo "Please set GITHUB_CHANGELOG_TOKEN environment variable"; exit -1; fi
7
+
8
+ if [[ ! -d ../ARLAS-web-contributors/ ]] ; then
9
+ echo 'Directory "../ARLAS-web-contributors/" is not there, aborting.'
10
+ exit
11
+ fi
12
+
13
+ if [[ ! -d ../ARLAS-web-components/ ]] ; then
14
+ echo 'Directory "../ARLAS-web-components/" is not there, aborting.'
15
+ exit
16
+ fi
17
+
18
+ if [[ ! -d ../ARLAS-wui-toolkit/ ]] ; then
19
+ echo 'Directory "../ARLAS-wui-toolkit/" is not there, aborting.'
20
+ exit
21
+ fi
22
+
23
+ if [[ ! -d ../ARLAS-d3/ ]] ; then
24
+ echo 'Directory "../ARLAS-d3/" is not there, aborting.'
25
+ exit
26
+ fi
27
+
28
+ npmlogin=`npm whoami`
29
+ if [ -z "$npmlogin" ] ; then echo "your are not logged on npm"; exit -1; else echo "logged as "$npmlogin ; fi
30
+
31
+ level_version=("major" "minor" "patch")
32
+
33
+ usage(){
34
+ echo "Usage: ./release.sh -core='1.0.0;major' -cont='1.1.0;minor' -comp='1.1.1;patch' -ref_branch=develop --stage=beta|rc|stable"
35
+ echo " -core|--arlas-web-core arlas-web-core version release,level of evolution"
36
+ echo " -cont|--arlas-web-contributors arlas-web-contributors version release, level of evolution"
37
+ echo " -comp|--arlas-web-components arlas-web-components version release, level of evolution"
38
+ echo " -d3|--arlas-d3 arlas-d3 version release, level of evolution"
39
+ echo " -tool|--arlas-wui-toolkit arlas-wui-toolkit version release, level of evolution"
40
+ echo " -s|--stage Stage of the release : beta | rc | stable. If --stage is 'rc' or 'beta', there is no merge of develop into master (if -ref_branch=develop)"
41
+ echo " -i|--stage_iteration=n, the released version will be : [x].[y].[z]-beta.[n] OR [x].[y].[z]-rc.[n] according to the given --stage"
42
+ echo " -ref_branch | --reference_branch from which branch to start the release."
43
+ echo " Add -ref_branch=develop for a new official release"
44
+ echo " Add -ref_branch=x.x.x for a maintenance release"
45
+ exit 1
46
+ }
47
+
48
+ contains(){
49
+ local n=$#
50
+ local value=${!n}
51
+ for ((i=1;i < $#;i++)) {
52
+ if [ "${!i}" == "${value}" ]; then
53
+ echo "y"
54
+ return 0
55
+ fi
56
+ }
57
+ echo "n"
58
+ return 1
59
+ }
60
+
61
+ checkInput(){
62
+ IFS=';' read -ra TAB <<< "$1"
63
+ TABLEN=${#TAB[@]}
64
+ TWO=2
65
+ if [ "$TABLEN" -ne "$TWO" ];
66
+ then
67
+ usage;
68
+ else
69
+ if [ $(contains "${level_version[@]}" "${TAB[1]}") == "n" ];
70
+ then
71
+ echo "Unknown level of evolution value : ${TAB[1]}"
72
+ echo "Possible values : "
73
+ echo " level for versions : ${level_version[*]}"
74
+ usage;
75
+ else
76
+ if ! [[ ${TAB[0]} =~ ^[0-9]*\.[0-9]*\.[0-9]*$ ]]
77
+ then
78
+ echo ""${TAB[0]}" version value is not valid. Format : vX.Y.Z in --prod mode"
79
+ usage;
80
+ fi
81
+ fi
82
+ fi
83
+
84
+ }
85
+
86
+
87
+ # ARGUMENTS $1 = VERSION $2 = patch/minor/major $3 = PROJECT $4 ref_branch $5 stage $6 stage iteration (for beta & rc)
88
+ releaseProd(){
89
+ local folder="web-core"
90
+ local VERSION=$1
91
+ local PROJECT=$3
92
+ local BRANCH=$4
93
+ local STAGE_LOCAL=$5
94
+ local STAGE_ITERATION_LOCAL=$6
95
+
96
+ if [ "${STAGE_LOCAL}" == "rc" ] || [ "${STAGE_LOCAL}" == "beta" ];
97
+ then
98
+ local VERSION="${VERSION}-${STAGE_LOCAL}.${STAGE_ITERATION_LOCAL}"
99
+ fi
100
+ if [ "$PROJECT" == "components" ];
101
+ then
102
+ cd ../ARLAS-web-components/
103
+ local folder="web-components"
104
+ elif [ "$PROJECT" == "d3" ];
105
+ then
106
+ cd ../ARLAS-d3/
107
+ local folder="d3"
108
+ elif [ "$PROJECT" == "contributors" ];
109
+ then
110
+ cd ../ARLAS-web-contributors/
111
+ local folder="web-contributors"
112
+ elif [ "$PROJECT" == "toolkit" ];
113
+ then
114
+ cd ../ARLAS-wui-toolkit/
115
+ local folder="wui-toolkit"
116
+ fi
117
+
118
+ echo "=> Get "$BRANCH" branch of ARLAS-$folder project"
119
+ git checkout "$BRANCH"
120
+ git pull origin "$BRANCH"
121
+ echo "=> Test to lint and build the project on "$BRANCH" branch"
122
+ npm --no-git-tag-version version ${VERSION}
123
+ if [ "$PROJECT" == "components" ];
124
+ then
125
+ npm --no-git-tag-version --prefix projects/arlas-components version ${VERSION}
126
+ elif [ "$PROJECT" == "toolkit" ];
127
+ then
128
+ npm --no-git-tag-version --prefix projects/arlas-toolkit version ${VERSION}
129
+ fi
130
+
131
+ echo "=> Build the ARLAS-$folder library"
132
+ npm install
133
+ npm run lint
134
+ npm run build-release
135
+
136
+ echo "=> Tag version $VERSION"
137
+ git add .
138
+ commit_message_release="Release prod version $VERSION"
139
+ git tag -a v"$VERSION" -m "$commit_message_release"
140
+ git push origin v"$VERSION"
141
+
142
+ echo "=> Generate CHANGELOG"
143
+ docker run -it --rm -v "$(pwd)":/usr/local/src/your-app gisaia/github-changelog-generator:latest github_changelog_generator \
144
+ -u gisaia -p ARLAS-"$folder" --token ${GITHUB_CHANGELOG_TOKEN} --no-pr-wo-labels --no-issues-wo-labels --no-unreleased \
145
+ --issue-line-labels conf,documentation,CI,ALL,DONUT,RESULTLIST,POWERBARS,HISTOGRAM,MAP \
146
+ --exclude-labels type:duplicate,type:question,type:wontfix,type:invalid \
147
+ --bug-labels type:bug --enhancement-labels type:enhancement --breaking-labels type:breaking \
148
+ --enhancement-label "**New stuff:**" --issues-label "**Miscellaneous:**" \
149
+ --exclude-tags v3.1.2 --since-tag v4.0.0
150
+
151
+ echo " -- Remove tag to add generated CHANGELOG"
152
+ git tag -d v"$VERSION"
153
+ git push origin :v"$VERSION"
154
+
155
+ echo " -- Commit release version"
156
+ git commit -a -m "$commit_message_release" --allow-empty
157
+ git tag v"$VERSION"
158
+ git push origin v"$VERSION"
159
+ git push origin "$BRANCH"
160
+
161
+ if [ "$PROJECT" == "components" ];
162
+ then
163
+ cp README-NPM.md dist/arlas-web-components/README.md
164
+ cp LICENSE.txt dist/arlas-web-components/LICENSE
165
+ cd dist/arlas-web-components/
166
+ elif [ "$PROJECT" == "toolkit" ];
167
+ then
168
+ cp README-NPM.md dist/arlas-wui-toolkit/README.md
169
+ cp LICENSE.txt dist/arlas-wui-toolkit/LICENSE
170
+ cd dist/arlas-wui-toolkit/
171
+ else
172
+ cp README-NPM.md dist/README.md
173
+ cp LICENSE.txt dist/LICENSE
174
+ cp package-release.json dist/package.json
175
+ npm --no-git-tag-version --prefix dist version ${VERSION}
176
+ cd dist
177
+ fi
178
+ echo "=> Publish to npm"
179
+ if [ "${STAGE_LOCAL}" == "rc" ] || [ "${STAGE_LOCAL}" == "beta" ];
180
+ then
181
+ echo " -- tagged as ${STAGE_LOCAL}"
182
+ npm publish --tag=${STAGE_LOCAL}
183
+ else
184
+ npm publish
185
+ fi
186
+ if [ "$PROJECT" == "components" ] || [ "$PROJECT" == "toolkit" ];
187
+ then
188
+ cd ../..
189
+ elif [ "$PROJECT" == "d3" ] || [ "$PROJECT" == "contributors" ] || [ "$PROJECT" == "core" ];
190
+ then
191
+ cd ..
192
+ fi
193
+ rm -rf dist
194
+ if [ "$BRANCH" == "develop" ] && [ "$STAGE_LOCAL" == "stable" ];
195
+ then
196
+ echo "=> Merge develop into master"
197
+ git checkout master
198
+ git pull origin master
199
+ git merge origin/develop
200
+ git push origin master
201
+
202
+ git checkout develop
203
+ git pull origin develop
204
+ git rebase origin/master
205
+ fi
206
+ IFS='.' read -ra TAB <<< "$VERSION"
207
+ major=${TAB[0]}
208
+ minor=${TAB[1]}
209
+ newminor=$(( $minor + 1 ))
210
+ newDevVersion=${major}.${newminor}.0
211
+ npm --no-git-tag-version version ""$newDevVersion"-dev0"
212
+ git add .
213
+ commit_message="update package.json to"-"$newDevVersion"
214
+ git commit -m "$commit_message" --allow-empty
215
+ git push origin "$BRANCH"
216
+ echo "Well done :)"
217
+
218
+ }
219
+
220
+ # ARGUMENTS $1 = VERSION $2 = patch/minor/major $3 = PROJECT $4 ref_branch $5 is beta $6 stage_iteration
221
+ release(){
222
+ releaseProd $1 $2 $3 $4 $5 $6
223
+ }
224
+ STAGE="stable"
225
+ for i in "$@"
226
+ do
227
+ case $i in
228
+ -core=*|--arlas-web-core=*)
229
+ ARLAS_CORE="${i#*=}"
230
+ shift # past argument=value
231
+ ;;
232
+ -cont=*|--arlas-web-contributors=*)
233
+ ARLAS_CONT="${i#*=}"
234
+ shift # past argument=value
235
+ ;;
236
+ -comp=*|--arlas-web-components=*)
237
+ ARLAS_COMP="${i#*=}"
238
+ shift # past argument=value
239
+ ;;
240
+ -d3=*|--arlas-d3=*)
241
+ ARLAS_D3="${i#*=}"
242
+ shift # past argument=value
243
+ ;;
244
+ -tool=*|--arlas-wui-toolkit=*)
245
+ ARLAS_TOOL="${i#*=}"
246
+ shift # past argument=value
247
+ ;;
248
+ -all=*|--global=*)
249
+ ARLAS_ALL="${i#*=}"
250
+ shift # past argument=value
251
+ ;;
252
+ -h|--help)
253
+ ARLAS_HELP="true"
254
+ shift # past argument=value
255
+ ;;
256
+ -ref_branch=*|--reference_branch=*)
257
+ REF_BRANCH="${i#*=}"
258
+ shift # past argument=value
259
+ ;;
260
+ -s=*|--stage=*)
261
+ STAGE="${i#*=}"
262
+ shift # past argument=value
263
+ ;;
264
+ -i=*|--stage_iteration=*)
265
+ STAGE_ITERATION="${i#*=}"
266
+ shift # past argument=value
267
+ ;;
268
+ *)
269
+ # unknown option
270
+ ;;
271
+ esac
272
+ done
273
+
274
+ if [ -z ${REF_BRANCH+x} ];
275
+ then
276
+ echo ""
277
+ echo "###########"
278
+ echo "-ref_branch is missing."
279
+ echo " Add -ref_branch=develop for a new official release"
280
+ echo " Add -ref_branch=x.x.x for a maintenance release"
281
+ echo "###########"
282
+ echo ""
283
+ usage;
284
+ fi
285
+
286
+ if [ -z ${STAGE+x} ];
287
+ then
288
+ echo ""
289
+ echo "###########"
290
+ echo "-s=*|--stage* is missing."
291
+ echo " Add --stage=beta|rc|stable to define the release stage"
292
+ echo "###########"
293
+ echo ""
294
+ usage;
295
+ fi
296
+
297
+ if [ "${STAGE}" != "beta" ] && [ "${STAGE}" != "rc" ] && [ "${STAGE}" != "stable" ];
298
+ then
299
+ echo ""
300
+ echo "###########"
301
+ echo "Stage ${STAGE} is invalid."
302
+ echo " Add --stage=beta|rc|stable to define the release stage"
303
+ echo "###########"
304
+ echo ""
305
+ usage;
306
+ fi
307
+
308
+ if [ "${STAGE}" == "beta" ] || [ "${STAGE}" == "rc" ];
309
+ then
310
+ if [ -z ${STAGE_ITERATION+x} ];
311
+ then
312
+ echo ""
313
+ echo "###########"
314
+ echo "You chose to release this version as ${STAGE}."
315
+ echo "--stage_iteration is missing."
316
+ echo " Add -i=n|--stage_iteration=n, the released version will be : [x].[y].[z]-${STAGE}.[n]"
317
+ echo "###########"
318
+ echo ""
319
+ usage;
320
+ fi
321
+ fi
322
+
323
+ if [ ! -z ${ARLAS_HELP+x} ];
324
+ then
325
+ usage;
326
+ fi
327
+
328
+ if [ ! -z ${ARLAS_CORE+x} ];
329
+ then
330
+ checkInput ${ARLAS_CORE}
331
+ IFS=';' read -ra TABCORE <<< "$ARLAS_CORE"
332
+ ARLAS_CORE_VERS="${TABCORE[0]}";
333
+ ARLAS_CORE_LEVEL="${TABCORE[1]}";
334
+ elif [ ! -z ${ARLAS_ALL+x} ];
335
+ then
336
+ checkInput ${ARLAS_ALL}
337
+ IFS=';' read -ra TABCORE <<< "$ARLAS_ALL"
338
+ ARLAS_CORE_VERS="${TABCORE[0]}";
339
+ ARLAS_CORE_LEVEL="${TABCORE[1]}";
340
+ fi
341
+
342
+ if [ ! -z ${ARLAS_CONT+x} ];
343
+ then
344
+ checkInput ${ARLAS_CONT}
345
+ IFS=';' read -ra TABCONT <<< "$ARLAS_CONT"
346
+ ARLAS_CONT_VERS="${TABCONT[0]}";
347
+ ARLAS_CONT_LEVEL="${TABCONT[1]}";
348
+ elif [ ! -z ${ARLAS_ALL+x} ];
349
+ then
350
+ checkInput ${ARLAS_ALL}
351
+ IFS=';' read -ra TABCONT <<< "$ARLAS_ALL"
352
+ ARLAS_CONT_VERS="${TABCONT[0]}";
353
+ ARLAS_CONT_LEVEL="${TABCONT[1]}";
354
+ fi
355
+
356
+ if [ ! -z ${ARLAS_COMP+x} ];
357
+ then
358
+ checkInput ${ARLAS_COMP}
359
+ IFS=';' read -ra TABCOMP <<< "$ARLAS_COMP"
360
+ ARLAS_COMP_VERS="${TABCOMP[0]}";
361
+ ARLAS_COMP_LEVEL="${TABCOMP[1]}";
362
+ elif [ ! -z ${ARLAS_ALL+x} ];
363
+ then
364
+ checkInput ${ARLAS_ALL}
365
+ IFS=';' read -ra TABCOMP <<< "$ARLAS_ALL"
366
+ ARLAS_COMP_VERS="${TABCOMP[0]}";
367
+ ARLAS_COMP_LEVEL="${TABCOMP[1]}";
368
+ fi
369
+
370
+ if [ ! -z ${ARLAS_D3+x} ];
371
+ then
372
+ checkInput ${ARLAS_D3}
373
+ IFS=';' read -ra TABD3 <<< "$ARLAS_D3"
374
+ ARLAS_D3_VERS="${TABD3[0]}";
375
+ ARLAS_D3_LEVEL="${TABD3[1]}";
376
+ elif [ ! -z ${ARLAS_ALL+x} ];
377
+ then
378
+ checkInput ${ARLAS_ALL}
379
+ IFS=';' read -ra TABD3 <<< "$ARLAS_ALL"
380
+ ARLAS_D3_VERS="${TABD3[0]}";
381
+ ARLAS_D3_LEVEL="${TABD3[1]}";
382
+ fi
383
+
384
+ if [ ! -z ${ARLAS_TOOL+x} ];
385
+ then
386
+ checkInput ${ARLAS_TOOL}
387
+ IFS=';' read -ra TABCOMP <<< "$ARLAS_TOOL"
388
+ ARLAS_TOOL_VERS="${TABCOMP[0]}";
389
+ ARLAS_TOOL_LEVEL="${TABCOMP[1]}";
390
+ elif [ ! -z ${ARLAS_ALL+x} ];
391
+ then
392
+ checkInput ${ARLAS_ALL}
393
+ IFS=';' read -ra TABCOMP <<< "$ARLAS_ALL"
394
+ ARLAS_TOOL_VERS="${TABCOMP[0]}";
395
+ ARLAS_TOOL_LEVEL="${TABCOMP[1]}";
396
+ fi
397
+
398
+ if [ ! -z ${ARLAS_CORE_VERS+x} ] && [ ! -z ${ARLAS_CORE_LEVEL+x} ];
399
+ then
400
+ echo "Release ARLAS-web-core ${ARLAS_CORE_LEVEL} version : ${ARLAS_CORE_VERS}";
401
+ release ${ARLAS_CORE_VERS} ${ARLAS_CORE_LEVEL} "core" ${REF_BRANCH} ${STAGE} ${STAGE_ITERATION}
402
+ fi
403
+
404
+ if [ ! -z ${ARLAS_CONT_VERS+x} ] && [ ! -z ${ARLAS_CONT_LEVEL+x} ];
405
+ then
406
+ echo "Release ARLAS-web-contributors ${ARLAS_CONT_VERS} version : ${ARLAS_CONT_LEVEL}";
407
+ release ${ARLAS_CONT_VERS} ${ARLAS_CONT_LEVEL} "contributors" ${REF_BRANCH} ${STAGE} ${STAGE_ITERATION}
408
+ fi
409
+
410
+ if [ ! -z ${ARLAS_COMP_VERS+x} ] && [ ! -z ${ARLAS_COMP_LEVEL+x} ];
411
+ then
412
+ echo "Release ARLAS-web-components ${ARLAS_COMP_VERS} version : ${ARLAS_COMP_LEVEL}";
413
+ release ${ARLAS_COMP_VERS} ${ARLAS_COMP_LEVEL} "components" ${REF_BRANCH} ${STAGE} ${STAGE_ITERATION}
414
+ fi
415
+
416
+ if [ ! -z ${ARLAS_D3_VERS+x} ] && [ ! -z ${ARLAS_D3_LEVEL+x} ];
417
+ then
418
+ echo "Release ARLAS-d3 ${ARLAS_D3_VERS} version : ${ARLAS_D3_LEVEL}";
419
+ release ${ARLAS_D3_VERS} ${ARLAS_D3_LEVEL} "d3" ${REF_BRANCH} ${STAGE} ${STAGE_ITERATION}
420
+ fi
421
+
422
+ if [ ! -z ${ARLAS_TOOL_VERS+x} ] && [ ! -z ${ARLAS_TOOL_LEVEL+x} ];
423
+ then
424
+ echo "Release ARLAS-wui-toolkit ${ARLAS_TOOL_VERS} version : ${ARLAS_TOOL_LEVEL}";
425
+ release ${ARLAS_TOOL_VERS} ${ARLAS_TOOL_LEVEL} "toolkit" ${REF_BRANCH} ${STAGE} ${STAGE_ITERATION}
426
+ fi
@@ -1,3 +1,4 @@
1
+ import { GeoTileAggregation } from './models/projections';
1
2
  /*
2
3
  * Licensed to Gisaïa under one or more contributor
3
4
  * license agreements. See the NOTICE.txt file distributed with
@@ -16,10 +17,12 @@
16
17
  * specific language governing permissions and limitations
17
18
  * under the License.
18
19
  */
20
+
19
21
  export { CollaborativesearchService } from './services/collaborativesearch.service';
20
22
  export { ConfigService } from './services/config.service';
21
- export { projType } from './models/projections';
23
+ export { projType, TiledSearch, GeohashAggregation, GeoTileAggregation } from './models/projections';
22
24
  export { Contributor } from './models/contributor';
23
- export { OperationEnum } from './models/collaboration';
24
- export { fromEntries } from './utils/utils';
25
- //# sourceMappingURL=index.js.map
25
+ export { Collaboration, OperationEnum, CollaborationEvent } from './models/collaboration';
26
+ export { fromEntries, CollectionCount, CollectionAggField } from './utils/utils';
27
+
28
+
@@ -16,12 +16,36 @@
16
16
  * specific language governing permissions and limitations
17
17
  * under the License.
18
18
  */
19
+
20
+ import { Filter } from 'arlas-api';
21
+
22
+ /**
23
+ * - A filter object from ARLAS API.
24
+ * - A boolean to know if the filter of the collaboration is enabled.
25
+ */
26
+ export interface Collaboration {
27
+ filters: Map<string, Filter[]>;
28
+ enabled: boolean;
29
+ }
30
+
31
+ export interface FilterOnCollection extends Filter {
32
+ collection: string;
33
+ }
34
+
35
+ /**
36
+ * - An id of a contributor.
37
+ * - An operation add/remove.
38
+ * - If the operation is for all the contributors
39
+ */
40
+ export interface CollaborationEvent {
41
+ id: string;
42
+ operation: OperationEnum;
43
+ all: boolean;
44
+ }
45
+
19
46
  /**
20
47
  * - Enum of operation.
21
48
  */
22
- export var OperationEnum;
23
- (function (OperationEnum) {
24
- OperationEnum[OperationEnum["add"] = 0] = "add";
25
- OperationEnum[OperationEnum["remove"] = 1] = "remove";
26
- })(OperationEnum || (OperationEnum = {}));
27
- //# sourceMappingURL=collaboration.js.map
49
+ export enum OperationEnum {
50
+ add, remove
51
+ }