@gooday_corp/gooday-api-client 1.5.19 → 1.5.22

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.
@@ -58,6 +58,7 @@ docs/BusinessFavoriteResponse.md
58
58
  docs/BusinessFavoriteResponseDTO.md
59
59
  docs/BusinessOnBoardingDTO.md
60
60
  docs/BusinessOnBoardingResponseDTO.md
61
+ docs/BusinessResponseDTO.md
61
62
  docs/BusinessStaffDTO.md
62
63
  docs/BusinessStaffDeleteResponseDTO.md
63
64
  docs/BusinessStaffEntity.md
package/api.ts CHANGED
@@ -1703,6 +1703,25 @@ export interface BusinessOnBoardingResponseDTO {
1703
1703
  */
1704
1704
  'data': BusinessEntity;
1705
1705
  }
1706
+ /**
1707
+ *
1708
+ * @export
1709
+ * @interface BusinessResponseDTO
1710
+ */
1711
+ export interface BusinessResponseDTO {
1712
+ /**
1713
+ * statusCode
1714
+ * @type {number}
1715
+ * @memberof BusinessResponseDTO
1716
+ */
1717
+ 'statusCode': number;
1718
+ /**
1719
+ *
1720
+ * @type {boolean}
1721
+ * @memberof BusinessResponseDTO
1722
+ */
1723
+ 'data': boolean;
1724
+ }
1706
1725
  /**
1707
1726
  *
1708
1727
  * @export
@@ -13354,6 +13373,39 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
13354
13373
  options: localVarRequestOptions,
13355
13374
  };
13356
13375
  },
13376
+ /**
13377
+ *
13378
+ * @param {string} id
13379
+ * @param {*} [options] Override http request option.
13380
+ * @throws {RequiredError}
13381
+ */
13382
+ businessTypeControllerBusinessStatusUpdate: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13383
+ // verify required parameter 'id' is not null or undefined
13384
+ assertParamExists('businessTypeControllerBusinessStatusUpdate', 'id', id)
13385
+ const localVarPath = `/v1/business/business/status/{id}`
13386
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13387
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13388
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13389
+ let baseOptions;
13390
+ if (configuration) {
13391
+ baseOptions = configuration.baseOptions;
13392
+ }
13393
+
13394
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13395
+ const localVarHeaderParameter = {} as any;
13396
+ const localVarQueryParameter = {} as any;
13397
+
13398
+
13399
+
13400
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13401
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13402
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13403
+
13404
+ return {
13405
+ url: toPathString(localVarUrlObj),
13406
+ options: localVarRequestOptions,
13407
+ };
13408
+ },
13357
13409
  /**
13358
13410
  *
13359
13411
  * @param {BusinessVenueMapDTO} businessVenueMapDTO
@@ -14185,6 +14237,18 @@ export const BusinessApiFp = function(configuration?: Configuration) {
14185
14237
  const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessStaffControllerUpdateStaff']?.[localVarOperationServerIndex]?.url;
14186
14238
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14187
14239
  },
14240
+ /**
14241
+ *
14242
+ * @param {string} id
14243
+ * @param {*} [options] Override http request option.
14244
+ * @throws {RequiredError}
14245
+ */
14246
+ async businessTypeControllerBusinessStatusUpdate(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessResponseDTO>> {
14247
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerBusinessStatusUpdate(id, options);
14248
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14249
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerBusinessStatusUpdate']?.[localVarOperationServerIndex]?.url;
14250
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14251
+ },
14188
14252
  /**
14189
14253
  *
14190
14254
  * @param {BusinessVenueMapDTO} businessVenueMapDTO
@@ -14518,6 +14582,15 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
14518
14582
  businessStaffControllerUpdateStaff(id: string, businessStaffDTO: BusinessStaffDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessStaffResponseDTO> {
14519
14583
  return localVarFp.businessStaffControllerUpdateStaff(id, businessStaffDTO, options).then((request) => request(axios, basePath));
14520
14584
  },
14585
+ /**
14586
+ *
14587
+ * @param {string} id
14588
+ * @param {*} [options] Override http request option.
14589
+ * @throws {RequiredError}
14590
+ */
14591
+ businessTypeControllerBusinessStatusUpdate(id: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessResponseDTO> {
14592
+ return localVarFp.businessTypeControllerBusinessStatusUpdate(id, options).then((request) => request(axios, basePath));
14593
+ },
14521
14594
  /**
14522
14595
  *
14523
14596
  * @param {BusinessVenueMapDTO} businessVenueMapDTO
@@ -14816,6 +14889,17 @@ export class BusinessApi extends BaseAPI {
14816
14889
  return BusinessApiFp(this.configuration).businessStaffControllerUpdateStaff(id, businessStaffDTO, options).then((request) => request(this.axios, this.basePath));
14817
14890
  }
14818
14891
 
14892
+ /**
14893
+ *
14894
+ * @param {string} id
14895
+ * @param {*} [options] Override http request option.
14896
+ * @throws {RequiredError}
14897
+ * @memberof BusinessApi
14898
+ */
14899
+ public businessTypeControllerBusinessStatusUpdate(id: string, options?: RawAxiosRequestConfig) {
14900
+ return BusinessApiFp(this.configuration).businessTypeControllerBusinessStatusUpdate(id, options).then((request) => request(this.axios, this.basePath));
14901
+ }
14902
+
14819
14903
  /**
14820
14904
  *
14821
14905
  * @param {BusinessVenueMapDTO} businessVenueMapDTO
@@ -18771,6 +18855,39 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
18771
18855
 
18772
18856
 
18773
18857
 
18858
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18859
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18860
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18861
+
18862
+ return {
18863
+ url: toPathString(localVarUrlObj),
18864
+ options: localVarRequestOptions,
18865
+ };
18866
+ },
18867
+ /**
18868
+ *
18869
+ * @param {*} [options] Override http request option.
18870
+ * @throws {RequiredError}
18871
+ */
18872
+ integrationControllerRevokeMicrosoftToken: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18873
+ const localVarPath = `/v1/integration/microsoft/revoke/token`;
18874
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18875
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18876
+ let baseOptions;
18877
+ if (configuration) {
18878
+ baseOptions = configuration.baseOptions;
18879
+ }
18880
+
18881
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18882
+ const localVarHeaderParameter = {} as any;
18883
+ const localVarQueryParameter = {} as any;
18884
+
18885
+ // authentication bearer required
18886
+ // http bearer authentication required
18887
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18888
+
18889
+
18890
+
18774
18891
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18775
18892
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18776
18893
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -18836,6 +18953,17 @@ export const IntegrationApiFp = function(configuration?: Configuration) {
18836
18953
  const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerRevokeGoogleToken']?.[localVarOperationServerIndex]?.url;
18837
18954
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18838
18955
  },
18956
+ /**
18957
+ *
18958
+ * @param {*} [options] Override http request option.
18959
+ * @throws {RequiredError}
18960
+ */
18961
+ async integrationControllerRevokeMicrosoftToken(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationRevokeResponse>> {
18962
+ const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerRevokeMicrosoftToken(options);
18963
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18964
+ const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerRevokeMicrosoftToken']?.[localVarOperationServerIndex]?.url;
18965
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18966
+ },
18839
18967
  }
18840
18968
  };
18841
18969
 
@@ -18880,6 +19008,14 @@ export const IntegrationApiFactory = function (configuration?: Configuration, ba
18880
19008
  integrationControllerRevokeGoogleToken(options?: RawAxiosRequestConfig): AxiosPromise<IntegrationRevokeResponse> {
18881
19009
  return localVarFp.integrationControllerRevokeGoogleToken(options).then((request) => request(axios, basePath));
18882
19010
  },
19011
+ /**
19012
+ *
19013
+ * @param {*} [options] Override http request option.
19014
+ * @throws {RequiredError}
19015
+ */
19016
+ integrationControllerRevokeMicrosoftToken(options?: RawAxiosRequestConfig): AxiosPromise<IntegrationRevokeResponse> {
19017
+ return localVarFp.integrationControllerRevokeMicrosoftToken(options).then((request) => request(axios, basePath));
19018
+ },
18883
19019
  };
18884
19020
  };
