@gooday_corp/gooday-api-client 1.1.34 → 1.1.38-alpha
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 +143 -5
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -62,6 +62,44 @@ export interface AcceptEventInvitePayload {
|
|
|
62
62
|
*/
|
|
63
63
|
'event': string;
|
|
64
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @export
|
|
68
|
+
* @interface ActivityDTO
|
|
69
|
+
*/
|
|
70
|
+
export interface ActivityDTO {
|
|
71
|
+
/**
|
|
72
|
+
* statusCode
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof ActivityDTO
|
|
75
|
+
*/
|
|
76
|
+
'statusCode': number;
|
|
77
|
+
/**
|
|
78
|
+
* User
|
|
79
|
+
* @type {Array<ActivityResponse>}
|
|
80
|
+
* @memberof ActivityDTO
|
|
81
|
+
*/
|
|
82
|
+
'data': Array<ActivityResponse>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @export
|
|
87
|
+
* @interface ActivityResponse
|
|
88
|
+
*/
|
|
89
|
+
export interface ActivityResponse {
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof ActivityResponse
|
|
94
|
+
*/
|
|
95
|
+
'label': string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof ActivityResponse
|
|
100
|
+
*/
|
|
101
|
+
'value': string;
|
|
102
|
+
}
|
|
65
103
|
/**
|
|
66
104
|
*
|
|
67
105
|
* @export
|
|
@@ -1431,7 +1469,22 @@ export interface CreateEventCustomerPayload {
|
|
|
1431
1469
|
* @memberof CreateEventCustomerPayload
|
|
1432
1470
|
*/
|
|
1433
1471
|
'goodayId'?: string;
|
|
1472
|
+
/**
|
|
1473
|
+
*
|
|
1474
|
+
* @type {string}
|
|
1475
|
+
* @memberof CreateEventCustomerPayload
|
|
1476
|
+
*/
|
|
1477
|
+
'status'?: CreateEventCustomerPayloadStatusEnum;
|
|
1434
1478
|
}
|
|
1479
|
+
|
|
1480
|
+
export const CreateEventCustomerPayloadStatusEnum = {
|
|
1481
|
+
Confirmed: 'CONFIRMED',
|
|
1482
|
+
Unconfirmed: 'UNCONFIRMED',
|
|
1483
|
+
Rejected: 'REJECTED'
|
|
1484
|
+
} as const;
|
|
1485
|
+
|
|
1486
|
+
export type CreateEventCustomerPayloadStatusEnum = typeof CreateEventCustomerPayloadStatusEnum[keyof typeof CreateEventCustomerPayloadStatusEnum];
|
|
1487
|
+
|
|
1435
1488
|
/**
|
|
1436
1489
|
*
|
|
1437
1490
|
* @export
|
|
@@ -2568,11 +2621,24 @@ export const NotificationEntityTypeEnum = {
|
|
|
2568
2621
|
BusinessBookingCreate: 'BUSINESS_BOOKING_CREATE',
|
|
2569
2622
|
BookingCreate: 'BOOKING_CREATE',
|
|
2570
2623
|
BookingCreateForUser: 'BOOKING_CREATE_FOR_USER',
|
|
2624
|
+
BookingCancel: 'BOOKING_CANCEL',
|
|
2625
|
+
BusinessBookingCancelBusiness: 'BUSINESS_BOOKING_CANCEL_BUSINESS',
|
|
2626
|
+
BusinessBookingCancelUserToBusinesss: 'BUSINESS_BOOKING_CANCEL_USER_TO_BUSINESSS',
|
|
2571
2627
|
BokingAccept: 'BOKING_ACCEPT',
|
|
2572
2628
|
BookingReject: 'BOOKING_REJECT',
|
|
2629
|
+
InviteTodo: 'INVITE_TODO',
|
|
2630
|
+
TodoReject: 'TODO_REJECT',
|
|
2631
|
+
TodoInviteApproved: 'TODO_INVITE_APPROVED',
|
|
2632
|
+
TodoDeleted: 'TODO_DELETED',
|
|
2633
|
+
TodoTaskDelete: 'TODO_TASK_DELETE',
|
|
2634
|
+
TodoTaskAssign: 'TODO_TASK_ASSIGN',
|
|
2635
|
+
TodoTaskUpdated: 'TODO_TASK_UPDATED',
|
|
2636
|
+
TodoUpdated: 'TODO_UPDATED',
|
|
2573
2637
|
EventInvite: 'EVENT_INVITE',
|
|
2574
2638
|
EventInviteReject: 'EVENT_INVITE_REJECT',
|
|
2575
|
-
EventInviteAccept: 'EVENT_INVITE_ACCEPT'
|
|
2639
|
+
EventInviteAccept: 'EVENT_INVITE_ACCEPT',
|
|
2640
|
+
EventUserRemoved: 'EVENT_USER_REMOVED',
|
|
2641
|
+
EventUserLeft: 'EVENT_USER_LEFT'
|
|
2576
2642
|
} as const;
|
|
2577
2643
|
|
|
2578
2644
|
export type NotificationEntityTypeEnum = typeof NotificationEntityTypeEnum[keyof typeof NotificationEntityTypeEnum];
|
|
@@ -3330,12 +3396,18 @@ export interface TaskEntity {
|
|
|
3330
3396
|
* @memberof TaskEntity
|
|
3331
3397
|
*/
|
|
3332
3398
|
'createdBy': string;
|
|
3399
|
+
/**
|
|
3400
|
+
* Assignee note
|
|
3401
|
+
* @type {string}
|
|
3402
|
+
* @memberof TaskEntity
|
|
3403
|
+
*/
|
|
3404
|
+
'note': string;
|
|
3333
3405
|
/**
|
|
3334
3406
|
* Assigned to
|
|
3335
|
-
* @type {Array<
|
|
3407
|
+
* @type {Array<UserEntity>}
|
|
3336
3408
|
* @memberof TaskEntity
|
|
3337
3409
|
*/
|
|
3338
|
-
'assignedTo': Array<
|
|
3410
|
+
'assignedTo': Array<UserEntity>;
|
|
3339
3411
|
/**
|
|
3340
3412
|
* Status
|
|
3341
3413
|
* @type {string}
|
|
@@ -9529,6 +9601,10 @@ export const TodoApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
9529
9601
|
const localVarHeaderParameter = {} as any;
|
|
9530
9602
|
const localVarQueryParameter = {} as any;
|
|
9531
9603
|
|
|
9604
|
+
// authentication bearer required
|
|
9605
|
+
// http bearer authentication required
|
|
9606
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9607
|
+
|
|
9532
9608
|
|
|
9533
9609
|
|
|
9534
9610
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -9997,7 +10073,7 @@ export const TodoApiFp = function(configuration?: Configuration) {
|
|
|
9997
10073
|
* @param {*} [options] Override http request option.
|
|
9998
10074
|
* @throws {RequiredError}
|
|
9999
10075
|
*/
|
|
10000
|
-
async todoControllerAssignTask(id: string, assignTaskPayload: AssignTaskPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
10076
|
+
async todoControllerAssignTask(id: string, assignTaskPayload: AssignTaskPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskDetailResponseDTO>> {
|
|
10001
10077
|
const localVarAxiosArgs = await localVarAxiosParamCreator.todoControllerAssignTask(id, assignTaskPayload, options);
|
|
10002
10078
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10003
10079
|
const localVarOperationServerBasePath = operationServerMap['TodoApi.todoControllerAssignTask']?.[localVarOperationServerIndex]?.url;
|
|
@@ -10163,7 +10239,7 @@ export const TodoApiFactory = function (configuration?: Configuration, basePath?
|
|
|
10163
10239
|
* @param {*} [options] Override http request option.
|
|
10164
10240
|
* @throws {RequiredError}
|
|
10165
10241
|
*/
|
|
10166
|
-
todoControllerAssignTask(id: string, assignTaskPayload: AssignTaskPayload, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
10242
|
+
todoControllerAssignTask(id: string, assignTaskPayload: AssignTaskPayload, options?: RawAxiosRequestConfig): AxiosPromise<TaskDetailResponseDTO> {
|
|
10167
10243
|
return localVarFp.todoControllerAssignTask(id, assignTaskPayload, options).then((request) => request(axios, basePath));
|
|
10168
10244
|
},
|
|
10169
10245
|
/**
|
|
@@ -10649,6 +10725,39 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
10649
10725
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10650
10726
|
localVarRequestOptions.data = serializeDataIfNeeded(userPermissionDTO, localVarRequestOptions, configuration)
|
|
10651
10727
|
|
|
10728
|
+
return {
|
|
10729
|
+
url: toPathString(localVarUrlObj),
|
|
10730
|
+
options: localVarRequestOptions,
|
|
10731
|
+
};
|
|
10732
|
+
},
|
|
10733
|
+
/**
|
|
10734
|
+
*
|
|
10735
|
+
* @param {*} [options] Override http request option.
|
|
10736
|
+
* @throws {RequiredError}
|
|
10737
|
+
*/
|
|
10738
|
+
usersControllerUserActivity: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10739
|
+
const localVarPath = `/v1/user/analytics/activity`;
|
|
10740
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10741
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10742
|
+
let baseOptions;
|
|
10743
|
+
if (configuration) {
|
|
10744
|
+
baseOptions = configuration.baseOptions;
|
|
10745
|
+
}
|
|
10746
|
+
|
|
10747
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10748
|
+
const localVarHeaderParameter = {} as any;
|
|
10749
|
+
const localVarQueryParameter = {} as any;
|
|
10750
|
+
|
|
10751
|
+
// authentication bearer required
|
|
10752
|
+
// http bearer authentication required
|
|
10753
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10754
|
+
|
|
10755
|
+
|
|
10756
|
+
|
|
10757
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10758
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10759
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10760
|
+
|
|
10652
10761
|
return {
|
|
10653
10762
|
url: toPathString(localVarUrlObj),
|
|
10654
10763
|
options: localVarRequestOptions,
|
|
@@ -10734,6 +10843,17 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
10734
10843
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerSyncUserPermissions']?.[localVarOperationServerIndex]?.url;
|
|
10735
10844
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10736
10845
|
},
|
|
10846
|
+
/**
|
|
10847
|
+
*
|
|
10848
|
+
* @param {*} [options] Override http request option.
|
|
10849
|
+
* @throws {RequiredError}
|
|
10850
|
+
*/
|
|
10851
|
+
async usersControllerUserActivity(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityDTO>> {
|
|
10852
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerUserActivity(options);
|
|
10853
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10854
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerUserActivity']?.[localVarOperationServerIndex]?.url;
|
|
10855
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10856
|
+
},
|
|
10737
10857
|
}
|
|
10738
10858
|
};
|
|
10739
10859
|
|
|
@@ -10796,6 +10916,14 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
10796
10916
|
usersControllerSyncUserPermissions(userPermissionDTO: UserPermissionDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
|
|
10797
10917
|
return localVarFp.usersControllerSyncUserPermissions(userPermissionDTO, options).then((request) => request(axios, basePath));
|
|
10798
10918
|
},
|
|
10919
|
+
/**
|
|
10920
|
+
*
|
|
10921
|
+
* @param {*} [options] Override http request option.
|
|
10922
|
+
* @throws {RequiredError}
|
|
10923
|
+
*/
|
|
10924
|
+
usersControllerUserActivity(options?: RawAxiosRequestConfig): AxiosPromise<ActivityDTO> {
|
|
10925
|
+
return localVarFp.usersControllerUserActivity(options).then((request) => request(axios, basePath));
|
|
10926
|
+
},
|
|
10799
10927
|
};
|
|
10800
10928
|
};
|
|
10801
10929
|
|
|
@@ -10869,6 +10997,16 @@ export class UsersApi extends BaseAPI {
|
|
|
10869
10997
|
public usersControllerSyncUserPermissions(userPermissionDTO: UserPermissionDTO, options?: RawAxiosRequestConfig) {
|
|
10870
10998
|
return UsersApiFp(this.configuration).usersControllerSyncUserPermissions(userPermissionDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10871
10999
|
}
|
|
11000
|
+
|
|
11001
|
+
/**
|
|
11002
|
+
*
|
|
11003
|
+
* @param {*} [options] Override http request option.
|
|
11004
|
+
* @throws {RequiredError}
|
|
11005
|
+
* @memberof UsersApi
|
|
11006
|
+
*/
|
|
11007
|
+
public usersControllerUserActivity(options?: RawAxiosRequestConfig) {
|
|
11008
|
+
return UsersApiFp(this.configuration).usersControllerUserActivity(options).then((request) => request(this.axios, this.basePath));
|
|
11009
|
+
}
|
|
10872
11010
|
}
|
|
10873
11011
|
|
|
10874
11012
|
|