arlas-web-core 19.2.0 → 19.3.0-dev0
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/.editorconfig +13 -0
- package/.gitlab-ci.yml +19 -0
- package/.travis.yml +27 -0
- package/CHANGELOG.md +446 -0
- package/CONTRIBUTING.md +48 -0
- package/{LICENSE → LICENSE.txt} +0 -0
- package/NOTICE.txt +10 -0
- package/README-NPM.md +78 -0
- package/README.md +2 -2
- package/arlas-web-core-19.3.0-dev0.tgz +0 -0
- package/build.sh +9 -0
- package/jsconfig.json +13 -0
- package/mkDocs.sh +18 -0
- package/package-release.json +25 -0
- package/package.json +12 -6
- package/release.sh +429 -0
- package/{index.js → src/index.ts} +7 -4
- package/{models/collaboration.js → src/models/collaboration.ts} +30 -6
- package/src/models/contributor.ts +161 -0
- package/src/models/projections.ts +58 -0
- package/{services/collaborativesearch.service.js → src/services/collaborativesearch.service.ts} +366 -178
- package/{services/config.service.js → src/services/config.service.ts} +15 -11
- package/src/utils/utils.ts +80 -0
- package/tsconfig-build.json +21 -0
- package/tsconfig.json +15 -0
- package/tslint.json +116 -0
- package/index.d.ts +0 -6
- package/index.js.map +0 -1
- package/models/collaboration.d.ts +0 -29
- package/models/collaboration.js.map +0 -1
- package/models/contributor.d.ts +0 -56
- package/models/contributor.js +0 -116
- package/models/contributor.js.map +0 -1
- package/models/projections.d.ts +0 -35
- package/models/projections.js +0 -38
- package/models/projections.js.map +0 -1
- package/services/collaborativesearch.service.d.ts +0 -320
- package/services/collaborativesearch.service.js.map +0 -1
- package/services/config.service.d.ts +0 -31
- package/services/config.service.js.map +0 -1
- package/utils/utils.d.ts +0 -22
- package/utils/utils.js +0 -63
- package/utils/utils.js.map +0 -1
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.5 generatedoc src
|
|
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,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "***update during release***/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": "19.0.0",
|
|
13
|
+
"rxjs": "~7.4.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/node": "^12.11.1",
|
|
17
|
+
"rimraf": "^2.6.2",
|
|
18
|
+
"tslint": "~5.11.0",
|
|
19
|
+
"typescript": "~4.4.3"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/gisaia/ARLAS-web-core/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/gisaia/ARLAS-web-core/blob/master/README.md"
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arlas-web-core",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.3.0-dev0",
|
|
4
4
|
"description": "Core Service Library for ARLAS Web App",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build-release": "tsc -p tsconfig-build.json",
|
|
7
|
+
"clean": "npm cache clear && rimraf -- dist",
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"tslint": "tslint -c tslint.json 'src/**/*.ts?(x)'"
|
|
10
|
+
},
|
|
5
11
|
"repository": {
|
|
6
12
|
"type": "git",
|
|
7
13
|
"url": "https://github.com/gisaia/ARLAS-web-core.git"
|
|
8
14
|
},
|
|
9
|
-
"author": "gisaia
|
|
15
|
+
"author": "gisaia",
|
|
10
16
|
"license": "Apache-2.0",
|
|
11
17
|
"dependencies": {
|
|
12
18
|
"arlas-api": "19.0.0",
|
|
13
|
-
"rxjs": "~
|
|
19
|
+
"rxjs": "~7.4.0"
|
|
14
20
|
},
|
|
15
21
|
"devDependencies": {
|
|
16
|
-
"@types/node": "^
|
|
22
|
+
"@types/node": "^12.11.1",
|
|
17
23
|
"rimraf": "^2.6.2",
|
|
18
|
-
"tslint": "~5.
|
|
19
|
-
"typescript": "~
|
|
24
|
+
"tslint": "~5.16.0",
|
|
25
|
+
"typescript": "~4.4.3"
|
|
20
26
|
},
|
|
21
27
|
"bugs": {
|
|
22
28
|
"url": "https://github.com/gisaia/ARLAS-web-core/issues"
|
package/release.sh
ADDED
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -e
|
|
3
|
+
if [ -z "$GITHUB_CHANGELOG_TOKEN" ] ; then echo "Please set GITHUB_CHANGELOG_TOKEN environment variable"; exit -1; fi
|
|
4
|
+
|
|
5
|
+
if [[ ! -d ../ARLAS-web-contributors/ ]] ; then
|
|
6
|
+
echo 'Directory "../ARLAS-web-contributors/" is not there, aborting.'
|
|
7
|
+
exit
|
|
8
|
+
fi
|
|
9
|
+
|
|
10
|
+
if [[ ! -d ../ARLAS-web-components/ ]] ; then
|
|
11
|
+
echo 'Directory "../ARLAS-web-components/" is not there, aborting.'
|
|
12
|
+
exit
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
if [[ ! -d ../ARLAS-wui-toolkit/ ]] ; then
|
|
16
|
+
echo 'Directory "../ARLAS-wui-toolkit/" is not there, aborting.'
|
|
17
|
+
exit
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
if [[ ! -d ../ARLAS-d3/ ]] ; then
|
|
21
|
+
echo 'Directory "../ARLAS-d3/" is not there, aborting.'
|
|
22
|
+
exit
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
npmlogin=`npm whoami`
|
|
26
|
+
if [ -z "$npmlogin" ] ; then echo "your are not logged on npm"; exit -1; else echo "logged as "$npmlogin ; fi
|
|
27
|
+
|
|
28
|
+
level_version=("major" "minor" "patch")
|
|
29
|
+
|
|
30
|
+
usage(){
|
|
31
|
+
echo "Usage: ./release.sh -core='1.0.0;major' -cont='1.1.0;minor' -comp='1.1.1;patch' -prod -ref_branch=develop"
|
|
32
|
+
echo "Usage: ./release.sh -all='1.0.0-dev0;minor'"
|
|
33
|
+
echo "Usage: ./release.sh -all='1.0.0;major' -cont='1.1.0;minor'"
|
|
34
|
+
echo " -core|--arlas-web-core arlas-web-core version release,level of evolution"
|
|
35
|
+
echo " -cont|--arlas-web-contributors arlas-web-contributors version release, level of evolution"
|
|
36
|
+
echo " -comp|--arlas-web-components arlas-web-components version release, level of evolution"
|
|
37
|
+
echo " -d3|--arlas-d3 arlas-d3 version release, level of evolution"
|
|
38
|
+
echo " -tool|--arlas-wui-toolkit arlas-wui-toolkit version release, level of evolution"
|
|
39
|
+
echo " -all|--global all project have same version release, level of evolution"
|
|
40
|
+
echo " -prod|--production if present publish on public npm and tag from master git branch, if not publish on gisaia private npm and tag from develop, not present by defaut"
|
|
41
|
+
echo " if -all and -core or -cont or -comp or -d3 parametes are mixed, the specified version is released"
|
|
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
|
+
elif [ "$2" == "true" ];
|
|
76
|
+
then
|
|
77
|
+
if ! [[ ${TAB[0]} =~ ^[0-9]*\.[0-9]*\.[0-9]*$ ]]
|
|
78
|
+
then
|
|
79
|
+
echo ""${TAB[0]}" version value is not valid. Format : vX.Y.Z in --prod mode"
|
|
80
|
+
usage;
|
|
81
|
+
fi
|
|
82
|
+
else
|
|
83
|
+
if ! [[ ${TAB[0]} =~ ^[0-9]*\.[0-9]*\.[0-9]*-dev[0-9]*$ ]];
|
|
84
|
+
then
|
|
85
|
+
echo ""${TAB[0]}" version value is not valid. Format : vX.Y.Z-devN in dev mode"
|
|
86
|
+
usage;
|
|
87
|
+
fi
|
|
88
|
+
fi
|
|
89
|
+
fi
|
|
90
|
+
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
checkfilesize(){
|
|
94
|
+
file=$1
|
|
95
|
+
minimumsize=1
|
|
96
|
+
actualsize=$(wc -c <"$file")
|
|
97
|
+
if [ $actualsize -ge $minimumsize ]; then
|
|
98
|
+
echo "$file" size is over $minimumsize bytes
|
|
99
|
+
else
|
|
100
|
+
echo "Dist build contains empty js or ts file, "$file" try again"
|
|
101
|
+
exit 1
|
|
102
|
+
fi
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
releaseProd(){
|
|
108
|
+
local folder="web-core"
|
|
109
|
+
if [ "$3" == "components" ];
|
|
110
|
+
then
|
|
111
|
+
cd ../ARLAS-web-components/
|
|
112
|
+
local folder="web-components"
|
|
113
|
+
elif [ "$3" == "d3" ];
|
|
114
|
+
then
|
|
115
|
+
cd ../ARLAS-d3/
|
|
116
|
+
local folder="d3"
|
|
117
|
+
elif [ "$3" == "contributors" ];
|
|
118
|
+
then
|
|
119
|
+
cd ../ARLAS-web-contributors/
|
|
120
|
+
local folder="web-contributors"
|
|
121
|
+
elif [ "$3" == "toolkit" ];
|
|
122
|
+
then
|
|
123
|
+
cd ../ARLAS-wui-toolkit/
|
|
124
|
+
local folder="wui-toolkit"
|
|
125
|
+
fi
|
|
126
|
+
|
|
127
|
+
echo "=> Get "$4" branch of ARLAS-$folder project"
|
|
128
|
+
git checkout "$4"
|
|
129
|
+
git pull origin "$4"
|
|
130
|
+
echo "=> Test to lint and build the project on "$4" branch"
|
|
131
|
+
npm install
|
|
132
|
+
npm run tslint
|
|
133
|
+
npm run build-release
|
|
134
|
+
rm -rf dist
|
|
135
|
+
|
|
136
|
+
jq '.name = "arlas-'$folder'"' package.json > tmp.$$.json && mv tmp.$$.json package.json
|
|
137
|
+
jq '.version = "'"$1"'"' package.json > tmp.$$.json && mv tmp.$$.json package.json
|
|
138
|
+
git add .
|
|
139
|
+
commit_message_release="Release prod version $1"
|
|
140
|
+
|
|
141
|
+
echo "=> Tag version $1"
|
|
142
|
+
npm install
|
|
143
|
+
npm run tslint
|
|
144
|
+
npm run build-release
|
|
145
|
+
#check dist files size
|
|
146
|
+
for file in $(find dist -name '*.js' -or -name '*.ts');
|
|
147
|
+
do
|
|
148
|
+
checkfilesize $file
|
|
149
|
+
done
|
|
150
|
+
cp package-release.json dist/package.json
|
|
151
|
+
cp README-NPM.md dist/README.md
|
|
152
|
+
cp LICENSE.txt dist/LICENSE
|
|
153
|
+
git tag -a v"$1" -m "$commit_message_release"
|
|
154
|
+
git push origin v"$1"
|
|
155
|
+
|
|
156
|
+
echo "=> Generate CHANGELOG"
|
|
157
|
+
docker run -it --rm -v "$(pwd)":/usr/local/src/your-app gisaia/github-changelog-generator:latest github_changelog_generator \
|
|
158
|
+
-u gisaia -p ARLAS-"$folder" --token ${GITHUB_CHANGELOG_TOKEN} --no-pr-wo-labels --no-issues-wo-labels --no-unreleased \
|
|
159
|
+
--issue-line-labels conf,documentation,CI,ALL,DONUT,RESULTLIST,POWERBARS,HISTOGRAM,MAP \
|
|
160
|
+
--exclude-labels type:duplicate,type:question,type:wontfix,type:invalid \
|
|
161
|
+
--bug-labels type:bug --enhancement-labels type:enhancement --breaking-labels type:breaking \
|
|
162
|
+
--enhancement-label "**New stuff:**" --issues-label "**Miscellaneous:**" \
|
|
163
|
+
--exclude-tags v3.1.2 --since-tag v4.0.0
|
|
164
|
+
|
|
165
|
+
echo " -- Remove tag to add generated CHANGELOG"
|
|
166
|
+
git tag -d v"$1"
|
|
167
|
+
git push origin :v"$1"
|
|
168
|
+
|
|
169
|
+
echo " -- Commit release version"
|
|
170
|
+
git commit -a -m "$commit_message_release" --allow-empty
|
|
171
|
+
git tag v"$1"
|
|
172
|
+
git push origin v"$1"
|
|
173
|
+
git push origin "$4"
|
|
174
|
+
|
|
175
|
+
cd dist
|
|
176
|
+
jq '.name = "arlas-'$folder'"' package.json > tmp.$$.json && mv tmp.$$.json package.json
|
|
177
|
+
jq '.version = "'"$1"'"' package.json > tmp.$$.json && mv tmp.$$.json package.json
|
|
178
|
+
echo "=> Publish to npm"
|
|
179
|
+
npm publish
|
|
180
|
+
cd ..
|
|
181
|
+
rm -rf dist
|
|
182
|
+
if [ "$4" == "develop" ];
|
|
183
|
+
then
|
|
184
|
+
echo "=> Merge develop into master"
|
|
185
|
+
git checkout master
|
|
186
|
+
git pull origin master
|
|
187
|
+
git merge origin/develop
|
|
188
|
+
git push origin master
|
|
189
|
+
|
|
190
|
+
git checkout develop
|
|
191
|
+
git pull origin develop
|
|
192
|
+
git rebase origin/master
|
|
193
|
+
fi
|
|
194
|
+
IFS='.' read -ra TAB <<< "$1"
|
|
195
|
+
major=${TAB[0]}
|
|
196
|
+
minor=${TAB[1]}
|
|
197
|
+
newminor=$(( $minor + 1 ))
|
|
198
|
+
newDevVersion=${major}.${newminor}.0
|
|
199
|
+
jq '.version = "'"$newDevVersion"'-dev0"' package.json > tmp.$$.json && mv tmp.$$.json package.json
|
|
200
|
+
git add .
|
|
201
|
+
commit_message="update package.json to"-"$newDevVersion"
|
|
202
|
+
git commit -m "$commit_message" --allow-empty
|
|
203
|
+
git push origin "$4"
|
|
204
|
+
echo "Well done :)"
|
|
205
|
+
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
releaseDev(){
|
|
209
|
+
local folder="web-core"
|
|
210
|
+
if [ "$3" == "components" ];
|
|
211
|
+
then
|
|
212
|
+
cd ../ARLAS-web-components/
|
|
213
|
+
local folder="web-components"
|
|
214
|
+
elif [ "$3" == "d3" ];
|
|
215
|
+
then
|
|
216
|
+
cd ../ARLAS-d3/
|
|
217
|
+
local folder="d3"
|
|
218
|
+
elif [ "$3" == "contributors" ];
|
|
219
|
+
then
|
|
220
|
+
cd ../ARLAS-web-contributors/
|
|
221
|
+
local folder="web-contributors"
|
|
222
|
+
elif [ "$3" == "toolkit" ];
|
|
223
|
+
then
|
|
224
|
+
cd ../ARLAS-wui-toolkit/
|
|
225
|
+
local folder="wui-toolkit"
|
|
226
|
+
fi
|
|
227
|
+
echo "=> Get develop branch of ARLAS-$folder project"
|
|
228
|
+
git checkout develop
|
|
229
|
+
git pull origin develop
|
|
230
|
+
echo "=> Test to lint and build the project on develop branch"
|
|
231
|
+
npm install
|
|
232
|
+
if [[ -d ./node_modules/@gisaia-team/arlas-web-core ]] ; then
|
|
233
|
+
mv node_modules/@gisaia-team/arlas-web-core node_modules 2>/dev/null
|
|
234
|
+
fi
|
|
235
|
+
npm run tslint
|
|
236
|
+
npm run build-release
|
|
237
|
+
#check dist files size
|
|
238
|
+
for file in $(find dist -name '*.js' -or -name '*.ts');
|
|
239
|
+
do
|
|
240
|
+
checkfilesize $file
|
|
241
|
+
done
|
|
242
|
+
cp package-release.json dist/package.json
|
|
243
|
+
cp README-NPM.md dist/README.md
|
|
244
|
+
cd dist
|
|
245
|
+
jq '.name = "@gisaia-team/arlas-'$folder'"' package.json > tmp.$$.json && mv tmp.$$.json package.json
|
|
246
|
+
jq '.version = "'"$1"'"' package.json > tmp.$$.json && mv tmp.$$.json package.json
|
|
247
|
+
npm publish
|
|
248
|
+
cd ..
|
|
249
|
+
jq '.version = "'"$1"'"' package.json > tmp.$$.json && mv tmp.$$.json package.json
|
|
250
|
+
rm -rf dist
|
|
251
|
+
git add .
|
|
252
|
+
commit_message_develop="dev automatic release update package.json to"-"$1"
|
|
253
|
+
git commit -m"$commit_message_develop" --allow-empty
|
|
254
|
+
git push origin develop
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
release(){
|
|
258
|
+
if [ "$4" == "true" ];
|
|
259
|
+
then
|
|
260
|
+
releaseProd $1 $2 $3 $5
|
|
261
|
+
else
|
|
262
|
+
releaseDev $1 $2 $3
|
|
263
|
+
fi
|
|
264
|
+
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
ARLAS_PROD="false"
|
|
268
|
+
|
|
269
|
+
for i in "$@"
|
|
270
|
+
do
|
|
271
|
+
case $i in
|
|
272
|
+
-core=*|--arlas-web-core=*)
|
|
273
|
+
ARLAS_CORE="${i#*=}"
|
|
274
|
+
shift # past argument=value
|
|
275
|
+
;;
|
|
276
|
+
-cont=*|--arlas-web-contributors=*)
|
|
277
|
+
ARLAS_CONT="${i#*=}"
|
|
278
|
+
shift # past argument=value
|
|
279
|
+
;;
|
|
280
|
+
-comp=*|--arlas-web-components=*)
|
|
281
|
+
ARLAS_COMP="${i#*=}"
|
|
282
|
+
shift # past argument=value
|
|
283
|
+
;;
|
|
284
|
+
-d3=*|--arlas-d3=*)
|
|
285
|
+
ARLAS_D3="${i#*=}"
|
|
286
|
+
shift # past argument=value
|
|
287
|
+
;;
|
|
288
|
+
-tool=*|--arlas-wui-toolkit=*)
|
|
289
|
+
ARLAS_TOOL="${i#*=}"
|
|
290
|
+
shift # past argument=value
|
|
291
|
+
;;
|
|
292
|
+
-all=*|--global=*)
|
|
293
|
+
ARLAS_ALL="${i#*=}"
|
|
294
|
+
shift # past argument=value
|
|
295
|
+
;;
|
|
296
|
+
-h|--help)
|
|
297
|
+
ARLAS_HELP="true"
|
|
298
|
+
shift # past argument=value
|
|
299
|
+
;;
|
|
300
|
+
-prod|--production)
|
|
301
|
+
ARLAS_PROD="true"
|
|
302
|
+
shift # past argument=value
|
|
303
|
+
;;
|
|
304
|
+
-ref_branch=*|--reference_branch=*)
|
|
305
|
+
REF_BRANCH="${i#*=}"
|
|
306
|
+
shift # past argument=value
|
|
307
|
+
;;
|
|
308
|
+
*)
|
|
309
|
+
# unknown option
|
|
310
|
+
;;
|
|
311
|
+
esac
|
|
312
|
+
done
|
|
313
|
+
|
|
314
|
+
if [ -z ${REF_BRANCH+x} ];
|
|
315
|
+
then
|
|
316
|
+
echo ""
|
|
317
|
+
echo "###########"
|
|
318
|
+
echo "-ref_branch is missing."
|
|
319
|
+
echo " Add -ref_branch=develop for a new official release"
|
|
320
|
+
echo " Add -ref_branch=x.x.x for a maintenance release"
|
|
321
|
+
echo "###########"
|
|
322
|
+
echo ""
|
|
323
|
+
usage;
|
|
324
|
+
fi
|
|
325
|
+
|
|
326
|
+
if [ ! -z ${ARLAS_HELP+x} ];
|
|
327
|
+
then
|
|
328
|
+
usage;
|
|
329
|
+
fi
|
|
330
|
+
|
|
331
|
+
if [ ! -z ${ARLAS_CORE+x} ];
|
|
332
|
+
then
|
|
333
|
+
checkInput ${ARLAS_CORE} ${ARLAS_PROD}
|
|
334
|
+
IFS=';' read -ra TABCORE <<< "$ARLAS_CORE"
|
|
335
|
+
ARLAS_CORE_VERS="${TABCORE[0]}";
|
|
336
|
+
ARLAS_CORE_LEVEL="${TABCORE[1]}";
|
|
337
|
+
elif [ ! -z ${ARLAS_ALL+x} ];
|
|
338
|
+
then
|
|
339
|
+
checkInput ${ARLAS_ALL} ${ARLAS_PROD}
|
|
340
|
+
IFS=';' read -ra TABCORE <<< "$ARLAS_ALL"
|
|
341
|
+
ARLAS_CORE_VERS="${TABCORE[0]}";
|
|
342
|
+
ARLAS_CORE_LEVEL="${TABCORE[1]}";
|
|
343
|
+
fi
|
|
344
|
+
|
|
345
|
+
if [ ! -z ${ARLAS_CONT+x} ];
|
|
346
|
+
then
|
|
347
|
+
checkInput ${ARLAS_CONT} ${ARLAS_PROD}
|
|
348
|
+
IFS=';' read -ra TABCONT <<< "$ARLAS_CONT"
|
|
349
|
+
ARLAS_CONT_VERS="${TABCONT[0]}";
|
|
350
|
+
ARLAS_CONT_LEVEL="${TABCONT[1]}";
|
|
351
|
+
elif [ ! -z ${ARLAS_ALL+x} ];
|
|
352
|
+
then
|
|
353
|
+
checkInput ${ARLAS_ALL} ${ARLAS_PROD}
|
|
354
|
+
IFS=';' read -ra TABCONT <<< "$ARLAS_ALL"
|
|
355
|
+
ARLAS_CONT_VERS="${TABCONT[0]}";
|
|
356
|
+
ARLAS_CONT_LEVEL="${TABCONT[1]}";
|
|
357
|
+
fi
|
|
358
|
+
|
|
359
|
+
if [ ! -z ${ARLAS_COMP+x} ];
|
|
360
|
+
then
|
|
361
|
+
checkInput ${ARLAS_COMP} ${ARLAS_PROD}
|
|
362
|
+
IFS=';' read -ra TABCOMP <<< "$ARLAS_COMP"
|
|
363
|
+
ARLAS_COMP_VERS="${TABCOMP[0]}";
|
|
364
|
+
ARLAS_COMP_LEVEL="${TABCOMP[1]}";
|
|
365
|
+
elif [ ! -z ${ARLAS_ALL+x} ];
|
|
366
|
+
then
|
|
367
|
+
checkInput ${ARLAS_ALL} ${ARLAS_PROD}
|
|
368
|
+
IFS=';' read -ra TABCOMP <<< "$ARLAS_ALL"
|
|
369
|
+
ARLAS_COMP_VERS="${TABCOMP[0]}";
|
|
370
|
+
ARLAS_COMP_LEVEL="${TABCOMP[1]}";
|
|
371
|
+
fi
|
|
372
|
+
|
|
373
|
+
if [ ! -z ${ARLAS_D3+x} ];
|
|
374
|
+
then
|
|
375
|
+
checkInput ${ARLAS_D3} ${ARLAS_PROD}
|
|
376
|
+
IFS=';' read -ra TABD3 <<< "$ARLAS_D3"
|
|
377
|
+
ARLAS_D3_VERS="${TABD3[0]}";
|
|
378
|
+
ARLAS_D3_LEVEL="${TABD3[1]}";
|
|
379
|
+
elif [ ! -z ${ARLAS_ALL+x} ];
|
|
380
|
+
then
|
|
381
|
+
checkInput ${ARLAS_ALL} ${ARLAS_PROD}
|
|
382
|
+
IFS=';' read -ra TABD3 <<< "$ARLAS_ALL"
|
|
383
|
+
ARLAS_D3_VERS="${TABD3[0]}";
|
|
384
|
+
ARLAS_D3_LEVEL="${TABD3[1]}";
|
|
385
|
+
fi
|
|
386
|
+
|
|
387
|
+
if [ ! -z ${ARLAS_TOOL+x} ];
|
|
388
|
+
then
|
|
389
|
+
checkInput ${ARLAS_TOOL} ${ARLAS_PROD}
|
|
390
|
+
IFS=';' read -ra TABCOMP <<< "$ARLAS_TOOL"
|
|
391
|
+
ARLAS_TOOL_VERS="${TABCOMP[0]}";
|
|
392
|
+
ARLAS_TOOL_LEVEL="${TABCOMP[1]}";
|
|
393
|
+
elif [ ! -z ${ARLAS_ALL+x} ];
|
|
394
|
+
then
|
|
395
|
+
checkInput ${ARLAS_ALL} ${ARLAS_PROD}
|
|
396
|
+
IFS=';' read -ra TABCOMP <<< "$ARLAS_ALL"
|
|
397
|
+
ARLAS_TOOL_VERS="${TABCOMP[0]}";
|
|
398
|
+
ARLAS_TOOL_LEVEL="${TABCOMP[1]}";
|
|
399
|
+
fi
|
|
400
|
+
|
|
401
|
+
if [ ! -z ${ARLAS_CORE_VERS+x} ] && [ ! -z ${ARLAS_CORE_LEVEL+x} ];
|
|
402
|
+
then
|
|
403
|
+
echo "Release ARLAS-web-core ${ARLAS_CORE_LEVEL} version : ${ARLAS_CORE_VERS}";
|
|
404
|
+
release ${ARLAS_CORE_VERS} ${ARLAS_CORE_LEVEL} "core" ${ARLAS_PROD} ${REF_BRANCH}
|
|
405
|
+
fi
|
|
406
|
+
|
|
407
|
+
if [ ! -z ${ARLAS_CONT_VERS+x} ] && [ ! -z ${ARLAS_CONT_LEVEL+x} ];
|
|
408
|
+
then
|
|
409
|
+
echo "Release ARLAS-web-contributors ${ARLAS_CONT_VERS} version : ${ARLAS_CONT_LEVEL}";
|
|
410
|
+
release ${ARLAS_CONT_VERS} ${ARLAS_CONT_LEVEL} "contributors" ${ARLAS_PROD} ${REF_BRANCH}
|
|
411
|
+
fi
|
|
412
|
+
|
|
413
|
+
if [ ! -z ${ARLAS_COMP_VERS+x} ] && [ ! -z ${ARLAS_COMP_LEVEL+x} ];
|
|
414
|
+
then
|
|
415
|
+
echo "Release ARLAS-web-components ${ARLAS_COMP_VERS} version : ${ARLAS_COMP_LEVEL}";
|
|
416
|
+
release ${ARLAS_COMP_VERS} ${ARLAS_COMP_LEVEL} "components" ${ARLAS_PROD} ${REF_BRANCH}
|
|
417
|
+
fi
|
|
418
|
+
|
|
419
|
+
if [ ! -z ${ARLAS_D3_VERS+x} ] && [ ! -z ${ARLAS_D3_LEVEL+x} ];
|
|
420
|
+
then
|
|
421
|
+
echo "Release ARLAS-d3 ${ARLAS_D3_VERS} version : ${ARLAS_D3_LEVEL}";
|
|
422
|
+
release ${ARLAS_D3_VERS} ${ARLAS_D3_LEVEL} "d3" ${ARLAS_PROD} ${REF_BRANCH}
|
|
423
|
+
fi
|
|
424
|
+
|
|
425
|
+
if [ ! -z ${ARLAS_TOOL_VERS+x} ] && [ ! -z ${ARLAS_TOOL_LEVEL+x} ];
|
|
426
|
+
then
|
|
427
|
+
echo "Release ARLAS-wui-toolkit ${ARLAS_TOOL_VERS} version : ${ARLAS_TOOL_LEVEL}";
|
|
428
|
+
release ${ARLAS_TOOL_VERS} ${ARLAS_TOOL_LEVEL} "toolkit" ${ARLAS_PROD} ${REF_BRANCH}
|
|
429
|
+
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
|
-
|
|
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
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
OperationEnum[OperationEnum["remove"] = 1] = "remove";
|
|
26
|
-
})(OperationEnum || (OperationEnum = {}));
|
|
27
|
-
//# sourceMappingURL=collaboration.js.map
|
|
49
|
+
export enum OperationEnum {
|
|
50
|
+
add, remove
|
|
51
|
+
}
|