@gooday_corp/gooday-api-client 1.9.1 → 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,6 +108,7 @@ 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
113
114
  docs/ContactsPayloadDTO.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
@@ -17021,6 +17040,49 @@ export const ContactsApiAxiosParamCreator = function (configuration?: Configurat
17021
17040
  const localVarHeaderParameter = {} as any;
17022
17041
  const localVarQueryParameter = {} as any;
17023
17042
 
17043
+ // authentication bearer required
17044
+ // http bearer authentication required
17045
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17046
+
17047
+
17048
+
17049
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17050
+
17051
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17052
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17053
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
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
+
17024
17086
 
17025
17087
 
17026
17088
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -17056,6 +17118,10 @@ export const ContactsApiAxiosParamCreator = function (configuration?: Configurat
17056
17118
  const localVarHeaderParameter = {} as any;
17057
17119
  const localVarQueryParameter = {} as any;
17058
17120
 
17121
+ // authentication bearer required
17122
+ // http bearer authentication required
17123
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17124
+
17059
17125
  if (search !== undefined) {
17060
17126
  localVarQueryParameter['search'] = search;
17061
17127
  }
@@ -17101,6 +17167,18 @@ export const ContactsApiFp = function(configuration?: Configuration) {
17101
17167
  const localVarOperationServerBasePath = operationServerMap['ContactsApi.contactsControllerAddContacts']?.[localVarOperationServerIndex]?.url;
17102
17168
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17103
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
+ },
17104
17182
  /**
17105
17183
  *
17106
17184
  * @param {string} [search]
@@ -17134,6 +17212,15 @@ export const ContactsApiFactory = function (configuration?: Configuration, baseP
17134
17212
  contactsControllerAddContacts(contactsPayloadDTO: Array<ContactsPayloadDTO>, options?: RawAxiosRequestConfig): AxiosPromise<ContactResponseDTO> {
17135
17213
  return localVarFp.contactsControllerAddContacts(contactsPayloadDTO, options).then((request) => request(axios, basePath));
17136
17214
  },
17215
+ /**
17216
+ *
17217
+ * @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
17218
+ * @param {*} [options] Override http request option.
17219
+ * @throws {RequiredError}
17220
+ */
17221
+ contactsControllerContactStatus(contactsPayloadDTO: Array<ContactsPayloadDTO>, options?: RawAxiosRequestConfig): AxiosPromise<ContactStatusResponseDTO> {
17222
+ return localVarFp.contactsControllerContactStatus(contactsPayloadDTO, options).then((request) => request(axios, basePath));
17223
+ },
17137
17224
  /**
17138
17225
  *
17139
17226
  * @param {string} [search]
@@ -17166,6 +17253,17 @@ export class ContactsApi extends BaseAPI {
17166
17253
  return ContactsApiFp(this.configuration).contactsControllerAddContacts(contactsPayloadDTO, options).then((request) => request(this.axios, this.basePath));
17167
17254
  }
17168
17255
 
17256
+ /**
17257
+ *
17258
+ * @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
17259
+ * @param {*} [options] Override http request option.
17260
+ * @throws {RequiredError}
17261
+ * @memberof ContactsApi
17262
+ */
17263
+ public contactsControllerContactStatus(contactsPayloadDTO: Array<ContactsPayloadDTO>, options?: RawAxiosRequestConfig) {
17264
+ return ContactsApiFp(this.configuration).contactsControllerContactStatus(contactsPayloadDTO, options).then((request) => request(this.axios, this.basePath));
17265
+ }
17266
+
17169
17267
  /**
17170
17268
  *
17171
17269
  * @param {string} [search]
@@ -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,6 +5,7 @@ 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**
@@ -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
 
@@ -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:27:26+05:30]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-18T17:27:26+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:27:26+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:27:26+05:30]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-08-18T18:27:26+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.9.1",
3
+ "version": "1.9.3",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},