├── .DS_Store ├── docs ├── assets │ ├── icons.png │ ├── icons@2x.png │ ├── widgets.png │ ├── widgets@2x.png │ └── highlight.css ├── .nojekyll └── interfaces │ ├── KeyValuePair.html │ ├── SimpleLookup.html │ ├── DeleteInfo.html │ ├── UpdateInfo.html │ ├── MemberData.html │ ├── SortEntry.html │ ├── EventData.html │ ├── DeleteOptions.html │ ├── GetOptions.html │ ├── CreateOptions.html │ └── BucketSortEntry.html ├── dist ├── types.js.map ├── utils │ ├── polyfills.d.ts │ ├── polyfills.d.ts.map │ ├── ClientError.d.ts.map │ ├── ClientError.js.map │ ├── polyfills.js.map │ ├── helpers.d.ts.map │ ├── ClientError.js │ ├── polyfills.js │ ├── ClientError.d.ts │ ├── Fetcher.d.ts.map │ ├── helpers.d.ts │ └── helpers.js.map ├── types.js ├── APIBase.js.map ├── APIBase.d.ts.map ├── DatabaseManager.js.map ├── DatabaseManager.d.ts.map ├── TaskManager.d.ts.map ├── QueueManager.d.ts.map ├── TaskManager.js.map ├── QueueManager.js.map ├── APIBase.js ├── index.js.map ├── APIBase.d.ts ├── AltogicClient.d.ts.map ├── EndpointManager.js.map ├── StorageManager.d.ts.map ├── EndpointManager.d.ts.map ├── CacheManager.d.ts.map ├── StorageManager.js.map ├── index.d.ts.map ├── DBObject.d.ts.map ├── CacheManager.js.map ├── FileManager.d.ts.map ├── BucketManager.d.ts.map ├── DatabaseManager.d.ts ├── TaskManager.d.ts ├── index.d.ts ├── DBObject.js.map ├── QueryBuilder.d.ts.map ├── DatabaseManager.js ├── QueueManager.d.ts ├── TaskManager.js ├── AltogicClient.js.map ├── FileManager.js.map ├── BucketManager.js.map ├── index.js ├── AuthManager.d.ts.map ├── QueueManager.js ├── QueryBuilder.js.map ├── AltogicClient.d.ts └── types.d.ts.map ├── . prettierrc ├── tslint.json ├── tsconfig.json ├── src ├── utils │ ├── polyfills.ts │ └── ClientError.ts ├── APIBase.ts ├── DatabaseManager.ts ├── TaskManager.ts ├── index.ts └── QueueManager.ts ├── webpack.config.js ├── LICENSE ├── package.json └── .gitignore /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altogic/altogic-js/HEAD/.DS_Store -------------------------------------------------------------------------------- /docs/assets/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altogic/altogic-js/HEAD/docs/assets/icons.png -------------------------------------------------------------------------------- /docs/assets/icons@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altogic/altogic-js/HEAD/docs/assets/icons@2x.png -------------------------------------------------------------------------------- /docs/assets/widgets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altogic/altogic-js/HEAD/docs/assets/widgets.png -------------------------------------------------------------------------------- /docs/assets/widgets@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altogic/altogic-js/HEAD/docs/assets/widgets@2x.png -------------------------------------------------------------------------------- /dist/types.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /dist/utils/polyfills.d.ts: -------------------------------------------------------------------------------- 1 | export declare function polyfillGlobalThis(): void; 2 | //# sourceMappingURL=polyfills.d.ts.map -------------------------------------------------------------------------------- /. prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 120, 3 | "trailingComma": "all", 4 | "singleQuote": true, 5 | "tabWidth": 2 6 | } 7 | -------------------------------------------------------------------------------- /dist/types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=types.js.map -------------------------------------------------------------------------------- /docs/.nojekyll: -------------------------------------------------------------------------------- 1 | TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["tslint:recommended", "tslint-config-prettier"], 3 | "rules": { 4 | "no-string-literal": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /dist/utils/polyfills.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"polyfills.d.ts","sourceRoot":"","sources":["../../src/utils/polyfills.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,SAmBjC"} -------------------------------------------------------------------------------- /dist/APIBase.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"APIBase.js","sourceRoot":"","sources":["../src/APIBase.ts"],"names":[],"mappings":";;;AAEA;;;;;;;GAOG;AACH,MAAa,OAAO;IAQlB;;;OAGG;IACH,YAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAfD,0BAeC"} -------------------------------------------------------------------------------- /dist/APIBase.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"APIBase.d.ts","sourceRoot":"","sources":["../src/APIBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C;;;;;;;GAOG;AACH,qBAAa,OAAO;IAClB;;;;OAIG;IACH,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;IAE3B;;;OAGG;gBACS,OAAO,EAAE,OAAO;CAG7B"} -------------------------------------------------------------------------------- /dist/utils/ClientError.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ClientError.d.ts","sourceRoot":"","sources":["../../src/utils/ClientError.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACpC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAO5D"} -------------------------------------------------------------------------------- /dist/utils/ClientError.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ClientError.js","sourceRoot":"","sources":["../../src/utils/ClientError.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,MAAa,WAAY,SAAQ,KAAK;IAyBpC;;;;;OAKG;IACH,YAAY,IAAY,EAAE,OAAe,EAAE,OAAgB;QACzD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,cAAc,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAtCD,kCAsCC"} -------------------------------------------------------------------------------- /dist/DatabaseManager.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"DatabaseManager.js","sourceRoot":"","sources":["../src/DatabaseManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAoC;AAEpC,iDAA8C;AAG9C;;;;;GAKG;AACH,MAAa,eAAgB,SAAQ,iBAAO;IAC1C;;;OAGG;IACH,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,IAAY;QAChB,OAAO,IAAI,2BAAY,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;;;;OAKG;IACG,QAAQ;;YACZ,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QAC1D,CAAC;KAAA;CACF;AAlCD,0CAkCC"} -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2015", 4 | "module": "CommonJS", 5 | "declaration": true, 6 | "declarationMap": true, 7 | "sourceMap": true, 8 | "outDir": "./dist", 9 | "rootDir": "./src", 10 | "strict": true, 11 | "esModuleInterop": true, 12 | "moduleResolution": "Node", 13 | "forceConsistentCasingInFileNames": true, 14 | "allowSyntheticDefaultImports": true 15 | }, 16 | "include": ["src"], 17 | "exclude": ["node_modules", "**/__tests__/*"] 18 | } 19 | -------------------------------------------------------------------------------- /dist/DatabaseManager.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"DatabaseManager.d.ts","sourceRoot":"","sources":["../src/DatabaseManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,OAAO;IAC1C;;;OAGG;gBACS,OAAO,EAAE,OAAO;IAI5B;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY;IAIjC;;;;;OAKG;IACG,QAAQ,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;CAG5E"} -------------------------------------------------------------------------------- /dist/utils/polyfills.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"polyfills.js","sourceRoot":"","sources":["../../src/utils/polyfills.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,SAAgB,kBAAkB;IAChC,IAAI,OAAO,UAAU,KAAK,QAAQ;QAAE,OAAO;IAC3C,IAAI;QACF,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE;YACnD,GAAG;gBACD,OAAO,IAAI,CAAC;YACd,CAAC;YACD,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;QACH,2CAA2C;QAC3C,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;QACjC,2CAA2C;QAC3C,OAAO,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC;KACnC;IAAC,OAAO,CAAC,EAAE;QACV,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE;YAC/B,6CAA6C;YAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;SACxB;KACF;AACH,CAAC;AAnBD,gDAmBC"} -------------------------------------------------------------------------------- /dist/TaskManager.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"TaskManager.d.ts","sourceRoot":"","sources":["../src/TaskManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;;;GAOG;AACH,qBAAa,WAAY,SAAQ,OAAO;IACtC;;;OAGG;gBACS,OAAO,EAAE,OAAO;IAI5B;;;;;;OAMG;IACG,OAAO,CACX,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC;QAAE,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAQ9D;;;;;;OAMG;IACG,aAAa,CACjB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;QAAE,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;CAO/D"} -------------------------------------------------------------------------------- /dist/QueueManager.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"QueueManager.d.ts","sourceRoot":"","sources":["../src/QueueManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;GASG;AACH,qBAAa,YAAa,SAAQ,OAAO;IACvC;;;OAGG;gBACS,OAAO,EAAE,OAAO;IAI5B;;;;;;;;;;;;OAYG;IACG,aAAa,CACjB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC;QAAE,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAUjE;;;;;;OAMG;IACG,gBAAgB,CACpB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;QAAE,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;CAOlE"} -------------------------------------------------------------------------------- /dist/TaskManager.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"TaskManager.js","sourceRoot":"","sources":["../src/TaskManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAoC;AAIpC;;;;;;;GAOG;AACH,MAAa,WAAY,SAAQ,iBAAO;IACtC;;;OAGG;IACH,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAED;;;;;;OAMG;IACG,OAAO,CACX,YAAoB;;YAEpB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;gBACrE,YAAY;aACb,CAAC,CAAC;YAEH,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAChC,CAAC;KAAA;IAED;;;;;;OAMG;IACG,aAAa,CACjB,MAAc;;YAEd,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAC7C,sBAAsB,MAAM,EAAE,CAC/B,CAAC;YAEF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAChC,CAAC;KAAA;CACF;AA1CD,kCA0CC"} -------------------------------------------------------------------------------- /src/utils/polyfills.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * https://mathiasbynens.be/notes/globalthis 3 | */ 4 | export function polyfillGlobalThis() { 5 | if (typeof globalThis === "object") return; 6 | try { 7 | Object.defineProperty(Object.prototype, "__magic__", { 8 | get() { 9 | return this; 10 | }, 11 | configurable: true, 12 | }); 13 | // @ts-expect-error 'Allow access to magic' 14 | __magic__.globalThis = __magic__; 15 | // @ts-expect-error 'Allow access to magic' 16 | delete Object.prototype.__magic__; 17 | } catch (e) { 18 | if (typeof self !== "undefined") { 19 | // @ts-expect-error 'Allow access to globals' 20 | self.globalThis = self; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /dist/QueueManager.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"QueueManager.js","sourceRoot":"","sources":["../src/QueueManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAoC;AAIpC;;;;;;;;;GASG;AACH,MAAa,YAAa,SAAQ,iBAAO;IACvC;;;OAGG;IACH,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAED;;;;;;;;;;;;OAYG;IACG,aAAa,CACjB,aAAqB,EACrB,OAAe,EACf,KAAc;;YAEd,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;gBACtE,aAAa;gBACb,OAAO;gBACP,KAAK;aACN,CAAC,CAAC;YAEH,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAChC,CAAC;KAAA;IAED;;;;;;OAMG;IACG,gBAAgB,CACpB,SAAiB;;YAEjB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAC7C,uBAAuB,SAAS,EAAE,CACnC,CAAC;YAEF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAChC,CAAC;KAAA;CACF;AApDD,oCAoDC"} -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const webpack = require('webpack'); 2 | const path = require('path'); 3 | 4 | module.exports = { 5 | entry: './src/index.ts', 6 | output: { 7 | path: path.resolve(__dirname, 'dist/umd'), 8 | filename: 'altogic.js', 9 | library: { 10 | type: 'umd', 11 | name: 'altogic', 12 | }, 13 | }, 14 | module: { 15 | rules: [ 16 | { 17 | test: /\.ts$/, 18 | loader: 'ts-loader', 19 | options: { 20 | transpileOnly: true, 21 | }, 22 | }, 23 | { 24 | test: /\.js$/, 25 | loader: 'webpack-remove-debug', 26 | }, 27 | ], 28 | }, 29 | resolve: { 30 | extensions: ['.ts', '.js', '.json'], 31 | }, 32 | plugins: [ 33 | new webpack.DefinePlugin({ 34 | process: 'process/browser', 35 | }), 36 | ], 37 | mode: 'production', 38 | }; 39 | -------------------------------------------------------------------------------- /dist/utils/helpers.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/utils/helpers.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,UAE9C;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,UAEvC;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAa9D;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,GAAG,EACf,gBAAgB,GAAE,OAAc,QAiBjC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CACvB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,GAAG,KAAK,GAAG,MAAM,EACnC,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,OAAO,QAuBhB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CA6B/D;AA+HD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAwEvD"} -------------------------------------------------------------------------------- /dist/APIBase.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.APIBase = void 0; 4 | /** 5 | * The base class where all manager classes are derived from. 6 | * 7 | * All manager classes interact with your app backend through the RESTful API and uses a {@link Fetcher} object. This base class keeps a reference to this fetcher object, and any class that is inherited from this base can use it. 8 | * 9 | * @export 10 | * @class DatabaseManager 11 | */ 12 | class APIBase { 13 | /** 14 | * Creates an instance of base class to access services exposed by Altogic 15 | * @param {Fetcher} fetcher The http client to make RESTful API calls to the application's execution engine 16 | */ 17 | constructor(fetcher) { 18 | this.fetcher = fetcher; 19 | } 20 | } 21 | exports.APIBase = APIBase; 22 | //# sourceMappingURL=APIBase.js.map -------------------------------------------------------------------------------- /dist/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AA2E9C,8FA3EO,6BAAa,OA2EP;AA1Ef,uCAAoC;AAyElC,wFAzEO,iBAAO,OAyEP;AAxET,+CAA4C;AA0E1C,4FA1EO,yBAAW,OA0EP;AAzEb,uDAAoD;AA0ElD,gGA1EO,iCAAe,OA0EP;AAzEjB,iDAA8C;AA0E5C,6FA1EO,2BAAY,OA0EP;AAzEd,iDAA8C;AA0E5C,6FA1EO,2BAAY,OA0EP;AAzEd,+CAA4C;AA0E1C,4FA1EO,yBAAW,OA0EP;AAzEb,uDAAoD;AA0ElD,gGA1EO,iCAAe,OA0EP;AAzEjB,iDAA8C;AAoF5C,6FApFO,2BAAY,OAoFP;AAnFd,yCAAsC;AAoFpC,yFApFO,mBAAQ,OAoFP;AAnFV,qDAAkD;AAkGhD,+FAlGO,+BAAc,OAkGP;AAjGhB,mDAAgD;AAkG9C,8FAlGO,6BAAa,OAkGP;AAjGf,+CAA4C;AAuG1C,4FAvGO,yBAAW,OAuGP;AAtGb,uDAAoD;AAuGlD,gGAvGO,iCAAe,OAuGP;AAtGjB,6CAA0C;AAoExC,wFApEO,iBAAO,OAoEP;AA/BT,iDAAuD;AAEvD,4BAA4B;AAC5B,IAAA,8BAAkB,GAAE,CAAC;AAErB;;;;;;;GAOG;AACH,MAAM,YAAY,GAAG,CACnB,MAAc,EACd,SAAiB,EACjB,OAAuB,EACR,EAAE;IACjB,OAAO,IAAI,6BAAa,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;AACvD,CAAC,CAAC;AAGA,oCAAY"} -------------------------------------------------------------------------------- /dist/utils/ClientError.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ClientError = void 0; 4 | /** 5 | * Class to create and throw instances of client errors during runtime. 6 | * @export 7 | * @class ClientError 8 | * @extends {Error} 9 | */ 10 | class ClientError extends Error { 11 | /** 12 | * Creates an instance of ClientError. 13 | * @param {string} code Specific short code of the error message 14 | * @param {string} message Short description of the error 15 | * @param {object} [details] Any additional details about the error 16 | */ 17 | constructor(code, message, details) { 18 | super(message); 19 | this.origin = "client_error"; 20 | this.code = code; 21 | this.message = message; 22 | this.details = details; 23 | } 24 | } 25 | exports.ClientError = ClientError; 26 | //# sourceMappingURL=ClientError.js.map -------------------------------------------------------------------------------- /src/APIBase.ts: -------------------------------------------------------------------------------- 1 | import { Fetcher } from "./utils/Fetcher"; 2 | 3 | /** 4 | * The base class where all manager classes are derived from. 5 | * 6 | * All manager classes interact with your app backend through the RESTful API and uses a {@link Fetcher} object. This base class keeps a reference to this fetcher object, and any class that is inherited from this base can use it. 7 | * 8 | * @export 9 | * @class DatabaseManager 10 | */ 11 | export class APIBase { 12 | /** 13 | * The http client to make RESTful API calls to the application's execution engine 14 | * @protected 15 | * @type {Fetcher} 16 | */ 17 | protected fetcher: Fetcher; 18 | 19 | /** 20 | * Creates an instance of base class to access services exposed by Altogic 21 | * @param {Fetcher} fetcher The http client to make RESTful API calls to the application's execution engine 22 | */ 23 | constructor(fetcher: Fetcher) { 24 | this.fetcher = fetcher; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dist/APIBase.d.ts: -------------------------------------------------------------------------------- 1 | import { Fetcher } from "./utils/Fetcher"; 2 | /** 3 | * The base class where all manager classes are derived from. 4 | * 5 | * All manager classes interact with your app backend through the RESTful API and uses a {@link Fetcher} object. This base class keeps a reference to this fetcher object, and any class that is inherited from this base can use it. 6 | * 7 | * @export 8 | * @class DatabaseManager 9 | */ 10 | export declare class APIBase { 11 | /** 12 | * The http client to make RESTful API calls to the application's execution engine 13 | * @protected 14 | * @type {Fetcher} 15 | */ 16 | protected fetcher: Fetcher; 17 | /** 18 | * Creates an instance of base class to access services exposed by Altogic 19 | * @param {Fetcher} fetcher The http client to make RESTful API calls to the application's execution engine 20 | */ 21 | constructor(fetcher: Fetcher); 22 | } 23 | //# sourceMappingURL=APIBase.d.ts.map -------------------------------------------------------------------------------- /dist/utils/polyfills.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.polyfillGlobalThis = void 0; 4 | /* 5 | * https://mathiasbynens.be/notes/globalthis 6 | */ 7 | function polyfillGlobalThis() { 8 | if (typeof globalThis === "object") 9 | return; 10 | try { 11 | Object.defineProperty(Object.prototype, "__magic__", { 12 | get() { 13 | return this; 14 | }, 15 | configurable: true, 16 | }); 17 | // @ts-expect-error 'Allow access to magic' 18 | __magic__.globalThis = __magic__; 19 | // @ts-expect-error 'Allow access to magic' 20 | delete Object.prototype.__magic__; 21 | } 22 | catch (e) { 23 | if (typeof self !== "undefined") { 24 | // @ts-expect-error 'Allow access to globals' 25 | self.globalThis = self; 26 | } 27 | } 28 | } 29 | exports.polyfillGlobalThis = polyfillGlobalThis; 30 | //# sourceMappingURL=polyfills.js.map -------------------------------------------------------------------------------- /dist/AltogicClient.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"AltogicClient.d.ts","sourceRoot":"","sources":["../src/AltogicClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,aAAa,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAepD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,aAAa;;IACxB;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,aAAa,CAAC;IAyDlC;;;;;;OAMG;gBACS,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAsDtE;;;;OAIG;IACH,IAAI,IAAI,IAAI,WAAW,CAMtB;IAED;;;;OAIG;IACH,IAAI,QAAQ,IAAI,eAAe,CAM9B;IAED;;;;OAIG;IACH,IAAI,KAAK,IAAI,YAAY,CAMxB;IAED;;;;OAIG;IACH,IAAI,KAAK,IAAI,YAAY,CAMxB;IAED;;;;OAIG;IACH,IAAI,IAAI,IAAI,WAAW,CAMtB;IAED;;;;OAIG;IACH,IAAI,EAAE,IAAI,eAAe,CAMxB;IAED;;;;OAIG;IACH,IAAI,OAAO,IAAI,cAAc,CAM5B;IAED;;;;;;OAMG;IACH,IAAI,QAAQ,IAAI,eAAe,CAM9B;CACF"} -------------------------------------------------------------------------------- /dist/EndpointManager.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"EndpointManager.js","sourceRoot":"","sources":["../src/EndpointManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAoC;AAIpC;;;;;;;;GAQG;AACH,MAAa,eAAgB,SAAQ,iBAAO;IAC1C;;;OAGG;IACH,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAED;;;;;;;;;OASG;IACG,GAAG,CACP,IAAY,EACZ,WAA0B,EAC1B,OAAsB,EACtB,WAAsD;;YAEtD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAC3B,IAAI,EACJ,WAAW,EACX,OAAO,EACP,WAAW,IAAI,MAAM,CACtB,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;;;;;OAUG;IACG,IAAI,CACR,IAAY,EACZ,IAAwB,EACxB,WAA0B,EAC1B,OAAsB,EACtB,WAAsD;;YAEtD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAC5B,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,OAAO,EACP,WAAW,IAAI,MAAM,CACtB,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;;;;;OAUG;IACG,GAAG,CACP,IAAY,EACZ,IAAwB,EACxB,WAA0B,EAC1B,OAAsB,EACtB,WAAsD;;YAEtD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAC3B,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,OAAO,EACP,WAAW,IAAI,MAAM,CACtB,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;;;;;OAUG;IACG,MAAM,CACV,IAAY,EACZ,IAAwB,EACxB,WAA0B,EAC1B,OAAsB,EACtB,WAAsD;;YAEtD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAC9B,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,OAAO,EACP,WAAW,IAAI,MAAM,CACtB,CAAC;QACJ,CAAC;KAAA;CACF;AAjHD,0CAiHC"} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Altogic 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /dist/utils/ClientError.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Class to create and throw instances of client errors during runtime. 3 | * @export 4 | * @class ClientError 5 | * @extends {Error} 6 | */ 7 | export declare class ClientError extends Error { 8 | /** 9 | * Originator of the error either a client error or an internal server error 10 | * @type {string} 11 | */ 12 | origin: string; 13 | /** 14 | * Specific short code of the error message (e.g., validation_error, content_type_error) 15 | * @type {string} 16 | */ 17 | code: string; 18 | /** 19 | * Short description of the error 20 | * @type {string} 21 | */ 22 | message: string; 23 | /** 24 | * Any additional details about the error. Details is a JSON object and can have a different structure for different error types. 25 | * @type {object} 26 | */ 27 | details?: object; 28 | /** 29 | * Creates an instance of ClientError. 30 | * @param {string} code Specific short code of the error message 31 | * @param {string} message Short description of the error 32 | * @param {object} [details] Any additional details about the error 33 | */ 34 | constructor(code: string, message: string, details?: object); 35 | } 36 | //# sourceMappingURL=ClientError.d.ts.map -------------------------------------------------------------------------------- /dist/StorageManager.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"StorageManager.d.ts","sourceRoot":"","sources":["../src/StorageManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEvE;;;;;;;;;;;;GAYG;AACH,qBAAa,cAAe,SAAQ,OAAO;IACzC;;;OAGG;gBACS,OAAO,EAAE,OAAO;IAI5B;;;;;;;;;OASG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa;IAIvC;;;;;;;;;;OAUG;IACG,YAAY,CAChB,IAAI,EAAE,MAAM,EACZ,QAAQ,GAAE,OAAc,EACxB,IAAI,GAAE,MAAM,EAAO,GAClB,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAQ5D;;;;;;;;;;;;;;;;;;;OAmBG;IACG,WAAW,CACf,UAAU,CAAC,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAiBvE;;;;OAIG;IACH,IAAI,IAAI,IAAI,aAAa,CAExB;IAED;;;;;OAKG;IACG,QAAQ,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAI3E;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,WAAW,CACf,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAU9D;;;;;OAKG;IACG,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;CAKxE"} -------------------------------------------------------------------------------- /src/utils/ClientError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Class to create and throw instances of client errors during runtime. 3 | * @export 4 | * @class ClientError 5 | * @extends {Error} 6 | */ 7 | export class ClientError extends Error { 8 | /** 9 | * Originator of the error either a client error or an internal server error 10 | * @type {string} 11 | */ 12 | origin: string; 13 | 14 | /** 15 | * Specific short code of the error message (e.g., validation_error, content_type_error) 16 | * @type {string} 17 | */ 18 | code: string; 19 | 20 | /** 21 | * Short description of the error 22 | * @type {string} 23 | */ 24 | message: string; 25 | 26 | /** 27 | * Any additional details about the error. Details is a JSON object and can have a different structure for different error types. 28 | * @type {object} 29 | */ 30 | details?: object; 31 | 32 | /** 33 | * Creates an instance of ClientError. 34 | * @param {string} code Specific short code of the error message 35 | * @param {string} message Short description of the error 36 | * @param {object} [details] Any additional details about the error 37 | */ 38 | constructor(code: string, message: string, details?: object) { 39 | super(message); 40 | this.origin = "client_error"; 41 | this.code = code; 42 | this.message = message; 43 | this.details = details; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /dist/EndpointManager.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"EndpointManager.d.ts","sourceRoot":"","sources":["../src/EndpointManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;;;;;GAQG;AACH,qBAAa,eAAgB,SAAQ,OAAO;IAC1C;;;OAGG;gBACS,OAAO,EAAE,OAAO;IAI5B;;;;;;;;;OASG;IACG,GAAG,CACP,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,YAAY,EAC1B,OAAO,CAAC,EAAE,YAAY,EACtB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,GACrD,OAAO,CAAC;QAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IASzD;;;;;;;;;;OAUG;IACG,IAAI,CACR,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,EACxB,WAAW,CAAC,EAAE,YAAY,EAC1B,OAAO,CAAC,EAAE,YAAY,EACtB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,GACrD,OAAO,CAAC;QAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAUzD;;;;;;;;;;OAUG;IACG,GAAG,CACP,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,EACxB,WAAW,CAAC,EAAE,YAAY,EAC1B,OAAO,CAAC,EAAE,YAAY,EACtB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,GACrD,OAAO,CAAC;QAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAUzD;;;;;;;;;;OAUG;IACG,MAAM,CACV,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,EACxB,WAAW,CAAC,EAAE,YAAY,EAC1B,OAAO,CAAC,EAAE,YAAY,EACtB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,GACrD,OAAO,CAAC;QAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;CAS1D"} -------------------------------------------------------------------------------- /dist/CacheManager.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"CacheManager.d.ts","sourceRoot":"","sources":["../src/CacheManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;;;;;;;GASG;AACH,qBAAa,YAAa,SAAQ,OAAO;IACvC;;;OAGG;gBACS,OAAO,EAAE,OAAO;IAI5B;;;;;OAKG;IACG,GAAG,CACP,GAAG,EAAE,MAAM,GACV,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAIvE;;;;;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EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;KACzB,CAAC;CAYH"} -------------------------------------------------------------------------------- /dist/StorageManager.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"StorageManager.js","sourceRoot":"","sources":["../src/StorageManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAoC;AAEpC,mDAAgD;AAGhD;;;;;;;;;;;;GAYG;AACH,MAAa,cAAe,SAAQ,iBAAO;IACzC;;;OAGG;IACH,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,QAAgB;QACrB,OAAO,IAAI,6BAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;;;;;;;;;OAUG;IACG,YAAY,CAChB,IAAY,EACZ,WAAoB,IAAI,EACxB,OAAiB,EAAE;;YAEnB,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE;gBACpE,IAAI;gBACJ,QAAQ;gBACR,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACG,WAAW,CACf,UAAmB,EACnB,OAA2B;;YAE3B,IAAI,MAAM,GAAG,IAAI,CAAC;YAClB,IAAI,UAAU,GAAG,IAAI,CAAC;YAEtB,IAAI,UAAU,EAAE;gBACd,IAAI,OAAO,UAAU,KAAK,QAAQ;oBAAE,MAAM,GAAG,UAAU,CAAC;qBACnD,IAAI,OAAO,UAAU,KAAK,QAAQ;oBAAE,UAAU,GAAG,UAAU,CAAC;aAClE;YAED,IAAI,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ;gBAAE,UAAU,GAAG,OAAO,CAAC;YAEjE,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE;gBACnE,UAAU,EAAE,MAAM;gBAClB,OAAO,EAAE,UAAU;aACpB,CAAC,CAAC;QACL,CAAC;KAAA;IAED;;;;OAIG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,6BAAa,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACG,QAAQ;;YACZ,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;QAC/D,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,WAAW,CACf,UAAkB,EAClB,OAAyB;;YAEzB,IAAI,UAAU,GAAG,IAAI,CAAC;YACtB,IAAI,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ;gBAAE,UAAU,GAAG,OAAO,CAAC;YAEjE,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE;gBACnE,UAAU;gBACV,OAAO,EAAE,UAAU;aACpB,CAAC,CAAC;QACL,CAAC;KAAA;IAED;;;;;OAKG;IACG,UAAU,CAAC,OAAe;;YAC9B,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE;gBAClE,OAAO;aACR,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AA1JD,wCA0JC"} -------------------------------------------------------------------------------- /dist/index.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gB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,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,EACV,aAAa,EACb,QAAQ,EACR,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,UAAU,EACV,yBAAyB,GAC1B,CAAC"} -------------------------------------------------------------------------------- /dist/DBObject.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"DBObject.d.ts","sourceRoot":"","sources":["../src/DBObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EACL,QAAQ,EACR,UAAU,EACV,aAAa,EACb,UAAU,EACV,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,aAAa,EACb,WAAW,EACZ,MAAM,SAAS,CAAC;AASjB;;;;;;;;;;GAUG;AACH,qBAAa,QAAS,SAAQ,OAAO;;IAenC;;;;;OAKG;gBACS,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,MAAM;IAM5D;;;;;;OAMG;IACG,GAAG,CACP,OAAO,CAAC,EAAE,UAAU,GACnB,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAC5D;;;;;;;OAOG;IACG,GAAG,CACP,OAAO,EAAE,YAAY,EAAE,GAAG,aAAa,EAAE,EACzC,OAAO,CAAC,EAAE,UAAU,GACnB,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MA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AI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;CAY7D"} -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "altogic", 3 | "version": "2.3.9", 4 | "description": "Javascript client for Altogic backend apps.", 5 | "keywords": [ 6 | "javascript", 7 | "typescript", 8 | "altogic", 9 | "backend" 10 | ], 11 | "main": "dist/index.js", 12 | "module": "dist/index.js", 13 | "types": "dist/index.d.ts", 14 | "files": [ 15 | "dist", 16 | "src" 17 | ], 18 | "scripts": { 19 | "test": "echo \"Error: no test specified\" && exit 1", 20 | "build": "tsc -p tsconfig.json", 21 | "buildumd": "webpack", 22 | "run": "node ./dist/index.js", 23 | "format": "prettier --write \"src/**/*.ts\"", 24 | "lint": "tslint -p tsconfig.json", 25 | "prepare": "npm run build && npm run buildumd", 26 | "preversion": "npm run lint", 27 | "version": "npm run format && git add .", 28 | "postversion": "git push && git push origin master", 29 | "docs": "typedoc src/index.ts" 30 | }, 31 | "repository": { 32 | "type": "git", 33 | "url": "git+https://github.com/altogic/altogic-js.git" 34 | }, 35 | "author": "Altogic", 36 | "license": "MIT", 37 | "bugs": { 38 | "url": "https://github.com/altogic/altogic-js/issues" 39 | }, 40 | "homepage": "https://github.com/altogic/altogic-js", 41 | "devDependencies": { 42 | "@types/node": "^17.0.14", 43 | "prettier": "^2.5.1", 44 | "process": "^0.11.10", 45 | "ts-loader": "^9.2.6", 46 | "tslint": "^6.1.3", 47 | "tslint-config-prettier": "^1.18.0", 48 | "typedoc": "^0.22.10", 49 | "typedoc-plugin-missing-exports": "^0.22.6", 50 | "typescript": "^4.5.4", 51 | "webpack": "^5.68.0", 52 | "webpack-cli": "^4.9.2", 53 | "webpack-remove-debug": "^0.1.0" 54 | }, 55 | "dependencies": { 56 | "cross-fetch": "^3.1.4", 57 | "socket.io-client": "^4.5.1" 58 | }, 59 | "jsdelivr": "dist/umd/altogic.js", 60 | "unpkg": "dist/umd/altogic.js" 61 | } 62 | -------------------------------------------------------------------------------- /dist/utils/Fetcher.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"Fetcher.d.ts","sourceRoot":"","sources":["../../src/utils/Fetcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAI3D;;;;;;;;GAQG;AACH,qBAAa,OAAO;;IAClB;;;;OAIG;IACH,SAAS,CAAC,SAAS,EAAE,aAAa,CAAC;IACnC;;;;OAIG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,SAAS,CAAC,OAAO,EAAE,YAAY,CAAC;IAEhC;;;;;OAKG;IACH,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAElC;;;;OAIG;gBAED,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,YAAY;IA+JvB;;;;;;;OAOG;IACG,GAAG,CACP,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,YAAY,GAAG,IAAS,EAC/B,OAAO,GAAE,YAAY,GAAG,IAAS,EACjC,WAAW,GAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,aAAsB,GAC7D,OAAO,CAAC;QAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAIzD;;;;;;;;OAQG;IACG,IAAI,CACR,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,QAAQ,GAAG,MAAM,GAAG,IAAW,EACrC,KAAK,GAAE,YAAY,GAAG,IAAS,EAC/B,OAAO,GAAE,YAAY,GAAG,IAAS,EACjC,WAAW,GAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,aAAsB,GAC7D,OAAO,CAAC;QAAE,IAAI,EAAE,GAAG,G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;QAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;CAuH1D"} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | #ignore compiled 45 | dist 46 | 47 | # TypeScript v1 declaration files 48 | typings/ 49 | 50 | # TypeScript cache 51 | *.tsbuildinfo 52 | 53 | # Optional npm cache directory 54 | .npm 55 | 56 | # Optional eslint cache 57 | .eslintcache 58 | 59 | # Microbundle cache 60 | .rpt2_cache/ 61 | .rts2_cache_cjs/ 62 | .rts2_cache_es/ 63 | .rts2_cache_umd/ 64 | 65 | # Optional REPL history 66 | .node_repl_history 67 | 68 | # Output of 'npm pack' 69 | *.tgz 70 | 71 | # Yarn Integrity file 72 | .yarn-integrity 73 | 74 | # dotenv environment variables file 75 | .env 76 | .env.test 77 | 78 | # parcel-bundler cache (https://parceljs.org/) 79 | .cache 80 | 81 | # Next.js build output 82 | .next 83 | 84 | # Nuxt.js build / generate output 85 | .nuxt 86 | dist 87 | 88 | # Gatsby files 89 | .cache/ 90 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 91 | # https://nextjs.org/blog/next-9-1#public-directory-support 92 | # public 93 | 94 | # vuepress build output 95 | .vuepress/dist 96 | 97 | # Serverless directories 98 | .serverless/ 99 | 100 | # FuseBox cache 101 | .fusebox/ 102 | 103 | # DynamoDB Local files 104 | .dynamodb/ 105 | 106 | # TernJS port file 107 | .tern-port 108 | -------------------------------------------------------------------------------- /dist/CacheManager.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"CacheManager.js","sourceRoot":"","sources":["../src/CacheManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAoC;AAIpC;;;;;;;;;GASG;AACH,MAAa,YAAa,SAAQ,iBAAO;IACvC;;;OAGG;IACH,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAED;;;;;OAKG;IACG,GAAG,CACP,GAAW;;YAEX,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,GAAG,EAAE,CAAC,CAAC;QAClE,CAAC;KAAA;IAED;;;;;;;OAOG;IACG,GAAG,CACP,GAAW,EACX,KAAU,EACV,GAAY;;YAEZ,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;gBAChE,GAAG;gBACH,KAAK;gBACL,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS;aAC3B,CAAC,CAAC;YACH,OAAO,EAAE,MAAM,EAAE,CAAC;QACpB,CAAC;KAAA;IAED;;;;;OAKG;IACG,MAAM,CAAC,IAAuB;;YAClC,IAAI,OAAO,GAAG,IAAI,CAAC;YACnB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;gBAAE,OAAO,GAAG,IAAI,CAAC;;gBACnC,OAAO,GAAG,CAAC,IAAI,CAAC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AAG,CAAC,2BAA2B,CAAC,CAAC;QAC7D,CAAC;KAAA;IAED;;;;;;;;;;;;;;;OAeG;IACG,QAAQ,CACZ,OAAgB,EAChB,IAAa;;YAMb,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAC9C,+BAA+B,EAC/B;gBACE,OAAO;gBACP,IAAI;aACL,CACF,CAAC;YAEF,IAAI,MAAM;gBAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gBACjD,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;QAC3D,CAAC;KAAA;CACF;AAzKD,oCAyKC"} -------------------------------------------------------------------------------- /dist/FileManager.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"FileManager.d.ts","sourceRoot":"","sources":["../src/FileManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAMtD;;;;;GAKG;AACH,qBAAa,WAAY,SAAQ,OAAO;;IAetC;;;;;OAKG;gBACS,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAM1E;;;;;OAKG;IACG,MAAM,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAO1E;;;;;OAKG;IACG,OAAO,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,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CAAA;KAAE,CAAC;IAQ5D;;;;;;OAMG;IACG,MAAM,CACV,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAQ5D;;;;;;OAMG;IACG,OAAO,CACX,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GACtB,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAW5D;;;;;;OAMG;IACG,UAAU,CACd,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GACtB,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAW5D;;;;;;;;OAQG;IACG,UAAU,CACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GACtB,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;CAS7D"} -------------------------------------------------------------------------------- /dist/BucketManager.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"BucketManager.d.ts","sourceRoot":"","sources":["../src/BucketManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAO5C;;;;;;;GAOG;AACH,qBAAa,aAAc,SAAQ,OAAO;;IAQxC;;;;OAIG;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,MAAM,EAAE,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAkBvE;;;;;;;;;;OAUG;IACG,MAAM,CACV,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,GAAG,EACb,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAwD5D;;;;;OAKG;IACH,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW;IAIvC;;;;;OAKG;IACG,WAAW,CACf,cAAc,EAAE,MAAM,EAAE,GACvB,OAAO,CAAC;QAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAYvC;;;;;;OAMG;IACG,OAAO,CACX,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GACtB,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAO5D;;;;;;OAMG;IACG,UAAU,CACd,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GACtB,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAO5D;;;;;;;;;OASG;IACG,UAAU,CACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EACvB,YAAY,GAAE,OAAe,GAC5B,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;CAS7D"} -------------------------------------------------------------------------------- /dist/DatabaseManager.d.ts: -------------------------------------------------------------------------------- 1 | import { APIBase } from "./APIBase"; 2 | import { Fetcher } from "./utils/Fetcher"; 3 | import { QueryBuilder } from "./QueryBuilder"; 4 | import { APIError } from "./types"; 5 | /** 6 | * The database manager allows you manage your applications database. With DatabaseManager you can create new objects in your data model, update or delete existing ones, run queries and paginate over large data sets. 7 | * 8 | * @export 9 | * @class DatabaseManager 10 | */ 11 | export declare class DatabaseManager extends APIBase { 12 | /** 13 | * Creates an instance of DatabaseManager to manage data of your application. 14 | * @param {Fetcher} fetcher The http client to make RESTful API calls to the application's execution engine 15 | */ 16 | constructor(fetcher: Fetcher); 17 | /** 18 | * Creates a new {@link QueryBuilder} for the specified model. 19 | * 20 | * In Altogic, models define the data structure and data validation rules of your applications. A model is composed of basic, advanced, and sub-model fields. As an analogy, you can think of models as tables and fields as columns in relational databases. 21 | * 22 | * You can specify a top-level model or a sub-model name for this method. As an example if you have a model named `users` where you keep your app users information you can create a {@link QueryBuilder} for `users` model by calling `altogic.db.model('users')` 23 | * 24 | * In case you need to work on a sub-model object, such as your users might have a list of addresses and these addresses are stored under a users object, you can create a {@link QueryBuilder} for `addresses` sub-model using the *dot-notation* by calling `altogic.db.model('users.addresses')` 25 | * 26 | * @param {string} name The name of the model 27 | * @returns Returns a new query builder object that will be issuing database commands (e.g., CRUD operations, queries) on the specified model 28 | */ 29 | model(name: string): QueryBuilder; 30 | /** 31 | * Returns the overall information about your apps database and its models. 32 | * 33 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 34 | * @returns Returns information about your app's database 35 | */ 36 | getStats(): Promise<{ 37 | data: object | null; 38 | errors: APIError | null; 39 | }>; 40 | } 41 | //# sourceMappingURL=DatabaseManager.d.ts.map -------------------------------------------------------------------------------- /dist/TaskManager.d.ts: -------------------------------------------------------------------------------- 1 | import { APIBase } from "./APIBase"; 2 | import { Fetcher } from "./utils/Fetcher"; 3 | import { APIError, TaskInfo } from "./types"; 4 | /** 5 | * The task manager allows you to manually trigger service executions of your scheduled tasks which actually ran periodically at fixed times, dates, or intervals. 6 | * 7 | * Typically, a scheduled task runs according to its defined execution schedule. However, with Altogic's client API by calling the {@link runOnce} method, you can manually run scheduled tasks ahead of their actual execution schedule. 8 | * 9 | * @export 10 | * @class TaskManager 11 | */ 12 | export declare class TaskManager extends APIBase { 13 | /** 14 | * Creates an instance of TaskManager to trigger execution of scheduled tasks. 15 | * @param {Fetcher} fetcher The http client to make RESTful API calls to the application's execution engine 16 | */ 17 | constructor(fetcher: Fetcher); 18 | /** 19 | * Triggers the execution of the specified task. After the task is triggered, the routed service defined in your scheduled task configuration is invoked. This routed service executes the task and performs necessary actions defined in its service flow. 20 | * 21 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 22 | * @param {string} queueNameOrId The name or id of the message queue. 23 | * @returns If successful, returns information about the triggered task. You can use `taskId` to check the exectuion status of your task by calling {@link getTaskStatus} method. In case of errors, returns the errors that occurred. 24 | */ 25 | runOnce(taskNameOrId: string): Promise<{ 26 | info: TaskInfo | null; 27 | errors: APIError | null; 28 | }>; 29 | /** 30 | * Gets the latest status of the task. The last seven days task execution logs are kept. If you try to get the status of a task that has been triggered earlier, this method returns `null` for {@link TaskInfo}. 31 | * 32 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 33 | * @param {string} taskId The id of the task 34 | * @returns If successful, returns status information about the triggered task 35 | */ 36 | getTaskStatus(taskId: string): Promise<{ 37 | info: TaskInfo | null; 38 | errors: APIError | null; 39 | }>; 40 | } 41 | //# sourceMappingURL=TaskManager.d.ts.map -------------------------------------------------------------------------------- /src/DatabaseManager.ts: -------------------------------------------------------------------------------- 1 | import { APIBase } from "./APIBase"; 2 | import { Fetcher } from "./utils/Fetcher"; 3 | import { QueryBuilder } from "./QueryBuilder"; 4 | import { APIError } from "./types"; 5 | 6 | /** 7 | * The database manager allows you manage your applications database. With DatabaseManager you can create new objects in your data model, update or delete existing ones, run queries and paginate over large data sets. 8 | * 9 | * @export 10 | * @class DatabaseManager 11 | */ 12 | export class DatabaseManager extends APIBase { 13 | /** 14 | * Creates an instance of DatabaseManager to manage data of your application. 15 | * @param {Fetcher} fetcher The http client to make RESTful API calls to the application's execution engine 16 | */ 17 | constructor(fetcher: Fetcher) { 18 | super(fetcher); 19 | } 20 | 21 | /** 22 | * Creates a new {@link QueryBuilder} for the specified model. 23 | * 24 | * In Altogic, models define the data structure and data validation rules of your applications. A model is composed of basic, advanced, and sub-model fields. As an analogy, you can think of models as tables and fields as columns in relational databases. 25 | * 26 | * You can specify a top-level model or a sub-model name for this method. As an example if you have a model named `users` where you keep your app users information you can create a {@link QueryBuilder} for `users` model by calling `altogic.db.model('users')` 27 | * 28 | * In case you need to work on a sub-model object, such as your users might have a list of addresses and these addresses are stored under a users object, you can create a {@link QueryBuilder} for `addresses` sub-model using the *dot-notation* by calling `altogic.db.model('users.addresses')` 29 | * 30 | * @param {string} name The name of the model 31 | * @returns Returns a new query builder object that will be issuing database commands (e.g., CRUD operations, queries) on the specified model 32 | */ 33 | model(name: string): QueryBuilder { 34 | return new QueryBuilder(name, this.fetcher); 35 | } 36 | 37 | /** 38 | * Returns the overall information about your apps database and its models. 39 | * 40 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 41 | * @returns Returns information about your app's database 42 | */ 43 | async getStats(): Promise<{ data: object | null; errors: APIError | null }> { 44 | return await this.fetcher.get(`/_api/rest/v1/db/stats`); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/TaskManager.ts: -------------------------------------------------------------------------------- 1 | import { APIBase } from "./APIBase"; 2 | import { Fetcher } from "./utils/Fetcher"; 3 | import { APIError, TaskInfo } from "./types"; 4 | 5 | /** 6 | * The task manager allows you to manually trigger service executions of your scheduled tasks which actually ran periodically at fixed times, dates, or intervals. 7 | * 8 | * Typically, a scheduled task runs according to its defined execution schedule. However, with Altogic's client API by calling the {@link runOnce} method, you can manually run scheduled tasks ahead of their actual execution schedule. 9 | * 10 | * @export 11 | * @class TaskManager 12 | */ 13 | export class TaskManager extends APIBase { 14 | /** 15 | * Creates an instance of TaskManager to trigger execution of scheduled tasks. 16 | * @param {Fetcher} fetcher The http client to make RESTful API calls to the application's execution engine 17 | */ 18 | constructor(fetcher: Fetcher) { 19 | super(fetcher); 20 | } 21 | 22 | /** 23 | * Triggers the execution of the specified task. After the task is triggered, the routed service defined in your scheduled task configuration is invoked. This routed service executes the task and performs necessary actions defined in its service flow. 24 | * 25 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 26 | * @param {string} queueNameOrId The name or id of the message queue. 27 | * @returns If successful, returns information about the triggered task. You can use `taskId` to check the exectuion status of your task by calling {@link getTaskStatus} method. In case of errors, returns the errors that occurred. 28 | */ 29 | async runOnce( 30 | taskNameOrId: string 31 | ): Promise<{ info: TaskInfo | null; errors: APIError | null }> { 32 | const { data, errors } = await this.fetcher.post("/_api/rest/v1/task", { 33 | taskNameOrId, 34 | }); 35 | 36 | return { info: data, errors }; 37 | } 38 | 39 | /** 40 | * Gets the latest status of the task. The last seven days task execution logs are kept. If you try to get the status of a task that has been triggered earlier, this method returns `null` for {@link TaskInfo}. 41 | * 42 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 43 | * @param {string} taskId The id of the task 44 | * @returns If successful, returns status information about the triggered task 45 | */ 46 | async getTaskStatus( 47 | taskId: string 48 | ): Promise<{ info: TaskInfo | null; errors: APIError | null }> { 49 | const { data, errors } = await this.fetcher.get( 50 | `/_api/rest/v1/task/${taskId}` 51 | ); 52 | 53 | return { info: data, errors }; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /dist/index.d.ts: -------------------------------------------------------------------------------- 1 | import { AltogicClient } from "./AltogicClient"; 2 | import { APIBase } from "./APIBase"; 3 | import { AuthManager } from "./AuthManager"; 4 | import { EndpointManager } from "./EndpointManager"; 5 | import { CacheManager } from "./CacheManager"; 6 | import { QueueManager } from "./QueueManager"; 7 | import { TaskManager } from "./TaskManager"; 8 | import { DatabaseManager } from "./DatabaseManager"; 9 | import { QueryBuilder } from "./QueryBuilder"; 10 | import { DBObject } from "./DBObject"; 11 | import { StorageManager } from "./StorageManager"; 12 | import { BucketManager } from "./BucketManager"; 13 | import { FileManager } from "./FileManager"; 14 | import { RealtimeManager } from "./RealtimeManager"; 15 | import { Fetcher } from "./utils/Fetcher"; 16 | import { KeyValuePair, Session, ClientOptions, ClientStorage, User, APIError, ErrorEntry, MessageInfo, TaskInfo, GetOptions, SimpleLookup, ComplexLookup, CreateOptions, DeleteOptions, UpdateOptions, SetOptions, AppendOptions, DBAction, SortEntry, FieldUpdate, UpdateInfo, DeleteInfo, GroupComputation, BucketListOptions, BucketSortEntry, FileListOptions, FileSortEntry, FileUploadOptions, CookieOptions, ListenerFunction, EventData, RealtimeOptions, MemberData, UserEventListenerFunction } from "./types"; 17 | /** 18 | * Creates a new client to interact with your backend application developed in Altogic. You need to specify the `envUrl` and `clientKey` to create a new client object. You can create a new environment or access your app `envUrl` from the **Environments** view and create a new `clientKey` from **App Settings/Client library** view in Altogic designer. 19 | * @param {string} envUrl The base URL of the Altogic application environment where a snapshot of the application is deployed 20 | * @param {string} clientKey The client library key of the app 21 | * @param {string} [apiKey] A valid API key of the environment 22 | * @param {string} options Additional configuration parameters 23 | * @returns {AltogicClient} The newly created client instance 24 | */ 25 | declare const createClient: (envUrl: string, clientKey: string, options?: ClientOptions) => AltogicClient; 26 | export { createClient, APIBase, AltogicClient, AuthManager, EndpointManager, CacheManager, QueueManager, TaskManager, DatabaseManager, Fetcher, KeyValuePair, Session, ClientOptions, ClientStorage, User, APIError, ErrorEntry, MessageInfo, TaskInfo, QueryBuilder, DBObject, GetOptions, SimpleLookup, ComplexLookup, CreateOptions, DeleteOptions, UpdateOptions, SetOptions, AppendOptions, DBAction, SortEntry, FieldUpdate, UpdateInfo, DeleteInfo, GroupComputation, StorageManager, BucketManager, BucketListOptions, BucketSortEntry, FileListOptions, FileSortEntry, FileUploadOptions, FileManager, RealtimeManager, CookieOptions, ListenerFunction, EventData, RealtimeOptions, MemberData, UserEventListenerFunction, }; 27 | //# sourceMappingURL=index.d.ts.map -------------------------------------------------------------------------------- /dist/DBObject.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"DBObject.js","sourceRoot":"","sources":["../src/DBObject.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAoC;AAepC,MAAM,mBAAmB,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;AACjD,MAAM,sBAAsB,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AACtE,MAAM,mBAAmB,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AACnE,MAAM,sBAAsB,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AACtE,MAAM,sBAAsB,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AAC3E,MAAM,sBAAsB,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,MAAa,QAAS,SAAQ,iBAAO;IAenC;;;;;OAKG;IACH,YAAY,SAAiB,EAAE,OAAgB,EAAE,EAAW;QAC1D,KAAK,CAAC,OAAO,CAAC,CAAC;QArBjB;;;;WAIG;QACH,sCAAmB;QAEnB;;;;WAIG;QACH,+BAAwB;QAUtB,uBAAA,IAAI,uBAAc,SAAS,MAAA,CAAC;QAC5B,uBAAA,IAAI,gBAAO,EAAE,MAAA,CAAC;IAChB,CAAC;IAwBK,GAAG,CACP,gBAAgE,EAChE,OAAoB;;YAEpB,IAAI,UAAU,GAAG,gBAAgB,CAAC;YAClC,IAAI,UAAU,GAAG,OAAO,CAAC;YAEzB,IACE,CAAC,KAAK,CAAC,OA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gBACR,KAAK,EAAE,uBAAA,IAAI,2BAAW;aACvB,CAAC,CAAC;QACL,CAAC;KAAA;IAED;;;;;;OAMG;IACG,MAAM,CACV,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE;gBAC/D,OAAO,kCAAO,sBAAsB,GAAK,OAAO,CAAE;gBAClD,EAAE,EAAE,uBAAA,IAAI,oBAAI;gBACZ,KAAK,EAAE,uBAAA,IAAI,2BAAW;aACvB,CAAC,CAAC;QACL,CAAC;KAAA;IAED;;;;;;;OAOG;IACG,MAAM,CACV,MAAc,EACd,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE;gBAC/D,MAAM;gBACN,OAAO,kCAAO,sBAAsB,GAAK,OAAO,CAAE;gBAClD,EAAE,EAAE,uBAAA,IAAI,oBAAI;gBACZ,KAAK,EAAE,uBAAA,IAAI,2BAAW;aACvB,CAAC,CAAC;QACL,CAAC;KAAA;IAED;;;;;;;OAOG;IACG,YAAY,CAChB,YAAyC,EACzC,OAAuB;;YAEvB,IAAI,OAAO,GAAG,IAAI,CAAC;YACnB,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;gBAAE,OAAO,GAAG,YAAY,CAAC;;gBACnD,OAAO,GAAG,CAAC,YAAY,CAAC,CAAC;YAE9B,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uCAAuC,EAAE;gBACtE,OAAO;gBACP,OAAO,kCAAO,sBAAsB,GAAK,OAAO,CAAE;gBAClD,EAAE,EAAE,uBAAA,IAAI,oBAAI;gBACZ,KAAK,EAAE,uBAAA,IAAI,2BAAW;aACvB,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AA3MD,4BA2MC"} -------------------------------------------------------------------------------- /dist/QueryBuilder.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"QueryBuilder.d.ts","sourceRoot":"","sources":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,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;CAQ/D"} -------------------------------------------------------------------------------- /dist/DatabaseManager.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { 3 | function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 4 | return new (P || (P = Promise))(function (resolve, reject) { 5 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 6 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } 7 | function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } 8 | step((generator = generator.apply(thisArg, _arguments || [])).next()); 9 | }); 10 | }; 11 | Object.defineProperty(exports, "__esModule", { value: true }); 12 | exports.DatabaseManager = void 0; 13 | const APIBase_1 = require("./APIBase"); 14 | const QueryBuilder_1 = require("./QueryBuilder"); 15 | /** 16 | * The database manager allows you manage your applications database. With DatabaseManager you can create new objects in your data model, update or delete existing ones, run queries and paginate over large data sets. 17 | * 18 | * @export 19 | * @class DatabaseManager 20 | */ 21 | class DatabaseManager extends APIBase_1.APIBase { 22 | /** 23 | * Creates an instance of DatabaseManager to manage data of your application. 24 | * @param {Fetcher} fetcher The http client to make RESTful API calls to the application's execution engine 25 | */ 26 | constructor(fetcher) { 27 | super(fetcher); 28 | } 29 | /** 30 | * Creates a new {@link QueryBuilder} for the specified model. 31 | * 32 | * In Altogic, models define the data structure and data validation rules of your applications. A model is composed of basic, advanced, and sub-model fields. As an analogy, you can think of models as tables and fields as columns in relational databases. 33 | * 34 | * You can specify a top-level model or a sub-model name for this method. As an example if you have a model named `users` where you keep your app users information you can create a {@link QueryBuilder} for `users` model by calling `altogic.db.model('users')` 35 | * 36 | * In case you need to work on a sub-model object, such as your users might have a list of addresses and these addresses are stored under a users object, you can create a {@link QueryBuilder} for `addresses` sub-model using the *dot-notation* by calling `altogic.db.model('users.addresses')` 37 | * 38 | * @param {string} name The name of the model 39 | * @returns Returns a new query builder object that will be issuing database commands (e.g., CRUD operations, queries) on the specified model 40 | */ 41 | model(name) { 42 | return new QueryBuilder_1.QueryBuilder(name, this.fetcher); 43 | } 44 | /** 45 | * Returns the overall information about your apps database and its models. 46 | * 47 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 48 | * @returns Returns information about your app's database 49 | */ 50 | getStats() { 51 | return __awaiter(this, void 0, void 0, function* () { 52 | return yield this.fetcher.get(`/_api/rest/v1/db/stats`); 53 | }); 54 | } 55 | } 56 | exports.DatabaseManager = DatabaseManager; 57 | //# sourceMappingURL=DatabaseManager.js.map -------------------------------------------------------------------------------- /dist/QueueManager.d.ts: -------------------------------------------------------------------------------- 1 | import { APIBase } from "./APIBase"; 2 | import { Fetcher } from "./utils/Fetcher"; 3 | import { APIError, MessageInfo } from "./types"; 4 | /** 5 | * The queue manager allows different parts of your application to communicate and perform activities asynchronously. 6 | * 7 | * A message queue provides a buffer that temporarily stores messages and dispatches them to their consuming service. The messages are usually small, and can be things like requests, replies or error messages, etc. 8 | * 9 | * Typically, in Altogic, you submit messages to a queue in your backend app services using the **Submit Message to Queue** node. However, with Altogic's client API by calling the {@link submitMessage} method, you can manually send messages to your selected queue for processing. 10 | * 11 | * @export 12 | * @class QueueManager 13 | */ 14 | export declare class QueueManager extends APIBase { 15 | /** 16 | * Creates an instance of QueueManager to submit messages to your backend app message queues. 17 | * @param {Fetcher} fetcher The http client to make RESTful API calls to the application's execution engine 18 | */ 19 | constructor(fetcher: Fetcher); 20 | /** 21 | * Submits a message to the specified message queue for asychronous processing. After the message is submitted, the routed service defined in your message queue configuration is invoked. This routed service processes the input message and performs necessary tasks defined in its service flow. 22 | * 23 | * You can also specify a delay (in seconds) between message submission to the queue and routed service invocation. As an example, you would like to send a welcome email to your new users when they sign up. Instead of sending this email immediately after sign up, you can send it after 24 hours later (e.g., 60 x 60 x 24 = 86400 seconds) 24 | * 25 | * The structure of the message (e.g., key-value pairs) is defined by the *Start Node* of your queue service. 26 | * 27 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 28 | * @param {string} queueNameOrId The name or id of the message queue. 29 | * @param {object} message The message payload (JSON object) that will be submitted to the message queue 30 | * @param {number} delay The number of seconds to delay the messages in queue before dispacthing them to their consuming service 31 | * @returns If successful, returns information about the submitted message. You can use `messageId` to check the processing status of your message by calling {@link getMessageStatus} method. In case of an errors, returns the errors that occurred. 32 | */ 33 | submitMessage(queueNameOrId: string, message: object, delay?: number): Promise<{ 34 | info: MessageInfo | null; 35 | errors: APIError | null; 36 | }>; 37 | /** 38 | * Gets the latest status of the message. The last seven days message queue logs are kept. If you try to get the status of a message that has been submitted earlier, this method returns `null` for {@link MessageInfo}. 39 | * 40 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 41 | * @param {string} messageId The id of the message 42 | * @returns If successful, returns status information about the submitted message 43 | */ 44 | getMessageStatus(messageId: string): Promise<{ 45 | info: MessageInfo | null; 46 | errors: APIError | null; 47 | }>; 48 | } 49 | //# sourceMappingURL=QueueManager.d.ts.map -------------------------------------------------------------------------------- /dist/TaskManager.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { 3 | function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 4 | return new (P || (P = Promise))(function (resolve, reject) { 5 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 6 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } 7 | function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } 8 | step((generator = generator.apply(thisArg, _arguments || [])).next()); 9 | }); 10 | }; 11 | Object.defineProperty(exports, "__esModule", { value: true }); 12 | exports.TaskManager = void 0; 13 | const APIBase_1 = require("./APIBase"); 14 | /** 15 | * The task manager allows you to manually trigger service executions of your scheduled tasks which actually ran periodically at fixed times, dates, or intervals. 16 | * 17 | * Typically, a scheduled task runs according to its defined execution schedule. However, with Altogic's client API by calling the {@link runOnce} method, you can manually run scheduled tasks ahead of their actual execution schedule. 18 | * 19 | * @export 20 | * @class TaskManager 21 | */ 22 | class TaskManager extends APIBase_1.APIBase { 23 | /** 24 | * Creates an instance of TaskManager to trigger execution of scheduled tasks. 25 | * @param {Fetcher} fetcher The http client to make RESTful API calls to the application's execution engine 26 | */ 27 | constructor(fetcher) { 28 | super(fetcher); 29 | } 30 | /** 31 | * Triggers the execution of the specified task. After the task is triggered, the routed service defined in your scheduled task configuration is invoked. This routed service executes the task and performs necessary actions defined in its service flow. 32 | * 33 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 34 | * @param {string} queueNameOrId The name or id of the message queue. 35 | * @returns If successful, returns information about the triggered task. You can use `taskId` to check the exectuion status of your task by calling {@link getTaskStatus} method. In case of errors, returns the errors that occurred. 36 | */ 37 | runOnce(taskNameOrId) { 38 | return __awaiter(this, void 0, void 0, function* () { 39 | const { data, errors } = yield this.fetcher.post("/_api/rest/v1/task", { 40 | taskNameOrId, 41 | }); 42 | return { info: data, errors }; 43 | }); 44 | } 45 | /** 46 | * Gets the latest status of the task. The last seven days task execution logs are kept. If you try to get the status of a task that has been triggered earlier, this method returns `null` for {@link TaskInfo}. 47 | * 48 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 49 | * @param {string} taskId The id of the task 50 | * @returns If successful, returns status information about the triggered task 51 | */ 52 | getTaskStatus(taskId) { 53 | return __awaiter(this, void 0, void 0, function* () { 54 | const { data, errors } = yield this.fetcher.get(`/_api/rest/v1/task/${taskId}`); 55 | return { info: data, errors }; 56 | }); 57 | } 58 | } 59 | exports.TaskManager = TaskManager; 60 | //# sourceMappingURL=TaskManager.js.map -------------------------------------------------------------------------------- /dist/utils/helpers.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Removes trailing slash character from input url string. 3 | * @export 4 | * @param {string} url The url string to revove trailing slach 5 | * @returns Trailed url string 6 | */ 7 | export declare function removeTrailingSlash(url: string): string; 8 | /** 9 | * Normalizes the input url string by trimming spaces and removing any trailing slash character. 10 | * @export 11 | * @param {string} url The url string to normalize 12 | * @returns Normalized url string 13 | */ 14 | export declare function normalizeUrl(url: string): string; 15 | /** 16 | * Retrieves the query string parameter value from the browser url. 17 | * @export 18 | * @param {string} paramName The name of the query string parameter 19 | * @returns {string | null} The value of the parameter if found in query string part of the url or null otherwise 20 | */ 21 | export declare function getParamValue(paramName: string): string | null; 22 | /** 23 | * Checks whether the input field value is specified or not. 24 | * @export 25 | * @param {string} fieldName Field name to check for a value 26 | * @param {any} fieldValue Field value 27 | * @param {any} checkEmptyString Flag to check empty strings or not 28 | * @throws Throws an exception if `fieldValue` is `null` or `undefined`. If `checkEmptyString=true`, throws an exception if string is empty. 29 | */ 30 | export declare function checkRequired(fieldName: string, fieldValue: any, checkEmptyString?: boolean): void; 31 | /** 32 | * Sets the Set-Cookie HTTP response header to send a cookie from the server to the user agent, so that the user agent can send it back to the server later. 33 | * 34 | * @param {any} req Represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on 35 | * @param {any} res Represents the HTTP response that an Express or Next.js app sends when it gets an HTTP request 36 | * @param {string} name Name of the cookie 37 | * @param {any} value Value of the cookie 38 | * @param {number} maxAge Indicates the number of seconds until the cookie expires. A zero or negative number will expire the cookie immediately. 39 | * @param {string} sameSite Controls whether or not a cookie is sent with cross-origin requests, providing some protection against cross-site request forgery attacks. It takes three possible values: Strict, Lax, and None. 40 | * @param {boolean} httpOnly Forbids JavaScript from accessing the cookie 41 | * @param {boolean} secure Indicates that the cookie is sent to the server only when a request is made with the https: scheme (except on localhost), and therefore, is more resistant to man-in-the-middle attacks. 42 | */ 43 | export declare function setCookie(req: any, res: any, name: string, value: any, maxAge: number, sameSite: "strict" | "lax" | "none", httpOnly: boolean, secure: boolean): void; 44 | /** 45 | * Gets the value of the cookie identified by its name. 46 | * 47 | * @param {any} req Represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on 48 | * @param {any} res Represents the HTTP response that an Express or Next.js app sends when it gets an HTTP request 49 | * @param {any} name The name of the cookie to fetch 50 | * @returns {object} The value of the cookie object if found otherwise null 51 | */ 52 | export declare function getCookie(req: any, res: any, name: string): any; 53 | /** 54 | * Parses the env url and returns its components 55 | * 56 | * @param {string} envUrl Environment url to parse 57 | * @returns {object} Parsed environment url components 58 | */ 59 | export declare function parseRealtimeEnvUrl(envUrl: string): any; 60 | //# sourceMappingURL=helpers.d.ts.map -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import { AltogicClient } from "./AltogicClient"; 2 | import { APIBase } from "./APIBase"; 3 | import { AuthManager } from "./AuthManager"; 4 | import { EndpointManager } from "./EndpointManager"; 5 | import { CacheManager } from "./CacheManager"; 6 | import { QueueManager } from "./QueueManager"; 7 | import { TaskManager } from "./TaskManager"; 8 | import { DatabaseManager } from "./DatabaseManager"; 9 | import { QueryBuilder } from "./QueryBuilder"; 10 | import { DBObject } from "./DBObject"; 11 | import { StorageManager } from "./StorageManager"; 12 | import { BucketManager } from "./BucketManager"; 13 | import { FileManager } from "./FileManager"; 14 | import { RealtimeManager } from "./RealtimeManager"; 15 | import { Fetcher } from "./utils/Fetcher"; 16 | import { 17 | KeyValuePair, 18 | Session, 19 | ClientOptions, 20 | ClientStorage, 21 | User, 22 | APIError, 23 | ErrorEntry, 24 | MessageInfo, 25 | TaskInfo, 26 | GetOptions, 27 | SimpleLookup, 28 | ComplexLookup, 29 | CreateOptions, 30 | DeleteOptions, 31 | UpdateOptions, 32 | SetOptions, 33 | AppendOptions, 34 | DBAction, 35 | SortEntry, 36 | FieldUpdate, 37 | UpdateInfo, 38 | DeleteInfo, 39 | GroupComputation, 40 | BucketListOptions, 41 | BucketSortEntry, 42 | FileListOptions, 43 | FileSortEntry, 44 | FileUploadOptions, 45 | CookieOptions, 46 | ListenerFunction, 47 | EventData, 48 | RealtimeOptions, 49 | MemberData, 50 | UserEventListenerFunction, 51 | } from "./types"; 52 | import { polyfillGlobalThis } from "./utils/polyfills"; 53 | 54 | // Make globalThis available 55 | polyfillGlobalThis(); 56 | 57 | /** 58 | * Creates a new client to interact with your backend application developed in Altogic. You need to specify the `envUrl` and `clientKey` to create a new client object. You can create a new environment or access your app `envUrl` from the **Environments** view and create a new `clientKey` from **App Settings/Client library** view in Altogic designer. 59 | * @param {string} envUrl The base URL of the Altogic application environment where a snapshot of the application is deployed 60 | * @param {string} clientKey The client library key of the app 61 | * @param {string} [apiKey] A valid API key of the environment 62 | * @param {string} options Additional configuration parameters 63 | * @returns {AltogicClient} The newly created client instance 64 | */ 65 | const createClient = ( 66 | envUrl: string, 67 | clientKey: string, 68 | options?: ClientOptions 69 | ): AltogicClient => { 70 | return new AltogicClient(envUrl, clientKey, options); 71 | }; 72 | 73 | export { 74 | createClient, 75 | APIBase, 76 | AltogicClient, 77 | AuthManager, 78 | EndpointManager, 79 | CacheManager, 80 | QueueManager, 81 | TaskManager, 82 | DatabaseManager, 83 | Fetcher, 84 | KeyValuePair, 85 | Session, 86 | ClientOptions, 87 | ClientStorage, 88 | User, 89 | APIError, 90 | ErrorEntry, 91 | MessageInfo, 92 | TaskInfo, 93 | QueryBuilder, 94 | DBObject, 95 | GetOptions, 96 | SimpleLookup, 97 | ComplexLookup, 98 | CreateOptions, 99 | DeleteOptions, 100 | UpdateOptions, 101 | SetOptions, 102 | AppendOptions, 103 | DBAction, 104 | SortEntry, 105 | FieldUpdate, 106 | UpdateInfo, 107 | DeleteInfo, 108 | GroupComputation, 109 | StorageManager, 110 | BucketManager, 111 | BucketListOptions, 112 | BucketSortEntry, 113 | FileListOptions, 114 | FileSortEntry, 115 | FileUploadOptions, 116 | FileManager, 117 | RealtimeManager, 118 | CookieOptions, 119 | ListenerFunction, 120 | EventData, 121 | RealtimeOptions, 122 | MemberData, 123 | UserEventListenerFunction, 124 | }; 125 | -------------------------------------------------------------------------------- /dist/AltogicClient.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"AltogicClient.js","sourceRoot":"","sources":["../src/AltogicClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkD;AAClD,6CAA8D;AAC9D,6CAA0C;AAE1C,+CAA4C;AAC5C,uDAAoD;AACpD,iDAA8C;AAC9C,iDAA8C;AAC9C,+CAA4C;AAC5C,uDAAoD;AACpD,qDAAkD;AAClD,uDAAoD;AAEpD,MAAM,eAAe,GAAG;IACtB,MAAM,EAAE,SAAS;IACjB,cAAc,EAAE,SAAS;IACzB,YAAY,EAAE,MAAA,UAAU,CAAC,MAAM,0CAAE,YAAY;IAC7C,QAAQ,EAAE;QACR,gBAAgB,EAAE,IAAI;QACtB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;QACvB,OAAO,EAAE,KAAK;QACd,cAAc,EAAE,IAAI;KACrB;CACF,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,aAAa;IA+DxB;;;;;;OAMG;IACH,YAAY,MAAc,EAAE,SAAiB,EAAE,OAAuB;QA9DtE;;;;WAIG;QACH,yCAAkB;QAElB;;;WAGG;QACH,6CAAiC;QAEjC;;;WAGG;QACH,2CAAmC;QAEnC;;;WAGG;QACH,8CAAmC;QAEnC;;;WAGG;QACH,8CAAmC;QAEnC;;;WAGG;QACH,6CAAiC;QAEjC;;;WAGG;QACH,iDAAyC;QAEzC;;;WAGG;QACH,gDAAuC;QAEvC;;;WAGG;QACH,iDAAyC;QAUvC,IACE,CAAC,MAAM;YACP,CAAC,CACC,MAAM,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;gBACpC,MAAM,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,CACpC;YAED,MAAM,IAAI,yBAAW,CACnB,wBAAwB,EACxB,iEAAiE,CAClE,CAAC;QAEJ,8BAA8B;QAC9B,IAAA,uBAAa,EAAC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A,CAAC;YACnD,OAAO,uBAAA,IAAI,kCAAa,CAAC;SAC1B;IACH,CAAC;IAED;;;;OAIG;IACH,IAAI,EAAE;QACJ,IAAI,uBAAA,IAAI,sCAAiB;YAAE,OAAO,uBAAA,IAAI,sCAAiB,CAAC;aACnD;YACH,uBAAA,IAAI,kCAAoB,IAAI,iCAAe,CAAC,uBAAA,IAAI,8BAAS,CAAC,MAAA,CAAC;YAC3D,OAAO,uBAAA,IAAI,sCAAiB,CAAC;SAC9B;IACH,CAAC;IAED;;;;OAIG;IACH,IAAI,OAAO;QACT,IAAI,uBAAA,IAAI,qCAAgB;YAAE,OAAO,uBAAA,IAAI,qCAAgB,CAAC;aACjD;YACH,uBAAA,IAAI,iCAAmB,IAAI,+BAAc,CAAC,uBAAA,IAAI,8BAAS,CAAC,MAAA,CAAC;YACzD,OAAO,uBAAA,IAAI,qCAAgB,CAAC;SAC7B;IACH,CAAC;IAED;;;;;;OAMG;IACH,IAAI,QAAQ;QACV,IAAI,uBAAA,IAAI,sCAAiB;YAAE,OAAO,uBAAA,IAAI,sCAAiB,CAAC;aACnD;YACH,uBAAA,IAAI,kCAAoB,IAAI,iCAAe,CAAC,uBAAA,IAAI,8BAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAA,CAAC;YAC1E,OAAO,uBAAA,IAAI,sCAAiB,CAAC;SAC9B;IACH,CAAC;CACF;AArOD,sCAqOC"} -------------------------------------------------------------------------------- /src/QueueManager.ts: -------------------------------------------------------------------------------- 1 | import { APIBase } from "./APIBase"; 2 | import { Fetcher } from "./utils/Fetcher"; 3 | import { APIError, MessageInfo } from "./types"; 4 | 5 | /** 6 | * The queue manager allows different parts of your application to communicate and perform activities asynchronously. 7 | * 8 | * A message queue provides a buffer that temporarily stores messages and dispatches them to their consuming service. The messages are usually small, and can be things like requests, replies or error messages, etc. 9 | * 10 | * Typically, in Altogic, you submit messages to a queue in your backend app services using the **Submit Message to Queue** node. However, with Altogic's client API by calling the {@link submitMessage} method, you can manually send messages to your selected queue for processing. 11 | * 12 | * @export 13 | * @class QueueManager 14 | */ 15 | export class QueueManager extends APIBase { 16 | /** 17 | * Creates an instance of QueueManager to submit messages to your backend app message queues. 18 | * @param {Fetcher} fetcher The http client to make RESTful API calls to the application's execution engine 19 | */ 20 | constructor(fetcher: Fetcher) { 21 | super(fetcher); 22 | } 23 | 24 | /** 25 | * Submits a message to the specified message queue for asychronous processing. After the message is submitted, the routed service defined in your message queue configuration is invoked. This routed service processes the input message and performs necessary tasks defined in its service flow. 26 | * 27 | * You can also specify a delay (in seconds) between message submission to the queue and routed service invocation. As an example, you would like to send a welcome email to your new users when they sign up. Instead of sending this email immediately after sign up, you can send it after 24 hours later (e.g., 60 x 60 x 24 = 86400 seconds) 28 | * 29 | * The structure of the message (e.g., key-value pairs) is defined by the *Start Node* of your queue service. 30 | * 31 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 32 | * @param {string} queueNameOrId The name or id of the message queue. 33 | * @param {object} message The message payload (JSON object) that will be submitted to the message queue 34 | * @param {number} delay The number of seconds to delay the messages in queue before dispacthing them to their consuming service 35 | * @returns If successful, returns information about the submitted message. You can use `messageId` to check the processing status of your message by calling {@link getMessageStatus} method. In case of an errors, returns the errors that occurred. 36 | */ 37 | async submitMessage( 38 | queueNameOrId: string, 39 | message: object, 40 | delay?: number 41 | ): Promise<{ info: MessageInfo | null; errors: APIError | null }> { 42 | const { data, errors } = await this.fetcher.post("/_api/rest/v1/queue", { 43 | queueNameOrId, 44 | message, 45 | delay, 46 | }); 47 | 48 | return { info: data, errors }; 49 | } 50 | 51 | /** 52 | * Gets the latest status of the message. The last seven days message queue logs are kept. If you try to get the status of a message that has been submitted earlier, this method returns `null` for {@link MessageInfo}. 53 | * 54 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 55 | * @param {string} messageId The id of the message 56 | * @returns If successful, returns status information about the submitted message 57 | */ 58 | async getMessageStatus( 59 | messageId: string 60 | ): Promise<{ info: MessageInfo | null; errors: APIError | null }> { 61 | const { data, errors } = await this.fetcher.get( 62 | `/_api/rest/v1/queue/${messageId}` 63 | ); 64 | 65 | return { info: data, errors }; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /docs/assets/highlight.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --light-hl-0: #000000; 3 | --dark-hl-0: #D4D4D4; 4 | --light-hl-1: #AF00DB; 5 | --dark-hl-1: #C586C0; 6 | --light-hl-2: #001080; 7 | --dark-hl-2: #9CDCFE; 8 | --light-hl-3: #A31515; 9 | --dark-hl-3: #CE9178; 10 | --light-hl-4: #008000; 11 | --dark-hl-4: #6A9955; 12 | --light-hl-5: #0000FF; 13 | --dark-hl-5: #569CD6; 14 | --light-hl-6: #0070C1; 15 | --dark-hl-6: #4FC1FF; 16 | --light-hl-7: #795E26; 17 | --dark-hl-7: #DCDCAA; 18 | --light-hl-8: #800000; 19 | --dark-hl-8: #808080; 20 | --light-hl-9: #800000; 21 | --dark-hl-9: #569CD6; 22 | --light-hl-10: #000000FF; 23 | --dark-hl-10: #D4D4D4; 24 | --light-hl-11: #FF0000; 25 | --dark-hl-11: #9CDCFE; 26 | --light-hl-12: #0000FF; 27 | --dark-hl-12: #CE9178; 28 | --light-hl-13: #098658; 29 | --dark-hl-13: #B5CEA8; 30 | --light-code-background: #F5F5F5; 31 | --dark-code-background: #1E1E1E; 32 | } 33 | 34 | @media (prefers-color-scheme: light) { :root { 35 | --hl-0: var(--light-hl-0); 36 | --hl-1: var(--light-hl-1); 37 | --hl-2: var(--light-hl-2); 38 | --hl-3: var(--light-hl-3); 39 | --hl-4: var(--light-hl-4); 40 | --hl-5: var(--light-hl-5); 41 | --hl-6: var(--light-hl-6); 42 | --hl-7: var(--light-hl-7); 43 | --hl-8: var(--light-hl-8); 44 | --hl-9: var(--light-hl-9); 45 | --hl-10: var(--light-hl-10); 46 | --hl-11: var(--light-hl-11); 47 | --hl-12: var(--light-hl-12); 48 | --hl-13: var(--light-hl-13); 49 | --code-background: var(--light-code-background); 50 | } } 51 | 52 | @media (prefers-color-scheme: dark) { :root { 53 | --hl-0: var(--dark-hl-0); 54 | --hl-1: var(--dark-hl-1); 55 | --hl-2: var(--dark-hl-2); 56 | --hl-3: var(--dark-hl-3); 57 | --hl-4: var(--dark-hl-4); 58 | --hl-5: var(--dark-hl-5); 59 | --hl-6: var(--dark-hl-6); 60 | --hl-7: var(--dark-hl-7); 61 | --hl-8: var(--dark-hl-8); 62 | --hl-9: var(--dark-hl-9); 63 | --hl-10: var(--dark-hl-10); 64 | --hl-11: var(--dark-hl-11); 65 | --hl-12: var(--dark-hl-12); 66 | --hl-13: var(--dark-hl-13); 67 | --code-background: var(--dark-code-background); 68 | } } 69 | 70 | body.light { 71 | --hl-0: var(--light-hl-0); 72 | --hl-1: var(--light-hl-1); 73 | --hl-2: var(--light-hl-2); 74 | --hl-3: var(--light-hl-3); 75 | --hl-4: var(--light-hl-4); 76 | --hl-5: var(--light-hl-5); 77 | --hl-6: var(--light-hl-6); 78 | --hl-7: var(--light-hl-7); 79 | --hl-8: var(--light-hl-8); 80 | --hl-9: var(--light-hl-9); 81 | --hl-10: var(--light-hl-10); 82 | --hl-11: var(--light-hl-11); 83 | --hl-12: var(--light-hl-12); 84 | --hl-13: var(--light-hl-13); 85 | --code-background: var(--light-code-background); 86 | } 87 | 88 | body.dark { 89 | --hl-0: var(--dark-hl-0); 90 | --hl-1: var(--dark-hl-1); 91 | --hl-2: var(--dark-hl-2); 92 | --hl-3: var(--dark-hl-3); 93 | --hl-4: var(--dark-hl-4); 94 | --hl-5: var(--dark-hl-5); 95 | --hl-6: var(--dark-hl-6); 96 | --hl-7: var(--dark-hl-7); 97 | --hl-8: var(--dark-hl-8); 98 | --hl-9: var(--dark-hl-9); 99 | --hl-10: var(--dark-hl-10); 100 | --hl-11: var(--dark-hl-11); 101 | --hl-12: var(--dark-hl-12); 102 | --hl-13: var(--dark-hl-13); 103 | --code-background: var(--dark-code-background); 104 | } 105 | 106 | .hl-0 { color: var(--hl-0); } 107 | .hl-1 { color: var(--hl-1); } 108 | .hl-2 { color: var(--hl-2); } 109 | .hl-3 { color: var(--hl-3); } 110 | .hl-4 { color: var(--hl-4); } 111 | .hl-5 { color: var(--hl-5); } 112 | .hl-6 { color: var(--hl-6); } 113 | .hl-7 { color: var(--hl-7); } 114 | .hl-8 { color: var(--hl-8); } 115 | .hl-9 { color: var(--hl-9); } 116 | .hl-10 { color: var(--hl-10); } 117 | .hl-11 { color: var(--hl-11); } 118 | .hl-12 { color: var(--hl-12); } 119 | .hl-13 { color: var(--hl-13); } 120 | pre, code { background: var(--code-background); } 121 | -------------------------------------------------------------------------------- /dist/FileManager.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"FileManager.js","sourceRoot":"","sources":["../src/FileManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAoC;AAIpC,MAAM,oBAAoB,GAAG;IAC3B,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEF;;;;;GAKG;AACH,MAAa,WAAY,SAAQ,iBAAO;IAetC;;;;;OAKG;IACH,YAAY,cAAsB,EAAE,YAAoB,EAAE,OAAgB;QACxE,KAAK,CAAC,OAAO,CAAC,CAAC;QArBjB;;;;WAIG;QACH,8CAAwB;QAExB;;;;WAIG;QACH,4CAAsB;QAUpB,uBAAA,IAAI,+BAAmB,cAAc,MAAA,CAAC;QACtC,uBAAA,IAAI,6BAAiB,YAAY,MAAA,CAAC;IACpC,CAAC;IAED;;;;;OAKG;IACG,MAAM;;YACV,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE;gBACzE,IAAI,EAAE,uBAAA,IAAI,iCAAc;gBACxB,MAAM,EAAE,uBAAA,IAAI,mCAAgB;aAC7B,CAAC,CAAC;QACL,CAAC;KAAA;IAED;;;;;OAKG;IACG,OAAO;;YACX,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAA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AAI;gBACJ,IAAI,EAAE,uBAAA,IAAI,iCAAc;gBACxB,MAAM,EAAE,uBAAA,IAAI,mCAAgB;aAC7B,CACF,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;;;OAQG;IACG,UAAU,CACd,OAAe,EACf,QAAiB,EACjB,IAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE;gBACzE,OAAO;gBACP,QAAQ;gBACR,IAAI;gBACJ,IAAI,EAAE,uBAAA,IAAI,iCAAc;gBACxB,MAAM,EAAE,uBAAA,IAAI,mCAAgB;aAC7B,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AAzUD,kCAyUC"} -------------------------------------------------------------------------------- /dist/BucketManager.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"BucketManager.js","sourceRoot":"","sources":["../src/BucketManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAoC;AAGpC,+CAA4C;AAE5C,MAAM,oBAAoB,GAAG;IAC3B,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,KAAK;CACpB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAa,aAAc,SAAQ,iBAAO;IAQxC;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAgB;QAC5C,KAAK,CAAC,OAAO,CAAC,CAAC;QAbjB;;;;WAIG;QACH,gDAAwB;QAStB,uBAAA,IAAI,iCAAmB,QAAQ,MAAA,CAAC;IAClC,CAAC;IAED;;;;;OAKG;IACG,MAAM;;YACV,IAAI,uBAAA,IAAI,qCAAgB,KAAK,MAAM;gBAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;YAEzE,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE;gBACpE,MAAM,EAAE,uBAAA,IAAI,qCAAgB;aAC7B,CAAC,CAAC;QACL,CAAC;KAAA;IAED;;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QACL,CAAC;KAAA;IAED;;;;;;OAMG;IACG,UAAU,CACd,IAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE;gBACzE,IAAI;gBACJ,MAAM,EAAE,uBAAA,IAAI,qCAAgB;aAC7B,CAAC,CAAC;QACL,CAAC;KAAA;IAED;;;;;;;;;OASG;IACG,UAAU,CACd,OAAe,EACf,QAAiB,EACjB,IAAuB,EACvB,eAAwB,KAAK;;YAE7B,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE;gBACpE,OAAO;gBACP,QAAQ;gBACR,IAAI;gBACJ,YAAY;gBACZ,MAAM,EAAE,uBAAA,IAAI,qCAAgB;aAC7B,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AA9UD,sCA8UC"} -------------------------------------------------------------------------------- /dist/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.RealtimeManager = exports.FileManager = exports.BucketManager = exports.StorageManager = exports.DBObject = exports.QueryBuilder = exports.Fetcher = exports.DatabaseManager = exports.TaskManager = exports.QueueManager = exports.CacheManager = exports.EndpointManager = exports.AuthManager = exports.AltogicClient = exports.APIBase = exports.createClient = void 0; 4 | const AltogicClient_1 = require("./AltogicClient"); 5 | Object.defineProperty(exports, "AltogicClient", { enumerable: true, get: function () { return AltogicClient_1.AltogicClient; } }); 6 | const APIBase_1 = require("./APIBase"); 7 | Object.defineProperty(exports, "APIBase", { enumerable: true, get: function () { return APIBase_1.APIBase; } }); 8 | const AuthManager_1 = require("./AuthManager"); 9 | Object.defineProperty(exports, "AuthManager", { enumerable: true, get: function () { return AuthManager_1.AuthManager; } }); 10 | const EndpointManager_1 = require("./EndpointManager"); 11 | Object.defineProperty(exports, "EndpointManager", { enumerable: true, get: function () { return EndpointManager_1.EndpointManager; } }); 12 | const CacheManager_1 = require("./CacheManager"); 13 | Object.defineProperty(exports, "CacheManager", { enumerable: true, get: function () { return CacheManager_1.CacheManager; } }); 14 | const QueueManager_1 = require("./QueueManager"); 15 | Object.defineProperty(exports, "QueueManager", { enumerable: true, get: function () { return QueueManager_1.QueueManager; } }); 16 | const TaskManager_1 = require("./TaskManager"); 17 | Object.defineProperty(exports, "TaskManager", { enumerable: true, get: function () { return TaskManager_1.TaskManager; } }); 18 | const DatabaseManager_1 = require("./DatabaseManager"); 19 | Object.defineProperty(exports, "DatabaseManager", { enumerable: true, get: function () { return DatabaseManager_1.DatabaseManager; } }); 20 | const QueryBuilder_1 = require("./QueryBuilder"); 21 | Object.defineProperty(exports, "QueryBuilder", { enumerable: true, get: function () { return QueryBuilder_1.QueryBuilder; } }); 22 | const DBObject_1 = require("./DBObject"); 23 | Object.defineProperty(exports, "DBObject", { enumerable: true, get: function () { return DBObject_1.DBObject; } }); 24 | const StorageManager_1 = require("./StorageManager"); 25 | Object.defineProperty(exports, "StorageManager", { enumerable: true, get: function () { return StorageManager_1.StorageManager; } }); 26 | const BucketManager_1 = require("./BucketManager"); 27 | Object.defineProperty(exports, "BucketManager", { enumerable: true, get: function () { return BucketManager_1.BucketManager; } }); 28 | const FileManager_1 = require("./FileManager"); 29 | Object.defineProperty(exports, "FileManager", { enumerable: true, get: function () { return FileManager_1.FileManager; } }); 30 | const RealtimeManager_1 = require("./RealtimeManager"); 31 | Object.defineProperty(exports, "RealtimeManager", { enumerable: true, get: function () { return RealtimeManager_1.RealtimeManager; } }); 32 | const Fetcher_1 = require("./utils/Fetcher"); 33 | Object.defineProperty(exports, "Fetcher", { enumerable: true, get: function () { return Fetcher_1.Fetcher; } }); 34 | const polyfills_1 = require("./utils/polyfills"); 35 | // Make globalThis available 36 | (0, polyfills_1.polyfillGlobalThis)(); 37 | /** 38 | * Creates a new client to interact with your backend application developed in Altogic. You need to specify the `envUrl` and `clientKey` to create a new client object. You can create a new environment or access your app `envUrl` from the **Environments** view and create a new `clientKey` from **App Settings/Client library** view in Altogic designer. 39 | * @param {string} envUrl The base URL of the Altogic application environment where a snapshot of the application is deployed 40 | * @param {string} clientKey The client library key of the app 41 | * @param {string} [apiKey] A valid API key of the environment 42 | * @param {string} options Additional configuration parameters 43 | * @returns {AltogicClient} The newly created client instance 44 | */ 45 | const createClient = (envUrl, clientKey, options) => { 46 | return new AltogicClient_1.AltogicClient(envUrl, clientKey, options); 47 | }; 48 | exports.createClient = createClient; 49 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /dist/AuthManager.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"AuthManager.d.ts","sourceRoot":"","sources":["../src/AuthManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EACL,aAAa,EAEb,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAGjB;;;;;;;;;;;;;GAaG;AACH,qBAAa,WAAY,SAAQ,OAAO;;IAmBtC;;;;OAIG;gBAED,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,OAAO,EAChB,EAAE,YAAY,EAAE,cAAc,EAAE,EAAE,aAAa;IA+BjD;;OAEG;IACH,cAAc,IAAI,IAAI;IAItB;;OAEG;IACH,iBAAiB,IAAI,IAAI;IAQzB;;;OAGG;IACH,UAAU,IAAI,OAAO,GAAG,IAAI;IAO5B;;;OAGG;IACH,OAAO,IAAI,IAAI,GAAG,IAAI;IAOtB;;;;;;;OAOG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAMlC;;;;;OAKG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAKzB;;;;;;OAMG;IACH,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,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,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC;QAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAYvC;;;;;;;;;;OAUG;IACG,WAAW,CACf,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;QAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAY1D;;;;;;;;;;OAUG;IACG,WAAW,CACf,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;QAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE,CAAC;IAY1D;;;;;;OAMG;IACG,WAAW,CACf,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACX,OAAO,CAAC;QACT,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;QAClB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;QACxB,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;KACzB,CAAC;IAqBF;;;;;;;;;;;;;;;;;;OAkBG;IACH,WAAW,CAAC,QAAQ,EAAE,yBAAyB,GAAG,IAAI;CAGvD"} -------------------------------------------------------------------------------- /docs/interfaces/KeyValuePair.html: -------------------------------------------------------------------------------- 1 | KeyValuePair | altogic
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface KeyValuePair

