@furystack/rest 4.0.12 → 4.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@furystack/rest",
3
- "version": "4.0.12",
3
+ "version": "4.1.0",
4
4
  "description": "Generic REST package",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "homepage": "https://github.com/furystack/furystack",
31
31
  "dependencies": {
32
- "@furystack/inject": "^7.0.5"
32
+ "@furystack/core": "^11.1.0",
33
+ "@furystack/inject": "^7.1.0"
33
34
  },
34
35
  "devDependencies": {
35
- "@furystack/core": "^11.0.13",
36
36
  "@types/jest": "^29.0.3",
37
- "@types/node": "^18.7.18"
37
+ "@types/node": "^18.7.23"
38
38
  },
39
39
  "typings": "./types/index.d.ts",
40
40
  "gitHead": "1045d854bfd8c475b7035471d130d401417a2321"
@@ -1,4 +1,4 @@
1
- import { FindOptions } from '@furystack/core'
1
+ import type { FindOptions } from '@furystack/core'
2
2
 
3
3
  /**
4
4
  * Response Model for GetCollection
@@ -1,4 +1,4 @@
1
- import { WithOptionalId } from '@furystack/core'
1
+ import type { WithOptionalId } from '@furystack/core'
2
2
 
3
3
  /**
4
4
  * Endpoint model for creating new entities
package/src/rest-api.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Method } from './methods'
1
+ import type { Method } from './methods'
2
2
 
3
3
  export type RestApi = {
4
4
  [TMethod in Method]?: {
@@ -1,4 +1,4 @@
1
- import { FindOptions } from '@furystack/core';
1
+ import type { FindOptions } from '@furystack/core';
2
2
  /**
3
3
  * Response Model for GetCollection
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"get-collection-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-models/get-collection-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7C;;GAEG;AACH,oBAAY,mBAAmB,CAAC,CAAC,IAAI;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,EAAE,CAAC,EAAE,CAAA;CACb,CAAA;AAED;;GAEG;AACH,oBAAY,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
+ {"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,oBAAY,mBAAmB,CAAC,CAAC,IAAI;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,EAAE,CAAC,EAAE,CAAA;CACb,CAAA;AAED;;GAEG;AACH,oBAAY,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,4 +1,4 @@
1
- import { WithOptionalId } from '@furystack/core';
1
+ import type { WithOptionalId } from '@furystack/core';
2
2
  /**
3
3
  * Endpoint model for creating new entities
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"post-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-models/post-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD;;GAEG;AACH,oBAAY,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"}
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,oBAAY,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"}
@@ -1,4 +1,4 @@
1
- import { Method } from './methods';
1
+ import type { Method } from './methods';
2
2
  export declare type RestApi = {
3
3
  [TMethod in Method]?: {
4
4
  [TUrl: string]: {
@@ -1 +1 @@
1
- {"version":3,"file":"rest-api.d.ts","sourceRoot":"","sources":["../src/rest-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,oBAAY,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"}
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,oBAAY,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"}