@matchi/api 0.20250304.1 → 0.20250304.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.
- package/dist/main/index.d.mts +1 -1
- package/dist/main/index.d.ts +1 -1
- package/dist/v1/types.gen.d.mts +46 -46
- package/dist/v1/types.gen.d.ts +46 -46
- package/dist/v1/types.gen.js +1 -1
- package/package.json +1 -1
package/dist/main/index.d.mts
CHANGED
|
@@ -1171,7 +1171,7 @@ type OrderPaymentDetails = {
|
|
|
1171
1171
|
totalPaidWithoutFee?: string;
|
|
1172
1172
|
splitPart?: string | null;
|
|
1173
1173
|
totalRefunded: string;
|
|
1174
|
-
numberUnpaidSplits?:
|
|
1174
|
+
numberUnpaidSplits?: number;
|
|
1175
1175
|
unpaidSplitPrice?: string;
|
|
1176
1176
|
payments?: Array<paymentMethodPaymentDetail>;
|
|
1177
1177
|
promoCodeOutcome?: {
|
package/dist/main/index.d.ts
CHANGED
|
@@ -1171,7 +1171,7 @@ type OrderPaymentDetails = {
|
|
|
1171
1171
|
totalPaidWithoutFee?: string;
|
|
1172
1172
|
splitPart?: string | null;
|
|
1173
1173
|
totalRefunded: string;
|
|
1174
|
-
numberUnpaidSplits?:
|
|
1174
|
+
numberUnpaidSplits?: number;
|
|
1175
1175
|
unpaidSplitPrice?: string;
|
|
1176
1176
|
payments?: Array<paymentMethodPaymentDetail>;
|
|
1177
1177
|
promoCodeOutcome?: {
|
package/dist/v1/types.gen.d.mts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
type Booking = {
|
|
2
2
|
booker: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
created_at: string;
|
|
4
|
+
created_by: string;
|
|
5
|
+
end_time: string;
|
|
6
6
|
id: string;
|
|
7
7
|
location: string;
|
|
8
8
|
participants: {
|
|
9
9
|
guests: Array<Guest>;
|
|
10
10
|
players: Array<Player>;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
payment_reference: string;
|
|
13
|
+
start_time: string;
|
|
14
|
+
updated_at: string;
|
|
15
|
+
updated_by: string;
|
|
16
16
|
};
|
|
17
17
|
type CreateBooking = {
|
|
18
18
|
booker: string;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
created_by?: string;
|
|
20
|
+
end_time: string;
|
|
21
21
|
location: string;
|
|
22
22
|
participants: {
|
|
23
23
|
guests?: Array<Guest>;
|
|
24
24
|
players?: Array<Player>;
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
payment_reference: string;
|
|
27
|
+
start_time: string;
|
|
28
28
|
};
|
|
29
29
|
type FacilityOffer = {
|
|
30
30
|
data: FacilityPunchCardData | FacilityValueCardData;
|
|
@@ -34,8 +34,8 @@ type FacilityOfferCondition = (FacilityOfferConditionWeekdays | FacilityOfferCon
|
|
|
34
34
|
type?: 'WEEKDAYS' | 'COURTS' | 'DATE' | 'TIME' | 'HOURSINADVANCE' | 'ACTIVITIES' | 'NOT_IMPLEMENTED';
|
|
35
35
|
};
|
|
36
36
|
type FacilityOfferConditionActivities = {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
all_activities: boolean;
|
|
38
|
+
not_valid_for_activities: boolean;
|
|
39
39
|
type: string;
|
|
40
40
|
};
|
|
41
41
|
type FacilityOfferConditionCourts = {
|
|
@@ -43,20 +43,20 @@ type FacilityOfferConditionCourts = {
|
|
|
43
43
|
type: string;
|
|
44
44
|
};
|
|
45
45
|
type FacilityOfferConditionDate = {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
end_date: string;
|
|
47
|
+
start_date: string;
|
|
48
48
|
type: string;
|
|
49
49
|
};
|
|
50
50
|
type FacilityOfferConditionHoursinadvance = {
|
|
51
|
-
|
|
51
|
+
nr_of_hours: number;
|
|
52
52
|
type: string;
|
|
53
53
|
};
|
|
54
54
|
type FacilityOfferConditionNotImplemented = {
|
|
55
55
|
type: string;
|
|
56
56
|
};
|
|
57
57
|
type FacilityOfferConditionTime = {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
end_time: string;
|
|
59
|
+
start_time: string;
|
|
60
60
|
type: string;
|
|
61
61
|
};
|
|
62
62
|
type FacilityOfferConditionWeekdays = {
|
|
@@ -71,38 +71,38 @@ type FacilityOfferOrder = {
|
|
|
71
71
|
/**
|
|
72
72
|
* The URL to the checkout page for the facility offer order
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
checkout_url: string;
|
|
75
75
|
id: string;
|
|
76
76
|
};
|
|
77
77
|
type FacilityPunchCardData = {
|
|
78
78
|
conditions: Array<FacilityOfferCondition>;
|
|
79
79
|
description: string | null;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
expire_date: string;
|
|
81
|
+
facility_id: number;
|
|
82
|
+
facility_receive_membership_requests: boolean;
|
|
83
|
+
max_duration: number;
|
|
84
|
+
members_only: boolean;
|
|
85
85
|
name: string;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
nr_of_bookings_in_period: number | null;
|
|
87
|
+
nr_of_days_valid: number;
|
|
88
|
+
nr_of_tickets: number;
|
|
89
|
+
offer_id: number;
|
|
90
90
|
price: string;
|
|
91
91
|
unlimited: boolean;
|
|
92
|
-
|
|
92
|
+
user_has_active_membership: boolean;
|
|
93
93
|
};
|
|
94
94
|
type FacilityValueCardData = {
|
|
95
95
|
amount: string;
|
|
96
96
|
description: string | null;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
expire_date: string;
|
|
98
|
+
facility_id: number;
|
|
99
|
+
facility_receive_membership_requests: boolean;
|
|
100
|
+
members_only: boolean;
|
|
101
101
|
name: string;
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
nr_of_days_valid: number;
|
|
103
|
+
offer_id: number;
|
|
104
104
|
price: string;
|
|
105
|
-
|
|
105
|
+
user_has_active_membership: boolean;
|
|
106
106
|
};
|
|
107
107
|
type Guest = {
|
|
108
108
|
email: string;
|
|
@@ -113,14 +113,14 @@ type Player = {
|
|
|
113
113
|
};
|
|
114
114
|
type UpdateBooking = {
|
|
115
115
|
booker: string;
|
|
116
|
-
|
|
116
|
+
end_time: string;
|
|
117
117
|
location: string;
|
|
118
118
|
participants: {
|
|
119
119
|
guests?: Array<Guest>;
|
|
120
120
|
players?: Array<Player>;
|
|
121
121
|
};
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
payment_reference: string;
|
|
123
|
+
start_time: string;
|
|
124
124
|
};
|
|
125
125
|
/**
|
|
126
126
|
* Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.
|
|
@@ -130,15 +130,15 @@ type PkgOpenapiSharedCursorPaginatedResultSet = {
|
|
|
130
130
|
/**
|
|
131
131
|
* Cursor used to retrieve the current page of results.
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
current_cursor: string;
|
|
134
134
|
/**
|
|
135
135
|
* Indicates if there are more results available.
|
|
136
136
|
*/
|
|
137
|
-
|
|
137
|
+
more_results: boolean;
|
|
138
138
|
/**
|
|
139
139
|
* Cursor to retrieve the next page of results.
|
|
140
140
|
*/
|
|
141
|
-
|
|
141
|
+
next_cursor?: string;
|
|
142
142
|
};
|
|
143
143
|
type PkgOpenapiSharedError = {
|
|
144
144
|
/**
|
|
@@ -156,7 +156,7 @@ type PkgOpenapiSharedErrors = Array<PkgOpenapiSharedError>;
|
|
|
156
156
|
*/
|
|
157
157
|
type PkgOpenapiSharedOffsetPaginatedResultSet = {
|
|
158
158
|
limit: number;
|
|
159
|
-
|
|
159
|
+
more_results: boolean;
|
|
160
160
|
offset: number;
|
|
161
161
|
};
|
|
162
162
|
type PkgOpenapiSharedProblemDetails = {
|
|
@@ -422,7 +422,7 @@ type UpdateBookingResponse = UpdateBookingResponses[keyof UpdateBookingResponses
|
|
|
422
422
|
type ListFacilityOffersData = {
|
|
423
423
|
body?: never;
|
|
424
424
|
path: {
|
|
425
|
-
|
|
425
|
+
facility_id: string;
|
|
426
426
|
};
|
|
427
427
|
query?: {
|
|
428
428
|
/**
|
|
@@ -466,8 +466,8 @@ type ListFacilityOffersResponse = ListFacilityOffersResponses[keyof ListFacility
|
|
|
466
466
|
type CreateFacilityOfferOrderData = {
|
|
467
467
|
body?: never;
|
|
468
468
|
path: {
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
facility_id: string;
|
|
470
|
+
offer_id: string;
|
|
471
471
|
};
|
|
472
472
|
query?: never;
|
|
473
473
|
url: '/facilities/{facility_id}/offers/{offer_id}';
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
type Booking = {
|
|
2
2
|
booker: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
created_at: string;
|
|
4
|
+
created_by: string;
|
|
5
|
+
end_time: string;
|
|
6
6
|
id: string;
|
|
7
7
|
location: string;
|
|
8
8
|
participants: {
|
|
9
9
|
guests: Array<Guest>;
|
|
10
10
|
players: Array<Player>;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
payment_reference: string;
|
|
13
|
+
start_time: string;
|
|
14
|
+
updated_at: string;
|
|
15
|
+
updated_by: string;
|
|
16
16
|
};
|
|
17
17
|
type CreateBooking = {
|
|
18
18
|
booker: string;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
created_by?: string;
|
|
20
|
+
end_time: string;
|
|
21
21
|
location: string;
|
|
22
22
|
participants: {
|
|
23
23
|
guests?: Array<Guest>;
|
|
24
24
|
players?: Array<Player>;
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
payment_reference: string;
|
|
27
|
+
start_time: string;
|
|
28
28
|
};
|
|
29
29
|
type FacilityOffer = {
|
|
30
30
|
data: FacilityPunchCardData | FacilityValueCardData;
|
|
@@ -34,8 +34,8 @@ type FacilityOfferCondition = (FacilityOfferConditionWeekdays | FacilityOfferCon
|
|
|
34
34
|
type?: 'WEEKDAYS' | 'COURTS' | 'DATE' | 'TIME' | 'HOURSINADVANCE' | 'ACTIVITIES' | 'NOT_IMPLEMENTED';
|
|
35
35
|
};
|
|
36
36
|
type FacilityOfferConditionActivities = {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
all_activities: boolean;
|
|
38
|
+
not_valid_for_activities: boolean;
|
|
39
39
|
type: string;
|
|
40
40
|
};
|
|
41
41
|
type FacilityOfferConditionCourts = {
|
|
@@ -43,20 +43,20 @@ type FacilityOfferConditionCourts = {
|
|
|
43
43
|
type: string;
|
|
44
44
|
};
|
|
45
45
|
type FacilityOfferConditionDate = {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
end_date: string;
|
|
47
|
+
start_date: string;
|
|
48
48
|
type: string;
|
|
49
49
|
};
|
|
50
50
|
type FacilityOfferConditionHoursinadvance = {
|
|
51
|
-
|
|
51
|
+
nr_of_hours: number;
|
|
52
52
|
type: string;
|
|
53
53
|
};
|
|
54
54
|
type FacilityOfferConditionNotImplemented = {
|
|
55
55
|
type: string;
|
|
56
56
|
};
|
|
57
57
|
type FacilityOfferConditionTime = {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
end_time: string;
|
|
59
|
+
start_time: string;
|
|
60
60
|
type: string;
|
|
61
61
|
};
|
|
62
62
|
type FacilityOfferConditionWeekdays = {
|
|
@@ -71,38 +71,38 @@ type FacilityOfferOrder = {
|
|
|
71
71
|
/**
|
|
72
72
|
* The URL to the checkout page for the facility offer order
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
checkout_url: string;
|
|
75
75
|
id: string;
|
|
76
76
|
};
|
|
77
77
|
type FacilityPunchCardData = {
|
|
78
78
|
conditions: Array<FacilityOfferCondition>;
|
|
79
79
|
description: string | null;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
expire_date: string;
|
|
81
|
+
facility_id: number;
|
|
82
|
+
facility_receive_membership_requests: boolean;
|
|
83
|
+
max_duration: number;
|
|
84
|
+
members_only: boolean;
|
|
85
85
|
name: string;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
nr_of_bookings_in_period: number | null;
|
|
87
|
+
nr_of_days_valid: number;
|
|
88
|
+
nr_of_tickets: number;
|
|
89
|
+
offer_id: number;
|
|
90
90
|
price: string;
|
|
91
91
|
unlimited: boolean;
|
|
92
|
-
|
|
92
|
+
user_has_active_membership: boolean;
|
|
93
93
|
};
|
|
94
94
|
type FacilityValueCardData = {
|
|
95
95
|
amount: string;
|
|
96
96
|
description: string | null;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
expire_date: string;
|
|
98
|
+
facility_id: number;
|
|
99
|
+
facility_receive_membership_requests: boolean;
|
|
100
|
+
members_only: boolean;
|
|
101
101
|
name: string;
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
nr_of_days_valid: number;
|
|
103
|
+
offer_id: number;
|
|
104
104
|
price: string;
|
|
105
|
-
|
|
105
|
+
user_has_active_membership: boolean;
|
|
106
106
|
};
|
|
107
107
|
type Guest = {
|
|
108
108
|
email: string;
|
|
@@ -113,14 +113,14 @@ type Player = {
|
|
|
113
113
|
};
|
|
114
114
|
type UpdateBooking = {
|
|
115
115
|
booker: string;
|
|
116
|
-
|
|
116
|
+
end_time: string;
|
|
117
117
|
location: string;
|
|
118
118
|
participants: {
|
|
119
119
|
guests?: Array<Guest>;
|
|
120
120
|
players?: Array<Player>;
|
|
121
121
|
};
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
payment_reference: string;
|
|
123
|
+
start_time: string;
|
|
124
124
|
};
|
|
125
125
|
/**
|
|
126
126
|
* Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.
|
|
@@ -130,15 +130,15 @@ type PkgOpenapiSharedCursorPaginatedResultSet = {
|
|
|
130
130
|
/**
|
|
131
131
|
* Cursor used to retrieve the current page of results.
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
current_cursor: string;
|
|
134
134
|
/**
|
|
135
135
|
* Indicates if there are more results available.
|
|
136
136
|
*/
|
|
137
|
-
|
|
137
|
+
more_results: boolean;
|
|
138
138
|
/**
|
|
139
139
|
* Cursor to retrieve the next page of results.
|
|
140
140
|
*/
|
|
141
|
-
|
|
141
|
+
next_cursor?: string;
|
|
142
142
|
};
|
|
143
143
|
type PkgOpenapiSharedError = {
|
|
144
144
|
/**
|
|
@@ -156,7 +156,7 @@ type PkgOpenapiSharedErrors = Array<PkgOpenapiSharedError>;
|
|
|
156
156
|
*/
|
|
157
157
|
type PkgOpenapiSharedOffsetPaginatedResultSet = {
|
|
158
158
|
limit: number;
|
|
159
|
-
|
|
159
|
+
more_results: boolean;
|
|
160
160
|
offset: number;
|
|
161
161
|
};
|
|
162
162
|
type PkgOpenapiSharedProblemDetails = {
|
|
@@ -422,7 +422,7 @@ type UpdateBookingResponse = UpdateBookingResponses[keyof UpdateBookingResponses
|
|
|
422
422
|
type ListFacilityOffersData = {
|
|
423
423
|
body?: never;
|
|
424
424
|
path: {
|
|
425
|
-
|
|
425
|
+
facility_id: string;
|
|
426
426
|
};
|
|
427
427
|
query?: {
|
|
428
428
|
/**
|
|
@@ -466,8 +466,8 @@ type ListFacilityOffersResponse = ListFacilityOffersResponses[keyof ListFacility
|
|
|
466
466
|
type CreateFacilityOfferOrderData = {
|
|
467
467
|
body?: never;
|
|
468
468
|
path: {
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
facility_id: string;
|
|
470
|
+
offer_id: string;
|
|
471
471
|
};
|
|
472
472
|
query?: never;
|
|
473
473
|
url: '/facilities/{facility_id}/offers/{offer_id}';
|
package/dist/v1/types.gen.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var
|
|
1
|
+
"use strict";var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var d=(r,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of s(e))!p.call(r,t)&&t!==a&&o(r,t,{get:()=>e[t],enumerable:!(i=n(e,t))||i.enumerable});return r};var l=r=>d(o({},"__esModule",{value:!0}),r);var y={};module.exports=l(y);
|