UNPKG

@altostra/core

Version:

Core library for shared types and logic

1 lines 1.15 kB
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(r,t,e,o){void 0===o&&(o=e);var i=Object.getOwnPropertyDescriptor(t,e);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(r,o,i)}:function(r,t,e,o){void 0===o&&(o=e),r[o]=t[e]}),__exportStar=this&&this.__exportStar||function(r,t){for(var e in r)"default"===e||Object.prototype.hasOwnProperty.call(t,e)||__createBinding(t,r,e)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.isQuotaViolationError=void 0;const Errors_1=require("../../../common/Errors"),Object_1=require("../../../common/Utils/Object"),consts_1=require("./consts");function isQuotaViolationError(r){var t;return(0,Object_1.isSimpleObject)(r)&&r instanceof Errors_1.UserFacingError&&(r.type===consts_1.ERROR_QUOTA_VIOLATION||!!(null===(t=r.type)||void 0===t?void 0:t.startsWith(consts_1.ERROR_QUOTA_VIOLATION_PREFIX))&&r.type!==consts_1.ERROR_QUOTA_VIOLATION_PREFIX)}__exportStar(require("./PaymentsService"),exports),__exportStar(require("./consts"),exports),exports.isQuotaViolationError=isQuotaViolationError;