@gooday_corp/gooday-api-client 1.9.7 → 1.9.9

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,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/AppApi.md CHANGED
@@ -4,9 +4,63 @@ All URIs are relative to *http://localhost:8080*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**appResponseControllerAppResponse**](#appresponsecontrollerappresponse) | **POST** /v1/app | |
7
8
  |[**appResponseControllerFeedbackResponse**](#appresponsecontrollerfeedbackresponse) | **POST** /v1/feedback | |
8
9
  |[**appResponseControllerHelpCenterResponse**](#appresponsecontrollerhelpcenterresponse) | **POST** /v1/help-center | |
9
10
 
11
+ # **appResponseControllerAppResponse**
12
+ > AppResponseDTO appResponseControllerAppResponse()
13
+
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ AppApi,
20
+ Configuration
21
+ } from './api';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new AppApi(configuration);
25
+
26
+ let page: number; // (default to undefined)
27
+ let pageSize: number; // (default to undefined)
28
+
29
+ const { status, data } = await apiInstance.appResponseControllerAppResponse(
30
+ page,
31
+ pageSize
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **page** | [**number**] | | defaults to undefined|
40
+ | **pageSize** | [**number**] | | defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ **AppResponseDTO**
46
+
47
+ ### Authorization
48
+
49
+ [bearer](../README.md#bearer)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: Not defined
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**200** | | - |
61
+
62
+ [[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)
63
+
10
64
  # **appResponseControllerFeedbackResponse**
11
65
  > appResponseControllerFeedbackResponse(feedbackPayloadDTO)
12
66
 
@@ -0,0 +1,26 @@
1
+ # AppEntity
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **_id** | **string** | Unique identifier for the user | [default to undefined]
9
+ **content** | **string** | | [default to undefined]
10
+ **user** | **string** | | [default to undefined]
11
+ **type** | **string** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { AppEntity } from './api';
17
+
18
+ const instance: AppEntity = {
19
+ _id,
20
+ content,
21
+ user,
22
+ type,
23
+ };
24
+ ```
25
+
26
+ [[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,22 @@
1
+ # AppResponseDTO
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **statusCode** | **number** | statusCode | [default to undefined]
9
+ **data** | [**AppEntity**](AppEntity.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { AppResponseDTO } from './api';
15
+
16
+ const instance: AppResponseDTO = {
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-08-27T14:09:38Z]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-27T14:09:38Z]
9
+ **date** | **string** | The start date of the booking | [default to 2025-08-28T10:03:44Z]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-28T10:03:44Z]
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]
@@ -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-08-27T14:09:38Z]
8
+ **date** | **string** | The start date of the booking | [default to 2025-08-28T10:03:44Z]
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-08-27T14:09:38Z]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-08-27T15:09:38Z]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2025-08-28T10:03:44Z]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2025-08-28T11:03:44Z]
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.9.7",
3
+ "version": "1.9.9",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},