18885
19021
 
@@ -18931,6 +19067,16 @@ export class IntegrationApi extends BaseAPI {
18931
19067
  public integrationControllerRevokeGoogleToken(options?: RawAxiosRequestConfig) {
18932
19068
  return IntegrationApiFp(this.configuration).integrationControllerRevokeGoogleToken(options).then((request) => request(this.axios, this.basePath));
18933
19069
  }
19070
+
19071
+ /**
19072
+ *
19073
+ * @param {*} [options] Override http request option.
19074
+ * @throws {RequiredError}
19075
+ * @memberof IntegrationApi
19076
+ */
19077
+ public integrationControllerRevokeMicrosoftToken(options?: RawAxiosRequestConfig) {
19078
+ return IntegrationApiFp(this.configuration).integrationControllerRevokeMicrosoftToken(options).then((request) => request(this.axios, this.basePath));
19079
+ }
18934
19080
  }
18935
19081
 
18936
19082
 
@@ -15,6 +15,7 @@ All URIs are relative to *http://localhost:8080*
15
15
  |[**businessStaffControllerFindVenueStaffs**](#businessstaffcontrollerfindvenuestaffs) | **POST** /v1/business-staff/public-list | |
16
16
  |[**businessStaffControllerSaveBusinessStaff**](#businessstaffcontrollersavebusinessstaff) | **POST** /v1/business-staff | |
17
17
  |[**businessStaffControllerUpdateStaff**](#businessstaffcontrollerupdatestaff) | **PUT** /v1/business-staff/{id} | |
18
+ |[**businessTypeControllerBusinessStatusUpdate**](#businesstypecontrollerbusinessstatusupdate) | **PUT** /v1/business/business/status/{id} | |
18
19
  |[**businessTypeControllerBusinessVenueMap**](#businesstypecontrollerbusinessvenuemap) | **POST** /v1/business/map/venue | |
19
20
  |[**businessTypeControllerFindFavoriteBusinessVenue**](#businesstypecontrollerfindfavoritebusinessvenue) | **GET** /v1/business/favorite/{id} | |
20
21
  |[**businessTypeControllerFindFavoriteBusinessVenueCount**](#businesstypecontrollerfindfavoritebusinessvenuecount) | **GET** /v1/business/favorite/count/{id} | |
@@ -576,6 +577,56 @@ const { status, data } = await apiInstance.businessStaffControllerUpdateStaff(
576
577
  - **Accept**: application/json
577
578
 
578
579
 
580
+ ### HTTP response details
581
+ | Status code | Description | Response headers |
582
+ |-------------|-------------|------------------|
583
+ |**200** | | - |
584
+
585
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
586
+
587
+ # **businessTypeControllerBusinessStatusUpdate**
588
+ > BusinessResponseDTO businessTypeControllerBusinessStatusUpdate()
589
+
590
+
591
+ ### Example
592
+
593
+ ```typescript
594
+ import {
595
+ BusinessApi,
596
+ Configuration
597
+ } from './api';
598
+
599
+ const configuration = new Configuration();
600
+ const apiInstance = new BusinessApi(configuration);
601
+
602
+ let id: string; // (default to undefined)
603
+
604
+ const { status, data } = await apiInstance.businessTypeControllerBusinessStatusUpdate(
605
+ id
606
+ );
607
+ ```
608
+
609
+ ### Parameters
610
+
611
+ |Name | Type | Description | Notes|
612
+ |------------- | ------------- | ------------- | -------------|
613
+ | **id** | [**string**] | | defaults to undefined|
614
+
615
+
616
+ ### Return type
617
+
618
+ **BusinessResponseDTO**
619
+
620
+ ### Authorization
621
+
622
+ No authorization required
623
+
624
+ ### HTTP request headers
625
+
626
+ - **Content-Type**: Not defined
627
+ - **Accept**: application/json
628
+
629
+
579
630
  ### HTTP response details
580
631
  | Status code | Description | Response headers |
581
632
  |-------------|-------------|------------------|
@@ -0,0 +1,22 @@
1
+ # BusinessResponseDTO
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **statusCode** | **number** | statusCode | [default to undefined]
9
+ **data** | **boolean** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { BusinessResponseDTO } from './api';
15
+
16
+ const instance: BusinessResponseDTO = {
17
+ statusCode,
18
+ data,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -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 2025-07-09T15:21:05+05:30]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-07-09T15:21:05+05:30]
9
+ **date** | **string** | The start date of the booking | [default to 2025-07-10T11:01:26Z]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-07-10T11:01:26Z]
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]
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost:8080*
8
8
  |[**integrationControllerGoogleCalendarAccess**](#integrationcontrollergooglecalendaraccess) | **POST** /v1/integration/google | |
9
9
  |[**integrationControllerMicrosoftCalendar**](#integrationcontrollermicrosoftcalendar) | **POST** /v1/integration/microsoft | |
10
10
  |[**integrationControllerRevokeGoogleToken**](#integrationcontrollerrevokegoogletoken) | **POST** /v1/integration/google/revoke/token | |
11
+ |[**integrationControllerRevokeMicrosoftToken**](#integrationcontrollerrevokemicrosofttoken) | **POST** /v1/integration/microsoft/revoke/token | |
11
12
 
12
13
  # **integrationControllerFetchIntegration**
13
14
  > IntegrationsResponse integrationControllerFetchIntegration()
@@ -199,3 +200,46 @@ This endpoint does not have any parameters.
199
200
 
200
201
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
201
202
 
203
+ # **integrationControllerRevokeMicrosoftToken**
204
+ > IntegrationRevokeResponse integrationControllerRevokeMicrosoftToken()
205
+
206
+
207
+ ### Example
208
+
209
+ ```typescript
210
+ import {
211
+ IntegrationApi,
212
+ Configuration
213
+ } from './api';
214
+
215
+ const configuration = new Configuration();
216
+ const apiInstance = new IntegrationApi(configuration);
217
+
218
+ const { status, data } = await apiInstance.integrationControllerRevokeMicrosoftToken();
219
+ ```
220
+
221
+ ### Parameters
222
+ This endpoint does not have any parameters.
223
+
224
+
225
+ ### Return type
226
+
227
+ **IntegrationRevokeResponse**
228
+
229
+ ### Authorization
230
+
231
+ [bearer](../README.md#bearer)
232
+
233
+ ### HTTP request headers
234
+
235
+ - **Content-Type**: Not defined
236
+ - **Accept**: application/json
237
+
238
+
239
+ ### HTTP response details
240
+ | Status code | Description | Response headers |
241
+ |-------------|-------------|------------------|
242
+ |**200** | | - |
243
+
244
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
245
+
@@ -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 2025-07-09T15:21:05+05:30]
8
+ **date** | **string** | The start date of the booking | [default to 2025-07-10T11:01:26Z]
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 2025-07-09T15:21:05+05:30]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-07-09T16:21:05+05:30]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2025-07-10T11:01:26Z]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2025-07-10T12:01:26Z]
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": "1.5.19",
3
+ "version": "1.5.22",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},