@gooday_corp/gooday-api-client 3.3.6 → 3.4.0
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/.openapi-generator/VERSION +1 -1
- package/api.ts +6288 -23
- package/base.ts +24 -0
- package/common.ts +37 -0
- package/configuration.ts +17 -0
- package/docs/CreateBookingPayload.md +2 -2
- package/docs/CreateWalkInBookingPayload.md +2 -2
- package/docs/LocationApi.md +8 -2
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/package.json +1 -1
package/base.ts
CHANGED
|
@@ -21,6 +21,10 @@ import globalAxios from 'axios';
|
|
|
21
21
|
|
|
22
22
|
export const BASE_PATH = "http://localhost:8080".replace(/\/+$/, "");
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
24
28
|
export const COLLECTION_FORMATS = {
|
|
25
29
|
csv: ",",
|
|
26
30
|
ssv: " ",
|
|
@@ -28,11 +32,21 @@ export const COLLECTION_FORMATS = {
|
|
|
28
32
|
pipes: "|",
|
|
29
33
|
};
|
|
30
34
|
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface RequestArgs
|
|
39
|
+
*/
|
|
31
40
|
export interface RequestArgs {
|
|
32
41
|
url: string;
|
|
33
42
|
options: RawAxiosRequestConfig;
|
|
34
43
|
}
|
|
35
44
|
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class BaseAPI
|
|
49
|
+
*/
|
|
36
50
|
export class BaseAPI {
|
|
37
51
|
protected configuration: Configuration | undefined;
|
|
38
52
|
|
|
@@ -44,6 +58,12 @@ export class BaseAPI {
|
|
|
44
58
|
}
|
|
45
59
|
};
|
|
46
60
|
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
* @class RequiredError
|
|
65
|
+
* @extends {Error}
|
|
66
|
+
*/
|
|
47
67
|
export class RequiredError extends Error {
|
|
48
68
|
constructor(public field: string, msg?: string) {
|
|
49
69
|
super(msg);
|
|
@@ -58,5 +78,9 @@ interface ServerMap {
|
|
|
58
78
|
}[];
|
|
59
79
|
}
|
|
60
80
|
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
61
85
|
export const operationServerMap: ServerMap = {
|
|
62
86
|
}
|
package/common.ts
CHANGED
|
@@ -18,11 +18,16 @@ 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
|
+
*/
|
|
21
25
|
export const DUMMY_BASE_URL = 'https://example.com'
|
|
22
26
|
|
|
23
27
|
/**
|
|
24
28
|
*
|
|
25
29
|
* @throws {RequiredError}
|
|
30
|
+
* @export
|
|
26
31
|
*/
|
|
27
32
|
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
|
|
28
33
|
if (paramValue === null || paramValue === undefined) {
|
|
@@ -30,6 +35,10 @@ export const assertParamExists = function (functionName: string, paramName: stri
|
|
|
30
35
|
}
|
|
31
36
|
}
|
|
32
37
|
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
33
42
|
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
|
|
34
43
|
if (configuration && configuration.apiKey) {
|
|
35
44
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -39,12 +48,20 @@ export const setApiKeyToObject = async function (object: any, keyParamName: stri
|
|
|
39
48
|
}
|
|
40
49
|
}
|
|
41
50
|
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
42
55
|
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
|
43
56
|
if (configuration && (configuration.username || configuration.password)) {
|
|
44
57
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
45
58
|
}
|
|
46
59
|
}
|
|
47
60
|
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
48
65
|
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
|
49
66
|
if (configuration && configuration.accessToken) {
|
|
50
67
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
@@ -54,6 +71,10 @@ export const setBearerAuthToObject = async function (object: any, configuration?
|
|
|
54
71
|
}
|
|
55
72
|
}
|
|
56
73
|
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
57
78
|
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
|
58
79
|
if (configuration && configuration.accessToken) {
|
|
59
80
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
@@ -85,12 +106,20 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an
|
|
|
85
106
|
}
|
|
86
107
|
}
|
|
87
108
|
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
88
113
|
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
89
114
|
const searchParams = new URLSearchParams(url.search);
|
|
90
115
|
setFlattenedQueryParams(searchParams, objects);
|
|
91
116
|
url.search = searchParams.toString();
|
|
92
117
|
}
|
|
93
118
|
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
94
123
|
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
|
95
124
|
const nonString = typeof value !== 'string';
|
|
96
125
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
@@ -101,10 +130,18 @@ export const serializeDataIfNeeded = function (value: any, requestOptions: any,
|
|
|
101
130
|
: (value || "");
|
|
102
131
|
}
|
|
103
132
|
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @export
|
|
136
|
+
*/
|
|
104
137
|
export const toPathString = function (url: URL) {
|
|
105
138
|
return url.pathname + url.search + url.hash
|
|
106
139
|
}
|
|
107
140
|
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @export
|
|
144
|
+
*/
|
|
108
145
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
109
146
|
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
110
147
|
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
package/configuration.ts
CHANGED
|
@@ -28,32 +28,49 @@ export class Configuration {
|
|
|
28
28
|
/**
|
|
29
29
|
* parameter for apiKey security
|
|
30
30
|
* @param name security name
|
|
31
|
+
* @memberof Configuration
|
|
31
32
|
*/
|
|
32
33
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
33
34
|
/**
|
|
34
35
|
* parameter for basic security
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Configuration
|
|
35
39
|
*/
|
|
36
40
|
username?: string;
|
|
37
41
|
/**
|
|
38
42
|
* parameter for basic security
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Configuration
|
|
39
46
|
*/
|
|
40
47
|
password?: string;
|
|
41
48
|
/**
|
|
42
49
|
* parameter for oauth2 security
|
|
43
50
|
* @param name security name
|
|
44
51
|
* @param scopes oauth2 scope
|
|
52
|
+
* @memberof Configuration
|
|
45
53
|
*/
|
|
46
54
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
47
55
|
/**
|
|
48
56
|
* override base path
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Configuration
|
|
49
60
|
*/
|
|
50
61
|
basePath?: string;
|
|
51
62
|
/**
|
|
52
63
|
* override server index
|
|
64
|
+
*
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof Configuration
|
|
53
67
|
*/
|
|
54
68
|
serverIndex?: number;
|
|
55
69
|
/**
|
|
56
70
|
* base options for axios calls
|
|
71
|
+
*
|
|
72
|
+
* @type {any}
|
|
73
|
+
* @memberof Configuration
|
|
57
74
|
*/
|
|
58
75
|
baseOptions?: any;
|
|
59
76
|
/**
|
|
@@ -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-
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-09-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-09-22T16:00:07+05:30]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-09-22T16:00:07+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,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 2025-09-
|
|
10
|
-
**endDate** | **string** | The start date of the booking | [default to 2025-09-
|
|
9
|
+
**startDate** | **string** | The start date of the booking | [default to 2025-09-22T16:00:07+05:30]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2025-09-22T16:00:07+05:30]
|
|
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<string>** | Calendar attached with booking | [optional] [default to undefined]
|
package/docs/LocationApi.md
CHANGED
|
@@ -25,10 +25,12 @@ const apiInstance = new LocationApi(configuration);
|
|
|
25
25
|
|
|
26
26
|
let place: string; // (default to undefined)
|
|
27
27
|
let label: string; // (default to undefined)
|
|
28
|
+
let searchText: string; // (default to undefined)
|
|
28
29
|
|
|
29
30
|
const { status, data } = await apiInstance.locationControllerFetchCoordinates(
|
|
30
31
|
place,
|
|
31
|
-
label
|
|
32
|
+
label,
|
|
33
|
+
searchText
|
|
32
34
|
);
|
|
33
35
|
```
|
|
34
36
|
|
|
@@ -38,6 +40,7 @@ const { status, data } = await apiInstance.locationControllerFetchCoordinates(
|
|
|
38
40
|
|------------- | ------------- | ------------- | -------------|
|
|
39
41
|
| **place** | [**string**] | | defaults to undefined|
|
|
40
42
|
| **label** | [**string**] | | defaults to undefined|
|
|
43
|
+
| **searchText** | [**string**] | | defaults to undefined|
|
|
41
44
|
|
|
42
45
|
|
|
43
46
|
### Return type
|
|
@@ -128,10 +131,12 @@ const apiInstance = new LocationApi(configuration);
|
|
|
128
131
|
|
|
129
132
|
let place: string; // (default to undefined)
|
|
130
133
|
let label: string; // (default to undefined)
|
|
134
|
+
let searchText: string; // (default to undefined)
|
|
131
135
|
|
|
132
136
|
const { status, data } = await apiInstance.locationControllerGetCoordinateToBusiness(
|
|
133
137
|
place,
|
|
134
|
-
label
|
|
138
|
+
label,
|
|
139
|
+
searchText
|
|
135
140
|
);
|
|
136
141
|
```
|
|
137
142
|
|
|
@@ -141,6 +146,7 @@ const { status, data } = await apiInstance.locationControllerGetCoordinateToBusi
|
|
|
141
146
|
|------------- | ------------- | ------------- | -------------|
|
|
142
147
|
| **place** | [**string**] | | defaults to undefined|
|
|
143
148
|
| **label** | [**string**] | | defaults to undefined|
|
|
149
|
+
| **searchText** | [**string**] | | defaults to undefined|
|
|
144
150
|
|
|
145
151
|
|
|
146
152
|
### Return type
|
|
@@ -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-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-09-22T16:00:07+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-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-09-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-09-22T16:00:07+05:30]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-09-22T17:00:07+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<CreateWaitlistBookingCollaboratorPayload>**](CreateWaitlistBookingCollaboratorPayload.md) | The list of collaborators associated with the waitlist | [default to undefined]
|