@seamapi/http 2.0.0 → 2.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/README.md CHANGED
@@ -43,36 +43,6 @@ $ npm install @seamapi/http
43
43
  [npm]: https://www.npmjs.com/
44
44
  [seam package]: https://www.npmjs.com/package/seam
45
45
 
46
- ### Optional Peer Dependencies for TypeScript
47
-
48
- This package has optional peer dependencies for TypeScript users.
49
- Recent versions of npm will automatically install peer dependencies by default.
50
- For those users, no additional steps are necessary for full TypeScript support,
51
- however users should still explicitly install the latest types (see the next section).
52
-
53
- Other package managers require peer dependencies to be added manually.
54
- Refer to any warnings generated by your package manager
55
- about missing peer dependencies and install them as needed.
56
- Refer to the next section for keeping the types updated.
57
-
58
- #### Keeping up with the latest types
59
-
60
- This package depends on [@seamapi/types] for the latest TypeScript types.
61
- New versions of this SDK are generally not released when new types are published.
62
- Unless your project frequently runs a blanket `npm update`,
63
- the types will become outdated with the Seam API over time.
64
- Thus, users of this package should explicitly install the types with
65
-
66
- ```
67
- $ npm install -D @seamapi/types
68
- ```
69
-
70
- and update them when consuming new API features with
71
-
72
- ```
73
- $ npm install -D @seamapi/types@latest
74
- ```
75
-
76
46
  ## Usage
77
47
 
78
48
  ### Examples
@@ -1,3 +1,2 @@
1
- // UPSTREAM: These types should be provided by @seamapi/types/connect.
2
1
  export {};
3
2
  //# sourceMappingURL=api-error-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-error-types.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/api-error-types.ts"],"names":[],"mappings":"AAAA,sEAAsE"}
1
+ {"version":3,"file":"api-error-types.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/api-error-types.ts"],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- import type { openapi } from '@seamapi/types/connect';
2
- export declare const getOpenapiSchema: (endpoint?: string) => Promise<typeof openapi>;
1
+ export declare const getOpenapiSchema: (endpoint?: string) => Promise<unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"openapi.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/openapi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEhE,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EACnC,QAAQ,GAAG,eAAe,EACD,EAAE;IAC3B,MAAM,MAAM,GAAG,YAAY,CAAC;QAC1B,YAAY,EAAE;YACZ,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,UAAU;SACpB;KACF,CAAC,CAAA;IACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,GAAG,CAAiB,eAAe,CAAC,CAAA;IAClE,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
1
+ {"version":3,"file":"openapi.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/openapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEhE,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EACnC,QAAQ,GAAG,eAAe,EACR,EAAE;IACpB,MAAM,MAAM,GAAG,YAAY,CAAC;QAC1B,YAAY,EAAE;YACZ,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,UAAU;SACpB;KACF,CAAC,CAAA;IACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAA;IAClD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const seamapiJavascriptHttpVersion = "2.0.0";
1
+ declare const seamapiJavascriptHttpVersion = "2.1.0";
2
2
  export default seamapiJavascriptHttpVersion;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '2.0.0';
1
+ const seamapiJavascriptHttpVersion = '2.1.0';
2
2
  export default seamapiJavascriptHttpVersion;
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/http",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "JavaScript HTTP client for the Seam API written in TypeScript.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -81,14 +81,6 @@
81
81
  "version": "^11.12.0 || ^10.9.4"
82
82
  }
83
83
  },
84
- "peerDependencies": {
85
- "@seamapi/types": "^1.983.0"
86
- },
87
- "peerDependenciesMeta": {
88
- "@seamapi/types": {
89
- "optional": true
90
- }
91
- },
92
84
  "dependencies": {
93
85
  "@seamapi/url-search-params-serializer": "^3.0.0",
94
86
  "axios": "^1.9.0",
@@ -1,5 +1,3 @@
1
- // UPSTREAM: These types should be provided by @seamapi/types/connect.
2
-
3
1
  export interface ApiErrorResponse {
4
2
  error: ApiError
5
3
  }
@@ -1,17 +1,15 @@
1
- import type { openapi } from '@seamapi/types/connect'
2
-
3
1
  import { createClient } from './client.js'
4
2
  import { defaultEndpoint, sdkHeaders } from './parse-options.js'
5
3
 
6
4
  export const getOpenapiSchema = async (
7
5
  endpoint = defaultEndpoint,
8
- ): Promise<typeof openapi> => {
6
+ ): Promise<unknown> => {
9
7
  const client = createClient({
10
8
  axiosOptions: {
11
9
  baseURL: endpoint,
12
10
  headers: sdkHeaders,
13
11
  },
14
12
  })
15
- const { data } = await client.get<typeof openapi>('/openapi.json')
13
+ const { data } = await client.get('/openapi.json')
16
14
  return data
17
15
  }
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '2.0.0'
1
+ const seamapiJavascriptHttpVersion = '2.1.0'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion