@gooday_corp/gooday-api-client 1.8.9 → 1.9.3

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.
@@ -108,8 +108,10 @@ docs/CancelBookingResponseDTO.md
108
108
  docs/CategoryEntity.md
109
109
  docs/CategoryListResponse.md
110
110
  docs/ContactResponseDTO.md
111
+ docs/ContactStatusResponseDTO.md
111
112
  docs/ContactsApi.md
112
113
  docs/ContactsEntity.md
114
+ docs/ContactsPayloadDTO.md
113
115
  docs/ContactsResponseDTO.md
114
116
  docs/CreateBookingCollaboratorPayload.md
115
117
  docs/CreateBookingPayload.md
package/api.ts CHANGED
@@ -3259,6 +3259,25 @@ export interface ContactResponseDTO {
3259
3259
  */
3260
3260
  'message': string;
3261
3261
  }
3262
+ /**
3263
+ *
3264
+ * @export
3265
+ * @interface ContactStatusResponseDTO
3266
+ */
3267
+ export interface ContactStatusResponseDTO {
3268
+ /**
3269
+ * statusCode
3270
+ * @type {number}
3271
+ * @memberof ContactStatusResponseDTO
3272
+ */
3273
+ 'statusCode': number;
3274
+ /**
3275
+ *
3276
+ * @type {boolean}
3277
+ * @memberof ContactStatusResponseDTO
3278
+ */
3279
+ 'contacts': boolean;
3280
+ }
3262
3281
  /**
3263
3282
  *
3264
3283
  * @export
@@ -3302,6 +3321,43 @@ export interface ContactsEntity {
3302
3321
  */
3303
3322
  'profile'?: string;
3304
3323
  }
3324
+ /**
3325
+ *
3326
+ * @export
3327
+ * @interface ContactsPayloadDTO
3328
+ */
3329
+ export interface ContactsPayloadDTO {
3330
+ /**
3331
+ * First name of the user
3332
+ * @type {string}
3333
+ * @memberof ContactsPayloadDTO
3334
+ */
3335
+ 'firstName'?: string;
3336
+ /**
3337
+ * Last name of the user
3338
+ * @type {string}
3339
+ * @memberof ContactsPayloadDTO
3340
+ */
3341
+ 'lastName'?: string;
3342
+ /**
3343
+ * Email address of the user
3344
+ * @type {string}
3345
+ * @memberof ContactsPayloadDTO
3346
+ */
3347
+ 'email'?: string;
3348
+ /**
3349
+ * Phone No
3350
+ * @type {string}
3351
+ * @memberof ContactsPayloadDTO
3352
+ */
3353
+ 'mobileNumber'?: string;
3354
+ /**
3355
+ *
3356
+ * @type {string}
3357
+ * @memberof ContactsPayloadDTO
3358
+ */
3359
+ 'profile'?: string;
3360
+ }
3305
3361
  /**
3306
3362
  *
3307
3363
  * @export
@@ -16965,13 +17021,13 @@ export const ContactsApiAxiosParamCreator = function (configuration?: Configurat
16965
17021
  return {
16966
17022
  /**
16967
17023
  *
16968
- * @param {Array<string>} requestBody
17024
+ * @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
16969
17025
  * @param {*} [options] Override http request option.
16970
17026
  * @throws {RequiredError}
16971
17027
  */
