batteryincluded 1.0.2 → 1.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +13 -1
  2. package/package.json +10 -8
package/dist/index.d.mts CHANGED
@@ -94,6 +94,18 @@ type Highlights = components['schemas']['GetApiV1CollectionsDocumentsHighlights'
94
94
  * @see https://www.postman.com/batteryincluded/core/request/21t4zy8/recommendations
95
95
  */
96
96
  type Recommendations = components['schemas']['GetApiV1CollectionsDocumentsRecommendations'];
97
+ /**
98
+ * Similar search query response type, representing the shape of the response returned by the API when performing a similar search query.
99
+ *
100
+ * @see https://www.postman.com/batteryincluded/core/request/mjujfc7/similar-search
101
+ */
102
+ type SimilarSearch = components['schemas']['GetApiV1CollectionsDocumentsSimilarSearch'];
103
+ /**
104
+ * Presets query response type, representing the shape of the response returned by the API when performing a presets query.
105
+ *
106
+ * @see https://www.postman.com/batteryincluded/core/request/dkv351x/presets
107
+ */
108
+ type Presets = components['schemas']['GetApiV1CollectionsDocumentsPresets'];
97
109
  /**
98
110
  * Configuration interface for the BatteryIncluded client.
99
111
  */
@@ -170,4 +182,4 @@ declare function filterToSearchParams(filter: Filter): URLSearchParams;
170
182
  * @returns BatteryIncluded filter object.
171
183
  */
172
184
  declare function searchParamsToFilter(searchParams: URLSearchParams): Filter;
173
- export { BatteryIncludedClientConfig, type Browse, type Facet, type Filter, type Highlights, type RangeFacet, type Recommendations, type SelectFacet, type Suggest, buildBaseUrl, buildHeaders, type components, createClient, defineCodegenConfig, filterToSearchParams, type paths, searchParamsToFilter };
185
+ export { BatteryIncludedClientConfig, type Browse, type Facet, type Filter, type Highlights, type Presets, type RangeFacet, type Recommendations, type SelectFacet, type SimilarSearch, type Suggest, buildBaseUrl, buildHeaders, type components, createClient, defineCodegenConfig, filterToSearchParams, type paths, searchParamsToFilter };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "batteryincluded",
3
3
  "type": "module",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "description": "A TypeScript client for the BatteryIncluded API",
6
6
  "author": "Frederik Bußmann <frederik@bussmann.io>",
7
7
  "license": "MIT",
@@ -22,8 +22,8 @@
22
22
  "lint": "eslint .",
23
23
  "lint:fix": "eslint . --fix",
24
24
  "prepack": "bun run build",
25
- "release": "bun test && npm publish && git push --follow-tags",
26
- "typecheck": "tsc --noEmit"
25
+ "typecheck": "tsc --noEmit",
26
+ "test": "vitest run"
27
27
  },
28
28
  "dependencies": {
29
29
  "autodisco": "^2.0.5",
@@ -34,10 +34,12 @@
34
34
  "openapi-fetch": "^0.17.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@antfu/eslint-config": "^9.0.0",
38
- "@types/node": "^24",
39
- "eslint": "^10.4.1",
40
- "obuild": "^0.4.34",
41
- "typescript": "^6.0.3"
37
+ "@antfu/eslint-config": "^9.1.0",
38
+ "@types/node": "^24.12.4",
39
+ "eslint": "^10.6.0",
40
+ "msw": "^2.14.6",
41
+ "obuild": "^0.4.37",
42
+ "typescript": "^6.0.3",
43
+ "vitest": "^4.1.9"
42
44
  }
43
45
  }