2 |

Represents a basic javascript object with key-value pairs

3 |
export
interface

KeyValuePair

4 |

Hierarchy

  • KeyValuePair

Indexable

[key: string]: any

Generated using TypeDoc

-------------------------------------------------------------------------------- /dist/QueueManager.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { 3 | function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 4 | return new (P || (P = Promise))(function (resolve, reject) { 5 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 6 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } 7 | function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } 8 | step((generator = generator.apply(thisArg, _arguments || [])).next()); 9 | }); 10 | }; 11 | Object.defineProperty(exports, "__esModule", { value: true }); 12 | exports.QueueManager = void 0; 13 | const APIBase_1 = require("./APIBase"); 14 | /** 15 | * The queue manager allows different parts of your application to communicate and perform activities asynchronously. 16 | * 17 | * A message queue provides a buffer that temporarily stores messages and dispatches them to their consuming service. The messages are usually small, and can be things like requests, replies or error messages, etc. 18 | * 19 | * Typically, in Altogic, you submit messages to a queue in your backend app services using the **Submit Message to Queue** node. However, with Altogic's client API by calling the {@link submitMessage} method, you can manually send messages to your selected queue for processing. 20 | * 21 | * @export 22 | * @class QueueManager 23 | */ 24 | class QueueManager extends APIBase_1.APIBase { 25 | /** 26 | * Creates an instance of QueueManager to submit messages to your backend app message queues. 27 | * @param {Fetcher} fetcher The http client to make RESTful API calls to the application's execution engine 28 | */ 29 | constructor(fetcher) { 30 | super(fetcher); 31 | } 32 | /** 33 | * Submits a message to the specified message queue for asychronous processing. After the message is submitted, the routed service defined in your message queue configuration is invoked. This routed service processes the input message and performs necessary tasks defined in its service flow. 34 | * 35 | * You can also specify a delay (in seconds) between message submission to the queue and routed service invocation. As an example, you would like to send a welcome email to your new users when they sign up. Instead of sending this email immediately after sign up, you can send it after 24 hours later (e.g., 60 x 60 x 24 = 86400 seconds) 36 | * 37 | * The structure of the message (e.g., key-value pairs) is defined by the *Start Node* of your queue service. 38 | * 39 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 40 | * @param {string} queueNameOrId The name or id of the message queue. 41 | * @param {object} message The message payload (JSON object) that will be submitted to the message queue 42 | * @param {number} delay The number of seconds to delay the messages in queue before dispacthing them to their consuming service 43 | * @returns If successful, returns information about the submitted message. You can use `messageId` to check the processing status of your message by calling {@link getMessageStatus} method. In case of an errors, returns the errors that occurred. 44 | */ 45 | submitMessage(queueNameOrId, message, delay) { 46 | return __awaiter(this, void 0, void 0, function* () { 47 | const { data, errors } = yield this.fetcher.post("/_api/rest/v1/queue", { 48 | queueNameOrId, 49 | message, 50 | delay, 51 | }); 52 | return { info: data, errors }; 53 | }); 54 | } 55 | /** 56 | * Gets the latest status of the message. The last seven days message queue logs are kept. If you try to get the status of a message that has been submitted earlier, this method returns `null` for {@link MessageInfo}. 57 | * 58 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to call this method.* 59 | * @param {string} messageId The id of the message 60 | * @returns If successful, returns status information about the submitted message 61 | */ 62 | getMessageStatus(messageId) { 63 | return __awaiter(this, void 0, void 0, function* () { 64 | const { data, errors } = yield this.fetcher.get(`/_api/rest/v1/queue/${messageId}`); 65 | return { info: data, errors }; 66 | }); 67 | } 68 | } 69 | exports.QueueManager = QueueManager; 70 | //# sourceMappingURL=QueueManager.js.map -------------------------------------------------------------------------------- /dist/QueryBuilder.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"QueryBuilder.js","sourceRoot":"","sources":["../src/QueryBuilder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAoC;AAEpC,yCAAsC;AAYtC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,YAAa,SAAQ,iBAAO;IAcvC;;;;OAIG;IACH,YAAY,IAAY,EAAE,OAAgB;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;QAnBjB;;;;WAIG;QACH,0CAAmB;QAEnB;;;WAGG;QACH,uCAAkB;QAShB,uBAAA,IAAI,2BAAc,IAAI,MAAA,CAAC;QACvB,uBAAA,IAAI,wBAAW;YACb,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;YACX,I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CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE;gBAC7D,KAAK,EAAE,uBAAA,IAAI,4BAAQ;gBACnB,eAAe;gBACf,IAAI;gBACJ,KAAK,EAAE,uBAAA,IAAI,+BAAW;aACvB,CAAC,CAAC;QACL,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,WAAW,CACf,SAAiB,EACjB,IAAY;;YAEZ,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE;gBAC9D,KAAK,EAAE,uBAAA,IAAI,4BAAQ;gBACnB,IAAI;gBACJ,SAAS;gBACT,KAAK,EAAE,uBAAA,IAAI,+BAAW;aACvB,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AAlrBD,oCAkrBC"} -------------------------------------------------------------------------------- /dist/AltogicClient.d.ts: -------------------------------------------------------------------------------- 1 | import { ClientOptions } from "./types"; 2 | import { AuthManager } from "./AuthManager"; 3 | import { EndpointManager } from "./EndpointManager"; 4 | import { CacheManager } from "./CacheManager"; 5 | import { QueueManager } from "./QueueManager"; 6 | import { TaskManager } from "./TaskManager"; 7 | import { DatabaseManager } from "./DatabaseManager"; 8 | import { StorageManager } from "./StorageManager"; 9 | import { RealtimeManager } from "./RealtimeManager"; 10 | /** 11 | * Javascript client for interacting with your backend applications developed in Altogic. 12 | * 13 | * AltogicClient is the main object that you will be using to issue commands to your backend apps. The commands that you can run are grouped below: 14 | * * {@link auth}: {@link AuthManager} - Manage users and user sessions 15 | * * {@link endpoint}: {@link EndpointManager} - Make http requests to your app endpoints and execute associated services 16 | * * {@link db}: {@link DatabaseManager} - Perform CRUD (including lookups, filtering, sorting, pagination) operations in your app database 17 | * * {@link queue}: {@link QueueManager} - Enables you to run long-running jobs asynchronously by submitting messages to queues 18 | * * {@link cache}: {@link CacheManager} - Store and manage your data objects in high-speed data storage layer (Redis) 19 | * * {@link task}: {@link TaskManager} - Manually trigger execution of scheduled tasks (e.g., cron jobs) 20 | * * {@link realtime}: {@link RealtimeManager} - Publish and subscribe (pub/sub) realtime messaging through websockets 21 | * 22 | * Each AltogicClient can interact with one of your app environments (e.g., development, test, production). You cannot create a single client to interact with multiple development, test or production environments at the same time. If you would like to issue commands to other environments, you need to create additional AltogicClient objects using the target environment's `envUrl`. 23 | * 24 | * @export 25 | * @class AltogicClient 26 | */ 27 | export declare class AltogicClient { 28 | #private; 29 | /** 30 | * Altogic client options 31 | * @protected 32 | * @type {ClientOptions} 33 | */ 34 | protected settings: ClientOptions; 35 | /** 36 | * Create a new client for web applications. 37 | * @param {string} envUrl The unique app environment base URL which is generated when you create an environment (e.g., development, test, production) for your backend app. You can access `envUrl` of your app environment from the Environments panel in Altogic designer. Note that, an AltogicClient object can only access a single app environment, you cannot use a development environment `envUrl` to access a test or production environment. To access other environments you need to create additional Altogic client objects with their respective `envUrl` values. 38 | * @param {string} clientKey The client library key of the app. You can create client keys from the **App Settings/Client Library** panel in Altogic designer. Besides authenticating your client, client keys are also used to define the authorization rights of each client, e.g., what operations they are allowed to perform on your backend app and define the authorized domains where the client key can be used (e.g., if you list your app domains in your client key configuration, that client key can only be used to make calls to your backend from a front-end app that runs on those specific domains) 39 | * @param {ClientOptions} [options] Configuration options for the api client 40 | * @throws Throws an exception if `envUrl` is not specified or not a valid URL path or `clientKey` is not specified 41 | */ 42 | constructor(envUrl: string, clientKey: string, options?: ClientOptions); 43 | /** 44 | * Returns the authentication manager that can be used to perform user and session management activities. 45 | * @readonly 46 | * @type {AuthManager} 47 | */ 48 | get auth(): AuthManager; 49 | /** 50 | * Returns the endpoint manager which is used to make http requests to your app endpoints and execute associated services. 51 | * @readonly 52 | * @type {EndpointManager} 53 | */ 54 | get endpoint(): EndpointManager; 55 | /** 56 | * Returns the cache manager which is used to store and manage objects in Redis cache. 57 | * @readonly 58 | * @type {CacheManager} 59 | */ 60 | get cache(): CacheManager; 61 | /** 62 | * Returns the queue manager which is used to submit messages to a message queue for processing. 63 | * @readonly 64 | * @type {QueueManager} 65 | */ 66 | get queue(): QueueManager; 67 | /** 68 | * Returns the task manager which is used to trigger scheduled tasks (e.g., cron jobs) for execution. 69 | * @readonly 70 | * @type {TaskManager} 71 | */ 72 | get task(): TaskManager; 73 | /** 74 | * Returns the database manager, which is used to perform CRUD (create, read, update and delete) and run queries in your app's database. 75 | * @readonly 76 | * @type {DatabaseManager} 77 | */ 78 | get db(): DatabaseManager; 79 | /** 80 | * Returns the storage manager, which is used to manage buckets and files of your app. 81 | * @readonly 82 | * @type {StorageManager} 83 | */ 84 | get storage(): StorageManager; 85 | /** 86 | * Returns the realtime manager, which is used to publish and subscribe (pub/sub) messaging through websockets. 87 | * 88 | * > *If the client library key is set to **enforce session**, an active user session is required (e.g., user needs to be logged in) to establish a realtime connection.* 89 | * @readonly 90 | * @type {RealtimeManager} 91 | */ 92 | get realtime(): RealtimeManager; 93 | } 94 | //# sourceMappingURL=AltogicClient.d.ts.map -------------------------------------------------------------------------------- /docs/interfaces/SimpleLookup.html: -------------------------------------------------------------------------------- 1 | SimpleLookup | altogic
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SimpleLookup

