@gooday_corp/gooday-api-client 1.2.44 → 1.2.49

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 +272 -57
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -483,11 +483,11 @@ export interface BookingEntity {
483
483
  */
484
484
  'business': string;
485
485
  /**
486
- * List of customers in the booking
486
+ * List of collaborators in the booking
487
487
  * @type {Array<object>}
488
488
  * @memberof BookingEntity
489
489
  */
490
- 'customers': Array<object>;
490
+ 'collaborators': Array<object>;
491
491
  /**
492
492
  * Users associated with the booking
493
493
  * @type {Array<string>}
@@ -691,11 +691,11 @@ export interface BookingResponse {
691
691
  */
692
692
  'paymentMethodId': string;
693
693
  /**
694
- * The list of customers associated with the booking
695
- * @type {Array<CreateBookingCustomerPayload>}
694
+ * The list of collaborators associated with the booking
695
+ * @type {Array<CreateBookingCollaboratorPayload>}
696
696
  * @memberof BookingResponse
697
697
  */
698
- 'customers': Array<CreateBookingCustomerPayload>;
698
+ 'collaborators': Array<CreateBookingCollaboratorPayload>;
699
699
  /**
700
700
  * Booking method
701
701
  * @type {string}
@@ -2100,37 +2100,37 @@ export interface CategoryListResponse {
2100
2100
  /**
2101
2101
  *
2102
2102
  * @export
2103
- * @interface CreateBookingCustomerPayload
2103
+ * @interface CreateBookingCollaboratorPayload
2104
2104
  */
2105
- export interface CreateBookingCustomerPayload {
2105
+ export interface CreateBookingCollaboratorPayload {
2106
2106
  /**
2107
2107
  * The unique identifier of the customer
2108
2108
  * @type {string}
2109
- * @memberof CreateBookingCustomerPayload
2109
+ * @memberof CreateBookingCollaboratorPayload
2110
2110
  */
2111
2111
  '_id'?: string;
2112
2112
  /**
2113
2113
  * The name of the customer
2114
2114
  * @type {string}
2115
- * @memberof CreateBookingCustomerPayload
2115
+ * @memberof CreateBookingCollaboratorPayload
2116
2116
  */
2117
2117
  'name'?: string;
2118
2118
  /**
2119
2119
  * The mobile phone number of the customer
2120
2120
  * @type {string}
2121
- * @memberof CreateBookingCustomerPayload
2121
+ * @memberof CreateBookingCollaboratorPayload
2122
2122
  */
2123
2123
  'mobile'?: string;
2124
2124
  /**
2125
2125
  * The email address of the customer
2126
2126
  * @type {string}
2127
- * @memberof CreateBookingCustomerPayload
2127
+ * @memberof CreateBookingCollaboratorPayload
2128
2128
  */
2129
2129
  'email'?: string;
2130
2130
  /**
2131
2131
  * The goodayId for the customer
2132
2132
  * @type {string}
2133
- * @memberof CreateBookingCustomerPayload
2133
+ * @memberof CreateBookingCollaboratorPayload
2134
2134
  */
2135
2135
  'goodayId'?: string;
2136
2136
  }
@@ -2195,11 +2195,11 @@ export interface CreateBookingPayload {
2195
2195
  */
2196
2196
  'paymentMethodId': string;
2197
2197
  /**
2198
- * The list of customers associated with the booking
2199
- * @type {Array<CreateBookingCustomerPayload>}
2198
+ * The list of collaborators associated with the booking
2199
+ * @type {Array<CreateBookingCollaboratorPayload>}
2200
2200
  * @memberof CreateBookingPayload
2201
2201
  */
2202
- 'customers': Array<CreateBookingCustomerPayload>;
2202
+ 'collaborators': Array<CreateBookingCollaboratorPayload>;
2203
2203
  /**
2204
2204
  * Booking method
2205
2205
  * @type {string}
@@ -2314,91 +2314,91 @@ export interface CreateCustomerPayloadDTO {
2314
2314
  /**
2315
2315
  *
2316
2316
  * @export
2317
- * @interface CreateEventCustomer
2317
+ * @interface CreateEventCollaborator
2318
2318
  */
2319
- export interface CreateEventCustomer {
2319
+ export interface CreateEventCollaborator {
2320
2320
  /**
2321
2321
  * The unique identifier of the customer
2322
2322
  * @type {string}
2323
- * @memberof CreateEventCustomer
2323
+ * @memberof CreateEventCollaborator
2324
2324
  */
2325
2325
  '_id'?: string;
2326
2326
  /**
2327
2327
  * The name of the customer
2328
2328
  * @type {string}
2329
- * @memberof CreateEventCustomer
2329
+ * @memberof CreateEventCollaborator
2330
2330
  */
2331
2331
  'name'?: string;
2332
2332
  /**
2333
2333
  * The mobile phone number of the customer
2334
2334
  * @type {string}
2335
- * @memberof CreateEventCustomer
2335
+ * @memberof CreateEventCollaborator
2336
2336
  */
2337
2337
  'mobile'?: string;
2338
2338
  /**
2339
2339
  * The email address of the customer
2340
2340
  * @type {string}
2341
- * @memberof CreateEventCustomer
2341
+ * @memberof CreateEventCollaborator
2342
2342
  */
2343
2343
  'email'?: string;
2344
2344
  /**
2345
2345
  * The goodayId for the customer
2346
2346
  * @type {string}
2347
- * @memberof CreateEventCustomer
2347
+ * @memberof CreateEventCollaborator
2348
2348
  */
2349
2349
  'goodayId'?: string;
2350
2350
  }
2351
2351
  /**
2352
2352
  *
2353
2353
  * @export
2354
- * @interface CreateEventCustomerPayload
2354
+ * @interface CreateEventCollaboratorPayload
2355
2355
  */
2356
- export interface CreateEventCustomerPayload {
2356
+ export interface CreateEventCollaboratorPayload {
2357
2357
  /**
2358
2358
  * The unique identifier of the customer
2359
2359
  * @type {string}
2360
- * @memberof CreateEventCustomerPayload
2360
+ * @memberof CreateEventCollaboratorPayload
2361
2361
  */
2362
2362
  '_id'?: string;
2363
2363
  /**
2364
2364
  * The name of the customer
2365
2365
  * @type {string}
2366
- * @memberof CreateEventCustomerPayload
2366
+ * @memberof CreateEventCollaboratorPayload
2367
2367
  */
2368
2368
  'name'?: string;
2369
2369
  /**
2370
2370
  * The mobile phone number of the customer
2371
2371
  * @type {string}
2372
- * @memberof CreateEventCustomerPayload
2372
+ * @memberof CreateEventCollaboratorPayload
2373
2373
  */
2374
2374
  'mobile'?: string;
2375
2375
  /**
2376
2376
  * The email address of the customer
2377
2377
  * @type {string}
2378
- * @memberof CreateEventCustomerPayload
2378
+ * @memberof CreateEventCollaboratorPayload
2379
2379
  */
2380
2380
  'email'?: string;
2381
2381
  /**
2382
2382
  * The goodayId for the customer
2383
2383
  * @type {string}
2384
- * @memberof CreateEventCustomerPayload
2384
+ * @memberof CreateEventCollaboratorPayload
2385
2385
  */
2386
2386
  'goodayId'?: string;
2387
2387
  /**
2388
2388
  *
2389
2389
  * @type {string}
2390
- * @memberof CreateEventCustomerPayload
2390
+ * @memberof CreateEventCollaboratorPayload
2391
2391
  */
2392
- 'status'?: CreateEventCustomerPayloadStatusEnum;
2392
+ 'status'?: CreateEventCollaboratorPayloadStatusEnum;
2393
2393
  }
2394
2394
 
2395
- export const CreateEventCustomerPayloadStatusEnum = {
2395
+ export const CreateEventCollaboratorPayloadStatusEnum = {
2396
2396
  Confirmed: 'CONFIRMED',
2397
2397
  Unconfirmed: 'UNCONFIRMED',
2398
2398
  Rejected: 'REJECTED'
2399
2399
  } as const;
2400
2400
 
2401
- export type CreateEventCustomerPayloadStatusEnum = typeof CreateEventCustomerPayloadStatusEnum[keyof typeof CreateEventCustomerPayloadStatusEnum];
2401
+ export type CreateEventCollaboratorPayloadStatusEnum = typeof CreateEventCollaboratorPayloadStatusEnum[keyof typeof CreateEventCollaboratorPayloadStatusEnum];
2402
2402
 
2403
2403
  /**
2404
2404
  *
@@ -2443,11 +2443,11 @@ export interface CreateEventPayload {
2443
2443
  */
2444
2444
  'calendar': Array<string>;
2445
2445
  /**
2446
- * The list of customers associated with the event
2447
- * @type {Array<CreateEventCustomerPayload>}
2446
+ * The list of collaborators associated with the event
2447
+ * @type {Array<CreateEventCollaboratorPayload>}
2448
2448
  * @memberof CreateEventPayload
2449
2449
  */
2450
- 'customers': Array<CreateEventCustomerPayload>;
2450
+ 'collaborators': Array<CreateEventCollaboratorPayload>;
2451
2451
  /**
2452
2452
  *
2453
2453
  * @type {LocationDTO}
@@ -2527,48 +2527,48 @@ export interface CreateTodoPayload {
2527
2527
  /**
2528
2528
  *
2529
2529
  * @export
2530
- * @interface CreateWaitlistBookingCustomerPayload
2530
+ * @interface CreateWaitlistBookingCollaboratorPayload
2531
2531
  */
2532
- export interface CreateWaitlistBookingCustomerPayload {
2532
+ export interface CreateWaitlistBookingCollaboratorPayload {
2533
2533
  /**
2534
2534
  * The unique identifier of the customer
2535
2535
  * @type {string}
2536
- * @memberof CreateWaitlistBookingCustomerPayload
2536
+ * @memberof CreateWaitlistBookingCollaboratorPayload
2537
2537
  */
2538
2538
  '_id'?: string;
2539
2539
  /**
2540
2540
  * The name of the customer
2541
2541
  * @type {string}
2542
- * @memberof CreateWaitlistBookingCustomerPayload
2542
+ * @memberof CreateWaitlistBookingCollaboratorPayload
2543
2543
  */
2544
2544
  'name'?: string;
2545
2545
  /**
2546
2546
  * The mobile phone number of the customer
2547
2547
  * @type {string}
2548
- * @memberof CreateWaitlistBookingCustomerPayload
2548
+ * @memberof CreateWaitlistBookingCollaboratorPayload
2549
2549
  */
2550
2550
  'mobile'?: string;
2551
2551
  /**
2552
2552
  * The email address of the customer
2553
2553
  * @type {string}
2554
- * @memberof CreateWaitlistBookingCustomerPayload
2554
+ * @memberof CreateWaitlistBookingCollaboratorPayload
2555
2555
  */
2556
2556
  'email'?: string;
2557
2557
  /**
2558
2558
  * The goodayId for the customer
2559
2559
  * @type {string}
2560
- * @memberof CreateWaitlistBookingCustomerPayload
2560
+ * @memberof CreateWaitlistBookingCollaboratorPayload
2561
2561
  */
2562
2562
  'goodayId'?: string;
2563
2563
  /**
2564
2564
  * Status of the
2565
2565
  * @type {string}
2566
- * @memberof CreateWaitlistBookingCustomerPayload
2566
+ * @memberof CreateWaitlistBookingCollaboratorPayload
2567
2567
  */
2568
- 'status': CreateWaitlistBookingCustomerPayloadStatusEnum;
2568
+ 'status': CreateWaitlistBookingCollaboratorPayloadStatusEnum;
2569
2569
  }
2570
2570
 
2571
- export const CreateWaitlistBookingCustomerPayloadStatusEnum = {
2571
+ export const CreateWaitlistBookingCollaboratorPayloadStatusEnum = {
2572
2572
  CheckedIn: 'CHECKED_IN',
2573
2573
  Confirmed: 'CONFIRMED',
2574
2574
  Unconfirmed: 'UNCONFIRMED',
@@ -2578,7 +2578,7 @@ export const CreateWaitlistBookingCustomerPayloadStatusEnum = {
2578
2578
  Cancelled: 'CANCELLED'
2579
2579
  } as const;
2580
2580
 
2581
- export type CreateWaitlistBookingCustomerPayloadStatusEnum = typeof CreateWaitlistBookingCustomerPayloadStatusEnum[keyof typeof CreateWaitlistBookingCustomerPayloadStatusEnum];
2581
+ export type CreateWaitlistBookingCollaboratorPayloadStatusEnum = typeof CreateWaitlistBookingCollaboratorPayloadStatusEnum[keyof typeof CreateWaitlistBookingCollaboratorPayloadStatusEnum];
2582
2582
 
2583
2583
  /**
2584
2584
  *
@@ -2912,10 +2912,10 @@ export interface EventResponse {
2912
2912
  'endDate': string;
2913
2913
  /**
2914
2914
  * Create event customer
2915
- * @type {Array<CreateEventCustomer>}
2915
+ * @type {Array<CreateEventCollaborator>}
2916
2916
  * @memberof EventResponse
2917
2917
  */
2918
- 'customers': Array<CreateEventCustomer>;
2918
+ 'collaborators': Array<CreateEventCollaborator>;
2919
2919
  /**
2920
2920
  * The user details
2921
2921
  * @type {Array<UserEntity>}
@@ -5389,6 +5389,12 @@ export interface TaskEntity {
5389
5389
  * @memberof TaskEntity
5390
5390
  */
5391
5391
  'isDeleted'?: boolean;
5392
+ /**
5393
+ *
5394
+ * @type {string}
5395
+ * @memberof TaskEntity
5396
+ */
5397
+ 'todo'?: string;
5392
5398
  }
5393
5399
  /**
5394
5400
  *
@@ -6048,11 +6054,11 @@ export interface WaitlistEntity {
6048
6054
  */
6049
6055
  'method': WaitlistEntityMethodEnum;
6050
6056
  /**
6051
- * The list of customers associated with the booking
6052
- * @type {Array<CreateWaitlistBookingCustomerPayload>}
6057
+ * The list of collaborators associated with the booking
6058
+ * @type {Array<CreateWaitlistBookingCollaboratorPayload>}
6053
6059
  * @memberof WaitlistEntity
6054
6060
  */
6055
- 'customers': Array<CreateWaitlistBookingCustomerPayload>;
6061
+ 'collaborators': Array<CreateWaitlistBookingCollaboratorPayload>;
6056
6062
  /**
6057
6063
  * Status of the waitlist
6058
6064
  * @type {string}
@@ -6132,11 +6138,11 @@ export interface WaitlistPayloadDTO {
6132
6138
  */
6133
6139
  'business': string;
6134
6140
  /**
6135
- * The list of customers associated with the waitlist
6136
- * @type {Array<CreateWaitlistBookingCustomerPayload>}
6141
+ * The list of collaborators associated with the waitlist
6142
+ * @type {Array<CreateWaitlistBookingCollaboratorPayload>}
6137
6143
  * @memberof WaitlistPayloadDTO
6138
6144
  */
6139
- 'customers': Array<CreateWaitlistBookingCustomerPayload>;
6145
+ 'collaborators': Array<CreateWaitlistBookingCollaboratorPayload>;
6140
6146
  /**
6141
6147
  *
6142
6148
  * @type {Array<string>}
@@ -7667,6 +7673,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
7667
7673
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7668
7674
  localVarRequestOptions.data = serializeDataIfNeeded(rejectBookingInvitePayload, localVarRequestOptions, configuration)
7669
7675
 
7676
+ return {
7677
+ url: toPathString(localVarUrlObj),
7678
+ options: localVarRequestOptions,
7679
+ };
7680
+ },
7681
+ /**
7682
+ *
7683
+ * @param {CreateBookingPayload} createBookingPayload
7684
+ * @param {*} [options] Override http request option.
7685
+ * @throws {RequiredError}
7686
+ */
7687
+ bookingVersion2ControllerCreateBooking: async (createBookingPayload: CreateBookingPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7688
+ // verify required parameter 'createBookingPayload' is not null or undefined
7689
+ assertParamExists('bookingVersion2ControllerCreateBooking', 'createBookingPayload', createBookingPayload)
7690
+ const localVarPath = `/v2/booking`;
7691
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7692
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7693
+ let baseOptions;
7694
+ if (configuration) {
7695
+ baseOptions = configuration.baseOptions;
7696
+ }
7697
+
7698
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7699
+ const localVarHeaderParameter = {} as any;
7700
+ const localVarQueryParameter = {} as any;
7701
+
7702
+ // authentication bearer required
7703
+ // http bearer authentication required
7704
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7705
+
7706
+
7707
+
7708
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7709
+
7710
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7711
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7712
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7713
+ localVarRequestOptions.data = serializeDataIfNeeded(createBookingPayload, localVarRequestOptions, configuration)
7714
+
7670
7715
  return {
7671
7716
  url: toPathString(localVarUrlObj),
7672
7717
  options: localVarRequestOptions,
@@ -7766,6 +7811,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
7766
7811
  const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerRejectBookingInvite']?.[localVarOperationServerIndex]?.url;
7767
7812
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7768
7813
  },
7814
+ /**
7815
+ *
7816
+ * @param {CreateBookingPayload} createBookingPayload
7817
+ * @param {*} [options] Override http request option.
7818
+ * @throws {RequiredError}
7819
+ */
7820
+ async bookingVersion2ControllerCreateBooking(createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponseDTO>> {
7821
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingVersion2ControllerCreateBooking(createBookingPayload, options);
7822
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7823
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingVersion2ControllerCreateBooking']?.[localVarOperationServerIndex]?.url;
7824
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7825
+ },
7769
7826
  }
7770
7827
  };
7771
7828
 
@@ -7839,6 +7896,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
7839
7896
  bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingRequestResponseDTO> {
7840
7897
  return localVarFp.bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(axios, basePath));
7841
7898
  },
7899
+ /**
7900
+ *
7901
+ * @param {CreateBookingPayload} createBookingPayload
7902
+ * @param {*} [options] Override http request option.
7903
+ * @throws {RequiredError}
7904
+ */
7905
+ bookingVersion2ControllerCreateBooking(createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponseDTO> {
7906
+ return localVarFp.bookingVersion2ControllerCreateBooking(createBookingPayload, options).then((request) => request(axios, basePath));
7907
+ },
7842
7908
  };
7843
7909
  };
7844
7910
 
@@ -7925,6 +7991,17 @@ export class BookingApi extends BaseAPI {
7925
7991
  public bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig) {
7926
7992
  return BookingApiFp(this.configuration).bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(this.axios, this.basePath));
7927
7993
  }
7994
+
7995
+ /**
7996
+ *
7997
+ * @param {CreateBookingPayload} createBookingPayload
7998
+ * @param {*} [options] Override http request option.
7999
+ * @throws {RequiredError}
8000
+ * @memberof BookingApi
8001
+ */
8002
+ public bookingVersion2ControllerCreateBooking(createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig) {
8003
+ return BookingApiFp(this.configuration).bookingVersion2ControllerCreateBooking(createBookingPayload, options).then((request) => request(this.axios, this.basePath));
8004
+ }
7928
8005
  }
7929
8006
 
7930
8007
 
@@ -14496,7 +14573,7 @@ export const TodoApiAxiosParamCreator = function (configuration?: Configuration)
14496
14573
  todoControllerDeleteTask: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14497
14574
  // verify required parameter 'id' is not null or undefined
14498
14575
  assertParamExists('todoControllerDeleteTask', 'id', id)
14499
- const localVarPath = `/v1/todo/task/{id}`
14576
+ const localVarPath = `/v1/todo/remove/task/{id}`
14500
14577
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14501
14578
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14502
14579
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14505,7 +14582,7 @@ export const TodoApiAxiosParamCreator = function (configuration?: Configuration)
14505
14582
  baseOptions = configuration.baseOptions;
14506
14583
  }
14507
14584
 
14508
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
14585
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14509
14586
  const localVarHeaderParameter = {} as any;
14510
14587
  const localVarQueryParameter = {} as any;
14511
14588
 
@@ -14733,6 +14810,43 @@ export const TodoApiAxiosParamCreator = function (configuration?: Configuration)
14733
14810
 
14734
14811
 
14735
14812
 
14813
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14814
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14815
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14816
+
14817
+ return {
14818
+ url: toPathString(localVarUrlObj),
14819
+ options: localVarRequestOptions,
14820
+ };
14821
+ },
14822
+ /**
14823
+ *
14824
+ * @param {string} id
14825
+ * @param {*} [options] Override http request option.
14826
+ * @throws {RequiredError}
14827
+ */
14828
+ todoControllerPermentDeleteTask: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14829
+ // verify required parameter 'id' is not null or undefined
14830
+ assertParamExists('todoControllerPermentDeleteTask', 'id', id)
14831
+ const localVarPath = `/v1/todo/task/{id}`
14832
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14833
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14834
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14835
+ let baseOptions;
14836
+ if (configuration) {
14837
+ baseOptions = configuration.baseOptions;
14838
+ }
14839
+
14840
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
14841
+ const localVarHeaderParameter = {} as any;
14842
+ const localVarQueryParameter = {} as any;
14843
+
14844
+ // authentication bearer required
14845
+ // http bearer authentication required
14846
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14847
+
14848
+
14849
+
14736
14850
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14737
14851
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14738
14852
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -14814,6 +14928,43 @@ export const TodoApiAxiosParamCreator = function (configuration?: Configuration)
14814
14928
  options: localVarRequestOptions,
14815
14929
  };
14816
14930
  },
