@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.
- package/dist/index.cjs.js +44 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +29 -4
- package/dist/index.esm.js +21 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/v2/bonusStamp.d.ts +21 -0
- package/dist/v2/bonusStampCode.d.ts +38 -0
- package/dist/v2/cateringFunctionality.d.ts +1 -1
- package/dist/v2/city.d.ts +12 -8
- package/dist/v2/coupon.d.ts +50 -0
- package/dist/v2/customer.d.ts +70 -0
- package/dist/v2/dinnerFunctionality.d.ts +13 -3
- package/dist/v2/emailTemplate.d.ts +50 -0
- package/dist/v2/favorite.d.ts +21 -0
- package/dist/v2/geodata.d.ts +0 -9
- package/dist/v2/lunchBoxFunctionality.d.ts +1 -1
- package/dist/v2/lunchFunctionality.d.ts +1 -1
- package/dist/v2/notificationPreference.d.ts +34 -0
- package/dist/v2/policy.d.ts +30 -0
- package/dist/v2/restaurantFunctionality.d.ts +25 -0
- package/dist/v2/showcaseLocation.d.ts +1 -1
- package/dist/v2/userLocation.d.ts +17 -0
- package/dist/v3/bonusStamp.d.ts +5 -0
- package/dist/v3/bonusStampCode.d.ts +11 -0
- package/dist/v3/cateringFunctionality.d.ts +11 -0
- package/dist/v3/city.d.ts +11 -0
- package/dist/v3/cityUploadConnection.d.ts +11 -0
- package/dist/v3/coupon.d.ts +17 -0
- package/dist/v3/couponLocation.d.ts +30 -0
- package/dist/v3/customer.d.ts +11 -0
- package/dist/v3/customerManagement.d.ts +34 -0
- package/dist/v3/dinnerFunctionality.d.ts +17 -0
- package/dist/v3/dinnerFunctionalityType.d.ts +11 -0
- package/dist/v3/dynamicContent.d.ts +11 -0
- package/dist/v3/emailTemplate.d.ts +11 -0
- package/dist/v3/favorite.d.ts +5 -0
- package/dist/v3/geodata.d.ts +11 -0
- package/dist/v3/lunchBoxFunctionality.d.ts +11 -0
- package/dist/v3/lunchFunctionality.d.ts +1 -0
- package/dist/v3/notificationPreference.d.ts +11 -0
- package/dist/v3/policy.d.ts +11 -0
- package/dist/v3/restaurant.d.ts +34 -0
- package/dist/v3/restaurantFunctionality.d.ts +5 -0
- package/dist/v3/session.d.ts +1 -0
- package/dist/v3/showcaseLocation.d.ts +22 -3
- package/dist/v3/showcaseUserRoleConnection.d.ts +26 -3
- package/dist/v3/systemSetting.d.ts +11 -0
- package/dist/v3/updatedByType.d.ts +11 -0
- package/dist/v3/user.d.ts +1 -0
- package/dist/v3/userLocation.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v2 of the API for the bonus stamp code endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV2BonusStampCodeType = {
|
|
6
|
+
/**
|
|
7
|
+
* The batch the code belongs to.
|
|
8
|
+
*/
|
|
9
|
+
batch: string;
|
|
10
|
+
/**
|
|
11
|
+
* The actual bonus stamp code.
|
|
12
|
+
*/
|
|
13
|
+
code: string;
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not the code has been deactivated.
|
|
16
|
+
*/
|
|
17
|
+
deactivated: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Timestamp for when the code was generated.
|
|
20
|
+
*/
|
|
21
|
+
generated: string;
|
|
22
|
+
/**
|
|
23
|
+
* Unique ID for the entity.
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
* Timestamp for when the code was last updated.
|
|
28
|
+
*/
|
|
29
|
+
lastUpdated: string;
|
|
30
|
+
/**
|
|
31
|
+
* ID of the restaurant the code is relevant for.
|
|
32
|
+
*/
|
|
33
|
+
restaurantId: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The API response type for bonus stamp codes.
|
|
37
|
+
*/
|
|
38
|
+
export type ApiV2BonusStampCodeResponseType = ApiV2BaseResponseType<ApiV2BonusStampCodeType[], number>;
|
|
1
39
|
/**
|
|
2
40
|
* API endpoint slug.
|
|
3
41
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
-
import type { ApiV2RestaurantFunctionalityType } from '../v2/
|
|
2
|
+
import type { ApiV2RestaurantFunctionalityType } from '../v2/restaurantFunctionality';
|
|
3
3
|
/**
|
|
4
4
|
* Type for the individual array items in v2 of the API for the catering functionality endpoint.
|
|
5
5
|
*/
|
package/dist/v2/city.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { ApiV2ShowcaseUploadConnectionType } from '../v2/showcaseUploadConnection';
|
|
3
|
+
import type { ApiV2UploadType } from '../v2/upload';
|
|
4
4
|
/**
|
|
5
5
|
* Type for the individual array items in v2 of the API for the city endpoint.
|
|
6
6
|
*/
|
|
@@ -50,11 +50,6 @@ export type ApiV2CityType = {
|
|
|
50
50
|
* Intro text for the dinner list.
|
|
51
51
|
*/
|
|
52
52
|
dinnerIntroText: string;
|
|
53
|
-
/**
|
|
54
|
-
* Geodata information for the city.
|
|
55
|
-
* @deprecated
|
|
56
|
-
*/
|
|
57
|
-
geodata: ApiV2GeodataType;
|
|
58
53
|
/**
|
|
59
54
|
* Unique ID for the city.
|
|
60
55
|
*/
|
|
@@ -106,7 +101,16 @@ export type ApiV2CityType = {
|
|
|
106
101
|
/**
|
|
107
102
|
* OG image for the city.
|
|
108
103
|
*/
|
|
109
|
-
sharingImage:
|
|
104
|
+
sharingImage: {
|
|
105
|
+
/**
|
|
106
|
+
* The upload connection between the city and the upload.
|
|
107
|
+
*/
|
|
108
|
+
cityUpload: ApiV2ShowcaseUploadConnectionType;
|
|
109
|
+
/**
|
|
110
|
+
* Information about the actual upload.
|
|
111
|
+
*/
|
|
112
|
+
upload: ApiV2UploadType;
|
|
113
|
+
};
|
|
110
114
|
/**
|
|
111
115
|
* Machine readable name of the city used in URLs among other places.
|
|
112
116
|
*/
|
package/dist/v2/coupon.d.ts
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v2 of the API for the coupon endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV2CouponType = {
|
|
6
|
+
/**
|
|
7
|
+
* Determines whether or not the coupon is active.
|
|
8
|
+
*/
|
|
9
|
+
active: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The actual coupon code string.
|
|
12
|
+
*/
|
|
13
|
+
code: string;
|
|
14
|
+
/**
|
|
15
|
+
* String representation of when the coupon was created.
|
|
16
|
+
*/
|
|
17
|
+
created: null | string;
|
|
18
|
+
/**
|
|
19
|
+
* Description of the coupon.
|
|
20
|
+
*/
|
|
21
|
+
description: string;
|
|
22
|
+
/**
|
|
23
|
+
* String representation of the end date of the coupon validity.
|
|
24
|
+
*/
|
|
25
|
+
endDate: string;
|
|
26
|
+
/**
|
|
27
|
+
* Unique ID for the coupon.
|
|
28
|
+
*/
|
|
29
|
+
id: number;
|
|
30
|
+
/**
|
|
31
|
+
* String representation of when the coupon was last updated.
|
|
32
|
+
*/
|
|
33
|
+
lastUpdated: string;
|
|
34
|
+
/**
|
|
35
|
+
* Name of the coupon.
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
* String representation of the start date of the coupon validity.
|
|
40
|
+
*/
|
|
41
|
+
startDate: string;
|
|
42
|
+
/**
|
|
43
|
+
* Determines whether or not the coupon is valid for all cities.
|
|
44
|
+
*/
|
|
45
|
+
validForAllCities: boolean;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The API response type for coupons.
|
|
49
|
+
*/
|
|
50
|
+
export type ApiV2CouponResponseType = ApiV2BaseResponseType<ApiV2CouponType[], number>;
|
|
1
51
|
/**
|
|
2
52
|
* API endpoint slug.
|
|
3
53
|
*/
|
package/dist/v2/customer.d.ts
CHANGED
|
@@ -1,3 +1,73 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v2 of the API for the customer endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV2CustomerType = {
|
|
6
|
+
/**
|
|
7
|
+
* Active status.
|
|
8
|
+
*/
|
|
9
|
+
active: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Corporate ID number.
|
|
12
|
+
*/
|
|
13
|
+
corporateIdNumber: string;
|
|
14
|
+
/**
|
|
15
|
+
* String representation of when the restaurant was created.
|
|
16
|
+
*/
|
|
17
|
+
created: string;
|
|
18
|
+
/**
|
|
19
|
+
* On/off status for email invoicing.
|
|
20
|
+
*/
|
|
21
|
+
emailInvoicing: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Unique ID for the entity.
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
* City used for billing invoicing.
|
|
28
|
+
*/
|
|
29
|
+
invoiceCity: string;
|
|
30
|
+
/**
|
|
31
|
+
* Email address used for billing contact purposes. Note that this is NOT the email used for sending invoices (see `invoiceEmailAddress` instead for that).
|
|
32
|
+
*/
|
|
33
|
+
invoiceContactEmailAddress: string;
|
|
34
|
+
/**
|
|
35
|
+
* First name used for billing contact purposes.
|
|
36
|
+
*/
|
|
37
|
+
invoiceContactFirstName: string;
|
|
38
|
+
/**
|
|
39
|
+
* Last name used for billing contact purposes.
|
|
40
|
+
*/
|
|
41
|
+
invoiceContactLastName: string;
|
|
42
|
+
/**
|
|
43
|
+
* Phone number used for billing contact purposes.
|
|
44
|
+
*/
|
|
45
|
+
invoiceContactPhoneNumber: string;
|
|
46
|
+
/**
|
|
47
|
+
* Email address used for invoicing.
|
|
48
|
+
*/
|
|
49
|
+
invoiceEmailAddress: string;
|
|
50
|
+
/**
|
|
51
|
+
* Postal address used for invoicing.
|
|
52
|
+
*/
|
|
53
|
+
invoicePostalAddress: string;
|
|
54
|
+
/**
|
|
55
|
+
* Zip code used for invoicing.
|
|
56
|
+
*/
|
|
57
|
+
invoiceZipCode: string;
|
|
58
|
+
/**
|
|
59
|
+
* String representation of when entity was last updated.
|
|
60
|
+
*/
|
|
61
|
+
lastUpdated: string;
|
|
62
|
+
/**
|
|
63
|
+
* Name of the entity.
|
|
64
|
+
*/
|
|
65
|
+
name: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* The API response type for customers.
|
|
69
|
+
*/
|
|
70
|
+
export type ApiV2CustomerResponseType = ApiV2BaseResponseType<ApiV2CustomerType[], number>;
|
|
1
71
|
/**
|
|
2
72
|
* API endpoint slug for the entity.
|
|
3
73
|
*/
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
2
|
import type { ApiV2OpeningHourType } from '../v2/openingHour';
|
|
3
|
-
import type { ApiV2RestaurantFunctionalityType } from '../v2/
|
|
4
|
-
import type {
|
|
3
|
+
import type { ApiV2RestaurantFunctionalityType } from '../v2/restaurantFunctionality';
|
|
4
|
+
import type { ApiV2RestaurantUploadConnectionType } from '../v2/restaurantUploadConnection';
|
|
5
|
+
import type { ApiV2UploadType } from '../v2/upload';
|
|
5
6
|
/**
|
|
6
7
|
* Type for the individual array items in v2 of the API for the dinner functionality endpoint.
|
|
7
8
|
*/
|
|
@@ -21,7 +22,16 @@ export type ApiV2DinnerFunctionalityType = ApiV2RestaurantFunctionalityType & {
|
|
|
21
22
|
/**
|
|
22
23
|
* Background for the restaurant details page header.
|
|
23
24
|
*/
|
|
24
|
-
dinnerMenuImage:
|
|
25
|
+
dinnerMenuImage: {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
restaurantUpload: ApiV2RestaurantUploadConnectionType;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
upload: ApiV2UploadType;
|
|
34
|
+
};
|
|
25
35
|
/**
|
|
26
36
|
* String representation of the last time the entity was updated.
|
|
27
37
|
*/
|
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v2 of the API for the email template endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV2EmailTemplateType = {
|
|
6
|
+
/**
|
|
7
|
+
* Determines if the template is active.
|
|
8
|
+
*/
|
|
9
|
+
active: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Main text content.
|
|
12
|
+
*/
|
|
13
|
+
content: string;
|
|
14
|
+
/**
|
|
15
|
+
* String representation of when the email template was created.
|
|
16
|
+
*/
|
|
17
|
+
created: null | string;
|
|
18
|
+
/**
|
|
19
|
+
* Determines if the template should default to sending a blind carbon copy to Hubspot.
|
|
20
|
+
*/
|
|
21
|
+
hubspotBcc: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Unique ID for the email template.
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
* String representation of when the email template was last updated.
|
|
28
|
+
*/
|
|
29
|
+
lastUpdated: string;
|
|
30
|
+
/**
|
|
31
|
+
* Name of the email template.
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Determines if the template is required by the system (which will limit what admins can do with it in regards to disabling and deleting).
|
|
36
|
+
*/
|
|
37
|
+
requiredBySystem: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Determines if the template should be shown in the GUI where admins can choose a template for their emails.
|
|
40
|
+
*/
|
|
41
|
+
showInTemplateSelection: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Title of the email.
|
|
44
|
+
*/
|
|
45
|
+
title: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The API response type for email templates.
|
|
49
|
+
*/
|
|
50
|
+
export type ApiV2EmailTemplateResponseType = ApiV2BaseResponseType<ApiV2EmailTemplateType[], number>;
|
|
1
51
|
/**
|
|
2
52
|
* API endpoint slug.
|
|
3
53
|
*/
|
package/dist/v2/geodata.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
export type ApiV2GeodataType = {
|
|
2
|
-
/**
|
|
3
|
-
* Unused.
|
|
4
|
-
* @deprecated
|
|
5
|
-
*/
|
|
6
|
-
cityId: number;
|
|
7
2
|
/**
|
|
8
3
|
* Timestamp for when the entity was created.
|
|
9
4
|
*/
|
|
@@ -32,10 +27,6 @@ export type ApiV2GeodataType = {
|
|
|
32
27
|
* The URL for the static map image.
|
|
33
28
|
*/
|
|
34
29
|
staticMapImageUrl: string;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
zoomLevel: number;
|
|
39
30
|
};
|
|
40
31
|
/**
|
|
41
32
|
* API endpoint slug.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
-
import type { ApiV2RestaurantFunctionalityType } from '../v2/
|
|
2
|
+
import type { ApiV2RestaurantFunctionalityType } from '../v2/restaurantFunctionality';
|
|
3
3
|
/**
|
|
4
4
|
* Type for the individual array items in v2 of the API for the lunch box functionality endpoint.
|
|
5
5
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
2
|
import type { ApiV2LunchDishType } from '../v2/lunchDish';
|
|
3
3
|
import type { ApiV2OpeningHourType } from '../v2/openingHour';
|
|
4
|
-
import type { ApiV2RestaurantFunctionalityType } from '../v2/
|
|
4
|
+
import type { ApiV2RestaurantFunctionalityType } from '../v2/restaurantFunctionality';
|
|
5
5
|
/**
|
|
6
6
|
* Type for the individual array items in v2 of the API for the lunch functionality endpoint.
|
|
7
7
|
*/
|
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v2 of the API for the notification preference endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV2NotificationPreferenceType = {
|
|
6
|
+
/**
|
|
7
|
+
* Whether or not the notifications are active. We keep this as a separate value to allow users to keep their preferences after toggling notifications off and then on (as deleting it and re-adding it would mean data loss for any future properties/columns we choose to save on this class).
|
|
8
|
+
*/
|
|
9
|
+
active: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* String representation of when the entity was created.
|
|
12
|
+
*/
|
|
13
|
+
created: string;
|
|
14
|
+
/**
|
|
15
|
+
* Unique ID for the entity.
|
|
16
|
+
*/
|
|
17
|
+
id: number;
|
|
18
|
+
/**
|
|
19
|
+
* Timestamp for when the user was last updated.
|
|
20
|
+
*/
|
|
21
|
+
lastUpdated: string;
|
|
22
|
+
/**
|
|
23
|
+
* ID of the restaurant that we want to send notifications for.
|
|
24
|
+
*/
|
|
25
|
+
restaurantId: number;
|
|
26
|
+
/**
|
|
27
|
+
* ID of the user to send notifications to. Note that this isn't used to send the actual notifications, that part is handled by device registration tokens that the user gets from Firebase if they do indeed opt in to push notifications. Note that those are indeed opt-in, and just because we have a notification preference here it does NOT necessarily mean we actually have any registration tokens to send the notifications to.
|
|
28
|
+
*/
|
|
29
|
+
userId: number;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* The API response type for notification preferences.
|
|
33
|
+
*/
|
|
34
|
+
export type ApiV2NotificationPreferenceResponseType = ApiV2BaseResponseType<ApiV2NotificationPreferenceType[], number>;
|
|
1
35
|
/**
|
|
2
36
|
* API endpoint slug.
|
|
3
37
|
*/
|
package/dist/v2/policy.d.ts
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v2 of the API for the policy endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV2PolicyType = {
|
|
6
|
+
/**
|
|
7
|
+
* String representation of when the policy was last created.
|
|
8
|
+
*/
|
|
9
|
+
created: string;
|
|
10
|
+
/**
|
|
11
|
+
* Unique ID for the policy.
|
|
12
|
+
*/
|
|
13
|
+
id: number;
|
|
14
|
+
/**
|
|
15
|
+
* String representation of when the policy was last updated.
|
|
16
|
+
*/
|
|
17
|
+
lastUpdated: string;
|
|
18
|
+
/**
|
|
19
|
+
* Actual policy text.
|
|
20
|
+
*/
|
|
21
|
+
policyText: string;
|
|
22
|
+
/**
|
|
23
|
+
* Date stamp for when the policy is valid from.
|
|
24
|
+
*/
|
|
25
|
+
validFrom: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The API response type for policys.
|
|
29
|
+
*/
|
|
30
|
+
export type ApiV2PolicyResponseType = ApiV2BaseResponseType<ApiV2PolicyType[], number>;
|
|
1
31
|
/**
|
|
2
32
|
* API endpoint slug.
|
|
3
33
|
*/
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*/
|
|
4
|
+
export type ApiV2RestaurantFunctionalityType = {
|
|
5
|
+
/**
|
|
6
|
+
* String representation of when the entity was created.
|
|
7
|
+
*/
|
|
8
|
+
created: string;
|
|
9
|
+
/**
|
|
10
|
+
* Unique ID for the entity.
|
|
11
|
+
*/
|
|
12
|
+
id: number;
|
|
13
|
+
/**
|
|
14
|
+
* String representation of the last time the entity was updated.
|
|
15
|
+
*/
|
|
16
|
+
lastUpdated: string;
|
|
17
|
+
/**
|
|
18
|
+
* ID of the functionality visibility type for the functionality.
|
|
19
|
+
*/
|
|
20
|
+
restaurantFunctionalityVisibilityTypeId: 1 | 2 | 3 | 4;
|
|
21
|
+
/**
|
|
22
|
+
* Restaurant ID the functionality relates to.
|
|
23
|
+
*/
|
|
24
|
+
restaurantId: number;
|
|
25
|
+
};
|
|
@@ -23,4 +23,4 @@ export type ApiV2ShowcaseLocationResponseType = ApiV2BaseResponseType<ApiV2Showc
|
|
|
23
23
|
/**
|
|
24
24
|
* API endpoint slug.
|
|
25
25
|
*/
|
|
26
|
-
export declare const apiV2ShowcaseLocationApiEndpointSlug = "showcase-
|
|
26
|
+
export declare const apiV2ShowcaseLocationApiEndpointSlug = "showcase-location-lists";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*/
|
|
4
|
+
export type ApiV2UserLocationType = {
|
|
5
|
+
/**
|
|
6
|
+
* @see {@link EntityLocation.endpoint}.
|
|
7
|
+
*/
|
|
8
|
+
cityId: number;
|
|
9
|
+
/**
|
|
10
|
+
* @see {@link EntityLocation.items}.
|
|
11
|
+
*/
|
|
12
|
+
lastUpdated: string;
|
|
13
|
+
/**
|
|
14
|
+
* @see {@link EntityLocation.endpoint}.
|
|
15
|
+
*/
|
|
16
|
+
userId: number;
|
|
17
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2BonusStampCodeType } from '../v2/bonusStampCode';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
export { apiV2BonusStampCodeApiEndpointSlug as apiV3BonusStampCodeApiEndpointSlug } from '../v2/bonusStampCode';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the bonus stamp code endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3BonusStampCodeType = ApiV2BonusStampCodeType;
|
|
8
|
+
/**
|
|
9
|
+
* The API response type for bonus stamp code items.
|
|
10
|
+
*/
|
|
11
|
+
export type ApiV3BonusStampCodeResponseType = ApiV3BaseResponseType<ApiV3BonusStampCodeType[], number>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
import type { ApiV2CateringFunctionalityType } from '../v2/cateringFunctionality';
|
|
3
|
+
export { apiV2CateringFunctionalityApiEndpointSlug as apiV3CateringFunctionalityApiEndpointSlug } from '../v2/cateringFunctionality';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the catering functionality endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3CateringFunctionalityType = ApiV2CateringFunctionalityType;
|
|
8
|
+
/**
|
|
9
|
+
* The API response type for catering functionality.
|
|
10
|
+
*/
|
|
11
|
+
export type ApiV3CateringFunctionalityResponseType = ApiV2BaseResponseType<ApiV3CateringFunctionalityType[], number>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2CityType } from '../v2/city';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
export { apiV2CityApiEndpointSlug as apiV3CityApiEndpointSlug } from '../v2/city';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the city endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3CityType = ApiV2CityType;
|
|
8
|
+
/**
|
|
9
|
+
* The API response type for city items.
|
|
10
|
+
*/
|
|
11
|
+
export type ApiV3CityResponseType = ApiV3BaseResponseType<ApiV3CityType[], number>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2CityUploadConnectionType } from '../v2/cityUploadConnection';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
export { apiV2CityUploadConnectionApiEndpointSlug as apiV3CityUploadConnectionApiEndpointSlug } from '../v2/cityUploadConnection';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the city upload connection endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3CityUploadConnectionType = ApiV2CityUploadConnectionType;
|
|
8
|
+
/**
|
|
9
|
+
* The API response type for city upload connection items.
|
|
10
|
+
*/
|
|
11
|
+
export type ApiV3UCityUploadConnectionResponseType = ApiV3BaseResponseType<ApiV3CityUploadConnectionType[], number>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ApiV2CouponType } from '../v2/coupon';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
import type { ApiV3CouponLocationType } from '../v3/couponLocation';
|
|
4
|
+
export { apiV2CouponApiEndpointSlug as apiV3CouponApiEndpointSlug } from '../v2/coupon';
|
|
5
|
+
/**
|
|
6
|
+
* Type for the individual array items in v3 of the API for the coupon endpoint.
|
|
7
|
+
*/
|
|
8
|
+
export type ApiV3CouponType = ApiV2CouponType & {
|
|
9
|
+
/**
|
|
10
|
+
* List of locations where the coupon should be displayed.
|
|
11
|
+
*/
|
|
12
|
+
couponLocationList: ApiV3CouponLocationType[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The API response type for coupon items.
|
|
16
|
+
*/
|
|
17
|
+
export type ApiV3CouponResponseType = ApiV3BaseResponseType<ApiV3CouponType[], number>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v3 of the API for the coupon location endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV3CouponLocationType = {
|
|
6
|
+
/**
|
|
7
|
+
* City ID for the location.
|
|
8
|
+
*/
|
|
9
|
+
cityId: number;
|
|
10
|
+
/**
|
|
11
|
+
* ID of the coupon the location represents.
|
|
12
|
+
*/
|
|
13
|
+
couponId: number;
|
|
14
|
+
/**
|
|
15
|
+
* Unique ID for the coupon location.
|
|
16
|
+
*/
|
|
17
|
+
id: number;
|
|
18
|
+
/**
|
|
19
|
+
* Timestamp for when the entity was last updated.
|
|
20
|
+
*/
|
|
21
|
+
lastUpdated: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The API response type for coupon location items.
|
|
25
|
+
*/
|
|
26
|
+
export type ApiV3CouponLocationResponseType = ApiV3BaseResponseType<ApiV3CouponLocationType[], number>;
|
|
27
|
+
/**
|
|
28
|
+
* API endpoint slug.
|
|
29
|
+
*/
|
|
30
|
+
export declare const apiV3CouponLocationApiEndpointSlug = "coupon-locations";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2CustomerType } from '../v2/customer';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
export { apiV2CustomerApiEndpointSlug as apiV3CustomerApiEndpointSlug } from '../v2/customer';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the customer endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3CustomerType = ApiV2CustomerType;
|
|
8
|
+
/**
|
|
9
|
+
* The API response type for customer items.
|
|
10
|
+
*/
|
|
11
|
+
export type ApiV3CustomerResponseType = ApiV3BaseResponseType<ApiV3CustomerType[], number>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v3 of the API for the customer management endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV3CustomerManagementType = {
|
|
6
|
+
/**
|
|
7
|
+
* String representation of when the entity relation was created.
|
|
8
|
+
*/
|
|
9
|
+
created: string;
|
|
10
|
+
/**
|
|
11
|
+
* Customer ID.
|
|
12
|
+
*/
|
|
13
|
+
customerId: number;
|
|
14
|
+
/**
|
|
15
|
+
* Unique ID for the customer management.
|
|
16
|
+
*/
|
|
17
|
+
id: number;
|
|
18
|
+
/**
|
|
19
|
+
* String representation of when the entity relation was last updated.
|
|
20
|
+
*/
|
|
21
|
+
lastUpdated: string;
|
|
22
|
+
/**
|
|
23
|
+
* User ID.
|
|
24
|
+
*/
|
|
25
|
+
userId: number;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The API response type for customer management items.
|
|
29
|
+
*/
|
|
30
|
+
export type ApiV3CustomerManagementResponseType = ApiV3BaseResponseType<ApiV3CustomerManagementType[], number>;
|
|
31
|
+
/**
|
|
32
|
+
* API endpoint slug.
|
|
33
|
+
*/
|
|
34
|
+
export declare const apiV3CustomerManagementApiEndpointSlug = "customer-management";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
import type { ApiV2DinnerFunctionalityType } from '../v2/dinnerFunctionality';
|
|
3
|
+
import type { ApiV3OpeningHourType } from '../v3/openingHour';
|
|
4
|
+
export { apiV2DinnerFunctionalityApiEndpointSlug as apiV3DinnerFunctionalityApiEndpointSlug } from '../v2/dinnerFunctionality';
|
|
5
|
+
/**
|
|
6
|
+
* Type for the individual array items in v3 of the API for the dinner functionality endpoint.
|
|
7
|
+
*/
|
|
8
|
+
export type ApiV3DinnerFunctionalityType = Omit<ApiV2DinnerFunctionalityType, 'openingHourList'> & {
|
|
9
|
+
/**
|
|
10
|
+
* List of opening hours for the dinner.
|
|
11
|
+
*/
|
|
12
|
+
openingHourList: ApiV3OpeningHourType[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The API response type for dinner functionality.
|
|
16
|
+
*/
|
|
17
|
+
export type ApiV3DinnerFunctionalityResponseType = ApiV2BaseResponseType<ApiV3DinnerFunctionalityType[], number>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2DinnerFunctionalityTypeType } from '../v2/dinnerFunctionalityType';
|
|
2
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
+
export { apiV2DinnerFunctionalityTypeApiEndpointSlug as apiV3DinnerFunctionalityTypeApiEndpointSlug } from '../v2/dinnerFunctionalityType';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the dinner functionality type endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3DinnerFunctionalityTypeType = ApiV2DinnerFunctionalityTypeType;
|
|
8
|
+
/**
|
|
9
|
+
* The API response type for dinner functionality type items.
|
|
10
|
+
*/
|
|
11
|
+
export type ApiV3DinnerFunctionalityTypeResponseType = ApiV3BaseResponseType<ApiV3DinnerFunctionalityTypeType[], number>;
|