16972
- contactsControllerAddContacts: async (requestBody: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16973
- // verify required parameter 'requestBody' is not null or undefined
16974
- assertParamExists('contactsControllerAddContacts', 'requestBody', requestBody)
17028
+ contactsControllerAddContacts: async (contactsPayloadDTO: Array<ContactsPayloadDTO>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17029
+ // verify required parameter 'contactsPayloadDTO' is not null or undefined
17030
+ assertParamExists('contactsControllerAddContacts', 'contactsPayloadDTO', contactsPayloadDTO)
16975
17031
  const localVarPath = `/v1/contacts`;
16976
17032
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
16977
17033
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -16984,6 +17040,10 @@ export const ContactsApiAxiosParamCreator = function (configuration?: Configurat
16984
17040
  const localVarHeaderParameter = {} as any;
16985
17041
  const localVarQueryParameter = {} as any;
16986
17042
 
17043
+ // authentication bearer required
17044
+ // http bearer authentication required
17045
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17046
+
16987
17047
 
16988
17048
 
16989
17049
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -16991,7 +17051,46 @@ export const ContactsApiAxiosParamCreator = function (configuration?: Configurat
16991
17051
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16992
17052
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16993
17053
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16994
- localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
17054
+ localVarRequestOptions.data = serializeDataIfNeeded(contactsPayloadDTO, localVarRequestOptions, configuration)
17055
+
17056
+ return {
17057
+ url: toPathString(localVarUrlObj),
17058
+ options: localVarRequestOptions,
17059
+ };
17060
+ },
17061
+ /**
17062
+ *
17063
+ * @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
17064
+ * @param {*} [options] Override http request option.
17065
+ * @throws {RequiredError}
17066
+ */
17067
+ contactsControllerContactStatus: async (contactsPayloadDTO: Array<ContactsPayloadDTO>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17068
+ // verify required parameter 'contactsPayloadDTO' is not null or undefined
17069
+ assertParamExists('contactsControllerContactStatus', 'contactsPayloadDTO', contactsPayloadDTO)
17070
+ const localVarPath = `/v1/contacts/status`;
17071
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17072
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17073
+ let baseOptions;
17074
+ if (configuration) {
17075
+ baseOptions = configuration.baseOptions;
17076
+ }
17077
+
17078
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17079
+ const localVarHeaderParameter = {} as any;
17080
+ const localVarQueryParameter = {} as any;
17081
+
17082
+ // authentication bearer required
17083
+ // http bearer authentication required
17084
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17085
+
17086
+
17087
+
17088
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17089
+
17090
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17091
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17092
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17093
+ localVarRequestOptions.data = serializeDataIfNeeded(contactsPayloadDTO, localVarRequestOptions, configuration)
16995
17094
 
16996
17095
  return {
16997
17096
  url: toPathString(localVarUrlObj),
@@ -17019,6 +17118,10 @@ export const ContactsApiAxiosParamCreator = function (configuration?: Configurat
17019
17118
  const localVarHeaderParameter = {} as any;
17020
17119
  const localVarQueryParameter = {} as any;
17021
17120
 
17121
+ // authentication bearer required
17122
+ // http bearer authentication required
17123
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17124
+
17022
17125
  if (search !== undefined) {
17023
17126
  localVarQueryParameter['search'] = search;
17024
17127
  }
@@ -17054,16 +17157,28 @@ export const ContactsApiFp = function(configuration?: Configuration) {
17054
17157
  return {
17055
17158
  /**
17056
17159
  *
17057
- * @param {Array<string>} requestBody
17160
+ * @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
17058
17161
  * @param {*} [options] Override http request option.
17059
17162
  * @throws {RequiredError}
17060
17163
  */
17061
- async contactsControllerAddContacts(requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactResponseDTO>> {
17062
- const localVarAxiosArgs = await localVarAxiosParamCreator.contactsControllerAddContacts(requestBody, options);
17164
+ async contactsControllerAddContacts(contactsPayloadDTO: Array<ContactsPayloadDTO>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactResponseDTO>> {
17165
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsControllerAddContacts(contactsPayloadDTO, options);
17063
17166
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17064
17167
  const localVarOperationServerBasePath = operationServerMap['ContactsApi.contactsControllerAddContacts']?.[localVarOperationServerIndex]?.url;
17065
17168
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17066
17169
  },
17170
+ /**
17171
+ *
17172
+ * @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
17173
+ * @param {*} [options] Override http request option.
17174
+ * @throws {RequiredError}
17175
+ */
17176
+ async contactsControllerContactStatus(contactsPayloadDTO: Array<ContactsPayloadDTO>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactStatusResponseDTO>> {
17177
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsControllerContactStatus(contactsPayloadDTO, options);
17178
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17179
+ const localVarOperationServerBasePath = operationServerMap['ContactsApi.contactsControllerContactStatus']?.[localVarOperationServerIndex]?.url;
17180
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17181
+ },
17067
17182
  /**
17068
17183
  *
17069
17184
  * @param {string} [search]
@@ -17090,12 +17205,21 @@ export const ContactsApiFactory = function (configuration?: Configuration, baseP
17090
17205
  return {
17091
17206
  /**
17092
17207
  *
17093
- * @param {Array<string>} requestBody
17208
+ * @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
17209
+ * @param {*} [options] Override http request option.
17210
+ * @throws {RequiredError}
17211
+ */
17212
+ contactsControllerAddContacts(contactsPayloadDTO: Array<ContactsPayloadDTO>, options?: RawAxiosRequestConfig): AxiosPromise<ContactResponseDTO> {
17213
+ return localVarFp.contactsControllerAddContacts(contactsPayloadDTO, options).then((request) => request(axios, basePath));
17214
+ },
17215
+ /**
17216
+ *
17217
+ * @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
17094
17218
  * @param {*} [options] Override http request option.
17095
17219
  * @throws {RequiredError}
17096
17220
  */
17097
- contactsControllerAddContacts(requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<ContactResponseDTO> {
17098
- return localVarFp.contactsControllerAddContacts(requestBody, options).then((request) => request(axios, basePath));
17221
+ contactsControllerContactStatus(contactsPayloadDTO: Array<ContactsPayloadDTO>, options?: RawAxiosRequestConfig): AxiosPromise<ContactStatusResponseDTO> {
17222
+ return localVarFp.contactsControllerContactStatus(contactsPayloadDTO, options).then((request) => request(axios, basePath));
17099
17223
  },
17100
17224
  /**
17101
17225
  *
@@ -17120,13 +17244,24 @@ export const ContactsApiFactory = function (configuration?: Configuration, baseP
17120
17244
  export class ContactsApi extends BaseAPI {
17121
17245
  /**
17122
17246
  *
17123
- * @param {Array<string>} requestBody
17247
+ * @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
17248
+ * @param {*} [options] Override http request option.
17249
+ * @throws {RequiredError}
17250
+ * @memberof ContactsApi
17251
+ */
17252
+ public contactsControllerAddContacts(contactsPayloadDTO: Array<ContactsPayloadDTO>, options?: RawAxiosRequestConfig) {
17253
+ return ContactsApiFp(this.configuration).contactsControllerAddContacts(contactsPayloadDTO, options).then((request) => request(this.axios, this.basePath));
17254
+ }
17255
+
17256
+ /**
17257
+ *
17258
+ * @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
17124
17259
  * @param {*} [options] Override http request option.
17125
17260
  * @throws {RequiredError}
17126
17261
  * @memberof ContactsApi
17127
17262
  */
17128
- public contactsControllerAddContacts(requestBody: Array<string>, options?: RawAxiosRequestConfig) {
17129
- return ContactsApiFp(this.configuration).contactsControllerAddContacts(requestBody, options).then((request) => request(this.axios, this.basePath));
17263
+ public contactsControllerContactStatus(contactsPayloadDTO: Array<ContactsPayloadDTO>, options?: RawAxiosRequestConfig) {
17264
+ return ContactsApiFp(this.configuration).contactsControllerContactStatus(contactsPayloadDTO, options).then((request) => request(this.axios, this.basePath));
17130
17265
  }
17131
17266
 
17132
17267
  /**
@@ -0,0 +1,22 @@
1
+ # ContactStatusResponseDTO
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **statusCode** | **number** | statusCode | [default to undefined]
9
+ **contacts** | **boolean** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ContactStatusResponseDTO } from './api';
15
+
16
+ const instance: ContactStatusResponseDTO = {
17
+ statusCode,
18
+ contacts,
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)
@@ -5,10 +5,11 @@ All URIs are relative to *http://localhost:8080*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**contactsControllerAddContacts**](#contactscontrolleraddcontacts) | **POST** /v1/contacts | |
8
+ |[**contactsControllerContactStatus**](#contactscontrollercontactstatus) | **POST** /v1/contacts/status | |
8
9
  |[**contactsControllerFindContacts**](#contactscontrollerfindcontacts) | **GET** /v1/contacts | |
9
10
 
10
11
  # **contactsControllerAddContacts**
11
- > ContactResponseDTO contactsControllerAddContacts(requestBody)
12
+ > ContactResponseDTO contactsControllerAddContacts(contactsPayloadDTO)
12
13
 
13
14
 
14
15
  ### Example
@@ -22,10 +23,10 @@ import {
22
23
  const configuration = new Configuration();
23
24
  const apiInstance = new ContactsApi(configuration);
24
25
 
25
- let requestBody: Array<string>; //
26
+ let contactsPayloadDTO: Array<ContactsPayloadDTO>; //
26
27
 
27
28
  const { status, data } = await apiInstance.contactsControllerAddContacts(
28
- requestBody
29
+ contactsPayloadDTO
29
30
  );
30
31
  ```
31
32
 
@@ -33,7 +34,7 @@ const { status, data } = await apiInstance.contactsControllerAddContacts(
33
34
 
34
35
  |Name | Type | Description | Notes|
35
36
  |------------- | ------------- | ------------- | -------------|
36
- | **requestBody** | **Array<string>**| | |
37
+ | **contactsPayloadDTO** | **Array<ContactsPayloadDTO>**| | |
37
38
 
38
39
 
39
40
  ### Return type
@@ -42,7 +43,57 @@ const { status, data } = await apiInstance.contactsControllerAddContacts(
42
43
 
43
44
  ### Authorization
44
45
 
45
- No authorization required
46
+ [bearer](../README.md#bearer)
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: application/json
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | | - |
58
+
59
+ [[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)
60
+
61
+ # **contactsControllerContactStatus**
62
+ > ContactStatusResponseDTO contactsControllerContactStatus(contactsPayloadDTO)
63
+
64
+
65
+ ### Example
66
+
67
+ ```typescript
68
+ import {
69
+ ContactsApi,
70
+ Configuration
71
+ } from './api';
72
+
73
+ const configuration = new Configuration();
74
+ const apiInstance = new ContactsApi(configuration);
75
+
76
+ let contactsPayloadDTO: Array<ContactsPayloadDTO>; //
77
+
78
+ const { status, data } = await apiInstance.contactsControllerContactStatus(
79
+ contactsPayloadDTO
80
+ );
81
+ ```
82
+
83
+ ### Parameters
84
+
85
+ |Name | Type | Description | Notes|
86
+ |------------- | ------------- | ------------- | -------------|
87
+ | **contactsPayloadDTO** | **Array<ContactsPayloadDTO>**| | |
88
+
89
+
90
+ ### Return type
91
+
92
+ **ContactStatusResponseDTO**
93
+
94
+ ### Authorization
95
+
96
+ [bearer](../README.md#bearer)
46
97
 
47
98
  ### HTTP request headers
48
99
 
@@ -98,7 +149,7 @@ const { status, data } = await apiInstance.contactsControllerFindContacts(
98
149
 
99
150
  ### Authorization
100
151
 
101
- No authorization required
152
+ [bearer](../README.md#bearer)
102
153
 
103
154
  ### HTTP request headers
104
155
 
@@ -0,0 +1,28 @@
1
+ # ContactsPayloadDTO
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **firstName** | **string** | First name of the user | [optional] [default to undefined]
9
+ **lastName** | **string** | Last name of the user | [optional] [default to undefined]
10
+ **email** | **string** | Email address of the user | [optional] [default to undefined]
11
+ **mobileNumber** | **string** | Phone No | [optional] [default to undefined]
12
+ **profile** | **string** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ContactsPayloadDTO } from './api';
18
+
19
+ const instance: ContactsPayloadDTO = {
20
+ firstName,
21
+ lastName,
22
+ email,
23
+ mobileNumber,
24
+ profile,
25
+ };
26
+ ```
27
+
28
+ [[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-18T17:10:42+05:30]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-18T17:10:42+05:30]
9
+ **date** | **string** | The start date of the booking | [default to 2025-08-20T16:14:19+05:30]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-20T16:14:19+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]
@@ -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-18T17:10:42+05:30]
8
+ **date** | **string** | The start date of the booking | [default to 2025-08-20T16:14:19+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-08-18T17:10:42+05:30]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-08-18T18:10:42+05:30]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2025-08-20T16:14:19+05:30]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2025-08-20T17:14:19+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": "1.8.9",
3
+ "version": "1.9.3",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},