@furystack/rest 4.1.1 → 4.1.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 +4 -4
- package/types/endpoint-models/delete-endpoint.d.ts +1 -1
- package/types/endpoint-models/delete-endpoint.d.ts.map +1 -1
- package/types/endpoint-models/get-collection-endpoint.d.ts +2 -2
- package/types/endpoint-models/get-collection-endpoint.d.ts.map +1 -1
- package/types/endpoint-models/get-endpoint.d.ts +1 -1
- package/types/endpoint-models/get-endpoint.d.ts.map +1 -1
- package/types/endpoint-models/patch-endpoint.d.ts +1 -1
- package/types/endpoint-models/patch-endpoint.d.ts.map +1 -1
- package/types/endpoint-models/post-endpoint.d.ts +1 -1
- package/types/endpoint-models/post-endpoint.d.ts.map +1 -1
- package/types/methods.d.ts +1 -1
- package/types/methods.d.ts.map +1 -1
- package/types/rest-api.d.ts +1 -1
- package/types/rest-api.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@furystack/rest",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Generic REST package",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/furystack/furystack",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@furystack/core": "^11.
|
|
33
|
-
"@furystack/inject": "^7.1.
|
|
32
|
+
"@furystack/core": "^11.2.1",
|
|
33
|
+
"@furystack/inject": "^7.1.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/jest": "^29.2.
|
|
36
|
+
"@types/jest": "^29.2.3",
|
|
37
37
|
"@types/node": "^18.11.9"
|
|
38
38
|
},
|
|
39
39
|
"typings": "./types/index.d.ts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-models/delete-endpoint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"delete-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-models/delete-endpoint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,WAAW,SAAS,MAAM,CAAC,IAAI;IAC3D,GAAG,EAAE;QAAE,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,CAAA;KAAE,CAAA;IAC3B,MAAM,EAAE,EAAE,CAAA;CACX,CAAA"}
|
|
@@ -2,7 +2,7 @@ import type { FindOptions } from '@furystack/core';
|
|
|
2
2
|
/**
|
|
3
3
|
* Response Model for GetCollection
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type GetCollectionResult<T> = {
|
|
6
6
|
/**
|
|
7
7
|
* The Total count of entities
|
|
8
8
|
*/
|
|
@@ -15,7 +15,7 @@ export declare type GetCollectionResult<T> = {
|
|
|
15
15
|
/**
|
|
16
16
|
* Rest endpoint model for getting / querying collections
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export type GetCollectionEndpoint<T> = {
|
|
19
19
|
query: {
|
|
20
20
|
findOptions?: FindOptions<T, Array<keyof T>>;
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-collection-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-models/get-collection-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAElD;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"get-collection-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-models/get-collection-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAElD;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,EAAE,CAAC,EAAE,CAAA;CACb,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI;IACrC,KAAK,EAAE;QAAE,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;KAAE,CAAA;IACvD,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAA;CAC/B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-models/get-endpoint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"get-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-models/get-endpoint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,EAAE,WAAW,SAAS,MAAM,CAAC,IAAI;IAC9D,KAAK,EAAE;QACL;;WAEG;QACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAA;KACxB,CAAA;IACD,GAAG,EAAE;QACH;;WAEG;QACH,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,CAAA;KACnB,CAAA;IACD,MAAM,EAAE,CAAC,CAAA;CACV,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-models/patch-endpoint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"patch-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-models/patch-endpoint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,EAAE,WAAW,SAAS,MAAM,CAAC,IAAI;IAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;IAChB,GAAG,EAAE;QAAE,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,CAAA;KAAE,CAAA;IAC3B,MAAM,EAAE,EAAE,CAAA;CACX,CAAA"}
|
|
@@ -2,7 +2,7 @@ import type { WithOptionalId } from '@furystack/core';
|
|
|
2
2
|
/**
|
|
3
3
|
* Endpoint model for creating new entities
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type PostEndpoint<T, TPrimaryKey extends keyof T> = {
|
|
6
6
|
body: WithOptionalId<T, TPrimaryKey>;
|
|
7
7
|
result: T;
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-models/post-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"post-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-models/post-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,WAAW,SAAS,MAAM,CAAC,IAAI;IACzD,IAAI,EAAE,cAAc,CAAC,CAAC,EAAE,WAAW,CAAC,CAAA;IACpC,MAAM,EAAE,CAAC,CAAA;CACV,CAAA"}
|
package/types/methods.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Method = 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE' | 'HEAD' | 'CONNECT' | 'TRACE';
|
|
2
2
|
//# sourceMappingURL=methods.d.ts.map
|
package/types/methods.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../src/methods.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../src/methods.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA"}
|
package/types/rest-api.d.ts
CHANGED
package/types/rest-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest-api.d.ts","sourceRoot":"","sources":["../src/rest-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC,
|
|
1
|
+
{"version":3,"file":"rest-api.d.ts","sourceRoot":"","sources":["../src/rest-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC,MAAM,MAAM,OAAO,GAAG;KACnB,OAAO,IAAI,MAAM,CAAC,CAAC,EAAE;QACpB,CAAC,IAAI,EAAE,MAAM,GAAG;YAAE,MAAM,EAAE,OAAO,CAAC;YAAC,GAAG,CAAC,EAAE,OAAO,CAAC;YAAC,KAAK,CAAC,EAAE,OAAO,CAAC;YAAC,IAAI,CAAC,EAAE,OAAO,CAAC;YAAC,OAAO,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KACvG;CACF,CAAA"}
|