@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/v3/coupon.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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>;
|
|
@@ -1,30 +0,0 @@
|
|
|
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";
|
package/dist/v3/customer.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ApiV2CustomerContactType } from '../v2/customerContact';
|
|
2
|
-
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
-
export { apiV2CustomerContactApiEndpointSlug as apiV3CustomerContactApiEndpointSlug } from '../v2/customerContact';
|
|
4
|
-
/**
|
|
5
|
-
* Type for the individual array items in v3 of the API for the customer contact endpoint.
|
|
6
|
-
*/
|
|
7
|
-
export type ApiV3CustomerContactType = ApiV2CustomerContactType;
|
|
8
|
-
/**
|
|
9
|
-
* The API response type for customer contacts items.
|
|
10
|
-
*/
|
|
11
|
-
export type ApiV3CustomerContactResponseType = ApiV3BaseResponseType<ApiV3CustomerContactType[], number>;
|
|
@@ -1,34 +0,0 @@
|
|
|
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";
|
|
@@ -1,17 +0,0 @@
|
|
|
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>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ApiV2DynamicContentType } from '../v2/dynamicContent';
|
|
2
|
-
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
-
export { apiV2DynamicContentApiEndpointSlug as apiV3DynamicContentApiEndpointSlug } from '../v2/dynamicContent';
|
|
4
|
-
/**
|
|
5
|
-
* Type for the individual array items in v3 of the API for the dynamic content endpoint.
|
|
6
|
-
*/
|
|
7
|
-
export type ApiV3DynamicContentType = ApiV2DynamicContentType;
|
|
8
|
-
/**
|
|
9
|
-
* The API response type for dynamic content items.
|
|
10
|
-
*/
|
|
11
|
-
export type ApiV3DynamicContentResponseType = ApiV3BaseResponseType<ApiV3DynamicContentType[], number>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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,11 +0,0 @@
|
|
|
1
|
-
import type { ApiV2NotificationPreferenceType } from '../v2/notificationPreference';
|
|
2
|
-
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
-
export { apiV2NotificationPreferenceApiEndpointSlug as apiV3NotificationPreferenceApiEndpointSlug } from '../v2/notificationPreference';
|
|
4
|
-
/**
|
|
5
|
-
* Type for the individual array items in v3 of the API for the notification preference endpoint.
|
|
6
|
-
*/
|
|
7
|
-
export type ApiV3NotificationPreferenceType = ApiV2NotificationPreferenceType;
|
|
8
|
-
/**
|
|
9
|
-
* The API response type for notification preference items.
|
|
10
|
-
*/
|
|
11
|
-
export type ApiV3NotificationPreferenceResponseType = ApiV3BaseResponseType<ApiV3NotificationPreferenceType[], number>;
|
package/dist/v3/policy.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ApiV2PolicyType } from '../v2/policy';
|
|
2
|
-
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
-
export { apiV2PolicyApiEndpointSlug as apiV3PolicyApiEndpointSlug } from '../v2/policy';
|
|
4
|
-
/**
|
|
5
|
-
* Type for the individual array items in v3 of the API for the policy endpoint.
|
|
6
|
-
*/
|
|
7
|
-
export type ApiV3PolicyType = ApiV2PolicyType;
|
|
8
|
-
/**
|
|
9
|
-
* The API response type for policy items.
|
|
10
|
-
*/
|
|
11
|
-
export type ApiV3PolicyResponseType = ApiV3BaseResponseType<ApiV3PolicyType[], number>;
|
package/dist/v3/restaurant.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { ApiV2BaseResponseType } from '../v2/baseResponse';
|
|
2
|
-
import type { ApiV2RestaurantType } from '../v2/restaurant';
|
|
3
|
-
import type { ApiV3CateringFunctionalityType } from '../v3/cateringFunctionality';
|
|
4
|
-
import type { ApiV3DinnerFunctionalityType } from '../v3/dinnerFunctionality';
|
|
5
|
-
import type { ApiV3LunchBoxFunctionalityType } from '../v3/lunchBoxFunctionality';
|
|
6
|
-
import type { ApiV3LunchFunctionalityType } from '../v3/lunchFunctionality';
|
|
7
|
-
export { apiV2RestaurantApiEndpointSlug as apiV3RestaurantApiEndpointSlug } from '../v2/restaurant';
|
|
8
|
-
/**
|
|
9
|
-
* Type for the individual array items in v3 of the API for the restaurant endpoint.
|
|
10
|
-
* NOTE: This is currently marked "internal" (not really, but treat it as if it were) since the interface is actively undergoing change to a modernized structures. It is very much a WIP and should be treated as such. Breaking changes to this not only can, but **will**, occur.
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export type ApiV3RestaurantType = Omit<ApiV2RestaurantType, 'cateringFunctionality' | 'dinnerFunctionality' | 'lunchBoxFunctionality' | 'lunchFunctionality'> & {
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
cateringFunctionality: ApiV3CateringFunctionalityType;
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
dinnerFunctionality: ApiV3DinnerFunctionalityType;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
lunchBoxFunctionality: ApiV3LunchBoxFunctionalityType;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
lunchFunctionality: ApiV3LunchFunctionalityType;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* The API response type for restaurant.
|
|
33
|
-
*/
|
|
34
|
-
export type ApiV3RestaurantResponseType = ApiV2BaseResponseType<ApiV3RestaurantType[], number>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ApiV2RestaurantUploadConnectionType } from '../v2/restaurantUploadConnection';
|
|
2
|
-
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
-
export { apiV2RestaurantUploadConnectionApiEndpointSlug as apiV3RestaurantUploadConnectionApiEndpointSlug } from '../v2/restaurantUploadConnection';
|
|
4
|
-
/**
|
|
5
|
-
* Type for the individual array items in v3 of the API for the restaurant upload connection endpoint.
|
|
6
|
-
*/
|
|
7
|
-
export type ApiV3RestaurantUploadConnectionType = ApiV2RestaurantUploadConnectionType;
|
|
8
|
-
/**
|
|
9
|
-
* The API response type for restaurant upload connection items.
|
|
10
|
-
*/
|
|
11
|
-
export type ApiV3URestaurantUploadConnectionResponseType = ApiV3BaseResponseType<ApiV3RestaurantUploadConnectionType[], number>;
|
package/dist/v3/session.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { apiV2SessionApiEndpointSlug as apiV3SessionApiEndpointSlug } from '../v2/session';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ApiV2SubscriptionPeriodType } from '../v2/subscriptionPeriod';
|
|
2
|
-
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
-
export { apiV2SubscriptionPeriodApiEndpointSlug as apiV3SubscriptionPeriodApiEndpointSlug } from '../v2/subscriptionPeriod';
|
|
4
|
-
/**
|
|
5
|
-
* Type for the individual array items in v3 of the API for the subscription period endpoint.
|
|
6
|
-
*/
|
|
7
|
-
export type ApiV3SubscriptionPeriodType = ApiV2SubscriptionPeriodType;
|
|
8
|
-
/**
|
|
9
|
-
* The API response type for subscription period items.
|
|
10
|
-
*/
|
|
11
|
-
export type ApiV3SubscriptionPeriodResponseType = ApiV3BaseResponseType<ApiV3SubscriptionPeriodType[], number>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ApiV2SystemSettingType } from '../v2/systemSetting';
|
|
2
|
-
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
-
export { apiV2SystemSettingApiEndpointSlug as apiV3SystemSettingApiEndpointSlug } from '../v2/systemSetting';
|
|
4
|
-
/**
|
|
5
|
-
* Type for the individual array items in v3 of the API for the system setting endpoint.
|
|
6
|
-
*/
|
|
7
|
-
export type ApiV3SystemSettingType<T = unknown> = ApiV2SystemSettingType<T>;
|
|
8
|
-
/**
|
|
9
|
-
* The API response type for system setting items.
|
|
10
|
-
*/
|
|
11
|
-
export type ApiV3SystemSettingResponseType = ApiV3BaseResponseType<ApiV3SystemSettingType[], number>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ApiV2UpdatedByTypeType } from '../v2/updatedByType';
|
|
2
|
-
import type { ApiV3BaseResponseType } from '../v3/baseResponse';
|
|
3
|
-
export { apiV2UpdatedByTypeApiEndpointSlug as apiV3UpdatedByTypeApiEndpointSlug } from '../v2/updatedByType';
|
|
4
|
-
/**
|
|
5
|
-
* Type for the individual array items in v3 of the API for the updated by type endpoint.
|
|
6
|
-
*/
|
|
7
|
-
export type ApiV3UpdatedByTypeType = ApiV2UpdatedByTypeType;
|
|
8
|
-
/**
|
|
9
|
-
* The API response type for updated by type items.
|
|
10
|
-
*/
|
|
11
|
-
export type ApiV3UpdatedByTypeResponseType = ApiV3BaseResponseType<ApiV3UpdatedByTypeType[], number>;
|
package/dist/v3/user.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { apiV2UserApiEndpointSlug as apiV3UserApiEndpointSlug } from '../v2/user';
|
|
File without changes
|