@matochmat/api-client 4.0.0 → 4.0.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.
Files changed (2) hide show
  1. package/dist/v3/week.d.ts +15 -2
  2. package/package.json +1 -1
package/dist/v3/week.d.ts CHANGED
@@ -2,10 +2,23 @@ import type { ApiV2WeekType } from '../v2/week';
2
2
  import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
3
  export { apiV2WeekApiEndpointSlug as apiV3WeekApiEndpointSlug } from '../v2/week';
4
4
  /**
5
- * Type for the individual array items in v3 of the API for the week endpoint.
5
+ * Type for the non-array data object in v3 of the API for the week endpoint.
6
6
  */
7
7
  export type ApiV3WeekType = ApiV2WeekType;
8
8
  /**
9
9
  * The API response type for week items.
10
10
  */
11
- export type ApiV3WeekResponseType = ApiV3BaseResponseType<ApiV3WeekType[], number>;
11
+ /**
12
+ * The API response type for week info.
13
+ */
14
+ export type ApiV3WeekResponseType = ApiV3BaseResponseType<{
15
+ actual: ApiV3WeekType;
16
+ crawling: ApiV3WeekType;
17
+ currentlyShown: ApiV3WeekType;
18
+ requested: ApiV3WeekType;
19
+ }, number> & {
20
+ /**
21
+ * Irrelevant side-effect of generic item count handling for a non-generic endpoint. Can be ignored completely for this specific endpoint.
22
+ */
23
+ count: number;
24
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@matochmat/api-client",
3
3
  "description": "API types and helper functionality for the Mat och Mat API.",
4
- "version": "4.0.0",
4
+ "version": "4.0.1",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",