@gooday_corp/gooday-api-client 4.5.82 → 4.5.83

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/api.ts CHANGED
@@ -49,7 +49,11 @@ export interface AcceptBookingInvitePayload {
49
49
  /**
50
50
  * ID of the booking
51
51
  */
52
- 'bookingId': string;
52
+ 'bookingId'?: string;
53
+ /**
54
+ * ID of the rsvp
55
+ */
56
+ 'rsvpId'?: string;
53
57
  }
54
58
  export interface AcceptCollaborateInvitePayload {
55
59
  /**
@@ -3952,6 +3956,10 @@ export interface PromoCodeResponseDTO {
3952
3956
  * Discount ID
3953
3957
  */
3954
3958
  'message': string;
3959
+ /**
3960
+ * Discount
3961
+ */
3962
+ 'data': string;
3955
3963
  }
3956
3964
  export interface RSVPEvenPayloadDTO {
3957
3965
  /**
@@ -4266,7 +4274,11 @@ export interface RejectBookingInvitePayload {
4266
4274
  /**
4267
4275
  * ID of the booking
4268
4276
  */
4269
- 'bookingId': string;
4277
+ 'bookingId'?: string;
4278
+ /**
4279
+ * ID of the rsvp
4280
+ */
4281
+ 'rsvpId'?: string;
4270
4282
  }
