@gooday_corp/gooday-api-client 1.2.121 → 1.3.0

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 +11 -304
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -2234,105 +2234,6 @@ export interface CalendarDTO {
2234
2234
  */
2235
2235
  'data': boolean;
2236
2236
  }
2237
- /**
2238
- *
2239
- * @export
2240
- * @interface CalendarEventDTO
2241
- */
2242
- export interface CalendarEventDTO {
2243
- /**
2244
- * Calendar bookings response
2245
- * @type {Array<CalendarEventResponse>}
2246
- * @memberof CalendarEventDTO
2247
- */
2248
- 'bookings': Array<CalendarEventResponse>;
2249
- /**
2250
- * Calendar events response
2251
- * @type {Array<CalendarEventResponse>}
2252
- * @memberof CalendarEventDTO
2253
- */
2254
- 'events': Array<CalendarEventResponse>;
2255
- }
2256
- /**
2257
- *
2258
- * @export
2259
- * @interface CalendarEventResponse
2260
- */
2261
- export interface CalendarEventResponse {
2262
- /**
2263
- * The unique identifier of the events
2264
- * @type {string}
2265
- * @memberof CalendarEventResponse
2266
- */
2267
- '_id': string;
2268
- /**
2269
- *
2270
- * @type {string}
2271
- * @memberof CalendarEventResponse
2272
- */
2273
- 'title': string;
2274
- /**
2275
- *
2276
- * @type {string}
2277
- * @memberof CalendarEventResponse
2278
- */
2279
- 'createdBy': string;
2280
- /**
2281
- *
2282
- * @type {string}
2283
- * @memberof CalendarEventResponse
2284
- */
2285
- 'startDate': string;
2286
- /**
2287
- *
2288
- * @type {string}
2289
- * @memberof CalendarEventResponse
2290
- */
2291
- 'endDate': string;
2292
- /**
2293
- *
2294
- * @type {Array<UserEntity>}
2295
- * @memberof CalendarEventResponse
2296
- */
2297
- 'collaborators': Array<UserEntity>;
2298
- /**
2299
- *
2300
- * @type {string}
2301
- * @memberof CalendarEventResponse
2302
- */
2303
- 'profile': string;
2304
- /**
2305
- *
2306
- * @type {Array<string>}
2307
- * @memberof CalendarEventResponse
2308
- */
2309
- 'calendar': Array<string>;
2310
- /**
2311
- *
2312
- * @type {string}
2313
- * @memberof CalendarEventResponse
2314
- */
2315
- 'status': string;
2316
- }
2317
- /**
2318
- *
2319
- * @export
2320
- * @interface CalendarEventResponseDTO
2321
- */
2322
- export interface CalendarEventResponseDTO {
2323
- /**
2324
- * statusCode
2325
- * @type {number}
2326
- * @memberof CalendarEventResponseDTO
2327
- */
2328
- 'statusCode': number;
2329
- /**
2330
- * Calendar events response
2331
- * @type {CalendarEventDTO}
2332
- * @memberof CalendarEventResponseDTO
2333
- */
2334
- 'data': CalendarEventDTO;
2335
- }
2336
2237
  /**
2337
2238
  *
2338
2239
  * @export
@@ -2581,25 +2482,6 @@ export interface CalendarSlotsDTO {
2581
2482
  */
2582
2483
  'data': Array<CalendarSlotResponse>;
2583
2484
  }
2584
- /**
2585
- *
2586
- * @export
2587
- * @interface CalendarSocialEventResponseDTO
2588
- */
2589
- export interface CalendarSocialEventResponseDTO {
2590
- /**
2591
- * statusCode
2592
- * @type {number}
2593
- * @memberof CalendarSocialEventResponseDTO
2594
- */
2595
- 'statusCode': number;
2596
- /**
2597
- * Calendar events response
2598
- * @type {Array<CalendarEventResponse>}
2599
- * @memberof CalendarSocialEventResponseDTO
2600
- */
2601
- 'data': Array<CalendarEventResponse>;
2602
- }
2603
2485
  /**
2604
2486
  *
2605
2487
  * @export
@@ -3040,47 +2922,29 @@ export type CreateEventCollaboratorPayloadStatusEnum = typeof CreateEventCollabo
3040
2922
  */
