@gooday_corp/gooday-api-client 1.1.59 → 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 +133 -9
  2. 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
@@ -8855,11 +8908,11 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
8855
8908
  *
8856
8909
  * @param {number} page
8857
8910
  * @param {number} pageSize
8858
- * @param {NotificationControllerGetNotificationCategoryEnum} category
8911
+ * @param {Array<NotificationControllerGetNotificationCategoryEnum>} category
8859
8912
  * @param {*} [options] Override http request option.
8860
8913
  * @throws {RequiredError}
8861
8914
  */
8862
- 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> => {
8863
8916
  // verify required parameter 'page' is not null or undefined
8864
8917
  assertParamExists('notificationControllerGetNotification', 'page', page)
8865
8918
  // verify required parameter 'pageSize' is not null or undefined
@@ -8890,7 +8943,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
8890
8943
  localVarQueryParameter['pageSize'] = pageSize;
8891
8944
  }
8892
8945
 
8893
- if (category !== undefined) {
8946
+ if (category) {
8894
8947
  localVarQueryParameter['category'] = category;
8895
8948
  }
8896
8949
 
@@ -9042,11 +9095,11 @@ export const NotificationApiFp = function(configuration?: Configuration) {
9042
9095
  *
9043
9096
  * @param {number} page
9044
9097
  * @param {number} pageSize
9045
- * @param {NotificationControllerGetNotificationCategoryEnum} category
9098
+ * @param {Array<NotificationControllerGetNotificationCategoryEnum>} category
9046
9099
  * @param {*} [options] Override http request option.
9047
9100
  * @throws {RequiredError}
9048
9101
  */
9049
- 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>> {
9050
9103
  const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerGetNotification(page, pageSize, category, options);
9051
9104
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9052
9105
  const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerGetNotification']?.[localVarOperationServerIndex]?.url;
@@ -9110,11 +9163,11 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
9110
9163
  *
9111
9164
  * @param {number} page
9112
9165
  * @param {number} pageSize
9113
- * @param {NotificationControllerGetNotificationCategoryEnum} category
9166
+ * @param {Array<NotificationControllerGetNotificationCategoryEnum>} category
9114
9167
  * @param {*} [options] Override http request option.
9115
9168
  * @throws {RequiredError}
9116
9169
  */
9117
- notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
9170
+ notificationControllerGetNotification(page: number, pageSize: number, category: Array<NotificationControllerGetNotificationCategoryEnum>, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
9118
9171
  return localVarFp.notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(axios, basePath));
9119
9172
  },
9120
9173
  /**
@@ -9168,12 +9221,12 @@ export class NotificationApi extends BaseAPI {
9168
9221
  *
9169
9222
  * @param {number} page
9170
9223
  * @param {number} pageSize
9171
- * @param {NotificationControllerGetNotificationCategoryEnum} category
9224
+ * @param {Array<NotificationControllerGetNotificationCategoryEnum>} category
9172
9225
  * @param {*} [options] Override http request option.
9173
9226
  * @throws {RequiredError}
9174
9227
  * @memberof NotificationApi
9175
9228
  */
9176
- public notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig) {
9229
+ public notificationControllerGetNotification(page: number, pageSize: number, category: Array<NotificationControllerGetNotificationCategoryEnum>, options?: RawAxiosRequestConfig) {
9177
9230
  return NotificationApiFp(this.configuration).notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(this.axios, this.basePath));
9178
9231
  }
9179
9232
 
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.59",
3
+ "version": "1.1.60-alpha",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},