@matochmat/api-client 2.0.0-next.2 → 2.0.0-next.21

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 (51) hide show
  1. package/dist/index.cjs.js +44 -14
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +29 -4
  4. package/dist/index.esm.js +21 -11
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/v2/bonusStamp.d.ts +21 -0
  7. package/dist/v2/bonusStampCode.d.ts +38 -0
  8. package/dist/v2/cateringFunctionality.d.ts +1 -1
  9. package/dist/v2/city.d.ts +12 -8
  10. package/dist/v2/coupon.d.ts +50 -0
  11. package/dist/v2/customer.d.ts +70 -0
  12. package/dist/v2/dinnerFunctionality.d.ts +13 -3
  13. package/dist/v2/emailTemplate.d.ts +50 -0
  14. package/dist/v2/favorite.d.ts +21 -0
  15. package/dist/v2/geodata.d.ts +0 -9
  16. package/dist/v2/lunchBoxFunctionality.d.ts +1 -1
  17. package/dist/v2/lunchFunctionality.d.ts +1 -1
  18. package/dist/v2/notificationPreference.d.ts +34 -0
  19. package/dist/v2/policy.d.ts +30 -0
  20. package/dist/v2/restaurantFunctionality.d.ts +25 -0
  21. package/dist/v2/showcaseLocation.d.ts +1 -1
  22. package/dist/v2/userLocation.d.ts +17 -0
  23. package/dist/v3/bonusStamp.d.ts +5 -0
  24. package/dist/v3/bonusStampCode.d.ts +11 -0
  25. package/dist/v3/cateringFunctionality.d.ts +11 -0
  26. package/dist/v3/city.d.ts +11 -0
  27. package/dist/v3/cityUploadConnection.d.ts +11 -0
  28. package/dist/v3/coupon.d.ts +17 -0
  29. package/dist/v3/couponLocation.d.ts +30 -0
  30. package/dist/v3/customer.d.ts +11 -0
  31. package/dist/v3/customerManagement.d.ts +34 -0
  32. package/dist/v3/dinnerFunctionality.d.ts +17 -0
  33. package/dist/v3/dinnerFunctionalityType.d.ts +11 -0
  34. package/dist/v3/dynamicContent.d.ts +11 -0
  35. package/dist/v3/emailTemplate.d.ts +11 -0
  36. package/dist/v3/favorite.d.ts +5 -0
  37. package/dist/v3/geodata.d.ts +11 -0
  38. package/dist/v3/lunchBoxFunctionality.d.ts +11 -0
  39. package/dist/v3/lunchFunctionality.d.ts +1 -0
  40. package/dist/v3/notificationPreference.d.ts +11 -0
  41. package/dist/v3/policy.d.ts +11 -0
  42. package/dist/v3/restaurant.d.ts +34 -0
  43. package/dist/v3/restaurantFunctionality.d.ts +5 -0
  44. package/dist/v3/session.d.ts +1 -0
  45. package/dist/v3/showcaseLocation.d.ts +22 -3
  46. package/dist/v3/showcaseUserRoleConnection.d.ts +26 -3
  47. package/dist/v3/systemSetting.d.ts +11 -0
  48. package/dist/v3/updatedByType.d.ts +11 -0
  49. package/dist/v3/user.d.ts +1 -0
  50. package/dist/v3/userLocation.d.ts +5 -0
  51. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ import type { ApiV2DynamicContentType } from '../v2/dynamicContent';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2DynamicContentApiEndpointSlug as apiV3DynamicContentApiEndpointSlug } from '../v2/dynamicContent';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the dynamic content endpoint.
6
+ */
7
+ export type ApiV3DynamicContentType = ApiV2DynamicContentType;
8
+ /**
9
+ * The API response type for dynamic content items.
10
+ */
11
+ export type ApiV3DynamicContentResponseType = ApiV3BaseResponseType<ApiV3DynamicContentType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2EmailTemplateType } from '../v2/emailTemplate';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2EmailTemplateApiEndpointSlug as apiV3EmailTemplateApiEndpointSlug } from '../v2/emailTemplate';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the email template endpoint.
6
+ */
7
+ export type ApiV3EmailTemplateType = ApiV2EmailTemplateType;
8
+ /**
9
+ * The API response type for email template items.
10
+ */
11
+ export type ApiV3EmailTemplateResponseType = ApiV3BaseResponseType<ApiV3EmailTemplateType[], number>;
@@ -0,0 +1,5 @@
1
+ import { ApiV2FavoriteType } from '../v2/favorite';
2
+ /**
3
+ *
4
+ */
5
+ export type ApiV3FavoriteType = ApiV2FavoriteType;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2GeodataType } from '../v2/geodata';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2GeodataApiEndpointSlug as apiV3GeodataApiEndpointSlug } from '../v2/geodata';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the geodata endpoint.
6
+ */
7
+ export type ApiV3GeodataType = ApiV2GeodataType;
8
+ /**
9
+ * The API response type for geodata items.
10
+ */
11
+ export type ApiV3GeodataResponseType = ApiV3BaseResponseType<ApiV3GeodataType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ import type { ApiV2LunchBoxFunctionalityType } from '../v2/lunchBoxFunctionality';
3
+ export { apiV2LunchBoxFunctionalityApiEndpointSlug as apiV3LunchBoxFunctionalityApiEndpointSlug } from '../v2/lunchBoxFunctionality';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the lunch box functionality endpoint.
6
+ */
7
+ export type ApiV3LunchBoxFunctionalityType = ApiV2LunchBoxFunctionalityType;
8
+ /**
9
+ * The API response type for lunch box functionality.
10
+ */
11
+ export type ApiV3LunchBoxFunctionalityResponseType = ApiV2BaseResponseType<ApiV3LunchBoxFunctionalityType[], number>;
@@ -1,6 +1,7 @@
1
1
  import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
