From 98546a97a32419b72f74b2affa85d9e284176d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Thu, 29 Jun 2023 17:29:49 +0200 Subject: [PATCH] refactor: migrate `@krlwlfrt/async-pool` to `@openstapps/collection-utils` --- .changeset/cool-jars-kiss.md | 8 + .changeset/five-ears-wash.md | 12 +- .changeset/fuzzy-walls-greet.md | 13 + .changeset/honest-sheep-train.md | 1 + .changeset/late-zoos-breathe.md | 5 + .changeset/new-pianos-joke.md | 5 + .changeset/rare-squids-bake.md | 24 ++ .changeset/tame-mayflies-hug.md | 5 + .changeset/thin-camels-give.md | 34 ++- .changeset/tough-hairs-provide.md | 5 + .gitlab-ci.yml | 4 +- .syncpackrc.cjs | 1 + README.md | 13 + backend/backend/package.json | 4 +- backend/database/.gitignore | 11 - backend/database/LICENSE | 200 ------------- backend/database/package.json | 5 + backend/proxy/package.json | 2 +- configuration/backend-config/package.json | 2 +- configuration/eslint-config/package.json | 2 +- configuration/prettier-config/package.json | 2 +- configuration/projectmanagement/package.json | 3 +- configuration/projectmanagement/src/cli.ts | 4 +- configuration/projectmanagement/src/common.ts | 5 +- .../projectmanagement/src/configuration.ts | 5 + .../projectmanagement/src/tasks/remind.ts | 19 +- .../src/tasks/{unlabel.ts => remove-label.ts} | 21 +- .../projectmanagement/src/tasks/report.ts | 61 ++-- .../projectmanagement/src/tasks/tidy.ts | 146 ++++++---- configuration/tsconfig/package.json | 2 +- examples/minimal-connector/package.json | 2 +- examples/minimal-deployment/package.json | 5 + examples/minimal-plugin/package.json | 2 +- frontend/app-release-template/package.json | 5 + frontend/app/package.json | 2 +- frontend/app/src/app/app.component.html | 5 - package.json | 8 +- packages/api-cli/LICENSE | 200 ------------- packages/api-cli/package.json | 2 +- packages/api-plugin/LICENSE | 200 ------------- packages/api-plugin/package.json | 2 +- packages/api/LICENSE | 200 ------------- packages/api/package.json | 2 +- packages/collection-utils/package.json | 2 +- packages/collection-utils/src/index.ts | 1 + .../collection-utils/src/map-async-limit.ts | 42 +++ packages/core-tools/package.json | 2 +- packages/core/package.json | 2 +- packages/easy-ast/package.json | 2 +- packages/easy-ast/test/index.spec.ts | 2 +- packages/es-mapping-generator/.eslintignore | 0 packages/es-mapping-generator/.eslintrc | 9 - packages/es-mapping-generator/.gitignore | 101 ------- packages/es-mapping-generator/package.json | 17 +- packages/gitlab-api/package.json | 2 +- packages/logger/.gitignore | 91 ------ packages/logger/package.json | 2 +- pnpm-lock.yaml | 262 +++++++++++++++++- 58 files changed, 621 insertions(+), 1175 deletions(-) create mode 100644 .changeset/cool-jars-kiss.md create mode 100644 .changeset/fuzzy-walls-greet.md create mode 100644 .changeset/late-zoos-breathe.md create mode 100644 .changeset/new-pianos-joke.md create mode 100644 .changeset/rare-squids-bake.md create mode 100644 .changeset/tame-mayflies-hug.md create mode 100644 .changeset/tough-hairs-provide.md delete mode 100644 backend/database/.gitignore delete mode 100644 backend/database/LICENSE create mode 100644 backend/database/package.json rename configuration/projectmanagement/src/tasks/{unlabel.ts => remove-label.ts} (81%) create mode 100644 examples/minimal-deployment/package.json create mode 100644 frontend/app-release-template/package.json delete mode 100644 packages/api-cli/LICENSE delete mode 100644 packages/api-plugin/LICENSE delete mode 100644 packages/api/LICENSE create mode 100644 packages/collection-utils/src/map-async-limit.ts delete mode 100644 packages/es-mapping-generator/.eslintignore delete mode 100644 packages/es-mapping-generator/.eslintrc delete mode 100644 packages/es-mapping-generator/.gitignore delete mode 100644 packages/logger/.gitignore diff --git a/.changeset/cool-jars-kiss.md b/.changeset/cool-jars-kiss.md new file mode 100644 index 00000000..8feb6e41 --- /dev/null +++ b/.changeset/cool-jars-kiss.md @@ -0,0 +1,8 @@ +--- +'@openstapps/core-tools': major +--- + +Removed pack tool + +Use a bundler like `tsup` in conjunction with an +`index.ts` that aggregates all exports instead. diff --git a/.changeset/five-ears-wash.md b/.changeset/five-ears-wash.md index ce8d4999..b5099004 100644 --- a/.changeset/five-ears-wash.md +++ b/.changeset/five-ears-wash.md @@ -21,13 +21,16 @@ '@openstapps/api': major --- -Move project to a turbo monorepo +Move project to a turbo monorepo & pnpm Internal dependencies are now defined using `"@openstapps/package": "workspace:*"` - Removed extraneous files from packages + - `.npmrc` - `.npmignore` + - `.mailmap` - `.gitignore` + - `CONTRIBUTING.md` - `LICENSE` (Project license file is added upon publishing, see [pnpm.io](https://pnpm.io/cli/publish)) - `package-lock.json` - `.editorconfig` @@ -40,4 +43,9 @@ Internal dependencies are now defined using `"@openstapps/package": "workspace:* - Removed ESLint and Prettier peer dependency hell by injecting them through the `.pnpmfile.cjs` - Added syncpack for keeping dependency versions in sync (and consistent key ordering in `package.json`) - Replaced conventional changelog with changesets -- +- Apps with binaries now use a top level `app.js` + +```js +#!/usr/bin/env node +import './lib/app.js'; +``` diff --git a/.changeset/fuzzy-walls-greet.md b/.changeset/fuzzy-walls-greet.md new file mode 100644 index 00000000..83e39d66 --- /dev/null +++ b/.changeset/fuzzy-walls-greet.md @@ -0,0 +1,13 @@ +--- +'@openstapps/core': major +--- + +Migrate away from [ts-optchain](https://www.npmjs.com/package/ts-optchain) + +The package has been deprecated with the last releast being 4 years ago. + +TypeScript as well as ECMAScript have native support for optional +chaining with the `?.` operator now. + +You will need to update any packages that rely on the translator +module. diff --git a/.changeset/honest-sheep-train.md b/.changeset/honest-sheep-train.md index d82dcc3a..8dea1715 100644 --- a/.changeset/honest-sheep-train.md +++ b/.changeset/honest-sheep-train.md @@ -27,3 +27,4 @@ Migrate package to Node 18 higher. - Packages have been migrated from promisified `readFile` or `readFileSync` towards `fs/promises` +- Packages use native `flatMap` now diff --git a/.changeset/late-zoos-breathe.md b/.changeset/late-zoos-breathe.md new file mode 100644 index 00000000..91974902 --- /dev/null +++ b/.changeset/late-zoos-breathe.md @@ -0,0 +1,5 @@ +--- +'@openstapps/gitlab-api': minor +--- + +Migrate from request-promise-native to got diff --git a/.changeset/new-pianos-joke.md b/.changeset/new-pianos-joke.md new file mode 100644 index 00000000..f4452c77 --- /dev/null +++ b/.changeset/new-pianos-joke.md @@ -0,0 +1,5 @@ +--- +'@openstapps/es-mapping-generator': patch +--- + +Remove @openstapps/logger dependency diff --git a/.changeset/rare-squids-bake.md b/.changeset/rare-squids-bake.md new file mode 100644 index 00000000..e7a9e2cd --- /dev/null +++ b/.changeset/rare-squids-bake.md @@ -0,0 +1,24 @@ +--- +'@openstapps/projectmanagement': patch +'@openstapps/prettier-config': patch +'@openstapps/es-mapping-generator': patch +'@openstapps/backend-config': patch +'@openstapps/eslint-config': patch +'@openstapps/minimal-connector': patch +'@openstapps/collection-utils': patch +'@openstapps/minimal-plugin': patch +'@openstapps/tsconfig': patch +'@openstapps/api-plugin': patch +'@openstapps/core-tools': patch +'@openstapps/gitlab-api': patch +'@openstapps/easy-ast': patch +'@openstapps/api-cli': patch +'@openstapps/backend': patch +'@openstapps/logger': patch +'@openstapps/proxy': patch +'@openstapps/core': patch +'@openstapps/app': patch +'@openstapps/api': patch +--- + +Migrate away from @openstapps/configuration diff --git a/.changeset/tame-mayflies-hug.md b/.changeset/tame-mayflies-hug.md new file mode 100644 index 00000000..108c5e88 --- /dev/null +++ b/.changeset/tame-mayflies-hug.md @@ -0,0 +1,5 @@ +--- +'@openstapps/logger': patch +--- + +Fix an issue with chalk terminal colors in tests diff --git a/.changeset/thin-camels-give.md b/.changeset/thin-camels-give.md index 04086af2..36a8d655 100644 --- a/.changeset/thin-camels-give.md +++ b/.changeset/thin-camels-give.md @@ -1,19 +1,23 @@ --- -'@openstapps/projectmanagement': minor -'@openstapps/es-mapping-generator': minor -'@openstapps/minimal-connector': minor -'@openstapps/collection-utils': minor -'@openstapps/minimal-plugin': minor -'@openstapps/api-plugin': minor -'@openstapps/core-tools': minor -'@openstapps/gitlab-api': minor -'@openstapps/easy-ast': minor -'@openstapps/api-cli': minor -'@openstapps/backend': minor -'@openstapps/logger': minor -'@openstapps/proxy': minor -'@openstapps/core': minor -'@openstapps/api': minor +'@openstapps/projectmanagement': major +'@openstapps/es-mapping-generator': major +'@openstapps/minimal-connector': major +'@openstapps/collection-utils': major +'@openstapps/minimal-plugin': major +'@openstapps/api-plugin': major +'@openstapps/core-tools': major +'@openstapps/gitlab-api': major +'@openstapps/easy-ast': major +'@openstapps/api-cli': major +'@openstapps/backend': major +'@openstapps/logger': major +'@openstapps/proxy': major +'@openstapps/core': major +'@openstapps/api': major --- Migrate build system to `tsup` + +All packages now use an `index.ts` file to expose contents. + +You will need to migrate paths from `import foo from '@scope/package/lib/foo` to `import foo from '@scope/package'` diff --git a/.changeset/tough-hairs-provide.md b/.changeset/tough-hairs-provide.md new file mode 100644 index 00000000..5c6d75c6 --- /dev/null +++ b/.changeset/tough-hairs-provide.md @@ -0,0 +1,5 @@ +--- +'@openstapps/core-tools': patch +--- + +Migrate from away from lodash diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f92c5916..0a6d7e16 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,7 +56,9 @@ build: # - pnpm i --prefer-offline # - pnpm build:full:skip || pnpm i -r --prefer-offline - pnpm install - - pnpm changeset:status + # TODO: something doesn't work with git here... + # "🦋 error Error: Failed to find where HEAD diverged from master. Does master exist?" + # - pnpm changeset:status - pnpm build:full $TURBO_CACHE_BYPASS # pretty sure this is deprecated? # TODO: - .gitlab/ci/enableGitlabReviewToolbar.sh www/index.html "$CI_PROJECT_ID" "$CI_OPEN_MERGE_REQUESTS" diff --git a/.syncpackrc.cjs b/.syncpackrc.cjs index 86c46803..6b849ac9 100644 --- a/.syncpackrc.cjs +++ b/.syncpackrc.cjs @@ -20,6 +20,7 @@ const config = { 'types', 'bin', 'files', + 'engines', 'scripts', 'dependencies', 'devDependencies', diff --git a/README.md b/README.md index 59fd4c28..0b050051 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,19 @@ Refer to the [contribution guide](./CONTRIBUTING.md) ## Publishing +After having added all changes using `pnpm changeset` + +```shell +pnpm changeset version # bump versions +pnpm install # update lockfile and rebuild packages +pnpm build # make sure all packages are built +pnpm publish -r # publish all packages not yet in the registry +git add . +git commit -m "v[VERSION]" +git tag -a "v[VERSION]" +git push --follow-tags +``` + ## Remote caching Turbo supports remote caching, which massively speeds up build processes. diff --git a/backend/backend/package.json b/backend/backend/package.json index 999ce28a..a1143e4c 100644 --- a/backend/backend/package.json +++ b/backend/backend/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/backend", "description": "A reference implementation for a StApps backend", - "version": "3.0.0", + "version": "2.0.0", "type": "module", "license": "AGPL-3.0-only", "author": "André Bierlein ", @@ -30,6 +30,7 @@ "build:docker": "docker build -t openstapps:backend ../../.deploy/backend", "deploy": "pnpm --prod --filter=@openstapps/backend deploy ../../.deploy/backend", "dev": "tsup --watch --onSuccess \"pnpm run start\"", + "docs": "openapi build-docs ./node_modules/@openstapps/core/lib/openapi.json -o docs/openapi/index.html", "format": "prettier . -c --ignore-path ../../.gitignore", "format:fix": "prettier --write . --ignore-path ../../.gitignore", "lint": "tsc --noEmit && eslint --ext .ts src/", @@ -94,6 +95,7 @@ "mocha": "10.2.0", "mocha-junit-reporter": "2.2.0", "mocked-env": "1.3.5", + "openapi": "1.0.1", "redoc-cli": "0.13.20", "sinon": "15.0.4", "sinon-express-mock": "2.2.1", diff --git a/backend/database/.gitignore b/backend/database/.gitignore deleted file mode 100644 index 162a8089..00000000 --- a/backend/database/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -.idea -.vscode -<<<<<<< HEAD -======= -<<<<<<<< HEAD:.gitignore -.turbo -node_modules -======== -.DS_Store ->>>>>>>> database/main:backend/database/.gitignore ->>>>>>> database/main diff --git a/backend/database/LICENSE b/backend/database/LICENSE deleted file mode 100644 index 9df63ccc..00000000 --- a/backend/database/LICENSE +++ /dev/null @@ -1,200 +0,0 @@ -GNU GENERAL PUBLIC LICENSE -Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - -Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - -Preamble - -The GNU General Public License is a free, copyleft license for software and other kinds of works. - -The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. - -When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. - -To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - -For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. - -Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - -For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - -Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - -Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - -The precise terms and conditions for copying, distribution and modification follow. - -TERMS AND CONDITIONS - -0. Definitions. -"This License" refers to version 3 of the GNU General Public License. - -"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - -"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. - -To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. - -A "covered work" means either the unmodified Program or a work based on the Program. - -To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - -To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - -An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - -1. Source Code. -The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. -A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - -The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - -The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - -The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - -The Corresponding Source for a work in source code form is that same work. - -2. Basic Permissions. -All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. -You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - -Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. -No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. -When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - -4. Conveying Verbatim Copies. -You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. -You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. -You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: -a) The work must carry prominent notices stating that you modified it, and giving a relevant date. -b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". -c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. -d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. -A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. - -6. Conveying Non-Source Forms. -You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: -a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. -b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. -c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. -d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. -e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. -A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - -A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - -"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - -If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - -The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - -Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - -7. Additional Terms. -"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. -When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - -Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - -a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or -b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or -c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or -d) Limiting the use for publicity purposes of names of licensors or authors of the material; or -e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or -f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. -All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - -If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - -Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - -8. Termination. -You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). -However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - -Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - -Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. -You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. -10. Automatic Licensing of Downstream Recipients. -Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. -An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - -You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - -11. Patents. -A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". -A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - -Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - -In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - -If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - -If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - -A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - -Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - -12. No Surrender of Others' Freedom. -If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. -13. Use with the GNU Affero General Public License. -Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. -14. Revised Versions of this License. -The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. -Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - -If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - -Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - -15. Disclaimer of Warranty. -THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. -16. Limitation of Liability. -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -17. Interpretation of Sections 15 and 16. -If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - -END OF TERMS AND CONDITIONS - -How to Apply These Terms to Your New Programs - -If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - -To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - - -Copyright (C) - -This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - -If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - - Copyright (C) -This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. -This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". - -You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - -The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . diff --git a/backend/database/package.json b/backend/database/package.json new file mode 100644 index 00000000..19dbe631 --- /dev/null +++ b/backend/database/package.json @@ -0,0 +1,5 @@ +{ + "name": "@openstapps/database", + "version": "2.0.0", + "private": true +} diff --git a/backend/proxy/package.json b/backend/proxy/package.json index 2629a6ce..30a94cf0 100644 --- a/backend/proxy/package.json +++ b/backend/proxy/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/proxy", "description": "NGINX proxy that is dynamically configured by a Node.js script", - "version": "3.0.0", + "version": "2.0.0", "private": true, "type": "module", "license": "AGPL-3.0-only", diff --git a/configuration/backend-config/package.json b/configuration/backend-config/package.json index e3886bf4..cef12a87 100644 --- a/configuration/backend-config/package.json +++ b/configuration/backend-config/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/backend-config", "description": "Backend Configuration for OpenStApps", - "version": "3.0.0", + "version": "2.0.0", "private": true, "type": "module", "license": "GPL-3.0-only", diff --git a/configuration/eslint-config/package.json b/configuration/eslint-config/package.json index 67ac8dfd..0e9d3740 100644 --- a/configuration/eslint-config/package.json +++ b/configuration/eslint-config/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/eslint-config", "description": "A collection of configuration base files for StApps projects. Just an (unused) experiment for now.", - "version": "3.0.0", + "version": "2.0.0", "type": "commonjs", "license": "GPL-3.0-only", "repository": "git@gitlab.com:openstapps/eslint-config.git", diff --git a/configuration/prettier-config/package.json b/configuration/prettier-config/package.json index 6f9a173b..43a90fc1 100644 --- a/configuration/prettier-config/package.json +++ b/configuration/prettier-config/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/prettier-config", "description": "StApps Prettier Config", - "version": "3.0.0", + "version": "2.0.0", "type": "module", "license": "GPL-3.0-only", "repository": "git@gitlab.com:openstapps/prettier-config.git", diff --git a/configuration/projectmanagement/package.json b/configuration/projectmanagement/package.json index faa526fb..51779396 100644 --- a/configuration/projectmanagement/package.json +++ b/configuration/projectmanagement/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/projectmanagement", "description": "Main documentation and scripts for maintenance.", - "version": "3.0.0", + "version": "2.0.0", "private": true, "type": "module", "license": "GPL-3.0-only", @@ -36,6 +36,7 @@ "test": "c8 mocha" }, "dependencies": { + "@openstapps/collection-utils": "workspace:*", "@openstapps/gitlab-api": "workspace:*", "@openstapps/logger": "workspace:*", "@slack/web-api": "6.8.1", diff --git a/configuration/projectmanagement/src/cli.ts b/configuration/projectmanagement/src/cli.ts index 70ab9d24..f2d6ebf5 100644 --- a/configuration/projectmanagement/src/cli.ts +++ b/configuration/projectmanagement/src/cli.ts @@ -22,7 +22,7 @@ import {GITLAB_API_URL} from './configuration.js'; import {getUsedVersionMajorMinor} from './tasks/get-used-version.js'; import {remind} from './tasks/remind.js'; import {tidy} from './tasks/tidy.js'; -import {unlabel} from './tasks/unlabel.js'; +import {removeLabel} from './tasks/remove-label.js'; // add default handler for unhandled rejections process.on('unhandledRejection', async reason => { @@ -57,7 +57,7 @@ if (existsSync(path.join(__dirname, 'package.json'))) { } commander.command('unlabel').action(async () => { - await unlabel(gitlabApi); + await removeLabel(gitlabApi); Logger.ok('Done!'); }); diff --git a/configuration/projectmanagement/src/common.ts b/configuration/projectmanagement/src/common.ts index d455d86b..2548698b 100644 --- a/configuration/projectmanagement/src/common.ts +++ b/configuration/projectmanagement/src/common.ts @@ -14,6 +14,8 @@ */ import {Api, Project} from '@openstapps/gitlab-api'; import {Logger} from '@openstapps/logger'; +import {mapAsyncLimit} from '@openstapps/collection-utils'; +import {CONCURRENCY} from './configuration.js'; /** * Get projects for a list of groups @@ -23,8 +25,7 @@ import {Logger} from '@openstapps/logger'; export async function getProjects(api: Api, groups: number[]): Promise { Logger.info(`Fetching all projects for specified groups (${groups.length})...`); - const projectResults = await Promise.all(groups.map(api.getProjectsForGroup)); - const projects = projectResults.flat(); + const projects = await mapAsyncLimit(groups, api.getProjectsForGroup, CONCURRENCY).then(it => it.flat()); Logger.log(`Fetched ${projects.length} project(s).`); diff --git a/configuration/projectmanagement/src/configuration.ts b/configuration/projectmanagement/src/configuration.ts index e1491ede..02a93c68 100644 --- a/configuration/projectmanagement/src/configuration.ts +++ b/configuration/projectmanagement/src/configuration.ts @@ -185,6 +185,11 @@ export const NOTE_PREFIX = '`openstapps/projectmanagement`'; */ export const SLACK_CHANNEL = 'C762UG76Z'; +/** + * Concurrency for network requests + */ +export const CONCURRENCY = 3; + /** * Maximum depth for merge request reminders */ diff --git a/configuration/projectmanagement/src/tasks/remind.ts b/configuration/projectmanagement/src/tasks/remind.ts index 74153112..d1f57816 100644 --- a/configuration/projectmanagement/src/tasks/remind.ts +++ b/configuration/projectmanagement/src/tasks/remind.ts @@ -23,14 +23,15 @@ import { } from '@openstapps/gitlab-api'; import {Logger} from '@openstapps/logger'; import {WebClient} from '@slack/web-api'; -import {GROUPS, MAX_DEPTH_FOR_REMINDER, NOTE_PREFIX, SLACK_CHANNEL} from '../configuration.js'; +import {CONCURRENCY, GROUPS, MAX_DEPTH_FOR_REMINDER, NOTE_PREFIX, SLACK_CHANNEL} from '../configuration.js'; +import {mapAsyncLimit} from '@openstapps/collection-utils'; /** * Remind people of open merge requests * @param api GitLab API to make requests with */ export async function remind(api: Api): Promise { - // get list of open merge requests + // get a list of open merge requests const allMergeRequests = await api.getMergeRequests( MembershipScope.GROUPS, GROUPS[0], @@ -55,7 +56,7 @@ export async function remind(api: Api): Promise { const client = process.env.SLACK_API_TOKEN === undefined ? undefined : new WebClient(process.env.SLACK_API_TOKEN); - // get members of main group + // get members of the main group const members = await api.getMembers(MembershipScope.GROUPS, GROUPS[0]); // filter members with at least maintainer status @@ -71,8 +72,9 @@ export async function remind(api: Api): Promise { Logger.info(`Found ${maintainers.length} maintainer(s).`); - await Promise.all( - mergeRequests.map(async mergeRequest => { + await mapAsyncLimit( + mergeRequests, + async mergeRequest => { // check if merge request is WIP if (mergeRequest.work_in_progress) { Logger.info(`Merge request '${mergeRequest.title}' is WIP.`); @@ -118,7 +120,7 @@ export async function remind(api: Api): Promise { // get possible appropers, prefixed with '@' and joined with commas const possibleApprovers = maintainerUsernames .filter(username => { - if (mergeRequest.assignee.username === username) { + if (mergeRequest!.assignee.username === username) { return false; } if (username.includes('openstapps') || username.includes('kphilipp')) { @@ -168,7 +170,7 @@ export async function remind(api: Api): Promise { // prefix maintainers with '@' and join with commas const possibleMergers = maintainerUsernames .filter(username => { - return mergeRequest.assignee.username !== username; + return mergeRequest!.assignee.username !== username; }) .map(username => `@${username}`) .join(', '); @@ -182,6 +184,7 @@ export async function remind(api: Api): Promise { ); } } - }), + }, + CONCURRENCY, ); } diff --git a/configuration/projectmanagement/src/tasks/unlabel.ts b/configuration/projectmanagement/src/tasks/remove-label.ts similarity index 81% rename from configuration/projectmanagement/src/tasks/unlabel.ts rename to configuration/projectmanagement/src/tasks/remove-label.ts index 7ad252d9..d4ff5ba3 100644 --- a/configuration/projectmanagement/src/tasks/unlabel.ts +++ b/configuration/projectmanagement/src/tasks/remove-label.ts @@ -14,27 +14,31 @@ */ import {Api, IssueState, Scope} from '@openstapps/gitlab-api'; import {Logger} from '@openstapps/logger'; -import {GROUPS, LAST_MEETING, NOTE_PREFIX} from '../configuration.js'; +import {CONCURRENCY, GROUPS, LAST_MEETING, NOTE_PREFIX} from '../configuration.js'; import isBefore from 'date-fns/isBefore'; +import {mapAsyncLimit} from '@openstapps/collection-utils'; /** * Remove label `meeting` from closed issues * @param api Instance of GitLabAPI to send requests with */ -export async function unlabel(api: Api) { - const issues = await Promise.all( - GROUPS.map(async groupId => { +export async function removeLabel(api: Api) { + const issues = await mapAsyncLimit( + GROUPS, + async groupId => { return api.getIssues({ groupId: groupId, state: IssueState.CLOSED, }); - }), + }, + CONCURRENCY, ).then(it => it.flat()); Logger.log(`Fetched ${issues.length} closed issue(s).`); - await Promise.all( - issues.map(async issue => { + await mapAsyncLimit( + issues, + async issue => { if ( issue.labels.includes('meeting') && issue.closed_at !== null && @@ -52,7 +56,8 @@ export async function unlabel(api: Api) { /unlabel ~meeting`, ); } - }), + }, + CONCURRENCY, ); Logger.ok('Label `meeting` has been removed from closed issues.'); diff --git a/configuration/projectmanagement/src/tasks/report.ts b/configuration/projectmanagement/src/tasks/report.ts index a5721239..4343f978 100644 --- a/configuration/projectmanagement/src/tasks/report.ts +++ b/configuration/projectmanagement/src/tasks/report.ts @@ -26,12 +26,13 @@ import mustache from 'mustache'; import path from 'path'; import {cwd} from 'process'; import {getProjects} from '../common.js'; -import {BOLD_LABELS, GROUPS, LABEL_WEIGHTS, NEXT_MEETING} from '../configuration.js'; +import {BOLD_LABELS, CONCURRENCY, GROUPS, LABEL_WEIGHTS, NEXT_MEETING} from '../configuration.js'; import differenceInWeeks from 'date-fns/differenceInWeeks'; import formatISO from 'date-fns/formatISO'; import format from 'date-fns/format'; import de from 'date-fns/locale/de'; import {readFile, writeFile} from 'fs/promises'; +import {mapAsyncLimit} from '@openstapps/collection-utils'; /** * A structure for template compilation @@ -94,11 +95,11 @@ export interface AssigneeWithIssues { */ export interface IssueWithMeta extends Issue { /** - * Whether or not an issue branch exists + * Whether an issue branch exists */ $branchExists: boolean; /** - * Whether or not the issue is closed + * Whether the issue is closed */ $closed: boolean; /** @@ -106,7 +107,7 @@ export interface IssueWithMeta extends Issue { */ $labels: Array<{ /** - * Whether or not to print the label bold + * Whether to print the label bold */ bold: boolean; /** @@ -119,7 +120,7 @@ export interface IssueWithMeta extends Issue { */ $mergeRequestUrl: string; /** - * Name of project + * Name of the project */ $project: string; /** @@ -158,7 +159,7 @@ export function issueStateIsOpenedOrClosed( * Get merge request URLs from given data * @param projectMergeRequests Merge requests data (object containing array of objects) * @param projectId Project ID to get data about merge requests for - * @param issueIid Issue IID in certain project (relative ID, and not issue's GitLab API ID) + * @param issueIid Issue IID in a specific project (relative ID, and not issue's GitLab API ID) */ export function getMergeRequestUrls( projectMergeRequests: MergeRequestsForProjects, @@ -170,12 +171,8 @@ export function getMergeRequestUrls( } return projectMergeRequests[projectId] - .filter(object => { - return object.issue_iid === issueIid; - }) - .map(object => { - return object.web_url; - }); + .filter(object => object.issue_iid === issueIid) + .map(object => object.web_url); } /** @@ -193,9 +190,7 @@ export async function getIssues(api: Api, label: string, groups: number[]): Prom ), ); - const issues = issueResults.flat().filter(issue => { - return issue.labels.includes(label); - }); + const issues = issueResults.flat().filter(issue => issue.labels.includes(label)); Logger.log(`Fetched ${issues.length} issue(s).`); @@ -210,8 +205,9 @@ export async function getIssues(api: Api, label: string, groups: number[]): Prom export async function getIssueBranches(api: Api, projects: Project[]): Promise<{[k: string]: number[]}> { const projectBranches: {[k: string]: number[]} = {}; - await Promise.all( - projects.map(async project => { + await mapAsyncLimit( + projects, + async project => { const branches = await api.getBranchesForProject(project.id); // extract issue number from branch @@ -225,7 +221,8 @@ export async function getIssueBranches(api: Api, projects: Project[]): Promise<{ .map(branchNameStart => { return Number.parseInt(branchNameStart, 10); }); - }), + }, + CONCURRENCY, ); return projectBranches; @@ -234,18 +231,20 @@ export async function getIssueBranches(api: Api, projects: Project[]): Promise<{ /** * Get issues grouped by assignees * @param api GitLab API to make requests with - * @param label Label to generate report for + * @param label Label to generate the report for */ export async function getIssuesGroupedByAssignees(api: Api, label: string): Promise { const issuesByAssignee: IssuesGroupedByAssigneeId = {}; - const groups = await Promise.all( - GROUPS.map(async groupId => { + const groups = await mapAsyncLimit( + GROUPS, + async groupId => { const subGroups = await api.getSubGroupsForGroup(groupId); return subGroups.map(group => { return group.id; }); - }), + }, + CONCURRENCY, ).then(it => it.flat()); groups.push(...groups, ...GROUPS); @@ -385,14 +384,15 @@ export async function getMergeRequests(api: Api, projects: Project[]): Promise { - // check if project can have merge requests + await mapAsyncLimit( + projects, + async project => { + // check if the project can have merge requests if (!project.merge_requests_enabled) { return; } - // get all merge requests for project + // get all merge requests for the project const mergeRequests = await api.getMergeRequests( MembershipScope.PROJECTS, project.id, @@ -414,7 +414,8 @@ export async function getMergeRequests(api: Api, projects: Project[]): Promise { const issuesGroupedByAssignee = await getIssuesGroupedByAssignees(api, label); @@ -441,7 +442,7 @@ export async function generateReport(api: Api, label: string, template: string): /** * Generate a markdown report * @param api GitLab API to make requests with - * @param label Label to generate report for + * @param label Label to generate the report for */ export async function report(api: Api, label: string) { const meetingDay = getNextMeetingDay(); diff --git a/configuration/projectmanagement/src/tasks/tidy.ts b/configuration/projectmanagement/src/tasks/tidy.ts index 73c5ad12..25c2a322 100644 --- a/configuration/projectmanagement/src/tasks/tidy.ts +++ b/configuration/projectmanagement/src/tasks/tidy.ts @@ -25,6 +25,7 @@ import { import {Logger} from '@openstapps/logger'; import {getProjects} from '../common.js'; import { + CONCURRENCY, GROUPS, NEEDED_LABELS, NEEDED_MILESTONES, @@ -32,31 +33,34 @@ import { PROTECTED_BRANCHES, SCHOOLS, } from '../configuration.js'; +import {mapAsyncLimit} from '@openstapps/collection-utils'; /** - * Tidy issues without milestone + * Tidy issues without a milestone * - * This will set the milestone of issues without milestone to 'Meeting'. - * @param api GitLab API instance to use for the requests + * This will set the milestone of issues without a milestone to 'Meeting'. + * @param api GitLab API instance for the requests */ export async function tidyIssuesWithoutMilestone(api: Api): Promise { - // fetch issues without milestone from all groups - const issuesWithoutMilestone = await Promise.all( - GROUPS.map(groupId => + // fetch issues without a milestone from all groups + const issuesWithoutMilestone = await mapAsyncLimit( + GROUPS, + groupId => api.getIssues({ groupId: groupId, milestone: 'No Milestone', state: IssueState.OPENED, }), - ), + CONCURRENCY, ).then(it => it.flat()); Logger.info(`Found '${issuesWithoutMilestone.length}' issue(s) without milestone.`); const milestoneCache: {[s: number]: Milestone[]} = {}; - await Promise.all( - issuesWithoutMilestone.map(async issue => { + await mapAsyncLimit( + issuesWithoutMilestone, + async issue => { if (milestoneCache[issue.project_id] === undefined) { milestoneCache[issue.project_id] = await api.getMilestonesForProject(issue.project_id); } @@ -85,7 +89,8 @@ export async function tidyIssuesWithoutMilestone(api: Api): Promise { issue.iid, `${NOTE_PREFIX} Milestone was set automatically to 'Meeting'.`, ); - }), + }, + CONCURRENCY, ); Logger.ok('Tidied issues without milestones.'); @@ -95,17 +100,18 @@ export async function tidyIssuesWithoutMilestone(api: Api): Promise { * Tidy open issues without meeting label * * This adds the label 'meeting' to all open issues that do not have this label. - * @param api GitLab API instante to use for requests + * @param api GitLab API instance for requests */ export async function tidyOpenIssuesWithoutMeetingLabel(api: Api): Promise { // fetch all open issues - const openIssues = await Promise.all( - GROUPS.map(groupId => + const openIssues = await mapAsyncLimit( + GROUPS, + groupId => api.getIssues({ groupId: groupId, state: IssueState.OPENED, }), - ), + CONCURRENCY, ).then(it => it.flat()); Logger.info(`Found ${openIssues.length} open issue(s).`); @@ -117,8 +123,9 @@ export async function tidyOpenIssuesWithoutMeetingLabel(api: Api): Promise Logger.info(`Filtered ${openIssuesWithoutMeetingLabel.length} open issue(s) without label 'meeting'.`); - await Promise.all( - openIssuesWithoutMeetingLabel.map(async issue => { + await mapAsyncLimit( + openIssuesWithoutMeetingLabel, + async issue => { if (issue.milestone !== null && issue.milestone.title === 'Backlog') { Logger.info(`Skipping issue "${issue.title}" because it is in backlog.`); @@ -131,7 +138,8 @@ export async function tidyOpenIssuesWithoutMeetingLabel(api: Api): Promise issue.iid, `${NOTE_PREFIX} Automatically adding label 'meeting'\n\n/label ~meeting`, ); - }), + }, + CONCURRENCY, ); Logger.ok(`Tidied open issues without label 'meeting'.`); @@ -143,8 +151,9 @@ export async function tidyOpenIssuesWithoutMeetingLabel(api: Api): Promise * @param projects List of projects to tidy labels on */ export async function tidyLabels(api: Api, projects: Project[]): Promise { - await Promise.all( - projects.map(async project => { + await mapAsyncLimit( + projects, + async project => { const labels = await api.getLabels(project.id); const neededLabels = [...NEEDED_LABELS]; @@ -165,12 +174,14 @@ export async function tidyLabels(api: Api, projects: Project[]): Promise { } */ } - await Promise.all( - neededLabels.map(async neededLabel => { + await mapAsyncLimit( + neededLabels, + async neededLabel => { await api.createLabel(project.id, neededLabel.name, neededLabel.description, neededLabel.color); Logger.log(`Created label '${neededLabel.name}' in '${project.name_with_namespace}'.`); - }), + }, + CONCURRENCY, ); // await asyncPool(2, extraneousLabels, async (extraneousLabel) => { @@ -178,7 +189,8 @@ export async function tidyLabels(api: Api, projects: Project[]): Promise { // // Logger.log('Deleted label `' + extraneousLabel.name + '` from ' + project.name_with_namespace + '.'); // }); - }), + }, + CONCURRENCY, ); Logger.ok('Tidied labels.'); @@ -190,8 +202,9 @@ export async function tidyLabels(api: Api, projects: Project[]): Promise { * @param projects List of projects to tidy milestones on */ export async function tidyMilestones(api: Api, projects: Project[]): Promise { - await Promise.all( - projects.map(async project => { + await mapAsyncLimit( + projects, + async project => { const milestones = await api.getMilestonesForProject(project.id); const missingMilestones = [...NEEDED_MILESTONES]; @@ -211,7 +224,8 @@ export async function tidyMilestones(api: Api, projects: Project[]): Promise { - await Promise.all( - projects.map(async project => { + await mapAsyncLimit( + projects, + async project => { const branches = await api.getBranchesForProject(project.id); const protectableBranches = branches.filter(branch => { @@ -244,7 +259,8 @@ export async function tidyProtectedBranches(api: Api, projects: Project[]): Prom ); }), ); - }), + }, + CONCURRENCY, ); Logger.ok('Tidied protected branches.'); @@ -256,8 +272,9 @@ export async function tidyProtectedBranches(api: Api, projects: Project[]): Prom * @param projects List of projects to tidy protected tags on */ export async function tidyProtectedTags(api: Api, projects: Project[]): Promise { - await Promise.all( - projects.map(async project => { + await mapAsyncLimit( + projects, + async project => { // TODO: move this to GitLab API const protectedTags = (await api.makeGitLabAPIRequest( `projects/${project.id}/protected_tags`, @@ -296,7 +313,8 @@ export async function tidyProtectedTags(api: Api, projects: Project[]): Promise< Logger.log(`Added protected version tag in project '${project.name_with_namespace}'.`); } - }), + }, + CONCURRENCY, ); Logger.ok('Tidied protected tags.'); @@ -316,31 +334,37 @@ export async function tidySubGroupMembers(api: Api): Promise { groupIdsToSchool[SCHOOLS[school]] = school; }); - await Promise.all( - GROUPS.slice(1).map(async groupId => { + await mapAsyncLimit( + GROUPS.slice(1), + async groupId => { const members = await api.getMembers(MembershipScope.GROUPS, groupId); const memberIds = new Set(members.map(member => member.id)); - await Promise.all( - stappsMembers.map(async stappsMember => { + await mapAsyncLimit( + stappsMembers, + async stappsMember => { if (!memberIds.has(stappsMember.id)) { await api.addMember(MembershipScope.GROUPS, groupId, stappsMember.id, AccessLevel.Developer); Logger.log(`Added '${stappsMember.name}' to group '${groupIdsToSchool[groupId]}'.`); } - }), + }, + CONCURRENCY, ); - await Promise.all( - members.map(async member => { + await mapAsyncLimit( + members, + async member => { if (!stappsMemberIds.has(member.id)) { await api.deleteMember(MembershipScope.GROUPS, groupId, member.id); Logger.log(`Deleted member '${member.name}' from group '${groupIdsToSchool[groupId]}'.`); } - }), + }, + CONCURRENCY, ); - }), + }, + CONCURRENCY, ); Logger.ok(`Tidied 'sub' group members.`); @@ -350,17 +374,19 @@ export async function tidySubGroupMembers(api: Api): Promise { * Tidy issues without assignee * * Set assignee to author if no assignee is set. - * @param api GitLab API instance to use for the requests + * @param api GitLab API instance for the requests */ export async function tidyIssuesWithoutAssignee(api: Api): Promise { - // fetch issues without milestone from all groups - const issues = await Promise.all( - GROUPS.map(async groupId => { + // fetch issues without a milestone from all groups + const issues = await mapAsyncLimit( + GROUPS, + async groupId => { return api.getIssues({ groupId: groupId, state: IssueState.OPENED, }); - }), + }, + CONCURRENCY, ).then(it => it.flat()); const issuesWithoutAssignee = issues.filter(issue => { @@ -369,8 +395,9 @@ export async function tidyIssuesWithoutAssignee(api: Api): Promise { Logger.info(`Found '${issuesWithoutAssignee.length}' issue(s) without assignee.`); - await Promise.all( - issuesWithoutAssignee.map(async issue => { + await mapAsyncLimit( + issuesWithoutAssignee, + async issue => { await api.setAssigneeForIssue(issue, issue.author.id); Logger.log(`Set assignee for '${issue.title}' to '${issue.author.name}'.`); @@ -381,7 +408,8 @@ export async function tidyIssuesWithoutAssignee(api: Api): Promise { issue.iid, `${NOTE_PREFIX} Assignee was set automatically to author.`, ); - }), + }, + CONCURRENCY, ); Logger.ok('Tidied issues without assignee.'); @@ -391,13 +419,15 @@ export async function tidyIssuesWithoutAssignee(api: Api): Promise { * Tidy merge requests without assignee * * Set assignee to author if no assignee is set. - * @param api GitLab API instance to use for the requests + * @param api GitLab API instance for the requests */ export async function tidyMergeRequestsWithoutAssignee(api: Api): Promise { - const mergeRequests = await Promise.all( - GROUPS.map(async groupId => { + const mergeRequests = await mapAsyncLimit( + GROUPS, + async groupId => { return api.getMergeRequests(MembershipScope.GROUPS, groupId, MergeRequestState.OPENED); - }), + }, + CONCURRENCY, ).then(it => it.flat()); const mergeRequestsWithoutAssignee = mergeRequests.filter(mergeRequest => { @@ -406,8 +436,9 @@ export async function tidyMergeRequestsWithoutAssignee(api: Api): Promise Logger.info(`Found '${mergeRequestsWithoutAssignee.length}' merge requests without assignee.`); - await Promise.all( - mergeRequestsWithoutAssignee.map(async mergeRequest => { + await mapAsyncLimit( + mergeRequestsWithoutAssignee, + async mergeRequest => { await api.setAssigneeForMergeRequest(mergeRequest, mergeRequest.author.id); Logger.log(`Set assignee for '${mergeRequest.title}' to '${mergeRequest.author.name}'.`); @@ -418,7 +449,8 @@ export async function tidyMergeRequestsWithoutAssignee(api: Api): Promise mergeRequest.iid, `${NOTE_PREFIX} Assignee was set automatically to author.`, ); - }), + }, + CONCURRENCY, ); Logger.ok('Tidied merge requests without assignee.'); @@ -429,7 +461,7 @@ export async function tidyMergeRequestsWithoutAssignee(api: Api): Promise * @param api GitLab API instance to use for the requests */ export async function tidy(api: Api) { - // get first level sub groups + // get first level subgroups const groups = [...GROUPS]; const subGroups = await api.getSubGroupsForGroup(groups[0]); groups.push(...groups, ...subGroups.map(group => group.id)); diff --git a/configuration/tsconfig/package.json b/configuration/tsconfig/package.json index 182c3b69..f3bba5c8 100644 --- a/configuration/tsconfig/package.json +++ b/configuration/tsconfig/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/tsconfig", "description": "The tsconfig for the openstapps project", - "version": "3.0.0", + "version": "2.0.0", "type": "commonjs", "license": "GPL-3.0-only", "repository": "git@gitlab.com:openstapps/eslint-config.git", diff --git a/examples/minimal-connector/package.json b/examples/minimal-connector/package.json index 4294d3aa..c59a4cbf 100644 --- a/examples/minimal-connector/package.json +++ b/examples/minimal-connector/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/minimal-connector", "description": "This is a minimal connector which serves as an example", - "version": "3.0.0", + "version": "2.0.0", "private": true, "type": "module", "license": "GPL-3.0-only", diff --git a/examples/minimal-deployment/package.json b/examples/minimal-deployment/package.json new file mode 100644 index 00000000..bb48ccfc --- /dev/null +++ b/examples/minimal-deployment/package.json @@ -0,0 +1,5 @@ +{ + "name": "@openstapps/minimal-deployment", + "version": "2.0.0", + "private": true +} diff --git a/examples/minimal-plugin/package.json b/examples/minimal-plugin/package.json index ca29e011..1cd2d8fd 100644 --- a/examples/minimal-plugin/package.json +++ b/examples/minimal-plugin/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/minimal-plugin", "description": "Minimal Plugin", - "version": "3.0.0", + "version": "2.0.0", "private": true, "type": "module", "license": "GPL-3.0-only", diff --git a/frontend/app-release-template/package.json b/frontend/app-release-template/package.json new file mode 100644 index 00000000..d5c7a4ea --- /dev/null +++ b/frontend/app-release-template/package.json @@ -0,0 +1,5 @@ +{ + "name": "@openstapps/app-release-template", + "version": "2.0.0", + "private": true +} diff --git a/frontend/app/package.json b/frontend/app/package.json index c2727238..fcac0317 100644 --- a/frontend/app/package.json +++ b/frontend/app/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/app", "description": "The generic app tailored to fulfill needs of German universities, written using Ionic Framework.", - "version": "3.0.0", + "version": "2.0.0", "private": true, "license": "GPL-3.0-only", "author": "Karl-Philipp Wulfert ", diff --git a/frontend/app/src/app/app.component.html b/frontend/app/src/app/app.component.html index 5bd8b4ac..7feb99c1 100644 --- a/frontend/app/src/app/app.component.html +++ b/frontend/app/src/app/app.component.html @@ -12,11 +12,6 @@ ~ You should have received a copy of the GNU General Public License along with ~ this program. If not, see . --> -<<<<<<<< HEAD:frontend/app/src/app/util/simple-swiper.html - -======== - ->>>>>>>> app/develop:frontend/app/src/app/app.component.html diff --git a/package.json b/package.json index 824358e4..03978875 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,10 @@ { "name": "@openstapps/openstapps", - "version": "3.0.0", + "version": "2.0.0", + "engines": { + "node": ">=18.16", + "pnpm": ">=8" + }, "scripts": { "build": "dotenv -c -- turbo run build", "build:full": "dotenv -c -- turbo run syncpack build lint format --summarize", @@ -23,8 +27,8 @@ "turboify-pipeline": "node deploy.mjs backend,api-cli,database && pnpm build:full && pnpm test && pnpm run docs" }, "devDependencies": { - "@changesets/cli": "2.26.1", "@changesets/changelog-git": "0.1.14", + "@changesets/cli": "2.26.1", "cobertura-merge": "1.0.4", "deepmerge": "4.3.1", "dotenv-cli": "7.2.1", diff --git a/packages/api-cli/LICENSE b/packages/api-cli/LICENSE deleted file mode 100644 index 9df63ccc..00000000 --- a/packages/api-cli/LICENSE +++ /dev/null @@ -1,200 +0,0 @@ -GNU GENERAL PUBLIC LICENSE -Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - -Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - -Preamble - -The GNU General Public License is a free, copyleft license for software and other kinds of works. - -The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. - -When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. - -To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - -For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. - -Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - -For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - -Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - -Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - -The precise terms and conditions for copying, distribution and modification follow. - -TERMS AND CONDITIONS - -0. Definitions. -"This License" refers to version 3 of the GNU General Public License. - -"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - -"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. - -To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. - -A "covered work" means either the unmodified Program or a work based on the Program. - -To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - -To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - -An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - -1. Source Code. -The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. -A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - -The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - -The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - -The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - -The Corresponding Source for a work in source code form is that same work. - -2. Basic Permissions. -All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. -You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - -Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. -No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. -When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - -4. Conveying Verbatim Copies. -You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. -You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. -You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: -a) The work must carry prominent notices stating that you modified it, and giving a relevant date. -b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". -c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. -d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. -A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. - -6. Conveying Non-Source Forms. -You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: -a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. -b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. -c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. -d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. -e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. -A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - -A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - -"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - -If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - -The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - -Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - -7. Additional Terms. -"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. -When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - -Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - -a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or -b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or -c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or -d) Limiting the use for publicity purposes of names of licensors or authors of the material; or -e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or -f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. -All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - -If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - -Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - -8. Termination. -You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). -However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - -Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - -Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. -You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. -10. Automatic Licensing of Downstream Recipients. -Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. -An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - -You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - -11. Patents. -A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". -A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - -Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - -In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - -If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - -If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - -A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - -Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - -12. No Surrender of Others' Freedom. -If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. -13. Use with the GNU Affero General Public License. -Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. -14. Revised Versions of this License. -The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. -Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - -If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - -Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - -15. Disclaimer of Warranty. -THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. -16. Limitation of Liability. -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -17. Interpretation of Sections 15 and 16. -If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - -END OF TERMS AND CONDITIONS - -How to Apply These Terms to Your New Programs - -If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - -To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - - -Copyright (C) - -This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - -If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - - Copyright (C) -This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. -This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". - -You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - -The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . diff --git a/packages/api-cli/package.json b/packages/api-cli/package.json index 070d733e..5316d6ca 100644 --- a/packages/api-cli/package.json +++ b/packages/api-cli/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/api-cli", "description": "CLI client for @openstapps/api", - "version": "3.0.0", + "version": "2.0.0", "type": "module", "license": "GPL-3.0-only", "repository": "git@gitlab.com:openstapps/api.git", diff --git a/packages/api-plugin/LICENSE b/packages/api-plugin/LICENSE deleted file mode 100644 index 9df63ccc..00000000 --- a/packages/api-plugin/LICENSE +++ /dev/null @@ -1,200 +0,0 @@ -GNU GENERAL PUBLIC LICENSE -Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - -Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - -Preamble - -The GNU General Public License is a free, copyleft license for software and other kinds of works. - -The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. - -When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. - -To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - -For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. - -Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - -For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - -Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - -Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - -The precise terms and conditions for copying, distribution and modification follow. - -TERMS AND CONDITIONS - -0. Definitions. -"This License" refers to version 3 of the GNU General Public License. - -"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - -"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. - -To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. - -A "covered work" means either the unmodified Program or a work based on the Program. - -To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - -To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - -An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - -1. Source Code. -The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. -A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - -The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - -The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - -The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - -The Corresponding Source for a work in source code form is that same work. - -2. Basic Permissions. -All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. -You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - -Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. -No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. -When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - -4. Conveying Verbatim Copies. -You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. -You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. -You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: -a) The work must carry prominent notices stating that you modified it, and giving a relevant date. -b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". -c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. -d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. -A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. - -6. Conveying Non-Source Forms. -You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: -a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. -b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. -c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. -d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. -e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. -A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - -A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - -"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - -If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - -The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - -Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - -7. Additional Terms. -"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. -When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - -Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - -a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or -b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or -c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or -d) Limiting the use for publicity purposes of names of licensors or authors of the material; or -e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or -f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. -All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - -If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - -Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - -8. Termination. -You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). -However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - -Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - -Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. -You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. -10. Automatic Licensing of Downstream Recipients. -Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. -An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - -You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - -11. Patents. -A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". -A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - -Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - -In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - -If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - -If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - -A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - -Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - -12. No Surrender of Others' Freedom. -If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. -13. Use with the GNU Affero General Public License. -Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. -14. Revised Versions of this License. -The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. -Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - -If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - -Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - -15. Disclaimer of Warranty. -THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. -16. Limitation of Liability. -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -17. Interpretation of Sections 15 and 16. -If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - -END OF TERMS AND CONDITIONS - -How to Apply These Terms to Your New Programs - -If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - -To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - - -Copyright (C) - -This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - -If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - - Copyright (C) -This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. -This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". - -You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - -The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . diff --git a/packages/api-plugin/package.json b/packages/api-plugin/package.json index eb7c2db6..92860775 100644 --- a/packages/api-plugin/package.json +++ b/packages/api-plugin/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/api-plugin", "description": "Node.js library to interact with the StApps backend service", - "version": "3.0.0", + "version": "2.0.0", "type": "module", "license": "GPL-3.0-only", "repository": "git@gitlab.com:openstapps/api.git", diff --git a/packages/api/LICENSE b/packages/api/LICENSE deleted file mode 100644 index 9df63ccc..00000000 --- a/packages/api/LICENSE +++ /dev/null @@ -1,200 +0,0 @@ -GNU GENERAL PUBLIC LICENSE -Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - -Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - -Preamble - -The GNU General Public License is a free, copyleft license for software and other kinds of works. - -The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. - -When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. - -To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - -For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. - -Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - -For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - -Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - -Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - -The precise terms and conditions for copying, distribution and modification follow. - -TERMS AND CONDITIONS - -0. Definitions. -"This License" refers to version 3 of the GNU General Public License. - -"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - -"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. - -To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. - -A "covered work" means either the unmodified Program or a work based on the Program. - -To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - -To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - -An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - -1. Source Code. -The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. -A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - -The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - -The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - -The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - -The Corresponding Source for a work in source code form is that same work. - -2. Basic Permissions. -All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. -You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - -Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. -No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. -When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - -4. Conveying Verbatim Copies. -You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. -You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. -You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: -a) The work must carry prominent notices stating that you modified it, and giving a relevant date. -b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". -c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. -d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. -A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. - -6. Conveying Non-Source Forms. -You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: -a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. -b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. -c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. -d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. -e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. -A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - -A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - -"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - -If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - -The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - -Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - -7. Additional Terms. -"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. -When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - -Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - -a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or -b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or -c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or -d) Limiting the use for publicity purposes of names of licensors or authors of the material; or -e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or -f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. -All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - -If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - -Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - -8. Termination. -You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). -However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - -Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - -Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. -You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. -10. Automatic Licensing of Downstream Recipients. -Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. -An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - -You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - -11. Patents. -A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". -A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - -Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - -In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - -If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - -If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - -A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - -Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - -12. No Surrender of Others' Freedom. -If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. -13. Use with the GNU Affero General Public License. -Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. -14. Revised Versions of this License. -The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. -Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - -If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - -Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - -15. Disclaimer of Warranty. -THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. -16. Limitation of Liability. -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -17. Interpretation of Sections 15 and 16. -If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - -END OF TERMS AND CONDITIONS - -How to Apply These Terms to Your New Programs - -If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - -To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - - -Copyright (C) - -This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - -If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - - Copyright (C) -This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. -This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". - -You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - -The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . diff --git a/packages/api/package.json b/packages/api/package.json index 29f26902..51480237 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/api", "description": "Node.js library to interact with the StApps backend service", - "version": "3.0.0", + "version": "2.0.0", "type": "module", "license": "GPL-3.0-only", "repository": "git@gitlab.com:openstapps/api.git", diff --git a/packages/collection-utils/package.json b/packages/collection-utils/package.json index 8c71a335..f9afe64e 100644 --- a/packages/collection-utils/package.json +++ b/packages/collection-utils/package.json @@ -1,6 +1,6 @@ { "name": "@openstapps/collection-utils", - "version": "3.0.0", + "version": "2.0.0", "type": "module", "license": "GPL-3.0-only", "main": "lib/index.js", diff --git a/packages/collection-utils/src/index.ts b/packages/collection-utils/src/index.ts index d953a74a..cf465f1b 100644 --- a/packages/collection-utils/src/index.ts +++ b/packages/collection-utils/src/index.ts @@ -14,3 +14,4 @@ export * from './sum.js'; export * from './tree-group.js'; export * from './uniq.js'; export * from './zip.js'; +export * from './map-async-limit.js'; diff --git a/packages/collection-utils/src/map-async-limit.ts b/packages/collection-utils/src/map-async-limit.ts new file mode 100644 index 00000000..10a949ac --- /dev/null +++ b/packages/collection-utils/src/map-async-limit.ts @@ -0,0 +1,42 @@ +/** + * Copyright (C) 2023 StApps + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +/** + * Runs async tasks in parallel, with a limit + * + * Note: JavaScript is not multithreaded. + * This will not let you run tasks in parallel, use it only to limit how many network requests should be + * running at once. + * @param items the items to iterate through + * @param task the task to be run + * @param limit the maximum number of tasks that should be run asynchronously + */ +export async function mapAsyncLimit( + items: T[], + task: (item: T, index: number) => Promise, + limit = 5, +): Promise { + return Promise.all( + Array.from({length: limit}).map(async () => { + let i = 0; + const results: U[] = []; + for (let item = items.shift(); item !== undefined; item = items.shift()) { + results.push(await task(item, i)); + i++; + } + return results; + }), + ).then(it => it.flat()); +} diff --git a/packages/core-tools/package.json b/packages/core-tools/package.json index 8ec9d305..f14c1b83 100644 --- a/packages/core-tools/package.json +++ b/packages/core-tools/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/core-tools", "description": "Tools to convert and validate StAppsCore", - "version": "3.0.0", + "version": "2.0.0", "type": "module", "license": "GPL-3.0-only", "repository": "git@gitlab.com:openstapps/core-tools.git", diff --git a/packages/core/package.json b/packages/core/package.json index b75ffc04..9f569f04 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/core", "description": "StAppsCore - Generalized model of data", - "version": "3.0.0", + "version": "2.0.0", "type": "module", "license": "GPL-3.0-only", "repository": "git@gitlab.com:openstapps/core.git", diff --git a/packages/easy-ast/package.json b/packages/easy-ast/package.json index 36dab21a..da30e4cc 100644 --- a/packages/easy-ast/package.json +++ b/packages/easy-ast/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/easy-ast", "description": "Tool to easily handle TypeScript AST", - "version": "3.0.0", + "version": "2.0.0", "type": "module", "license": "GPL-3.0-only", "repository": "git@gitlab.com:openstapps/core-tools.git", diff --git a/packages/easy-ast/test/index.spec.ts b/packages/easy-ast/test/index.spec.ts index c75fc10d..c983fb95 100644 --- a/packages/easy-ast/test/index.spec.ts +++ b/packages/easy-ast/test/index.spec.ts @@ -27,7 +27,7 @@ const tests = await Promise.all( ); describe('Easy AST', function () { - this.timeout(5000); + this.timeout(15_000); this.slow(2000); it('should build the project', function () { diff --git a/packages/es-mapping-generator/.eslintignore b/packages/es-mapping-generator/.eslintignore deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/es-mapping-generator/.eslintrc b/packages/es-mapping-generator/.eslintrc deleted file mode 100644 index 9a72a793..00000000 --- a/packages/es-mapping-generator/.eslintrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@openstapps", - "rules": { - "no-console": "off", - "unicorn/no-negated-condition": "off", - "unicorn/no-null": "off", - "jsdoc/check-tag-names": "off" - } -} diff --git a/packages/es-mapping-generator/.gitignore b/packages/es-mapping-generator/.gitignore deleted file mode 100644 index 062b8e7e..00000000 --- a/packages/es-mapping-generator/.gitignore +++ /dev/null @@ -1,101 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock -.DS_Store - -# Schema generation data -Diagram-*.svg - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# next.js build output -.next - -# nuxt.js build output -.nuxt - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -#DynamoDB Local files -.dynamodb/ - -########## end of https://github.com/github/gitignore/blob/master/Node.gitignore - -# ignore ide files -.idea -.vscode - -# ignore lib directory -lib/ - -# ignore docs directory -docs/ - -# ignore openapi resources -openapi/ - -# generated mappings -/mappings diff --git a/packages/es-mapping-generator/package.json b/packages/es-mapping-generator/package.json index a2711e3d..0851fd60 100644 --- a/packages/es-mapping-generator/package.json +++ b/packages/es-mapping-generator/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/es-mapping-generator", "description": "Tool to convert TypeScript Interfaces to Elasticsearch Mappings", - "version": "3.0.0", + "version": "2.0.0", "type": "commonjs", "license": "GPL-3.0-only", "author": "Thea Schöbl ", @@ -19,8 +19,8 @@ "build": "rimraf lib && tsc", "format": "prettier . -c --ignore-path ../../.gitignore", "format:fix": "prettier --write . --ignore-path ../../.gitignore", - "lint": "eslint -c .eslintrc --ignore-path .eslintignore --ext .ts src/ test/", - "lint:fix": "eslint --fix -c .eslintrc --ignore-path .eslintignore --ext .ts src/ test/", + "lint": "eslint --ext .ts src/ test/", + "lint:fix": "eslint --ext .ts src/ test/", "test": "c8 mocha" }, "dependencies": { @@ -48,5 +48,14 @@ "rimraf": "5.0.0", "ts-node": "10.9.1" }, - "prettier": "@openstapps/prettier-config" + "prettier": "@openstapps/prettier-config", + "eslintConfig": { + "extends": "@openstapps", + "rules": { + "no-console": "off", + "unicorn/no-negated-condition": "off", + "unicorn/no-null": "off", + "jsdoc/check-tag-names": "off" + } + } } diff --git a/packages/gitlab-api/package.json b/packages/gitlab-api/package.json index 331f786b..da0c39c2 100644 --- a/packages/gitlab-api/package.json +++ b/packages/gitlab-api/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/gitlab-api", "description": "Wraps common GitLab API calls in a TypeScript class.", - "version": "3.0.0", + "version": "2.0.0", "type": "module", "license": "GPL-3.0-only", "repository": "git@gitlab.com:openstapps/gitlab-api.git", diff --git a/packages/logger/.gitignore b/packages/logger/.gitignore deleted file mode 100644 index c07b9dc8..00000000 --- a/packages/logger/.gitignore +++ /dev/null @@ -1,91 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# next.js build output -.next - -# nuxt.js build output -.nuxt - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -#DynamoDB Local files -.dynamodb/ - -########## end of https://github.com/github/gitignore/blob/master/Node.gitignore - -# ignore ide files -.idea -.vscode - -# ignore lib -lib - -# ignore docs -docs diff --git a/packages/logger/package.json b/packages/logger/package.json index 0cb58259..41c03558 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,7 +1,7 @@ { "name": "@openstapps/logger", "description": "A cli logger with colors, log-levels and the possibility to use a transport system for errors", - "version": "3.0.0", + "version": "2.0.0", "type": "module", "license": "GPL-3.0-only", "repository": "git@gitlab.com:openstapps/logger.git", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6e11daf1..3a9a9df8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -222,12 +222,15 @@ importers: mocked-env: specifier: 1.3.5 version: 1.3.5 + openapi: + specifier: 1.0.1 + version: 1.0.1 prettier: specifier: 2.8.6 version: 2.8.6 redoc-cli: specifier: 0.13.20 - version: 0.13.20(core-js@3.20.3)(react-is@16.13.1)(webpack@5.76.1) + version: 0.13.20(core-js@3.20.3)(react-is@17.0.2)(webpack@5.76.1) sinon: specifier: 15.0.4 version: 15.0.4 @@ -443,6 +446,9 @@ importers: configuration/projectmanagement: dependencies: + '@openstapps/collection-utils': + specifier: workspace:* + version: link:../../packages/collection-utils '@openstapps/gitlab-api': specifier: workspace:* version: link:../../packages/gitlab-api @@ -5964,6 +5970,17 @@ packages: engines: {node: '>=8'} dev: true + /@jest/types@26.6.2: + resolution: {integrity: sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==} + engines: {node: '>= 10.14.2'} + dependencies: + '@types/istanbul-lib-coverage': 2.0.4 + '@types/istanbul-reports': 3.0.1 + '@types/node': 18.15.3 + '@types/yargs': 15.0.15 + chalk: 4.1.2 + dev: true + /@jridgewell/gen-mapping@0.1.1: resolution: {integrity: sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==} engines: {node: '>=6.0.0'} @@ -6778,6 +6795,18 @@ packages: resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==} dev: true + /@types/istanbul-lib-report@3.0.0: + resolution: {integrity: sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==} + dependencies: + '@types/istanbul-lib-coverage': 2.0.4 + dev: true + + /@types/istanbul-reports@3.0.1: + resolution: {integrity: sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==} + dependencies: + '@types/istanbul-lib-report': 3.0.0 + dev: true + /@types/jasmine@4.3.1: resolution: {integrity: sha512-Vu8l+UGcshYmV1VWwULgnV/2RDbBaO6i2Ptx7nd//oJPIZGhoI1YLST4VKagD2Pq/Bc2/7zvtvhM7F3p4SN7kQ==} dev: true @@ -6788,6 +6817,13 @@ packages: '@types/jasmine': 4.3.1 dev: true + /@types/jest@26.0.24: + resolution: {integrity: sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w==} + dependencies: + jest-diff: 26.6.2 + pretty-format: 26.6.2 + dev: true + /@types/jquery@3.5.16: resolution: {integrity: sha512-bsI7y4ZgeMkmpG9OM710RRzDFp+w4P1RGiIt30C1mSBT+ExCleeh4HObwgArnDFELmRrOpXgSYN9VF1hj+f1lw==} dependencies: @@ -7027,6 +7063,16 @@ packages: '@types/node': 18.15.3 dev: true + /@types/yargs-parser@21.0.0: + resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==} + dev: true + + /@types/yargs@15.0.15: + resolution: {integrity: sha512-IziEYMU9XoVj8hWg7k+UJrXALkGFjWJhn5QFEv9q4p+v40oZhSuC135M38st8XPjICL7Ey4TV64ferBGUoJhBg==} + dependencies: + '@types/yargs-parser': 21.0.0 + dev: true + /@types/yauzl@2.10.0: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true @@ -8273,7 +8319,7 @@ packages: babel-plugin-syntax-jsx: 6.18.0 lodash: 4.17.21 picomatch: 2.3.1 - styled-components: 5.3.9(react-dom@17.0.2)(react-is@16.13.1)(react@17.0.2) + styled-components: 5.3.9(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2) dev: true /babel-plugin-syntax-jsx@6.18.0: @@ -8831,6 +8877,13 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} + /camel-case@4.1.2: + resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==} + dependencies: + pascal-case: 3.1.2 + tslib: 2.4.1 + dev: true + /camelcase-keys@6.2.2: resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==} engines: {node: '>=8'} @@ -8866,6 +8919,14 @@ packages: '@capacitor/core': 4.6.1 dev: false + /capital-case@1.0.4: + resolution: {integrity: sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==} + dependencies: + no-case: 3.0.4 + tslib: 2.4.1 + upper-case-first: 2.0.2 + dev: true + /caseless@0.12.0: resolution: {integrity: sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==} dev: true @@ -8940,6 +9001,23 @@ packages: engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} dev: false + /change-case@4.1.2: + resolution: {integrity: sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==} + dependencies: + camel-case: 4.1.2 + capital-case: 1.0.4 + constant-case: 3.0.4 + dot-case: 3.0.4 + header-case: 2.0.4 + no-case: 3.0.4 + param-case: 3.0.4 + pascal-case: 3.1.2 + path-case: 3.0.4 + sentence-case: 3.0.4 + snake-case: 3.0.4 + tslib: 2.4.1 + dev: true + /chardet@0.7.0: resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} dev: true @@ -9268,6 +9346,11 @@ packages: engines: {node: '>= 6'} dev: true + /commander@6.2.1: + resolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==} + engines: {node: '>= 6'} + dev: true + /commander@7.2.0: resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==} engines: {node: '>= 10'} @@ -9388,6 +9471,14 @@ packages: /console-control-strings@1.1.0: resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==} + /constant-case@3.0.4: + resolution: {integrity: sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==} + dependencies: + no-case: 3.0.4 + tslib: 2.4.1 + upper-case: 2.0.2 + dev: true + /constants-browserify@1.0.0: resolution: {integrity: sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==} dev: true @@ -9658,6 +9749,17 @@ packages: engines: {node: '>= 0.4.0'} dev: true + /cosmiconfig@6.0.0: + resolution: {integrity: sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==} + engines: {node: '>=8'} + dependencies: + '@types/parse-json': 4.0.0 + import-fresh: 3.3.0 + parse-json: 5.2.0 + path-type: 4.0.0 + yaml: 1.10.2 + dev: true + /cosmiconfig@7.1.0: resolution: {integrity: sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==} engines: {node: '>=10'} @@ -10310,6 +10412,11 @@ packages: resolution: {integrity: sha512-uJaamHkagcZtHPqCIHZxnFrXlunQXgBOsZSUOWwFw31QJCAbyTBoHMW75YOTur5ZNx8pIeAKgf6GWIgaqqiLhA==} dev: true + /diff-sequences@26.6.2: + resolution: {integrity: sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==} + engines: {node: '>= 10.14.2'} + dev: true + /diff@4.0.2: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} @@ -10463,6 +10570,13 @@ packages: domhandler: 5.0.3 dev: true + /dot-case@3.0.4: + resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==} + dependencies: + no-case: 3.0.4 + tslib: 2.4.1 + dev: true + /dot-prop@5.3.0: resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} engines: {node: '>=8'} @@ -12527,6 +12641,13 @@ packages: hasBin: true dev: true + /header-case@2.0.4: + resolution: {integrity: sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==} + dependencies: + capital-case: 1.0.4 + tslib: 2.4.1 + dev: true + /hexoid@1.0.0: resolution: {integrity: sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==} engines: {node: '>=8'} @@ -13379,6 +13500,10 @@ packages: engines: {node: '>=10'} dev: true + /is-url@1.2.4: + resolution: {integrity: sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==} + dev: true + /is-weakref@1.0.2: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} dependencies: @@ -13541,6 +13666,21 @@ packages: engines: {node: '>= 6.9.x'} dev: true + /jest-diff@26.6.2: + resolution: {integrity: sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==} + engines: {node: '>= 10.14.2'} + dependencies: + chalk: 4.1.2 + diff-sequences: 26.6.2 + jest-get-type: 26.3.0 + pretty-format: 26.6.2 + dev: true + + /jest-get-type@26.3.0: + resolution: {integrity: sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==} + engines: {node: '>= 10.14.2'} + dev: true + /jest-worker@27.5.1: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} @@ -14289,6 +14429,12 @@ packages: get-func-name: 2.0.0 dev: true + /lower-case@2.0.2: + resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} + dependencies: + tslib: 2.4.1 + dev: true + /lowercase-keys@1.0.1: resolution: {integrity: sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==} engines: {node: '>=0.10.0'} @@ -15072,6 +15218,13 @@ packages: path-to-regexp: 1.8.0 dev: true + /no-case@3.0.4: + resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} + dependencies: + lower-case: 2.0.2 + tslib: 2.4.1 + dev: true + /nock@13.3.1: resolution: {integrity: sha512-vHnopocZuI93p2ccivFyGuUfzjq2fxNyNurp7816mlT5V5HF4SzXu8lvLrVzBbNqzs+ODooZ6OksuSUNM7Njkw==} engines: {node: '>= 10.13'} @@ -15504,6 +15657,11 @@ packages: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} + /object-hash@2.2.0: + resolution: {integrity: sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw==} + engines: {node: '>= 6'} + dev: true + /object-inspect@1.12.3: resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==} @@ -15606,6 +15764,23 @@ packages: resolution: {integrity: sha512-XpeCy01X6L5EpP+6Hc3jWN7rMZJ+/k1lwki/kTmWzbVhdPie3jd5O2ZtedEx8Yp58icJ0osVldLMrTB/zslQXA==} dev: false + /openapi@1.0.1: + resolution: {integrity: sha512-hiQ6/K2Q2eFqlOoPQb8V2hzsVsbv31ipMCKfuwZQmqf+MnLzVUcYMBy0h/Y+Sv/HeDCTN4mf0GoOmET4EoJS8A==} + hasBin: true + dependencies: + '@types/jest': 26.0.24 + change-case: 4.1.2 + commander: 6.2.1 + cosmiconfig: 6.0.0 + is-url: 1.2.4 + js-yaml: 3.14.1 + node-fetch: 2.6.9 + object-hash: 2.2.0 + url-parse: 1.5.10 + transitivePeerDependencies: + - encoding + dev: true + /opencollective-postinstall@2.0.3: resolution: {integrity: sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==} hasBin: true @@ -15879,6 +16054,13 @@ packages: resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} dev: true + /param-case@3.0.4: + resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==} + dependencies: + dot-case: 3.0.4 + tslib: 2.4.1 + dev: true + /parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} @@ -15963,6 +16145,13 @@ packages: resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} engines: {node: '>= 0.8'} + /pascal-case@3.1.2: + resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} + dependencies: + no-case: 3.0.4 + tslib: 2.4.1 + dev: true + /path-browserify@0.0.1: resolution: {integrity: sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==} dev: true @@ -15971,6 +16160,13 @@ packages: resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} dev: true + /path-case@3.0.4: + resolution: {integrity: sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==} + dependencies: + dot-case: 3.0.4 + tslib: 2.4.1 + dev: true + /path-exists@3.0.0: resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==} engines: {node: '>=4'} @@ -16629,6 +16825,16 @@ packages: engines: {node: '>=6'} dev: true + /pretty-format@26.6.2: + resolution: {integrity: sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==} + engines: {node: '>= 10'} + dependencies: + '@jest/types': 26.6.2 + ansi-regex: 5.0.1 + ansi-styles: 4.3.0 + react-is: 17.0.2 + dev: true + /prismjs@1.29.0: resolution: {integrity: sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==} engines: {node: '>=6'} @@ -16860,6 +17066,10 @@ packages: deprecated: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. dev: true + /querystringify@2.2.0: + resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} + dev: true + /queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -16958,6 +17168,10 @@ packages: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} dev: true + /react-is@17.0.2: + resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} + dev: true + /react-tabs@3.2.3(react@17.0.2): resolution: {integrity: sha512-jx325RhRVnS9DdFbeF511z0T0WEqEoMl1uCE3LoZ6VaZZm7ytatxbum0B8bCTmaiV0KsU+4TtLGTGevCic7SWg==} peerDependencies: @@ -17132,7 +17346,7 @@ packages: strip-indent: 3.0.0 dev: true - /redoc-cli@0.13.20(core-js@3.20.3)(react-is@16.13.1)(webpack@5.76.1): + /redoc-cli@0.13.20(core-js@3.20.3)(react-is@17.0.2)(webpack@5.76.1): resolution: {integrity: sha512-mmaJFyaAS+kzh2GwX7pi1x4K/zbQynJFv9S4mp3Ra5Rw611XxKjWmuVF3ccPV+TAGEe0rU3fYkMuOQg1pA8RWw==} engines: {node: '>=12.0.0'} hasBin: true @@ -17146,7 +17360,7 @@ packages: react: 17.0.2 react-dom: 17.0.2(react@17.0.2) redoc: 2.0.0-rc.77(core-js@3.20.3)(mobx@6.8.0)(react-dom@17.0.2)(react@17.0.2)(styled-components@5.3.9)(webpack@5.76.1) - styled-components: 5.3.9(react-dom@17.0.2)(react-is@16.13.1)(react@17.0.2) + styled-components: 5.3.9(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2) update-notifier: 5.1.0 yargs: 17.7.1 transitivePeerDependencies: @@ -17191,7 +17405,7 @@ packages: slugify: 1.4.7 stickyfill: 1.1.1 style-loader: 3.3.2(webpack@5.76.1) - styled-components: 5.3.9(react-dom@17.0.2)(react-is@16.13.1)(react@17.0.2) + styled-components: 5.3.9(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2) swagger2openapi: 7.0.8 url-template: 2.0.8 transitivePeerDependencies: @@ -17729,6 +17943,14 @@ packages: transitivePeerDependencies: - supports-color + /sentence-case@3.0.4: + resolution: {integrity: sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==} + dependencies: + no-case: 3.0.4 + tslib: 2.4.1 + upper-case-first: 2.0.2 + dev: true + /serialize-javascript@6.0.0: resolution: {integrity: sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==} dependencies: @@ -18025,6 +18247,13 @@ packages: yargs: 15.4.1 dev: true + /snake-case@3.0.4: + resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==} + dependencies: + dot-case: 3.0.4 + tslib: 2.4.1 + dev: true + /socket.io-adapter@2.5.2: resolution: {integrity: sha512-87C3LO/NOMc+eMcpcxUBebGjkpMDkNBS9tf7KJqcDsmL936EChtVva71Dw2q4tQcuVC+hAUy4an2NO/sYXmwRA==} dependencies: @@ -18565,7 +18794,7 @@ packages: webpack: 5.76.1(esbuild@0.17.12) dev: true - /styled-components@5.3.9(react-dom@17.0.2)(react-is@16.13.1)(react@17.0.2): + /styled-components@5.3.9(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2): resolution: {integrity: sha512-Aj3kb13B75DQBo2oRwRa/APdB5rSmwUfN5exyarpX+x/tlM/rwZA2vVk2vQgVSP6WKaZJHWwiFrzgHt+CLtB4A==} engines: {node: '>=10'} peerDependencies: @@ -18583,7 +18812,7 @@ packages: hoist-non-react-statics: 3.3.2 react: 17.0.2 react-dom: 17.0.2(react@17.0.2) - react-is: 16.13.1 + react-is: 17.0.2 shallowequal: 1.1.0 supports-color: 5.5.0 dev: true @@ -19719,6 +19948,18 @@ packages: xdg-basedir: 4.0.0 dev: true + /upper-case-first@2.0.2: + resolution: {integrity: sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==} + dependencies: + tslib: 2.4.1 + dev: true + + /upper-case@2.0.2: + resolution: {integrity: sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==} + dependencies: + tslib: 2.4.1 + dev: true + /uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: @@ -19739,6 +19980,13 @@ packages: prepend-http: 2.0.0 dev: true + /url-parse@1.5.10: + resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==} + dependencies: + querystringify: 2.2.0 + requires-port: 1.0.0 + dev: true + /url-template@2.0.8: resolution: {integrity: sha512-XdVKMF4SJ0nP/O7XIPB0JwAEuT9lDIYnNsK8yGVe43y0AWoKeJNdv3ZNWh7ksJ6KqQFjOO6ox/VEitLnaVNufw==} dev: true