@telia-ace/alliance-internal-node-utilities 1.0.2-next.1 → 1.0.2

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @telia-ace/alliance-internal-node-utilities
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 59f0d3f: Remove unnecessary scripts.
8
+ - 9c6dc92: Added utility for creating public static files used in all Alliance portal distributions.
9
+
3
10
  ## 1.0.2-next.1
4
11
 
5
12
  ### Patch Changes
@@ -12,7 +12,8 @@ export declare enum GatewayErrorCodes {
12
12
  NoAppInRequestContext = 10009,
13
13
  NoWorkspaceInRequestContext = 10010,
14
14
  NoManifestInRequestContext = 10011,
15
- NoUserPermissionsInRequestContext = 10012
15
+ NoUserPermissionsInRequestContext = 10012,
16
+ WorkspacePermissionDenied = 10013
16
17
  }
17
18
  export declare enum DatabasesErrorCodes {
18
19
  NoPublicKey = 11000,
package/dist/index.cjs CHANGED
@@ -532,6 +532,7 @@ var GatewayErrorCodes = /* @__PURE__ */ ((GatewayErrorCodes2) => {
532
532
  GatewayErrorCodes2[GatewayErrorCodes2["NoWorkspaceInRequestContext"] = 10010] = "NoWorkspaceInRequestContext";
533
533
  GatewayErrorCodes2[GatewayErrorCodes2["NoManifestInRequestContext"] = 10011] = "NoManifestInRequestContext";
534
534
  GatewayErrorCodes2[GatewayErrorCodes2["NoUserPermissionsInRequestContext"] = 10012] = "NoUserPermissionsInRequestContext";
535
+ GatewayErrorCodes2[GatewayErrorCodes2["WorkspacePermissionDenied"] = 10013] = "WorkspacePermissionDenied";
535
536
  return GatewayErrorCodes2;
536
537
  })(GatewayErrorCodes || {});
537
538
  var DatabasesErrorCodes = /* @__PURE__ */ ((DatabasesErrorCodes2) => {
@@ -599,6 +600,10 @@ const allianceErrors = {
599
600
  httpCode: common.HttpStatus.INTERNAL_SERVER_ERROR,
600
601
  message: "No user permissions in request context."
601
602
  },
603
+ [10013 /* WorkspacePermissionDenied */]: {
604
+ httpCode: common.HttpStatus.FORBIDDEN,
605
+ message: "User does not have access to the current workspace."
606
+ },
602
607
  // databases
603
608
  [11e3 /* NoPublicKey */]: {
604
609
  httpCode: common.HttpStatus.UNAUTHORIZED,
package/dist/index.mjs CHANGED
@@ -527,6 +527,7 @@ var GatewayErrorCodes = /* @__PURE__ */ ((GatewayErrorCodes2) => {
527
527
  GatewayErrorCodes2[GatewayErrorCodes2["NoWorkspaceInRequestContext"] = 10010] = "NoWorkspaceInRequestContext";
528
528
  GatewayErrorCodes2[GatewayErrorCodes2["NoManifestInRequestContext"] = 10011] = "NoManifestInRequestContext";
529
529
  GatewayErrorCodes2[GatewayErrorCodes2["NoUserPermissionsInRequestContext"] = 10012] = "NoUserPermissionsInRequestContext";
530
+ GatewayErrorCodes2[GatewayErrorCodes2["WorkspacePermissionDenied"] = 10013] = "WorkspacePermissionDenied";
530
531
  return GatewayErrorCodes2;
531
532
  })(GatewayErrorCodes || {});
532
533
  var DatabasesErrorCodes = /* @__PURE__ */ ((DatabasesErrorCodes2) => {
@@ -594,6 +595,10 @@ const allianceErrors = {
594
595
  httpCode: HttpStatus.INTERNAL_SERVER_ERROR,
595
596
  message: "No user permissions in request context."
596
597
  },
598
+ [10013 /* WorkspacePermissionDenied */]: {
599
+ httpCode: HttpStatus.FORBIDDEN,
600
+ message: "User does not have access to the current workspace."
601
+ },
597
602
  // databases
598
603
  [11e3 /* NoPublicKey */]: {
599
604
  httpCode: HttpStatus.UNAUTHORIZED,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/alliance-internal-node-utilities",
3
- "version": "1.0.2-next.1",
3
+ "version": "1.0.2",
4
4
  "description": "Utilities used internally by packages developed by team Alliance.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Telia Company AB",