@gooday_corp/gooday-api-client 2.3.0 → 2.3.1

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/base.ts CHANGED
@@ -21,10 +21,6 @@ import globalAxios from 'axios';
21
21
 
22
22
  export const BASE_PATH = "http://localhost:8080".replace(/\/+$/, "");
23
23
 
24
- /**
25
- *
26
- * @export
27
- */
28
24
  export const COLLECTION_FORMATS = {
29
25
  csv: ",",
30
26
  ssv: " ",
@@ -32,21 +28,11 @@ export const COLLECTION_FORMATS = {
32
28
  pipes: "|",
33
29
  };
34
30
 
35
- /**
36
- *
37
- * @export
38
- * @interface RequestArgs
39
- */
40
31
  export interface RequestArgs {
41
32
  url: string;
42
33
  options: RawAxiosRequestConfig;
43
34
  }
44
35
 
45
- /**
46
- *
47
- * @export
48
- * @class BaseAPI
49
- */
50
36
  export class BaseAPI {
51
37
  protected configuration: Configuration | undefined;
52
38
 
@@ -58,12 +44,6 @@ export class BaseAPI {
58
44
  }
59
45
  };
60
46
 
61
- /**
62
- *
63
- * @export
64
- * @class RequiredError
65
- * @extends {Error}
66
- */
67
47
  export class RequiredError extends Error {
68
48
  constructor(public field: string, msg?: string) {
69
49
  super(msg);
@@ -78,9 +58,5 @@ interface ServerMap {
78
58
  }[];
79
59
  }
80
60
 
81
- /**
82
- *
83
- * @export
84
- */
85
61
  export const operationServerMap: ServerMap = {
86
62
  }
package/common.ts CHANGED
@@ -18,16 +18,11 @@ import type { RequestArgs } from "./base";
18
18
  import type { AxiosInstance, AxiosResponse } from 'axios';
19
19
  import { RequiredError } from "./base";
20
20
 
21
- /**
22
- *
23
- * @export
24
- */
25
21
  export const DUMMY_BASE_URL = 'https://example.com'
26
22
 
27
23
  /**
28
24
  *
29
25
  * @throws {RequiredError}
30
- * @export
31
26
  */
32
27
  export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
33
28
  if (paramValue === null || paramValue === undefined) {
@@ -35,10 +30,6 @@ export const assertParamExists = function (functionName: string, paramName: stri
35
30
  }
36
31
  }
37
32
 
38
- /**
39
- *
40
- * @export
41
- */
42
33
  export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
43
34
  if (configuration && configuration.apiKey) {
44
35
  const localVarApiKeyValue = typeof configuration.apiKey === 'function'
@@ -48,20 +39,12 @@ export const setApiKeyToObject = async function (object: any, keyParamName: stri
48
39
  }
49
40
  }
50
41
 
51
- /**
52
- *
53
- * @export
54
- */
55
42
  export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
56
43
  if (configuration && (configuration.username || configuration.password)) {
57
44
  object["auth"] = { username: configuration.username, password: configuration.password };
58
45
  }
59
46
  }
60
47
 
61
- /**
62
- *
63
- * @export
64
- */
65
48
  export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
66
49
  if (configuration && configuration.accessToken) {
67
50
  const accessToken = typeof configuration.accessToken === 'function'
@@ -71,10 +54,6 @@ export const setBearerAuthToObject = async function (object: any, configuration?
71
54
  }
72
55
  }
73
56
 
74
- /**
75
- *
76
- * @export
77
- */
78
57
  export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
79
58
  if (configuration && configuration.accessToken) {
80
59
  const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
@@ -106,20 +85,12 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an
106
85
  }
107
86
  }
108
87
 
109
- /**
110
- *
111
- * @export
112
- */
113
88
  export const setSearchParams = function (url: URL, ...objects: any[]) {
114
89
  const searchParams = new URLSearchParams(url.search);
115
90
  setFlattenedQueryParams(searchParams, objects);
116
91
  url.search = searchParams.toString();
117
92
  }
118
93
 
119
- /**
120
- *
121
- * @export
122
- */
123
94
  export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
124
95
  const nonString = typeof value !== 'string';
125
96
  const needsSerialization = nonString && configuration && configuration.isJsonMime
@@ -130,18 +101,10 @@ export const serializeDataIfNeeded = function (value: any, requestOptions: any,
130
101
  : (value || "");
131
102
  }
132
103
 
133
- /**
134
- *
135
- * @export
136
- */
137
104
  export const toPathString = function (url: URL) {
138
105
  return url.pathname + url.search + url.hash
139
106
  }
140
107
 
141
- /**
142
- *
143
- * @export
144
- */
145
108
  export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
146
109
  return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
147
110
  const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
