@gooday_corp/gooday-api-client 1.9.3 → 1.9.8
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/api.ts +25 -16
- package/docs/ContactsApi.md +4 -11
- package/docs/ContactsEntity.md +2 -0
- package/docs/CreateBookingPayload.md +2 -2
- package/docs/CreateEventCollaboratorPayload.md +5 -1
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3314,6 +3314,12 @@ export interface ContactsEntity {
|
|
|
3314
3314
|
* @memberof ContactsEntity
|
|
3315
3315
|
*/
|
|
3316
3316
|
'mobileNumber'?: string;
|
|
3317
|
+
/**
|
|
3318
|
+
* Unique identifier for the contacts
|
|
3319
|
+
* @type {string}
|
|
3320
|
+
* @memberof ContactsEntity
|
|
3321
|
+
*/
|
|
3322
|
+
'goodayUser'?: string;
|
|
3317
3323
|
/**
|
|
3318
3324
|
*
|
|
3319
3325
|
* @type {string}
|
|
@@ -3663,6 +3669,12 @@ export interface CreateEventCollaboratorPayload {
|
|
|
3663
3669
|
* @memberof CreateEventCollaboratorPayload
|
|
3664
3670
|
*/
|
|
3665
3671
|
'mobile'?: string;
|
|
3672
|
+
/**
|
|
3673
|
+
* The mobile phone number of the customer
|
|
3674
|
+
* @type {string}
|
|
3675
|
+
* @memberof CreateEventCollaboratorPayload
|
|
3676
|
+
*/
|
|
3677
|
+
'mobileNumber'?: string;
|
|
3666
3678
|
/**
|
|
3667
3679
|
* The email address of the customer
|
|
3668
3680
|
* @type {string}
|
|
@@ -3681,6 +3693,12 @@ export interface CreateEventCollaboratorPayload {
|
|
|
3681
3693
|
* @memberof CreateEventCollaboratorPayload
|
|
3682
3694
|
*/
|
|
3683
3695
|
'status'?: CreateEventCollaboratorPayloadStatusEnum;
|
|
3696
|
+
/**
|
|
3697
|
+
* The unique identifier of the contact
|
|
3698
|
+
* @type {string}
|
|
3699
|
+
* @memberof CreateEventCollaboratorPayload
|
|
3700
|
+
*/
|
|
3701
|
+
'contactId'?: string;
|
|
3684
3702
|
}
|
|
3685
3703
|
|
|
3686
3704
|
export const CreateEventCollaboratorPayloadStatusEnum = {
|
|
@@ -17060,13 +17078,10 @@ export const ContactsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
17060
17078
|
},
|
|
17061
17079
|
/**
|
|
17062
17080
|
*
|
|
17063
|
-
* @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
|
|
17064
17081
|
* @param {*} [options] Override http request option.
|
|
17065
17082
|
* @throws {RequiredError}
|
|
17066
17083
|
*/
|
|
17067
|
-
contactsControllerContactStatus: async (
|
|
17068
|
-
// verify required parameter 'contactsPayloadDTO' is not null or undefined
|
|
17069
|
-
assertParamExists('contactsControllerContactStatus', 'contactsPayloadDTO', contactsPayloadDTO)
|
|
17084
|
+
contactsControllerContactStatus: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17070
17085
|
const localVarPath = `/v1/contacts/status`;
|
|
17071
17086
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17072
17087
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -17085,12 +17100,9 @@ export const ContactsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
17085
17100
|
|
|
17086
17101
|
|
|
17087
17102
|
|
|
17088
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17089
|
-
|
|
17090
17103
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17091
17104
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17092
17105
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17093
|
-
localVarRequestOptions.data = serializeDataIfNeeded(contactsPayloadDTO, localVarRequestOptions, configuration)
|
|
17094
17106
|
|
|
17095
17107
|
return {
|
|
17096
17108
|
url: toPathString(localVarUrlObj),
|
|
@@ -17169,12 +17181,11 @@ export const ContactsApiFp = function(configuration?: Configuration) {
|
|
|
17169
17181
|
},
|
|
17170
17182
|
/**
|
|
17171
17183
|
*
|
|
17172
|
-
* @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
|
|
17173
17184
|
* @param {*} [options] Override http request option.
|
|
17174
17185
|
* @throws {RequiredError}
|
|
17175
17186
|
*/
|
|
17176
|
-
async contactsControllerContactStatus(
|
|
17177
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsControllerContactStatus(
|
|
17187
|
+
async contactsControllerContactStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactStatusResponseDTO>> {
|
|
17188
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsControllerContactStatus(options);
|
|
17178
17189
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17179
17190
|
const localVarOperationServerBasePath = operationServerMap['ContactsApi.contactsControllerContactStatus']?.[localVarOperationServerIndex]?.url;
|
|
17180
17191
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -17214,12 +17225,11 @@ export const ContactsApiFactory = function (configuration?: Configuration, baseP
|
|
|
17214
17225
|
},
|
|
17215
17226
|
/**
|
|
17216
17227
|
*
|
|
17217
|
-
* @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
|
|
17218
17228
|
* @param {*} [options] Override http request option.
|
|
17219
17229
|
* @throws {RequiredError}
|
|
17220
17230
|
*/
|
|
17221
|
-
contactsControllerContactStatus(
|
|
17222
|
-
return localVarFp.contactsControllerContactStatus(
|
|
17231
|
+
contactsControllerContactStatus(options?: RawAxiosRequestConfig): AxiosPromise<ContactStatusResponseDTO> {
|
|
17232
|
+
return localVarFp.contactsControllerContactStatus(options).then((request) => request(axios, basePath));
|
|
17223
17233
|
},
|
|
17224
17234
|
/**
|
|
17225
17235
|
*
|
|
@@ -17255,13 +17265,12 @@ export class ContactsApi extends BaseAPI {
|
|
|
17255
17265
|
|
|
17256
17266
|
/**
|
|
17257
17267
|
*
|
|
17258
|
-
* @param {Array<ContactsPayloadDTO>} contactsPayloadDTO
|
|
17259
17268
|
* @param {*} [options] Override http request option.
|
|
17260
17269
|
* @throws {RequiredError}
|
|
17261
17270
|
* @memberof ContactsApi
|
|
17262
17271
|
*/
|
|
17263
|
-
public contactsControllerContactStatus(
|
|
17264
|
-
return ContactsApiFp(this.configuration).contactsControllerContactStatus(
|
|
17272
|
+
public contactsControllerContactStatus(options?: RawAxiosRequestConfig) {
|
|
17273
|
+
return ContactsApiFp(this.configuration).contactsControllerContactStatus(options).then((request) => request(this.axios, this.basePath));
|
|
17265
17274
|
}
|
|
17266
17275
|
|
|
17267
17276
|
/**
|
package/docs/ContactsApi.md
CHANGED
|
@@ -59,7 +59,7 @@ const { status, data } = await apiInstance.contactsControllerAddContacts(
|
|
|
59
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
60
|
|
|
61
61
|
# **contactsControllerContactStatus**
|
|
62
|
-
> ContactStatusResponseDTO contactsControllerContactStatus(
|
|
62
|
+
> ContactStatusResponseDTO contactsControllerContactStatus()
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
### Example
|
|
@@ -73,18 +73,11 @@ import {
|
|
|
73
73
|
const configuration = new Configuration();
|
|
74
74
|
const apiInstance = new ContactsApi(configuration);
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const { status, data } = await apiInstance.contactsControllerContactStatus(
|
|
79
|
-
contactsPayloadDTO
|
|
80
|
-
);
|
|
76
|
+
const { status, data } = await apiInstance.contactsControllerContactStatus();
|
|
81
77
|
```
|
|
82
78
|
|
|
83
79
|
### Parameters
|
|
84
|
-
|
|
85
|
-
|Name | Type | Description | Notes|
|
|
86
|
-
|------------- | ------------- | ------------- | -------------|
|
|
87
|
-
| **contactsPayloadDTO** | **Array<ContactsPayloadDTO>**| | |
|
|
80
|
+
This endpoint does not have any parameters.
|
|
88
81
|
|
|
89
82
|
|
|
90
83
|
### Return type
|
|
@@ -97,7 +90,7 @@ const { status, data } = await apiInstance.contactsControllerContactStatus(
|
|
|
97
90
|
|
|
98
91
|
### HTTP request headers
|
|
99
92
|
|
|
100
|
-
- **Content-Type**:
|
|
93
|
+
- **Content-Type**: Not defined
|
|
101
94
|
- **Accept**: application/json
|
|
102
95
|
|
|
103
96
|
|
package/docs/ContactsEntity.md
CHANGED
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
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
12
|
**mobileNumber** | **string** | Phone No | [optional] [default to undefined]
|
|
13
|
+
**goodayUser** | **string** | Unique identifier for the contacts | [optional] [default to undefined]
|
|
13
14
|
**profile** | **string** | | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
@@ -23,6 +24,7 @@ const instance: ContactsEntity = {
|
|
|
23
24
|
lastName,
|
|
24
25
|
email,
|
|
25
26
|
mobileNumber,
|
|
27
|
+
goodayUser,
|
|
26
28
|
profile,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
@@ -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-
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-08-28T09:17:04Z]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-28T09:17:04Z]
|
|
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]
|
|
@@ -7,10 +7,12 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**_id** | **string** | The unique identifier of the customer | [optional] [default to undefined]
|
|
9
9
|
**name** | **string** | The name of the customer | [optional] [default to 'John Doe']
|
|
10
|
-
**mobile** | **string** | The mobile phone number of the customer | [optional] [default to '
|
|
10
|
+
**mobile** | **string** | The mobile phone number of the customer | [optional] [default to '11234567890']
|
|
11
|
+
**mobileNumber** | **string** | The mobile phone number of the customer | [optional] [default to '+11234567890']
|
|
11
12
|
**email** | **string** | The email address of the customer | [optional] [default to 'example@example.com']
|
|
12
13
|
**goodayId** | **string** | The goodayId for the customer | [optional] [default to 'default-gooday-id']
|
|
13
14
|
**status** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**contactId** | **string** | The unique identifier of the contact | [optional] [default to undefined]
|
|
14
16
|
|
|
15
17
|
## Example
|
|
16
18
|
|
|
@@ -21,9 +23,11 @@ const instance: CreateEventCollaboratorPayload = {
|
|
|
21
23
|
_id,
|
|
22
24
|
name,
|
|
23
25
|
mobile,
|
|
26
|
+
mobileNumber,
|
|
24
27
|
email,
|
|
25
28
|
goodayId,
|
|
26
29
|
status,
|
|
30
|
+
contactId,
|
|
27
31
|
};
|
|
28
32
|
```
|
|
29
33
|
|
|
@@ -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-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-08-28T09:17:04Z]
|
|
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-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-08-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-08-28T09:17:04Z]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-08-28T10:17:04Z]
|
|
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]
|