@matochmat/api-client 1.3.2 → 1.3.4

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 (75) hide show
  1. package/dist/index.cjs.js.map +1 -0
  2. package/{src/index.ts → dist/index.d.ts} +0 -2
  3. package/dist/index.esm.js +7 -0
  4. package/dist/index.esm.js.map +1 -0
  5. package/dist/v2/baseResponse.d.ts +21 -0
  6. package/dist/v2/cateringFunctionality.d.ts +39 -0
  7. package/dist/v2/city.d.ts +102 -0
  8. package/dist/v2/cityUploadConnection.d.ts +11 -0
  9. package/dist/v2/cityUploadGrouping.d.ts +3 -0
  10. package/dist/v2/crawlingConfiguration.d.ts +55 -0
  11. package/dist/v2/crawlingConfigurationTextContentStrategyType.d.ts +30 -0
  12. package/dist/v2/date.d.ts +29 -0
  13. package/dist/v2/day.d.ts +47 -0
  14. package/dist/v2/deliveryInfo.d.ts +46 -0
  15. package/dist/v2/dinnerFunctionality.d.ts +47 -0
  16. package/dist/v2/foodItem.d.ts +22 -0
  17. package/dist/v2/geodata.d.ts +39 -0
  18. package/dist/v2/integrationV1Configuration.d.ts +38 -0
  19. package/dist/v2/integrationV2Configuration.d.ts +42 -0
  20. package/dist/v2/lunchBoxFunctionality.d.ts +31 -0
  21. package/dist/v2/lunchDish.d.ts +2 -0
  22. package/dist/v2/lunchFunctionality.d.ts +59 -0
  23. package/dist/v2/lunchMenu.d.ts +34 -0
  24. package/dist/v2/month.d.ts +22 -0
  25. package/dist/v2/monthSet.d.ts +11 -0
  26. package/dist/v2/openingHour.d.ts +50 -0
  27. package/dist/v2/restaurant.d.ts +162 -0
  28. package/dist/v2/restaurantFunctionalityType.d.ts +25 -0
  29. package/dist/v2/restaurantUploadConnection.d.ts +19 -0
  30. package/dist/v2/restaurantUploadGrouping.d.ts +3 -0
  31. package/dist/v2/tableBooking.d.ts +54 -0
  32. package/dist/v2/takeAway.d.ts +46 -0
  33. package/dist/v2/upload.d.ts +34 -0
  34. package/dist/v2/uploadConnection.d.ts +18 -0
  35. package/dist/v2/uploadGrouping.d.ts +11 -0
  36. package/dist/v2/version.d.ts +31 -0
  37. package/dist/v2/week.d.ts +34 -0
  38. package/dist/v2/year.d.ts +22 -0
  39. package/dist/v2/yearSet.d.ts +11 -0
  40. package/package.json +4 -3
  41. package/src/v2/baseResponse.ts +0 -25
  42. package/src/v2/cateringFunctionality.ts +0 -48
  43. package/src/v2/city.ts +0 -126
  44. package/src/v2/cityUploadConnection.ts +0 -14
  45. package/src/v2/cityUploadGrouping.ts +0 -4
  46. package/src/v2/crawlingConfiguration.ts +0 -68
  47. package/src/v2/crawlingConfigurationTextContentStrategyType.ts +0 -37
  48. package/src/v2/date.ts +0 -36
  49. package/src/v2/day.ts +0 -58
  50. package/src/v2/deliveryInfo.ts +0 -57
  51. package/src/v2/dinnerFunctionality.ts +0 -58
  52. package/src/v2/foodItem.ts +0 -27
  53. package/src/v2/geodata.ts +0 -48
  54. package/src/v2/integrationV1Configuration.ts +0 -47
  55. package/src/v2/integrationV2Configuration.ts +0 -52
  56. package/src/v2/lunchBoxFunctionality.ts +0 -38
  57. package/src/v2/lunchDish.ts +0 -3
  58. package/src/v2/lunchFunctionality.ts +0 -73
  59. package/src/v2/lunchMenu.ts +0 -42
  60. package/src/v2/month.ts +0 -27
  61. package/src/v2/monthSet.ts +0 -14
  62. package/src/v2/openingHour.ts +0 -62
  63. package/src/v2/restaurant.ts +0 -199
  64. package/src/v2/restaurantFunctionalityType.ts +0 -30
  65. package/src/v2/restaurantUploadConnection.ts +0 -24
  66. package/src/v2/restaurantUploadGrouping.ts +0 -4
  67. package/src/v2/tableBooking.ts +0 -67
  68. package/src/v2/takeAway.ts +0 -57
  69. package/src/v2/upload.ts +0 -42
  70. package/src/v2/uploadConnection.ts +0 -22
  71. package/src/v2/uploadGrouping.ts +0 -14
  72. package/src/v2/version.ts +0 -41
  73. package/src/v2/week.ts +0 -44
  74. package/src/v2/year.ts +0 -27
  75. package/src/v2/yearSet.ts +0 -14
