@telia-ace/alliance-internal-node-utilities 1.0.3-next.0 → 1.0.3-next.1
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 +6 -0
- package/dist/exceptions/codes.d.ts +0 -2
- package/dist/index.cjs +0 -10
- package/dist/index.mjs +0 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
2
|
export declare enum GatewayErrorCodes {
|
|
3
|
-
NoMatchingEndpoint = 10000,
|
|
4
3
|
NoObjectId = 10001,
|
|
5
4
|
NoTargetAppHeader = 10002,
|
|
6
5
|
NoTargetWorkspaceHeader = 10003,
|
|
@@ -11,7 +10,6 @@ export declare enum GatewayErrorCodes {
|
|
|
11
10
|
NoUserInRequestContext = 10008,
|
|
12
11
|
NoAppInRequestContext = 10009,
|
|
13
12
|
NoWorkspaceInRequestContext = 10010,
|
|
14
|
-
NoManifestInRequestContext = 10011,
|
|
15
13
|
NoUserPermissionsInRequestContext = 10012,
|
|
16
14
|
WorkspacePermissionDenied = 10013
|
|
17
15
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -519,7 +519,6 @@ ${errors.join(
|
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
var GatewayErrorCodes = /* @__PURE__ */ ((GatewayErrorCodes2) => {
|
|
522
|
-
GatewayErrorCodes2[GatewayErrorCodes2["NoMatchingEndpoint"] = 1e4] = "NoMatchingEndpoint";
|
|
523
522
|
GatewayErrorCodes2[GatewayErrorCodes2["NoObjectId"] = 10001] = "NoObjectId";
|
|
524
523
|
GatewayErrorCodes2[GatewayErrorCodes2["NoTargetAppHeader"] = 10002] = "NoTargetAppHeader";
|
|
525
524
|
GatewayErrorCodes2[GatewayErrorCodes2["NoTargetWorkspaceHeader"] = 10003] = "NoTargetWorkspaceHeader";
|
|
@@ -530,7 +529,6 @@ var GatewayErrorCodes = /* @__PURE__ */ ((GatewayErrorCodes2) => {
|
|
|
530
529
|
GatewayErrorCodes2[GatewayErrorCodes2["NoUserInRequestContext"] = 10008] = "NoUserInRequestContext";
|
|
531
530
|
GatewayErrorCodes2[GatewayErrorCodes2["NoAppInRequestContext"] = 10009] = "NoAppInRequestContext";
|
|
532
531
|
GatewayErrorCodes2[GatewayErrorCodes2["NoWorkspaceInRequestContext"] = 10010] = "NoWorkspaceInRequestContext";
|
|
533
|
-
GatewayErrorCodes2[GatewayErrorCodes2["NoManifestInRequestContext"] = 10011] = "NoManifestInRequestContext";
|
|
534
532
|
GatewayErrorCodes2[GatewayErrorCodes2["NoUserPermissionsInRequestContext"] = 10012] = "NoUserPermissionsInRequestContext";
|
|
535
533
|
GatewayErrorCodes2[GatewayErrorCodes2["WorkspacePermissionDenied"] = 10013] = "WorkspacePermissionDenied";
|
|
536
534
|
return GatewayErrorCodes2;
|
|
@@ -549,10 +547,6 @@ var PortalErrorCodes = /* @__PURE__ */ ((PortalErrorCodes2) => {
|
|
|
549
547
|
})(PortalErrorCodes || {});
|
|
550
548
|
const allianceErrors = {
|
|
551
549
|
// gateway
|
|
552
|
-
[1e4 /* NoMatchingEndpoint */]: {
|
|
553
|
-
httpCode: common.HttpStatus.BAD_REQUEST,
|
|
554
|
-
message: "Could not find endpoint matching request in app manifest."
|
|
555
|
-
},
|
|
556
550
|
[10001 /* NoObjectId */]: {
|
|
557
551
|
httpCode: common.HttpStatus.UNAUTHORIZED,
|
|
558
552
|
message: "No object id available on authenticated user."
|
|
@@ -593,10 +587,6 @@ const allianceErrors = {
|
|
|
593
587
|
httpCode: common.HttpStatus.INTERNAL_SERVER_ERROR,
|
|
594
588
|
message: "No workspace in request context."
|
|
595
589
|
},
|
|
596
|
-
[10011 /* NoManifestInRequestContext */]: {
|
|
597
|
-
httpCode: common.HttpStatus.INTERNAL_SERVER_ERROR,
|
|
598
|
-
message: "No manifest in request context."
|
|
599
|
-
},
|
|
600
590
|
[10012 /* NoUserPermissionsInRequestContext */]: {
|
|
601
591
|
httpCode: common.HttpStatus.INTERNAL_SERVER_ERROR,
|
|
602
592
|
message: "No user permissions in request context."
|
package/dist/index.mjs
CHANGED
|
@@ -514,7 +514,6 @@ ${errors.join(
|
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
var GatewayErrorCodes = /* @__PURE__ */ ((GatewayErrorCodes2) => {
|
|
517
|
-
GatewayErrorCodes2[GatewayErrorCodes2["NoMatchingEndpoint"] = 1e4] = "NoMatchingEndpoint";
|
|
518
517
|
GatewayErrorCodes2[GatewayErrorCodes2["NoObjectId"] = 10001] = "NoObjectId";
|
|
519
518
|
GatewayErrorCodes2[GatewayErrorCodes2["NoTargetAppHeader"] = 10002] = "NoTargetAppHeader";
|
|
520
519
|
GatewayErrorCodes2[GatewayErrorCodes2["NoTargetWorkspaceHeader"] = 10003] = "NoTargetWorkspaceHeader";
|
|
@@ -525,7 +524,6 @@ var GatewayErrorCodes = /* @__PURE__ */ ((GatewayErrorCodes2) => {
|
|
|
525
524
|
GatewayErrorCodes2[GatewayErrorCodes2["NoUserInRequestContext"] = 10008] = "NoUserInRequestContext";
|
|
526
525
|
GatewayErrorCodes2[GatewayErrorCodes2["NoAppInRequestContext"] = 10009] = "NoAppInRequestContext";
|
|
527
526
|
GatewayErrorCodes2[GatewayErrorCodes2["NoWorkspaceInRequestContext"] = 10010] = "NoWorkspaceInRequestContext";
|
|
528
|
-
GatewayErrorCodes2[GatewayErrorCodes2["NoManifestInRequestContext"] = 10011] = "NoManifestInRequestContext";
|
|
529
527
|
GatewayErrorCodes2[GatewayErrorCodes2["NoUserPermissionsInRequestContext"] = 10012] = "NoUserPermissionsInRequestContext";
|
|
530
528
|
GatewayErrorCodes2[GatewayErrorCodes2["WorkspacePermissionDenied"] = 10013] = "WorkspacePermissionDenied";
|
|
531
529
|
return GatewayErrorCodes2;
|
|
@@ -544,10 +542,6 @@ var PortalErrorCodes = /* @__PURE__ */ ((PortalErrorCodes2) => {
|
|
|
544
542
|
})(PortalErrorCodes || {});
|
|
545
543
|
const allianceErrors = {
|
|
546
544
|
// gateway
|
|
547
|
-
[1e4 /* NoMatchingEndpoint */]: {
|
|
548
|
-
httpCode: HttpStatus.BAD_REQUEST,
|
|
549
|
-
message: "Could not find endpoint matching request in app manifest."
|
|
550
|
-
},
|
|
551
545
|
[10001 /* NoObjectId */]: {
|
|
552
546
|
httpCode: HttpStatus.UNAUTHORIZED,
|
|
553
547
|
message: "No object id available on authenticated user."
|
|
@@ -588,10 +582,6 @@ const allianceErrors = {
|
|
|
588
582
|
httpCode: HttpStatus.INTERNAL_SERVER_ERROR,
|
|
589
583
|
message: "No workspace in request context."
|
|
590
584
|
},
|
|
591
|
-
[10011 /* NoManifestInRequestContext */]: {
|
|
592
|
-
httpCode: HttpStatus.INTERNAL_SERVER_ERROR,
|
|
593
|
-
message: "No manifest in request context."
|
|
594
|
-
},
|
|
595
585
|
[10012 /* NoUserPermissionsInRequestContext */]: {
|
|
596
586
|
httpCode: HttpStatus.INTERNAL_SERVER_ERROR,
|
|
597
587
|
message: "No user permissions in request context."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/alliance-internal-node-utilities",
|
|
3
|
-
"version": "1.0.3-next.
|
|
3
|
+
"version": "1.0.3-next.1",
|
|
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",
|