@choosemycompany/lib 0.3.0 → 0.3.1

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.
@@ -77,6 +77,12 @@ export type ListResponse<T> = {
77
77
  export type RetrieveResponse<T> = {
78
78
  item: T;
79
79
  };
80
+ /**
81
+ * A raw JSON object as returned by the HTTP layer, before mapping to a domain
82
+ * type. Use as the generic argument of `RetrieveResponse` / `ListResponse` when
83
+ * the caller maps the payload itself — e.g. `ListResponse<HttpResponse>`.
84
+ */
85
+ export type HttpResponse = Record<string, unknown>;
80
86
  /**
81
87
  * Field-level validation error item, as returned in `MandeErrorBody.errors`.
82
88
  */
package/dist/index.d.ts CHANGED
@@ -31,5 +31,5 @@ export { usePrimaryTypeTranslation } from './i18n/usePrimaryTypeTranslation';
31
31
  export { useResponsiveSize } from './ui/useResponsiveSize';
32
32
  export { useTranslate } from './i18n/useTranslate';
33
33
  export type { StoreOptions, RetrieveOptions, ListOptions, ViewKeyParams, View, ViewOptions, } from './store/types';
34
- export type { PaginatedQuery, Pagination, ListResponse, RetrieveResponse, RequestOptions, ErrorItem, MandeError, MandeErrorBody, } from './http/types';
34
+ export type { PaginatedQuery, Pagination, ListResponse, RetrieveResponse, HttpResponse, RequestOptions, ErrorItem, MandeError, MandeErrorBody, } from './http/types';
35
35
  export type { Language, Translation, InternationalizedRoute, } from './i18n/types';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@choosemycompany/lib",
3
3
  "description": "Shared composables, stores and types for ChooseMyCompany front apps",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "packageManager": "pnpm@10.17.0",