@gooday_corp/gooday-api-client 1.8.7 → 1.8.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.
@@ -107,6 +107,10 @@ docs/CancelBookingDTO.md
107
107
  docs/CancelBookingResponseDTO.md
108
108
  docs/CategoryEntity.md
109
109
  docs/CategoryListResponse.md
110
+ docs/ContactResponseDTO.md
111
+ docs/ContactsApi.md
112
+ docs/ContactsEntity.md
113
+ docs/ContactsResponseDTO.md
110
114
  docs/CreateBookingCollaboratorPayload.md
111
115
  docs/CreateBookingPayload.md
112
116
  docs/CreateCalendarPayload.md
package/api.ts CHANGED
@@ -3240,6 +3240,87 @@ export interface CategoryListResponse {
3240
3240
  */
3241
3241
  'data': Array<CategoryEntity>;
3242
3242
  }
3243
+ /**
3244
+ *
3245
+ * @export
3246
+ * @interface ContactResponseDTO
3247
+ */
3248
+ export interface ContactResponseDTO {
3249
+ /**
3250
+ * statusCode
3251
+ * @type {number}
3252
+ * @memberof ContactResponseDTO
3253
+ */
3254
+ 'statusCode': number;
3255
+ /**
3256
+ *
3257
+ * @type {string}
3258
+ * @memberof ContactResponseDTO
3259
+ */
3260
+ 'message': string;
3261
+ }
3262
+ /**
3263
+ *
3264
+ * @export
3265
+ * @interface ContactsEntity
3266
+ */
3267
+ export interface ContactsEntity {
3268
+ /**
3269
+ * Unique identifier for the contacts
3270
+ * @type {string}
3271
+ * @memberof ContactsEntity
3272
+ */
3273
+ '_id'?: string;
3274
+ /**
3275
+ * First name of the contacts
3276
+ * @type {string}
3277
+ * @memberof ContactsEntity
3278
+ */
3279
+ 'firstName'?: string;
3280
+ /**
3281
+ * Last name of the contacts
3282
+ * @type {string}
3283
+ * @memberof ContactsEntity
3284
+ */
3285
+ 'lastName'?: string;
3286
+ /**
3287
+ * Email address of the user
3288
+ * @type {string}
3289
+ * @memberof ContactsEntity
3290
+ */
3291
+ 'email'?: string;
3292
+ /**
3293
+ * Phone No
3294
+ * @type {string}
3295
+ * @memberof ContactsEntity
3296
+ */
3297
+ 'mobileNumber'?: string;
3298
+ /**
3299
+ *
3300
+ * @type {string}
3301
+ * @memberof ContactsEntity
3302
+ */
3303
+ 'profile'?: string;
3304
+ }
3305
+ /**
3306
+ *
3307
+ * @export
3308
+ * @interface ContactsResponseDTO
3309
+ */
3310
+ export interface ContactsResponseDTO {
3311
+ /**
3312
+ * statusCode
3313
+ * @type {number}
3314
+ * @memberof ContactsResponseDTO
3315
+ */
3316
+ 'statusCode': number;
3317
+ /**
3318
+ *
3319
+ * @type {Array<ContactsEntity>}
3320
+ * @memberof ContactsResponseDTO
3321
+ */
3322
+ 'data': Array<ContactsEntity>;
3323
+ }
3243
3324
  /**
3244
3325
  *
3245
3326
  * @export
@@ -16876,6 +16957,194 @@ export class CalendarApi extends BaseAPI {
16876
16957
 
16877
16958
 
16878
16959
 
16960
+ /**
16961
+ * ContactsApi - axios parameter creator
16962
+ * @export
16963
+ */
16964
+ export const ContactsApiAxiosParamCreator = function (configuration?: Configuration) {
16965
+ return {
16966
+ /**
16967
+ *
16968
+ * @param {Array<string>} requestBody
16969
+ * @param {*} [options] Override http request option.
16970
+ * @throws {RequiredError}
16971
+ */
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)
16975
+ const localVarPath = `/v1/contacts`;
16976
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16977
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16978
+ let baseOptions;
16979
+ if (configuration) {
16980
+ baseOptions = configuration.baseOptions;
16981
+ }
16982
+
16983
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16984
+ const localVarHeaderParameter = {} as any;
16985
+ const localVarQueryParameter = {} as any;
16986
+
16987
+
16988
+
16989
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16990
+
16991
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16992
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16993
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16994
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
16995
+
16996
+ return {
16997
+ url: toPathString(localVarUrlObj),
16998
+ options: localVarRequestOptions,
16999
+ };
17000
+ },
17001
+ /**
17002
+ *
17003
+ * @param {string} [search]
17004
+ * @param {number} [page]
17005
+ * @param {number} [pageSize]
17006
+ * @param {*} [options] Override http request option.
17007
+ * @throws {RequiredError}
17008
+ */
17009
+ contactsControllerFindContacts: async (search?: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17010
+ const localVarPath = `/v1/contacts`;
17011
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17012
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17013
+ let baseOptions;
17014
+ if (configuration) {
17015
+ baseOptions = configuration.baseOptions;
17016
+ }
17017
+
17018
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17019
+ const localVarHeaderParameter = {} as any;
17020
+ const localVarQueryParameter = {} as any;
17021
+
17022
+ if (search !== undefined) {
17023
+ localVarQueryParameter['search'] = search;
17024
+ }
17025
+
17026
+ if (page !== undefined) {
17027
+ localVarQueryParameter['page'] = page;
17028
+ }
17029
+
17030
+ if (pageSize !== undefined) {
17031
+ localVarQueryParameter['pageSize'] = pageSize;
17032
+ }
17033
+
17034
+
17035
+
17036
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17037
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17038
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17039
+
17040
+ return {
17041
+ url: toPathString(localVarUrlObj),
17042
+ options: localVarRequestOptions,
17043
+ };
17044
+ },
17045
+ }
17046
+ };
17047
+
17048
+ /**
17049
+ * ContactsApi - functional programming interface
17050
+ * @export
17051
+ */
17052
+ export const ContactsApiFp = function(configuration?: Configuration) {
17053
+ const localVarAxiosParamCreator = ContactsApiAxiosParamCreator(configuration)
17054
+ return {
17055
+ /**
17056
+ *
17057
+ * @param {Array<string>} requestBody
17058
+ * @param {*} [options] Override http request option.
17059
+ * @throws {RequiredError}
17060
+ */
17061
+ async contactsControllerAddContacts(requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactResponseDTO>> {
17062
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsControllerAddContacts(requestBody, options);
17063
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17064
+ const localVarOperationServerBasePath = operationServerMap['ContactsApi.contactsControllerAddContacts']?.[localVarOperationServerIndex]?.url;
17065
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17066
+ },
17067
+ /**
17068
+ *
17069
+ * @param {string} [search]
17070
+ * @param {number} [page]
17071
+ * @param {number} [pageSize]
17072
+ * @param {*} [options] Override http request option.
17073
+ * @throws {RequiredError}
17074
+ */
17075
+ async contactsControllerFindContacts(search?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactsResponseDTO>> {
17076
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsControllerFindContacts(search, page, pageSize, options);
17077
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17078
+ const localVarOperationServerBasePath = operationServerMap['ContactsApi.contactsControllerFindContacts']?.[localVarOperationServerIndex]?.url;
17079
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17080
+ },
17081
+ }
17082
+ };
17083
+
17084
+ /**
17085
+ * ContactsApi - factory interface
17086
+ * @export
17087
+ */
17088
+ export const ContactsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
17089
+ const localVarFp = ContactsApiFp(configuration)
17090
+ return {
17091
+ /**
17092
+ *
17093
+ * @param {Array<string>} requestBody
17094
+ * @param {*} [options] Override http request option.
17095
+ * @throws {RequiredError}
17096
+ */
17097
+ contactsControllerAddContacts(requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<ContactResponseDTO> {
17098
+ return localVarFp.contactsControllerAddContacts(requestBody, options).then((request) => request(axios, basePath));
17099
+ },
17100
+ /**
17101
+ *
17102
+ * @param {string} [search]
17103
+ * @param {number} [page]
17104
+ * @param {number} [pageSize]
17105
+ * @param {*} [options] Override http request option.
17106
+ * @throws {RequiredError}
17107
+ */
17108
+ contactsControllerFindContacts(search?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<ContactsResponseDTO> {
17109
+ return localVarFp.contactsControllerFindContacts(search, page, pageSize, options).then((request) => request(axios, basePath));
17110
+ },
17111
+ };
17112
+ };
17113
+
17114
+ /**
17115
+ * ContactsApi - object-oriented interface
17116
+ * @export
17117
+ * @class ContactsApi
17118
+ * @extends {BaseAPI}
17119
+ */
17120
+ export class ContactsApi extends BaseAPI {
17121
+ /**
17122
+ *
17123
+ * @param {Array<string>} requestBody
17124
+ * @param {*} [options] Override http request option.
17125
+ * @throws {RequiredError}
17126
+ * @memberof ContactsApi
17127
+ */
17128
+ public contactsControllerAddContacts(requestBody: Array<string>, options?: RawAxiosRequestConfig) {
17129
+ return ContactsApiFp(this.configuration).contactsControllerAddContacts(requestBody, options).then((request) => request(this.axios, this.basePath));
17130
+ }
17131
+
17132
+ /**
17133
+ *
17134
+ * @param {string} [search]
17135
+ * @param {number} [page]
17136
+ * @param {number} [pageSize]
17137
+ * @param {*} [options] Override http request option.
17138
+ * @throws {RequiredError}
17139
+ * @memberof ContactsApi
17140
+ */
17141
+ public contactsControllerFindContacts(search?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
17142
+ return ContactsApiFp(this.configuration).contactsControllerFindContacts(search, page, pageSize, options).then((request) => request(this.axios, this.basePath));
17143
+ }
17144
+ }
17145
+
17146
+
17147
+
16879
17148
  /**
16880
17149
  * CustomerApi - axios parameter creator
16881
17150
  * @export
@@ -0,0 +1,22 @@
1
+ # ContactResponseDTO
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **statusCode** | **number** | statusCode | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ContactResponseDTO } from './api';
15
+
16
+ const instance: ContactResponseDTO = {
17
+ statusCode,
18
+ message,
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)
@@ -0,0 +1,115 @@
1
+ # ContactsApi
2
+
3
+ All URIs are relative to *http://localhost:8080*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**contactsControllerAddContacts**](#contactscontrolleraddcontacts) | **POST** /v1/contacts | |
8
+ |[**contactsControllerFindContacts**](#contactscontrollerfindcontacts) | **GET** /v1/contacts | |
9
+
10
+ # **contactsControllerAddContacts**
11
+ > ContactResponseDTO contactsControllerAddContacts(requestBody)
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ ContactsApi,
19
+ Configuration
20
+ } from './api';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new ContactsApi(configuration);
24
+
25
+ let requestBody: Array<string>; //
26
+
27
+ const { status, data } = await apiInstance.contactsControllerAddContacts(
28
+ requestBody
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **requestBody** | **Array<string>**| | |
37
+
38
+
39
+ ### Return type
40
+
41
+ **ContactResponseDTO**
42
+
43
+ ### Authorization
44
+
45
+ No authorization required
46
+
47
+ ### HTTP request headers
48
+
49
+ - **Content-Type**: application/json
50
+ - **Accept**: application/json
51
+
52
+
53
+ ### HTTP response details
54
+ | Status code | Description | Response headers |
55
+ |-------------|-------------|------------------|
56
+ |**200** | | - |
57
+
58
+ [[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)
59
+
60
+ # **contactsControllerFindContacts**
61
+ > ContactsResponseDTO contactsControllerFindContacts()
62
+
63
+
64
+ ### Example
65
+
66
+ ```typescript
67
+ import {
68
+ ContactsApi,
69
+ Configuration
70
+ } from './api';
71
+
72
+ const configuration = new Configuration();
73
+ const apiInstance = new ContactsApi(configuration);
74
+
75
+ let search: string; // (optional) (default to undefined)
76
+ let page: number; // (optional) (default to undefined)
77
+ let pageSize: number; // (optional) (default to undefined)
78
+
79
+ const { status, data } = await apiInstance.contactsControllerFindContacts(
80
+ search,
81
+ page,
82
+ pageSize
83
+ );
84
+ ```
85
+
86
+ ### Parameters
87
+
88
+ |Name | Type | Description | Notes|
89
+ |------------- | ------------- | ------------- | -------------|
90
+ | **search** | [**string**] | | (optional) defaults to undefined|
91
+ | **page** | [**number**] | | (optional) defaults to undefined|
92
+ | **pageSize** | [**number**] | | (optional) defaults to undefined|
93
+
94
+
95
+ ### Return type
96
+
97
+ **ContactsResponseDTO**
98
+
99
+ ### Authorization
100
+
101
+ No authorization required
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: Not defined
106
+ - **Accept**: application/json
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | | - |
113
+
114
+ [[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)
115
+
@@ -0,0 +1,30 @@
1
+ # ContactsEntity
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **_id** | **string** | Unique identifier for the contacts | [optional] [default to undefined]
9
+ **firstName** | **string** | First name of the contacts | [optional] [default to undefined]
10
+ **lastName** | **string** | Last name of the contacts | [optional] [default to undefined]
11
+ **email** | **string** | Email address of the user | [optional] [default to undefined]
12
+ **mobileNumber** | **string** | Phone No | [optional] [default to undefined]
13
+ **profile** | **string** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { ContactsEntity } from './api';
19
+
20
+ const instance: ContactsEntity = {
21
+ _id,
22
+ firstName,
23
+ lastName,
24
+ email,
25
+ mobileNumber,
26
+ profile,
27
+ };
28
+ ```
29
+
30
+ [[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
+ # ContactsResponseDTO
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **statusCode** | **number** | statusCode | [default to undefined]
9
+ **data** | [**Array&lt;ContactsEntity&gt;**](ContactsEntity.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ContactsResponseDTO } from './api';
15
+
16
+ const instance: ContactsResponseDTO = {
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-18T17:02:54+05:30]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-18T17:02:54+05:30]
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]
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:02:54+05:30]
8
+ **date** | **string** | The start date of the booking | [default to 2025-08-18T17:10:42+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:02:54+05:30]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-08-18T18:02:54+05:30]
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]
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.7",
3
+ "version": "1.8.9",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},