2
  import type { ApiV2LunchFunctionalityType } from '../v2/lunchFunctionality';
3
3
  import type { ApiV3OpeningHourType } from '../v3/openingHour';
4
+ export { apiV2LunchFunctionalityApiEndpointSlug as apiV3LunchFunctionalityApiEndpointSlug } from '../v2/lunchFunctionality';
4
5
  /**
5
6
  * Type for the individual array items in v3 of the API for the lunch functionality endpoint.
6
7
  */
@@ -0,0 +1,11 @@
1
+ import type { ApiV2NotificationPreferenceType } from '../v2/notificationPreference';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2NotificationPreferenceApiEndpointSlug as apiV3NotificationPreferenceApiEndpointSlug } from '../v2/notificationPreference';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the notification preference endpoint.
6
+ */
7
+ export type ApiV3NotificationPreferenceType = ApiV2NotificationPreferenceType;
8
+ /**
9
+ * The API response type for notification preference items.
10
+ */
11
+ export type ApiV3NotificationPreferenceResponseType = ApiV3BaseResponseType<ApiV3NotificationPreferenceType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2PolicyType } from '../v2/policy';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2PolicyApiEndpointSlug as apiV3PolicyApiEndpointSlug } from '../v2/policy';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the policy endpoint.
6
+ */
7
+ export type ApiV3PolicyType = ApiV2PolicyType;
8
+ /**
9
+ * The API response type for policy items.
10
+ */
11
+ export type ApiV3PolicyResponseType = ApiV3BaseResponseType<ApiV3PolicyType[], number>;
@@ -0,0 +1,34 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ import type { ApiV2RestaurantType } from '../v2/restaurant';
3
+ import type { ApiV3CateringFunctionalityType } from '../v3/cateringFunctionality';
4
+ import type { ApiV3DinnerFunctionalityType } from '../v3/dinnerFunctionality';
5
+ import type { ApiV3LunchBoxFunctionalityType } from '../v3/lunchBoxFunctionality';
6
+ import type { ApiV3LunchFunctionalityType } from '../v3/lunchFunctionality';
7
+ export { apiV2RestaurantApiEndpointSlug as apiV3RestaurantApiEndpointSlug } from '../v2/restaurant';
8
+ /**
9
+ * Type for the individual array items in v3 of the API for the restaurant endpoint.
10
+ * NOTE: This is currently marked "internal" (not really, but treat it as if it were) since the interface is actively undergoing change to a modernized structures. It is very much a WIP and should be treated as such. Breaking changes to this not only can, but **will**, occur.
11
+ * @internal
12
+ */
13
+ export type ApiV3RestaurantType = Omit<ApiV2RestaurantType, 'cateringFunctionality' | 'dinnerFunctionality' | 'lunchBoxFunctionality' | 'lunchFunctionality'> & {
14
+ /**
15
+ *
16
+ */
17
+ cateringFunctionality: ApiV3CateringFunctionalityType;
18
+ /**
19
+ *
20
+ */
21
+ dinnerFunctionality: ApiV3DinnerFunctionalityType;
22
+ /**
23
+ *
24
+ */
25
+ lunchBoxFunctionality: ApiV3LunchBoxFunctionalityType;
26
+ /**
27
+ *
28
+ */
29
+ lunchFunctionality: ApiV3LunchFunctionalityType;
30
+ };
31
+ /**
32
+ * The API response type for restaurant.
33
+ */
34
+ export type ApiV3RestaurantResponseType = ApiV2BaseResponseType<ApiV3RestaurantType[], number>;
@@ -0,0 +1,5 @@
1
+ import type { ApiV2RestaurantFunctionalityType } from '../v2/restaurantFunctionality';
2
+ /**
3
+ *
4
+ */
5
+ export type ApiV3RestaurantFunctionalityType = ApiV2RestaurantFunctionalityType;
@@ -0,0 +1 @@
1
+ export { apiV2SessionApiEndpointSlug as apiV3SessionApiEndpointSlug } from '../v2/session';
@@ -1,11 +1,30 @@
1
- import type { ApiV2ShowcaseLocationType } from '../v2/showcaseLocation';
2
1
  import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
