@matochmat/api-client 2.0.0-next.8 → 2.0.0

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 (62) hide show
  1. package/dist/index.cjs.js +53 -37
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +27 -9
  4. package/dist/index.esm.js +31 -31
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/v1/bonusStamp.d.ts +21 -0
  7. package/dist/v1/favorite.d.ts +21 -0
  8. package/dist/v2/bonusStampCode.d.ts +38 -0
  9. package/dist/v2/cateringFunctionality.d.ts +5 -1
  10. package/dist/v2/city.d.ts +54 -10
  11. package/dist/v2/coupon.d.ts +50 -0
  12. package/dist/v2/dinnerFunctionality.d.ts +17 -3
  13. package/dist/v2/emailTemplate.d.ts +50 -0
  14. package/dist/v2/lunchBoxFunctionality.d.ts +5 -1
  15. package/dist/v2/lunchFunctionality.d.ts +5 -1
  16. package/dist/v2/notificationPreference.d.ts +34 -0
  17. package/dist/v2/policy.d.ts +30 -0
  18. package/dist/v2/restaurant.d.ts +49 -22
  19. package/dist/v2/subscriptionType.d.ts +13 -0
  20. package/dist/v2/systemSetting.d.ts +1 -1
  21. package/dist/v2/upload.d.ts +4 -0
  22. package/dist/v3/blockContent.d.ts +65 -0
  23. package/dist/v3/blockContentUploadConnectionType.d.ts +15 -0
  24. package/dist/v3/bonusStampCode.d.ts +11 -0
  25. package/dist/v3/cateringFunctionality.d.ts +11 -0
  26. package/dist/v3/coupon.d.ts +17 -0
  27. package/dist/v3/couponLocation.d.ts +30 -0
  28. package/dist/v3/dinnerFunctionality.d.ts +17 -0
  29. package/dist/v3/dinnerFunctionalityType.d.ts +11 -0
  30. package/dist/v3/emailTemplate.d.ts +11 -0
  31. package/dist/v3/lunchBoxFunctionality.d.ts +11 -0
  32. package/dist/v3/lunchFunctionality.d.ts +1 -0
  33. package/dist/v3/notificationPreference.d.ts +11 -0
  34. package/dist/v3/policy.d.ts +11 -0
  35. package/dist/v3/restaurant.d.ts +34 -0
  36. package/dist/v3/restaurantFunctionality.d.ts +5 -0
  37. package/dist/v3/restaurantManagement.d.ts +34 -0
  38. package/dist/v3/restaurantRegistration.d.ts +62 -0
  39. package/dist/v3/restaurantRegistrationState.d.ts +30 -0
  40. package/dist/v3/restaurantUploadConnection.d.ts +11 -0
  41. package/dist/v3/session.d.ts +1 -0
  42. package/dist/v3/showcaseUserRoleConnection.d.ts +2 -2
  43. package/dist/v3/subscriptionPeriod.d.ts +11 -0
  44. package/dist/v3/systemSetting.d.ts +11 -0
  45. package/dist/v3/updatedByType.d.ts +11 -0
  46. package/dist/v3/user.d.ts +66 -0
  47. package/package.json +3 -2
  48. package/dist/v2/cityUploadGrouping.d.ts +0 -3
  49. package/dist/v2/customer.d.ts +0 -4
  50. package/dist/v2/customerContact.d.ts +0 -4
  51. package/dist/v2/customerManagemement.d.ts +0 -4
  52. package/dist/v2/customerQuoteUploadGrouping.d.ts +0 -3
  53. package/dist/v2/dynamicContent.d.ts +0 -30
  54. package/dist/v2/geodata.d.ts +0 -34
  55. package/dist/v2/restaurantFunctionalityVisitibilityType.d.ts +0 -4
  56. package/dist/v2/restaurantUploadGrouping.d.ts +0 -7
  57. package/dist/v2/showcaseLocation.d.ts +0 -26
  58. package/dist/v2/showcaseUploadGrouping.d.ts +0 -3
  59. package/dist/v2/showcaseUserRoleConnection.d.ts +0 -30
  60. package/dist/v2/uploadGrouping.d.ts +0 -11
  61. package/dist/v3/geodata.d.ts +0 -11
  62. /package/dist/v2/{restaurantFunctionalityType.d.ts → restaurantFunctionality.d.ts} +0 -0
@@ -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
  */
@@ -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/restaurantFunctionalityType';
4
- import type { ApiV2RestaurantUploadGroupingType } from '../v2/restaurantUploadGrouping';
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: ApiV2RestaurantUploadGroupingType;
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
  */
