@limetech/lime-web-components 5.25.0 → 5.27.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [5.27.0](https://github.com/Lundalogik/lime-web-components/compare/v5.26.0...v5.27.0) (2024-03-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
* **file upload:** export http methods for use with new file upload class in crm-components ([e39e255](https://github.com/Lundalogik/lime-web-components/commit/e39e255e34edbda658fa4c3e0bd2798eea9d95c6))
|
|
8
|
+
|
|
9
|
+
## [5.26.0](https://github.com/Lundalogik/lime-web-components/compare/v5.25.0...v5.26.0) (2024-03-05)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
* **limeobject.repository:** add getSchema function ([08af580](https://github.com/Lundalogik/lime-web-components/commit/08af580eecbf955605448b25008c4def05fc9f15))
|
|
16
|
+
|
|
1
17
|
## [5.25.0](https://github.com/Lundalogik/lime-web-components/compare/v5.24.0...v5.25.0) (2024-02-07)
|
|
2
18
|
|
|
3
19
|
|
package/dist/es5/http/http.js
CHANGED
package/dist/http/http.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* By default, the service will work with the JSON data format. If anything but JSON is returned from the endpoint,
|
|
5
5
|
* the `responseType` property in the `options` parameter needs to be set.
|
|
6
|
+
*
|
|
6
7
|
* @public
|
|
7
8
|
* @group HTTP
|
|
8
9
|
*/
|
|
@@ -88,9 +89,30 @@ export interface HttpHeaders {
|
|
|
88
89
|
* @group HTTP
|
|
89
90
|
*/
|
|
90
91
|
export type HttpResponseType = 'text' | 'json' | 'arraybuffer' | 'blob';
|
|
92
|
+
/**
|
|
93
|
+
* Defines the HTTP methods as constants.
|
|
94
|
+
* Used in the UploadFile class in lime-crm-components
|
|
95
|
+
*
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
export declare const HttpMethod: {
|
|
99
|
+
readonly Get: "GET";
|
|
100
|
+
readonly Post: "POST";
|
|
101
|
+
readonly Put: "PUT";
|
|
102
|
+
readonly Delete: "DELETE";
|
|
103
|
+
readonly Patch: "PATCH";
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Type definition for HTTP methods. It can be any of the values defined in the
|
|
107
|
+
* HttpMethod constant.
|
|
108
|
+
*
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];
|
|
91
112
|
/**
|
|
92
113
|
* Exception thrown by {@link HttpClient} when an error occurs while sending a
|
|
93
114
|
* request
|
|
115
|
+
*
|
|
94
116
|
* @public
|
|
95
117
|
*/
|
|
96
118
|
export interface HttpResponseError extends Error {
|
package/dist/http/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/http/http.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/http/http.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACvB;;;;;;OAMG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAEtD;;;;;;;OAOG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAElE;;;;;;;OAOG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,GAA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the HTTP methods as constants.
|
|
3
|
+
* Used in the UploadFile class in lime-crm-components
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export const HttpMethod = {
|
|
8
|
+
Get: 'GET',
|
|
9
|
+
Post: 'POST',
|
|
10
|
+
Put: 'PUT',
|
|
11
|
+
Delete: 'DELETE',
|
|
12
|
+
Patch: 'PATCH',
|
|
13
|
+
};
|
|
@@ -36,7 +36,13 @@ export interface LimeObjectRepository extends StateRepository {
|
|
|
36
36
|
*
|
|
37
37
|
* @param limetype - name of the limetype of the owning limeobject
|
|
38
38
|
*/
|
|
39
|
-
loadSchema(limetype: string): Promise<
|
|
39
|
+
loadSchema<TSchemaType extends Record<string, any> = object>(limetype: string): Promise<TSchemaType>;
|
|
40
|
+
/**
|
|
41
|
+
* Get a schema that is already loaded for the limetype.
|
|
42
|
+
*
|
|
43
|
+
* @param limetype - name of the limetype of the owning limeobject
|
|
44
|
+
*/
|
|
45
|
+
getSchema?<TSchemaType extends Record<string, any> = object>(limetype: string): TSchemaType | null;
|
|
40
46
|
/**
|
|
41
47
|
* Delete the specified limeobject
|
|
42
48
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/limeobject/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IACzD;;;;;OAKG;IACH,UAAU,CACN,QAAQ,EAAE,MAAM,EAChB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,GAC1C,IAAI,CAAC;IAER;;;;;;OAMG;IACH,WAAW,CACP,QAAQ,EAAE,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UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CACvC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-web-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.27.0",
|
|
4
4
|
"description": "Lime Web Components",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@commitlint/config-conventional": "^
|
|
39
|
-
"@microsoft/api-extractor": "^7.
|
|
38
|
+
"@commitlint/config-conventional": "^19.0.3",
|
|
39
|
+
"@microsoft/api-extractor": "^7.42.3",
|
|
40
40
|
"@types/jest": "^27.5.0",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
42
|
-
"@typescript-eslint/parser": "^
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
42
|
+
"@typescript-eslint/parser": "^7.1.1",
|
|
43
43
|
"commitizen": "^4.3.0",
|
|
44
44
|
"cz-conventional-changelog": "^3.3.0",
|
|
45
|
-
"eslint": "^8.
|
|
45
|
+
"eslint": "^8.57.0",
|
|
46
46
|
"eslint-config-prettier": "^9.1.0",
|
|
47
47
|
"eslint-plugin-ban": "^1.6.0",
|
|
48
48
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
49
49
|
"eslint-plugin-prettier": "^5.1.3",
|
|
50
|
-
"eslint-plugin-react": "^7.
|
|
51
|
-
"eslint-plugin-sonarjs": "^0.
|
|
50
|
+
"eslint-plugin-react": "^7.34.0",
|
|
51
|
+
"eslint-plugin-sonarjs": "^0.24.0",
|
|
52
52
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
53
53
|
"jest": "^27.5.1",
|
|
54
54
|
"jest-cli": "^27.5.1",
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
},
|
|
75
75
|
"repository": {
|
|
76
76
|
"type": "git",
|
|
77
|
-
"url": "https://github.com/Lundalogik/lime-web-components.git"
|
|
77
|
+
"url": "git+https://github.com/Lundalogik/lime-web-components.git"
|
|
78
78
|
}
|
|
79
79
|
}
|