hcloud-sdk 18.0.0 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +17 -184
- package/lib/Hcloud.d.ts +18 -3
- package/lib/Hcloud.js +113 -21
- package/lib/helper/ErrorHelper.js +5 -2
- package/lib/helper/ValidationHelper.d.ts +6 -4
- package/lib/helper/ValidationHelper.js +30 -18
- package/lib/interfaces/agent/index.d.ts +1 -0
- package/lib/interfaces/agent/logging/cloudwatch.d.ts +23 -0
- package/lib/interfaces/agent/logging/index.d.ts +2 -0
- package/lib/interfaces/{fuse → agent/logging}/index.js +2 -3
- package/lib/interfaces/agent/logging/log-collector.d.ts +35 -0
- package/lib/interfaces/agent/logging/log-collector.js +2 -0
- package/lib/interfaces/agent/module/index.d.ts +7 -0
- package/lib/interfaces/agent/module/index.js +2 -0
- package/lib/interfaces/auditor/index.d.ts +0 -1
- package/lib/interfaces/auditor/index.js +0 -1
- package/lib/interfaces/axios/index.d.ts +5 -0
- package/lib/interfaces/cosmo/asset/index.d.ts +45 -9
- package/lib/interfaces/cosmo/asset/index.js +9 -1
- package/lib/interfaces/cosmo/comment/index.d.ts +18 -1
- package/lib/interfaces/cosmo/comment/index.js +13 -1
- package/lib/interfaces/cosmo/event/index.d.ts +34 -5
- package/lib/interfaces/cosmo/event/index.js +16 -2
- package/lib/interfaces/cosmo/share/index.d.ts +100 -8
- package/lib/interfaces/cosmo/share/index.js +21 -0
- package/lib/interfaces/cosmo/space/index.d.ts +6 -0
- package/lib/interfaces/cosmo/stats/index.d.ts +11 -0
- package/lib/interfaces/cosmo/stats/index.js +2 -0
- package/lib/interfaces/cosmo/tag/tag.d.ts +3 -1
- package/lib/interfaces/global/Products.d.ts +0 -1
- package/lib/interfaces/global/Products.js +0 -1
- package/lib/interfaces/global/Views.d.ts +0 -1
- package/lib/interfaces/global/Views.js +0 -1
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +1 -0
- package/lib/interfaces/high5/space/execution/index.d.ts +5 -1
- package/lib/interfaces/high5/space/job/JobLog.d.ts +10 -6
- package/lib/interfaces/high5/space/job/index.d.ts +65 -20
- package/lib/interfaces/high5/space/job/index.js +9 -6
- package/lib/interfaces/high5/wave/dependentInputs.d.ts +42 -0
- package/lib/interfaces/high5/wave/dependentInputs.js +144 -0
- package/lib/interfaces/high5/wave/dependentInputsValidation.d.ts +22 -0
- package/lib/interfaces/high5/wave/dependentInputsValidation.js +220 -0
- package/lib/interfaces/high5/wave/index.d.ts +9 -0
- package/lib/interfaces/high5/wave/index.js +4 -0
- package/lib/interfaces/idp/index.d.ts +3 -3
- package/lib/interfaces/idp/index.js +3 -3
- package/lib/interfaces/idp/oauth/device.d.ts +18 -0
- package/lib/interfaces/idp/oauth/device.js +2 -0
- package/lib/interfaces/idp/oauth/index.d.ts +17 -4
- package/lib/interfaces/idp/organization/index.d.ts +1 -0
- package/lib/interfaces/idp/organization/index.js +1 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +4 -0
- package/lib/interfaces/idp/user/Message.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +1 -9
- package/lib/interfaces/idp/user/Scopes.js +0 -12
- package/lib/interfaces/idp/user/index.d.ts +3 -0
- package/lib/interfaces/mailer/index.d.ts +20 -1
- package/lib/interfaces/mailer/index.js +14 -2
- package/lib/interfaces/nats/index.d.ts +30 -32
- package/lib/interfaces/nats/index.js +103 -117
- package/lib/interfaces/shorts/index.d.ts +7 -0
- package/lib/interfaces/shorts/index.js +6 -0
- package/lib/service/agent/bundle/dev/index.js +4 -1
- package/lib/service/agent/bundle/index.js +4 -1
- package/lib/service/agent/context/index.js +4 -1
- package/lib/service/agent/index.d.ts +6 -0
- package/lib/service/agent/index.js +18 -1
- package/lib/service/agent/installer/index.js +4 -1
- package/lib/service/agent/logging/index.d.ts +69 -0
- package/lib/service/agent/logging/index.js +117 -0
- package/lib/service/agent/module/index.d.ts +36 -0
- package/lib/service/agent/module/index.js +65 -0
- package/lib/service/auditor/index.js +4 -1
- package/lib/service/auditor/internal/index.js +4 -1
- package/lib/service/bouncer/features/index.js +4 -1
- package/lib/service/bouncer/index.js +5 -2
- package/lib/service/cosmo/asset/index.d.ts +49 -3
- package/lib/service/cosmo/asset/index.js +111 -5
- package/lib/service/cosmo/comment/index.d.ts +10 -37
- package/lib/service/cosmo/comment/index.js +20 -43
- package/lib/service/cosmo/event/index.js +4 -1
- package/lib/service/cosmo/folder/index.js +4 -1
- package/lib/service/cosmo/index.d.ts +3 -0
- package/lib/service/cosmo/index.js +11 -1
- package/lib/service/cosmo/internal/index.js +4 -1
- package/lib/service/cosmo/internal/space/index.js +4 -1
- package/lib/service/cosmo/location/index.js +4 -1
- package/lib/service/cosmo/namespace/index.d.ts +15 -1
- package/lib/service/cosmo/namespace/index.js +21 -1
- package/lib/service/cosmo/organization/index.js +4 -1
- package/lib/service/cosmo/permissions/index.js +4 -1
- package/lib/service/cosmo/production/index.js +4 -1
- package/lib/service/cosmo/share/index.d.ts +55 -29
- package/lib/service/cosmo/share/index.js +71 -35
- package/lib/service/cosmo/space/index.d.ts +28 -1
- package/lib/service/cosmo/space/index.js +45 -1
- package/lib/service/cosmo/stats/index.d.ts +35 -0
- package/lib/service/cosmo/stats/index.js +58 -0
- package/lib/service/cosmo/tag/index.d.ts +13 -0
- package/lib/service/cosmo/tag/index.js +22 -1
- package/lib/service/dali/DaliAvatar.d.ts +0 -6
- package/lib/service/dali/DaliAvatar.js +4 -11
- package/lib/service/dali/avatar/DaliCosmoSpace.js +4 -1
- package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +2 -1
- package/lib/service/dali/avatar/DaliHigh5Pool.js +5 -2
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +2 -1
- package/lib/service/dali/avatar/DaliHigh5Space.js +5 -2
- package/lib/service/dali/avatar/DaliOAuthApp.d.ts +2 -1
- package/lib/service/dali/avatar/DaliOAuthApp.js +5 -2
- package/lib/service/dali/avatar/DaliOrganization.d.ts +2 -1
- package/lib/service/dali/avatar/DaliOrganization.js +5 -2
- package/lib/service/dali/avatar/DaliServiceAccount.d.ts +1 -1
- package/lib/service/dali/avatar/DaliServiceAccount.js +6 -3
- package/lib/service/dali/avatar/DaliTeam.d.ts +2 -1
- package/lib/service/dali/avatar/DaliTeam.js +5 -2
- package/lib/service/dali/avatar/DaliUser.d.ts +2 -1
- package/lib/service/dali/avatar/DaliUser.js +5 -2
- package/lib/service/dali/index.js +4 -1
- package/lib/service/high5/execution/index.js +4 -1
- package/lib/service/high5/execution/log/index.js +4 -1
- package/lib/service/high5/execution/status/index.js +4 -1
- package/lib/service/high5/index.js +4 -1
- package/lib/service/high5/internal/index.js +4 -1
- package/lib/service/high5/internal/space/index.js +4 -1
- package/lib/service/high5/internal/space/job/index.js +4 -1
- package/lib/service/high5/internal/space/job/log/index.js +4 -1
- package/lib/service/high5/joinToken/index.js +4 -1
- package/lib/service/high5/space/database/document/array/index.js +4 -1
- package/lib/service/high5/space/database/document/index.js +4 -1
- package/lib/service/high5/space/database/document/number/index.js +4 -1
- package/lib/service/high5/space/database/index.js +4 -1
- package/lib/service/high5/space/event/index.js +4 -1
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +4 -1
- package/lib/service/high5/space/event/stream/design/index.js +6 -3
- package/lib/service/high5/space/event/stream/design/snapshot/index.js +4 -1
- package/lib/service/high5/space/event/stream/index.js +4 -1
- package/lib/service/high5/space/execution/index.d.ts +2 -1
- package/lib/service/high5/space/execution/index.js +7 -3
- package/lib/service/high5/space/execution/log/index.js +4 -1
- package/lib/service/high5/space/execution/status/index.js +4 -1
- package/lib/service/high5/space/index.d.ts +10 -0
- package/lib/service/high5/space/index.js +25 -5
- package/lib/service/high5/space/job/index.js +4 -1
- package/lib/service/high5/space/job/log/index.js +4 -1
- package/lib/service/high5/space/node/index.js +4 -1
- package/lib/service/high5/space/pool/index.d.ts +11 -0
- package/lib/service/high5/space/pool/index.js +22 -1
- package/lib/service/high5/space/secret/index.js +4 -1
- package/lib/service/high5/space/stat/index.js +4 -1
- package/lib/service/high5/space/wave/index.js +4 -1
- package/lib/service/high5/space/webhook/index.js +4 -1
- package/lib/service/high5/space/webhook/log/index.js +4 -1
- package/lib/service/high5/stat/index.js +4 -1
- package/lib/service/high5/wave/index.js +4 -1
- package/lib/service/high5/wave/s3/index.js +5 -2
- package/lib/service/idp/guest/index.js +4 -1
- package/lib/service/idp/index.js +4 -1
- package/lib/service/idp/internal/index.js +4 -1
- package/lib/service/idp/oauth/device.d.ts +131 -0
- package/lib/service/idp/oauth/device.js +177 -0
- package/lib/service/idp/oauth/index.d.ts +3 -0
- package/lib/service/idp/oauth/index.js +11 -1
- package/lib/service/idp/organization/index.d.ts +9 -0
- package/lib/service/idp/organization/index.js +22 -3
- package/lib/service/idp/organization/license/index.js +4 -1
- package/lib/service/idp/organization/member/index.js +5 -2
- package/lib/service/idp/organization/member/invitations/index.d.ts +19 -0
- package/lib/service/idp/organization/member/invitations/index.js +23 -1
- package/lib/service/idp/organization/service-accounts/index.d.ts +11 -1
- package/lib/service/idp/organization/service-accounts/index.js +22 -2
- package/lib/service/idp/organization/settings/domain/index.js +4 -1
- package/lib/service/idp/organization/settings/domain/saml/index.js +4 -1
- package/lib/service/idp/organization/settings/index.js +4 -1
- package/lib/service/idp/organization/settings/oauth/index.d.ts +10 -0
- package/lib/service/idp/organization/settings/oauth/index.js +21 -1
- package/lib/service/idp/organization/stat/index.js +4 -1
- package/lib/service/idp/organization/team/index.d.ts +10 -0
- package/lib/service/idp/organization/team/index.js +21 -1
- package/lib/service/idp/registration/index.js +4 -1
- package/lib/service/idp/user/index.d.ts +8 -0
- package/lib/service/idp/user/index.js +20 -3
- package/lib/service/idp/user/license/index.js +4 -1
- package/lib/service/idp/user/message/index.d.ts +1 -0
- package/lib/service/idp/user/message/index.js +4 -1
- package/lib/service/idp/user/password/index.js +4 -1
- package/lib/service/idp/user/settings/connections/index.js +4 -1
- package/lib/service/idp/user/settings/general/index.js +4 -1
- package/lib/service/idp/user/settings/index.js +4 -1
- package/lib/service/idp/user/settings/notifications/index.js +4 -1
- package/lib/service/idp/user/settings/oauthApps/index.js +4 -1
- package/lib/service/idp/user/settings/pats/index.js +4 -1
- package/lib/service/idp/user/settings/twoFactor/index.js +4 -1
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +4 -1
- package/lib/service/mailer/index.js +5 -2
- package/lib/service/mailer/internal/index.d.ts +2 -2
- package/lib/service/mailer/internal/index.js +5 -2
- package/lib/service/mothership/index.js +4 -1
- package/lib/service/nats/index.d.ts +7 -0
- package/lib/service/nats/index.js +19 -1
- package/lib/service/shorts/index.js +4 -1
- package/lib/service/shorts/internal/index.d.ts +6 -3
- package/lib/service/shorts/internal/index.js +20 -6
- package/lib/utils/bouncer/features/Provider.js +0 -1
- package/package.json +2 -2
- package/lib/interfaces/fuse/index.d.ts +0 -3
- package/lib/interfaces/fuse/space/cronjob/Cronjob.d.ts +0 -38
- package/lib/interfaces/fuse/space/cronjob/Cronjob.js +0 -8
- package/lib/interfaces/fuse/space/cronjob/CronjobLog.d.ts +0 -16
- package/lib/interfaces/fuse/space/index.d.ts +0 -22
- package/lib/interfaces/fuse/space/index.js +0 -11
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +0 -32
- package/lib/service/dali/avatar/DaliFuseSpace.js +0 -59
- package/lib/service/fuse/index.d.ts +0 -20
- package/lib/service/fuse/index.js +0 -48
- package/lib/service/fuse/internal/index.d.ts +0 -10
- package/lib/service/fuse/internal/index.js +0 -32
- package/lib/service/fuse/internal/space/cronjob/index.d.ts +0 -7
- package/lib/service/fuse/internal/space/cronjob/index.js +0 -17
- package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +0 -17
- package/lib/service/fuse/internal/space/cronjob/log/index.js +0 -34
- package/lib/service/fuse/internal/space/index.d.ts +0 -26
- package/lib/service/fuse/internal/space/index.js +0 -51
- package/lib/service/fuse/space/cronjob/index.d.ts +0 -145
- package/lib/service/fuse/space/cronjob/index.js +0 -201
- package/lib/service/fuse/space/cronjob/log/index.d.ts +0 -35
- package/lib/service/fuse/space/cronjob/log/index.js +0 -58
- package/lib/service/fuse/space/index.d.ts +0 -97
- package/lib/service/fuse/space/index.js +0 -153
- /package/lib/interfaces/{fuse/space/cronjob/CronjobLog.js → agent/logging/cloudwatch.js} +0 -0
package/changelog.md
CHANGED
|
@@ -1,190 +1,23 @@
|
|
|
1
|
-
## [
|
|
2
|
-
|
|
3
|
-
### ⚠ BREAKING CHANGES
|
|
4
|
-
|
|
5
|
-
* remove unused single asset move endpoint
|
|
6
|
-
* add namespaceName parameter to tag methods
|
|
7
|
-
* entity of DetailedRole.permissions
|
|
8
|
-
* remove asset tags and categories
|
|
9
|
-
* asset status definition
|
|
10
|
-
* move fetchShareAssets to /shareId/assets
|
|
1
|
+
## [19.1.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v19.0.0...v19.1.0) (2026-04-28)
|
|
11
2
|
|
|
12
3
|
### Features
|
|
13
4
|
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* add
|
|
17
|
-
* add
|
|
18
|
-
* add
|
|
19
|
-
* add
|
|
20
|
-
* add
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* add guest methods ([f2d3903](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f2d39039670c632a06af05ef61f7745412d0ce95))
|
|
30
|
-
* add includePermissions parameter to getAsset ([633d70e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/633d70ed9c2c3bdfc49fd96afb313244fd4086b0))
|
|
31
|
-
* add includeTrash option in search assets ([b8b56fa](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b8b56fa2be7ab70e52bd734123ae8341c7a5b406))
|
|
32
|
-
* add internal cosmo endpoint for space/org housekeep ([4d5f9bb](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4d5f9bbf7bf57fe6bfc38a5cf425f666b3005df4))
|
|
33
|
-
* add internal endpoints for audit logs housekeep after asset deletion ([4a34ff1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4a34ff19607330505fd9687c1a95cecefc187604))
|
|
34
|
-
* add isAgent to reduced user type ([5a18ba5](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5a18ba588c8b78495b384e1ad7ea915c505dd0b8))
|
|
35
|
-
* add isGuest to user DTOs ([99ff341](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/99ff3419398ce9efee8bff819c8ea80355bbb805))
|
|
36
|
-
* add listSpaceUsers to cosmo ([f90eda5](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f90eda5bb9920a11fa0b3e7582ee0b26da7a2060))
|
|
37
|
-
* add mentioned users to comment ([e8e35cb](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e8e35cb01d6675ed46d1bb3bb2c1abb9f257c6c2))
|
|
38
|
-
* add method to fetch share details ([e6a18f8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e6a18f8925850b074b33faa9eb43b5a3b1b405be))
|
|
39
|
-
* add missing endpoints to assign tags to asset and remove them ([a41dd57](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a41dd57b1b4676f2431a2fd18744d24b0bc01dff))
|
|
40
|
-
* add multiple methods to interact with shares ([4b06d01](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4b06d01403459e7050945ba184b4137bf38f6a78))
|
|
41
|
-
* add namespace parameter to cosmo org search ([6554adc](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6554adc486742ed7142c641a98582afc5d70310e))
|
|
42
|
-
* add namespace parameter to fetch asset ([bfaea15](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/bfaea15fc6389b210cb88ff68ea42844b2ba910d))
|
|
43
|
-
* add namespace parameter to trash asset search ([2d5360c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2d5360c52ef7c78288c6b7b41ddb3c996faeb940))
|
|
44
|
-
* add namespace support to Asset ([c35eacd](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c35eacd4f6ca9e80fd1c3d39aa096922488bf751))
|
|
45
|
-
* add nats support for shares ([9373df1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9373df10d777468695f181f11f95c4077cc9e176))
|
|
46
|
-
* add patch share method ([b5aecd5](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b5aecd5d1461b52cb1564fb6e3c7a3d44957a891))
|
|
47
|
-
* add permissions enum to SDK ([ef6853c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ef6853cddb4a4d5cd5ab2d7d15125bc1016c314b))
|
|
48
|
-
* add permissions to cosmo assets ([096bf2d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/096bf2da631930b2c4183a3776a61a150544fec1))
|
|
49
|
-
* add reduced space and org to base asset interface ([db2d177](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/db2d1772729f393774624a3484d2047b812c769e))
|
|
50
|
-
* add replies to comments ([6632e46](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6632e463a407fcbe2bd55ed32fba72ff014f6c03))
|
|
51
|
-
* add reply as possible return type to comment operations ([52013d8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/52013d8e19f224de20f2a8c105c118069de014c0))
|
|
52
|
-
* add roles to nats subject ([4c93654](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4c936540291aa57fe3c7130f880c0e57811c67d3))
|
|
53
|
-
* add shared parent to assets and folders ([7c12f86](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7c12f86d4e85bc64cd0f115257cef720e81d535f))
|
|
54
|
-
* add shareIdHMAC to share's linkShare ([f374bd8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f374bd85d6f86f9ffad45d60b54268676a8b18be))
|
|
55
|
-
* add Shorts backend ([56d19e2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/56d19e2dd004c696edc9aea347c82510246f7f65))
|
|
56
|
-
* add sorting to assetSearch ([b089d70](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b089d70a67ca946d9e38354d63aaf3c27c8a365b))
|
|
57
|
-
* add space link and unlink endpoints; update cosmo space interface ([16e6851](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/16e6851758c752773c62ea534c91bcfacc783959))
|
|
58
|
-
* add status to nats subject and to log event type ([2da48a7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2da48a70f344f04d89c23277769a26cc81e68659))
|
|
59
|
-
* add storageUsed to cosmo spaces ([e226eb1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e226eb17995c6febff0a5db634654935c628649c))
|
|
60
|
-
* add support for ids without leading underscore ([e375732](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e3757322cce21e6fafd32d93ff68ca3a19cd7a35))
|
|
61
|
-
* add support to load reply samples ([d5835ec](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d5835ecdedfbf9920ad4c9f4f091d8254423fa2c))
|
|
62
|
-
* add supported file extensions ([2e27f26](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2e27f269d39a85426afa9493b6046315e3f7bc07))
|
|
63
|
-
* add tag name and color validation ([46b08cf](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/46b08cf327c7502b4426ab9b05038bc95373ed03))
|
|
64
|
-
* add tag reference to asset interface ([7dcae30](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7dcae30710551dd32e049fb9933e5d3a2364dd35))
|
|
65
|
-
* add tag to auditor logging events ([a2a89cd](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a2a89cdf7e3fa357ada0874f61c8583a5c69a89f))
|
|
66
|
-
* add tags crud endpoints ([263d05b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/263d05b2f10b6534cf774d7d60650238d60dea30))
|
|
67
|
-
* add tags to nats subject ([0dc2d8d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/0dc2d8d3361a777a651cc9e6d6f01098f280cdee))
|
|
68
|
-
* add type to comments and replies for distuinghisment ([1276471](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1276471a9e3b126a4bdf1f0340ba63cd1ddc2ee4))
|
|
69
|
-
* add type to Item ([7f00eed](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7f00eed7528340fb68278c634b01895c4c172dfb))
|
|
70
|
-
* add upload to asset create response ([0eb61a0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/0eb61a0fd760cf844ac1e7c66cbeaa3e0d65494a))
|
|
71
|
-
* add uploadStatus to asset ([fd25344](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/fd2534469a256e9df5e5639ba294e6f197f8a7a3))
|
|
72
|
-
* add x-hcloud-origin header ([7a916a3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7a916a31f5f00b71e92518887cb83848afba76f4))
|
|
73
|
-
* apply NamespaceRushStatus to changeStatus ([cbac327](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/cbac3270dd767151c7801fe347d8c0cb77955237))
|
|
74
|
-
* apply share permissions for all assets ([4ea5404](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4ea5404e6d7992aa803d6708e9434cb08e545d91))
|
|
75
|
-
* change all cosmo objects id props into _id to streamline with other products ([4f748ad](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4f748ada33c6e2e1b8b07c5130c8a56a8ea2d15a))
|
|
76
|
-
* change operator to comparator in AssetFilter ([87bba65](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/87bba655f96597376a7f1846d1c9254767733a56))
|
|
77
|
-
* consolidate share and trash search into org search endpoint ([88b3fe5](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/88b3fe50978a17baa7d70958ca9addc8e6665c26))
|
|
78
|
-
* **cosmo:** add optional permissions to space ([3f2372a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3f2372ad4262d4fbaa83dfeabdf9f2deebaeda0d))
|
|
79
|
-
* decrease nats getconnect delay to 1000 ([92c1050](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/92c10507f327aa18d4389180f0dc758a49317366))
|
|
80
|
-
* decrease sub time to 500ms ([debaac3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/debaac397ec658702e1bcfe1ace8449383661138))
|
|
81
|
-
* define available status values for asset namespaces ([bbad9cc](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/bbad9cc27326ce09f8133f00401ec62386a5e27c))
|
|
82
|
-
* delte endpoints take id arrays instead of single ids ([ed91f11](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ed91f112edad9443db6075c7648aa06d8a6cd4b6))
|
|
83
|
-
* extend email interface by COSMO_USER_ADDED_TO_SPACE action ([26eb00d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/26eb00d0ca61990e7d48c5a63913b6900a1a818e))
|
|
84
|
-
* extend email interface by COSMO_USER_REMOVED_FROM_SPACE action ([9cdec42](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9cdec420c89acd8b8dc9f9d0d436b43f61b22cd3))
|
|
85
|
-
* extend NatsObjectType ([a9f3a53](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a9f3a53827049cfee3e7b14b1f917f17d17eecae))
|
|
86
|
-
* implement cosmo comment related endpoints ([a52a1dc](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a52a1dcc6c2de5bb2ec1ea540049de29a2039087))
|
|
87
|
-
* implement cosmo folder related endpoints ([c212ba2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c212ba2a2f3c358a619940d30b128cb373816fcb))
|
|
88
|
-
* implement cosmo location related endpoints ([ec9d997](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ec9d997273ab1bac620b59bad5b08ced94934bb3))
|
|
89
|
-
* implement cosmo namespace related endpoints ([5b46e1e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5b46e1e7a5f4a9bfad7605a87e85bf971200f678))
|
|
90
|
-
* implement cosmo org related endpoints ([22d4894](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/22d48942febc6ac4640c803ff7d111a8599d872a))
|
|
91
|
-
* implement cosmo production related endpoints ([1f5cd2f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1f5cd2fc270e0c52c5a8d112db002052771ac55e))
|
|
92
|
-
* implement cosmo share related endpoints ([9c739bd](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9c739bda175b4a3c284ccb6b9f54d1af67f3e357))
|
|
93
|
-
* implement cosmo space related endpoints ([e2445e5](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e2445e5c1e80cc086b35df7e587b11f1f135d1c0))
|
|
94
|
-
* initialize CosmoService and add all asset related endpoints ([345e12a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/345e12a52d0e6bee7a68ac3129c3fa302c44fbed))
|
|
95
|
-
* introduce a new endpoint to grep all users allowed to be mentioned for one asset asset ([6b2384e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6b2384e0f017fb1aeac358736fbec0a66faba6ba))
|
|
96
|
-
* introduce assetId property for audit log ([e689e97](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e689e979eee55be2a922980f213928228796b315))
|
|
97
|
-
* introduce cosmo event endpoint and interface ([8f4901b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8f4901bf4725e60e1d4eeeb2b1c00522c0d0cb85))
|
|
98
|
-
* make permissions enum have a string value ([b8eba94](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b8eba94e3b845aca55678d2853797e6d7b6f8d34))
|
|
99
|
-
* make recursive optional and make assetFilter an array in searchAssets ([c9d4292](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c9d42923f14bcb78215736972069838e127ded49))
|
|
100
|
-
* new version ([fa15df2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/fa15df2640ec4f0cde619b7109d629bf35e2ef6f))
|
|
101
|
-
* reflect the changes on the bulk-move endpoint to support copy ([312072e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/312072eec861be146dc820cec0bc3e320c2d3096))
|
|
102
|
-
* remove asset tags and categories ([a4622d6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a4622d62dab42d258704149328f183c427dbf23f))
|
|
103
|
-
* remove bulk add cosmo events endpoint ([e6bbf0c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e6bbf0c4bffd8b5d6f17307aee7e9f7f3fe1da41))
|
|
104
|
-
* remove share search endpoint ([876ae9c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/876ae9ccfd73453c4a59d59e9b4c0a2fd354589e))
|
|
105
|
-
* remove trash search endpoint ([b5c7375](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b5c737559f80c94659c946a7be95e95a3b15d013))
|
|
106
|
-
* revert last change ([13ba2cb](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/13ba2cba8d06cdda46abc26df1f1cf4f70f1a2d9))
|
|
107
|
-
* rework asset interfaces ([5901d2f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5901d2f9fc542bcdacf0e843063cbefc4b27de64))
|
|
108
|
-
* rework cosmo search to accept an object as param ([ffa0059](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ffa0059e610db04d13a2da4d330b5abf233f3fcc))
|
|
109
|
-
* rework every method to return MaybeRaw if raw is true ([68278ba](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/68278bac2ed318b50eb036fd020233951e5ab469))
|
|
110
|
-
* rework params of searchAssetsInTrashOfSpace ([88b3839](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/88b3839d7c2c58c8057c4c91c3b9252bbf1d0098))
|
|
111
|
-
* searchRoles returns DetailedRole[] ([2f087c2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2f087c2c5d85a4e2be399ba5fe7729e9d7bc9a7d))
|
|
112
|
-
* trigger new version build ([a12fcc6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a12fcc646f71d50d5189215141cd5844472493a6))
|
|
113
|
-
* unify Fuse backend into High5 ([6d73104](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6d73104376c58cbb2a41ac94816690e5ee311c5a))
|
|
5
|
+
* add an endpoint for sending share email after public link get's clicked ([5c1d127](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5c1d127e26706edecba15aec7d06cadece1c3bfd))
|
|
6
|
+
* add arch to installer versions ([7aa7e6c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7aa7e6cf0d2a73f38dae9538e95db910b66a133f))
|
|
7
|
+
* add comment completion ([8f494c4](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8f494c40af4f8019ba13b7e15f2b5eb19cdac148))
|
|
8
|
+
* add position to tags ([522891b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/522891ba1ba0daf54a8c6160ce64d9055fd6e9e2))
|
|
9
|
+
* add queuePosition and queueTotal to Asset type ([e25ba33](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e25ba334038fccb876f3f4eb0036567aa7c3083c))
|
|
10
|
+
* add reorderTags method to sort tags in Cosmo ([a1b70d1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a1b70d149b196b19df36c687ecb1c04ddda6c66c))
|
|
11
|
+
* add sorting options for comments by timecode and creator ([b28816c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b28816c678078ce8cf9c3c462458f5a069c3b7a9))
|
|
12
|
+
* change thumbnail resolution and add posterframe ([d34eabf](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d34eabffeed7a1f3cddaf742e43040858e894339))
|
|
13
|
+
* extend asset response with permission and author details in namespaces ([5f12f9a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5f12f9a3d89adb8af8b1bdb7c5028ecc51110729))
|
|
14
|
+
* extend input to be optionally be dependent ([14f0e59](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/14f0e590fc0808cee1586397f517f86fb74ad367))
|
|
15
|
+
* extend node input to hold optional if property to use for dependent fields ([8afd90a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8afd90aa38894251adceee8b1e01b80fd6f4b736))
|
|
16
|
+
* **high5:** align getStreamExecutionPackage with design caching changes ([600cf14](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/600cf14d9a0f7d5f120fd05381187031f6f162e7))
|
|
17
|
+
* include org and space IDs in ExtendedExecutionPackage ([4ac0108](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4ac0108d9e1f2e70c98cfe14df9f5b3258fe1770))
|
|
18
|
+
* includes thumbnailUrls of first four assets in share object ([738010a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/738010a33ef056a91510e1f117e2b536c43278bd))
|
|
19
|
+
* includes thumbnailUrls of first four assets in share object ([f239f80](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f239f80b651817b83e8099de8ef079731bfc031e))
|
|
114
20
|
|
|
115
21
|
### Bug Fixes
|
|
116
22
|
|
|
117
|
-
*
|
|
118
|
-
* add /team|/user to permissions assign call ([0aa3e88](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/0aa3e88f9afdb293bfc778cc2bf441253632a072))
|
|
119
|
-
* add fileSize to VideoMetadat ([c3173cd](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c3173cdfc076779a3d1706a836e1d401f759e6b4))
|
|
120
|
-
* add Folder to return type of global search ([8a768e8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8a768e8aad7a7cc1543e38a30733d70f6d5f423f))
|
|
121
|
-
* add mentions to editComment ([381a5f2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/381a5f2d0aa8158672584787809f994d86285509))
|
|
122
|
-
* add missing preventTTL property to AuditLogCreate ([aa6d79a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/aa6d79af99b54a356779a0eac9bf846007d59956))
|
|
123
|
-
* add namespace reference to tags nats subject ([1c17abd](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1c17abd9a165e1419862be53732ed1f9104f7afb))
|
|
124
|
-
* add namespaceName parameter to tag methods ([5aa995f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5aa995f60e38290e71e863e246bd116fa128b49a))
|
|
125
|
-
* add possible AudioMetadata array type to Media ([86ea944](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/86ea944d1679e001ecf0c831cce09369e5c5f393))
|
|
126
|
-
* add possible AudioMetadata array type to Media ([31cbf84](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/31cbf8475bcc191b31a3ee2c3da4cbb39ed5ba5d))
|
|
127
|
-
* add refId to listComments ([3864d8a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3864d8a651a7dabf88d0bf005383a586d92093e9))
|
|
128
|
-
* add satus 'none' to asset rush status ([4201e23](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4201e23768dd363ba01ecdd37f480c2c483e827e))
|
|
129
|
-
* add sorted string map to designer node input values ([a63e5d6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a63e5d6fa54c4c7d08594457a0d8e6197411547b))
|
|
130
|
-
* add sorted string map to designer node input values ([585366c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/585366cdca53d6a18a556899f924f2e78856ea56))
|
|
131
|
-
* adjust response of status change endpoint to be of type Asset ([dc3f233](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/dc3f233b7924af737e305a9366db08ac3b050a19))
|
|
132
|
-
* apply /name to space rename url ([4c0e85d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4c0e85d93eb7070f6c9d8a276dc41fbbf9ea55bf))
|
|
133
|
-
* asset status definition ([12da3a0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/12da3a072b2b00c96b58594e1c160f8e651fa786))
|
|
134
|
-
* audit log queue helper ([b74960d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b74960dcf9a9b16ff3d2a73f080545280d9b08bd))
|
|
135
|
-
* change breadcrumb type to be Asset or CosmoSpace over Space ([7e7e1a4](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7e7e1a460ac11cb7fab3b38fe459d059b0c3b148))
|
|
136
|
-
* change cosmo nats update object to type array ([73ba1ff](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/73ba1ffd22243c4499bcf10c1b8d2535d4af8b4e))
|
|
137
|
-
* change index signature type to record for shares ([458da0a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/458da0a54de0c5a0017e6b5241c12a9f5a213ba8))
|
|
138
|
-
* change return type of fetchSHaredAssets to (Asset | Folder)[] ([3a7b3ee](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3a7b3ee6150f7f30bc30578cfb54f48d475ba1b8))
|
|
139
|
-
* changed map to index signature for shares ([45f01f3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/45f01f3a1f9331ed2e8961867f312bddb2915c20))
|
|
140
|
-
* check for given window object ([39a391c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/39a391ce0eba9a511b828a8b0c79bd679498e35c))
|
|
141
|
-
* check for given window object ([4fc5ec1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4fc5ec192f90543c92d525eda0f1f2d8d9caed21))
|
|
142
|
-
* check for given window object ([1340c82](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1340c829c285669dab7c726046d8ebbc0a587dcb))
|
|
143
|
-
* check for given window object ([4ae3dcf](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4ae3dcf4b9f2edd01239105aea71513cd0af080b))
|
|
144
|
-
* check for given window object ([5fc1930](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5fc19301402b8f3b79465f96812cab32ff6d8335))
|
|
145
|
-
* createFolder request object ([034ceee](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/034ceeebed49b69c7932d510c29470a1e090d8a3))
|
|
146
|
-
* default value for undefined filters ([4a67115](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4a671157e931438a2a6076715efb658b576f37b4))
|
|
147
|
-
* endpoint for trash and restore ([af0bfe7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/af0bfe77659547383321504d5be872be57ec860f))
|
|
148
|
-
* enhance Media to filter by name ([4e61b4e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4e61b4e5fa7e7f8fefb77bf50f9f0535809facd6))
|
|
149
|
-
* entity of DetailedRole.permissions ([9893849](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/98938496f614d36ac4ff9852eab8d9550f71fbee))
|
|
150
|
-
* export DocumentTyp ([d14fb60](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d14fb60e6949bece2ccf0a94b188d204d51b999b))
|
|
151
|
-
* make asset.id asset._id ([8de0cca](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8de0cca27026d68467270bb00ddb827dd3ff8143))
|
|
152
|
-
* make asset.type to be any of ItemType ([14563e6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/14563e60bcd6e7a5c8bc703da4e5c645132b8c1c))
|
|
153
|
-
* make assetFilter for searchInTrash mandatory ([b8fbb2e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b8fbb2e68f6282a5bbf8843983690b6cd9e9adc3))
|
|
154
|
-
* make comment timestamp/annotaitons optional ([46753ae](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/46753ae24090c370db555329f77901386fba1c08))
|
|
155
|
-
* make folder extend item ([f10aa31](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f10aa31ef8c7ceb9f4691a3f599ffef429d781f5))
|
|
156
|
-
* make grantType camel case ([371c99c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/371c99c014f9433ddd26e087cf5753d8cb6d02e8))
|
|
157
|
-
* make VideoMetadata a single object only ([159f3c8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/159f3c8850ca89c8b302e6a8c82a7794c2034ef8))
|
|
158
|
-
* move fileSize from VideoMetadata to Media ([02cede3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/02cede304d982fd8f44f7927ae90e627db1f2381))
|
|
159
|
-
* move grant_type to interface for oauth code exchange ([f391c51](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f391c519a29bd2739fe70eb43ddf9d986db66e28))
|
|
160
|
-
* omit _id in createShare interface ([d68b218](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d68b218d0f1b1423b69adf1520192a3fa9e0b744))
|
|
161
|
-
* redefine asset interface as discriminated union ([44671e6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/44671e66462c763c7e6f9b6759294586ce6899a2))
|
|
162
|
-
* redefine asset interface as discriminated union ([598710d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/598710d77543a5446d5d151ac1d7326692103873))
|
|
163
|
-
* remove shareId from searchRoles and prepend getEndpoint to all methods ([2f690ee](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2f690ee7b5a771474c4cc33bdd8c7fc2bccce766))
|
|
164
|
-
* remove unused single asset move endpoint ([e8917ed](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e8917edbb2ae8fbc683001d79190249d97e3e90a))
|
|
165
|
-
* remove users property of teams as it's not defined in the TeamDto of idp ([4d01acb](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4d01acbba4c22d9501a6177a352f94f59b503be4))
|
|
166
|
-
* rename mentionedUsers to mentions ([e8d8301](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e8d8301be8f39466073e12d019f43a70c21ca103))
|
|
167
|
-
* rename mentionedUsers to mentions in Comment and change type to ReducedUser[] ([f0f5908](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f0f5908503cc7e381bb4a98b36cb998d4926ba70))
|
|
168
|
-
* rename mentions to mentionedUsers in Comment ([02ff72a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/02ff72a5eba2dd99f46a45c475379edf2fc21e17))
|
|
169
|
-
* revert last change as asset and folder are two different interfaces ([d487fbf](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d487fbf4c668749364892737e8a9267b7c2a6e64))
|
|
170
|
-
* revert the cosmo avatar update process ([e82262f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e82262f67469f49b4f484d77203032118de30991))
|
|
171
|
-
* space name regex ([64a6dba](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/64a6dba660f9c6e2dc373a097931ef6ffe1ee95e))
|
|
172
|
-
* type mismatch ([7e0d2fa](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7e0d2fa03f91de23a5f0412e29d1ba272fde04a6))
|
|
173
|
-
* wrong interface assignment for cosmo space ([cb4165d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/cb4165db2ba85125c7ce0aad760b61d4cba42ffe))
|
|
174
|
-
|
|
175
|
-
### Performance Improvements
|
|
176
|
-
|
|
177
|
-
* add account name to execution log and status ([c141d7c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c141d7c48cffa711dedd138b495a53dc05407a81))
|
|
178
|
-
* add messageId to validation helper ([afa4f5b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/afa4f5b232363d1613e2ca82dd9b66ebda7b946a))
|
|
179
|
-
* add method for internal message dispatch endpoint ([f1ed00c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f1ed00c98f4dc98df5e2e7380b99f79dc78538f5))
|
|
180
|
-
* add methods to manage user messages ([c856b3c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c856b3ca922d2db8886364c11ef35edb50dd85b5))
|
|
181
|
-
* add methods to retrieve statistics ([3eaeaf6](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3eaeaf6531616492dcc931e5743aa77a2c0f6883))
|
|
182
|
-
* add Nats subject for system messages ([2e35f56](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2e35f564e998406135f6615ad9a3af308774b78b))
|
|
183
|
-
* add target field with ReducedUser to execution log and status ([51c4e23](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/51c4e233c04c0ea6653eca702795c2a1c78c8bda))
|
|
184
|
-
* close existing NATS connection before reconnecting ([09e4561](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/09e45618243d00357c23b8314ac0f42327c12ffd))
|
|
185
|
-
* migrate Friday features to High5 ([3cec4da](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3cec4da7ff7f47be647c589a9e82e672a6c4bba5))
|
|
186
|
-
* update TargetAgent.target object in Mothership ([80447e2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/80447e23018ed39724928ae41da48ba266d28eac))
|
|
187
|
-
|
|
188
|
-
### Code Refactoring
|
|
189
|
-
|
|
190
|
-
* move fetchShareAssets to /shareId/assets ([5397300](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5397300729d9258b462e8692a8a148cfb92220d6))
|
|
23
|
+
* typo in thumbnail property ([3778bdd](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3778bdd57c91a00425572af8913433efd1279b7f))
|
package/lib/Hcloud.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
2
|
import { HcloudLogger, Options } from "./Base";
|
|
3
|
+
import { RefreshToken } from "./interfaces/axios";
|
|
3
4
|
import AgentService from "./service/agent";
|
|
4
5
|
import AuditorService from "./service/auditor";
|
|
5
6
|
import BouncerService from "./service/bouncer";
|
|
6
7
|
import CosmoService from "./service/cosmo";
|
|
7
8
|
import DaliService from "./service/dali";
|
|
8
|
-
import FuseService from "./service/fuse";
|
|
9
9
|
import High5Service from "./service/high5";
|
|
10
10
|
import IdpService from "./service/idp";
|
|
11
11
|
import MailerService from "./service/mailer";
|
|
@@ -25,8 +25,6 @@ export declare class HCloud {
|
|
|
25
25
|
private _High5?;
|
|
26
26
|
get Idp(): IdpService;
|
|
27
27
|
private _Idp?;
|
|
28
|
-
get Fuse(): FuseService;
|
|
29
|
-
private _Fuse?;
|
|
30
28
|
get Dali(): DaliService;
|
|
31
29
|
private _Dali?;
|
|
32
30
|
get Mailer(): MailerService;
|
|
@@ -39,6 +37,8 @@ export declare class HCloud {
|
|
|
39
37
|
private _Nats?;
|
|
40
38
|
private options;
|
|
41
39
|
private axios;
|
|
40
|
+
private refreshToken;
|
|
41
|
+
private refreshPromise;
|
|
42
42
|
constructor(options: Options);
|
|
43
43
|
/**
|
|
44
44
|
* Sets the server url that the SDK shall do a request to.
|
|
@@ -60,6 +60,14 @@ export declare class HCloud {
|
|
|
60
60
|
* Returns the currently set auth token.
|
|
61
61
|
*/
|
|
62
62
|
getAuthToken(): string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Sets the refresh token and enables auto-fresh
|
|
65
|
+
*/
|
|
66
|
+
setRefreshToken(refreshToken: RefreshToken): HCloud;
|
|
67
|
+
/**
|
|
68
|
+
* Returns the currently set refresh token.
|
|
69
|
+
*/
|
|
70
|
+
getRefreshToken(): RefreshToken | null;
|
|
63
71
|
/**
|
|
64
72
|
* Sets the correlationID which will be sent to hcloud with each request and appears in all
|
|
65
73
|
* logs that are made on behalf of this request, making it easier to debug the application.
|
|
@@ -93,4 +101,11 @@ export declare class HCloud {
|
|
|
93
101
|
* @returns {AxiosInstance} The new AxiosInstance
|
|
94
102
|
*/
|
|
95
103
|
setAxios(axios: AxiosInstance): AxiosInstance;
|
|
104
|
+
/**
|
|
105
|
+
* refreshAccessToken will refresh the access_token using a given refresh_token and set the new access_token and refresh_token in the SDK.
|
|
106
|
+
* If multiple requests trigger a token refresh at the same time, only one request will actually call the token endpoint, while the others will wait for the result of that request and use the same new token.
|
|
107
|
+
*
|
|
108
|
+
* This method will trigger a callback? to enable the returned values to be persisted
|
|
109
|
+
*/
|
|
110
|
+
private refreshAccessToken;
|
|
96
111
|
}
|
package/lib/Hcloud.js
CHANGED
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
2
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
15
|
exports.HCloud = void 0;
|
|
4
|
-
const axios_1 = require("axios");
|
|
16
|
+
const axios_1 = __importDefault(require("axios"));
|
|
5
17
|
const package_json_1 = require("../package.json");
|
|
6
|
-
const ErrorHelper_1 = require("./helper/ErrorHelper");
|
|
18
|
+
const ErrorHelper_1 = __importDefault(require("./helper/ErrorHelper"));
|
|
7
19
|
const axios_2 = require("./interfaces/axios");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const high5_1 = require("./service/high5");
|
|
15
|
-
const
|
|
16
|
-
const mailer_1 = require("./service/mailer");
|
|
17
|
-
const mothership_1 = require("./service/mothership");
|
|
18
|
-
const nats_1 = require("./service/nats");
|
|
19
|
-
const shorts_1 = require("./service/shorts");
|
|
20
|
+
const idp_1 = require("./interfaces/idp");
|
|
21
|
+
const agent_1 = __importDefault(require("./service/agent"));
|
|
22
|
+
const auditor_1 = __importDefault(require("./service/auditor"));
|
|
23
|
+
const bouncer_1 = __importDefault(require("./service/bouncer"));
|
|
24
|
+
const cosmo_1 = __importDefault(require("./service/cosmo"));
|
|
25
|
+
const dali_1 = __importDefault(require("./service/dali"));
|
|
26
|
+
const high5_1 = __importDefault(require("./service/high5"));
|
|
27
|
+
const idp_2 = __importDefault(require("./service/idp"));
|
|
28
|
+
const mailer_1 = __importDefault(require("./service/mailer"));
|
|
29
|
+
const mothership_1 = __importDefault(require("./service/mothership"));
|
|
30
|
+
const nats_1 = __importDefault(require("./service/nats"));
|
|
31
|
+
const shorts_1 = __importDefault(require("./service/shorts"));
|
|
20
32
|
// tslint:disable-next-line
|
|
21
33
|
class HCloud {
|
|
22
34
|
get Agent() {
|
|
@@ -51,16 +63,10 @@ class HCloud {
|
|
|
51
63
|
}
|
|
52
64
|
get Idp() {
|
|
53
65
|
if (this._Idp === undefined) {
|
|
54
|
-
this._Idp = new
|
|
66
|
+
this._Idp = new idp_2.default(this.options, this.axios);
|
|
55
67
|
}
|
|
56
68
|
return this._Idp;
|
|
57
69
|
}
|
|
58
|
-
get Fuse() {
|
|
59
|
-
if (this._Fuse === undefined) {
|
|
60
|
-
this._Fuse = new fuse_1.default(this.options, this.axios);
|
|
61
|
-
}
|
|
62
|
-
return this._Fuse;
|
|
63
|
-
}
|
|
64
70
|
get Dali() {
|
|
65
71
|
if (this._Dali === undefined) {
|
|
66
72
|
this._Dali = new dali_1.default(this.options, this.axios);
|
|
@@ -92,6 +98,8 @@ class HCloud {
|
|
|
92
98
|
return this._Nats;
|
|
93
99
|
}
|
|
94
100
|
constructor(options) {
|
|
101
|
+
this.refreshToken = null;
|
|
102
|
+
this.refreshPromise = null;
|
|
95
103
|
this.options = options;
|
|
96
104
|
this.axios = axios_1.default.create({
|
|
97
105
|
transformRequest: axios_1.default.defaults.transformRequest,
|
|
@@ -112,6 +120,35 @@ class HCloud {
|
|
|
112
120
|
(_a = this.options.logger) === null || _a === void 0 ? void 0 : _a.error(String(error), error);
|
|
113
121
|
return Promise.reject((0, ErrorHelper_1.default)(error));
|
|
114
122
|
});
|
|
123
|
+
// add request interceptor to handle auto token refresh if set
|
|
124
|
+
this.axios.interceptors.request.use((config) => __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
if (!this.refreshToken)
|
|
126
|
+
return config;
|
|
127
|
+
const isExpired = Date.now() >= this.refreshToken.expiresAt - 120 * 1000; // consider token expired if it will expire in the next 120 seconds
|
|
128
|
+
if (isExpired) {
|
|
129
|
+
yield this.refreshAccessToken();
|
|
130
|
+
}
|
|
131
|
+
else if (this.refreshPromise) {
|
|
132
|
+
yield this.refreshPromise;
|
|
133
|
+
}
|
|
134
|
+
return config;
|
|
135
|
+
}));
|
|
136
|
+
// trigger refresh logic in case of 401 has been received and a refresh token is set
|
|
137
|
+
this.axios.interceptors.response.use(res => res, (error) => __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
var _a;
|
|
139
|
+
const originalRequest = error.config;
|
|
140
|
+
if (this.refreshToken) {
|
|
141
|
+
if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 401 && !originalRequest._retry) {
|
|
142
|
+
originalRequest._retry = true;
|
|
143
|
+
const newToken = yield this.refreshAccessToken();
|
|
144
|
+
if (newToken) {
|
|
145
|
+
originalRequest.headers.Authorization = `Bearer ${newToken.access_token}`;
|
|
146
|
+
}
|
|
147
|
+
return this.axios(originalRequest);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return Promise.reject(error);
|
|
151
|
+
}));
|
|
115
152
|
}
|
|
116
153
|
/**
|
|
117
154
|
* Sets the server url that the SDK shall do a request to.
|
|
@@ -147,6 +184,19 @@ class HCloud {
|
|
|
147
184
|
var _a;
|
|
148
185
|
return (_a = this.axios.defaults.headers.common["authorization"]) === null || _a === void 0 ? void 0 : _a.toString();
|
|
149
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* Sets the refresh token and enables auto-fresh
|
|
189
|
+
*/
|
|
190
|
+
setRefreshToken(refreshToken) {
|
|
191
|
+
this.refreshToken = refreshToken;
|
|
192
|
+
return this;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Returns the currently set refresh token.
|
|
196
|
+
*/
|
|
197
|
+
getRefreshToken() {
|
|
198
|
+
return this.refreshToken;
|
|
199
|
+
}
|
|
150
200
|
/**
|
|
151
201
|
* Sets the correlationID which will be sent to hcloud with each request and appears in all
|
|
152
202
|
* logs that are made on behalf of this request, making it easier to debug the application.
|
|
@@ -198,5 +248,47 @@ class HCloud {
|
|
|
198
248
|
setAxios(axios) {
|
|
199
249
|
return (this.axios = axios);
|
|
200
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* refreshAccessToken will refresh the access_token using a given refresh_token and set the new access_token and refresh_token in the SDK.
|
|
253
|
+
* If multiple requests trigger a token refresh at the same time, only one request will actually call the token endpoint, while the others will wait for the result of that request and use the same new token.
|
|
254
|
+
*
|
|
255
|
+
* This method will trigger a callback? to enable the returned values to be persisted
|
|
256
|
+
*/
|
|
257
|
+
refreshAccessToken() {
|
|
258
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
259
|
+
if (!this.refreshToken)
|
|
260
|
+
throw new Error("no refresh token set");
|
|
261
|
+
if (!this.refreshPromise) {
|
|
262
|
+
this.refreshPromise = this.Idp.oAuth
|
|
263
|
+
.exchangeCodeForToken({
|
|
264
|
+
// eslint-disable-next-line camelcase
|
|
265
|
+
grant_type: idp_1.GrantType.REFRESH_TOKEN,
|
|
266
|
+
// eslint-disable-next-line camelcase
|
|
267
|
+
refresh_token: this.refreshToken.token,
|
|
268
|
+
})
|
|
269
|
+
.then(res => {
|
|
270
|
+
var _a, _b, _c, _d;
|
|
271
|
+
this.refreshPromise = null;
|
|
272
|
+
if (res.access_token) {
|
|
273
|
+
this.setAuthToken(`Bearer ${res.access_token}`);
|
|
274
|
+
const newRefreshToken = {
|
|
275
|
+
token: res.refresh_token,
|
|
276
|
+
expiresAt: Date.now() + ((_a = res.expires_in) !== null && _a !== void 0 ? _a : 0) * 1000,
|
|
277
|
+
callback: (_b = this.refreshToken) === null || _b === void 0 ? void 0 : _b.callback,
|
|
278
|
+
};
|
|
279
|
+
this.setRefreshToken(newRefreshToken);
|
|
280
|
+
(_d = (_c = this.refreshToken) === null || _c === void 0 ? void 0 : _c.callback) === null || _d === void 0 ? void 0 : _d.call(_c, res.access_token, newRefreshToken); // call callback to hydrate localStorage with the new refresh token for example
|
|
281
|
+
}
|
|
282
|
+
return res;
|
|
283
|
+
})
|
|
284
|
+
.catch(err => {
|
|
285
|
+
this.refreshPromise = null;
|
|
286
|
+
this.refreshToken = null;
|
|
287
|
+
throw err;
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
return this.refreshPromise;
|
|
291
|
+
});
|
|
292
|
+
}
|
|
201
293
|
}
|
|
202
294
|
exports.HCloud = HCloud;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.default = wrapError;
|
|
4
7
|
exports.isHCloudError = isHCloudError;
|
|
5
|
-
const axios_1 = require("axios");
|
|
6
|
-
const HCloudError_1 = require("../interfaces/global/HCloudError");
|
|
8
|
+
const axios_1 = __importDefault(require("axios"));
|
|
9
|
+
const HCloudError_1 = __importDefault(require("../interfaces/global/HCloudError"));
|
|
7
10
|
function wrapError(error) {
|
|
8
11
|
if (axios_1.default.isAxiosError(error) && error.response) {
|
|
9
12
|
return new HCloudError_1.default(error.response.status, error.response.statusText, error.response.data.code, error.response.data.error, error.response.data.message);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare enum Entity {
|
|
2
2
|
USER_NAME = "USER_NAME",
|
|
3
|
+
USER_PASSWORD = "USER_PASSWORD",
|
|
4
|
+
OAUTH_SECRET_NAME = "OAUTH_SECRET_NAME",
|
|
3
5
|
ORGANIZATION_NAME = "ORGANIZATION_NAME",
|
|
4
6
|
USER_ORGANIZATION_NAME = "USER_ORGANIZATION_NAME",
|
|
5
7
|
TEAM_NAME = "TEAM_NAME",
|
|
@@ -38,15 +40,15 @@ declare enum Entity {
|
|
|
38
40
|
JOB = "JOB",
|
|
39
41
|
JOB_ID = "JOB_ID",
|
|
40
42
|
JOB_LOG_ID = "JOB_LOG_ID",
|
|
41
|
-
FUSE_JOB = "FUSE_JOB",
|
|
42
|
-
CRONJOB_ID = "CRONJOB_ID",
|
|
43
|
-
CRONJOB_LOG_ID = "CRONJOB_LOG_ID",
|
|
44
43
|
NAMESPACE_NAME = "NAMESPACE_NAME",
|
|
45
44
|
MESSAGE_ID = "MESSAGE_ID",
|
|
46
45
|
ARRAY_INDEX = "ARRAY_INDEX",
|
|
47
46
|
URL_SLUG = "URL_SLUG",
|
|
47
|
+
LONG_URL_SLUG = "LONG_URL_SLUG",
|
|
48
48
|
TAG_NAME = "TAG_NAME",
|
|
49
|
-
TAG_COLOR = "TAG_COLOR"
|
|
49
|
+
TAG_COLOR = "TAG_COLOR",
|
|
50
|
+
MODULE_NAME = "MODULE_NAME",
|
|
51
|
+
LOG_COLLECTOR_NAME = "LOG_COLLECTOR_NAME"
|
|
50
52
|
}
|
|
51
53
|
declare class EntityDetails {
|
|
52
54
|
private entity;
|
|
@@ -5,6 +5,8 @@ exports.ValidationHelper = ValidationHelper;
|
|
|
5
5
|
var Entity;
|
|
6
6
|
(function (Entity) {
|
|
7
7
|
Entity["USER_NAME"] = "USER_NAME";
|
|
8
|
+
Entity["USER_PASSWORD"] = "USER_PASSWORD";
|
|
9
|
+
Entity["OAUTH_SECRET_NAME"] = "OAUTH_SECRET_NAME";
|
|
8
10
|
Entity["ORGANIZATION_NAME"] = "ORGANIZATION_NAME";
|
|
9
11
|
Entity["USER_ORGANIZATION_NAME"] = "USER_ORGANIZATION_NAME";
|
|
10
12
|
Entity["TEAM_NAME"] = "TEAM_NAME";
|
|
@@ -43,15 +45,15 @@ var Entity;
|
|
|
43
45
|
Entity["JOB"] = "JOB";
|
|
44
46
|
Entity["JOB_ID"] = "JOB_ID";
|
|
45
47
|
Entity["JOB_LOG_ID"] = "JOB_LOG_ID";
|
|
46
|
-
Entity["FUSE_JOB"] = "FUSE_JOB";
|
|
47
|
-
Entity["CRONJOB_ID"] = "CRONJOB_ID";
|
|
48
|
-
Entity["CRONJOB_LOG_ID"] = "CRONJOB_LOG_ID";
|
|
49
48
|
Entity["NAMESPACE_NAME"] = "NAMESPACE_NAME";
|
|
50
49
|
Entity["MESSAGE_ID"] = "MESSAGE_ID";
|
|
51
50
|
Entity["ARRAY_INDEX"] = "ARRAY_INDEX";
|
|
52
51
|
Entity["URL_SLUG"] = "URL_SLUG";
|
|
52
|
+
Entity["LONG_URL_SLUG"] = "LONG_URL_SLUG";
|
|
53
53
|
Entity["TAG_NAME"] = "TAG_NAME";
|
|
54
54
|
Entity["TAG_COLOR"] = "TAG_COLOR";
|
|
55
|
+
Entity["MODULE_NAME"] = "MODULE_NAME";
|
|
56
|
+
Entity["LOG_COLLECTOR_NAME"] = "LOG_COLLECTOR_NAME";
|
|
55
57
|
})(Entity || (exports.Entity = Entity = {}));
|
|
56
58
|
class EntityDetails {
|
|
57
59
|
constructor(name) {
|
|
@@ -117,6 +119,16 @@ const entityCollection = {
|
|
|
117
119
|
minLength: 3,
|
|
118
120
|
maxLength: 255,
|
|
119
121
|
},
|
|
122
|
+
[Entity.USER_PASSWORD]: {
|
|
123
|
+
pattern: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,255}$/i,
|
|
124
|
+
minLength: 8,
|
|
125
|
+
maxLength: 255,
|
|
126
|
+
},
|
|
127
|
+
[Entity.OAUTH_SECRET_NAME]: {
|
|
128
|
+
pattern: /^[\w\-.]{1,255}$/i,
|
|
129
|
+
minLength: 1,
|
|
130
|
+
maxLength: 255,
|
|
131
|
+
},
|
|
120
132
|
[Entity.ORGANIZATION_NAME]: {
|
|
121
133
|
// Case-insensitive. No spaces or other special characters allowed. Cannot start with a dash, end with a dash, or contain double dashes
|
|
122
134
|
pattern: /^(?!-)(?!.*--)[a-zA-Z0-9-.]{3,64}(?<!-)$/i,
|
|
@@ -311,21 +323,6 @@ const entityCollection = {
|
|
|
311
323
|
minLength: 24,
|
|
312
324
|
maxLength: 24,
|
|
313
325
|
},
|
|
314
|
-
[Entity.FUSE_JOB]: {
|
|
315
|
-
pattern: /^.{1,64}$/i,
|
|
316
|
-
minLength: 1,
|
|
317
|
-
maxLength: 64,
|
|
318
|
-
},
|
|
319
|
-
[Entity.CRONJOB_ID]: {
|
|
320
|
-
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
321
|
-
minLength: 24,
|
|
322
|
-
maxLength: 24,
|
|
323
|
-
},
|
|
324
|
-
[Entity.CRONJOB_LOG_ID]: {
|
|
325
|
-
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
326
|
-
minLength: 24,
|
|
327
|
-
maxLength: 24,
|
|
328
|
-
},
|
|
329
326
|
[Entity.NAMESPACE_NAME]: {
|
|
330
327
|
// Case-insensitive. No spaces or other special characters allowed. Cannot start with a dash, end with a dash, or contain double dashes
|
|
331
328
|
pattern: /^(?!-)(?!.*--)[a-zA-Z0-9-.]{3,64}(?<!-)$/i,
|
|
@@ -347,6 +344,11 @@ const entityCollection = {
|
|
|
347
344
|
minLength: 6,
|
|
348
345
|
maxLength: 6,
|
|
349
346
|
},
|
|
347
|
+
[Entity.LONG_URL_SLUG]: {
|
|
348
|
+
pattern: /^[A-NP-Za-km-z1-9]{34}$/i,
|
|
349
|
+
minLength: 34,
|
|
350
|
+
maxLength: 34,
|
|
351
|
+
},
|
|
350
352
|
[Entity.TAG_NAME]: {
|
|
351
353
|
pattern: /^[a-zA-Z0-9 ]{1,20}$/i,
|
|
352
354
|
minLength: 1,
|
|
@@ -357,4 +359,14 @@ const entityCollection = {
|
|
|
357
359
|
minLength: 7,
|
|
358
360
|
maxLength: 7,
|
|
359
361
|
},
|
|
362
|
+
[Entity.MODULE_NAME]: {
|
|
363
|
+
pattern: /^[\w-.]{3,64}$/i,
|
|
364
|
+
minLength: 3,
|
|
365
|
+
maxLength: 64,
|
|
366
|
+
},
|
|
367
|
+
[Entity.LOG_COLLECTOR_NAME]: {
|
|
368
|
+
pattern: /^[\w-.]{1,64}$/i,
|
|
369
|
+
minLength: 1,
|
|
370
|
+
maxLength: 64,
|
|
371
|
+
},
|
|
360
372
|
};
|