@gooday_corp/gooday-api-client 1.2.119 → 1.2.121

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 +304 -11
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -2234,6 +2234,105 @@ 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
+ }
2237
2336
  /**
2238
2337
  *
2239
2338
  * @export
@@ -2482,6 +2581,25 @@ export interface CalendarSlotsDTO {
2482
2581
  */
2483
2582
  'data': Array<CalendarSlotResponse>;
2484
2583
  }
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
+ }
2485
2603
  /**
2486
2604
  *
2487
2605
  * @export
@@ -2922,29 +3040,47 @@ export type CreateEventCollaboratorPayloadStatusEnum = typeof CreateEventCollabo
2922
3040
  */
2923
3041
  export interface CreateEventPayload {
2924
3042
  /**
2925
- * The unique identifier of the customer
3043
+ * Start date of event
2926
3044
  * @type {string}
2927
3045
  * @memberof CreateEventPayload
2928
3046
  */
2929
- '_id'?: string;
3047
+ 'startDate': string;
2930
3048
  /**
2931
- * The title of the event
3049
+ * End date of event
2932
3050
  * @type {string}
2933
3051
  * @memberof CreateEventPayload
2934
3052
  */
2935
- 'title': string;
3053
+ 'endDate': string;
2936
3054
  /**
2937
- * The start date of the event
3055
+ * Start hour of an event
2938
3056
  * @type {string}
2939
3057
  * @memberof CreateEventPayload
2940
3058
  */
2941
- 'startDate': string;
3059
+ 'from': string;
2942
3060
  /**
2943
- * The end date of the event
3061
+ * End hour of an event
2944
3062
  * @type {string}
2945
3063
  * @memberof CreateEventPayload
2946
3064
  */
2947
- 'endDate': string;
3065
+ 'to': string;
3066
+ /**
3067
+ *
3068
+ * @type {string}
3069
+ * @memberof CreateEventPayload
3070
+ */
3071
+ 'repeat': CreateEventPayloadRepeatEnum;
3072
+ /**
3073
+ * The unique identifier of the customer
3074
+ * @type {string}
3075
+ * @memberof CreateEventPayload
3076
+ */
3077
+ '_id'?: string;
3078
+ /**
3079
+ * The title of the event
3080
+ * @type {string}
3081
+ * @memberof CreateEventPayload
3082
+ */
3083
+ 'title': string;
2948
3084
  /**
2949
3085
  * Notes attached with booking
2950
3086
  * @type {string}
@@ -2976,6 +3112,17 @@ export interface CreateEventPayload {
2976
3112
  */
2977
3113
  'images': Array<string>;
2978
3114
  }
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
+
2979
3126
  /**
2980
3127
  *
2981
3128
  * @export
@@ -4791,7 +4938,7 @@ export const NotificationEntityTypeEnum = {
4791
4938
  BookingUserLeaveToBusiness: 'BOOKING_USER_LEAVE_TO_BUSINESS',
4792
4939
  BusinessBookingCancelBusiness: 'BUSINESS_BOOKING_CANCEL_BUSINESS',
4793
4940
  BusinessBookingCancelUserToBusiness: 'BUSINESS_BOOKING_CANCEL_USER_TO_BUSINESS',
4794
- BokingAccept: 'BOKING_ACCEPT',
4941
+ BookingAccept: 'BOOKING_ACCEPT',
4795
4942
  BookingReject: 'BOOKING_REJECT',
4796
4943
  InviteTodo: 'INVITE_TODO',
4797
4944
  TodoReject: 'TODO_REJECT',
@@ -4807,7 +4954,10 @@ export const NotificationEntityTypeEnum = {
4807
4954
  EventUserRemoved: 'EVENT_USER_REMOVED',
4808
4955
  EventUserLeft: 'EVENT_USER_LEFT',
4809
4956
  EventDetailsUpdate: 'EVENT_DETAILS_UPDATE',
4810
- CalendarDetailsUpdate: 'CALENDAR_DETAILS_UPDATE'
4957
+ CalendarDetailsUpdate: 'CALENDAR_DETAILS_UPDATE',
4958
+ CalendarRemove: 'CALENDAR_REMOVE',
4959
+ BookingRescheduled: 'BOOKING_RESCHEDULED',
4960
+ EventRescheduled: 'EVENT_RESCHEDULED'
4811
4961
  } as const;
4812
4962
 
4813
4963
  export type NotificationEntityTypeEnum = typeof NotificationEntityTypeEnum[keyof typeof NotificationEntityTypeEnum];
@@ -6840,7 +6990,8 @@ export interface UserEntity {
6840
6990
 
6841
6991
  export const UserEntityRoleEnum = {
6842
6992
  Business: 'business',
6843
- User: 'user'
6993
+ User: 'user',
6994
+ Admin: 'admin'
6844
6995
  } as const;
6845
6996
 
6846
6997
  export type UserEntityRoleEnum = typeof UserEntityRoleEnum[keyof typeof UserEntityRoleEnum];
@@ -12025,6 +12176,45 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
12025
12176
  options: localVarRequestOptions,
12026
12177
  };
12027
12178
  },
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
+ },
12028
12218
  /**
12029
12219
  *
12030
12220
  * @param {CalendarEventsListPayload} calendarEventsListPayload
@@ -12136,6 +12326,45 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
12136
12326
  options: localVarRequestOptions,
12137
12327
  };
12138
12328
  },
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
+ },
12139
12368
  /**
12140
12369
  *
12141
12370
  * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
@@ -12416,6 +12645,18 @@ export const CalendarApiFp = function(configuration?: Configuration) {
12416
12645
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerCreateSharedCalendar']?.[localVarOperationServerIndex]?.url;
12417
12646
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12418
12647
  },
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
+ },
12419
12660
  /**
12420
12661
  *
12421
12662
  * @param {CalendarEventsListPayload} calendarEventsListPayload
@@ -12451,6 +12692,18 @@ export const CalendarApiFp = function(configuration?: Configuration) {
12451
12692
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListPrepaidServiceAvailableSlots']?.[localVarOperationServerIndex]?.url;
12452
12693
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12453
12694
  },
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
+ },
12454
12707
  /**
12455
12708
  *
12456
12709
  * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
@@ -12560,6 +12813,15 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
12560
12813
  calendarControllerCreateSharedCalendar(createCalendarPayload: CreateCalendarPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarResponseDTO> {
12561
12814
  return localVarFp.calendarControllerCreateSharedCalendar(createCalendarPayload, options).then((request) => request(axios, basePath));
12562
12815
  },
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
+ },
12563
12825
  /**
12564
12826
  *
12565
12827
  * @param {CalendarEventsListPayload} calendarEventsListPayload
@@ -12586,6 +12848,15 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
12586
12848
  calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarSlotsDTO> {
12587
12849
  return localVarFp.calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(axios, basePath));
12588
12850
  },
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
+ },
12589
12860
  /**
12590
12861
  *
12591
12862
  * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
@@ -12683,6 +12954,17 @@ export class CalendarApi extends BaseAPI {
12683
12954
  return CalendarApiFp(this.configuration).calendarControllerCreateSharedCalendar(createCalendarPayload, options).then((request) => request(this.axios, this.basePath));
12684
12955
  }
12685
12956
 
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
+
12686
12968
  /**
12687
12969
  *
12688
12970
  * @param {CalendarEventsListPayload} calendarEventsListPayload
@@ -12715,6 +12997,17 @@ export class CalendarApi extends BaseAPI {
12715
12997
  return CalendarApiFp(this.configuration).calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(this.axios, this.basePath));
12716
12998
  }
12717
12999
 
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
+
12718
13011
  /**
12719
13012
  *
12720
13013
  * @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.119",
3
+ "version": "1.2.121",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},