UNPKG

bc-node-sdk

Version:

BetterCommerce's NodeJS SDK encapsulates the base framework for all the Next.js applications.

80 lines (79 loc) 2.73 kB
/** * Namespace {@link Defaults} contains default values for various types. * @namespace Defaults * * @typedef {Object} Defaults * @property {number} Int.Value - Default value for integers. Defaults to 0. * @property {string} String.Value - Default value for strings. Defaults to an empty string. * @property {string} Guid.Value - Default value for GUIDs. Defaults to 00000000-0000-0000-0000-000000000000. * @property {Object} Object.Value - Default value for objects. Defaults to an empty object. * @property {boolean} Boolean.Value - Default value for booleans. Defaults to false. * @property {null} Null.Value - Default value for null. Defaults to null. * @property {undefined} Undefined.Value - Default value for undefined. Defaults to undefined. * @property {Array} Array.Value - Default value for arrays. Defaults to an empty array. * @property {string} Time.Value - Default value for time. Defaults to "00:00:00". */ export declare namespace Defaults { namespace Int { const Value = 0; } namespace String { const Value = ""; } namespace Guid { const Value = "00000000-0000-0000-0000-000000000000"; } namespace Object { const Value: {}; } namespace Boolean { const Value = false; } namespace Null { const Value: any; } namespace Undefined { const Value: any; } namespace Array { const Value: any[]; } namespace Time { const Value = "00:00:00"; } } export declare namespace Key { const NAV_TREE = "nt"; const DOMAIN_CONFIG = "dc"; abstract class Cookie { static CURRENCY: string; static LANGUAGE: string; static COUNTRY: string; static USER_TOKEN: string; static CLIENT_IP_ADDRESS: string; static COMPANY_ID: string; static DOMAIN_ID: string; static RETURN_URL: string; static USER_ID: string; static SUID: string; static SOID: string; static TOKEN_INFO: string; } } export default abstract class RegularExpressions { static NUMBERS_ONLY: RegExp; static MOBILE_NUMBER: RegExp; static EMAIL: RegExp; static FIND_EMPTY_CHARACTERS: RegExp; static REPLACE_DEFAULT_UPI_WEB_PREFIX_URL: RegExp; static CHARACTERS_AND_ALPHABETS: RegExp; static PASSWORD_VALIDATION: RegExp; static STOCK_CODE: RegExp; static QUANTITY: RegExp; static CSV_DATA: RegExp; static SEARCHABLE_ATTRIBUTES_MATCH: RegExp; static ALPHABETS_WITH_SPACES: RegExp; static EMPTY_SPACE: RegExp; static REPLACE_ALL_SPECIAL_CHARACTERS: RegExp; static URL: RegExp; }