4271
4283
  export interface RejectCollaborateInvitePayload {
4272
4284
  /**
@@ -10012,11 +10024,10 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
10012
10024
  },
10013
10025
  /**
10014
10026
  *
10015
- * @param {string} [id] Unique identifier for the category
10016
10027
  * @param {*} [options] Override http request option.
10017
10028
  * @throws {RequiredError}
10018
10029
  */
10019
- businessTypeControllerListAllCategories: async (id?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10030
+ businessTypeControllerListAllCategories: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10020
10031
  const localVarPath = `/v1/business/categories`;
10021
10032
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10022
10033
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -10033,10 +10044,6 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
10033
10044
  // http bearer authentication required
10034
10045
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
10035
10046
 
10036
- if (id !== undefined) {
10037
- localVarQueryParameter['id'] = id;
10038
- }
10039
-
10040
10047
  localVarHeaderParameter['Accept'] = 'application/json';
10041
10048
 
10042
10049
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -10633,12 +10640,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
10633
10640
  },
10634
10641
  /**
10635
10642
  *
10636
- * @param {string} [id] Unique identifier for the category
10637
10643
  * @param {*} [options] Override http request option.
10638
10644
  * @throws {RequiredError}
10639
10645
  */
10640
- async businessTypeControllerListAllCategories(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
10641
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListAllCategories(id, options);
10646
+ async businessTypeControllerListAllCategories(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
10647
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListAllCategories(options);
10642
10648
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10643
10649
  const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListAllCategories']?.[localVarOperationServerIndex]?.url;
10644
10650
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -10964,12 +10970,11 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
10964
10970
  },
10965
10971
  /**
10966
10972
  *
10967
- * @param {string} [id] Unique identifier for the category
10968
10973
  * @param {*} [options] Override http request option.
10969
10974
  * @throws {RequiredError}
10970
10975
  */
10971
- businessTypeControllerListAllCategories(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
10972
- return localVarFp.businessTypeControllerListAllCategories(id, options).then((request) => request(axios, basePath));
10976
+ businessTypeControllerListAllCategories(options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
10977
+ return localVarFp.businessTypeControllerListAllCategories(options).then((request) => request(axios, basePath));
10973
10978
  },
10974
10979
  /**
10975
10980
  *
@@ -11290,12 +11295,11 @@ export class BusinessApi extends BaseAPI {
11290
11295
 
11291
11296
  /**
11292
11297
  *
11293
- * @param {string} [id] Unique identifier for the category
11294
11298
  * @param {*} [options] Override http request option.
11295
11299
  * @throws {RequiredError}
11296
11300
  */
11297
- public businessTypeControllerListAllCategories(id?: string, options?: RawAxiosRequestConfig) {
11298
- return BusinessApiFp(this.configuration).businessTypeControllerListAllCategories(id, options).then((request) => request(this.axios, this.basePath));
11301
+ public businessTypeControllerListAllCategories(options?: RawAxiosRequestConfig) {
11302
+ return BusinessApiFp(this.configuration).businessTypeControllerListAllCategories(options).then((request) => request(this.axios, this.basePath));
11299
11303
  }
11300
11304
 
11301
11305
  /**
@@ -5,7 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **bookingId** | **string** | ID of the booking | [default to undefined]
8
+ **bookingId** | **string** | ID of the booking | [optional] [default to undefined]
9
+ **rsvpId** | **string** | ID of the rsvp | [optional] [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
@@ -14,6 +15,7 @@ import { AcceptBookingInvitePayload } from './api';
14
15
 
15
16
  const instance: AcceptBookingInvitePayload = {
16
17
  bookingId,
18
+ rsvpId,
17
19
  };
18
20
  ```
19
21
 
@@ -1256,18 +1256,11 @@ import {
1256
1256
  const configuration = new Configuration();
1257
1257
  const apiInstance = new BusinessApi(configuration);
1258
1258
 
1259
- let id: string; //Unique identifier for the category (optional) (default to undefined)
1260
-
1261
- const { status, data } = await apiInstance.businessTypeControllerListAllCategories(
1262
- id
1263
- );
1259
+ const { status, data } = await apiInstance.businessTypeControllerListAllCategories();
1264
1260
  ```
1265
1261
 
1266
1262
  ### Parameters
1267
-
1268
- |Name | Type | Description | Notes|
1269
- |------------- | ------------- | ------------- | -------------|
1270
- | **id** | [**string**] | Unique identifier for the category | (optional) defaults to undefined|
1263
+ This endpoint does not have any parameters.
1271
1264
 
1272
1265
 
1273
1266
  ### Return type
@@ -6,8 +6,8 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **title** | **string** | The title of the booking | [default to 'Default Booking Title']
9
- **date** | **string** | The start date of the booking | [default to 2026-03-27T13:46:57Z]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-03-27T13:46:57Z]
9
+ **date** | **string** | The start date of the booking | [default to 2026-03-31T05:29:15Z]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-03-31T05:29:15Z]
11
11
  **from** | **string** | | [optional] [default to undefined]
12
12
  **to** | **string** | | [optional] [default to undefined]
13
13
  **venue** | **string** | The venue of the booking | [default to undefined]
@@ -6,8 +6,8 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **title** | **string** | The title of the booking | [default to 'Default Booking Title']
9
- **startDate** | **string** | The start date of the booking | [default to 2026-03-27T13:46:57Z]
10
- **endDate** | **string** | The start date of the booking | [default to 2026-03-27T13:46:57Z]
9
+ **startDate** | **string** | The start date of the booking | [default to 2026-03-31T05:29:15Z]
10
+ **endDate** | **string** | The start date of the booking | [default to 2026-03-31T05:29:15Z]
11
11
  **note** | **string** | Notes attached with booking | [optional] [default to undefined]
12
12
  **occasion** | **string** | Occasion id | [optional] [default to undefined]
13
13
  **calendar** | **Array&lt;string&gt;** | Calendar attached with booking | [optional] [default to undefined]
@@ -6,8 +6,8 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **title** | **string** | The title of the booking | [default to 'Default Booking Title']
9
- **startDate** | **string** | The start date of the booking | [default to 2026-03-27T13:46:57Z]
10
- **endDate** | **string** | The start date of the booking | [default to 2026-03-27T13:46:57Z]
9
+ **startDate** | **string** | The start date of the booking | [default to 2026-03-31T05:29:15Z]
10
+ **endDate** | **string** | The start date of the booking | [default to 2026-03-31T05:29:15Z]
11
11
  **note** | **string** | Notes attached with booking | [optional] [default to undefined]
12
12
  **occasion** | **string** | Occasion id | [optional] [default to undefined]
13
13
  **calendar** | **Array&lt;string&gt;** | Calendar attached with booking | [optional] [default to undefined]
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
8
8
  **whatsOnId** | **string** | Event ID | [optional] [default to undefined]
9
9
  **serviceId** | **string** | Service ID | [optional] [default to undefined]
10
10
  **rsvpId** | **string** | RSVP ID | [optional] [default to undefined]
11
- **startDate** | **string** | The start date of the booking | [optional] [default to 2026-03-27T13:46:55Z]
12
- **endDate** | **string** | The end date of the booking | [optional] [default to 2026-03-27T13:46:55Z]
11
+ **startDate** | **string** | The start date of the booking | [optional] [default to 2026-03-31T05:29:12Z]
12
+ **endDate** | **string** | The end date of the booking | [optional] [default to 2026-03-31T05:29:12Z]
13
13
  **discountId** | **string** | Discount ID | [optional] [default to undefined]
14
14
  **selectedStaff** | **string** | Staff ID | [optional] [default to undefined]
15
15
  **quantity** | **number** | | [optional] [default to 0]
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **statusCode** | **number** | statusCode | [default to undefined]
9
9
  **message** | **string** | Discount ID | [default to undefined]
10
+ **data** | **string** | Discount | [default to undefined]
10
11
 
11
12
  ## Example
12
13
 
@@ -16,6 +17,7 @@ import { PromoCodeResponseDTO } from './api';
16
17
  const instance: PromoCodeResponseDTO = {
17
18
  statusCode,
18
19
  message,
20
+ data,
19
21
  };
20
22
  ```
21
23
 
@@ -5,7 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **bookingId** | **string** | ID of the booking | [default to undefined]
8
+ **bookingId** | **string** | ID of the booking | [optional] [default to undefined]
9
+ **rsvpId** | **string** | ID of the rsvp | [optional] [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
@@ -14,6 +15,7 @@ import { RejectBookingInvitePayload } from './api';
14
15
 
15
16
  const instance: RejectBookingInvitePayload = {
16
17
  bookingId,
18
+ rsvpId,
17
19
  };
18
20
  ```
19
21
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **date** | **string** | The start date of the booking | [default to 2026-03-27T13:46:57Z]
8
+ **date** | **string** | The start date of the booking | [default to 2026-03-31T05:29:15Z]
9
9
  **from** | **string** | | [optional] [default to undefined]
10
10
  **to** | **string** | | [optional] [default to undefined]
11
11
  **notes** | **string** | | [optional] [default to undefined]
@@ -5,8 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **startDate** | **string** | The start date of the waitlist | [default to 2026-03-27T13:46:57Z]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2026-03-27T14:46:57Z]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2026-03-31T05:29:15Z]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2026-03-31T06:29:15Z]
10
10
  **venue** | **string** | The venue of the waitlist | [default to undefined]
11
11
  **business** | **string** | The business associated with the waitlist | [default to undefined]
12
12
  **collaborators** | [**Array&lt;CreateWaitlistBookingCollaboratorPayload&gt;**](CreateWaitlistBookingCollaboratorPayload.md) | The list of collaborators associated with the waitlist | [default to undefined]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "4.5.82",
3
+ "version": "4.5.83",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},