- export { apiV2ShowcaseLocationApiEndpointSlug as apiV3ShowcaseLocationApiEndpointSlug } from '../v2/showcaseLocation';
4
2
  /**
5
3
  * Type for the individual array items in v3 of the API for the showcase location endpoint.
6
4
  */
7
- export type ApiV3ShowcaseLocationType = ApiV2ShowcaseLocationType;
5
+ export type ApiV3ShowcaseLocationType = {
6
+ /**
7
+ * City ID for the location.
8
+ */
9
+ cityId: number;
10
+ /**
11
+ * Unique ID for the showcase location.
12
+ */
13
+ id: number;
14
+ /**
15
+ * Timestamp for when the entity was last updated.
16
+ */
17
+ lastUpdated: string;
18
+ /**
19
+ * ID of the showcase the location represents.
20
+ */
21
+ showcaseId: number;
22
+ };
8
23
  /**
9
24
  * The API response type for showcase location items.
10
25
  */
11
26
  export type ApiV3ShowcaseLocationResponseType = ApiV3BaseResponseType<ApiV3ShowcaseLocationType[], number>;
27
+ /**
28
+ * API endpoint slug.
29
+ */
30
+ export declare const apiV3ShowcaseLocationApiEndpointSlug = "showcase-locations";
@@ -1,11 +1,34 @@
1
- import type { ApiV2ShowcaseUserRoleConnectionType } from '../v2/showcaseUserRoleConnection';
2
1
  import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
- export { apiV2ShowcaseUserRoleConnectionApiEndpointSlug as apiV3ShowcaseUserRoleConnectionApiEndpointSlug } from '../v2/showcaseUserRoleConnection';
4
2
  /**
5
3
  * Type for the individual array items in v3 of the API for the showcase user role connection endpoint.
6
4
  */
7
- export type ApiV3ShowcaseUserRoleConnectionType = ApiV2ShowcaseUserRoleConnectionType;
5
+ export type ApiV3ShowcaseUserRoleConnectionType = {
6
+ /**
7
+ * String representation of when the entity relation was created.
8
+ */
9
+ created: string;
10
+ /**
11
+ * Unique ID for the showcase user role connection.
12
+ */
13
+ id: number;
14
+ /**
15
+ * String representation of when the entity relation was last updated.
16
+ */
17
+ lastUpdated: string;
18
+ /**
19
+ * Showcase ID.
20
+ */
21
+ showcaseId: number;
22
+ /**
23
+ * User role ID.
24
+ */
25
+ userRoleId: number;
26
+ };
8
27
  /**
9
28
  * The API response type for showcase user role connection items.
10
29
  */
11
30
  export type ApiV3ShowcaseUserRoleConnectionResponseType = ApiV3BaseResponseType<ApiV3ShowcaseUserRoleConnectionType[], number>;
31
+ /**
32
+ * API endpoint slug.
33
+ */
34
+ export declare const apiV3ShowcaseUserRoleConnectionApiEndpointSlug = "showcase-user-role-connections";
@@ -0,0 +1,11 @@
1
+ import type { ApiV2SystemSettingType } from '../v2/systemSetting';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2SystemSettingApiEndpointSlug as apiV3SystemSettingApiEndpointSlug } from '../v2/systemSetting';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the system setting endpoint.
6
+ */
7
+ export type ApiV3SystemSettingType<T = unknown> = ApiV2SystemSettingType<T>;
8
+ /**
9
+ * The API response type for system setting items.
10
+ */
11
+ export type ApiV3SystemSettingResponseType = ApiV3BaseResponseType<ApiV3SystemSettingType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2UpdatedByTypeType } from '../v2/updatedByType';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2UpdatedByTypeApiEndpointSlug as apiV3UpdatedByTypeApiEndpointSlug } from '../v2/updatedByType';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the updated by type endpoint.
6
+ */
7
+ export type ApiV3UpdatedByTypeType = ApiV2UpdatedByTypeType;
8
+ /**
9
+ * The API response type for updated by type items.
10
+ */
11
+ export type ApiV3UpdatedByTypeResponseType = ApiV3BaseResponseType<ApiV3UpdatedByTypeType[], number>;
@@ -0,0 +1 @@
1
+ export { apiV2UserApiEndpointSlug as apiV3UserApiEndpointSlug } from '../v2/user';
@@ -0,0 +1,5 @@
1
+ import { ApiV2UserLocationType } from '../v2/userLocation';
2
+ /**
3
+ *
4
+ */
5
+ export type ApiV3UserLocationType = ApiV2UserLocationType;
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": "2.0.0-next.2",
4
+ "version": "2.0.0-next.21",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",