@matochmat/api-client 1.3.3 → 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.
- package/dist/index.cjs.js.map +1 -0
- package/{src/index.ts → dist/index.d.ts} +0 -2
- package/dist/index.esm.js +7 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/v2/baseResponse.d.ts +21 -0
- package/dist/v2/cateringFunctionality.d.ts +39 -0
- package/dist/v2/city.d.ts +102 -0
- package/dist/v2/cityUploadConnection.d.ts +11 -0
- package/dist/v2/cityUploadGrouping.d.ts +3 -0
- package/dist/v2/crawlingConfiguration.d.ts +55 -0
- package/dist/v2/crawlingConfigurationTextContentStrategyType.d.ts +30 -0
- package/dist/v2/date.d.ts +29 -0
- package/dist/v2/day.d.ts +47 -0
- package/dist/v2/deliveryInfo.d.ts +46 -0
- package/dist/v2/dinnerFunctionality.d.ts +47 -0
- package/dist/v2/foodItem.d.ts +22 -0
- package/dist/v2/geodata.d.ts +39 -0
- package/dist/v2/integrationV1Configuration.d.ts +38 -0
- package/dist/v2/integrationV2Configuration.d.ts +42 -0
- package/dist/v2/lunchBoxFunctionality.d.ts +31 -0
- package/dist/v2/lunchDish.d.ts +2 -0
- package/dist/v2/lunchFunctionality.d.ts +59 -0
- package/dist/v2/lunchMenu.d.ts +34 -0
- package/dist/v2/month.d.ts +22 -0
- package/dist/v2/monthSet.d.ts +11 -0
- package/dist/v2/openingHour.d.ts +50 -0
- package/dist/v2/restaurant.d.ts +162 -0
- package/dist/v2/restaurantFunctionalityType.d.ts +25 -0
- package/dist/v2/restaurantUploadConnection.d.ts +19 -0
- package/dist/v2/restaurantUploadGrouping.d.ts +3 -0
- package/dist/v2/tableBooking.d.ts +54 -0
- package/dist/v2/takeAway.d.ts +46 -0
- package/dist/v2/upload.d.ts +34 -0
- package/dist/v2/uploadConnection.d.ts +18 -0
- package/dist/v2/uploadGrouping.d.ts +11 -0
- package/dist/v2/version.d.ts +31 -0
- package/dist/v2/week.d.ts +34 -0
- package/dist/v2/year.d.ts +22 -0
- package/dist/v2/yearSet.d.ts +11 -0
- package/package.json +2 -2
- package/src/v2/baseResponse.ts +0 -25
- package/src/v2/cateringFunctionality.ts +0 -48
- package/src/v2/city.ts +0 -126
- package/src/v2/cityUploadConnection.ts +0 -14
- package/src/v2/cityUploadGrouping.ts +0 -4
- package/src/v2/crawlingConfiguration.ts +0 -68
- package/src/v2/crawlingConfigurationTextContentStrategyType.ts +0 -37
- package/src/v2/date.ts +0 -36
- package/src/v2/day.ts +0 -58
- package/src/v2/deliveryInfo.ts +0 -57
- package/src/v2/dinnerFunctionality.ts +0 -58
- package/src/v2/foodItem.ts +0 -27
- package/src/v2/geodata.ts +0 -48
- package/src/v2/integrationV1Configuration.ts +0 -47
- package/src/v2/integrationV2Configuration.ts +0 -52
- package/src/v2/lunchBoxFunctionality.ts +0 -38
- package/src/v2/lunchDish.ts +0 -3
- package/src/v2/lunchFunctionality.ts +0 -73
- package/src/v2/lunchMenu.ts +0 -42
- package/src/v2/month.ts +0 -27
- package/src/v2/monthSet.ts +0 -14
- package/src/v2/openingHour.ts +0 -62
- package/src/v2/restaurant.ts +0 -199
- package/src/v2/restaurantFunctionalityType.ts +0 -30
- package/src/v2/restaurantUploadConnection.ts +0 -24
- package/src/v2/restaurantUploadGrouping.ts +0 -4
- package/src/v2/tableBooking.ts +0 -67
- package/src/v2/takeAway.ts +0 -57
- package/src/v2/upload.ts +0 -42
- package/src/v2/uploadConnection.ts +0 -22
- package/src/v2/uploadGrouping.ts +0 -14
- package/src/v2/version.ts +0 -41
- package/src/v2/week.ts +0 -44
- package/src/v2/year.ts +0 -27
- package/src/v2/yearSet.ts +0 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/v2/crawlingConfigurationTextContentStrategyType.ts"],"sourcesContent":["import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = 'crawling-configuration-text-content-strategy-types';\n\n/**\n * Type for the individual array items in v2 of the API for the crawling configuration text content strategy type endpoint.\n */\nexport type ApiV2CrawlingConfigurationTextContentStrategyTypeType =\n{\n\t/**\n\t * Timestamp for when the entity was created.\n\t */\n\tcreated: string;\n\n\t/**\n\t * Unique ID for the entity.\n\t */\n\tid: 1|2;\n\n\t/**\n\t * Timestamp for when the entity was last updated.\n\t */\n\tlastUpdated: string;\n\n\t/**\n\t * Human readable name.\n\t */\n\tname: string;\n};\n\n/**\n * The API response type for crawling configurations.\n */\nexport type ApiV2CrawlingConfigurationTextContentStrategyTypeResponseType = ApiV2BaseResponseType<ApiV2CrawlingConfigurationTextContentStrategyTypeType[], number>;\n"],"names":[],"mappings":";;AAEA;;AAEG;AACI,MAAM,gEAAgE,GAAG;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API endpoint slug.
|
|
3
|
+
*/
|
|
4
|
+
const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = 'crawling-configuration-text-content-strategy-types';
|
|
5
|
+
|
|
6
|
+
export { apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug };
|
|
7
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/v2/crawlingConfigurationTextContentStrategyType.ts"],"sourcesContent":["import type { ApiV2BaseResponseType } from '@matochmat/api-client/src/v2/baseResponse';\n\n/**\n * API endpoint slug.\n */\nexport const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = 'crawling-configuration-text-content-strategy-types';\n\n/**\n * Type for the individual array items in v2 of the API for the crawling configuration text content strategy type endpoint.\n */\nexport type ApiV2CrawlingConfigurationTextContentStrategyTypeType =\n{\n\t/**\n\t * Timestamp for when the entity was created.\n\t */\n\tcreated: string;\n\n\t/**\n\t * Unique ID for the entity.\n\t */\n\tid: 1|2;\n\n\t/**\n\t * Timestamp for when the entity was last updated.\n\t */\n\tlastUpdated: string;\n\n\t/**\n\t * Human readable name.\n\t */\n\tname: string;\n};\n\n/**\n * The API response type for crawling configurations.\n */\nexport type ApiV2CrawlingConfigurationTextContentStrategyTypeResponseType = ApiV2BaseResponseType<ApiV2CrawlingConfigurationTextContentStrategyTypeType[], number>;\n"],"names":[],"mappings":"AAEA;;AAEG;AACI,MAAM,gEAAgE,GAAG;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The base API response type for v2 of the API.
|
|
3
|
+
*/
|
|
4
|
+
export type ApiV2BaseResponseType<DataType, CountType extends null | number> = {
|
|
5
|
+
/**
|
|
6
|
+
* Only used for development and can be ignored for other purposes.
|
|
7
|
+
*/
|
|
8
|
+
buffer: string;
|
|
9
|
+
/**
|
|
10
|
+
* Number of items that matched the query where applicable, but may also be `null` for non-standard endpoints which use non-countable responses.
|
|
11
|
+
*/
|
|
12
|
+
count: CountType;
|
|
13
|
+
/**
|
|
14
|
+
* Array of items.
|
|
15
|
+
*/
|
|
16
|
+
data: DataType;
|
|
17
|
+
/**
|
|
18
|
+
* Generic status for the quickly checking the status of API request without needing to check HTTP status codes. This is true if data could be fetched, false if something prevented it from being fetched.
|
|
19
|
+
*/
|
|
20
|
+
status: boolean;
|
|
21
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
import type { ApiV2RestaurantFunctionalityType } from '../v2/restaurantFunctionalityType';
|
|
3
|
+
/**
|
|
4
|
+
* Type for the individual array items in v2 of the API for the catering functionality endpoint.
|
|
5
|
+
*/
|
|
6
|
+
export type ApiV2CateringFunctionalityType = ApiV2RestaurantFunctionalityType & {
|
|
7
|
+
/**
|
|
8
|
+
* Number of columns to display catering menu in.
|
|
9
|
+
*/
|
|
10
|
+
columns: 1 | 2 | 3;
|
|
11
|
+
/**
|
|
12
|
+
* Text about catering conditions.
|
|
13
|
+
*/
|
|
14
|
+
conditionsText: string;
|
|
15
|
+
/**
|
|
16
|
+
* Text shown above the menu to provide generic information not directly related to the dishes themselves.
|
|
17
|
+
*/
|
|
18
|
+
menuText: string;
|
|
19
|
+
/**
|
|
20
|
+
* The email address to send catering requests to.
|
|
21
|
+
*/
|
|
22
|
+
requestEmail: string;
|
|
23
|
+
/**
|
|
24
|
+
* Whether or not the restaurant has a catering venue available for hire.
|
|
25
|
+
*/
|
|
26
|
+
venueAvailable: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Text next to the venue image gallery.
|
|
29
|
+
*/
|
|
30
|
+
venueText: string;
|
|
31
|
+
/**
|
|
32
|
+
* Title shown above the venue text.
|
|
33
|
+
*/
|
|
34
|
+
venueTextTitle: string;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* The API response type for catering functionality items.
|
|
38
|
+
*/
|
|
39
|
+
export type ApiV2CateringFunctionalityResponseType = ApiV2BaseResponseType<ApiV2CateringFunctionalityType[], number>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
import type { ApiV2CityUploadGroupingType } from '../v2/cityUploadGrouping';
|
|
3
|
+
import type { ApiV2GeodataType } from '../v2/geodata';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v2 of the API for the city endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV2CityType = {
|
|
8
|
+
/**
|
|
9
|
+
* Determines whether the city is active or not.
|
|
10
|
+
* @deprecated This is no longer in use and you should instead look at the city type.
|
|
11
|
+
*/
|
|
12
|
+
active: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Determines whether the city has bonus stamp information active or not. Note that this is exactly that, a toggle for INFORMATION only. It does NOT change either visibility or functionality of bonus stamps if a restaurant in the city has them active.
|
|
15
|
+
*/
|
|
16
|
+
bonusStampsActive: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Marks bonus stamps as recently launched in this city to be able to display slightly different information.
|
|
19
|
+
*/
|
|
20
|
+
bonusStampsRecentlyLaunched: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Determines whether the city has any catering restaurants active.
|
|
23
|
+
*/
|
|
24
|
+
cateringFunctionalityActive: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Determines whether the city has any catering restaurants in sales mode.
|
|
27
|
+
*/
|
|
28
|
+
cateringFunctionalityInSalesMode: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* String representation of when the city was created.
|
|
31
|
+
*/
|
|
32
|
+
created: string;
|
|
33
|
+
/**
|
|
34
|
+
* Whether or not the city uses daily lunch tip functionality.
|
|
35
|
+
*/
|
|
36
|
+
dailyLunchTipActive: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Determines whether the city has any dinner restaurants active.
|
|
39
|
+
*/
|
|
40
|
+
dinnerFunctionalityActive: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Determines whether the city has any dinner restaurants in sales mode.
|
|
43
|
+
*/
|
|
44
|
+
dinnerFunctionalityInSalesMode: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Geodata information for the city.
|
|
47
|
+
* @deprecated
|
|
48
|
+
*/
|
|
49
|
+
geodata: ApiV2GeodataType;
|
|
50
|
+
/**
|
|
51
|
+
* Unique ID for the city.
|
|
52
|
+
*/
|
|
53
|
+
id: number;
|
|
54
|
+
/**
|
|
55
|
+
* Intro text to display on the functionality selection pages.
|
|
56
|
+
*/
|
|
57
|
+
introText: string;
|
|
58
|
+
/**
|
|
59
|
+
* String representation of the last time the city was updated.
|
|
60
|
+
*/
|
|
61
|
+
lastUpdated: string;
|
|
62
|
+
/**
|
|
63
|
+
* Determines whether the city has any lunch box restaurants active.
|
|
64
|
+
*/
|
|
65
|
+
lunchBoxFunctionalityActive: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Determines whether the city has any lunch box restaurants in sales mode.
|
|
68
|
+
*/
|
|
69
|
+
lunchBoxFunctionalityInSalesMode: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Determines whether the city has any lunch restaurants active.
|
|
72
|
+
*/
|
|
73
|
+
lunchFunctionalityActive: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Determines whether the city has any lunch restaurants in sales mode.
|
|
76
|
+
*/
|
|
77
|
+
lunchFunctionalityInSalesMode: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Readable name of the city.
|
|
80
|
+
*/
|
|
81
|
+
name: string;
|
|
82
|
+
/**
|
|
83
|
+
* Determines whether or not to send a notification to the administrative personnel when a restaurant owner with a restaurant in this city logs in.
|
|
84
|
+
*/
|
|
85
|
+
notifyWhenRestaurantLogsIn: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Marks city as recently launched to be able to display slightly different information.
|
|
88
|
+
*/
|
|
89
|
+
recentlyLaunched: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* OG image for the city.
|
|
92
|
+
*/
|
|
93
|
+
sharingImage: ApiV2CityUploadGroupingType;
|
|
94
|
+
/**
|
|
95
|
+
* Machine readable name of the city used in URLs among other places.
|
|
96
|
+
*/
|
|
97
|
+
slug: string;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* The API response type for cities.
|
|
101
|
+
*/
|
|
102
|
+
export type ApiV2CityResponseType = ApiV2BaseResponseType<ApiV2CityType[], number>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2UploadConnectionType } from '../v2/uploadConnection';
|
|
2
|
+
export type ApiV2CityUploadConnectionType = ApiV2UploadConnectionType & {
|
|
3
|
+
/**
|
|
4
|
+
* City ID upload belongs to.
|
|
5
|
+
*/
|
|
6
|
+
cityId: number;
|
|
7
|
+
/**
|
|
8
|
+
* ID of upload type.
|
|
9
|
+
*/
|
|
10
|
+
cityUploadTypeId: number;
|
|
11
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
import type { ApiV2CrawlingConfigurationTextContentStrategyTypeType } from '../v2/crawlingConfigurationTextContentStrategyType';
|
|
3
|
+
/**
|
|
4
|
+
* Type for the individual array items in v2 of the API for the crawling configuration endpoint.
|
|
5
|
+
*/
|
|
6
|
+
export type ApiV2CrawlingConfigurationType = {
|
|
7
|
+
/**
|
|
8
|
+
* Whether or not the functionality is active.
|
|
9
|
+
*/
|
|
10
|
+
active: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Additional prompt to send to the data processor.
|
|
13
|
+
*/
|
|
14
|
+
additionalPrompt: string;
|
|
15
|
+
/**
|
|
16
|
+
* Determines if the restaurant should be crawled even if a menu already exists.
|
|
17
|
+
*/
|
|
18
|
+
crawlEvenIfMenuExists: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Timestamp for when the entity was created.
|
|
21
|
+
*/
|
|
22
|
+
created: string;
|
|
23
|
+
/**
|
|
24
|
+
* Unique ID for crawling configuration functionality.
|
|
25
|
+
*/
|
|
26
|
+
id: number;
|
|
27
|
+
/**
|
|
28
|
+
* Max tokens to use for parsing data.
|
|
29
|
+
*/
|
|
30
|
+
maxTokens: number;
|
|
31
|
+
/**
|
|
32
|
+
* Model to use for parsing data.
|
|
33
|
+
*/
|
|
34
|
+
model: string;
|
|
35
|
+
/**
|
|
36
|
+
* Restaurant ID the functionality relates to.
|
|
37
|
+
*/
|
|
38
|
+
restaurantId: number;
|
|
39
|
+
/**
|
|
40
|
+
* Strategy to use for getting text content.
|
|
41
|
+
*/
|
|
42
|
+
textContentStrategyTypeId: ApiV2CrawlingConfigurationTextContentStrategyTypeType['id'];
|
|
43
|
+
/**
|
|
44
|
+
* URL to crawl.
|
|
45
|
+
*/
|
|
46
|
+
url: string;
|
|
47
|
+
/**
|
|
48
|
+
* Weekdays to crawl on.
|
|
49
|
+
*/
|
|
50
|
+
weekdays: number[];
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* The API response type for crawling configurations.
|
|
54
|
+
*/
|
|
55
|
+
export type ApiV2CrawlingConfigurationResponseType = ApiV2BaseResponseType<ApiV2CrawlingConfigurationType[], number>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* API endpoint slug.
|
|
4
|
+
*/
|
|
5
|
+
export declare const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = "crawling-configuration-text-content-strategy-types";
|
|
6
|
+
/**
|
|
7
|
+
* Type for the individual array items in v2 of the API for the crawling configuration text content strategy type endpoint.
|
|
8
|
+
*/
|
|
9
|
+
export type ApiV2CrawlingConfigurationTextContentStrategyTypeType = {
|
|
10
|
+
/**
|
|
11
|
+
* Timestamp for when the entity was created.
|
|
12
|
+
*/
|
|
13
|
+
created: string;
|
|
14
|
+
/**
|
|
15
|
+
* Unique ID for the entity.
|
|
16
|
+
*/
|
|
17
|
+
id: 1 | 2;
|
|
18
|
+
/**
|
|
19
|
+
* Timestamp for when the entity was last updated.
|
|
20
|
+
*/
|
|
21
|
+
lastUpdated: string;
|
|
22
|
+
/**
|
|
23
|
+
* Human readable name.
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The API response type for crawling configurations.
|
|
29
|
+
*/
|
|
30
|
+
export type ApiV2CrawlingConfigurationTextContentStrategyTypeResponseType = ApiV2BaseResponseType<ApiV2CrawlingConfigurationTextContentStrategyTypeType[], number>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ApiV2DayType } from '../v2/day';
|
|
2
|
+
import type { ApiV2MonthSetType } from '../v2/monthSet';
|
|
3
|
+
import type { ApiV2YearSetType } from '../v2/yearSet';
|
|
4
|
+
export type ApiV2DateType = {
|
|
5
|
+
/**
|
|
6
|
+
* Current day.
|
|
7
|
+
*/
|
|
8
|
+
day: ApiV2DayType;
|
|
9
|
+
/**
|
|
10
|
+
* Determines whether or not the date is the actual date for the current day.
|
|
11
|
+
*/
|
|
12
|
+
isActualDate: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Determines whether or not the date is the one that's currently being shown on the main site.
|
|
15
|
+
*/
|
|
16
|
+
isCurrentlyShownOnMainSite: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Set of current month and month for the week (as Jan first isn't always week one of the year, but can belong to the last week of the previous year).
|
|
19
|
+
*/
|
|
20
|
+
monthSet: ApiV2MonthSetType;
|
|
21
|
+
/**
|
|
22
|
+
* Current week number.
|
|
23
|
+
*/
|
|
24
|
+
weekNumber: number;
|
|
25
|
+
/**
|
|
26
|
+
* Set of current year and year for the week (as Jan first isn't always week one of the year, but can belong to the last week of the previous year).
|
|
27
|
+
*/
|
|
28
|
+
yearSet: ApiV2YearSetType;
|
|
29
|
+
};
|
package/dist/v2/day.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type ApiV2DayType = {
|
|
2
|
+
/**
|
|
3
|
+
* American name of the day.
|
|
4
|
+
*/
|
|
5
|
+
americanName: string;
|
|
6
|
+
/**
|
|
7
|
+
* American number of the week day. I.e. week starts with sunday.
|
|
8
|
+
*/
|
|
9
|
+
americanNumber: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
10
|
+
/**
|
|
11
|
+
* The number of day of the month. This is actually 1 through 31 specifically, but I'm not going to write out all options and AFAIK Typescript doesn't yet have built-in helpers for this...
|
|
12
|
+
*/
|
|
13
|
+
dayOfMonth: number;
|
|
14
|
+
/**
|
|
15
|
+
* Index of the day. Starting with monday.
|
|
16
|
+
*/
|
|
17
|
+
index: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
18
|
+
/**
|
|
19
|
+
* Whether or not the day is the current real life date.
|
|
20
|
+
* @deprecated As of 2022-04-05 you should use the variables on the date object instead of on this the day object.
|
|
21
|
+
*/
|
|
22
|
+
isCurrent?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether or not the day is a weekend day.
|
|
25
|
+
*/
|
|
26
|
+
isWeekend: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Localized ame of the day.
|
|
29
|
+
*/
|
|
30
|
+
name: 'Måndag' | 'Tisdag' | 'Onsdag' | 'Torsdag' | 'Fredag' | 'Lördag' | 'Söndag';
|
|
31
|
+
/**
|
|
32
|
+
* ISO 8601 day number of the week. Starting with monday at 1.
|
|
33
|
+
*/
|
|
34
|
+
number: 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
35
|
+
/**
|
|
36
|
+
* Short localized name of the day.
|
|
37
|
+
*/
|
|
38
|
+
shortName: 'Mån' | 'Tis' | 'Ons' | 'Tors' | 'Fre' | 'Lör' | 'Sön';
|
|
39
|
+
/**
|
|
40
|
+
* Day slug.
|
|
41
|
+
*/
|
|
42
|
+
slug: 'mandag' | 'tisdag' | 'onsdag' | 'torsdag' | 'fredag' | 'lordag' | 'sondag';
|
|
43
|
+
/**
|
|
44
|
+
* Shorter localized name of the day.
|
|
45
|
+
*/
|
|
46
|
+
twoLetterShortName: 'Må' | 'Ti' | 'On' | 'To' | 'Fr' | 'Lö' | 'Sö';
|
|
47
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v2 of the API for the delivery info endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV2DeliveryInfoType = {
|
|
6
|
+
/**
|
|
7
|
+
* Timestamp for when the entity was created.
|
|
8
|
+
*/
|
|
9
|
+
created: string;
|
|
10
|
+
/**
|
|
11
|
+
* ID of the specific type of delivery info that's selected.
|
|
12
|
+
*/
|
|
13
|
+
deliveryInfoTypeId: number;
|
|
14
|
+
/**
|
|
15
|
+
* Delivery link.
|
|
16
|
+
*/
|
|
17
|
+
deliveryLink: string;
|
|
18
|
+
/**
|
|
19
|
+
* Email to use for delivery info.
|
|
20
|
+
*/
|
|
21
|
+
email: string;
|
|
22
|
+
/**
|
|
23
|
+
* Unique ID for the entity.
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
* Timestamp for when the entity was last updated.
|
|
28
|
+
*/
|
|
29
|
+
lastUpdated: string;
|
|
30
|
+
/**
|
|
31
|
+
* Phone number for booking tables.
|
|
32
|
+
*/
|
|
33
|
+
phone: string;
|
|
34
|
+
/**
|
|
35
|
+
* ID of the restaurant that the delivery info info is relevant for.
|
|
36
|
+
*/
|
|
37
|
+
restaurantId: number;
|
|
38
|
+
/**
|
|
39
|
+
* Informational text about delivery info conditions.
|
|
40
|
+
*/
|
|
41
|
+
text: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The API response type for delivery info.
|
|
45
|
+
*/
|
|
46
|
+
export type ApiV2DeliveryInfoResponseType = ApiV2BaseResponseType<ApiV2DeliveryInfoType[], number>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
import type { ApiV2OpeningHourType } from '../v2/openingHour';
|
|
3
|
+
import type { ApiV2RestaurantFunctionalityType } from '../v2/restaurantFunctionalityType';
|
|
4
|
+
import type { ApiV2RestaurantUploadGroupingType } from '../v2/restaurantUploadGrouping';
|
|
5
|
+
/**
|
|
6
|
+
* Type for the individual array items in v2 of the API for the dinner functionality endpoint.
|
|
7
|
+
*/
|
|
8
|
+
export type ApiV2DinnerFunctionalityType = ApiV2RestaurantFunctionalityType & {
|
|
9
|
+
/**
|
|
10
|
+
* Number of columns to display dinner menu in.
|
|
11
|
+
*/
|
|
12
|
+
columns: 1 | 2 | 3;
|
|
13
|
+
/**
|
|
14
|
+
* String representation of when the entity was created.
|
|
15
|
+
*/
|
|
16
|
+
created: string;
|
|
17
|
+
/**
|
|
18
|
+
* Determines what type of dinner functionality to show.
|
|
19
|
+
*/
|
|
20
|
+
dinnerFunctionalityTypeId: number;
|
|
21
|
+
/**
|
|
22
|
+
* Background for the restaurant details page header.
|
|
23
|
+
*/
|
|
24
|
+
dinnerMenuImage: ApiV2RestaurantUploadGroupingType;
|
|
25
|
+
/**
|
|
26
|
+
* String representation of the last time the entity was updated.
|
|
27
|
+
*/
|
|
28
|
+
lastUpdated: string;
|
|
29
|
+
/**
|
|
30
|
+
* Link to use for external link type menus.
|
|
31
|
+
*/
|
|
32
|
+
menuLink: string;
|
|
33
|
+
/**
|
|
34
|
+
* Text shown above the menu to provide generic information not directly related to the dishes themselves.
|
|
35
|
+
*/
|
|
36
|
+
menuText: string;
|
|
37
|
+
/**
|
|
38
|
+
* List of opening hours for the dinner.
|
|
39
|
+
*/
|
|
40
|
+
openingHourList: {
|
|
41
|
+
items: ApiV2OpeningHourType[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* The API response type for dinner functionality items.
|
|
46
|
+
*/
|
|
47
|
+
export type ApiV2DinnerFunctionalityResponseType = ApiV2BaseResponseType<ApiV2DinnerFunctionalityType[], number>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type ApiV2FoodItemType = {
|
|
2
|
+
/**
|
|
3
|
+
* Description of the dish. Usually displayed below the name.
|
|
4
|
+
*/
|
|
5
|
+
description: null | string;
|
|
6
|
+
/**
|
|
7
|
+
* Name of the dish. Used as the main title.
|
|
8
|
+
*/
|
|
9
|
+
name: null | string;
|
|
10
|
+
/**
|
|
11
|
+
* Price of the dish.
|
|
12
|
+
*/
|
|
13
|
+
price: null | number | string;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
quantity: number;
|
|
18
|
+
/**
|
|
19
|
+
* List of tags for the dish.
|
|
20
|
+
*/
|
|
21
|
+
tags: string[];
|
|
22
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type ApiV2GeodataType = {
|
|
2
|
+
/**
|
|
3
|
+
* Unused.
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
cityId: number;
|
|
7
|
+
/**
|
|
8
|
+
* Timestamp for when the entity was created.
|
|
9
|
+
*/
|
|
10
|
+
created: string;
|
|
11
|
+
/**
|
|
12
|
+
* Unique ID for the entity.
|
|
13
|
+
*/
|
|
14
|
+
id: number;
|
|
15
|
+
/**
|
|
16
|
+
* Timestamp for when the entity was last updated.
|
|
17
|
+
*/
|
|
18
|
+
lastUpdated: string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
latitude: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
longitude: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
restaurantId: number;
|
|
31
|
+
/**
|
|
32
|
+
* The URL for the static map image.
|
|
33
|
+
*/
|
|
34
|
+
staticMapImageUrl: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
zoomLevel: number;
|
|
39
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v2 of the API for the integration v1 configuration endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV2IntegrationV1ConfigurationType = {
|
|
6
|
+
/**
|
|
7
|
+
* String representation of when the entity was created.
|
|
8
|
+
*/
|
|
9
|
+
created: string;
|
|
10
|
+
/**
|
|
11
|
+
* Integration specific CSS.
|
|
12
|
+
*/
|
|
13
|
+
css: string;
|
|
14
|
+
/**
|
|
15
|
+
* Unique ID for the entity.
|
|
16
|
+
*/
|
|
17
|
+
id: number;
|
|
18
|
+
/**
|
|
19
|
+
* The type of integration to display.
|
|
20
|
+
*/
|
|
21
|
+
integrationTypeId: 1 | 2 | 3;
|
|
22
|
+
/**
|
|
23
|
+
* Integration specific JS.
|
|
24
|
+
*/
|
|
25
|
+
js: string;
|
|
26
|
+
/**
|
|
27
|
+
* String representation of the last time the entity was updated.
|
|
28
|
+
*/
|
|
29
|
+
lastUpdated: string;
|
|
30
|
+
/**
|
|
31
|
+
* ID of the restaurant the configuration is relevant for.
|
|
32
|
+
*/
|
|
33
|
+
restaurantId: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The API response type for integration v1 configurations.
|
|
37
|
+
*/
|
|
38
|
+
export type ApiV2IntegrationV1ConfigurationResponseType = ApiV2BaseResponseType<ApiV2IntegrationV1ConfigurationType[], number>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v2 of the API for the integration v1 configuration endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV2IntegrationV2ConfigurationType = {
|
|
6
|
+
/**
|
|
7
|
+
* Whether or not the integration is active.
|
|
8
|
+
*/
|
|
9
|
+
active: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* String representation of when the entity was created.
|
|
12
|
+
*/
|
|
13
|
+
created: string;
|
|
14
|
+
/**
|
|
15
|
+
* Integration specific CSS.
|
|
16
|
+
*/
|
|
17
|
+
css: string;
|
|
18
|
+
/**
|
|
19
|
+
* Unique ID for the entity.
|
|
20
|
+
*/
|
|
21
|
+
id: number;
|
|
22
|
+
/**
|
|
23
|
+
* String representation of the last time the entity was updated.
|
|
24
|
+
*/
|
|
25
|
+
lastUpdated: string;
|
|
26
|
+
/**
|
|
27
|
+
* 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).
|
|
28
|
+
*/
|
|
29
|
+
preRenderJs: string;
|
|
30
|
+
/**
|
|
31
|
+
* 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).
|
|
32
|
+
*/
|
|
33
|
+
renderJsx: string;
|
|
34
|
+
/**
|
|
35
|
+
* ID of the restaurant the configuration is relevant for.
|
|
36
|
+
*/
|
|
37
|
+
restaurantId: number;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* The API response type for integration v1 configurations.
|
|
41
|
+
*/
|
|
42
|
+
export type ApiV2IntegrationV2ConfigurationResponseType = ApiV2BaseResponseType<ApiV2IntegrationV2ConfigurationType[], number>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
import type { ApiV2RestaurantFunctionalityType } from '../v2/restaurantFunctionalityType';
|
|
3
|
+
/**
|
|
4
|
+
* Type for the individual array items in v2 of the API for the lunch box functionality endpoint.
|
|
5
|
+
*/
|
|
6
|
+
export type ApiV2LunchBoxFunctionalityType = ApiV2RestaurantFunctionalityType & {
|
|
7
|
+
/**
|
|
8
|
+
* Conditions for ordering lunch boxes.
|
|
9
|
+
*/
|
|
10
|
+
conditionsText: string;
|
|
11
|
+
/**
|
|
12
|
+
* Latest possible time for placing orders.
|
|
13
|
+
*/
|
|
14
|
+
latestOrderTime: string;
|
|
15
|
+
/**
|
|
16
|
+
* The email address to send confirmation emails to.
|
|
17
|
+
*/
|
|
18
|
+
orderConfirmationEmail: string;
|
|
19
|
+
/**
|
|
20
|
+
* Earliest time for picking up orders.
|
|
21
|
+
*/
|
|
22
|
+
pickupTimeFrom: string;
|
|
23
|
+
/**
|
|
24
|
+
* Latest time for picking up orders.
|
|
25
|
+
*/
|
|
26
|
+
pickupTimeTo: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The API response type for lunch box functionality.
|
|
30
|
+
*/
|
|
31
|
+
export type ApiV2LunchBoxFunctionalityResponseType = ApiV2BaseResponseType<ApiV2LunchBoxFunctionalityType[], number>;
|