@@ -40,6 +50,10 @@ export type ApiV2DinnerFunctionalityType = ApiV2RestaurantFunctionalityType & {
40
50
  openingHourList: {
41
51
  items: ApiV2OpeningHourType[];
42
52
  };
53
+ /**
54
+ * To what date to show the restaurant's dinner participation as "new".
55
+ */
56
+ showAsNewUntil: string | null;
43
57
  };
44
58
  /**
45
59
  * The API response type for dinner functionality items.
@@ -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
  */
@@ -1,5 +1,5 @@
1
1
  import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
- import type { ApiV2RestaurantFunctionalityType } from '../v2/restaurantFunctionalityType';
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
  */
@@ -24,6 +24,10 @@ export type ApiV2LunchBoxFunctionalityType = ApiV2RestaurantFunctionalityType &
24
24
  * Latest time for picking up orders.
25
25
  */
26
26
  pickupTimeTo: string;
27
+ /**
28
+ * To what date to show the restaurant's lunch box participation as "new".
29
+ */
30
+ showAsNewUntil: string | null;
27
31
  };
28
32
  /**
29
33
  * The API response type for lunch box functionality.
@@ -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/restaurantFunctionalityType';
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
  */
@@ -48,6 +48,10 @@ export type ApiV2LunchFunctionalityType = ApiV2RestaurantFunctionalityType & {
48
48
  openingHourList: {
49
49
  items: ApiV2OpeningHourType[];
50
50
  };
51
+ /**
52
+ * To what date to show the restaurant's lunch participation as "new".
53
+ */
54
+ showAsNewUntil: string | null;
51
55
  };
52
56
  /**
53
57
  * The API response type for lunch functionality.
@@ -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
  */
@@ -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
  */
@@ -3,12 +3,12 @@ import type { ApiV2CateringFunctionalityType } from '../v2/cateringFunctionality
3
3
  import type { ApiV2CrawlingConfigurationType } from '../v2/crawlingConfiguration';
4
4
  import type { ApiV2DeliveryInfoType } from '../v2/deliveryInfo';
5
5
  import type { ApiV2DinnerFunctionalityType } from '../v2/dinnerFunctionality';
6
- import type { ApiV2GeodataType } from '../v2/geodata';
7
6
  import type { ApiV2LunchBoxFunctionalityType } from '../v2/lunchBoxFunctionality';
8
7
  import type { ApiV2LunchFunctionalityType } from '../v2/lunchFunctionality';
9
- import type { ApiV2RestaurantUploadGroupingType } from '../v2/restaurantUploadGrouping';
8
+ import type { ApiV2RestaurantUploadConnectionType } from '../v2/restaurantUploadConnection';
10
9
  import type { ApiV2TableBookingType } from '../v2/tableBooking';
11
10
  import type { ApiV2TakeAwayType } from '../v2/takeAway';
11
+ import type { ApiV2UploadType } from '../v2/upload';
12
12
  /**
13
13
  * Type for the individual array items in v2 of the API for the restaurant endpoint.
14
14
  */
