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 CHANGED
@@ -1,44 +1,57 @@
1
1
  {
2
- "name": "bx-rest",
3
- "version": "0.0.2",
4
- "description": "bitrix rest api",
5
- "types": "./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"
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
- "devDependencies": {
24
- "just-flatten-it": "^5.2.0"
25
- },
26
- "scripts": {
27
- "test": "echo \"Error: no test specified\" && exit 1"
28
- },
29
- "repository": {
30
- "type": "git",
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 { BaseHttp } from './services/http/base/base'
1
+ import { iHttpParamSettings } from 'bx-rest/src/typification/rest/settings'
2
+ import { Observable, of } from 'rxjs'
2
3
 
3
- export { BaseHttp }
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,12 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ // "noEmit": false,
5
+ "baseUrl": "@",
6
+ "paths": {
7
+ "bx-rest": ["./"],
8
+ "bx-rest/*": ["./*"]
9
+ }
10
+ },
11
+ "include": ["./**/*.ts"]
12
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "module": "commonjs",
5
+ "target": "es5",
6
+ "downlevelIteration": true,
7
+ "outDir": "../dist/cjs"
8
+ },
9
+ "exclude": ["./internal/umd.ts"]
10
+ }
@@ -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,9 @@
1
+ {
2
+ "extends": "./tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "module": "esnext",
5
+ "importHelpers": true,
6
+ "target": "es2015",
7
+ "outDir": "../dist/esm"
8
+ }
9
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "./tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "module": "esnext",
5
+ "importHelpers": true,
6
+ "target": "es5",
7
+ "downlevelIteration": true,
8
+ "outDir": "../dist/esm5"
9
+ },
10
+ "exclude": ["./internal/umd.ts"]
11
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.esm5.json",
3
+ "compilerOptions": {
4
+ "outDir": "../dist/esm5_for_rollup",
5
+ "noEmitHelpers": true
6
+ },
7
+ "exclude": []
8
+ }
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.types.json",
3
+ "compilerOptions": {
4
+ "declarationDir": "../dist/types_spec",
5
+ "stripInternal": false
6
+ }
7
+ }