@telia-ace/alliance-internal-node-utilities 1.0.2 → 1.0.3-next.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @telia-ace/alliance-internal-node-utilities
2
2
 
3
+ ## 1.0.3-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 828548a: Add error code for missing database record.
8
+
3
9
  ## 1.0.2
4
10
 
5
11
  ### Patch Changes
@@ -19,7 +19,8 @@ export declare enum DatabasesErrorCodes {
19
19
  NoPublicKey = 11000,
20
20
  NoAuthHeader = 11001,
21
21
  FailedFileStore = 11002,
22
- FailedFileRead = 11003
22
+ FailedFileRead = 11003,
23
+ NoRecord = 11004
23
24
  }
24
25
  export declare enum PortalErrorCodes {
25
26
  NoObjectId = 12000
package/dist/index.cjs CHANGED
@@ -540,6 +540,7 @@ var DatabasesErrorCodes = /* @__PURE__ */ ((DatabasesErrorCodes2) => {
540
540
  DatabasesErrorCodes2[DatabasesErrorCodes2["NoAuthHeader"] = 11001] = "NoAuthHeader";
541
541
  DatabasesErrorCodes2[DatabasesErrorCodes2["FailedFileStore"] = 11002] = "FailedFileStore";
542
542
  DatabasesErrorCodes2[DatabasesErrorCodes2["FailedFileRead"] = 11003] = "FailedFileRead";
543
+ DatabasesErrorCodes2[DatabasesErrorCodes2["NoRecord"] = 11004] = "NoRecord";
543
544
  return DatabasesErrorCodes2;
544
545
  })(DatabasesErrorCodes || {});
545
546
  var PortalErrorCodes = /* @__PURE__ */ ((PortalErrorCodes2) => {
@@ -621,6 +622,10 @@ const allianceErrors = {
621
622
  httpCode: common.HttpStatus.INTERNAL_SERVER_ERROR,
622
623
  message: "Error reading file."
623
624
  },
625
+ [11004 /* NoRecord */]: {
626
+ httpCode: common.HttpStatus.INTERNAL_SERVER_ERROR,
627
+ message: "Missing database record."
628
+ },
624
629
  // portal
625
630
  [12e3 /* NoObjectId */]: {
626
631
  httpCode: common.HttpStatus.UNAUTHORIZED,
package/dist/index.mjs CHANGED
@@ -535,6 +535,7 @@ var DatabasesErrorCodes = /* @__PURE__ */ ((DatabasesErrorCodes2) => {
535
535
  DatabasesErrorCodes2[DatabasesErrorCodes2["NoAuthHeader"] = 11001] = "NoAuthHeader";
536
536
  DatabasesErrorCodes2[DatabasesErrorCodes2["FailedFileStore"] = 11002] = "FailedFileStore";
537
537
  DatabasesErrorCodes2[DatabasesErrorCodes2["FailedFileRead"] = 11003] = "FailedFileRead";
538
+ DatabasesErrorCodes2[DatabasesErrorCodes2["NoRecord"] = 11004] = "NoRecord";
538
539
  return DatabasesErrorCodes2;
539
540
  })(DatabasesErrorCodes || {});
540
541
  var PortalErrorCodes = /* @__PURE__ */ ((PortalErrorCodes2) => {
@@ -616,6 +617,10 @@ const allianceErrors = {
616
617
  httpCode: HttpStatus.INTERNAL_SERVER_ERROR,
617
618
  message: "Error reading file."
618
619
  },
620
+ [11004 /* NoRecord */]: {
621
+ httpCode: HttpStatus.INTERNAL_SERVER_ERROR,
622
+ message: "Missing database record."
623
+ },
619
624
  // portal
620
625
  [12e3 /* NoObjectId */]: {
621
626
  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",
3
+ "version": "1.0.3-next.0",
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",