@gooday_corp/gooday-api-client 2.0.3 → 2.0.5
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 +6132 -4
- package/base.ts +24 -0
- package/common.ts +37 -0
- package/configuration.ts +17 -0
- package/docs/ContactsEntity.md +2 -0
- package/docs/CreateBookingPayload.md +2 -2
- package/docs/OnBoardingDTO.md +1 -1
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/UserEntity.md +2 -0
- 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
|
/**
|
package/docs/ContactsEntity.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**firstName** | **string** | First name of the contacts | [optional] [default to undefined]
|
|
10
10
|
**lastName** | **string** | Last name of the contacts | [optional] [default to undefined]
|
|
11
11
|
**email** | **string** | Email address of the user | [optional] [default to undefined]
|
|
12
|
+
**mobile** | **string** | Phone No | [optional] [default to undefined]
|
|
12
13
|
**mobileNumber** | **string** | Phone No | [optional] [default to undefined]
|
|
13
14
|
**goodayUser** | **string** | Unique identifier for the contacts | [optional] [default to undefined]
|
|
14
15
|
**profile** | **string** | | [optional] [default to undefined]
|
|
@@ -23,6 +24,7 @@ const instance: ContactsEntity = {
|
|
|
23
24
|
firstName,
|
|
24
25
|
lastName,
|
|
25
26
|
email,
|
|
27
|
+
mobile,
|
|
26
28
|
mobileNumber,
|
|
27
29
|
goodayUser,
|
|
28
30
|
profile,
|
|
@@ -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-
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-09-01T07:10:30Z]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-09-01T07:10:30Z]
|
|
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]
|
package/docs/OnBoardingDTO.md
CHANGED
|
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**dob** | **string** | Date of Birth | [optional] [default to undefined]
|
|
17
17
|
**socialTime** | [**Array<SocialTiming>**](SocialTiming.md) | Social Current Timing | [optional] [default to undefined]
|
|
18
18
|
**goals** | **Array<string>** | Goals | [optional] [default to undefined]
|
|
19
|
-
**isContactShow** | **boolean** | Contact popup show | [default to false]
|
|
19
|
+
**isContactShow** | **boolean** | Contact popup show | [optional] [default to false]
|
|
20
20
|
|
|
21
21
|
## Example
|
|
22
22
|
|
|
@@ -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-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-09-01T07:10:30Z]
|
|
9
9
|
**from** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**to** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**notes** | **string** | | [optional] [default to undefined]
|
package/docs/UserEntity.md
CHANGED
|
@@ -35,6 +35,7 @@ Name | Type | Description | Notes
|
|
|
35
35
|
**planId** | **string** | | [default to undefined]
|
|
36
36
|
**friends** | **Array<string>** | | [default to undefined]
|
|
37
37
|
**isContactShow** | **boolean** | Contact popup show | [default to false]
|
|
38
|
+
**timezone** | **string** | | [optional] [default to undefined]
|
|
38
39
|
|
|
39
40
|
## Example
|
|
40
41
|
|
|
@@ -72,6 +73,7 @@ const instance: UserEntity = {
|
|
|
72
73
|
planId,
|
|
73
74
|
friends,
|
|
74
75
|
isContactShow,
|
|
76
|
+
timezone,
|
|
75
77
|
};
|
|
76
78
|
```
|
|
77
79
|
|
|
@@ -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-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-09-01T07:10:30Z]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-09-01T08:10:30Z]
|
|
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]
|