@gooday_corp/gooday-api-client 1.1.59 → 1.1.60
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 +124 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3594,6 +3594,59 @@ export interface TodoListResponseDTO {
|
|
|
3594
3594
|
*/
|
|
3595
3595
|
'data': Array<TodoEntity>;
|
|
3596
3596
|
}
|
|
3597
|
+
/**
|
|
3598
|
+
*
|
|
3599
|
+
* @export
|
|
3600
|
+
* @interface UndoPayloadDTO
|
|
3601
|
+
*/
|
|
3602
|
+
export interface UndoPayloadDTO {
|
|
3603
|
+
/**
|
|
3604
|
+
*
|
|
3605
|
+
* @type {Array<TaskEntity>}
|
|
3606
|
+
* @memberof UndoPayloadDTO
|
|
3607
|
+
*/
|
|
3608
|
+
'data': Array<TaskEntity>;
|
|
3609
|
+
/**
|
|
3610
|
+
*
|
|
3611
|
+
* @type {string}
|
|
3612
|
+
* @memberof UndoPayloadDTO
|
|
3613
|
+
*/
|
|
3614
|
+
'action': UndoPayloadDTOActionEnum;
|
|
3615
|
+
/**
|
|
3616
|
+
* Unique identifier for the todo item
|
|
3617
|
+
* @type {string}
|
|
3618
|
+
* @memberof UndoPayloadDTO
|
|
3619
|
+
*/
|
|
3620
|
+
'todoId'?: string;
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
export const UndoPayloadDTOActionEnum = {
|
|
3624
|
+
Update: 'UPDATE',
|
|
3625
|
+
Create: 'CREATE',
|
|
3626
|
+
Delete: 'DELETE'
|
|
3627
|
+
} as const;
|
|
3628
|
+
|
|
3629
|
+
export type UndoPayloadDTOActionEnum = typeof UndoPayloadDTOActionEnum[keyof typeof UndoPayloadDTOActionEnum];
|
|
3630
|
+
|
|
3631
|
+
/**
|
|
3632
|
+
*
|
|
3633
|
+
* @export
|
|
3634
|
+
* @interface UndoResponseDTO
|
|
3635
|
+
*/
|
|
3636
|
+
export interface UndoResponseDTO {
|
|
3637
|
+
/**
|
|
3638
|
+
* statusCode
|
|
3639
|
+
* @type {number}
|
|
3640
|
+
* @memberof UndoResponseDTO
|
|
3641
|
+
*/
|
|
3642
|
+
'statusCode': number;
|
|
3643
|
+
/**
|
|
3644
|
+
*
|
|
3645
|
+
* @type {string}
|
|
3646
|
+
* @memberof UndoResponseDTO
|
|
3647
|
+
*/
|
|
3648
|
+
'message': string;
|
|
3649
|
+
}
|
|
3597
3650
|
/**
|
|
3598
3651
|
*
|
|
3599
3652
|
* @export
|
|
@@ -10318,6 +10371,45 @@ export const TodoApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
10318
10371
|
options: localVarRequestOptions,
|
|
10319
10372
|
};
|
|
10320
10373
|
},
|
|
10374
|
+
/**
|
|
10375
|
+
*
|
|
10376
|
+
* @param {UndoPayloadDTO} undoPayloadDTO
|
|
10377
|
+
* @param {*} [options] Override http request option.
|
|
10378
|
+
* @throws {RequiredError}
|
|
10379
|
+
*/
|
|
10380
|
+
todoControllerUndo: async (undoPayloadDTO: UndoPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10381
|
+
// verify required parameter 'undoPayloadDTO' is not null or undefined
|
|
10382
|
+
assertParamExists('todoControllerUndo', 'undoPayloadDTO', undoPayloadDTO)
|
|
10383
|
+
const localVarPath = `/v1/todo/task/undo`;
|
|
10384
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10385
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10386
|
+
let baseOptions;
|
|
10387
|
+
if (configuration) {
|
|
10388
|
+
baseOptions = configuration.baseOptions;
|
|
10389
|
+
}
|
|
10390
|
+
|
|
10391
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10392
|
+
const localVarHeaderParameter = {} as any;
|
|
10393
|
+
const localVarQueryParameter = {} as any;
|
|
10394
|
+
|
|
10395
|
+
// authentication bearer required
|
|
10396
|
+
// http bearer authentication required
|
|
10397
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10398
|
+
|
|
10399
|
+
|
|
10400
|
+
|
|
10401
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10402
|
+
|
|
10403
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10404
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10405
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10406
|
+
localVarRequestOptions.data = serializeDataIfNeeded(undoPayloadDTO, localVarRequestOptions, configuration)
|
|
10407
|
+
|
|
10408
|
+
return {
|
|
10409
|
+
url: toPathString(localVarUrlObj),
|
|
10410
|
+
options: localVarRequestOptions,
|
|
10411
|
+
};
|
|
10412
|
+
},
|
|
10321
10413
|
/**
|
|
10322
10414
|
*
|
|
10323
10415
|
* @param {string} id
|
|
@@ -10547,6 +10639,18 @@ export const TodoApiFp = function(configuration?: Configuration) {
|
|
|
10547
10639
|
const localVarOperationServerBasePath = operationServerMap['TodoApi.todoControllerReorderTask']?.[localVarOperationServerIndex]?.url;
|
|
10548
10640
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10549
10641
|
},
|
|
10642
|
+
/**
|
|
10643
|
+
*
|
|
10644
|
+
* @param {UndoPayloadDTO} undoPayloadDTO
|
|
10645
|
+
* @param {*} [options] Override http request option.
|
|
10646
|
+
* @throws {RequiredError}
|
|
10647
|
+
*/
|
|
10648
|
+
async todoControllerUndo(undoPayloadDTO: UndoPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UndoResponseDTO>> {
|
|
10649
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.todoControllerUndo(undoPayloadDTO, options);
|
|
10650
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10651
|
+
const localVarOperationServerBasePath = operationServerMap['TodoApi.todoControllerUndo']?.[localVarOperationServerIndex]?.url;
|
|
10652
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10653
|
+
},
|
|
10550
10654
|
/**
|
|
10551
10655
|
*
|
|
10552
10656
|
* @param {string} id
|
|
@@ -10683,6 +10787,15 @@ export const TodoApiFactory = function (configuration?: Configuration, basePath?
|
|
|
10683
10787
|
todoControllerReorderTask(taskListReorderPayloadDTO: TaskListReorderPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<TodoDetailResponseDTO> {
|
|
10684
10788
|
return localVarFp.todoControllerReorderTask(taskListReorderPayloadDTO, options).then((request) => request(axios, basePath));
|
|
10685
10789
|
},
|
|
10790
|
+
/**
|
|
10791
|
+
*
|
|
10792
|
+
* @param {UndoPayloadDTO} undoPayloadDTO
|
|
10793
|
+
* @param {*} [options] Override http request option.
|
|
10794
|
+
* @throws {RequiredError}
|
|
10795
|
+
*/
|
|
10796
|
+
todoControllerUndo(undoPayloadDTO: UndoPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<UndoResponseDTO> {
|
|
10797
|
+
return localVarFp.todoControllerUndo(undoPayloadDTO, options).then((request) => request(axios, basePath));
|
|
10798
|
+
},
|
|
10686
10799
|
/**
|
|
10687
10800
|
*
|
|
10688
10801
|
* @param {string} id
|
|
@@ -10835,6 +10948,17 @@ export class TodoApi extends BaseAPI {
|
|
|
10835
10948
|
return TodoApiFp(this.configuration).todoControllerReorderTask(taskListReorderPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10836
10949
|
}
|
|
10837
10950
|
|
|
10951
|
+
/**
|
|
10952
|
+
*
|
|
10953
|
+
* @param {UndoPayloadDTO} undoPayloadDTO
|
|
10954
|
+
* @param {*} [options] Override http request option.
|
|
10955
|
+
* @throws {RequiredError}
|
|
10956
|
+
* @memberof TodoApi
|
|
10957
|
+
*/
|
|
10958
|
+
public todoControllerUndo(undoPayloadDTO: UndoPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
10959
|
+
return TodoApiFp(this.configuration).todoControllerUndo(undoPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10960
|
+
}
|
|
10961
|
+
|
|
10838
10962
|
/**
|
|
10839
10963
|
*
|
|
10840
10964
|
* @param {string} id
|