@matochmat/api-client 2.0.0-next.3 → 2.0.0-next.30
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 +52 -25
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +32 -7
- package/dist/index.esm.js +26 -21
- package/dist/index.esm.js.map +1 -1
- package/dist/v1/bonusStamp.d.ts +21 -0
- package/dist/v1/favorite.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 +60 -8
- package/dist/v2/coupon.d.ts +50 -0
- package/dist/v2/customer.d.ts +66 -0
- package/dist/v2/customerContact.d.ts +38 -0
- package/dist/v2/dinnerFunctionality.d.ts +13 -3
- package/dist/v2/emailTemplate.d.ts +50 -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/restaurant.d.ts +43 -6
- package/dist/v2/subscriptionType.d.ts +13 -0
- package/dist/v2/upload.d.ts +4 -0
- package/dist/v2/userLocation.d.ts +17 -0
- package/dist/v3/blockContent.d.ts +65 -0
- package/dist/v3/blockContentUploadConnectionType.d.ts +15 -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/customerContact.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/emailTemplate.d.ts +11 -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/restaurantUploadConnection.d.ts +11 -0
- package/dist/v3/session.d.ts +1 -0
- package/dist/v3/showcaseLocation.d.ts +9 -2
- package/dist/v3/showcaseUserRoleConnection.d.ts +21 -3
- package/dist/v3/subscriptionPeriod.d.ts +11 -0
- package/dist/v3/systemSetting.d.ts +11 -0
- package/dist/v3/updatedByType.d.ts +11 -0
- package/dist/v3/user.d.ts +76 -0
- package/dist/v3/userLocation.d.ts +5 -0
- package/package.json +3 -2
- package/dist/v2/cityUploadGrouping.d.ts +0 -3
- package/dist/v2/customerQuoteUploadGrouping.d.ts +0 -3
- package/dist/v2/dynamicContent.d.ts +0 -30
- package/dist/v2/restaurantFunctionalityVisitibilityType.d.ts +0 -4
- package/dist/v2/restaurantUploadGrouping.d.ts +0 -7
- package/dist/v2/showcaseLocation.d.ts +0 -26
- package/dist/v2/showcaseUploadGrouping.d.ts +0 -3
- package/dist/v2/showcaseUserRoleConnection.d.ts +0 -30
- package/dist/v2/uploadGrouping.d.ts +0 -11
- /package/dist/v2/{restaurantFunctionalityType.d.ts → restaurantFunctionality.d.ts} +0 -0
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,69 @@
|
|
|
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
|
+
* Corporate ID number.
|
|
8
|
+
*/
|
|
9
|
+
corporateIdNumber: string;
|
|
10
|
+
/**
|
|
11
|
+
* String representation of when the restaurant was created.
|
|
12
|
+
*/
|
|
13
|
+
created: string;
|
|
14
|
+
/**
|
|
15
|
+
* On/off status for email invoicing.
|
|
16
|
+
*/
|
|
17
|
+
emailInvoicing: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Unique ID for the entity.
|
|
20
|
+
*/
|
|
21
|
+
id: number;
|
|
22
|
+
/**
|
|
23
|
+
* City used for billing invoicing.
|
|
24
|
+
*/
|
|
25
|
+
invoiceCity: string;
|
|
26
|
+
/**
|
|
27
|
+
* Email address used for billing contact purposes. Note that this is NOT the email used for sending invoices (see `invoiceEmailAddress` instead for that).
|
|
28
|
+
*/
|
|
29
|
+
invoiceContactEmailAddress: string;
|
|
30
|
+
/**
|
|
31
|
+
* First name used for billing contact purposes.
|
|
32
|
+
*/
|
|
33
|
+
invoiceContactFirstName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Last name used for billing contact purposes.
|
|
36
|
+
*/
|
|
37
|
+
invoiceContactLastName: string;
|
|
38
|
+
/**
|
|
39
|
+
* Phone number used for billing contact purposes.
|
|
40
|
+
*/
|
|
41
|
+
invoiceContactPhoneNumber: string;
|
|
42
|
+
/**
|
|
43
|
+
* Email address used for invoicing.
|
|
44
|
+
*/
|
|
45
|
+
invoiceEmailAddress: string;
|
|
46
|
+
/**
|
|
47
|
+
* Postal address used for invoicing.
|
|
48
|
+
*/
|
|
49
|
+
invoicePostalAddress: string;
|
|
50
|
+
/**
|
|
51
|
+
* Zip code used for invoicing.
|
|
52
|
+
*/
|
|
53
|
+
invoiceZipCode: string;
|
|
54
|
+
/**
|
|
55
|
+
* String representation of when entity was last updated.
|
|
56
|
+
*/
|
|
57
|
+
lastUpdated: string;
|
|
58
|
+
/**
|
|
59
|
+
* Name of the entity.
|
|
60
|
+
*/
|
|
61
|
+
name: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* The API response type for customers.
|
|
65
|
+
*/
|
|
66
|
+
export type ApiV2CustomerResponseType = ApiV2BaseResponseType<ApiV2CustomerType[], number>;
|
|
1
67
|
/**
|
|
2
68
|
* API endpoint slug for the entity.
|
|
3
69
|
*/
|
|
@@ -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 customer contact endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV2CustomerContactType = {
|
|
6
|
+
/**
|
|
7
|
+
* ID of the customer the contact belongs to.
|
|
8
|
+
*/
|
|
9
|
+
customerId: number;
|
|
10
|
+
/**
|
|
11
|
+
* Email address of the contact.
|
|
12
|
+
*/
|
|
13
|
+
emailAddress: string;
|
|
14
|
+
/**
|
|
15
|
+
* First name of the contact.
|
|
16
|
+
*/
|
|
17
|
+
firstName: string;
|
|
18
|
+
/**
|
|
19
|
+
* Unique ID for the entity.
|
|
20
|
+
*/
|
|
21
|
+
id: number;
|
|
22
|
+
/**
|
|
23
|
+
* Last name of the contact.
|
|
24
|
+
*/
|
|
25
|
+
lastName: string;
|
|
26
|
+
/**
|
|
27
|
+
* Timestamp for when the entity eas last udpated.
|
|
28
|
+
*/
|
|
29
|
+
lastUpdated: string;
|
|
30
|
+
/**
|
|
31
|
+
* Phone number of the contact.
|
|
32
|
+
*/
|
|
33
|
+
phoneNumber: string;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The API response type for customer contacts.
|
|
37
|
+
*/
|
|
38
|
+
export type ApiV2CustomerContactResponseType = ApiV2BaseResponseType<ApiV2CustomerContactType[], number>;
|
|
1
39
|
/**
|
|
2
40
|
* API endpoint slug.
|
|
3
41
|
*/
|
|
@@ -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
|
*/
|
package/dist/v2/restaurant.d.ts
CHANGED
|
@@ -6,9 +6,10 @@ import type { ApiV2DinnerFunctionalityType } from '../v2/dinnerFunctionality';
|
|
|
6
6
|
import type { ApiV2GeodataType } from '../v2/geodata';
|
|
7
7
|
import type { ApiV2LunchBoxFunctionalityType } from '../v2/lunchBoxFunctionality';
|
|
8
8
|
import type { ApiV2LunchFunctionalityType } from '../v2/lunchFunctionality';
|
|
9
|
-
import type {
|
|
9
|
+
import type { ApiV2RestaurantUploadConnectionType } from '../v2/restaurantUploadConnection';
|
|
10
10
|
import type { ApiV2TableBookingType } from '../v2/tableBooking';
|
|
11
11
|
import type { ApiV2TakeAwayType } from '../v2/takeAway';
|
|
12
|
+
import type { ApiV2UploadType } from '../v2/upload';
|
|
12
13
|
/**
|
|
13
14
|
* Type for the individual array items in v2 of the API for the restaurant endpoint.
|
|
14
15
|
*/
|
|
@@ -52,7 +53,16 @@ export type ApiV2RestaurantType = {
|
|
|
52
53
|
/**
|
|
53
54
|
* Background for the restaurant details page header.
|
|
54
55
|
*/
|
|
55
|
-
detailsPageHeaderBackground:
|
|
56
|
+
detailsPageHeaderBackground: {
|
|
57
|
+
/**
|
|
58
|
+
* The upload connection between the restaurant and the upload.
|
|
59
|
+
*/
|
|
60
|
+
restaurantUpload: ApiV2RestaurantUploadConnectionType;
|
|
61
|
+
/**
|
|
62
|
+
* Information about the actual upload.
|
|
63
|
+
*/
|
|
64
|
+
upload: ApiV2UploadType;
|
|
65
|
+
};
|
|
56
66
|
/**
|
|
57
67
|
*
|
|
58
68
|
*/
|
|
@@ -88,15 +98,42 @@ export type ApiV2RestaurantType = {
|
|
|
88
98
|
/**
|
|
89
99
|
* Background for the restaurant logotype.
|
|
90
100
|
*/
|
|
91
|
-
logotypeBackground:
|
|
101
|
+
logotypeBackground: {
|
|
102
|
+
/**
|
|
103
|
+
* The upload connection between the restaurant and the upload.
|
|
104
|
+
*/
|
|
105
|
+
restaurantUpload: ApiV2RestaurantUploadConnectionType;
|
|
106
|
+
/**
|
|
107
|
+
* Information about the actual upload.
|
|
108
|
+
*/
|
|
109
|
+
upload: ApiV2UploadType;
|
|
110
|
+
};
|
|
92
111
|
/**
|
|
93
112
|
* Restaurant logotype info for the logotype to display on image backgrounds.
|
|
94
113
|
*/
|
|
95
|
-
logotypeForImageBackground:
|
|
114
|
+
logotypeForImageBackground: {
|
|
115
|
+
/**
|
|
116
|
+
* The upload connection between the restaurant and the upload.
|
|
117
|
+
*/
|
|
118
|
+
restaurantUpload: ApiV2RestaurantUploadConnectionType;
|
|
119
|
+
/**
|
|
120
|
+
* Information about the actual upload.
|
|
121
|
+
*/
|
|
122
|
+
upload: ApiV2UploadType;
|
|
123
|
+
};
|
|
96
124
|
/**
|
|
97
125
|
* Restaurant logotype info for the logotype to display on white backgrounds.
|
|
98
126
|
*/
|
|
99
|
-
logotypeForWhiteBackground:
|
|
127
|
+
logotypeForWhiteBackground: {
|
|
128
|
+
/**
|
|
129
|
+
* The upload connection between the restaurant and the upload.
|
|
130
|
+
*/
|
|
131
|
+
restaurantUpload: ApiV2RestaurantUploadConnectionType;
|
|
132
|
+
/**
|
|
133
|
+
* Information about the actual upload.
|
|
134
|
+
*/
|
|
135
|
+
upload: ApiV2UploadType;
|
|
136
|
+
};
|
|
100
137
|
/**
|
|
101
138
|
*
|
|
102
139
|
*/
|
|
@@ -122,7 +159,7 @@ export type ApiV2RestaurantType = {
|
|
|
122
159
|
/**
|
|
123
160
|
* Determines which version of PDFs to use.
|
|
124
161
|
*/
|
|
125
|
-
pdfVersion:
|
|
162
|
+
pdfVersion: 2;
|
|
126
163
|
/**
|
|
127
164
|
* Whether or not the restaurant is pending and awaiting approval.
|
|
128
165
|
*/
|
package/dist/v2/upload.d.ts
CHANGED
|
@@ -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,65 @@
|
|
|
1
|
+
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
2
|
+
import type { ApiV3BlockContentUploadConnectionType } from '../v3/blockContentUploadConnectionType';
|
|
3
|
+
import type { ApiV3UploadType } from '../v3/upload';
|
|
4
|
+
/**
|
|
5
|
+
* Type for the individual array items in v3 of the API for the block content endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type ApiV3BlockContentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Type ID for which type of block content it is.
|
|
10
|
+
*/
|
|
11
|
+
blockContentTypeId: 1 | 2 | 3 | 4;
|
|
12
|
+
/**
|
|
13
|
+
* JSON with the block data.
|
|
14
|
+
*/
|
|
15
|
+
blocks: any;
|
|
16
|
+
/**
|
|
17
|
+
* Timestamp for when the entity was last created.
|
|
18
|
+
*/
|
|
19
|
+
created: string;
|
|
20
|
+
/**
|
|
21
|
+
* Description of the content to use for metadata.
|
|
22
|
+
*/
|
|
23
|
+
description: string;
|
|
24
|
+
/**
|
|
25
|
+
* Featured image for the content.
|
|
26
|
+
*/
|
|
27
|
+
featuredImage: {
|
|
28
|
+
/**
|
|
29
|
+
* The upload connection between the block content and the upload.
|
|
30
|
+
*/
|
|
31
|
+
blockContentUpload: ApiV3BlockContentUploadConnectionType;
|
|
32
|
+
/**
|
|
33
|
+
* Information about the actual upload.
|
|
34
|
+
*/
|
|
35
|
+
upload: ApiV3UploadType;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Unique ID for the content.
|
|
39
|
+
*/
|
|
40
|
+
id: number;
|
|
41
|
+
/**
|
|
42
|
+
* Timestamp for when the entity was last updated.
|
|
43
|
+
*/
|
|
44
|
+
lastUpdated: string;
|
|
45
|
+
/**
|
|
46
|
+
* Slug for block content that is displayed as a standalone page.
|
|
47
|
+
*/
|
|
48
|
+
slug: string;
|
|
49
|
+
/**
|
|
50
|
+
* Whether or not the slug is "locked", meaning it should be treated as non-editable due to some constraint such as being linked to from hardcoded buttons or links.
|
|
51
|
+
*/
|
|
52
|
+
slugIsLocked: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Title for block content that is displayed as a standalone page.
|
|
55
|
+
*/
|
|
56
|
+
title: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* The API response type for block content items.
|
|
60
|
+
*/
|
|
61
|
+
export type ApiV3BlockContentResponseType = ApiV3BaseResponseType<ApiV3BlockContentType[], number>;
|
|
62
|
+
/**
|
|
63
|
+
* API endpoint slug.
|
|
64
|
+
*/
|
|
65
|
+
export declare const apiV3BlockContentApiEndpointSlug = "block-content";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ApiV2UploadConnectionType } from '../v2/uploadConnection';
|
|
2
|
+
export type ApiV3BlockContentUploadConnectionType = ApiV2UploadConnectionType & {
|
|
3
|
+
/**
|
|
4
|
+
* ID of the block content the entity belongs to.
|
|
5
|
+
*/
|
|
6
|
+
blockContentId: number;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
blockContentUploadTypeId: number;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* API endpoint slug.
|
|
14
|
+
*/
|
|
15
|
+
export declare const apiV3BlockContentUploadConnectionApiEndpointSlug = "block-content-uploads";
|
|
@@ -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";
|