@matochmat/api-client 1.7.0-next.0 → 1.7.0-next.10

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.
@@ -1,3 +1,45 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ /**
3
+ * Type for the individual array items in v2 of the API for the showcase position type endpoint.
4
+ */
5
+ export type ApiV2ShowcasePositionTypeType = {
6
+ /**
7
+ * Timestamp for when the entity was created.
8
+ */
9
+ created: string;
10
+ /**
11
+ * Unique ID for the entity.
12
+ */
13
+ id: number;
14
+ /**
15
+ * Height for aspect ratio base value for the desktop version.
16
+ */
17
+ imageAspectRatioBaseValueHeightDesktop: number;
18
+ /**
19
+ * Height for aspect ratio base value for the mobile version.
20
+ */
21
+ imageAspectRatioBaseValueHeightMobile: number;
22
+ /**
23
+ * Width for aspect ratio base value for the desktop version.
24
+ */
25
+ imageAspectRatioBaseValueWidthDesktop: number;
26
+ /**
27
+ * Width for aspect ratio base value for the mobile version.
28
+ */
29
+ imageAspectRatioBaseValueWidthMobile: number;
30
+ /**
31
+ * Timestamp for when the entity was last updated.
32
+ */
33
+ lastUpdated: string;
34
+ /**
35
+ * Human readable name of the entity.
36
+ */
37
+ name: string;
38
+ };
39
+ /**
40
+ * The API response type for showcases.
41
+ */
42
+ export type ApiV2ShowcasePositionTypeResponseType = ApiV2BaseResponseType<ApiV2ShowcasePositionTypeType[], number>;
1
43
  /**
2
44
  * API endpoint slug.
3
45
  */
@@ -1,3 +1,45 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ /**
3
+ * Type for the individual array items in v2 of the API for the showcase type endpoint.
4
+ */
5
+ export type ApiV2ShowcaseTypeType = {
6
+ /**
7
+ * Timestamp for when the entity was created.
8
+ */
9
+ created: string;
10
+ /**
11
+ * Unique ID for the entity.
12
+ */
13
+ id: number;
14
+ /**
15
+ * Height for aspect ratio base value for the desktop version.
16
+ */
17
+ imageAspectRatioBaseValueHeightDesktop: number;
18
+ /**
19
+ * Height for aspect ratio base value for the mobile version.
20
+ */
21
+ imageAspectRatioBaseValueHeightMobile: number;
22
+ /**
23
+ * Width for aspect ratio base value for the desktop version.
24
+ */
25
+ imageAspectRatioBaseValueWidthDesktop: number;
26
+ /**
27
+ * Width for aspect ratio base value for the mobile version.
28
+ */
29
+ imageAspectRatioBaseValueWidthMobile: number;
30
+ /**
31
+ * Timestamp for when the entity was last updated.
32
+ */
33
+ lastUpdated: string;
34
+ /**
35
+ * Human readable name of the entity.
36
+ */
37
+ name: string;
38
+ };
39
+ /**
40
+ * The API response type for showcase types.
41
+ */
42
+ export type ApiV2ShowcaseTypeResponseType = ApiV2BaseResponseType<ApiV2ShowcaseTypeType[], number>;
1
43
  /**
2
44
  * API endpoint slug.
3
45
  */
