@gooday_corp/gooday-api-client 1.1.58 → 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.
Files changed (2) hide show
  1. package/api.ts +147 -4
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -3471,22 +3471,41 @@ export interface TaskEntity {
3471
3471
  /**
3472
3472
  *
3473
3473
  * @export
3474
- * @interface TaskListReorderPayloadDTO
3474
+ * @interface TaskListReorderPayload
3475
3475
  */
3476
- export interface TaskListReorderPayloadDTO {
3476
+ export interface TaskListReorderPayload {
3477
3477
  /**
3478
3478
  * Unique identifier for the todo item
3479
3479
  * @type {string}
3480
- * @memberof TaskListReorderPayloadDTO
3480
+ * @memberof TaskListReorderPayload
3481
3481
  */
3482
3482
  'id': string;
3483
3483
  /**
3484
3484
  * Position of todo item
3485
3485
  * @type {number}
3486
- * @memberof TaskListReorderPayloadDTO
3486
+ * @memberof TaskListReorderPayload
3487
3487
  */
3488
3488
  'position': number;
3489
3489
  }
3490
+ /**
3491
+ *
3492
+ * @export
3493
+ * @interface TaskListReorderPayloadDTO
3494
+ */
3495
+ export interface TaskListReorderPayloadDTO {
3496
+ /**
3497
+ * Unique identifier for the todo item
3498
+ * @type {Array<TaskListReorderPayload>}
3499
+ * @memberof TaskListReorderPayloadDTO
3500
+ */
3501
+ 'update': Array<TaskListReorderPayload>;
3502
+ /**
3503
+ * Unique identifier for the todo item
3504
+ * @type {string}
3505
+ * @memberof TaskListReorderPayloadDTO
3506
+ */
3507
+ 'id': string;
3508
+ }
3490
3509
  /**
3491
3510
  *
3492
3511
  * @export
@@ -3575,6 +3594,59 @@ export interface TodoListResponseDTO {
3575
3594
  */
3576
3595
  'data': Array<TodoEntity>;
3577
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
+ }
3578
3650
  /**
3579
3651
  *
3580
3652
  * @export
@@ -10299,6 +10371,45 @@ export const TodoApiAxiosParamCreator = function (configuration?: Configuration)
10299
10371
  options: localVarRequestOptions,
10300
10372
  };
10301
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
+ },
10302
10413
  /**
10303
10414
  *
10304
10415
  * @param {string} id
@@ -10528,6 +10639,18 @@ export const TodoApiFp = function(configuration?: Configuration) {
10528
10639
  const localVarOperationServerBasePath = operationServerMap['TodoApi.todoControllerReorderTask']?.[localVarOperationServerIndex]?.url;
10529
10640
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10530
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
+ },
10531
10654
  /**
10532
10655
  *
10533
10656
  * @param {string} id
@@ -10664,6 +10787,15 @@ export const TodoApiFactory = function (configuration?: Configuration, basePath?
10664
10787
  todoControllerReorderTask(taskListReorderPayloadDTO: TaskListReorderPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<TodoDetailResponseDTO> {
10665
10788
  return localVarFp.todoControllerReorderTask(taskListReorderPayloadDTO, options).then((request) => request(axios, basePath));
10666
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
+ },
10667
10799
  /**
10668
10800
  *
10669
10801
  * @param {string} id
@@ -10816,6 +10948,17 @@ export class TodoApi extends BaseAPI {
10816
10948
  return TodoApiFp(this.configuration).todoControllerReorderTask(taskListReorderPayloadDTO, options).then((request) => request(this.axios, this.basePath));
10817
10949
  }
10818
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
+
10819
10962
  /**
10820
10963
  *
10821
10964
  * @param {string} id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.58",
3
+ "version": "1.1.60",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},