bx-rest 0.0.2 → 0.0.3
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/package.json +54 -41
- package/src/index.d.ts +18 -2
- package/src/tsconfig.base.json +12 -0
- package/src/tsconfig.cjs.json +10 -0
- package/src/tsconfig.cjs.spec.json +10 -0
- package/src/tsconfig.esm.json +9 -0
- package/src/tsconfig.esm5.json +11 -0
- package/src/tsconfig.esm5.rollup.json +8 -0
- package/src/tsconfig.types.json +14 -0
- package/src/tsconfig.types.spec.json +7 -0
package/package.json
CHANGED
|
@@ -1,44 +1,57 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
"name": "bx-rest",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "bitrix rest api",
|
|
5
|
+
"typings": "./index.d.ts",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@angular/common": "^16.1.8",
|
|
9
|
+
"@angular/core": "^16.1.8",
|
|
10
|
+
"@angular/material": "^16.1.7",
|
|
11
|
+
"@angular/router": "^16.1.8",
|
|
12
|
+
"@ngrx/store": "^16.2.0",
|
|
13
|
+
"entities": "^4.5.0",
|
|
14
|
+
"just-clone": "^6.2.0",
|
|
15
|
+
"just-compare": "^2.3.0",
|
|
16
|
+
"luxon": "^3.3.0",
|
|
17
|
+
"parse5": "^7.1.2",
|
|
18
|
+
"rxjs": "^7.8.1",
|
|
19
|
+
"safevalues": "^0.3.4",
|
|
20
|
+
"tslib": "^2.6.1",
|
|
21
|
+
"zone.js": "^0.13.1"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"just-flatten-it": "^5.2.0"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/Aricatofuka/bx-rest.git"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"compile": "tsc -b ./src/tsconfig.cjs.json ./src/tsconfig.cjs.spec.json ./src/tsconfig.esm.json ./src/tsconfig.esm5.json ./src/tsconfig.esm5.rollup.json ./src/tsconfig.types.json ./src/tsconfig.types.spec.json ./spec/tsconfig.json",
|
|
32
|
+
"build:clean": "shx rm -rf ./dist"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"bitrxi",
|
|
36
|
+
"rest",
|
|
37
|
+
"api"
|
|
38
|
+
],
|
|
39
|
+
"author": "Aricatofuka",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/Aricatofuka/bx-rest/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/Aricatofuka/bx-rest#readme",
|
|
45
|
+
"exports": {
|
|
46
|
+
"./package.json": {
|
|
47
|
+
"default": "./package.json"
|
|
22
48
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"url": "git+https://github.com/Aricatofuka/bx-rest.git"
|
|
32
|
-
},
|
|
33
|
-
"keywords": [
|
|
34
|
-
"bitrxi",
|
|
35
|
-
"rest",
|
|
36
|
-
"api"
|
|
37
|
-
],
|
|
38
|
-
"author": "Aricatofuka",
|
|
39
|
-
"license": "ISC",
|
|
40
|
-
"bugs": {
|
|
41
|
-
"url": "https://github.com/Aricatofuka/bx-rest/issues"
|
|
42
|
-
},
|
|
43
|
-
"homepage": "https://github.com/Aricatofuka/bx-rest#readme"
|
|
49
|
+
".": {
|
|
50
|
+
"types": "./dist/types/index.d.ts",
|
|
51
|
+
"node": "./dist/cjs/index.js",
|
|
52
|
+
"require": "./dist/cjs/index.js",
|
|
53
|
+
"es2015": "./dist/esm/index.js",
|
|
54
|
+
"default": "./dist/esm5/index.js"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
44
57
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { iHttpParamSettings } from 'bx-rest/src/typification/rest/settings'
|
|
2
|
+
import { Observable, of } from 'rxjs'
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
+
export declare class BaseHttp {
|
|
5
|
+
httpGet<T>(
|
|
6
|
+
url: string,
|
|
7
|
+
params: any,
|
|
8
|
+
textError: string,
|
|
9
|
+
settings: iHttpParamSettings
|
|
10
|
+
): Observable<T | undefined>
|
|
11
|
+
|
|
12
|
+
httpPost<T>(url: string,
|
|
13
|
+
params: any ,
|
|
14
|
+
textError: string,
|
|
15
|
+
settings: iHttpParamSettings
|
|
16
|
+
): Observable<T | undefined>
|
|
17
|
+
|
|
18
|
+
handleError<T>(result?: T, textError?: string): Observable<T>
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.cjs.json",
|
|
3
|
+
/**
|
|
4
|
+
* this is pseudo config for test case's relative path resolution to `../src`, runs
|
|
5
|
+
* cjs config once more instead of manual copying to utilize incremental build.
|
|
6
|
+
*/
|
|
7
|
+
"compilerOptions": {
|
|
8
|
+
"outDir": "../dist/src"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.esm.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"composite": true,
|
|
5
|
+
"module": "es2015",
|
|
6
|
+
"target": "esnext",
|
|
7
|
+
"removeComments": false,
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"declarationMap": true,
|
|
10
|
+
"declarationDir": "../dist/types",
|
|
11
|
+
"emitDeclarationOnly": true
|
|
12
|
+
},
|
|
13
|
+
"exclude": ["./internal/umd.ts"]
|
|
14
|
+
}
|