14931
+ /**
14932
+ *
14933
+ * @param {string} id
14934
+ * @param {*} [options] Override http request option.
14935
+ * @throws {RequiredError}
14936
+ */
14937
+ todoControllerRestoreTask: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14938
+ // verify required parameter 'id' is not null or undefined
14939
+ assertParamExists('todoControllerRestoreTask', 'id', id)
14940
+ const localVarPath = `/v1/todo/restore/task/{id}`
14941
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14942
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14943
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14944
+ let baseOptions;
14945
+ if (configuration) {
14946
+ baseOptions = configuration.baseOptions;
14947
+ }
14948
+
14949
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14950
+ const localVarHeaderParameter = {} as any;
14951
+ const localVarQueryParameter = {} as any;
14952
+
14953
+ // authentication bearer required
14954
+ // http bearer authentication required
14955
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14956
+
14957
+
14958
+
14959
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14960
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14961
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14962
+
14963
+ return {
14964
+ url: toPathString(localVarUrlObj),
14965
+ options: localVarRequestOptions,
14966
+ };
14967
+ },
14817
14968
  /**
14818
14969
  *
14819
14970
  * @param {UndoPayloadDTO} undoPayloadDTO
@@ -15080,6 +15231,18 @@ export const TodoApiFp = function(configuration?: Configuration) {
15080
15231
  const localVarOperationServerBasePath = operationServerMap['TodoApi.todoControllerListTodo']?.[localVarOperationServerIndex]?.url;
15081
15232
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15082
15233
  },
15234
+ /**
15235
+ *
15236
+ * @param {string} id
15237
+ * @param {*} [options] Override http request option.
15238
+ * @throws {RequiredError}
15239
+ */
15240
+ async todoControllerPermentDeleteTask(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
15241
+ const localVarAxiosArgs = await localVarAxiosParamCreator.todoControllerPermentDeleteTask(id, options);
15242
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15243
+ const localVarOperationServerBasePath = operationServerMap['TodoApi.todoControllerPermentDeleteTask']?.[localVarOperationServerIndex]?.url;
15244
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15245
+ },
15083
15246
  /**
15084
15247
  *
15085
15248
  * @param {string} id
@@ -15104,6 +15267,18 @@ export const TodoApiFp = function(configuration?: Configuration) {
15104
15267
  const localVarOperationServerBasePath = operationServerMap['TodoApi.todoControllerReorderTask']?.[localVarOperationServerIndex]?.url;
15105
15268
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15106
15269
  },
15270
+ /**
15271
+ *
15272
+ * @param {string} id
15273
+ * @param {*} [options] Override http request option.
15274
+ * @throws {RequiredError}
15275
+ */
15276
+ async todoControllerRestoreTask(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
15277
+ const localVarAxiosArgs = await localVarAxiosParamCreator.todoControllerRestoreTask(id, options);
15278
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15279
+ const localVarOperationServerBasePath = operationServerMap['TodoApi.todoControllerRestoreTask']?.[localVarOperationServerIndex]?.url;
15280
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15281
+ },
15107
15282
  /**
15108
15283
  *
15109
15284
  * @param {UndoPayloadDTO} undoPayloadDTO
@@ -15250,6 +15425,15 @@ export const TodoApiFactory = function (configuration?: Configuration, basePath?
15250
15425
  todoControllerListTodo(options?: RawAxiosRequestConfig): AxiosPromise<TodoListResponseDTO> {
15251
15426
  return localVarFp.todoControllerListTodo(options).then((request) => request(axios, basePath));
15252
15427
  },
15428
+ /**
15429
+ *
15430
+ * @param {string} id
15431
+ * @param {*} [options] Override http request option.
15432
+ * @throws {RequiredError}
15433
+ */
15434
+ todoControllerPermentDeleteTask(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15435
+ return localVarFp.todoControllerPermentDeleteTask(id, options).then((request) => request(axios, basePath));
15436
+ },
15253
15437
  /**
15254
15438
  *
15255
15439
  * @param {string} id
@@ -15268,6 +15452,15 @@ export const TodoApiFactory = function (configuration?: Configuration, basePath?
15268
15452
  todoControllerReorderTask(taskListReorderPayloadDTO: TaskListReorderPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<TodoDetailResponseDTO> {
15269
15453
  return localVarFp.todoControllerReorderTask(taskListReorderPayloadDTO, options).then((request) => request(axios, basePath));
15270
15454
  },
15455
+ /**
15456
+ *
15457
+ * @param {string} id
15458
+ * @param {*} [options] Override http request option.
15459
+ * @throws {RequiredError}
15460
+ */
15461
+ todoControllerRestoreTask(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15462
+ return localVarFp.todoControllerRestoreTask(id, options).then((request) => request(axios, basePath));
15463
+ },
15271
15464
  /**
15272
15465
  *
15273
15466
  * @param {UndoPayloadDTO} undoPayloadDTO
@@ -15427,6 +15620,17 @@ export class TodoApi extends BaseAPI {
15427
15620
  return TodoApiFp(this.configuration).todoControllerListTodo(options).then((request) => request(this.axios, this.basePath));
15428
15621
  }
15429
15622
 
15623
+ /**
15624
+ *
15625
+ * @param {string} id
15626
+ * @param {*} [options] Override http request option.
15627
+ * @throws {RequiredError}
15628
+ * @memberof TodoApi
15629
+ */
15630
+ public todoControllerPermentDeleteTask(id: string, options?: RawAxiosRequestConfig) {
15631
+ return TodoApiFp(this.configuration).todoControllerPermentDeleteTask(id, options).then((request) => request(this.axios, this.basePath));
15632
+ }
15633
+
15430
15634
  /**
15431
15635
  *
15432
15636
  * @param {string} id
@@ -15449,6 +15653,17 @@ export class TodoApi extends BaseAPI {
15449
15653
  return TodoApiFp(this.configuration).todoControllerReorderTask(taskListReorderPayloadDTO, options).then((request) => request(this.axios, this.basePath));
15450
15654
  }
15451
15655
 
15656
+ /**
15657
+ *
15658
+ * @param {string} id
15659
+ * @param {*} [options] Override http request option.
15660
+ * @throws {RequiredError}
15661
+ * @memberof TodoApi
15662
+ */
15663
+ public todoControllerRestoreTask(id: string, options?: RawAxiosRequestConfig) {
15664
+ return TodoApiFp(this.configuration).todoControllerRestoreTask(id, options).then((request) => request(this.axios, this.basePath));
15665
+ }
15666
+
15452
15667
  /**
15453
15668
  *
15454
15669
  * @param {UndoPayloadDTO} undoPayloadDTO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.44",
3
+ "version": "1.2.49",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},