TypeScript application scripts shared by different frameworks.
Using npm:
$ npm install @etsoo/appscript
Using yarn:
$ yarn add @etsoo/appscript
- CoreApp, constructor, reads deviceId from session storage
- restore, when deviceId is empty, try to restore from persisted storage, get the passphrase (encryption / decription) or remove all data keys
- initCall (everytime the application running), if passphrase is there, just return, otherwise read from serverside
- device updated will cause validataion failure. Please call initCall(undefined, true);
- AddressContinent - Continent Enum
- IAddressRegion - Country or region interface
- AddressRegion - Address or region
- getRegion - Get region from regions and detected region and language
- IAppSettings - App settings interface
- IDetectIPCallback - Detect IP callback interface
- ICoreApp - Core application interface
- CoreApp - Core application
- IExternalSettings - External settings items
- IExternalSettingsHost - External settings host passed by external script
- Standard user roles
- BridgeUtils - Bridge utils
- FlutterHost - Flutter JavaScript Host
- IBridgeHost - Bridge host interface
- IBusinessTax - Business tax interface
- BusinessTax - Business tax
- getCurrencies - Get currency collection
- getEntityStatusLabel - Get entity status's label
- getEntityStatus - Get entity status collection
- getUnitLabel - Get product unit's label
- getUnits - Get all product units
- getRepeatOptions - Get all repeat options
- EntityStatus - Standard entity status enum
- ProductUnit - Product units enum
- RepeatOption - Repeat options
- CustomFieldSpace - Custom field space (12 columns)
- CustomFieldData - Custom field data
- ListItem - List item definition
- ActionResult - API call action result extends IActionResult
- ActionResultError - Action result to error type
- IResultData - Result data interface
- IdResultData - extends IResultData for 'id' included return data
- IResultErrors - Result errors interface
- IActionResult - Action result interface
- ActionResultId - Action result with id data
- InitCallResultData - Init call result data
- InitCallResult - Init call result
- ICulture - Culture resources state, simple i18n solution
- ICultureGet - Culture get delegate
- IState - state interface.
- IAction - state action interface
- IUserData - User basic data.
- IUser - extends IState for user state