@gooday_corp/gooday-api-client 1.1.58 → 1.1.60-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.
Files changed (2) hide show
  1. package/api.ts +156 -13
  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
@@ -8836,11 +8908,11 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
8836
8908
  *
8837
8909
  * @param {number} page
8838
8910
  * @param {number} pageSize
8839
- * @param {NotificationControllerGetNotificationCategoryEnum} category
8911
+ * @param {Array<NotificationControllerGetNotificationCategoryEnum>} category
8840
8912
  * @param {*} [options] Override http request option.
8841
8913
  * @throws {RequiredError}
8842
8914
  */
8843
- notificationControllerGetNotification: async (page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8915
+ notificationControllerGetNotification: async (page: number, pageSize: number, category: Array<NotificationControllerGetNotificationCategoryEnum>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8844
8916
  // verify required parameter 'page' is not null or undefined
8845
8917
  assertParamExists('notificationControllerGetNotification', 'page', page)
8846
8918
  // verify required parameter 'pageSize' is not null or undefined
@@ -8871,7 +8943,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
8871
8943
  localVarQueryParameter['pageSize'] = pageSize;
8872
8944
  }
8873
8945
 
8874
- if (category !== undefined) {
8946
+ if (category) {
8875
8947
  localVarQueryParameter['category'] = category;
8876
8948
  }
8877
8949
 
@@ -9023,11 +9095,11 @@ export const NotificationApiFp = function(configuration?: Configuration) {
9023
9095
  *
9024
9096
  * @param {number} page
9025
9097
  * @param {number} pageSize
9026
- * @param {NotificationControllerGetNotificationCategoryEnum} category
9098
+ * @param {Array<NotificationControllerGetNotificationCategoryEnum>} category
9027
9099
  * @param {*} [options] Override http request option.
9028
9100
  * @throws {RequiredError}
9029
9101
  */
9030
- async notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNotificationDTO>> {
9102
+ async notificationControllerGetNotification(page: number, pageSize: number, category: Array<NotificationControllerGetNotificationCategoryEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNotificationDTO>> {
9031
9103
  const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerGetNotification(page, pageSize, category, options);
9032
9104
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9033
9105
  const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerGetNotification']?.[localVarOperationServerIndex]?.url;
@@ -9091,11 +9163,11 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
9091
9163
  *
9092
9164
  * @param {number} page
9093
9165
  * @param {number} pageSize
9094
- * @param {NotificationControllerGetNotificationCategoryEnum} category
9166
+ * @param {Array<NotificationControllerGetNotificationCategoryEnum>} category
9095
9167
  * @param {*} [options] Override http request option.
9096
9168
  * @throws {RequiredError}
9097
9169
  */
9098
- notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
9170
+ notificationControllerGetNotification(page: number, pageSize: number, category: Array<NotificationControllerGetNotificationCategoryEnum>, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
9099
9171
  return localVarFp.notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(axios, basePath));
9100
9172
  },
9101
9173
  /**
@@ -9149,12 +9221,12 @@ export class NotificationApi extends BaseAPI {
9149
9221
  *
9150
9222
  * @param {number} page
9151
9223
  * @param {number} pageSize
9152
- * @param {NotificationControllerGetNotificationCategoryEnum} category
9224
+ * @param {Array<NotificationControllerGetNotificationCategoryEnum>} category
9153
9225
  * @param {*} [options] Override http request option.
9154
9226
  * @throws {RequiredError}
9155
9227
  * @memberof NotificationApi
9156
9228
  */
9157
- public notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig) {
9229
+ public notificationControllerGetNotification(page: number, pageSize: number, category: Array<NotificationControllerGetNotificationCategoryEnum>, options?: RawAxiosRequestConfig) {
9158
9230
  return NotificationApiFp(this.configuration).notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(this.axios, this.basePath));
9159
9231
  }
9160
9232
 
@@ -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-alpha",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},