3041
2923
  export interface CreateEventPayload {
3042
2924
  /**
3043
- * Start date of event
3044
- * @type {string}
3045
- * @memberof CreateEventPayload
3046
- */
3047
- 'startDate': string;
3048
- /**
3049
- * End date of event
3050
- * @type {string}
3051
- * @memberof CreateEventPayload
3052
- */
3053
- 'endDate': string;
3054
- /**
3055
- * Start hour of an event
3056
- * @type {string}
3057
- * @memberof CreateEventPayload
3058
- */
3059
- 'from': string;
3060
- /**
3061
- * End hour of an event
2925
+ * The unique identifier of the customer
3062
2926
  * @type {string}
3063
2927
  * @memberof CreateEventPayload
3064
2928
  */
3065
- 'to': string;
2929
+ '_id'?: string;
3066
2930
  /**
3067
- *
2931
+ * The title of the event
3068
2932
  * @type {string}
3069
2933
  * @memberof CreateEventPayload
3070
2934
  */
3071
- 'repeat': CreateEventPayloadRepeatEnum;
2935
+ 'title': string;
3072
2936
  /**
3073
- * The unique identifier of the customer
2937
+ * The start date of the event
3074
2938
  * @type {string}
3075
2939
  * @memberof CreateEventPayload
3076
2940
  */
3077
- '_id'?: string;
2941
+ 'startDate': string;
3078
2942
  /**
3079
- * The title of the event
2943
+ * The end date of the event
3080
2944
  * @type {string}
3081
2945
  * @memberof CreateEventPayload
3082
2946
  */
3083
- 'title': string;
2947
+ 'endDate': string;
3084
2948
  /**
3085
2949
  * Notes attached with booking
3086
2950
  * @type {string}
@@ -3112,17 +2976,6 @@ export interface CreateEventPayload {
3112
2976
  */
3113
2977
  'images': Array<string>;
3114
2978
  }
