quidproquo-core 0.0.72 → 0.0.74

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.
@@ -10,7 +10,8 @@ export declare enum ErrorTypeEnum {
10
10
  NotImplemented = "NotImplemented",
11
11
  NoContent = "NoContent",
12
12
  BadRequest = "BadRequest",
13
- Invalid = "Invalid"
13
+ Invalid = "Invalid",
14
+ Conflict = "Conflict"
14
15
  }
15
16
  export interface QPQError {
16
17
  errorType: ErrorTypeEnum;
@@ -5,29 +5,32 @@ exports.ErrorTypeEnum = void 0;
5
5
  //
6
6
  var ErrorTypeEnum;
7
7
  (function (ErrorTypeEnum) {
8
- // User failed to provide a valid user name/password required for access this resources
9
- // ~ Not logged in
8
+ // User failed to provide valid credentials required for accessing this resource
9
+ // ~ typically occurs when user is not authenticated
10
10
  ErrorTypeEnum["Unauthorized"] = "Unauthorized";
11
- // PaymentRequired to access this resource or run action
11
+ // Payment is required to access this resource or perform an action
12
12
  ErrorTypeEnum["PaymentRequired"] = "PaymentRequired";
13
- // Not enough privileges to access this resource ~ Logged in but not good enough
13
+ // User does not have sufficient privileges to access this resource
14
14
  ErrorTypeEnum["Forbidden"] = "Forbidden";
15
- // Resource was not found
15
+ // The requested resource was not found on the server
16
16
  ErrorTypeEnum["NotFound"] = "NotFound";
17
- // Request or action took to long
17
+ // The server timed out while waiting for a response from a resource
18
18
  ErrorTypeEnum["TimeOut"] = "TimeOut";
19
- // Resource of incorrect format
19
+ // The request included an unsupported media type or format
20
20
  ErrorTypeEnum["UnsupportedMediaType"] = "UnsupportedMediaType";
21
- // System / downstream action is out of resources
21
+ // The system or downstream resource is out of resources
22
22
  ErrorTypeEnum["OutOfResources"] = "OutOfResources";
23
- // Generic error cover all ~ Think 500 in a web server
23
+ // A generic error occurred that does not fit into a more specific category
24
+ // ~ Think 500 Internal Server Error in a web server
24
25
  ErrorTypeEnum["GenericError"] = "GenericError";
25
- // Resource or action not yet implemented
26
+ // The requested resource or action has not yet been implemented
26
27
  ErrorTypeEnum["NotImplemented"] = "NotImplemented";
27
- // No Content ~ a success but content couldn't legitimately be found
28
+ // The requested resource or action was successful, but no content was returned
28
29
  ErrorTypeEnum["NoContent"] = "NoContent";
29
- // Bad data from client
30
+ // The request included invalid data or parameters
30
31
  ErrorTypeEnum["BadRequest"] = "BadRequest";
31
- // Bad data from client / invalid payload?
32
+ // The request payload was invalid or in an unsupported format
32
33
  ErrorTypeEnum["Invalid"] = "Invalid";
34
+ // The request attempted to create a resource that already exists, or conflicting changes were detected
35
+ ErrorTypeEnum["Conflict"] = "Conflict";
33
36
  })(ErrorTypeEnum = exports.ErrorTypeEnum || (exports.ErrorTypeEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-core",
3
- "version": "0.0.72",
3
+ "version": "0.0.74",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.js",