@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
@@ -1,52 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';
2
-
3
- /**
4
- * Type for the individual array items in v2 of the API for the integration v1 configuration endpoint.
5
- */
6
- export type ApiV2IntegrationV2ConfigurationType =
7
- {
8
- /**
9
- * Whether or not the integration is active.
10
- */
11
- active: boolean;
12
-
13
- /**
14
- * String representation of when the entity was created.
15
- */
16
- created: string;
17
-
18
- /**
19
- * Integration specific CSS.
20
- */
21
- css: string;
22
-
23
- /**
24
- * Unique ID for the entity.
25
- */
26
- id: number;
27
-
28
- /**
29
- * String representation of the last time the entity was updated.
30
- */
31
- lastUpdated: string;
32
-
33
- /**
34
- * JS for preparing the page before the actual rendering. This should normally be left empty and used only for special scenarios where the site you're integrating isn't built dynamically enough to support rendering the integration to look the same as the rest of the page (hardcoded things, strict post type setups, etc.). Note that as the name suggests this is JSX to be used for setting up the necessary stuff beforehand and not JSX (which you're expected to place in {@link ApiV2IntegrationV2ConfigurationType.renderJsx} instead).
35
- */
36
- preRenderJs: string;
37
-
38
- /**
39
- * JSX for rendering the actual integration. Note that as the name suggests this is JSX and not plain JS (which you're expected to place in {@link ApiV2IntegrationV2ConfigurationType.preRenderJs} instead).
40
- */
41
- renderJsx: string;
42
-
43
- /**
44
- * ID of the restaurant the configuration is relevant for.
45
- */
46
- restaurantId: number;
47
- };
48
-
49
- /**
50
- * The API response type for integration v1 configurations.
51
- */
52
- export type ApiV2IntegrationV2ConfigurationResponseType = ApiV2BaseResponseType<ApiV2IntegrationV2ConfigurationType[], number>;
@@ -1,38 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';
2
- import type { ApiV2RestaurantFunctionalityType } from '@matochmat/api-client/src/v2/restaurantFunctionalityType';
3
-
4
- /**
5
- * Type for the individual array items in v2 of the API for the lunch box functionality endpoint.
6
- */
7
- export type ApiV2LunchBoxFunctionalityType = ApiV2RestaurantFunctionalityType &
8
- {
9
- /**
10
- * Conditions for ordering lunch boxes.
11
- */
12
- conditionsText: string;
13
-
14
- /**
15
- * Latest possible time for placing orders.
16
- */
17
- latestOrderTime: string;
18
-
19
- /**
20
- * The email address to send confirmation emails to.
21
- */
22
- orderConfirmationEmail: string;
23
-
24
- /**
25
- * Earliest time for picking up orders.
26
- */
27
- pickupTimeFrom: string;
28
-
29
- /**
30
- * Latest time for picking up orders.
31
- */
32
- pickupTimeTo: string;
33
- };
34
-
35
- /**
36
- * The API response type for lunch box functionality.
37
- */
38
- export type ApiV2LunchBoxFunctionalityResponseType = ApiV2BaseResponseType<ApiV2LunchBoxFunctionalityType[], number>;
@@ -1,3 +0,0 @@
1
- import type { ApiV2FoodItemType } from '@matochmat/api-client/src/v2/foodItem';
2
-
3
- export type ApiV2LunchDishType = ApiV2FoodItemType;
@@ -1,73 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';
2
- import type { ApiV2LunchDishType } from '@matochmat/api-client/src/v2/lunchDish';
3
- import type { ApiV2OpeningHourType } from '@matochmat/api-client/src/v2/openingHour';
4
- import type { ApiV2RestaurantFunctionalityType } from '@matochmat/api-client/src/v2/restaurantFunctionalityType';
5
-
6
- /**
7
- * Type for the individual array items in v2 of the API for the lunch functionality endpoint.
8
- */
9
- export type ApiV2LunchFunctionalityType = ApiV2RestaurantFunctionalityType &
10
- {
11
- /**
12
- * Controls whether or not the restaurant has bonus stamps active.
13
- */
14
- bonusStampsActive: boolean;
15
-
16
- /**
17
- * Text entered by the restaurant concerning which-if any-special conditions apply for getting bonus stamps.
18
- */
19
- bonusStampsConditionsText: string;
20
-
21
- /**
22
- * Date when the restaurant should be displayed as the daily lunch tip.
23
- */
24
- dailyLunchTipDate: string|null;
25
-
26
- /**
27
- * Date when the restaurant would've been displayed as the daily lunch tip but was intentionally skipped.
28
- */
29
- dailyLunchTipSkippedDate: string|null;
30
-
31
- /**
32
- * Default lunch menu data.
33
- */
34
- lunchDefault: ApiV2LunchDishType[];
35
-
36
- /**
37
- * Text shown above the menu to provide generic information not directly related to the dishes themselves.
38
- */
39
- menuText: string;
40
-
41
- /**
42
- * List of opening hours for the lunch.
43
- */
44
- openingHourList:
45
- {
46
- items: ApiV2OpeningHourType[];
47
- };
48
-
49
- /**
50
- * Styling (CSS code) for the PDF menus.
51
- */
52
- pdfStyling: string;
53
-
54
- /**
55
- * Template (HTML code and custom shortcodes) for custom daily PDF menus.
56
- */
57
- pdfTemplateDaily: string;
58
-
59
- /**
60
- * Template (HTML code and custom shortcodes) for custom weekly PDF menus.
61
- */
62
- pdfTemplateWeekly: string;
63
-
64
- /**
65
- * Type of PDF menus.
66
- */
67
- pdfTypeId: number;
68
- };
69
-
70
- /**
71
- * The API response type for lunch functionality.
72
- */
73
- export type ApiV2LunchFunctionalityResponseType = ApiV2BaseResponseType<ApiV2LunchFunctionalityType[], number>;
@@ -1,42 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';
2
-
3
- /**
4
- * Type for the individual array items in v2 of the API for the non-normalized lunch menu endpoint.
5
- */
6
- export type ApiV2LunchMenuType =
7
- {
8
- /**
9
- * The actual food contents of the lunch menu as a JSON string.
10
- */
11
- content: string;
12
-
13
- /**
14
- * Keeps track of whether or not the menu is a default menu.
15
- */
16
- isDefaultMenu: boolean;
17
-
18
- /**
19
- * Timestamp of when the menu was last updated.
20
- */
21
- lastUpdated: string;
22
-
23
- /**
24
- * ID of the restaurant that the menu belongs to.
25
- */
26
- restaurantId: number;
27
-
28
- /**
29
- * Week the lunch menu is relevant for.
30
- */
31
- week: number;
32
-
33
- /**
34
- * Year the lunch menu is relevant for.
35
- */
36
- year: number;
37
- };
38
-
39
- /**
40
- * The API response type for the non-normalized lunch menus.
41
- */
42
- export type ApiV2LunchMenuResponseType = ApiV2BaseResponseType<ApiV2LunchMenuType[], number>;
package/src/v2/month.ts DELETED
@@ -1,27 +0,0 @@
1
- export type ApiV2MonthType =
2
- {
3
- /**
4
- * Index of the year.
5
- */
6
- index: 0|1|2|3|4|5|6|7|8|9|10|11;
7
-
8
- /**
9
- * Name of the month.
10
- */
11
- name: 'Januari'|'Februari'|'Mars'|'April'|'Maj'|'Juni'|'Juli'|'Augusti'|'September'|'Oktober'|'November'|'December';
12
-
13
- /**
14
- * Number of the year.
15
- */
16
- number: 1|2|3|4|5|6|7|8|9|10|11|12;
17
-
18
- /**
19
- * Short name.
20
- */
21
- shortName: 'Jan'|'Feb'|'Mar'|'Apr'|'Maj'|'Jun'|'Jul'|'Aug'|'Sep'|'Okt'|'Nov'|'Dec';
22
-
23
- /**
24
- * Machine readable name.
25
- */
26
- slug: 'januari'|'februari'|'mars'|'april'|'maj'|'juni'|'juli'|'augusti'|'september'|'oktober'|'november'|'december';
27
- };
@@ -1,14 +0,0 @@
1
- import type { ApiV2MonthType } from '@matochmat/api-client/src/v2/month';
2
-
3
- export type ApiV2MonthSetType =
4
- {
5
- /**
6
- * Actual month.
7
- */
8
- actualMonth: ApiV2MonthType;
9
-
10
- /**
11
- * Month for the week. May differ from actual month.
12
- */
13
- weekMonth: ApiV2MonthType;
14
- };
@@ -1,62 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';
2
-
3
- /**
4
- * Type for the individual array items in v2 of the API for the opening hour endpoint.
5
- */
6
- export type ApiV2OpeningHourType =
7
- {
8
- /**
9
- * Time of day when the restaurant closes.
10
- */
11
- closingTime: string;
12
-
13
- /**
14
- * String representation of when the entity was created.
15
- */
16
- created: string;
17
-
18
- /**
19
- * ID of the dinner functionality object the opening hour is relevant for, or null if this specific opening hour os connected to a different object type.
20
- */
21
- dinnerFunctionalityId: number|null;
22
-
23
- /**
24
- * Unique ID for the entity.
25
- */
26
- id: number;
27
-
28
- /**
29
- * Day of the week the opening hours are relevant for. This is ISO (not american) weekday number (not index).
30
- */
31
- isoWeekdayNumber: number;
32
-
33
- /**
34
- * String representation of the last time the entity was updated.
35
- */
36
- lastUpdated: string;
37
-
38
- /**
39
- * ID of the lunch box functionality object the opening hour is relevant for, or null if this specific opening hour os connected to a different object type.
40
- */
41
- lunchBoxFunctionalityId: number|null;
42
-
43
- /**
44
- * ID of the lunch functionality object the opening hour is relevant for, or null if this specific opening hour os connected to a different object type.
45
- */
46
- lunchFunctionalityId: number|null;
47
-
48
- /**
49
- * Whether or not the restaurant is open on this day.
50
- */
51
- open: boolean;
52
-
53
- /**
54
- * Time of day when the restaurant opens.
55
- */
56
- openingTime: string;
57
- };
58
-
59
- /**
60
- * The API response type for opening hour items.
61
- */
62
- export type ApiV2OpeningHourResponseType = ApiV2BaseResponseType<ApiV2OpeningHourType[], number>;
@@ -1,199 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';
2
- import type { ApiV2CateringFunctionalityType } from '@matochmat/api-client/src/v2/cateringFunctionality';
3
- import type { ApiV2CrawlingConfigurationType } from '@matochmat/api-client/src/v2/crawlingConfiguration';
4
- import type { ApiV2DeliveryInfoType } from '@matochmat/api-client/src/v2/deliveryInfo';
5
- import type { ApiV2DinnerFunctionalityType } from '@matochmat/api-client/src/v2/dinnerFunctionality';
6
- import type { ApiV2GeodataType } from '@matochmat/api-client/src/v2/geodata';
7
- import type { ApiV2LunchBoxFunctionalityType } from '@matochmat/api-client/src/v2/lunchBoxFunctionality';
8
- import type { ApiV2LunchFunctionalityType } from '@matochmat/api-client/src/v2/lunchFunctionality';
9
- import type { ApiV2RestaurantUploadGroupingType } from '@matochmat/api-client/src/v2/restaurantUploadGrouping';
10
- import type { ApiV2TableBookingType } from '@matochmat/api-client/src/v2/tableBooking';
11
- import type { ApiV2TakeAwayType } from '@matochmat/api-client/src/v2/takeAway';
12
-
13
- /**
14
- * Type for the individual array items in v2 of the API for the restaurant endpoint.
15
- */
16
- export type ApiV2RestaurantType =
17
- {
18
- /**
19
- * Text that describes the restaurant. Displays on the page to give lunch guests a bit of info and is commonly also used for page metadata.
20
- */
21
- about: string;
22
-
23
- /**
24
- * String representation of the street address for the restaurant.
25
- */
26
- address: string;
27
-
28
- /**
29
- *
30
- */
31
- cateringFunctionality: ApiV2CateringFunctionalityType;
32
-
33
- /**
34
- * City ID determining which city the restaurant belongs to.
35
- */
36
- cityId: number;
37
-
38
- /**
39
- * A compounded rating collected from different rating sites around the web.
40
- */
41
- compoundRating: number|null;
42
-
43
- /**
44
- *
45
- */
46
- crawlingConfiguration: ApiV2CrawlingConfigurationType;
47
-
48
- /**
49
- * String representation of when the restaurant was created.
50
- */
51
- created: null|string;
52
-
53
- /**
54
- * Customer ID determining which customer the restaurant belongs to.
55
- */
56
- customerId: number;
57
-
58
- /**
59
- * Delivery information.
60
- */
61
- deliveryInfo: ApiV2DeliveryInfoType;
62
-
63
- /**
64
- * Background for the restaurant details page header.
65
- */
66
- detailsPageHeaderBackground: ApiV2RestaurantUploadGroupingType;
67
-
68
- /**
69
- *
70
- */
71
- dinnerFunctionality: ApiV2DinnerFunctionalityType;
72
-
73
- /**
74
- * Restaurant email. Used only for displaying to lunch guests and not for sending emails from the system.
75
- */
76
- email: string;
77
-
78
- /**
79
- * URL to the restaurant's Facebook page.
80
- */
81
- facebook: string;
82
-
83
- /**
84
- * Geodata information to place the restaurant on the map.
85
- */
86
- geodata: ApiV2GeodataType;
87
-
88
- /**
89
- * Unique entity ID.
90
- */
91
- id: number;
92
-
93
- /**
94
- * URL to the restaurant's Instagram page.
95
- */
96
- instagram: string;
97
-
98
- /**
99
- * Keywords to match against when searching. Not actually displayed on the page.
100
- */
101
- keywords: string;
102
-
103
- /**
104
- * String representation of when the restaurant was last updated.
105
- */
106
- lastUpdated: string;
107
-
108
- /**
109
- * Background for the restaurant logotype.
110
- */
111
- logotypeBackground: ApiV2RestaurantUploadGroupingType;
112
-
113
- /**
114
- * Restaurant logotype info for the logotype to display on image backgrounds.
115
- */
116
- logotypeForImageBackground: ApiV2RestaurantUploadGroupingType;
117
-
118
- /**
119
- * Restaurant logotype info for the logotype to display on white backgrounds.
120
- */
121
- logotypeForWhiteBackground: ApiV2RestaurantUploadGroupingType;
122
-
123
- /**
124
- *
125
- */
126
- lunchBoxFunctionality: ApiV2LunchBoxFunctionalityType;
127
-
128
- /**
129
- *
130
- */
131
- lunchFunctionality: ApiV2LunchFunctionalityType;
132
-
133
- /**
134
- * Name of the restaurant.
135
- */
136
- name: string;
137
-
138
- /**
139
- * Text shown below or in conjunction with name to convey further information. Useful when two restaurants have the same title but are located in different places or when a restaurant has changed name (for instance "Loremrestaurangen (f.d. Ipsumrestaurangen)").
140
- */
141
- nameSubtext: string;
142
-
143
- /**
144
- * Obfuscated unique ID. Used for legacy purposes only.
145
- * @deprecated Only used for legacy support for apps and third parties. In the long run we may consider removing this.
146
- * @see ID is now saved as a plain property.
147
- */
148
- obfuscatedId: string;
149
-
150
- /**
151
- * Whether or not the restaurant is pending and awaiting approval.
152
- */
153
- pending: boolean;
154
-
155
- /**
156
- * Phone number to the restaurant.
157
- */
158
- phone: string;
159
-
160
- /**
161
- * Where the price range of the items the restaurant serves starts at. This is on a scale of 1 to 4.
162
- */
163
- priceRangeFrom: number|null;
164
-
165
- /**
166
- * Where the price range of the items the restaurant serves ends at. This is on a scale of 1 to 4.
167
- */
168
- priceRangeTo: number|null;
169
-
170
- /**
171
- * Tags the restaurant is connected to.
172
- */
173
- restaurantTagIds: number[];
174
-
175
- /**
176
- * Machine readable name of the restaurant.
177
- */
178
- slug: string;
179
-
180
- /**
181
- * Table booking info for the restaurant.
182
- */
183
- tableBooking: ApiV2TableBookingType;
184
-
185
- /**
186
- * Take away info for the restaurant.
187
- */
188
- takeAway: ApiV2TakeAwayType;
189
-
190
- /**
191
- * URL to the restaurant's own website.
192
- */
193
- website: string;
194
- };
195
-
196
- /**
197
- * The API response type for restaurants.
198
- */
199
- export type ApiV2RestaurantResponseType = ApiV2BaseResponseType<ApiV2RestaurantType[], number>;
@@ -1,30 +0,0 @@
1
- /**
2
- *
3
- */
4
- export type ApiV2RestaurantFunctionalityType =
5
- {
6
- /**
7
- * String representation of when the entity was created.
8
- */
9
- created: string;
10
-
11
- /**
12
- * Unique ID for the entity.
13
- */
14
- id: number;
15
-
16
- /**
17
- * String representation of the last time the entity was updated.
18
- */
19
- lastUpdated: string;
20
-
21
- /**
22
- * ID of the functionality visibility type for the functionality.
23
- */
24
- restaurantFunctionalityVisibilityTypeId: 1|2|3|4;
25
-
26
- /**
27
- * Restaurant ID the functionality relates to.
28
- */
29
- restaurantId: number;
30
- };
@@ -1,24 +0,0 @@
1
- import type { ApiV2UploadConnectionType } from '@matochmat/api-client/src/v2/uploadConnection';
2
-
3
- export type ApiV2RestaurantUploadConnectionType = ApiV2UploadConnectionType &
4
- {
5
- /**
6
- * Background color for the upload.
7
- */
8
- backgroundColor: string;
9
-
10
- /**
11
- * ID of the restaurant the entity belongs to.
12
- */
13
- restaurantId: number;
14
-
15
- /**
16
- *
17
- */
18
- restaurantUploadTypeId: number;
19
-
20
- /**
21
- * Sort order for the connection.
22
- */
23
- sortOrder: number;
24
- };
@@ -1,4 +0,0 @@
1
- import type { ApiV2RestaurantUploadConnectionType } from '@matochmat/api-client/src/v2/restaurantUploadConnection';
2
- import type { ApiV2UploadGroupingType } from '@matochmat/api-client/src/v2/uploadGrouping';
3
-
4
- export type ApiV2RestaurantUploadGroupingType = ApiV2UploadGroupingType<ApiV2RestaurantUploadConnectionType>;
@@ -1,67 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';
2
-
3
- /**
4
- * Type for the individual array items in v2 of the API for the table booking endpoint.
5
- */
6
- export type ApiV2TableBookingType =
7
- {
8
- /**
9
- * Booking link.
10
- */
11
- bookingLink: string;
12
-
13
- /**
14
- * Text about table booking conditions.
15
- */
16
- conditionsText: string;
17
-
18
- /**
19
- * Timestamp for when the entity was created.
20
- */
21
- created: string;
22
-
23
- /**
24
- * Email to use for table booking.
25
- */
26
- email: string;
27
-
28
- /**
29
- * Unique ID for the entity.
30
- */
31
- id: number;
32
-
33
- /**
34
- * Link to use for iframe embeds of external table booking systems.
35
- */
36
- iframeLink: string;
37
-
38
- /**
39
- * Timestamp for when the entity was last updated.
40
- */
41
- lastUpdated: string;
42
-
43
- /**
44
- * Phone number for booking tables.
45
- */
46
- phone: string;
47
-
48
- /**
49
- * ID of the restaurant that the table booking info is relevant for.
50
- */
51
- restaurantId: number;
52
-
53
- /**
54
- * ID of the specific type of table booking that's selected.
55
- */
56
- tableBookingTypeId: number;
57
-
58
- /**
59
- * Informational text about table booking conditions.
60
- */
61
- text: string;
62
- };
63
-
64
- /**
65
- * The API response type for table booking info.
66
- */
67
- export type ApiV2TableBookingResponseType = ApiV2BaseResponseType<ApiV2TableBookingType[], number>;
@@ -1,57 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';
2
-
3
- /**
4
- * Type for the individual array items in v2 of the API for the take away endpoint.
5
- */
6
- export type ApiV2TakeAwayType =
7
- {
8
- /**
9
- * Timestamp for when the entity was created.
10
- */
11
- created: string;
12
-
13
- /**
14
- * Email adress to be used for ordering take away.
15
- */
16
- email: string;
17
-
18
- /**
19
- * Unique ID for the entity.
20
- */
21
- id: number;
22
-
23
- /**
24
- * Timestamp for when the entity was last updated.
25
- */
26
- lastUpdated: string;
27
-
28
- /**
29
- * Phone number used for ordering take away.
30
- */
31
- phone: string;
32
-
33
- /**
34
- * Restaurant ID the entity belongs to.
35
- */
36
- restaurantId: number;
37
-
38
- /**
39
- * Link to external take away site.
40
- */
41
- takeAwayLink: string;
42
-
43
- /**
44
- * ID of the specific type of take away that's selected.
45
- */
46
- takeAwayTypeId: number;
47
-
48
- /**
49
- * Text to display to end users when displaying take away information.
50
- */
51
- text: string;
52
- };
53
-
54
- /**
55
- * The API response type for take away info.
56
- */
57
- export type ApiV2TakeAwayResponseType = ApiV2BaseResponseType<ApiV2TakeAwayType[], number>;