@@ -21,6 +21,10 @@ export type ApiV2RestaurantType = {
21
21
  * String representation of the street address for the restaurant.
22
22
  */
23
23
  address: string;
24
+ /**
25
+ * Aliases to match against when searching. Not actually displayed on the page.
26
+ */
27
+ aliases: string[];
24
28
  /**
25
29
  *
26
30
  */
@@ -41,10 +45,6 @@ export type ApiV2RestaurantType = {
41
45
  * String representation of when the restaurant was created.
42
46
  */
43
47
  created: null | string;
44
- /**
45
- * Customer ID determining which customer the restaurant belongs to.
46
- */
47
- customerId: number;
48
48
  /**
49
49
  * Delivery information.
50
50
  */
@@ -52,7 +52,16 @@ export type ApiV2RestaurantType = {
52
52
  /**
53
53
  * Background for the restaurant details page header.
54
54
  */
55
- detailsPageHeaderBackground: ApiV2RestaurantUploadGroupingType;
55
+ detailsPageHeaderBackground: {
56
+ /**
57
+ * The upload connection between the restaurant and the upload.
58
+ */
59
+ restaurantUpload: ApiV2RestaurantUploadConnectionType;
60
+ /**
61
+ * Information about the actual upload.
62
+ */
63
+ upload: ApiV2UploadType;
64
+ };
56
65
  /**
57
66
  *
58
67
  */
@@ -65,10 +74,6 @@ export type ApiV2RestaurantType = {
65
74
  * URL to the restaurant's Facebook page.
66
75
  */
67
76
  facebook: string;
68
- /**
69
- * Geodata information to place the restaurant on the map.
70
- */
71
- geodata: ApiV2GeodataType;
72
77
  /**
73
78
  * Unique entity ID.
74
79
  */
@@ -77,26 +82,44 @@ export type ApiV2RestaurantType = {
77
82
  * URL to the restaurant's Instagram page.
78
83
  */
79
84
  instagram: string;
80
- /**
81
- * Keywords to match against when searching. Not actually displayed on the page.
82
- */
83
- keywords: string;
84
85
  /**
85
86
  * String representation of when the restaurant was last updated.
86
87
  */
87
88
  lastUpdated: string;
88
89
  /**
89
- * Background for the restaurant logotype.
90
+ * String representation of latitude.
90
91
  */
91
- logotypeBackground: ApiV2RestaurantUploadGroupingType;
92
+ latitude: string;
92
93
  /**
93
- * Restaurant logotype info for the logotype to display on image backgrounds.
94
+ * Restaurant logotype info.
94
95
  */
95
- logotypeForImageBackground: ApiV2RestaurantUploadGroupingType;
96
+ logotype: {
97
+ /**
98
+ * The upload connection between the restaurant and the upload.
99
+ */
100
+ restaurantUpload: ApiV2RestaurantUploadConnectionType;
101
+ /**
102
+ * Information about the actual upload.
103
+ */
104
+ upload: ApiV2UploadType;
105
+ };
96
106
  /**
97
- * Restaurant logotype info for the logotype to display on white backgrounds.
107
+ * Background for the restaurant logotype.
98
108
  */
99
- logotypeForWhiteBackground: ApiV2RestaurantUploadGroupingType;
109
+ logotypeBackground: {
110
+ /**
111
+ * The upload connection between the restaurant and the upload.
112
+ */
113
+ restaurantUpload: ApiV2RestaurantUploadConnectionType;
114
+ /**
115
+ * Information about the actual upload.
116
+ */
117
+ upload: ApiV2UploadType;
118
+ };
119
+ /**
120
+ * String representation of longitude.
121
+ */
122
+ longitude: string;
100
123
  /**
101
124
  *
102
125
  */
@@ -122,7 +145,7 @@ export type ApiV2RestaurantType = {
122
145
  /**
123
146
  * Determines which version of PDFs to use.
124
147
  */
125
- pdfVersion: 1 | 2;
148
+ pdfVersion: 2;
126
149
  /**
127
150
  * Whether or not the restaurant is pending and awaiting approval.
128
151
  */
@@ -147,6 +170,10 @@ export type ApiV2RestaurantType = {
147
170
  * Machine readable name of the restaurant.
148
171
  */
149
172
  slug: string;
173
+ /**
174
+ * The URL for the static map image.
175
+ */
176
+ staticMapImageUrl: string;
150
177
  /**
151
178
  * Table booking info for the restaurant.
152
179
  */
@@ -0,0 +1,13 @@
1
+ /**
2
+ *
3
+ */
4
+ export type ApiV2SubscriptionTypeType = {
5
+ /**
6
+ * Unique ID for the subscription type.
7
+ */
8
+ id: number;
9
+ /**
10
+ * Name of the subscription type.
11
+ */
12
+ name: string;
13
+ };
@@ -2,7 +2,7 @@ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
2
  /**
3
3
  * Type for available/allowed system settings.
4
4
  */
5
- export type SystemSettingKeyType = 'allowPositionFeaturesOutsideApp' | 'allowRestaurantsToUploadFiles' | 'appUpdateNoticeDismissButtonEnabled' | 'appUpdateNoticeForVersionsOlderThan' | 'appUpdateNoticeText' | 'appUpdateNoticeTitle' | 'autoCorrections' | 'cateringRequestFormEnabled' | 'cateringDefaultSortIsShuffled' | 'dinnerDefaultSortIsShuffled' | 'dinnerDishCategoryColumnSelectionEnabled' | 'dinnerFunctionalityLinksEnabled' | 'emptyMenuRemindersActive' | 'faux404CityCateringPageText' | 'faux404CityCateringPageTitle' | 'faux404CityDinnerPageText' | 'faux404CityDinnerPageTitle' | 'faux404CityLunchBoxPageText' | 'faux404CityLunchBoxPageTitle' | 'faux404CityPageText' | 'faux404CityPageTitle' | 'getTheAppBannerActive' | 'googleMapsApiKey' | 'lunchBoxesNoticeDisplayTime' | 'mapFunctionalityEnabled' | 'promptUserToShareDialogActive' | 'readShoppingCartDataFromStorage' | 'showcaseMoreInformationContent' | 'showcaseMoreInformationTitle' | 'searchTagsEnabled' | 'simulatedServerTimeShift' | 'tellRestaurantAboutUsActive' | 'tellUsAboutRestaurantActive';
5
+ export type SystemSettingKeyType = 'allowPositionFeaturesOutsideApp' | 'allowRestaurantsToUploadFiles' | 'appUpdateNoticeDismissButtonEnabled' | 'appUpdateNoticeForVersionsOlderThan' | 'appUpdateNoticeText' | 'appUpdateNoticeTitle' | 'autoCorrections' | 'cateringRequestFormEnabled' | 'cateringDefaultSortIsShuffled' | 'dinnerDefaultSortIsShuffled' | 'dinnerDishCategoryColumnSelectionEnabled' | 'dinnerFunctionalityLinksEnabled' | 'emptyMenuRemindersActive' | 'faux404CityCateringPageText' | 'faux404CityCateringPageTitle' | 'faux404CityDinnerPageText' | 'faux404CityDinnerPageTitle' | 'faux404CityLunchBoxPageText' | 'faux404CityLunchBoxPageTitle' | 'faux404CityPageText' | 'faux404CityPageTitle' | 'getTheAppBannerActive' | 'googleMapsApiKey' | 'lunchBoxesNoticeDisplayTime' | 'mapFunctionalityEnabled' | 'promptUserToShareDialogActive' | 'ptrEnabled' | 'readShoppingCartDataFromStorage' | 'showcaseMoreInformationContent' | 'showcaseMoreInformationTitle' | 'searchTagsEnabled' | 'simulatedServerTimeShift' | 'tellRestaurantAboutUsActive' | 'tellUsAboutRestaurantActive';
6
6
  /**
7
7
  * Type for the individual array items in v2 of the API for the system settings endpoint.
8
8
  */
@@ -31,6 +31,10 @@ export type ApiV2UploadType = {
31
31
  * Timestamp for when the image was first uploaded.
32
32
  */
33
33
  uploaded: string;
34
+ /**
35
+ * Who uploaded the file.
36
+ */
37
+ uploader: number;
34
38
  };
35
39
  /**
36
40
  * API endpoint slug.
@@ -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,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,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>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2EmailTemplateType } from '../v2/emailTemplate';
2
+ import type { ApiV3BaseResponseType } from '../v3/baseResponse';
3
+ export { apiV2EmailTemplateApiEndpointSlug as apiV3EmailTemplateApiEndpointSlug } from '../v2/emailTemplate';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the email template endpoint.
6
+ */
7
+ export type ApiV3EmailTemplateType = ApiV2EmailTemplateType;
8
+ /**
9
+ * The API response type for email template items.
10
+ */
11
+ export type ApiV3EmailTemplateResponseType = ApiV3BaseResponseType<ApiV3EmailTemplateType[], number>;
@@ -0,0 +1,11 @@
1
+ import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
+ import type { ApiV2LunchBoxFunctionalityType } from '../v2/lunchBoxFunctionality';
3
+ export { apiV2LunchBoxFunctionalityApiEndpointSlug as apiV3LunchBoxFunctionalityApiEndpointSlug } from '../v2/lunchBoxFunctionality';
4
+ /**
5
+ * Type for the individual array items in v3 of the API for the lunch box functionality endpoint.
6
+ */
7
+ export type ApiV3LunchBoxFunctionalityType = ApiV2LunchBoxFunctionalityType;
8
+ /**
9
+ * The API response type for lunch box functionality.
10
+ */
11
+ export type ApiV3LunchBoxFunctionalityResponseType = ApiV2BaseResponseType<ApiV3LunchBoxFunctionalityType[], number>;
@@ -1,6 +1,7 @@
1
1
  import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
2
  import type { ApiV2LunchFunctionalityType } from '../v2/lunchFunctionality';
3
3
  import type { ApiV3OpeningHourType } from '../v3/openingHour';
4
+ export { apiV2LunchFunctionalityApiEndpointSlug as apiV3LunchFunctionalityApiEndpointSlug } from '../v2/lunchFunctionality';
4
5
  /**
5
6
  * Type for the individual array items in v3 of the API for the lunch functionality endpoint.
6
7
  */