2 |

Defines the structure of a simple lookup

3 |
export
interface

SimpleLookup

4 |

Hierarchy

  • SimpleLookup

Index

Properties

Properties

field: string
5 |

The name of the object reference field of the model that will be looked up. Only the immediate fields of the model can be used in simple lookups. If you would like to look up for a sub-object field then you need to use that respective sub-model as the reference point of your lookups. The simple lookup basically runs the following query: this.field == lookup._id, meaning joins the looked up model with the current one by matching the value of the field with the _id of the looked up model.

6 |

Generated using TypeDoc

-------------------------------------------------------------------------------- /docs/interfaces/DeleteInfo.html: -------------------------------------------------------------------------------- 1 | DeleteInfo | altogic
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DeleteInfo

2 |

Defines the structure of the response of a multi-object delete operation in the database

3 |
export
interface

UpdateInfo

4 |

Hierarchy

  • DeleteInfo

Index

Properties

deleted: number
5 |

Number of objects deleted

6 |
totalMatch: number
7 |

Total number of objects that matched to the filter query

8 |

Generated using TypeDoc

-------------------------------------------------------------------------------- /docs/interfaces/UpdateInfo.html: -------------------------------------------------------------------------------- 1 | UpdateInfo | altogic
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UpdateInfo

2 |