3115
-
3116
- export const CreateEventPayloadRepeatEnum = {
3117
- None: 'NONE',
3118
- Daily: 'DAILY',
3119
- Weekly: 'WEEKLY',
3120
- Monthly: 'MONTHLY',
3121
- Year: 'YEAR'
3122
- } as const;
3123
-
3124
- export type CreateEventPayloadRepeatEnum = typeof CreateEventPayloadRepeatEnum[keyof typeof CreateEventPayloadRepeatEnum];
3125
-
3126
2979
  /**
3127
2980
  *
3128
2981
  * @export
@@ -4938,7 +4791,7 @@ export const NotificationEntityTypeEnum = {
4938
4791
  BookingUserLeaveToBusiness: 'BOOKING_USER_LEAVE_TO_BUSINESS',
4939
4792
  BusinessBookingCancelBusiness: 'BUSINESS_BOOKING_CANCEL_BUSINESS',
4940
4793
  BusinessBookingCancelUserToBusiness: 'BUSINESS_BOOKING_CANCEL_USER_TO_BUSINESS',
4941
- BookingAccept: 'BOOKING_ACCEPT',
4794
+ BokingAccept: 'BOKING_ACCEPT',
4942
4795
  BookingReject: 'BOOKING_REJECT',
4943
4796
  InviteTodo: 'INVITE_TODO',
4944
4797
  TodoReject: 'TODO_REJECT',
@@ -4954,10 +4807,7 @@ export const NotificationEntityTypeEnum = {
4954
4807
  EventUserRemoved: 'EVENT_USER_REMOVED',
4955
4808
  EventUserLeft: 'EVENT_USER_LEFT',
4956
4809
  EventDetailsUpdate: 'EVENT_DETAILS_UPDATE',
4957
- CalendarDetailsUpdate: 'CALENDAR_DETAILS_UPDATE',
4958
- CalendarRemove: 'CALENDAR_REMOVE',
4959
- BookingRescheduled: 'BOOKING_RESCHEDULED',
4960
- EventRescheduled: 'EVENT_RESCHEDULED'
4810
+ CalendarDetailsUpdate: 'CALENDAR_DETAILS_UPDATE'
4961
4811
  } as const;
4962
4812
 
4963
4813
  export type NotificationEntityTypeEnum = typeof NotificationEntityTypeEnum[keyof typeof NotificationEntityTypeEnum];
@@ -6990,8 +6840,7 @@ export interface UserEntity {
6990
6840
 
6991
6841
  export const UserEntityRoleEnum = {
6992
6842
  Business: 'business',
6993
- User: 'user',
6994
- Admin: 'admin'
6843
+ User: 'user'
6995
6844
  } as const;
6996
6845
 
6997
6846
  export type UserEntityRoleEnum = typeof UserEntityRoleEnum[keyof typeof UserEntityRoleEnum];
@@ -12176,45 +12025,6 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
12176
12025
  options: localVarRequestOptions,
12177
12026
  };
12178
12027
  },
12179
- /**
12180
- *
12181
- * @param {CalendarEventsListPayload} calendarEventsListPayload
12182
- * @param {*} [options] Override http request option.
12183
- * @throws {RequiredError}
12184
- */
12185
- calendarControllerListCalendarsEvents: async (calendarEventsListPayload: CalendarEventsListPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12186
- // verify required parameter 'calendarEventsListPayload' is not null or undefined
12187
- assertParamExists('calendarControllerListCalendarsEvents', 'calendarEventsListPayload', calendarEventsListPayload)
12188
- const localVarPath = `/v1/calendar/list-events`;
12189
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12190
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12191
- let baseOptions;
12192
- if (configuration) {
12193
- baseOptions = configuration.baseOptions;
12194
- }
12195
-
12196
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12197
- const localVarHeaderParameter = {} as any;
12198
- const localVarQueryParameter = {} as any;
12199
-
12200
- // authentication bearer required
12201
- // http bearer authentication required
12202
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12203
-
12204
-
12205
-
12206
- localVarHeaderParameter['Content-Type'] = 'application/json';
12207
-
12208
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12209
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12210
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12211
- localVarRequestOptions.data = serializeDataIfNeeded(calendarEventsListPayload, localVarRequestOptions, configuration)
12212
-
12213
- return {
12214
- url: toPathString(localVarUrlObj),
12215
- options: localVarRequestOptions,
12216
- };
12217
- },
12218
12028
  /**
12219
12029
  *
12220
12030
  * @param {CalendarEventsListPayload} calendarEventsListPayload
@@ -12326,45 +12136,6 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
12326
12136
  options: localVarRequestOptions,
12327
12137
  };
12328
12138
  },
12329
- /**
12330
- *
12331
- * @param {CalendarEventsListPayload} calendarEventsListPayload
12332
- * @param {*} [options] Override http request option.
12333
- * @throws {RequiredError}
12334
- */
12335
- calendarControllerListSocialEvents: async (calendarEventsListPayload: CalendarEventsListPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12336
- // verify required parameter 'calendarEventsListPayload' is not null or undefined
12337
- assertParamExists('calendarControllerListSocialEvents', 'calendarEventsListPayload', calendarEventsListPayload)
12338
- const localVarPath = `/v1/calendar/social-events`;
12339
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12340
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12341
- let baseOptions;
12342
- if (configuration) {
12343
- baseOptions = configuration.baseOptions;
12344
- }
12345
-
12346
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12347
- const localVarHeaderParameter = {} as any;
12348
- const localVarQueryParameter = {} as any;
12349
-
12350
- // authentication bearer required
12351
- // http bearer authentication required
12352
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12353
-
12354
-
12355
-
12356
- localVarHeaderParameter['Content-Type'] = 'application/json';
12357
-
12358
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12359
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12360
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12361
- localVarRequestOptions.data = serializeDataIfNeeded(calendarEventsListPayload, localVarRequestOptions, configuration)
12362
-
12363
- return {
12364
- url: toPathString(localVarUrlObj),
12365
- options: localVarRequestOptions,
12366
- };
12367
- },
12368
12139
  /**
12369
12140
  *
12370
12141
  * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
@@ -12645,18 +12416,6 @@ export const CalendarApiFp = function(configuration?: Configuration) {
12645
12416
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerCreateSharedCalendar']?.[localVarOperationServerIndex]?.url;
12646
12417
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12647
12418
  },
12648
- /**
12649
- *
12650
- * @param {CalendarEventsListPayload} calendarEventsListPayload
12651
- * @param {*} [options] Override http request option.
12652
- * @throws {RequiredError}
12653
- */
12654
- async calendarControllerListCalendarsEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEventResponseDTO>> {
12655
- const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListCalendarsEvents(calendarEventsListPayload, options);
12656
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12657
- const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListCalendarsEvents']?.[localVarOperationServerIndex]?.url;
12658
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12659
- },
12660
12419
  /**
12661
12420
  *
12662
12421
  * @param {CalendarEventsListPayload} calendarEventsListPayload
@@ -12692,18 +12451,6 @@ export const CalendarApiFp = function(configuration?: Configuration) {
12692
12451
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListPrepaidServiceAvailableSlots']?.[localVarOperationServerIndex]?.url;
12693
12452
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12694
12453
  },
12695
- /**
12696
- *
12697
- * @param {CalendarEventsListPayload} calendarEventsListPayload
12698
- * @param {*} [options] Override http request option.
12699
- * @throws {RequiredError}
12700
- */
12701
- async calendarControllerListSocialEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarSocialEventResponseDTO>> {
12702
- const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListSocialEvents(calendarEventsListPayload, options);
12703
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12704
- const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListSocialEvents']?.[localVarOperationServerIndex]?.url;
12705
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12706
- },
12707
12454
  /**
12708
12455
  *
12709
12456
  * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
@@ -12813,15 +12560,6 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
12813
12560
  calendarControllerCreateSharedCalendar(createCalendarPayload: CreateCalendarPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarResponseDTO> {
12814
12561
  return localVarFp.calendarControllerCreateSharedCalendar(createCalendarPayload, options).then((request) => request(axios, basePath));
12815
12562
  },
12816
- /**
12817
- *
12818
- * @param {CalendarEventsListPayload} calendarEventsListPayload
12819
- * @param {*} [options] Override http request option.
12820
- * @throws {RequiredError}
12821
- */
12822
- calendarControllerListCalendarsEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarEventResponseDTO> {
12823
- return localVarFp.calendarControllerListCalendarsEvents(calendarEventsListPayload, options).then((request) => request(axios, basePath));
12824
- },
12825
12563
  /**
12826
12564
  *
12827
12565
  * @param {CalendarEventsListPayload} calendarEventsListPayload
@@ -12848,15 +12586,6 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
12848
12586
  calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarSlotsDTO> {
12849
12587
  return localVarFp.calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(axios, basePath));
12850
12588
  },
12851
- /**
12852
- *
12853
- * @param {CalendarEventsListPayload} calendarEventsListPayload
12854
- * @param {*} [options] Override http request option.
12855
- * @throws {RequiredError}
12856
- */
12857
- calendarControllerListSocialEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarSocialEventResponseDTO> {
12858
- return localVarFp.calendarControllerListSocialEvents(calendarEventsListPayload, options).then((request) => request(axios, basePath));
12859
- },
12860
12589
  /**
12861
12590
  *
12862
12591
  * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
@@ -12954,17 +12683,6 @@ export class CalendarApi extends BaseAPI {
12954
12683
  return CalendarApiFp(this.configuration).calendarControllerCreateSharedCalendar(createCalendarPayload, options).then((request) => request(this.axios, this.basePath));
12955
12684
  }
12956
12685
 
12957
- /**
12958
- *
12959
- * @param {CalendarEventsListPayload} calendarEventsListPayload
12960
- * @param {*} [options] Override http request option.
12961
- * @throws {RequiredError}
12962
- * @memberof CalendarApi
12963
- */
12964
- public calendarControllerListCalendarsEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig) {
12965
- return CalendarApiFp(this.configuration).calendarControllerListCalendarsEvents(calendarEventsListPayload, options).then((request) => request(this.axios, this.basePath));
12966
- }
12967
-
12968
12686
  /**
12969
12687
  *
12970
12688
  * @param {CalendarEventsListPayload} calendarEventsListPayload
@@ -12997,17 +12715,6 @@ export class CalendarApi extends BaseAPI {
12997
12715
  return CalendarApiFp(this.configuration).calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(this.axios, this.basePath));
12998
12716
  }
12999
12717
 
13000
- /**
13001
- *
13002
- * @param {CalendarEventsListPayload} calendarEventsListPayload
13003
- * @param {*} [options] Override http request option.
13004
- * @throws {RequiredError}
13005
- * @memberof CalendarApi
13006
- */
13007
- public calendarControllerListSocialEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig) {
13008
- return CalendarApiFp(this.configuration).calendarControllerListSocialEvents(calendarEventsListPayload, options).then((request) => request(this.axios, this.basePath));
13009
- }
13010
-
13011
12718
  /**
13012
12719
  *
13013
12720
  * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.121",
3
+ "version": "1.3.0",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},