@@ -0,0 +1,3 @@
1
+ import type { ApiV2ShowcaseUploadConnectionType } from '../v2/showcaseUploadConnection';
2
+ import type { ApiV2UploadGroupingType } from '../v2/uploadGrouping';
3
+ export type ApiV2ShowcaseUploadGroupingType = ApiV2UploadGroupingType<ApiV2ShowcaseUploadConnectionType>;
@@ -1,3 +1,49 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ /**
3
+ * Type for the individual array items in v2 of the API for the order items endpoint.
4
+ */
5
+ export type ApiV2SubscriptionPeriodType = {
6
+ /**
7
+ * Timestamp for when the entity was created.
8
+ */
9
+ created: string;
10
+ /**
11
+ * End date for the subscription period
12
+ */
13
+ endDate: string;
14
+ /**
15
+ * Unique ID for subscription period.
16
+ */
17
+ id: number;
18
+ /**
19
+ * Whether or not the period has been invalidated.
20
+ */
21
+ invalidated: boolean;
22
+ /**
23
+ * Keeps track of whether or not the current period is a trial period.
24
+ */
25
+ isTrialPeriod: boolean;
26
+ /**
27
+ * Timestamp for when the entity was last updated.
28
+ */
29
+ lastUpdated: string;
30
+ /**
31
+ * Keeps track of whether the period was manually created or not.
32
+ */
33
+ manuallyCreated: boolean;
34
+ /**
35
+ * Restaurant ID the period relates to.
36
+ */
37
+ restaurantId: number;
38
+ /**
39
+ * Start date for the subscription period.
40
+ */
41
+ startDate: string;
42
+ };
43
+ /**
44
+ * The API response type for order items.
45
+ */
46
+ export type ApiV2SubscriptionPeriodResponseType = ApiV2BaseResponseType<ApiV2SubscriptionPeriodType[], number>;
1
47
  /**
2
48
  * API endpoint slug.
3
49
  */
@@ -1,3 +1,56 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ import type { ApiV2TeamMemberUploadConnectionType } from '../v2/teamMemberUploadConnection';
3
+ import type { ApiV2UploadType } from '../v2/upload';
4
+ /**
5
+ * Type for the individual array items in v2 of the API for the team member endpoint.
6
+ */
7
+ export type ApiV2TeamMemberType = {
8
+ /**
9
+ * String representation of when the entity was created.
10
+ */
11
+ created: string;
12
+ /**
13
+ * First name (given name).
14
+ */
15
+ firstName: string;
16
+ /**
17
+ * Unique ID for the entity.
18
+ */
19
+ id: number;
20
+ /**
21
+ * Last name (family name).
22
+ */
23
+ lastName: string;
24
+ /**
25
+ * String representation of the last time the entity was updated.
26
+ */
27
+ lastUpdated: string;
28
+ /**
29
+ * The profile image for the team member.
30
+ */
31
+ profileImage: {
32
+ /**
33
+ * The upload connection between the team member and the upload.
34
+ */
35
+ teamMemberUpload: ApiV2TeamMemberUploadConnectionType;
36
+ /**
37
+ * Information about the actual upload.
38
+ */
39
+ upload: ApiV2UploadType;
40
+ };
41
+ /**
42
+ * Name of the role that the team member holds.
43
+ */
44
+ roleName: string;
45
+ /**
46
+ * Numeric sorting order to determine display order.
47
+ */
48
+ sortOrder: number;
49
+ };
50
+ /**
51
+ * The API response type for team member.
52
+ */
53
+ export type ApiV2TeamMemberResponseType = ApiV2BaseResponseType<ApiV2TeamMemberType[], number>;
1
54
  /**
2
55
  * API endpoint slug.
3
56
  */