Defines the structure of the response of a multi-object update operation in the database

3 |
export
interface

UpdateInfo

4 |

Hierarchy

  • UpdateInfo

Index

Properties

totalMatch: number
5 |

Total number of objects that matched to the filter query

6 |
updated: number
7 |

Number of objects updated

8 |

Generated using TypeDoc

-------------------------------------------------------------------------------- /docs/interfaces/MemberData.html: -------------------------------------------------------------------------------- 1 | MemberData | altogic
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MemberData

2 |

Defines the structure of the channel member data.

3 |
export
interface

MemberData

4 |

Hierarchy

  • MemberData

Index

Properties

Properties

data: any
5 |

Data payload for the channel member. The supported payload types are strings, JSON objects and arrays, buffers containing arbitrary binary data, and null. This data is typically set calling the {@link RealtimeManager.update} method.

6 |
id: string
7 |

The unique socket id of the channel member

8 |

Generated using TypeDoc

-------------------------------------------------------------------------------- /docs/interfaces/SortEntry.html: -------------------------------------------------------------------------------- 1 | SortEntry | altogic
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SortEntry

2 |

Defines the structure of sort entry

3 |
export
interface

SortEntry

4 |

Hierarchy

  • SortEntry

Index

Properties

Properties

direction: "desc" | "asc"
5 |

