@matochmat/api-client 2.0.0-next.24 → 2.0.0-next.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 +8 -35
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -29
- package/dist/index.esm.js +7 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/v2/bonusStampCode.d.ts +0 -38
- package/dist/v2/cateringFunctionality.d.ts +1 -1
- package/dist/v2/city.d.ts +4 -6
- package/dist/v2/cityUploadGrouping.d.ts +3 -0
- package/dist/v2/coupon.d.ts +0 -50
- package/dist/v2/customer.d.ts +0 -70
- package/dist/v2/customerContact.d.ts +0 -42
- package/dist/v2/customerQuoteUploadGrouping.d.ts +3 -0
- package/dist/v2/dinnerFunctionality.d.ts +3 -13
- package/dist/v2/emailTemplate.d.ts +0 -50
- package/dist/v2/lunchBoxFunctionality.d.ts +1 -1
- package/dist/v2/lunchFunctionality.d.ts +1 -1
- package/dist/v2/notificationPreference.d.ts +0 -34
- package/dist/v2/policy.d.ts +0 -30
- package/dist/v2/restaurant.d.ts +5 -42
- package/dist/v2/restaurantFunctionalityVisitibilityType.d.ts +4 -0
- package/dist/v2/restaurantUploadGrouping.d.ts +7 -0
- package/dist/v2/showcaseLocation.d.ts +26 -0
- package/dist/v2/showcaseUploadGrouping.d.ts +3 -0
- package/dist/v2/showcaseUserRoleConnection.d.ts +30 -0
- package/dist/v2/upload.d.ts +0 -4
- package/dist/v2/uploadGrouping.d.ts +11 -0
- package/dist/v3/lunchFunctionality.d.ts +0 -1
- package/dist/v3/showcaseUserRoleConnection.d.ts +3 -7
- package/package.json +2 -3
- package/dist/v1/bonusStamp.d.ts +0 -21
- package/dist/v1/favorite.d.ts +0 -21
- package/dist/v2/subscriptionType.d.ts +0 -13
- package/dist/v2/userLocation.d.ts +0 -17
- package/dist/v3/bonusStampCode.d.ts +0 -11
- package/dist/v3/cateringFunctionality.d.ts +0 -11
- package/dist/v3/cityUploadConnection.d.ts +0 -11
- package/dist/v3/coupon.d.ts +0 -17
- package/dist/v3/couponLocation.d.ts +0 -30
- package/dist/v3/customer.d.ts +0 -11
- package/dist/v3/customerContact.d.ts +0 -11
- package/dist/v3/customerManagement.d.ts +0 -34
- package/dist/v3/dinnerFunctionality.d.ts +0 -17
- package/dist/v3/dinnerFunctionalityType.d.ts +0 -11
- package/dist/v3/dynamicContent.d.ts +0 -11
- package/dist/v3/emailTemplate.d.ts +0 -11
- package/dist/v3/lunchBoxFunctionality.d.ts +0 -11
- package/dist/v3/notificationPreference.d.ts +0 -11
- package/dist/v3/policy.d.ts +0 -11
- package/dist/v3/restaurant.d.ts +0 -34
- package/dist/v3/restaurantFunctionality.d.ts +0 -5
- package/dist/v3/restaurantUploadConnection.d.ts +0 -11
- package/dist/v3/session.d.ts +0 -1
- package/dist/v3/subscriptionPeriod.d.ts +0 -11
- package/dist/v3/systemSetting.d.ts +0 -11
- package/dist/v3/updatedByType.d.ts +0 -11
- package/dist/v3/user.d.ts +0 -1
- package/dist/v3/userLocation.d.ts +0 -5
- /package/dist/v2/{restaurantFunctionality.d.ts → restaurantFunctionalityType.d.ts} +0 -0
package/dist/v2/customer.d.ts
CHANGED
|
@@ -1,73 +1,3 @@
|
|
|
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>;
|
|
71
1
|
/**
|
|
72
2
|
* API endpoint slug for the entity.
|
|
73
3
|
*/
|
|
@@ -1,45 +1,3 @@
|
|
|
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
|
-
* Whether or not the contact is active.
|
|
8
|
-
*/
|
|
9
|
-
active: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* ID of the customer the contact belongs to.
|
|
12
|
-
*/
|
|
13
|
-
customerId: number;
|
|
14
|
-
/**
|
|
15
|
-
* Email address of the contact.
|
|
16
|
-
*/
|
|
17
|
-
emailAddress: string;
|
|
18
|
-
/**
|
|
19
|
-
* First name of the contact.
|
|
20
|
-
*/
|
|
21
|
-
firstName: string;
|
|
22
|
-
/**
|
|
23
|
-
* Unique ID for the entity.
|
|
24
|
-
*/
|
|
25
|
-
id: number;
|
|
26
|
-
/**
|
|
27
|
-
* Last name of the contact.
|
|
28
|
-
*/
|
|
29
|
-
lastName: string;
|
|
30
|
-
/**
|
|
31
|
-
* Timestamp for when the entity eas last udpated.
|
|
32
|
-
*/
|
|
33
|
-
lastUpdated: string;
|
|
34
|
-
/**
|
|
35
|
-
* Phone number of the contact.
|
|
36
|
-
*/
|
|
37
|
-
phoneNumber: string;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* The API response type for customer contacts.
|
|
41
|
-
*/
|
|
42
|
-
export type ApiV2CustomerContactResponseType = ApiV2BaseResponseType<ApiV2CustomerContactType[], number>;
|
|
43
1
|
/**
|
|
44
2
|
* API endpoint slug.
|
|
45
3
|
*/
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ApiV2CustomerQuoteUploadConnectionType } from '../v2/customerQuoteUploadConnection';
|
|
2
|
+
import type { ApiV2UploadGroupingType } from '../v2/uploadGrouping';
|
|
3
|
+
export type ApiV2CustomerQuoteUploadGroupingType = ApiV2UploadGroupingType<ApiV2CustomerQuoteUploadConnectionType>;
|
|
@@ -1,8 +1,7 @@
|
|
|
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 {
|
|
5
|
-
import type { ApiV2UploadType } from '../v2/upload';
|
|
3
|
+
import type { ApiV2RestaurantFunctionalityType } from '../v2/restaurantFunctionalityType';
|
|
4
|
+
import type { ApiV2RestaurantUploadGroupingType } from '../v2/restaurantUploadGrouping';
|
|
6
5
|
/**
|
|
7
6
|
* Type for the individual array items in v2 of the API for the dinner functionality endpoint.
|
|
8
7
|
*/
|
|
@@ -22,16 +21,7 @@ export type ApiV2DinnerFunctionalityType = ApiV2RestaurantFunctionalityType & {
|
|
|
22
21
|
/**
|
|
23
22
|
* Background for the restaurant details page header.
|
|
24
23
|
*/
|
|
25
|
-
dinnerMenuImage:
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
restaurantUpload: ApiV2RestaurantUploadConnectionType;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
upload: ApiV2UploadType;
|
|
34
|
-
};
|
|
24
|
+
dinnerMenuImage: ApiV2RestaurantUploadGroupingType;
|
|
35
25
|
/**
|
|
36
26
|
* String representation of the last time the entity was updated.
|
|
37
27
|
*/
|
|
@@ -1,53 +1,3 @@
|
|
|
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>;
|
|
51
1
|
/**
|
|
52
2
|
* API endpoint slug.
|
|
53
3
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
-
import type { ApiV2RestaurantFunctionalityType } from '../v2/
|
|
2
|
+
import type { ApiV2RestaurantFunctionalityType } from '../v2/restaurantFunctionalityType';
|
|
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/restaurantFunctionalityType';
|
|
5
5
|
/**
|
|
6
6
|
* Type for the individual array items in v2 of the API for the lunch functionality endpoint.
|
|
7
7
|
*/
|
|
@@ -1,37 +1,3 @@
|
|
|
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>;
|
|
35
1
|
/**
|
|
36
2
|
* API endpoint slug.
|
|
37
3
|
*/
|
package/dist/v2/policy.d.ts
CHANGED
|
@@ -1,33 +1,3 @@
|
|
|
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>;
|
|
31
1
|
/**
|
|
32
2
|
* API endpoint slug.
|
|
33
3
|
*/
|
package/dist/v2/restaurant.d.ts
CHANGED
|
@@ -6,10 +6,9 @@ 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 { ApiV2RestaurantUploadGroupingType } from '../v2/restaurantUploadGrouping';
|
|
10
10
|
import type { ApiV2TableBookingType } from '../v2/tableBooking';
|
|
11
11
|
import type { ApiV2TakeAwayType } from '../v2/takeAway';
|
|
12
|
-
import type { ApiV2UploadType } from '../v2/upload';
|
|
13
12
|
/**
|
|
14
13
|
* Type for the individual array items in v2 of the API for the restaurant endpoint.
|
|
15
14
|
*/
|
|
@@ -53,16 +52,7 @@ export type ApiV2RestaurantType = {
|
|
|
53
52
|
/**
|
|
54
53
|
* Background for the restaurant details page header.
|
|
55
54
|
*/
|
|
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
|
-
};
|
|
55
|
+
detailsPageHeaderBackground: ApiV2RestaurantUploadGroupingType;
|
|
66
56
|
/**
|
|
67
57
|
*
|
|
68
58
|
*/
|
|
@@ -98,42 +88,15 @@ export type ApiV2RestaurantType = {
|
|
|
98
88
|
/**
|
|
99
89
|
* Background for the restaurant logotype.
|
|
100
90
|
*/
|
|
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
|
-
};
|
|
91
|
+
logotypeBackground: ApiV2RestaurantUploadGroupingType;
|
|
111
92
|
/**
|
|
112
93
|
* Restaurant logotype info for the logotype to display on image backgrounds.
|
|
113
94
|
*/
|
|
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
|
-
};
|
|
95
|
+
logotypeForImageBackground: ApiV2RestaurantUploadGroupingType;
|
|
124
96
|
/**
|
|
125
97
|
* Restaurant logotype info for the logotype to display on white backgrounds.
|
|
126
98
|
*/
|
|
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
|
-
};
|
|
99
|
+
logotypeForWhiteBackground: ApiV2RestaurantUploadGroupingType;
|
|
137
100
|
/**
|
|
138
101
|
*
|
|
139
102
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ApiV2RestaurantUploadConnectionType } from '../v2/restaurantUploadConnection';
|
|
2
|
+
import type { ApiV2UploadGroupingType } from '../v2/uploadGrouping';
|
|
3
|
+
export type ApiV2RestaurantUploadGroupingType = ApiV2UploadGroupingType<ApiV2RestaurantUploadConnectionType>;
|
|
4
|
+
/**
|
|
5
|
+
* API endpoint slug.
|
|
6
|
+
*/
|
|
7
|
+
export declare const apiV2RestaurantUploadGroupingApiEndpointSlug = "restaurant-upload-groupings";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v2 of the API for the showcase locations endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV2ShowcaseLocationType = {
|
|
6
|
+
/**
|
|
7
|
+
* City ID for the location.
|
|
8
|
+
*/
|
|
9
|
+
cityId: number;
|
|
10
|
+
/**
|
|
11
|
+
* Entity ID for the location.
|
|
12
|
+
*/
|
|
13
|
+
entityId: number;
|
|
14
|
+
/**
|
|
15
|
+
* Timestamp for when the entity was last updated.
|
|
16
|
+
*/
|
|
17
|
+
lastUpdated: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* The API response type for showcase locations.
|
|
21
|
+
*/
|
|
22
|
+
export type ApiV2ShowcaseLocationResponseType = ApiV2BaseResponseType<ApiV2ShowcaseLocationType[], number>;
|
|
23
|
+
/**
|
|
24
|
+
* API endpoint slug.
|
|
25
|
+
*/
|
|
26
|
+
export declare const apiV2ShowcaseLocationApiEndpointSlug = "showcase-location-lists";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the individual array items in v2 of the API for the showcase user role connections endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiV2ShowcaseUserRoleConnectionType = {
|
|
6
|
+
/**
|
|
7
|
+
* String representation of when the entity relation was created.
|
|
8
|
+
*/
|
|
9
|
+
created: string;
|
|
10
|
+
/**
|
|
11
|
+
* String representation of when the entity relation was last updated.
|
|
12
|
+
*/
|
|
13
|
+
lastUpdated: string;
|
|
14
|
+
/**
|
|
15
|
+
* Showcase ID (first entity).
|
|
16
|
+
*/
|
|
17
|
+
showcaseId: number;
|
|
18
|
+
/**
|
|
19
|
+
* User role ID (second entity).
|
|
20
|
+
*/
|
|
21
|
+
userRoleId: number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The API response type for showcase user role connections.
|
|
25
|
+
*/
|
|
26
|
+
export type ApiV2ShowcaseUserRoleConnectionResponseType = ApiV2BaseResponseType<ApiV2ShowcaseUserRoleConnectionType[], number>;
|
|
27
|
+
/**
|
|
28
|
+
* API endpoint slug.
|
|
29
|
+
*/
|
|
30
|
+
export declare const apiV2ShowcaseUserRoleConnectionApiEndpointSlug = "showcase-user-role-connections";
|
package/dist/v2/upload.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiV2UploadType } from '../v2/upload';
|
|
2
|
+
export type ApiV2UploadGroupingType<T> = {
|
|
3
|
+
/**
|
|
4
|
+
* Upload instance. This represents the actual uploaded file.
|
|
5
|
+
*/
|
|
6
|
+
upload: ApiV2UploadType;
|
|
7
|
+
/**
|
|
8
|
+
* Upload connection. This is the relation entity between the uploaded file and another entity.
|
|
9
|
+
*/
|
|
10
|
+
uploadConnection: T;
|
|
11
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
/**
|
|
6
5
|
* Type for the individual array items in v3 of the API for the lunch functionality endpoint.
|
|
7
6
|
*/
|
|
@@ -7,20 +7,16 @@ export type ApiV3ShowcaseUserRoleConnectionType = {
|
|
|
7
7
|
* String representation of when the entity relation was created.
|
|
8
8
|
*/
|
|
9
9
|
created: string;
|
|
10
|
-
/**
|
|
11
|
-
* Unique ID for the showcase user role connection.
|
|
12
|
-
*/
|
|
13
|
-
id: number;
|
|
14
10
|
/**
|
|
15
11
|
* String representation of when the entity relation was last updated.
|
|
16
12
|
*/
|
|
17
13
|
lastUpdated: string;
|
|
18
14
|
/**
|
|
19
|
-
* Showcase ID.
|
|
15
|
+
* Showcase ID (first entity).
|
|
20
16
|
*/
|
|
21
17
|
showcaseId: number;
|
|
22
18
|
/**
|
|
23
|
-
* User role ID.
|
|
19
|
+
* User role ID (second entity).
|
|
24
20
|
*/
|
|
25
21
|
userRoleId: number;
|
|
26
22
|
};
|
|
@@ -31,4 +27,4 @@ export type ApiV3ShowcaseUserRoleConnectionResponseType = ApiV3BaseResponseType<
|
|
|
31
27
|
/**
|
|
32
28
|
* API endpoint slug.
|
|
33
29
|
*/
|
|
34
|
-
export declare const
|
|
30
|
+
export declare const apiV3ShowcaseUserRoleConnectionsApiEndpointSlug = "showcase-user-role-connections";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matochmat/api-client",
|
|
3
3
|
"description": "API types and helper functionality for the Mat och Mat API.",
|
|
4
|
-
"version": "2.0.0-next.
|
|
4
|
+
"version": "2.0.0-next.4",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"eslint-plugin-jsdoc": "^50.3.1",
|
|
41
41
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
42
42
|
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
|
|
43
|
-
"rimraf": "^6.0.1",
|
|
44
43
|
"rollup": "^4.24.4",
|
|
45
44
|
"standard-version": "^9.5.0",
|
|
46
45
|
"tsc-alias": "^1.8.10",
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
"typescript": "^5.6.2"
|
|
50
49
|
},
|
|
51
50
|
"scripts": {
|
|
52
|
-
"build": "
|
|
51
|
+
"build": "tsx scripts/generateMainIndexFile.ts && rollup -c && tsc-alias -p ./tsconfig.json",
|
|
53
52
|
"docs:generate": "typedoc 2> /dev/null && git add docs && git commit --no-verify -m 'docs: Autogenerated documentation'",
|
|
54
53
|
"lint": "eslint ./src --ext .ts",
|
|
55
54
|
"release": "( npm whoami || npm login ) && git checkout main && git merge develop --no-ff -m \"chore: Merge branch 'develop' into 'main'\" && npm run build && git add dist src && git commit --no-verify -m 'chore: Built dist files and types'; npm run docs:generate; standard-version --no-verify && git push origin main develop --tags && npm publish --access public && npm run update-next-tag && git checkout develop && git merge main --ff-only",
|
package/dist/v1/bonusStamp.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*/
|
|
4
|
-
export type ApiV1BonusStampType = {
|
|
5
|
-
/**
|
|
6
|
-
* When the stamp was last updated.
|
|
7
|
-
*/
|
|
8
|
-
lastUpdated: string;
|
|
9
|
-
/**
|
|
10
|
-
* Restaurant ID of the restaurant where stamps are valid.
|
|
11
|
-
*/
|
|
12
|
-
restaurantId: number;
|
|
13
|
-
/**
|
|
14
|
-
* Current number of stamps.
|
|
15
|
-
*/
|
|
16
|
-
stampCount: number;
|
|
17
|
-
/**
|
|
18
|
-
* User ID of the user the stamps belong to.
|
|
19
|
-
*/
|
|
20
|
-
userId: number;
|
|
21
|
-
};
|
package/dist/v1/favorite.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|