@@ -0,0 +1 @@
1
+ export { ApiV2BaseResponseType as ApiV3BaseResponseType } from '../v2/baseResponse';
@@ -0,0 +1,11 @@
1
+ import type { ApiV2DeliveryInfoType } from '../v2/deliveryInfo';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2DeliveryInfoApiEndpointSlug as apiV3DeliveryInfoApiEndpointSlug } from '../v2/deliveryInfo';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the delivery info endpoint.
6
+ */
7
+ export type ApiV3DeliveryInfoType = ApiV2DeliveryInfoType;
8
+ /**
9
+ * The API response type for delivery info items.
10
+ */
11
+ export type ApiV3DeliveryInfoResponseType = ApiV3BaseResponseType<ApiV3DeliveryInfoType[], number>;
@@ -0,0 +1,16 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ import type { ApiV2LunchFunctionalityType } from '../v2/lunchFunctionality';
3
+ import type { ApiV3OpeningHourType } from '../v3/openingHour';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the lunch functionality endpoint.
6
+ */
7
+ export type ApiV3LunchFunctionalityType = Omit<ApiV2LunchFunctionalityType, 'openingHourList'> & {
8
+ /**
9
+ * List of opening hours for the lunch.
10
+ */
11
+ openingHourList: ApiV3OpeningHourType[];
12
+ };
13
+ /**
14
+ * The API response type for lunch functionality.
15
+ */
16
+ export type ApiV3LunchFunctionalityResponseType = ApiV2BaseResponseType<ApiV3LunchFunctionalityType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2OpeningHourType } from '../v2/openingHour';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2OpeningHourApiEndpointSlug as apiV3OpeningHourApiEndpointSlug } from '../v2/openingHour';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the opening hour endpoint.
6
+ */
7
+ export type ApiV3OpeningHourType = ApiV2OpeningHourType;
8
+ /**
9
+ * The API response type for opening hour items.
10
+ */
11
+ export type ApiV3OpeningHourResponseType = ApiV3BaseResponseType<ApiV3OpeningHourType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2TableBookingType } from '../v2/tableBooking';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2TableBookingApiEndpointSlug as apiV3TableBookingApiEndpointSlug } from '../v2/tableBooking';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the table booking endpoint.
6
+ */
7
+ export type ApiV3TableBookingType = ApiV2TableBookingType;
8
+ /**
9
+ * The API response type for table booking items.
10
+ */
11
+ export type ApiV3TableBookingResponseType = ApiV3BaseResponseType<ApiV3TableBookingType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2TakeAwayType } from '../v2/takeAway';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2TakeAwayApiEndpointSlug as apiV3TakeAwayApiEndpointSlug } from '../v2/takeAway';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the take away endpoint.
6
+ */
7
+ export type ApiV3TakeAwayType = ApiV2TakeAwayType;
8
+ /**
9
+ * The API response type for take away items.
10
+ */
11
+ export type ApiV3TakeAwayResponseType = ApiV3BaseResponseType<ApiV3TakeAwayType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2TeamMemberType } from '../v2/teamMember';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2TeamMemberApiEndpointSlug as apiV3TeamMemberApiEndpointSlug } from '../v2/teamMember';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the team member endpoint.
6
+ */
7
+ export type ApiV3TeamMemberType = ApiV2TeamMemberType;
8
+ /**
9
+ * The API response type for team members items.
10
+ */
11
+ export type ApiV3TeamMemberResponseType = ApiV3BaseResponseType<ApiV3TeamMemberType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2TeamMemberUploadConnectionType } from '../v2/teamMemberUploadConnection';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2TeamMemberUploadConnectionApiEndpointSlug as apiV3TeamMemberUploadConnectionApiEndpointSlug } from '../v2/teamMemberUploadConnection';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the team member upload connection endpoint.
6
+ */
7
+ export type ApiV3TeamMemberUploadConnectionType = ApiV2TeamMemberUploadConnectionType;
8
+ /**
9
+ * The API response type for team member upload connection items.
10
+ */
11
+ export type ApiV3UTeamMemberUploadConnectionResponseType = ApiV3BaseResponseType<ApiV3TeamMemberUploadConnectionType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2UploadType } from '../v2/upload';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2UploadsApiEndpointSlug as apiV3UploadApiEndpointSlug } from '../v2/upload';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the upload endpoint.
6
+ */
7
+ export type ApiV3UploadType = ApiV2UploadType;
8
+ /**
9
+ * The API response type for upload items.
10
+ */
11
+ export type ApiV3UploadResponseType = ApiV3BaseResponseType<ApiV3UploadType[], number>;
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": "1.7.0-next.0",
4
+ "version": "1.7.0-next.10",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",