Sort direction

6 |
field: string
7 |

The name of the field that will be used in sorting the returned objects. The field name can be in dot-notation to specify sub-object fields (e.g., field.subField)

8 |

Generated using TypeDoc

-------------------------------------------------------------------------------- /dist/utils/helpers.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/utils/helpers.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAG5C;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,GAAW;IAC7C,OAAO,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAChC,CAAC;AAFD,kDAE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WAAW,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;AACvD,CAAC;AAxED,kDAwEC"} -------------------------------------------------------------------------------- /docs/interfaces/EventData.html: -------------------------------------------------------------------------------- 1 | EventData | altogic
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EventData

2 |

Defines the structure of the realtime event data (message) delivered to the clients.

3 |
export
interface

EventData

4 |

Hierarchy

  • EventData

Index

Properties

Properties

channel: null | string
5 |

The name of the channel this message is sent to. If channel is null, this means that that message is broadcasted to all connected clients of your app.

6 |
message: any
7 |

Contents of the message. All serializable datastructures are supported for the message, including Buffer.

8 |

Generated using TypeDoc

-------------------------------------------------------------------------------- /docs/interfaces/DeleteOptions.html: -------------------------------------------------------------------------------- 1 | DeleteOptions | altogic
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DeleteOptions

2 |

Defines the options for an object delete operation

