@matochmat/api-client 3.0.1-next.0 → 4.0.0-next.2

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.
@@ -1,50 +0,0 @@
1
- import type { ApiV2BaseResponseType } from '../v2/baseResponse';
2
- /**
3
- * Type for the individual array items in v2 of the API for the order items endpoint.
4
- */
5
- export type ApiV2SubscriptionPeriodType = {
6
- /**
7
- * Timestamp for when the entity was created.
8
- */
9
- created: string;
10
- /**
11
- * End date for the subscription period
12
- */
13
- endDate: string;
14
- /**
15
- * Unique ID for subscription period.
16
- */
17
- id: number;
18
- /**
19
- * Whether or not the period has been invalidated.
20
- */
21
- invalidated: boolean;
22
- /**
23
- * Keeps track of whether or not the current period is a trial period.
24
- */
25
- isTrialPeriod: boolean;
26
- /**
27
- * Timestamp for when the entity was last updated.
28
- */
29
- lastUpdated: string;
30
- /**
31
- * Keeps track of whether the period was manually created or not.
32
- */
33
- manuallyCreated: boolean;
34
- /**
35
- * Restaurant ID the period relates to.
36
- */
37
- restaurantId: number;
38
- /**
39
- * Start date for the subscription period.
40
- */
41
- startDate: string;
42
- };
43
- /**
44
- * The API response type for order items.
45
- */
46
- export type ApiV2SubscriptionPeriodResponseType = ApiV2BaseResponseType<ApiV2SubscriptionPeriodType[], number>;
47
- /**
48
- * API endpoint slug.
49
- */
50
- export declare const apiV2SubscriptionPeriodApiEndpointSlug = "subscription-periods";
@@ -1,13 +0,0 @@
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
- };
@@ -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";
@@ -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>;