@fjell/client-api 4.3.2 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babel.config.cjs +14 -0
- package/dist/{src/AItemAPI.d.ts → AItemAPI.d.ts} +4 -4
- package/dist/AItemAPI.js +45 -0
- package/dist/{src/CItemAPI.d.ts → CItemAPI.d.ts} +5 -5
- package/dist/CItemAPI.js +27 -0
- package/dist/{src/ClientApi.d.ts → ClientApi.d.ts} +2 -2
- package/dist/{src/ClientApiOptions.d.ts → ClientApiOptions.d.ts} +2 -2
- package/dist/{src/PItemAPI.d.ts → PItemAPI.d.ts} +4 -5
- package/dist/PItemAPI.js +38 -0
- package/dist/{src/Utilities.d.ts → Utilities.d.ts} +1 -1
- package/dist/Utilities.js +153 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -0
- package/dist/logger.d.ts +2 -0
- package/dist/logger.js +6 -0
- package/dist/{src/ops → ops}/action.d.ts +4 -4
- package/dist/ops/action.js +20 -0
- package/dist/{src/ops → ops}/all.d.ts +4 -5
- package/dist/ops/all.js +24 -0
- package/dist/{src/ops → ops}/allAction.d.ts +4 -4
- package/dist/ops/allAction.js +23 -0
- package/dist/{src/ops → ops}/create.d.ts +4 -4
- package/dist/ops/create.js +22 -0
- package/dist/{src/ops → ops}/find.d.ts +4 -4
- package/dist/ops/find.js +25 -0
- package/dist/{src/ops → ops}/get.d.ts +4 -4
- package/dist/ops/get.js +18 -0
- package/dist/{src/ops → ops}/index.d.ts +5 -5
- package/dist/ops/index.js +26 -0
- package/dist/{src/ops → ops}/one.d.ts +4 -4
- package/dist/ops/one.js +29 -0
- package/dist/{src/ops → ops}/remove.d.ts +4 -4
- package/dist/ops/remove.js +18 -0
- package/dist/{src/ops → ops}/update.d.ts +4 -4
- package/dist/ops/update.js +19 -0
- package/package.json +29 -24
- package/src/index.ts +7 -4
- package/dist/src/AItemAPI.js +0 -39
- package/dist/src/AItemAPI.js.map +0 -1
- package/dist/src/CItemAPI.js +0 -20
- package/dist/src/CItemAPI.js.map +0 -1
- package/dist/src/ClientApi.js +0 -2
- package/dist/src/ClientApi.js.map +0 -1
- package/dist/src/ClientApiOptions.js +0 -2
- package/dist/src/ClientApiOptions.js.map +0 -1
- package/dist/src/PItemAPI.js +0 -30
- package/dist/src/PItemAPI.js.map +0 -1
- package/dist/src/Utilities.js +0 -110
- package/dist/src/Utilities.js.map +0 -1
- package/dist/src/index.d.ts +0 -4
- package/dist/src/index.js +0 -3
- package/dist/src/index.js.map +0 -1
- package/dist/src/logger.d.ts +0 -2
- package/dist/src/logger.js +0 -4
- package/dist/src/logger.js.map +0 -1
- package/dist/src/ops/action.js +0 -11
- package/dist/src/ops/action.js.map +0 -1
- package/dist/src/ops/all.js +0 -15
- package/dist/src/ops/all.js.map +0 -1
- package/dist/src/ops/allAction.js +0 -14
- package/dist/src/ops/allAction.js.map +0 -1
- package/dist/src/ops/create.js +0 -14
- package/dist/src/ops/create.js.map +0 -1
- package/dist/src/ops/find.js +0 -15
- package/dist/src/ops/find.js.map +0 -1
- package/dist/src/ops/get.js +0 -11
- package/dist/src/ops/get.js.map +0 -1
- package/dist/src/ops/index.js +0 -23
- package/dist/src/ops/index.js.map +0 -1
- package/dist/src/ops/one.js +0 -20
- package/dist/src/ops/one.js.map +0 -1
- package/dist/src/ops/remove.js +0 -11
- package/dist/src/ops/remove.js.map +0 -1
- package/dist/src/ops/update.js +0 -11
- package/dist/src/ops/update.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/eslint.config.mjs +0 -70
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Item, ItemQuery, LocKeyArray } from
|
|
2
|
-
import { GetMethodOptions, HttpApi } from
|
|
3
|
-
import { ClientApiOptions } from
|
|
4
|
-
import { Utilities } from
|
|
1
|
+
import { Item, ItemQuery, LocKeyArray } from '@fjell/core';
|
|
2
|
+
import { GetMethodOptions, HttpApi } from '@fjell/http-api';
|
|
3
|
+
import { ClientApiOptions } from '../ClientApiOptions';
|
|
4
|
+
import { Utilities } from '../Utilities';
|
|
5
5
|
export declare const getOneOperation: <V extends Item<S, L1, L2, L3, L4, L5>, S extends string, L1 extends string = never, L2 extends string = never, L3 extends string = never, L4 extends string = never, L5 extends string = never>(api: HttpApi, apiOptions: ClientApiOptions, utilities: Utilities<V, S, L1, L2, L3, L4, L5>) => (query: ItemQuery, options: Partial<GetMethodOptions>, locations: LocKeyArray<L1, L2, L3, L4, L5> | []) => Promise<V | null>;
|
package/dist/ops/one.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { queryToParams } from '@fjell/core';
|
|
2
|
+
import LibLogger from '../logger.js';
|
|
3
|
+
|
|
4
|
+
const logger = LibLogger.get('client-api', 'ops', 'one');
|
|
5
|
+
const getOneOperation = (api, apiOptions, utilities)=>{
|
|
6
|
+
const one = async (query = {}, options = {}, locations)=>{
|
|
7
|
+
logger.default('one', {
|
|
8
|
+
query,
|
|
9
|
+
locations
|
|
10
|
+
});
|
|
11
|
+
utilities.verifyLocations(locations);
|
|
12
|
+
const loc = locations;
|
|
13
|
+
const params = queryToParams(query);
|
|
14
|
+
const requestOptions = Object.assign({}, options, {
|
|
15
|
+
isAuthenticated: apiOptions.readAuthenticated,
|
|
16
|
+
params
|
|
17
|
+
});
|
|
18
|
+
let item = null;
|
|
19
|
+
const items = utilities.validatePK(await utilities.processArray(api.httpGet(utilities.getPath(loc), requestOptions)));
|
|
20
|
+
if (items.length > 0) {
|
|
21
|
+
item = items[0];
|
|
22
|
+
}
|
|
23
|
+
return item;
|
|
24
|
+
};
|
|
25
|
+
return one;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { getOneOperation };
|
|
29
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib25lLmpzIiwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComKey, Item, PriKey } from
|
|
2
|
-
import { DeleteMethodOptions, HttpApi } from
|
|
3
|
-
import { ClientApiOptions } from
|
|
4
|
-
import { Utilities } from
|
|
1
|
+
import { ComKey, Item, PriKey } from '@fjell/core';
|
|
2
|
+
import { DeleteMethodOptions, HttpApi } from '@fjell/http-api';
|
|
3
|
+
import { ClientApiOptions } from '../ClientApiOptions';
|
|
4
|
+
import { Utilities } from '../Utilities';
|
|
5
5
|
export declare const getRemoveOperation: <V extends Item<S, L1, L2, L3, L4, L5>, S extends string, L1 extends string = never, L2 extends string = never, L3 extends string = never, L4 extends string = never, L5 extends string = never>(api: HttpApi, apiOptions: ClientApiOptions, utilities: Utilities<V, S, L1, L2, L3, L4, L5>) => (ik: PriKey<S> | ComKey<S, L1, L2, L3, L4, L5>, options?: Partial<DeleteMethodOptions>) => Promise<boolean>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import LibLogger from '../logger.js';
|
|
2
|
+
|
|
3
|
+
const logger = LibLogger.get('client-api', 'ops', 'remove');
|
|
4
|
+
const getRemoveOperation = (api, apiOptions, utilities)=>{
|
|
5
|
+
const remove = async (ik, options = {})=>{
|
|
6
|
+
logger.default('remove', {
|
|
7
|
+
ik
|
|
8
|
+
});
|
|
9
|
+
const requestOptions = Object.assign({}, options, {
|
|
10
|
+
isAuthenticated: apiOptions.writeAuthenticated
|
|
11
|
+
});
|
|
12
|
+
return api.httpDelete(utilities.getPath(ik), requestOptions);
|
|
13
|
+
};
|
|
14
|
+
return remove;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { getRemoveOperation };
|
|
18
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVtb3ZlLmpzIiwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComKey, Item, ItemProperties, PriKey } from
|
|
2
|
-
import { HttpApi, PutMethodOptions } from
|
|
3
|
-
import { ClientApiOptions } from
|
|
4
|
-
import { Utilities } from
|
|
1
|
+
import { ComKey, Item, ItemProperties, PriKey } from '@fjell/core';
|
|
2
|
+
import { HttpApi, PutMethodOptions } from '@fjell/http-api';
|
|
3
|
+
import { ClientApiOptions } from '../ClientApiOptions';
|
|
4
|
+
import { Utilities } from '../Utilities';
|
|
5
5
|
export declare const getUpdateOperation: <V extends Item<S, L1, L2, L3, L4, L5>, S extends string, L1 extends string = never, L2 extends string = never, L3 extends string = never, L4 extends string = never, L5 extends string = never>(api: HttpApi, apiOptions: ClientApiOptions, utilities: Utilities<V, S, L1, L2, L3, L4, L5>) => (ik: PriKey<S> | ComKey<S, L1, L2, L3, L4, L5>, item: ItemProperties<S, L1, L2, L3, L4, L5>, options?: Partial<PutMethodOptions>) => Promise<V>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import LibLogger from '../logger.js';
|
|
2
|
+
|
|
3
|
+
const logger = LibLogger.get('client-api', 'ops', 'update');
|
|
4
|
+
const getUpdateOperation = (api, apiOptions, utilities)=>{
|
|
5
|
+
const update = async (ik, item, options = {})=>{
|
|
6
|
+
logger.default('update', {
|
|
7
|
+
ik,
|
|
8
|
+
item
|
|
9
|
+
});
|
|
10
|
+
const requestOptions = Object.assign({}, options, {
|
|
11
|
+
isAuthenticated: apiOptions.writeAuthenticated
|
|
12
|
+
});
|
|
13
|
+
return utilities.validatePK(await utilities.processOne(api.httpPut(utilities.getPath(ik), item, requestOptions)));
|
|
14
|
+
};
|
|
15
|
+
return update;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { getUpdateOperation };
|
|
19
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBkYXRlLmpzIiwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ==
|
package/package.json
CHANGED
|
@@ -1,51 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fjell/client-api",
|
|
3
3
|
"description": "Client API for Fjell",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.4.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"main": "./dist/
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"types": "./dist/
|
|
10
|
-
"require": "./dist/
|
|
11
|
-
"default": "./dist/
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"require": "./dist/index.js",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
|
-
"scripts": {
|
|
16
|
-
"lint": "eslint .",
|
|
17
|
-
"dev": "concurrently \"tsc --watch\" \"tsc-alias -w\"",
|
|
18
|
-
"build": "yarn run lint && tsc --build --verbose --force && tsc-alias -p tsconfig.json",
|
|
19
|
-
"clean": "rimraf dist",
|
|
20
|
-
"test": "yarn run lint && NODE_OPTIONS='--experimental-require-module' yarn run jest --coverage"
|
|
21
|
-
},
|
|
22
15
|
"dependencies": {
|
|
23
|
-
"@fjell/core": "^4.
|
|
24
|
-
"@fjell/http-api": "^4.
|
|
25
|
-
"@fjell/logging": "^4.
|
|
16
|
+
"@fjell/core": "^4.4.2",
|
|
17
|
+
"@fjell/http-api": "^4.4.0",
|
|
18
|
+
"@fjell/logging": "^4.4.2",
|
|
19
|
+
"deepmerge": "^4.3.1"
|
|
26
20
|
},
|
|
27
21
|
"devDependencies": {
|
|
28
22
|
"@babel/core": "^7.26.9",
|
|
29
23
|
"@babel/preset-env": "^7.26.9",
|
|
30
24
|
"@babel/preset-typescript": "^7.26.0",
|
|
31
|
-
"@
|
|
25
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
26
|
+
"@eslint/js": "^9.27.0",
|
|
27
|
+
"@swc/core": "^1.11.24",
|
|
32
28
|
"@tsconfig/recommended": "^1.0.8",
|
|
33
|
-
"@types/jest": "^29.5.14",
|
|
34
29
|
"@types/luxon": "^3.4.2",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
36
|
-
"@typescript-eslint/parser": "^8.
|
|
37
|
-
"
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^8.32.1",
|
|
31
|
+
"@typescript-eslint/parser": "^8.32.1",
|
|
32
|
+
"@vitest/coverage-istanbul": "^3.1.4",
|
|
33
|
+
"@vitest/coverage-v8": "^3.1.4",
|
|
34
|
+
"@vitest/ui": "^3.1.4",
|
|
38
35
|
"concurrently": "^9.1.2",
|
|
39
36
|
"eslint": "^9.21.0",
|
|
40
|
-
"jest": "^29.7.0",
|
|
41
37
|
"rimraf": "^6.0.1",
|
|
42
|
-
"ts-jest": "^29.2.5",
|
|
43
38
|
"tsc-alias": "^1.8.10",
|
|
44
|
-
"typescript": "^5.7.3"
|
|
39
|
+
"typescript": "^5.7.3",
|
|
40
|
+
"vite": "^6.3.5",
|
|
41
|
+
"vite-plugin-dts": "^4.5.4",
|
|
42
|
+
"vite-plugin-node": "^5.0.1",
|
|
43
|
+
"vitest": "^3.1.4"
|
|
45
44
|
},
|
|
46
|
-
"packageManager": "yarn@4.6.0",
|
|
47
45
|
"repository": {
|
|
48
46
|
"type": "git",
|
|
49
47
|
"url": "git+https://github.com/getfjell/client-api.git"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsc --noEmit && vite build",
|
|
51
|
+
"lint": "eslint . --ext .ts --fix",
|
|
52
|
+
"clean": "rimraf dist",
|
|
53
|
+
"test": "vitest run --coverage",
|
|
54
|
+
"test:ui": "vitest --ui"
|
|
50
55
|
}
|
|
51
56
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { ClientApi } from "./ClientApi";
|
|
4
|
-
export { ClientApiOptions } from "./ClientApiOptions";
|
|
1
|
+
export type { CItemApi } from "./CItemAPI";
|
|
2
|
+
export type { PItemApi } from "./PItemAPI";
|
|
3
|
+
export type { ClientApi } from "./ClientApi";
|
|
4
|
+
export type { ClientApiOptions } from "./ClientApiOptions";
|
|
5
|
+
|
|
6
|
+
export { createCItemApi } from "./CItemAPI";
|
|
7
|
+
export { createPItemApi } from "./PItemAPI";
|
package/dist/src/AItemAPI.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { getOperations } from "./ops";
|
|
2
|
-
import { createUtilities } from "./Utilities";
|
|
3
|
-
import LibLogger from "./logger";
|
|
4
|
-
const logger = LibLogger.get('AItemAPI');
|
|
5
|
-
export const finderToParams = (finder, finderParams) => {
|
|
6
|
-
return {
|
|
7
|
-
finder,
|
|
8
|
-
finderParams: JSON.stringify(finderParams),
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export const createAItemAPI = (api, pkType, pathNames, options) => {
|
|
12
|
-
logger.default('createAItemAPI', { pkType, pathNames, options });
|
|
13
|
-
let mergedOptions;
|
|
14
|
-
const defaultOptions = {
|
|
15
|
-
readAuthenticated: true,
|
|
16
|
-
allAuthenticated: true,
|
|
17
|
-
writeAuthenticated: true,
|
|
18
|
-
};
|
|
19
|
-
if (options) {
|
|
20
|
-
mergedOptions = Object.assign({}, defaultOptions, options);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
mergedOptions = defaultOptions;
|
|
24
|
-
}
|
|
25
|
-
const utilities = createUtilities(pkType, pathNames);
|
|
26
|
-
const operations = getOperations(api, mergedOptions, utilities);
|
|
27
|
-
return {
|
|
28
|
-
action: operations.action,
|
|
29
|
-
all: operations.all,
|
|
30
|
-
allAction: operations.allAction,
|
|
31
|
-
create: operations.create,
|
|
32
|
-
find: operations.find,
|
|
33
|
-
get: operations.get,
|
|
34
|
-
one: operations.one,
|
|
35
|
-
remove: operations.remove,
|
|
36
|
-
update: operations.update,
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=AItemAPI.js.map
|
package/dist/src/AItemAPI.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AItemAPI.js","sourceRoot":"","sources":["../../src/AItemAPI.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,SAAS,MAAM,UAAU,CAAC;AAEjC,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAqBzC,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,MAAc,EACd,YAAwG,EAC3F,EAAE;IACf,OAAO;QACL,MAAM;QACN,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;KAC3C,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAS1B,GAAY,EACZ,MAAS,EACT,SAA6C,EAC7C,OAA0B,EACW,EAAE;IAEzC,MAAM,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;IAEjE,IAAI,aAA+B,CAAC;IAEpC,MAAM,cAAc,GAAqB;QACvC,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,IAAI;QACtB,kBAAkB,EAAE,IAAI;KACzB,CAAC;IAEF,IAAI,OAAO,EAAE,CAAC;QACZ,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;SAAM,CAAC;QACN,aAAa,GAAG,cAAc,CAAC;IACjC,CAAC;IAED,MAAM,SAAS,GAAI,eAAe,CAA2B,MAAM,EAAE,SAAS,CAAC,CAAC;IAChF,MAAM,UAAU,GAAG,aAAa,CAA2B,GAAG,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC;IAE1F,OAAO;QACL,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,GAAG,EAAE,UAAU,CAAC,GAAG;QACnB,SAAS,EAAE,UAAU,CAAC,SAAS;QAC/B,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,IAAI,EAAE,UAAU,CAAC,IAAI;QACrB,GAAG,EAAE,UAAU,CAAC,GAAG;QACnB,GAAG,EAAE,UAAU,CAAC,GAAG;QACnB,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,MAAM,EAAE,UAAU,CAAC,MAAM;KAC1B,CAAA;AACH,CAAC,CAAA"}
|
package/dist/src/CItemAPI.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { createAItemAPI } from "./AItemAPI";
|
|
2
|
-
import LibLogger from "./logger";
|
|
3
|
-
const logger = LibLogger.get('CItemAPI');
|
|
4
|
-
;
|
|
5
|
-
export const createCItemApi = (api, type, pathNames, options) => {
|
|
6
|
-
logger.default('createCItemApi', { api, type, pathNames, options });
|
|
7
|
-
const aItemAPI = createAItemAPI(api, type, pathNames, options);
|
|
8
|
-
return {
|
|
9
|
-
action: aItemAPI.action,
|
|
10
|
-
all: aItemAPI.all,
|
|
11
|
-
allAction: aItemAPI.allAction,
|
|
12
|
-
one: aItemAPI.one,
|
|
13
|
-
get: aItemAPI.get,
|
|
14
|
-
create: aItemAPI.create,
|
|
15
|
-
remove: aItemAPI.remove,
|
|
16
|
-
update: aItemAPI.update,
|
|
17
|
-
find: aItemAPI.find,
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=CItemAPI.js.map
|
package/dist/src/CItemAPI.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CItemAPI.js","sourceRoot":"","sources":["../../src/CItemAPI.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,cAAc,EAAkB,MAAM,YAAY,CAAC;AAI5D,OAAO,SAAS,MAAM,UAAU,CAAC;AAEjC,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAoDxC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAS1B,GAAY,EACZ,IAAO,EACP,SAA6C,EAC7C,OAAyB,EACW,EAAE;IAExC,MAAM,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;IAEpE,MAAM,QAAQ,GAAG,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAE/D,OAAO;QACL,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,SAAS,EAAE,QAAQ,CAAC,SAAS;QAC7B,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,IAAI,EAAE,QAAQ,CAAC,IAAI;KAC6B,CAAC;AACrD,CAAC,CAAA"}
|
package/dist/src/ClientApi.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientApi.js","sourceRoot":"","sources":["../../src/ClientApi.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientApiOptions.js","sourceRoot":"","sources":["../../src/ClientApiOptions.ts"],"names":[],"mappings":""}
|
package/dist/src/PItemAPI.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
import { createAItemAPI } from "./AItemAPI";
|
|
3
|
-
import LibLogger from "./logger";
|
|
4
|
-
const logger = LibLogger.get('PItemAPI');
|
|
5
|
-
export const createPItemApi = (api, type, pathName, options) => {
|
|
6
|
-
logger.default('createPItemApi', { type, pathName, options });
|
|
7
|
-
const aItemAPI = createAItemAPI(api, type, [pathName], options);
|
|
8
|
-
const action = async (ik, action, body = {}, options = {}) => await aItemAPI.action(ik, action, body, options);
|
|
9
|
-
const all = async (query = {}, options = {}) => await aItemAPI.all(query, options, []);
|
|
10
|
-
const allAction = async (action, body = {}, options = {}) => await aItemAPI.allAction(action, body, options, []);
|
|
11
|
-
const one = async (query = {}, options = {}) => await aItemAPI.one(query, options, []);
|
|
12
|
-
const get = async (ik, options = {}) => await aItemAPI.get(ik, options);
|
|
13
|
-
const create = async (item, options = {}) => await aItemAPI.create(item, options, []);
|
|
14
|
-
const remove = async (ik, options = {}) => await aItemAPI.remove(ik, options);
|
|
15
|
-
const update = async (ik, item, options = {}) => await aItemAPI.update(ik, item, options);
|
|
16
|
-
const find = async (finder, finderParams, options = {}) => await aItemAPI.find(finder, finderParams, options, []);
|
|
17
|
-
return {
|
|
18
|
-
...aItemAPI,
|
|
19
|
-
action,
|
|
20
|
-
all,
|
|
21
|
-
allAction,
|
|
22
|
-
one,
|
|
23
|
-
get,
|
|
24
|
-
create,
|
|
25
|
-
remove,
|
|
26
|
-
update,
|
|
27
|
-
find,
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=PItemAPI.js.map
|
package/dist/src/PItemAPI.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PItemAPI.js","sourceRoot":"","sources":["../../src/PItemAPI.ts"],"names":[],"mappings":"AAAA,sDAAsD;AAItD,OAAO,EAAE,cAAc,EAAkB,MAAM,YAAY,CAAC;AAK5D,OA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AC;IAElD,MAAM,MAAM,GACV,KAAK,EACH,IAA2B,EAC3B,UAAsC,EAAE,EAC5B,EAAE,CACZ,MAAM,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAM,CAAC;IAEpD,MAAM,MAAM,GACV,KAAK,EACH,EAA4D,EAC5D,UAAwC,EAAE,EACxB,EAAE,CAClB,MAAM,QAAQ,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAY,CAAC;IAEpD,MAAM,MAAM,GACV,KAAK,EACH,EAA4D,EAC5D,IAA2B,EAC3B,UAAqC,EAAE,EAC3B,EAAE,CACZ,MAAM,QAAQ,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAM,CAAC;IAEpD,MAAM,IAAI,GACR,KAAK,EACH,MAAc,EACd,YAAwG,EACxG,UAAqC,EAAE,EACzB,EAAE,CACd,MAAM,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,CAAQ,CAAC;IAEpE,OAAO;QACL,GAAG,QAAQ;QACX,MAAM;QACN,GAAG;QACH,SAAS;QACT,GAAG;QACH,GAAG;QACH,MAAM;QACN,MAAM;QACN,MAAM;QACN,IAAI;KACL,CAAC;AAEJ,CAAC,CAAC"}
|
package/dist/src/Utilities.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { validatePK as coreValidatePK, generateKeyArray, isPriKey, } from "@fjell/core";
|
|
2
|
-
import LibLogger from "./logger";
|
|
3
|
-
import deepmerge from "deepmerge";
|
|
4
|
-
const logger = LibLogger.get('client-api', 'Utility');
|
|
5
|
-
export const createUtilities = (pkType, pathNames) => {
|
|
6
|
-
logger.default('createUtilities', { pkType, pathNames });
|
|
7
|
-
const verifyLocations = (locations) => {
|
|
8
|
-
if (locations && locations.length < pathNames.length - 1) {
|
|
9
|
-
throw new Error('Not enough locations for pathNames: locations:'
|
|
10
|
-
+ locations.length + ' pathNames:' + pathNames.length);
|
|
11
|
-
}
|
|
12
|
-
return true;
|
|
13
|
-
};
|
|
14
|
-
const processOne = async (apiCall) => {
|
|
15
|
-
logger.default('processOne', { apiCall });
|
|
16
|
-
const response = await apiCall;
|
|
17
|
-
logger.default('processOne response', { response: JSON.stringify(response, null, 2) });
|
|
18
|
-
return convertDoc(response);
|
|
19
|
-
};
|
|
20
|
-
const processArray = async (api) => {
|
|
21
|
-
logger.default('processArray', { api });
|
|
22
|
-
const response = await api;
|
|
23
|
-
logger.default('processArray response', { response: JSON.stringify(response, null, 2) });
|
|
24
|
-
if (response && Array.isArray(response)) {
|
|
25
|
-
return response.map((subjectChat) => convertDoc(subjectChat));
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
logger.error('Response was not an array', { response });
|
|
29
|
-
throw new Error('Response was not an array');
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const convertDoc = (doc) => {
|
|
33
|
-
logger.default('convertDoc', { doc });
|
|
34
|
-
// console.log(JSON.stringify(doc, null, 2));
|
|
35
|
-
if (doc && doc.events) {
|
|
36
|
-
const events = doc.events;
|
|
37
|
-
for (const key in events) {
|
|
38
|
-
events[key] = deepmerge(events[key], { at: events[key].at ? new Date(events[key].at) : null });
|
|
39
|
-
}
|
|
40
|
-
return doc;
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return doc;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
const getPath = (key) => {
|
|
47
|
-
const localPathNames = [...pathNames];
|
|
48
|
-
logger.default('getPath', { key, pathNames: localPathNames });
|
|
49
|
-
// console.log('getPath key: ' + JSON.stringify(key));
|
|
50
|
-
const keys = generateKeyArray(key);
|
|
51
|
-
// console.log('getPath keys: ' + JSON.stringify(keys));
|
|
52
|
-
// console.log('getPath pathNames: ' + JSON.stringify(pathNames));
|
|
53
|
-
let path = addPath('', keys, localPathNames);
|
|
54
|
-
// If there is only one collection left in the collections array, this means that
|
|
55
|
-
// we received LocKeys and we need to add the last collection to the reference
|
|
56
|
-
if (localPathNames.length === 1) {
|
|
57
|
-
path = `${path}/${localPathNames[0]}`;
|
|
58
|
-
}
|
|
59
|
-
logger.default('getPath created', { key, path });
|
|
60
|
-
return path;
|
|
61
|
-
};
|
|
62
|
-
const addPath = (base, keys, localPathNames) => {
|
|
63
|
-
logger.default('addPath', { base, keys, pathNames: localPathNames });
|
|
64
|
-
if (keys.length < localPathNames.length - 1) {
|
|
65
|
-
logger.error('addPath should never have keys with a length less than the length of pathNames - 1', { keys, localPathNames });
|
|
66
|
-
throw new Error('addPath should never have keys with a length less than the length of pathNames - 1: '
|
|
67
|
-
+ keys.length + ' ' + localPathNames.length + ' ' + JSON.stringify(keys, localPathNames));
|
|
68
|
-
}
|
|
69
|
-
else if (keys.length > localPathNames.length) {
|
|
70
|
-
logger.error('addPath should never have keys with a length greater than the length of pathNames', { keys, pathNames });
|
|
71
|
-
throw new Error('addPath should never have keys with a length greater than the length of pathNames: '
|
|
72
|
-
+ keys.length + ' ' + localPathNames.length + ' ' + JSON.stringify(keys, localPathNames));
|
|
73
|
-
}
|
|
74
|
-
if (keys.length === 0) {
|
|
75
|
-
// If you've recursively consumed all of the keys, return the base.
|
|
76
|
-
logger.default('addPath returning base', { base });
|
|
77
|
-
return base;
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
// Retrieve the next key and collection, and create the next base
|
|
81
|
-
let nextBase;
|
|
82
|
-
const key = keys.pop();
|
|
83
|
-
const pathName = localPathNames.pop();
|
|
84
|
-
if (isPriKey(key)) {
|
|
85
|
-
const PriKey = key;
|
|
86
|
-
nextBase = `${base}/${pathName}/${PriKey.pk}`;
|
|
87
|
-
logger.default('Adding Path for PK', { pathName, PriKey, nextBase });
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
const LocKey = key;
|
|
91
|
-
nextBase = `${base}/${pathName}/${LocKey.lk}`;
|
|
92
|
-
logger.default('Retrieving Collection for LK', { pathName, LocKey });
|
|
93
|
-
}
|
|
94
|
-
logger.default('calling addPath recursively', { nextBase, keys, localPathNames });
|
|
95
|
-
return addPath(nextBase, keys, localPathNames);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
const validatePK = (item) => {
|
|
99
|
-
return coreValidatePK(item, pkType);
|
|
100
|
-
};
|
|
101
|
-
return {
|
|
102
|
-
verifyLocations,
|
|
103
|
-
processOne,
|
|
104
|
-
convertDoc,
|
|
105
|
-
processArray,
|
|
106
|
-
getPath,
|
|
107
|
-
validatePK,
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
//# sourceMappingURL=Utilities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Utilities.js","sourceRoot":"","sources":["../../src/Utilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,IAAI,cAAc,EAC5B,gBAAgB,EAChB,QAAQ,GAKT,MAAM,aAAa,CAAC;AAErB,OAAO,SAAS,MAAM,UAAU,CAAC;AACjC,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAoBtD,MAAM,CAAC,MAAM,eAAe,GAAG,CAQ7B,MAAS,EAAE,SAAmB,EAAuC,EAAE;IAEvE,MAAM,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAEzD,MAAM,eAAe,GAAG,CACtB,SAAuD,EAC9C,EAAE;QAEX,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACzD,MAAM,IAAI,KAAK,CAAC,gDAAgD;kBAC1D,SAAS,CAAC,MAAM,GAAG,aAAa,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAA;IAED,MAAM,UAAU,GAAG,KAAK,EACtB,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,IAAI,MAAM,CAAC,EAAE,EAAE,CAAC;gBAC9C,MAAM,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;YACvE,CAAC;iBAAM,CAAC;gBACN,MAAM,MAAM,GAAG,GAAqC,CAAC;gBACrD,QAAQ,GAAG,GAAG,IAAI,IAAI,QAAQ,IAAI,MAAM,CAAC,EAAE,EAAE,CAAC;gBAC9C,MAAM,CAAC,OAAO,CAAC,8BAA8B,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;YACvE,CAAC;YAED,MAAM,CAAC,OAAO,CAAC,6BAA6B,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;YAClF,OAAO,OAAO,CAAC,QAAQ,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QACjD,CAAC;IAEH,CAAC,CAAA;IAED,MAAM,UAAU,GAAG,CACjB,IAAiE,EACD,EAAE;QAClE,OAAO,cAAc,CAAwB,IAAI,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAA;IAED,OAAO;QACL,eAAe;QACf,UAAU;QACV,UAAU;QACV,YAAY;QACZ,OAAO;QACP,UAAU;KACX,CAAA;AACH,CAAC,CAAA"}
|
package/dist/src/index.d.ts
DELETED
package/dist/src/index.js
DELETED
package/dist/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAa,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,cAAc,EAAY,MAAM,YAAY,CAAC"}
|
package/dist/src/logger.d.ts
DELETED
package/dist/src/logger.js
DELETED
package/dist/src/logger.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAErC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC;AAEhE,eAAe,SAAS,CAAC"}
|
package/dist/src/ops/action.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import LibLogger from "../logger";
|
|
2
|
-
const logger = LibLogger.get('client-api', 'ops', 'action');
|
|
3
|
-
export const getActionOperation = (api, apiOptions, utilities) => {
|
|
4
|
-
const action = async (ik, action, body = {}, options = {}) => {
|
|
5
|
-
logger.default('action', { ik, action, body });
|
|
6
|
-
const requestOptions = Object.assign({}, options, { isAuthenticated: apiOptions.writeAuthenticated });
|
|
7
|
-
return utilities.validatePK(await utilities.processOne(api.httpPost(`${utilities.getPath(ik)}/${action}`, body, requestOptions)));
|
|
8
|
-
};
|
|
9
|
-
return action;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action.js","sourceRoot":"","sources":["../../../src/ops/action.ts"],"names":[],"mappings":"AAQA,OAAO,SAAS,MAAM,UAAU,CAAC;AAGjC,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAQ9B,GAAY,EACZ,UAA4B,EAC5B,SAA8C,EAE9C,EAAE;IAEJ,MAAM,MAAM,GAAG,KAAK,EAClB,EAA6C,EAC7C,MAAc,EACd,OAAY,EAAE,EACd,UAAsC,EAAE,EAEzB,EAAE;QACjB,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QAE/C,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,eAAe,EAAE,UAAU,CAAC,kBAAkB,EAAE,CAAC,CAAC;QAEtG,OAAO,SAAS,CAAC,UAAU,CACzB,MAAM,SAAS,CAAC,UAAU,CACxB,GAAG,CAAC,QAAQ,CACV,GAAG,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,MAAM,EAAE,EACpC,IAAI,EACJ,cAAc,CACf,CACF,CAAM,CAAC;IAEZ,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAA"}
|
package/dist/src/ops/all.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { queryToParams, } from "@fjell/core";
|
|
2
|
-
import LibLogger from "../logger";
|
|
3
|
-
const logger = LibLogger.get('client-api', 'ops', 'all');
|
|
4
|
-
export const getAllOperation = (api, apiOptions, utilities) => {
|
|
5
|
-
const all = async (query = {}, options = {}, locations = []) => {
|
|
6
|
-
logger.default('all', { query, locations });
|
|
7
|
-
utilities.verifyLocations(locations);
|
|
8
|
-
const loc = locations;
|
|
9
|
-
const params = queryToParams(query);
|
|
10
|
-
const requestOptions = Object.assign({}, options, { isAuthenticated: apiOptions.allAuthenticated, params });
|
|
11
|
-
return utilities.validatePK(await utilities.processArray(api.httpGet(utilities.getPath(loc), requestOptions)));
|
|
12
|
-
};
|
|
13
|
-
return all;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=all.js.map
|
package/dist/src/ops/all.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"all.js","sourceRoot":"","sources":["../../../src/ops/all.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,GACd,MAAM,aAAa,CAAC;AAIrB,OAAO,SAAS,MAAM,UAAU,CAAC;AAIjC,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAEzD,MAAM,CAAC,MAAM,eAAe,GAAG,CAQ3B,GAAY,EACZ,UAA4B,EAC5B,SAA8C,EAE9C,EAAE;IAEJ,MAAM,GAAG,GAAG,KAAK,EACf,QAAmB,EAAe,EAClC,UAAqC,EAAE,EACvC,YAAkD,EAAE,EACtC,EAAE;QAChB,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAC5C,SAAS,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QACrC,MAAM,GAAG,GAAyC,SAAS,CAAC;QAE5D,MAAM,MAAM,GAAgB,aAAa,CAAC,KAAK,CAAC,CAAC;QAEjD,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,eAAe,EAAE,UAAU,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAC,CAAC;QAE5G,OAAO,SAAS,CAAC,UAAU,CAAC,MAAM,SAAS,CAAC,YAAY,CACtD,GAAG,CAAC,OAAO,CACT,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,EACtB,cAAc,CACf,CAAC,CAAQ,CAAC;IACf,CAAC,CAAA;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import LibLogger from "../logger";
|
|
2
|
-
const logger = LibLogger.get('client-api', 'ops', 'allAction');
|
|
3
|
-
export const getAllActionOperation = (api, apiOptions, utilities) => {
|
|
4
|
-
const allAction = async (action, body = {}, options = {}, locations = []) => {
|
|
5
|
-
logger.default('allAction', { action, body, locations });
|
|
6
|
-
utilities.verifyLocations(locations);
|
|
7
|
-
const loc = locations;
|
|
8
|
-
const requestOptions = Object.assign({}, options, { isAuthenticated: apiOptions.writeAuthenticated });
|
|
9
|
-
// TODO: This should respond to either a single object, or multiple objects in an array.
|
|
10
|
-
return utilities.validatePK(await utilities.processArray(api.httpPost(utilities.getPath(loc), body, requestOptions)));
|
|
11
|
-
};
|
|
12
|
-
return allAction;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=allAction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allAction.js","sourceRoot":"","sources":["../../../src/ops/allAction.ts"],"names":[],"mappings":"AAOA,OAAO,SAAS,MAAM,UAAU,CAAC;AAGjC,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;AAE/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAQjC,GAAY,EACZ,UAA4B,EAC5B,SAA8C,EAE9C,EAAE;IAEJ,MAAM,SAAS,GAAG,KAAK,EACrB,MAAc,EACd,OAAY,EAAE,EACd,UAAsC,EAAE,EACxC,YAAkD,EAAE,EACtC,EAAE;QAChB,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;QACzD,SAAS,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QAErC,MAAM,GAAG,GAAyC,SAAS,CAAC;QAE5D,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,eAAe,EAAE,UAAU,CAAC,kBAAkB,EAAE,CAAC,CAAC;QAEtG,wFAAwF;QACxF,OAAO,SAAS,CAAC,UAAU,CACzB,MAAM,SAAS,CAAC,YAAY,CAC1B,GAAG,CAAC,QAAQ,CACV,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,EACtB,IAAI,EACJ,cAAc,CACf,CACF,CAAQ,CAAC;IACd,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC,CAAA"}
|
package/dist/src/ops/create.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import LibLogger from "../logger";
|
|
2
|
-
const logger = LibLogger.get('client-api', 'ops', 'create');
|
|
3
|
-
export const getCreateOperation = (api, apiOptions, utilities) => {
|
|
4
|
-
const create = async (item, options = {}, locations = []) => {
|
|
5
|
-
logger.default('create', { item, locations });
|
|
6
|
-
utilities.verifyLocations(locations);
|
|
7
|
-
const loc = locations;
|
|
8
|
-
const requestOptions = Object.assign({}, options, { isAuthenticated: apiOptions.writeAuthenticated });
|
|
9
|
-
const created = utilities.validatePK(await utilities.processOne(api.httpPost(utilities.getPath(loc), item, requestOptions)));
|
|
10
|
-
return created;
|
|
11
|
-
};
|
|
12
|
-
return create;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/ops/create.ts"],"names":[],"mappings":"AAQA,OAAO,SAAS,MAAM,UAAU,CAAC;AAGjC,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAQ9B,GAAY,EACZ,UAA4B,EAC5B,SAA8C,EAE9C,EAAE;IAEJ,MAAM,MAAM,GAAG,KAAK,EAClB,IAA2C,EAC3C,UAAsC,EAAE,EACxC,YAAkD,EAAE,EACxC,EAAE;QACd,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;QAC9C,SAAS,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QAErC,MAAM,GAAG,GAAyC,SAAS,CAAC;QAC5D,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,eAAe,EAAE,UAAU,CAAC,kBAAkB,EAAE,CAAC,CAAC;QAEtG,MAAM,OAAO,GACT,SAAS,CAAC,UAAU,CAAC,MAAM,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAC1D,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,EACtB,IAAI,EACJ,cAAc,CACf,CAAC,CAAM,CAAC;QACb,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAA"}
|
package/dist/src/ops/find.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { finderToParams } from "../AItemAPI";
|
|
2
|
-
import LibLogger from "../logger";
|
|
3
|
-
const logger = LibLogger.get('client-api', 'ops', 'find');
|
|
4
|
-
export const getFindOperation = (api, apiOptions, utilities) => {
|
|
5
|
-
const find = async (finder, finderParams, options = {}, locations = []) => {
|
|
6
|
-
logger.default('find', { finder, finderParams, locations });
|
|
7
|
-
utilities.verifyLocations(locations);
|
|
8
|
-
const loc = locations;
|
|
9
|
-
const params = finderToParams(finder, finderParams);
|
|
10
|
-
const requestOptions = Object.assign({}, options, { isAuthenticated: apiOptions.allAuthenticated, params });
|
|
11
|
-
return utilities.validatePK(await utilities.processArray(api.httpGet(utilities.getPath(loc), requestOptions)));
|
|
12
|
-
};
|
|
13
|
-
return find;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=find.js.map
|
package/dist/src/ops/find.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../src/ops/find.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,SAAS,MAAM,UAAU,CAAC;AAGjC,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAE1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAQ5B,GAAY,EACZ,UAA4B,EAC5B,SAA8C,EAE9C,EAAE;IAEJ,MAAM,IAAI,GAAG,KAAK,EAChB,MAAc,EACd,YAAwG,EACxG,UAAqC,EAAE,EACvC,YAAkD,EAAE,EACtC,EAAE;QAChB,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC;QAC5D,SAAS,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QACrC,MAAM,GAAG,GAAyC,SAAS,CAAC;QAE5D,MAAM,MAAM,GAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QAEjE,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,eAAe,EAAE,UAAU,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAC,CAAC;QAE5G,OAAO,SAAS,CAAC,UAAU,CAAC,MAAM,SAAS,CAAC,YAAY,CACtD,GAAG,CAAC,OAAO,CACT,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,EACtB,cAAc,CACf,CAAC,CAAQ,CAAC;IACf,CAAC,CAAA;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAA"}
|
package/dist/src/ops/get.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import LibLogger from "../logger";
|
|
2
|
-
const logger = LibLogger.get('client-api', 'ops', 'get');
|
|
3
|
-
export const getGetOperation = (api, apiOptions, utilities) => {
|
|
4
|
-
const get = async (ik, options = {}) => {
|
|
5
|
-
logger.default('get', { ik });
|
|
6
|
-
const requestOptions = Object.assign({}, options, { isAuthenticated: apiOptions.readAuthenticated });
|
|
7
|
-
return utilities.validatePK(await utilities.processOne(api.httpGet(utilities.getPath(ik), requestOptions)));
|
|
8
|
-
};
|
|
9
|
-
return get;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=get.js.map
|
package/dist/src/ops/get.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/ops/get.ts"],"names":[],"mappings":"AAQA,OAAO,SAAS,MAAM,UAAU,CAAC;AAGjC,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAEzD,MAAM,CAAC,MAAM,eAAe,GAAG,CAQ3B,GAAY,EACZ,UAA4B,EAC5B,SAA8C,EAE9C,EAAE;IAEJ,MAAM,GAAG,GAAG,KAAK,EACf,EAA4D,EAC5D,UAAqC,EAAE,EACpB,EAAE;QACrB,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAE9B,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,eAAe,EAAE,UAAU,CAAC,iBAAiB,EAAE,CAAC,CAAC;QAErG,OAAO,SAAS,CAAC,UAAU,CAAC,MAAM,SAAS,CAAC,UAAU,CACpD,GAAG,CAAC,OAAO,CACT,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,EACrB,cAAc,CACf,CAAC,CAAM,CAAC;IACb,CAAC,CAAA;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAA"}
|
package/dist/src/ops/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { getAllOperation } from "./all";
|
|
2
|
-
import { getActionOperation } from "./action";
|
|
3
|
-
import { getAllActionOperation } from "./allAction";
|
|
4
|
-
import { getOneOperation } from "./one";
|
|
5
|
-
import { getCreateOperation } from "./create";
|
|
6
|
-
import { getUpdateOperation } from "./update";
|
|
7
|
-
import { getGetOperation } from "./get";
|
|
8
|
-
import { getRemoveOperation } from "./remove";
|
|
9
|
-
import { getFindOperation } from "./find";
|
|
10
|
-
export const getOperations = (api, apiOptions, utilities) => {
|
|
11
|
-
return {
|
|
12
|
-
action: getActionOperation(api, apiOptions, utilities),
|
|
13
|
-
all: getAllOperation(api, apiOptions, utilities),
|
|
14
|
-
allAction: getAllActionOperation(api, apiOptions, utilities),
|
|
15
|
-
create: getCreateOperation(api, apiOptions, utilities),
|
|
16
|
-
find: getFindOperation(api, apiOptions, utilities),
|
|
17
|
-
get: getGetOperation(api, apiOptions, utilities),
|
|
18
|
-
one: getOneOperation(api, apiOptions, utilities),
|
|
19
|
-
remove: getRemoveOperation(api, apiOptions, utilities),
|
|
20
|
-
update: getUpdateOperation(api, apiOptions, utilities),
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ops/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAG7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAIzC,MAAM,CAAC,MAAM,aAAa,GAC1B,CAQI,GAAY,EACZ,UAA4B,EAC5B,SAA8C,EAET,EAAE;IACzC,OAAO;QACL,MAAM,EAAE,kBAAkB,CACxB,GAAG,EACH,UAAU,EACV,SAAS,CACV;QACD,GAAG,EAAE,eAAe,CAClB,GAAG,EACH,UAAU,EACV,SAAS,CACV;QACD,SAAS,EAAE,qBAAqB,CAC9B,GAAG,EACH,UAAU,EACV,SAAS,CACV;QACD,MAAM,EAAE,kBAAkB,CACxB,GAAG,EACH,UAAU,EACV,SAAS,CACV;QACD,IAAI,EAAE,gBAAgB,CACpB,GAAG,EACH,UAAU,EACV,SAAS,CACV;QACD,GAAG,EAAE,eAAe,CAClB,GAAG,EACH,UAAU,EACV,SAAS,CACV;QACD,GAAG,EAAE,eAAe,CAClB,GAAG,EACH,UAAU,EACV,SAAS,CACV;QACD,MAAM,EAAE,kBAAkB,CACxB,GAAG,EACH,UAAU,EACV,SAAS,CACV;QACD,MAAM,EAAE,kBAAkB,CACxB,GAAG,EACH,UAAU,EACV,SAAS,CACV;KACF,CAAA;AACH,CAAC,CAAA"}
|