Skip to content

Commit

Permalink
sync 04/15/2019 (#7)
Browse files Browse the repository at this point in the history
* WIP - wicked 1.0 SDK - this is still subject to heavy change

* Some minor beautifications and fixes

* Set installing wicked-sdk to other repos straight(er)

* Adaptions for handling the scopes of the portal-api

* Updated dependencies

* Some additional exports

* Add --copy option for just copying node-sdk

* Refactoring: Moved to Typescript for node-sdk - wip

* Cleanup - SDK now fully typescript typed; full coverage of all API calls

* New API property: passthroughUsers and scopeUrl

* Move OidcProfile to wicked SDK

* Added PassthroughScope request and response types

* Disallow -> disable

* Refactoring into three parts: Interfaces, implementation and exports (index).

* Reworked documentation entirely; uses typedoc.

* Small script to update the docs

* Take out the docs from the master branch again

* Push docs to gh-pages

* Minor changes, added two convenience functions

* Added and extended some Kong types.

* Missing uris property of a Kong API

* Added some Kong types and utility functions

* Added some specific Kong types; refactored a little

* Add KongApiConfig to kong-interfaces.

* Forgot to export...

* Some additional types and fixes

* Don't pack the docs into the

* Take out KongCollection.total, it's not always present

* hide credential flag propagation

* Revert

* Hide credentials flag

* The "trusted" property can be passed in at subscription create time

* Missing function "deleteUser".

* Raise timeout for wicked API calls (needed for slow Postgres ops)

* Add proxy function for the internal portal URL

* Add more info on importing users, with pre-hashed passwords

* Surfe isApiReachable() function; minor change in kong Type

* New function getInternalKongProxyUrl()

* Don't do global replace

* Add forgotten patchUser call

* Use sub=<user id> notation also for SDK direct calls

* Ahem.

* Add an undocumented feature "bundle" for bundling APIs (beta/experimental)

* Added propertx "methods" to CORS plugin definition

* Add retry logic on 5xx errors when calling the wicked API

* New global passwordStrategy; added to SDK

* Add api settings for user groups for portal-api and echo api

* Introduce optional kongProxyUrl for special types of setups

* Minor fixes; refresh_token_ttl in interface

* Regression bug - _getInternalUrl does unexpected things

* Support for async/await/Promises; types for...

... auth method type external; see also Haufe-Lexware/wicked.haufe.io#128

* Added missing types; restructured exports and imports

* Changes for Haufe-Lexware/wicked.haufe.io#138, bugfix in patchSubscription

* Strong typing, better support for TypeScript (function overlads)

* Missed an export...

* Repo renaming

* Add property for environment of the API

* TypeScript type for Haufe-Lexware/wicked.haufe.io#159

- Added support for more granular client types

* ... and export it as well

* Updated some comments and documentation. No functional changes.

* Add optional kongProxyUrl to network config type

* Ignore git_* (may be present from box build)

* Ignore build_date file

* Bump to version 1.0.0-rc.1

* Minor audit fix

* Allow any semver as user agent version

* Oops

* Release script for wicked-sdk

* Add "protected" property for auth methods

* Updated version

* Enable multiple init calls to SDK

* New property redirectUris (for multiple redirectUris)

* Added forgotten endpoint deleteSubscription(As)

* Add a Jenkinsfile for publishing from Jenkins

* Part of fix of Haufe-Lexware/wicked.haufe.io#191

* Update request

* Explicitly add typescript as dev dependency

* Make sure jq is available
  • Loading branch information
Maksim Likharev authored Apr 15, 2019
1 parent 0e40041 commit 86715fa
Show file tree
Hide file tree
Showing 19 changed files with 4,781 additions and 1,376 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
.DS_Store
.gitignore
.git
*.log
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
node_modules
.DS_Store
*.tgz
*.log
dist
docs
docs-git
git_*
build_date
10 changes: 10 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,13 @@
Dockerfile-publish
*.sh
.DS_Store
*.log
*.tgz
src
tsconfig.json
docs
docs-git
Dockerfile*
publish.sh
Jenkinsfile
.eslint*
7 changes: 4 additions & 3 deletions Dockerfile-publish
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM node:6-alpine
FROM node:10-alpine

RUN apk update && apk add jq
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

RUN npm install -g npm-cli-login
RUN npm install -g npm-cli-login typescript@$(jq .devDependencies.typescript | tr -d '"')
COPY package.json /usr/src/app
COPY . /usr/src/app

Expand All @@ -12,4 +13,4 @@ ARG NPM_PASS
ARG NPM_EMAIL

RUN echo User: $NPM_USER, Email: $NPM_EMAIL
RUN npm-cli-login -u $NPM_USER -p $NPM_PASS -e $NPM_EMAIL && npm publish && npm logout
RUN npm-cli-login -u $NPM_USER -p $NPM_PASS -e $NPM_EMAIL && npm install && tsc && npm publish && npm logout
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
properties([
pipelineTriggers([
// [$class: "SCMTrigger", scmpoll_spec: "H/10 * * * *"]
])
])

node('docker') {

stage('Checkout') {
checkout scm
}

stage('Build and Publish') {
withCredentials([
usernamePassword(credentialsId: 'npmjs_wicked', usernameVariable: 'NPM_USER', passwordVariable: 'NPM_PASS'),
string(credentialsId: 'npmjs_wicked_email', variable: 'NPM_EMAIL')
]) {
sh './publish.sh'
}
}
}
489 changes: 96 additions & 393 deletions README.md

Large diffs are not rendered by default.

Loading

0 comments on commit 86715fa

Please sign in to comment.