package/configuration.ts CHANGED
@@ -28,49 +28,32 @@ export class Configuration {
28
28
  /**
29
29
  * parameter for apiKey security
30
30
  * @param name security name
31
- * @memberof Configuration
32
31
  */
33
32
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
34
33
  /**
35
34
  * parameter for basic security
36
- *
37
- * @type {string}
38
- * @memberof Configuration
39
35
  */
40
36
  username?: string;
41
37
  /**
42
38
  * parameter for basic security
43
- *
44
- * @type {string}
45
- * @memberof Configuration
46
39
  */
47
40
  password?: string;
48
41
  /**
49
42
  * parameter for oauth2 security
50
43
  * @param name security name
51
44
  * @param scopes oauth2 scope
52
- * @memberof Configuration
53
45
  */
54
46
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
55
47
  /**
56
48
  * override base path
57
- *
58
- * @type {string}
59
- * @memberof Configuration
60
49
  */
61
50
  basePath?: string;
62
51
  /**
63
52
  * override server index
64
- *
65
- * @type {number}
66
- * @memberof Configuration
67
53
  */
68
54
  serverIndex?: number;
69
55
  /**
70
56
  * base options for axios calls
71
- *
72
- * @type {any}
73
- * @memberof Configuration
74
57
  */
75
58
  baseOptions?: any;
76
59
  /**
@@ -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-09-12T14:02:01+05:30]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-09-12T14:02:01+05:30]
9
+ **date** | **string** | The start date of the booking | [default to 2025-09-19T14:54:53+05:30]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-09-19T14:54:53+05:30]
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,6 +6,7 @@ All URIs are relative to *http://localhost:8080*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**locationControllerFetchCoordinates**](#locationcontrollerfetchcoordinates) | **GET** /v1/locations-coordinates | |
8
8
  |[**locationControllerFetchLocations**](#locationcontrollerfetchlocations) | **GET** /v1/locations | |
9
+ |[**locationControllerGetCoordinateToBusiness**](#locationcontrollergetcoordinatetobusiness) | **GET** /v1/locations-coordinates-to-business | |
9
10
 
10
11
  # **locationControllerFetchCoordinates**
11
12
  > LocationCoordinatesResponse locationControllerFetchCoordinates()
@@ -110,3 +111,56 @@ No authorization required
110
111
 
111
112
  [[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)
112
113
 
114
+ # **locationControllerGetCoordinateToBusiness**
115
+ > LocationCoordinatesResponseDTO locationControllerGetCoordinateToBusiness()
116
+
117
+
118
+ ### Example
119
+
120
+ ```typescript
121
+ import {
122
+ LocationApi,
123
+ Configuration
124
+ } from './api';
125
+
126
+ const configuration = new Configuration();
127
+ const apiInstance = new LocationApi(configuration);
128
+
129
+ let place: string; // (default to undefined)
130
+ let label: string; // (default to undefined)
131
+
132
+ const { status, data } = await apiInstance.locationControllerGetCoordinateToBusiness(
133
+ place,
134
+ label
135
+ );
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+ |Name | Type | Description | Notes|
141
+ |------------- | ------------- | ------------- | -------------|
142
+ | **place** | [**string**] | | defaults to undefined|
143
+ | **label** | [**string**] | | defaults to undefined|
144
+
145
+
146
+ ### Return type
147
+
148
+ **LocationCoordinatesResponseDTO**
149
+
150
+ ### Authorization
151
+
152
+ No authorization required
153
+
154
+ ### HTTP request headers
155
+
156
+ - **Content-Type**: Not defined
157
+ - **Accept**: application/json
158
+
159
+
160
+ ### HTTP response details
161
+ | Status code | Description | Response headers |
162
+ |-------------|-------------|------------------|
163
+ |**200** | | - |
164
+
165
+ [[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)
166
+
@@ -0,0 +1,22 @@
1
+ # LocationCoordinatesResponseDTO
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **statusCode** | **number** | statusCode | [default to undefined]
9
+ **data** | [**LocationCoordinatesToBusiness**](LocationCoordinatesToBusiness.md) | Location coordinate | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { LocationCoordinatesResponseDTO } from './api';
15
+
16
+ const instance: LocationCoordinatesResponseDTO = {
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)
@@ -0,0 +1,24 @@
1
+ # LocationCoordinatesToBusiness
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | **string** | | [default to undefined]
9
+ **place** | **object** | | [default to undefined]
10
+ **data** | **object** | Location coordinate | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { LocationCoordinatesToBusiness } from './api';
16
+
17
+ const instance: LocationCoordinatesToBusiness = {
18
+ type,
19
+ place,
20
+ data,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -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-09-12T14:02:01+05:30]
8
+ **date** | **string** | The start date of the booking | [default to 2025-09-19T14:54:53+05:30]
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-09-12T14:02:01+05:30]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-09-12T15:02:01+05:30]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2025-09-19T14:54:53+05:30]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2025-09-19T15:54:53+05:30]
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": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},