package/src/v2/upload.ts DELETED
@@ -1,42 +0,0 @@
1
- export type ApiV2UploadType =
2
- {
3
- /**
4
- * Determines whether or not this uses our alternative OG image variant.
5
- */
6
- alternativeOgImage: boolean;
7
-
8
- /**
9
- * Base name of the file.
10
- */
11
- baseName: string;
12
-
13
- /**
14
- * File extension.
15
- */
16
- extension: string;
17
-
18
- /**
19
- * Unique entity ID.
20
- */
21
- id: number;
22
-
23
- /**
24
- * Timestamp for when entity was last updated.
25
- */
26
- lastUpdated: string;
27
-
28
- /**
29
- * Factor to use for modifying image max sizes in different parts of the system.
30
- */
31
- maxSizeFactor: number;
32
-
33
- /**
34
- * Directory path to the file.
35
- */
36
- path: string;
37
-
38
- /**
39
- * Timestamp for when the image was first uploaded.
40
- */
41
- uploaded: string;
42
- }
@@ -1,22 +0,0 @@
1
- export type ApiV2UploadConnectionType =
2
- {
3
- /**
4
- * Timestamp for when the connection was created.
5
- */
6
- created: string;
7
-
8
- /**
9
- * Unique ID for the entity.
10
- */
11
- id: number;
12
-
13
- /**
14
- * Timestamp for last update.
15
- */
16
- lastUpdated: string;
17
-
18
- /**
19
- * ID of the upload.
20
- */
21
- uploadId: number;
22
- }
@@ -1,14 +0,0 @@
1
- import type { ApiV2UploadType } from '@matochmat/api-client/src/v2/upload';
2
-
3
- export type ApiV2UploadGroupingType<T> =
4
- {
5
- /**
6
- * Upload instance. This represents the actual uploaded file.
7
- */
8
- upload: ApiV2UploadType;
9
-
10
- /**
11
- * Upload connection. This is the relation entity between the uploaded file and another entity.
12
- */
13
- uploadConnection: T;
14
- }
package/src/v2/version.ts DELETED
@@ -1,41 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';
2
-
3
- /**
4
- * The API response type for backend version info to be compare with client info.
5
- */
6
- export type ApiV2VersionResponseType = ApiV2BaseResponseType<
7
- {
8
- /**
9
- * The semantic version of the latest built package for the version. This generally follows the version of the backend, but may sometimes be left out of sync for backend changes that don't require a new client version to be compiled.
10
- */
11
- buildSemanticVersion: string;
12
-
13
- /**
14
- * Not relevant for external usage, exists only for in-app comparisons.
15
- */
16
- buildTime: string;
17
-
18
- /**
19
- * Not relevant for external usage, exists only for in-app comparisons.
20
- */
21
- buildVersion: string;
22
-
23
- /**
24
- * The version the backend is currently running. Please use this for any eventual comparisons used for checking breaking changes for your API- or client integrations.
25
- */
26
- packageVersion: string;
27
-
28
- /**
29
- * @deprecated This is from a time before `buildSemanticVersion` and `ApiV2VersionResponseType` existed and you should use one of those instead, most likely what you want is the `packageVersion` specifically.
30
- */
31
- semanticVersion: string;
32
- },
33
- number
34
- > &
35
- {
36
- /**
37
- * Irrelevant side-effect of generic item count handling for a non-generic endpoint. Can be ignored completely for this specific endpoint.
38
- */
39
- count: number;
40
- };
41
-
package/src/v2/week.ts DELETED
@@ -1,44 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';
2
- import type { ApiV2DateType } from '@matochmat/api-client/src/v2/date';
3
- import type { ApiV2YearSetType } from '@matochmat/api-client/src/v2/yearSet';
4
-
5
- /**
6
- * Type for the non-array data object in v2 of the API for the week endpoint.
7
- */
8
- export type ApiV2WeekType =
9
- {
10
- /**
11
- * List of dates in week.
12
- */
13
- dates: ApiV2DateType[];
14
-
15
- /**
16
- * Week number.
17
- */
18
- number: number;
19
-
20
- /**
21
- * Set of current year and week year.
22
- */
23
- yearSet: ApiV2YearSetType;
24
- };
25
-
26
- /**
27
- * The API response type for week info.
28
- */
29
- export type ApiV2WeekResponseType = ApiV2BaseResponseType<
30
- {
31
- actual: ApiV2WeekType;
32
- crawling: ApiV2WeekType;
33
- currentlyShown: ApiV2WeekType;
34
- requested: ApiV2WeekType;
35
- },
36
- number
37
- > &
38
- {
39
- /**
40
- * Irrelevant side-effect of generic item count handling for a non-generic endpoint. Can be ignored completely for this specific endpoint.
41
- */
42
- count: number;
43
- };
44
-
package/src/v2/year.ts DELETED
@@ -1,27 +0,0 @@
1
- export type ApiV2YearType =
2
- {
3
- /**
4
- * Determines whether year is a leap year.
5
- */
6
- isLeapYear: boolean;
7
-
8
- /**
9
- * Year number.
10
- */
11
- number: number;
12
-
13
- /**
14
- * Number of weeks this year. This is actually 1 through 53, but I'm not going to write out all options and AFAIK Typescript doesn't yet have built-in helpers for this...
15
- */
16
- numberOfWeeks: number;
17
-
18
- /**
19
- * Number of weeks next year. This is actually 1 through 53, but I'm not going to write out all options and AFAIK Typescript doesn't yet have built-in helpers for this...
20
- */
21
- numberOfWeeksNextYear: number;
22
-
23
- /**
24
- * Number of weeks in previous year. This is actually 1 through 53, but I'm not going to write out all options and AFAIK Typescript doesn't yet have built-in helpers for this...
25
- */
26
- numberOfWeeksPreviousYear: number;
27
- };
package/src/v2/yearSet.ts DELETED
@@ -1,14 +0,0 @@
1
- import type { ApiV2YearType } from '@matochmat/api-client/src/v2/year';
2
-
3
- export type ApiV2YearSetType =
4
- {
5
- /**
6
- * Actual number of year.
7
- */
8
- actualYear: ApiV2YearType;
9
-
10
- /**
11
- * Number of year for the week. May differ from actual year.
12
- */
13
- weekYear: ApiV2YearType;
14
- };