3 |
export
interface

DeleteOptions

4 |

Hierarchy

  • DeleteOptions

Index

Properties

removeFromCache: boolean
5 |

Specify whether to remove deleted object from cache using deleted object id as the cache key.

6 |
returnTop: boolean
7 |

In case if you delete a submodel object (a child object of a top-level object), you can specify whether to return the updated top-level object.

8 |

Generated using TypeDoc

-------------------------------------------------------------------------------- /docs/interfaces/GetOptions.html: -------------------------------------------------------------------------------- 1 | GetOptions | altogic
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetOptions

2 |

Defines the options for an object read operation

3 |
export
interface

GetOptions

4 |

Hierarchy

  • GetOptions

Index

Properties

Properties

cache: "nocache" | "noexpiry" | "30sec" | "1min" | "2mins" | "5mins" | "10mins" | "15mins" | "30mins" | "1hour" | "6hours" | "12hours" | "1day" | "1week" | "1month" | "6months" | "1year"
5 |

Specify whether to cache the retrieved object using its id as the cache key or not. If the object is cached and the timeout has expired, the cached object will automatically be removed from the cache.

6 |

Generated using TypeDoc

-------------------------------------------------------------------------------- /dist/types.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"types.d.ts","sourceRoot":"","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;CACd;AACD;;;;GAIG;AACH,oBAAY,gBAAgB,GAAG,CAAC,OAAO,EAAE,SAAS,KAAK,IAAI,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,IAAI,EAAE,GAAG,CAAC;CACX;AAED;;;;;;;;GAQG;AACH,oBAAY,yBAAyB,GAAG,CACtC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,OAAO,GAAG,IAAI,KACpB,IAAI,CAAC"} -------------------------------------------------------------------------------- /docs/interfaces/CreateOptions.html: -------------------------------------------------------------------------------- 1 | CreateOptions | altogic
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CreateOptions

2 |

Defines the options for an object create operation

3 |
export
interface

CreateOptions

4 |

Hierarchy

  • CreateOptions

Index

Properties

Properties

cache: "nocache" | "noexpiry" | "30sec" | "1min" | "2mins" | "5mins" | "10mins" | "15mins" | "30mins" | "1hour" | "6hours" | "12hours" | "1day" | "1week" | "1month" | "6months" | "1year"
5 |

Specify whether to cache the created object using its id as the cache key or not. If the object is cached and the timeout has expired, the cached object will automatically be removed from the cache.

6 |

Generated using TypeDoc

-------------------------------------------------------------------------------- /docs/interfaces/BucketSortEntry.html: -------------------------------------------------------------------------------- 1 | BucketSortEntry | altogic
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BucketSortEntry

2 |

Defines the structure of a bucket sort entry

3 |
export
interface

BucketSortEntry

4 |

Hierarchy

  • BucketSortEntry

Index

Properties

Properties

direction: "desc" | "asc"
5 |

Sort direction

6 |
field: "name" | "isPublic" | "createdAt" | "updatedAt" | "userId" | "tags"
7 |

The name of the bucket field that will be used in sorting the returned objects

8 |

Generated using TypeDoc

--------------------------------------------------------------------------------