@gooday_corp/gooday-api-client 1.3.100 → 1.3.102
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/.openapi-generator/FILES +2 -0
- package/api.ts +121 -0
- package/docs/CreateBookingPayload.md +1 -1
- package/docs/NotificationActions.md +24 -0
- package/docs/NotificationApi.md +52 -0
- package/docs/NotificationEntity.md +4 -0
- package/docs/NotificationReadsDTO.md +20 -0
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -200,12 +200,14 @@ docs/NewPasswordPayloadDTO.md
|
|
|
200
200
|
docs/NewPasswordResponseDTO.md
|
|
201
201
|
docs/NotificationActionEventPayload.md
|
|
202
202
|
docs/NotificationActionEventResponseDTO.md
|
|
203
|
+
docs/NotificationActions.md
|
|
203
204
|
docs/NotificationApi.md
|
|
204
205
|
docs/NotificationCountDTO.md
|
|
205
206
|
docs/NotificationCountResponseDTO.md
|
|
206
207
|
docs/NotificationEntity.md
|
|
207
208
|
docs/NotificationReadDTO.md
|
|
208
209
|
docs/NotificationReadResponseDTO.md
|
|
210
|
+
docs/NotificationReadsDTO.md
|
|
209
211
|
docs/OAuthApi.md
|
|
210
212
|
docs/OnBoardingDTO.md
|
|
211
213
|
docs/OnBoardingResponseDTO.md
|
package/api.ts
CHANGED
|
@@ -5832,6 +5832,31 @@ export interface NotificationActionEventResponseDTO {
|
|
|
5832
5832
|
*/
|
|
5833
5833
|
'success': boolean;
|
|
5834
5834
|
}
|
|
5835
|
+
/**
|
|
5836
|
+
*
|
|
5837
|
+
* @export
|
|
5838
|
+
* @interface NotificationActions
|
|
5839
|
+
*/
|
|
5840
|
+
export interface NotificationActions {
|
|
5841
|
+
/**
|
|
5842
|
+
*
|
|
5843
|
+
* @type {string}
|
|
5844
|
+
* @memberof NotificationActions
|
|
5845
|
+
*/
|
|
5846
|
+
'type': string;
|
|
5847
|
+
/**
|
|
5848
|
+
*
|
|
5849
|
+
* @type {string}
|
|
5850
|
+
* @memberof NotificationActions
|
|
5851
|
+
*/
|
|
5852
|
+
'label': string;
|
|
5853
|
+
/**
|
|
5854
|
+
*
|
|
5855
|
+
* @type {string}
|
|
5856
|
+
* @memberof NotificationActions
|
|
5857
|
+
*/
|
|
5858
|
+
'target': string;
|
|
5859
|
+
}
|
|
5835
5860
|
/**
|
|
5836
5861
|
*
|
|
5837
5862
|
* @export
|
|
@@ -5925,6 +5950,18 @@ export interface NotificationEntity {
|
|
|
5925
5950
|
* @memberof NotificationEntity
|
|
5926
5951
|
*/
|
|
5927
5952
|
'isRead': boolean;
|
|
5953
|
+
/**
|
|
5954
|
+
*
|
|
5955
|
+
* @type {boolean}
|
|
5956
|
+
* @memberof NotificationEntity
|
|
5957
|
+
*/
|
|
5958
|
+
'isAction': boolean;
|
|
5959
|
+
/**
|
|
5960
|
+
* Additional metadata associated with the notification (optional)
|
|
5961
|
+
* @type {NotificationActions}
|
|
5962
|
+
* @memberof NotificationEntity
|
|
5963
|
+
*/
|
|
5964
|
+
'actions'?: NotificationActions;
|
|
5928
5965
|
}
|
|
5929
5966
|
|
|
5930
5967
|
export const NotificationEntityTypeEnum = {
|
|
@@ -6006,6 +6043,19 @@ export interface NotificationReadResponseDTO {
|
|
|
6006
6043
|
*/
|
|
6007
6044
|
'data': boolean;
|
|
6008
6045
|
}
|
|
6046
|
+
/**
|
|
6047
|
+
*
|
|
6048
|
+
* @export
|
|
6049
|
+
* @interface NotificationReadsDTO
|
|
6050
|
+
*/
|
|
6051
|
+
export interface NotificationReadsDTO {
|
|
6052
|
+
/**
|
|
6053
|
+
* Notification Ids
|
|
6054
|
+
* @type {Array<string>}
|
|
6055
|
+
* @memberof NotificationReadsDTO
|
|
6056
|
+
*/
|
|
6057
|
+
'notificationId': Array<string>;
|
|
6058
|
+
}
|
|
6009
6059
|
/**
|
|
6010
6060
|
*
|
|
6011
6061
|
* @export
|
|
@@ -18833,6 +18883,45 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
18833
18883
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18834
18884
|
localVarRequestOptions.data = serializeDataIfNeeded(notificationReadDTO, localVarRequestOptions, configuration)
|
|
18835
18885
|
|
|
18886
|
+
return {
|
|
18887
|
+
url: toPathString(localVarUrlObj),
|
|
18888
|
+
options: localVarRequestOptions,
|
|
18889
|
+
};
|
|
18890
|
+
},
|
|
18891
|
+
/**
|
|
18892
|
+
*
|
|
18893
|
+
* @param {NotificationReadsDTO} notificationReadsDTO
|
|
18894
|
+
* @param {*} [options] Override http request option.
|
|
18895
|
+
* @throws {RequiredError}
|
|
18896
|
+
*/
|
|
18897
|
+
notificationControllerReadNotifications: async (notificationReadsDTO: NotificationReadsDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18898
|
+
// verify required parameter 'notificationReadsDTO' is not null or undefined
|
|
18899
|
+
assertParamExists('notificationControllerReadNotifications', 'notificationReadsDTO', notificationReadsDTO)
|
|
18900
|
+
const localVarPath = `/v1/notification/reads`;
|
|
18901
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18902
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18903
|
+
let baseOptions;
|
|
18904
|
+
if (configuration) {
|
|
18905
|
+
baseOptions = configuration.baseOptions;
|
|
18906
|
+
}
|
|
18907
|
+
|
|
18908
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
18909
|
+
const localVarHeaderParameter = {} as any;
|
|
18910
|
+
const localVarQueryParameter = {} as any;
|
|
18911
|
+
|
|
18912
|
+
// authentication bearer required
|
|
18913
|
+
// http bearer authentication required
|
|
18914
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
18915
|
+
|
|
18916
|
+
|
|
18917
|
+
|
|
18918
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18919
|
+
|
|
18920
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18921
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18922
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18923
|
+
localVarRequestOptions.data = serializeDataIfNeeded(notificationReadsDTO, localVarRequestOptions, configuration)
|
|
18924
|
+
|
|
18836
18925
|
return {
|
|
18837
18926
|
url: toPathString(localVarUrlObj),
|
|
18838
18927
|
options: localVarRequestOptions,
|
|
@@ -18909,6 +18998,18 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
|
18909
18998
|
const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerReadNotification']?.[localVarOperationServerIndex]?.url;
|
|
18910
18999
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18911
19000
|
},
|
|
19001
|
+
/**
|
|
19002
|
+
*
|
|
19003
|
+
* @param {NotificationReadsDTO} notificationReadsDTO
|
|
19004
|
+
* @param {*} [options] Override http request option.
|
|
19005
|
+
* @throws {RequiredError}
|
|
19006
|
+
*/
|
|
19007
|
+
async notificationControllerReadNotifications(notificationReadsDTO: NotificationReadsDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationReadResponseDTO>> {
|
|
19008
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerReadNotifications(notificationReadsDTO, options);
|
|
19009
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19010
|
+
const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerReadNotifications']?.[localVarOperationServerIndex]?.url;
|
|
19011
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19012
|
+
},
|
|
18912
19013
|
}
|
|
18913
19014
|
};
|
|
18914
19015
|
|
|
@@ -18965,6 +19066,15 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
|
18965
19066
|
notificationControllerReadNotification(notificationReadDTO: NotificationReadDTO, options?: RawAxiosRequestConfig): AxiosPromise<NotificationReadResponseDTO> {
|
|
18966
19067
|
return localVarFp.notificationControllerReadNotification(notificationReadDTO, options).then((request) => request(axios, basePath));
|
|
18967
19068
|
},
|
|
19069
|
+
/**
|
|
19070
|
+
*
|
|
19071
|
+
* @param {NotificationReadsDTO} notificationReadsDTO
|
|
19072
|
+
* @param {*} [options] Override http request option.
|
|
19073
|
+
* @throws {RequiredError}
|
|
19074
|
+
*/
|
|
19075
|
+
notificationControllerReadNotifications(notificationReadsDTO: NotificationReadsDTO, options?: RawAxiosRequestConfig): AxiosPromise<NotificationReadResponseDTO> {
|
|
19076
|
+
return localVarFp.notificationControllerReadNotifications(notificationReadsDTO, options).then((request) => request(axios, basePath));
|
|
19077
|
+
},
|
|
18968
19078
|
};
|
|
18969
19079
|
};
|
|
18970
19080
|
|
|
@@ -19030,6 +19140,17 @@ export class NotificationApi extends BaseAPI {
|
|
|
19030
19140
|
public notificationControllerReadNotification(notificationReadDTO: NotificationReadDTO, options?: RawAxiosRequestConfig) {
|
|
19031
19141
|
return NotificationApiFp(this.configuration).notificationControllerReadNotification(notificationReadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
19032
19142
|
}
|
|
19143
|
+
|
|
19144
|
+
/**
|
|
19145
|
+
*
|
|
19146
|
+
* @param {NotificationReadsDTO} notificationReadsDTO
|
|
19147
|
+
* @param {*} [options] Override http request option.
|
|
19148
|
+
* @throws {RequiredError}
|
|
19149
|
+
* @memberof NotificationApi
|
|
19150
|
+
*/
|
|
19151
|
+
public notificationControllerReadNotifications(notificationReadsDTO: NotificationReadsDTO, options?: RawAxiosRequestConfig) {
|
|
19152
|
+
return NotificationApiFp(this.configuration).notificationControllerReadNotifications(notificationReadsDTO, options).then((request) => request(this.axios, this.basePath));
|
|
19153
|
+
}
|
|
19033
19154
|
}
|
|
19034
19155
|
|
|
19035
19156
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
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-06-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-06-11T12:44:15Z]
|
|
10
10
|
**from** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**to** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**venue** | **string** | The venue of the booking | [default to undefined]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# NotificationActions
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [default to undefined]
|
|
9
|
+
**label** | **string** | | [default to undefined]
|
|
10
|
+
**target** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { NotificationActions } from './api';
|
|
16
|
+
|
|
17
|
+
const instance: NotificationActions = {
|
|
18
|
+
type,
|
|
19
|
+
label,
|
|
20
|
+
target,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/NotificationApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
9
9
|
|[**notificationControllerNotificationCount**](#notificationcontrollernotificationcount) | **POST** /v1/notification/count | |
|
|
10
10
|
|[**notificationControllerReadMarkAllNotification**](#notificationcontrollerreadmarkallnotification) | **POST** /v1/notification/read-mark | |
|
|
11
11
|
|[**notificationControllerReadNotification**](#notificationcontrollerreadnotification) | **POST** /v1/notification/read | |
|
|
12
|
+
|[**notificationControllerReadNotifications**](#notificationcontrollerreadnotifications) | **POST** /v1/notification/reads | |
|
|
12
13
|
|
|
13
14
|
# **notificationControllerActionEventEmitter**
|
|
14
15
|
> NotificationActionEventResponseDTO notificationControllerActionEventEmitter(notificationActionEventPayload)
|
|
@@ -263,3 +264,54 @@ const { status, data } = await apiInstance.notificationControllerReadNotificatio
|
|
|
263
264
|
|
|
264
265
|
[[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)
|
|
265
266
|
|
|
267
|
+
# **notificationControllerReadNotifications**
|
|
268
|
+
> NotificationReadResponseDTO notificationControllerReadNotifications(notificationReadsDTO)
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### Example
|
|
272
|
+
|
|
273
|
+
```typescript
|
|
274
|
+
import {
|
|
275
|
+
NotificationApi,
|
|
276
|
+
Configuration,
|
|
277
|
+
NotificationReadsDTO
|
|
278
|
+
} from './api';
|
|
279
|
+
|
|
280
|
+
const configuration = new Configuration();
|
|
281
|
+
const apiInstance = new NotificationApi(configuration);
|
|
282
|
+
|
|
283
|
+
let notificationReadsDTO: NotificationReadsDTO; //
|
|
284
|
+
|
|
285
|
+
const { status, data } = await apiInstance.notificationControllerReadNotifications(
|
|
286
|
+
notificationReadsDTO
|
|
287
|
+
);
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
### Parameters
|
|
291
|
+
|
|
292
|
+
|Name | Type | Description | Notes|
|
|
293
|
+
|------------- | ------------- | ------------- | -------------|
|
|
294
|
+
| **notificationReadsDTO** | **NotificationReadsDTO**| | |
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
### Return type
|
|
298
|
+
|
|
299
|
+
**NotificationReadResponseDTO**
|
|
300
|
+
|
|
301
|
+
### Authorization
|
|
302
|
+
|
|
303
|
+
[bearer](../README.md#bearer)
|
|
304
|
+
|
|
305
|
+
### HTTP request headers
|
|
306
|
+
|
|
307
|
+
- **Content-Type**: application/json
|
|
308
|
+
- **Accept**: application/json
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
### HTTP response details
|
|
312
|
+
| Status code | Description | Response headers |
|
|
313
|
+
|-------------|-------------|------------------|
|
|
314
|
+
|**200** | | - |
|
|
315
|
+
|
|
316
|
+
[[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)
|
|
317
|
+
|
|
@@ -12,6 +12,8 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**type** | **string** | The type of the notification (optional) | [optional] [default to undefined]
|
|
13
13
|
**metadata** | **object** | Additional metadata associated with the notification (optional) | [optional] [default to undefined]
|
|
14
14
|
**isRead** | **boolean** | Indicates if the notification has been read (optional) | [default to false]
|
|
15
|
+
**isAction** | **boolean** | | [default to false]
|
|
16
|
+
**actions** | [**NotificationActions**](NotificationActions.md) | Additional metadata associated with the notification (optional) | [optional] [default to undefined]
|
|
15
17
|
|
|
16
18
|
## Example
|
|
17
19
|
|
|
@@ -26,6 +28,8 @@ const instance: NotificationEntity = {
|
|
|
26
28
|
type,
|
|
27
29
|
metadata,
|
|
28
30
|
isRead,
|
|
31
|
+
isAction,
|
|
32
|
+
actions,
|
|
29
33
|
};
|
|
30
34
|
```
|
|
31
35
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# NotificationReadsDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**notificationId** | **Array<string>** | Notification Ids | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { NotificationReadsDTO } from './api';
|
|
14
|
+
|
|
15
|
+
const instance: NotificationReadsDTO = {
|
|
16
|
+
notificationId,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[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,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-06-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-06-11T12:44:15Z]
|
|
9
9
|
**from** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**to** | **string** | | [optional] [default to undefined]
|
|
11
11
|
|
|
@@ -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-06-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-06-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-06-11T12:44:15Z]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-06-11T13:44:15Z]
|
|
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]
|