UNPKG

@agnostack/next-shopify

Version:

Please contact agnoStack via info@agnostack.com for any questions

45 lines 1.89 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ERROR_CODES = exports.ShopifySessionMissingError = exports.ShopifySessionInvalidError = exports.ShopifySessionAuthenticationError = exports.ShopifyAuthenticationError = void 0; class ShopifyAuthenticationError extends Error { constructor(message, data) { super(message); this.data = data; this.name = 'ShopifyAuthenticationError'; Object.setPrototypeOf(this, ShopifyAuthenticationError.prototype); } } exports.ShopifyAuthenticationError = ShopifyAuthenticationError; class ShopifySessionAuthenticationError extends ShopifyAuthenticationError { constructor(message, data) { super(message, data); this.name = 'ShopifySessionAuthenticationError'; Object.setPrototypeOf(this, ShopifySessionAuthenticationError.prototype); } } exports.ShopifySessionAuthenticationError = ShopifySessionAuthenticationError; class ShopifySessionInvalidError extends ShopifySessionAuthenticationError { constructor(message, data) { super(message, data); this.name = 'ShopifySessionInvalidError'; Object.setPrototypeOf(this, ShopifySessionInvalidError.prototype); } } exports.ShopifySessionInvalidError = ShopifySessionInvalidError; class ShopifySessionMissingError extends ShopifySessionAuthenticationError { constructor(message, data) { super(message, data); this.name = 'ShopifySessionMissingError'; Object.setPrototypeOf(this, ShopifySessionMissingError.prototype); } } exports.ShopifySessionMissingError = ShopifySessionMissingError; exports.ERROR_CODES = { CALLBACK: 'callback_error', QUERY: 'query_error', BILLING: 'billing_error', OAUTH: 'oauth_error', MISSING_SHOP: 'no_shop_provided', INVALID_CALLBACK: 'invalid_callback', }; //# sourceMappingURL=errors.js.map