@matchi/api 0.20250228.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.
@@ -1152,6 +1152,7 @@ type paymentMethodPaymentDetail = {
1152
1152
  type PaymentMethodPaymentRefund = {
1153
1153
  amount: string;
1154
1154
  note: string;
1155
+ reason?: string;
1155
1156
  lastUpdated: timeStamp;
1156
1157
  };
1157
1158
 
@@ -1170,7 +1171,7 @@ type OrderPaymentDetails = {
1170
1171
  totalPaidWithoutFee?: string;
1171
1172
  splitPart?: string | null;
1172
1173
  totalRefunded: string;
1173
- numberUnpaidSplits?: string;
1174
+ numberUnpaidSplits?: number;
1174
1175
  unpaidSplitPrice?: string;
1175
1176
  payments?: Array<paymentMethodPaymentDetail>;
1176
1177
  promoCodeOutcome?: {
@@ -1152,6 +1152,7 @@ type paymentMethodPaymentDetail = {
1152
1152
  type PaymentMethodPaymentRefund = {
1153
1153
  amount: string;
1154
1154
  note: string;
1155
+ reason?: string;
1155
1156
  lastUpdated: timeStamp;
1156
1157
  };
1157
1158
 
@@ -1170,7 +1171,7 @@ type OrderPaymentDetails = {
1170
1171
  totalPaidWithoutFee?: string;
1171
1172
  splitPart?: string | null;
1172
1173
  totalRefunded: string;
1173
- numberUnpaidSplits?: string;
1174
+ numberUnpaidSplits?: number;
1174
1175
  unpaidSplitPrice?: string;
1175
1176
  payments?: Array<paymentMethodPaymentDetail>;
1176
1177
  promoCodeOutcome?: {
@@ -1,30 +1,30 @@
1
1
  type Booking = {
2
2
  booker: string;
3
- createdAt: string;
4
- createdBy: string;
5
- endTime: string;
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
- paymentReference: string;
13
- startTime: string;
14
- updatedAt: string;
15
- updatedBy: string;
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
- createdBy?: string;
20
- endTime: string;
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
- paymentReference: string;
27
- startTime: string;
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
- allActivities: boolean;
38
- notValidForActivities: boolean;
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
- endDate: string;
47
- startDate: string;
46
+ end_date: string;
47
+ start_date: string;
48
48
  type: string;
49
49
  };
50
50
  type FacilityOfferConditionHoursinadvance = {
51
- nrOfHours: number;
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
- endTime: string;
59
- startTime: string;
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
- checkoutUrl: string;
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
- expireDate: string;
81
- facilityId: number;
82
- facilityReceiveMembershipRequests: boolean;
83
- maxDuration: number;
84
- membersOnly: boolean;
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
- nrOfBookingsInPeriod: number | null;
87
- nrOfDaysValid: number;
88
- nrOfTickets: number;
89
- offerId: number;
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
- userHasActiveMembership: boolean;
92
+ user_has_active_membership: boolean;
93
93
  };
94
94
  type FacilityValueCardData = {
95
95
  amount: string;
96
96
  description: string | null;
97
- expireDate: string;
98
- facilityId: number;
99
- facilityReceiveMembershipRequests: boolean;
100
- membersOnly: boolean;
97
+ expire_date: string;
98
+ facility_id: number;
99
+ facility_receive_membership_requests: boolean;
100
+ members_only: boolean;
101
101
  name: string;
102
- nrOfDaysValid: number;
103
- offerId: number;
102
+ nr_of_days_valid: number;
103
+ offer_id: number;
104
104
  price: string;
105
- userHasActiveMembership: boolean;
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
- endTime: string;
116
+ end_time: string;
117
117
  location: string;
118
118
  participants: {
119
119
  guests?: Array<Guest>;
120
120
  players?: Array<Player>;
121
121
  };
122
- paymentReference: string;
123
- startTime: string;
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
- currentCursor: string;
133
+ current_cursor: string;
134
134
  /**
135
135
  * Indicates if there are more results available.
136
136
  */
137
- moreResults: boolean;
137
+ more_results: boolean;
138
138
  /**
139
139
  * Cursor to retrieve the next page of results.
140
140
  */
141
- nextCursor?: string;
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
- moreResults: boolean;
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
- facilityId: string;
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
- facilityId: string;
470
- offerId: string;
469
+ facility_id: string;
470
+ offer_id: string;
471
471
  };
472
472
  query?: never;
473
473
  url: '/facilities/{facility_id}/offers/{offer_id}';
@@ -1,30 +1,30 @@
1
1
  type Booking = {
2
2
  booker: string;
3
- createdAt: string;
4
- createdBy: string;
5
- endTime: string;
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
- paymentReference: string;
13
- startTime: string;
14
- updatedAt: string;
15
- updatedBy: string;
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
- createdBy?: string;
20
- endTime: string;
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
- paymentReference: string;
27
- startTime: string;
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
- allActivities: boolean;
38
- notValidForActivities: boolean;
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
- endDate: string;
47
- startDate: string;
46
+ end_date: string;
47
+ start_date: string;
48
48
  type: string;
49
49
  };
50
50
  type FacilityOfferConditionHoursinadvance = {
51
- nrOfHours: number;
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
- endTime: string;
59
- startTime: string;
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
- checkoutUrl: string;
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
- expireDate: string;
81
- facilityId: number;
82
- facilityReceiveMembershipRequests: boolean;
83
- maxDuration: number;
84
- membersOnly: boolean;
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
- nrOfBookingsInPeriod: number | null;
87
- nrOfDaysValid: number;
88
- nrOfTickets: number;
89
- offerId: number;
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
- userHasActiveMembership: boolean;
92
+ user_has_active_membership: boolean;
93
93
  };
94
94
  type FacilityValueCardData = {
95
95
  amount: string;
96
96
  description: string | null;
97
- expireDate: string;
98
- facilityId: number;
99
- facilityReceiveMembershipRequests: boolean;
100
- membersOnly: boolean;
97
+ expire_date: string;
98
+ facility_id: number;
99
+ facility_receive_membership_requests: boolean;
100
+ members_only: boolean;
101
101
  name: string;
102
- nrOfDaysValid: number;
103
- offerId: number;
102
+ nr_of_days_valid: number;
103
+ offer_id: number;
104
104
  price: string;
105
- userHasActiveMembership: boolean;
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
- endTime: string;
116
+ end_time: string;
117
117
  location: string;
118
118
  participants: {
119
119
  guests?: Array<Guest>;
120
120
  players?: Array<Player>;
121
121
  };
122
- paymentReference: string;
123
- startTime: string;
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
- currentCursor: string;
133
+ current_cursor: string;
134
134
  /**
135
135
  * Indicates if there are more results available.
136
136
  */
137
- moreResults: boolean;
137
+ more_results: boolean;
138
138
  /**
139
139
  * Cursor to retrieve the next page of results.
140
140
  */
141
- nextCursor?: string;
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
- moreResults: boolean;
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
- facilityId: string;
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
- facilityId: string;
470
- offerId: string;
469
+ facility_id: string;
470
+ offer_id: string;
471
471
  };
472
472
  query?: never;
473
473
  url: '/facilities/{facility_id}/offers/{offer_id}';
@@ -1 +1 @@
1
- "use strict";var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var l=(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 d=r=>l(o({},"__esModule",{value:!0}),r);var y={};module.exports=d(y);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matchi/api",
3
- "version": "0.20250228.1",
3
+ "version": "0.20250304.2",
4
4
  "main": "dist/main/index.js",
5
5
  "module": "dist/main/index.mjs",
6
6
  "devDependencies": {