vrchat 1.20.1 → 1.20.2

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.
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * VRChat API Documentation
5
5
  *
6
- * The version of the OpenAPI document: 1.20.1
6
+ * The version of the OpenAPI document: 1.20.2
7
7
  * Contact: vrchatapi.lpv0t@aries.fyi
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2215,6 +2215,194 @@ export interface BanGroupMemberRequest {
2215
2215
  */
2216
2216
  'userId': string;
2217
2217
  }
2218
+ /**
2219
+ *
2220
+ * @export
2221
+ * @interface CalendarEvent
2222
+ */
2223
+ export interface CalendarEvent {
2224
+ /**
2225
+ *
2226
+ * @type {string}
2227
+ * @memberof CalendarEvent
2228
+ */
2229
+ 'accessType': string;
2230
+ /**
2231
+ *
2232
+ * @type {string}
2233
+ * @memberof CalendarEvent
2234
+ */
2235
+ 'category'?: string;
2236
+ /**
2237
+ *
2238
+ * @type {number}
2239
+ * @memberof CalendarEvent
2240
+ */
2241
+ 'closeInstanceAfterEndMinutes'?: number;
2242
+ /**
2243
+ *
2244
+ * @type {string}
2245
+ * @memberof CalendarEvent
2246
+ */
2247
+ 'createdAt': string;
2248
+ /**
2249
+ *
2250
+ * @type {string}
2251
+ * @memberof CalendarEvent
2252
+ */
2253
+ 'deletedAt'?: string | null;
2254
+ /**
2255
+ *
2256
+ * @type {string}
2257
+ * @memberof CalendarEvent
2258
+ */
2259
+ 'description'?: string;
2260
+ /**
2261
+ *
2262
+ * @type {string}
2263
+ * @memberof CalendarEvent
2264
+ */
2265
+ 'endsAt'?: string;
2266
+ /**
2267
+ *
2268
+ * @type {boolean}
2269
+ * @memberof CalendarEvent
2270
+ */
2271
+ 'featured'?: boolean;
2272
+ /**
2273
+ *
2274
+ * @type {number}
2275
+ * @memberof CalendarEvent
2276
+ */
2277
+ 'guestEarlyJoinMinutes'?: number;
2278
+ /**
2279
+ *
2280
+ * @type {number}
2281
+ * @memberof CalendarEvent
2282
+ */
2283
+ 'hostEarlyJoinMinutes'?: number;
2284
+ /**
2285
+ *
2286
+ * @type {string}
2287
+ * @memberof CalendarEvent
2288
+ */
2289
+ 'id': string;
2290
+ /**
2291
+ *
2292
+ * @type {string}
2293
+ * @memberof CalendarEvent
2294
+ */
2295
+ 'imageId'?: string;
2296
+ /**
2297
+ *
2298
+ * @type {string}
2299
+ * @memberof CalendarEvent
2300
+ */
2301
+ 'imageUrl'?: string | null;
2302
+ /**
2303
+ *
2304
+ * @type {number}
2305
+ * @memberof CalendarEvent
2306
+ */
2307
+ 'interestedUserCount'?: number;
2308
+ /**
2309
+ *
2310
+ * @type {boolean}
2311
+ * @memberof CalendarEvent
2312
+ */
2313
+ 'isDraft'?: boolean;
2314
+ /**
2315
+ *
2316
+ * @type {Array<string>}
2317
+ * @memberof CalendarEvent
2318
+ */
2319
+ 'languages'?: Array<string>;
2320
+ /**
2321
+ *
2322
+ * @type {string}
2323
+ * @memberof CalendarEvent
2324
+ */
2325
+ 'ownerId'?: string;
2326
+ /**
2327
+ *
2328
+ * @type {Array<string>}
2329
+ * @memberof CalendarEvent
2330
+ */
2331
+ 'platforms'?: Array<string>;
2332
+ /**
2333
+ *
2334
+ * @type {Array<string>}
2335
+ * @memberof CalendarEvent
2336
+ */
2337
+ 'roleIds'?: Array<string> | null;
2338
+ /**
2339
+ *
2340
+ * @type {string}
2341
+ * @memberof CalendarEvent
2342
+ */
2343
+ 'startsAt'?: string;
2344
+ /**
2345
+ *
2346
+ * @type {Array<string>}
2347
+ * @memberof CalendarEvent
2348
+ */
2349
+ 'tags'?: Array<string>;
2350
+ /**
2351
+ *
2352
+ * @type {string}
2353
+ * @memberof CalendarEvent
2354
+ */
2355
+ 'title': string;
2356
+ /**
2357
+ *
2358
+ * @type {string}
2359
+ * @memberof CalendarEvent
2360
+ */
2361
+ 'type'?: string;
2362
+ /**
2363
+ *
2364
+ * @type {string}
2365
+ * @memberof CalendarEvent
2366
+ */
2367
+ 'updatedAt'?: string;
2368
+ /**
2369
+ *
2370
+ * @type {boolean}
2371
+ * @memberof CalendarEvent
2372
+ */
2373
+ 'usesInstanceOverflow'?: boolean;
2374
+ /**
2375
+ *
2376
+ * @type {CalendarEventUserInterest}
2377
+ * @memberof CalendarEvent
2378
+ */
2379
+ 'userInterest'?: CalendarEventUserInterest;
2380
+ }
2381
+ /**
2382
+ *
2383
+ * @export
2384
+ * @interface CalendarEventUserInterest
2385
+ */
2386
+ export interface CalendarEventUserInterest {
2387
+ /**
2388
+ *
2389
+ * @type {string}
2390
+ * @memberof CalendarEventUserInterest
2391
+ */
2392
+ 'createdAt'?: string;
2393
+ /**
2394
+ *
2395
+ * @type {boolean}
2396
+ * @memberof CalendarEventUserInterest
2397
+ */
2398
+ 'isFollowing'?: boolean;
2399
+ /**
2400
+ *
2401
+ * @type {string}
2402
+ * @memberof CalendarEventUserInterest
2403
+ */
2404
+ 'updatedAt'?: string;
2405
+ }
2218
2406
  /**
2219
2407
  *
2220
2408
  * @export
@@ -2325,6 +2513,135 @@ export interface CreateAvatarRequest {
2325
2513
  */
2326
2514
  'unityVersion'?: string;
2327
2515
  }
2516
+ /**
2517
+ *
2518
+ * @export
2519
+ * @interface CreateCalendarEventRequest
2520
+ */
2521
+ export interface CreateCalendarEventRequest {
2522
+ /**
2523
+ * Event title
2524
+ * @type {string}
2525
+ * @memberof CreateCalendarEventRequest
2526
+ */
2527
+ 'title': string;
2528
+ /**
2529
+ * Time the event starts at
2530
+ * @type {string}
2531
+ * @memberof CreateCalendarEventRequest
2532
+ */
2533
+ 'startsAt': string;
2534
+ /**
2535
+ *
2536
+ * @type {string}
2537
+ * @memberof CreateCalendarEventRequest
2538
+ */
2539
+ 'description': string;
2540
+ /**
2541
+ * Time the event ends at
2542
+ * @type {string}
2543
+ * @memberof CreateCalendarEventRequest
2544
+ */
2545
+ 'endsAt': string;
2546
+ /**
2547
+ *
2548
+ * @type {string}
2549
+ * @memberof CreateCalendarEventRequest
2550
+ */
2551
+ 'category': string;
2552
+ /**
2553
+ *
2554
+ * @type {Array<string>}
2555
+ * @memberof CreateCalendarEventRequest
2556
+ */
2557
+ 'tags'?: Array<string>;
2558
+ /**
2559
+ *
2560
+ * @type {boolean}
2561
+ * @memberof CreateCalendarEventRequest
2562
+ */
2563
+ 'isDraft'?: boolean;
2564
+ /**
2565
+ *
2566
+ * @type {string}
2567
+ * @memberof CreateCalendarEventRequest
2568
+ */
2569
+ 'imageId'?: string;
2570
+ /**
2571
+ *
2572
+ * @type {Array<string>}
2573
+ * @memberof CreateCalendarEventRequest
2574
+ */
2575
+ 'roleIds'?: Array<string>;
2576
+ /**
2577
+ *
2578
+ * @type {string}
2579
+ * @memberof CreateCalendarEventRequest
2580
+ */
2581
+ 'parentId'?: string;
2582
+ /**
2583
+ *
2584
+ * @type {Array<string>}
2585
+ * @memberof CreateCalendarEventRequest
2586
+ */
2587
+ 'platforms'?: Array<string>;
2588
+ /**
2589
+ *
2590
+ * @type {Array<string>}
2591
+ * @memberof CreateCalendarEventRequest
2592
+ */
2593
+ 'languages'?: Array<string>;
2594
+ /**
2595
+ * Send notification to group members.
2596
+ * @type {boolean}
2597
+ * @memberof CreateCalendarEventRequest
2598
+ */
2599
+ 'sendCreationNotification': boolean;
2600
+ /**
2601
+ *
2602
+ * @type {boolean}
2603
+ * @memberof CreateCalendarEventRequest
2604
+ */
2605
+ 'featured'?: boolean;
2606
+ /**
2607
+ *
2608
+ * @type {number}
2609
+ * @memberof CreateCalendarEventRequest
2610
+ */
2611
+ 'hostEarlyJoinMinutes'?: number;
2612
+ /**
2613
+ *
2614
+ * @type {number}
2615
+ * @memberof CreateCalendarEventRequest
2616
+ */
2617
+ 'guestEarlyJoinMinutes'?: number;
2618
+ /**
2619
+ *
2620
+ * @type {number}
2621
+ * @memberof CreateCalendarEventRequest
2622
+ */
2623
+ 'closeInstanceAfterEndMinutes'?: number;
2624
+ /**
2625
+ *
2626
+ * @type {boolean}
2627
+ * @memberof CreateCalendarEventRequest
2628
+ */
2629
+ 'usesInstanceOverflow'?: boolean;
2630
+ /**
2631
+ *
2632
+ * @type {string}
2633
+ * @memberof CreateCalendarEventRequest
2634
+ */
2635
+ 'accessType': CreateCalendarEventRequestAccessTypeEnum;
2636
+ }
2637
+
2638
+ export const CreateCalendarEventRequestAccessTypeEnum = {
2639
+ Public: 'public',
2640
+ Group: 'group'
2641
+ } as const;
2642
+
2643
+ export type CreateCalendarEventRequestAccessTypeEnum = typeof CreateCalendarEventRequestAccessTypeEnum[keyof typeof CreateCalendarEventRequestAccessTypeEnum];
2644
+
2328
2645
  /**
2329
2646
  *
2330
2647
  * @export
@@ -4426,6 +4743,19 @@ export interface FinishFileDataUploadRequest {
4426
4743
  */
4427
4744
  'maxParts': string;
4428
4745
  }
4746
+ /**
4747
+ *
4748
+ * @export
4749
+ * @interface FollowCalendarEventRequest
4750
+ */
4751
+ export interface FollowCalendarEventRequest {
4752
+ /**
4753
+ *
4754
+ * @type {boolean}
4755
+ * @memberof FollowCalendarEventRequest
4756
+ */
4757
+ 'isFollowing': boolean;
4758
+ }
4429
4759
  /**
4430
4760
  *
4431
4761
  * @export
@@ -8215,6 +8545,31 @@ export const OrderOption = {
8215
8545
  export type OrderOption = typeof OrderOption[keyof typeof OrderOption];
8216
8546
 
8217
8547
 
8548
+ /**
8549
+ *
8550
+ * @export
8551
+ * @interface PaginatedCalendarEventList
8552
+ */
8553
+ export interface PaginatedCalendarEventList {
8554
+ /**
8555
+ *
8556
+ * @type {Array<CalendarEvent>}
8557
+ * @memberof PaginatedCalendarEventList
8558
+ */
8559
+ 'results'?: Array<CalendarEvent>;
8560
+ /**
8561
+ * The total number of results that the query would return if there were no pagination.
8562
+ * @type {number}
8563
+ * @memberof PaginatedCalendarEventList
8564
+ */
8565
+ 'totalCount'?: number;
8566
+ /**
8567
+ * Whether there are more results after this page.
8568
+ * @type {boolean}
8569
+ * @memberof PaginatedCalendarEventList
8570
+ */
8571
+ 'hasNext'?: boolean;
8572
+ }
8218
8573
  /**
8219
8574
  *
8220
8575
  * @export
@@ -10275,7 +10630,122 @@ export interface UpdateAvatarRequest {
10275
10630
  /**
10276
10631
  *
10277
10632
  * @export
10278
- * @interface UpdateFavoriteGroupRequest
10633
+ * @interface UpdateCalendarEventRequest
10634
+ */
10635
+ export interface UpdateCalendarEventRequest {
10636
+ /**
10637
+ * Event title
10638
+ * @type {string}
10639
+ * @memberof UpdateCalendarEventRequest
10640
+ */
10641
+ 'title'?: string;
10642
+ /**
10643
+ * Time the vent starts at
10644
+ * @type {string}
10645
+ * @memberof UpdateCalendarEventRequest
10646
+ */
10647
+ 'startsAt'?: string;
10648
+ /**
10649
+ *
10650
+ * @type {string}
10651
+ * @memberof UpdateCalendarEventRequest
10652
+ */
10653
+ 'description'?: string;
10654
+ /**
10655
+ * Time the vent starts at
10656
+ * @type {string}
10657
+ * @memberof UpdateCalendarEventRequest
10658
+ */
10659
+ 'endsAt'?: string;
10660
+ /**
10661
+ *
10662
+ * @type {string}
10663
+ * @memberof UpdateCalendarEventRequest
10664
+ */
10665
+ 'category'?: string;
10666
+ /**
10667
+ *
10668
+ * @type {Array<string>}
10669
+ * @memberof UpdateCalendarEventRequest
10670
+ */
10671
+ 'tags'?: Array<string>;
10672
+ /**
10673
+ *
10674
+ * @type {boolean}
10675
+ * @memberof UpdateCalendarEventRequest
10676
+ */
10677
+ 'isDraft'?: boolean;
10678
+ /**
10679
+ *
10680
+ * @type {string}
10681
+ * @memberof UpdateCalendarEventRequest
10682
+ */
10683
+ 'imageId'?: string;
10684
+ /**
10685
+ *
10686
+ * @type {Array<string>}
10687
+ * @memberof UpdateCalendarEventRequest
10688
+ */
10689
+ 'roleIds'?: Array<string>;
10690
+ /**
10691
+ *
10692
+ * @type {string}
10693
+ * @memberof UpdateCalendarEventRequest
10694
+ */
10695
+ 'parentId'?: string;
10696
+ /**
10697
+ *
10698
+ * @type {Array<string>}
10699
+ * @memberof UpdateCalendarEventRequest
10700
+ */
10701
+ 'platforms'?: Array<string>;
10702
+ /**
10703
+ *
10704
+ * @type {Array<string>}
10705
+ * @memberof UpdateCalendarEventRequest
10706
+ */
10707
+ 'languages'?: Array<string>;
10708
+ /**
10709
+ * Send notification to group members.
10710
+ * @type {boolean}
10711
+ * @memberof UpdateCalendarEventRequest
10712
+ */
10713
+ 'sendCreationNotification'?: boolean;
10714
+ /**
10715
+ *
10716
+ * @type {boolean}
10717
+ * @memberof UpdateCalendarEventRequest
10718
+ */
10719
+ 'featured'?: boolean;
10720
+ /**
10721
+ *
10722
+ * @type {number}
10723
+ * @memberof UpdateCalendarEventRequest
10724
+ */
10725
+ 'hostEarlyJoinMinutes'?: number;
10726
+ /**
10727
+ *
10728
+ * @type {number}
10729
+ * @memberof UpdateCalendarEventRequest
10730
+ */
10731
+ 'guestEarlyJoinMinutes'?: number;
10732
+ /**
10733
+ *
10734
+ * @type {number}
10735
+ * @memberof UpdateCalendarEventRequest
10736
+ */
10737
+ 'closeInstanceAfterEndMinutes'?: number;
10738
+ /**
10739
+ *
10740
+ * @type {boolean}
10741
+ * @memberof UpdateCalendarEventRequest
10742
+ */
10743
+ 'usesInstanceOverflow'?: boolean;
10744
+ }
10745
+ /**
10746
+ *
10747
+ * @export
10748
+ * @interface UpdateFavoriteGroupRequest
10279
10749
  */
10280
10750
  export interface UpdateFavoriteGroupRequest {
10281
10751
  /**
@@ -13916,6 +14386,877 @@ export class AvatarsApi extends BaseAPI {
13916
14386
  }
13917
14387
 
13918
14388
 
14389
+ /**
14390
+ * CalendarApi - axios parameter creator
14391
+ * @export
14392
+ */
14393
+ export const CalendarApiAxiosParamCreator = function (configuration?: Configuration) {
14394
+ return {
14395
+ /**
14396
+ * Creates an event for a group on the calendar
14397
+ * @summary Create a calendar event
14398
+ * @param {string} groupId Must be a valid group ID.
14399
+ * @param {CreateCalendarEventRequest} createCalendarEventRequest
14400
+ * @param {*} [options] Override http request option.
14401
+ * @throws {RequiredError}
14402
+ */
14403
+ createGroupCalendarEvent: async (groupId: string, createCalendarEventRequest: CreateCalendarEventRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14404
+ // verify required parameter 'groupId' is not null or undefined
14405
+ assertParamExists('createGroupCalendarEvent', 'groupId', groupId)
14406
+ // verify required parameter 'createCalendarEventRequest' is not null or undefined
14407
+ assertParamExists('createGroupCalendarEvent', 'createCalendarEventRequest', createCalendarEventRequest)
14408
+ const localVarPath = `/calendar/{groupId}/event`
14409
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
14410
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14411
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14412
+ let baseOptions;
14413
+ if (configuration) {
14414
+ baseOptions = configuration.baseOptions;
14415
+ }
14416
+
14417
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14418
+ const localVarHeaderParameter = {} as any;
14419
+ const localVarQueryParameter = {} as any;
14420
+
14421
+ // authentication authCookie required
14422
+
14423
+
14424
+
14425
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14426
+
14427
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14428
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14429
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14430
+ localVarRequestOptions.data = serializeDataIfNeeded(createCalendarEventRequest, localVarRequestOptions, configuration)
14431
+
14432
+ return {
14433
+ url: toPathString(localVarUrlObj),
14434
+ options: localVarRequestOptions,
14435
+ };
14436
+ },
14437
+ /**
14438
+ * Delete a group calendar event
14439
+ * @summary Delete a calendar event
14440
+ * @param {string} groupId Must be a valid group ID.
14441
+ * @param {string} calendarId Must be a valid calendar ID.
14442
+ * @param {*} [options] Override http request option.
14443
+ * @throws {RequiredError}
14444
+ */
14445
+ deleteGroupCalendarEvent: async (groupId: string, calendarId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14446
+ // verify required parameter 'groupId' is not null or undefined
14447
+ assertParamExists('deleteGroupCalendarEvent', 'groupId', groupId)
14448
+ // verify required parameter 'calendarId' is not null or undefined
14449
+ assertParamExists('deleteGroupCalendarEvent', 'calendarId', calendarId)
14450
+ const localVarPath = `/calendar/{groupId}/{calendarId}`
14451
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
14452
+ .replace(`{${"calendarId"}}`, encodeURIComponent(String(calendarId)));
14453
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14454
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14455
+ let baseOptions;
14456
+ if (configuration) {
14457
+ baseOptions = configuration.baseOptions;
14458
+ }
14459
+
14460
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
14461
+ const localVarHeaderParameter = {} as any;
14462
+ const localVarQueryParameter = {} as any;
14463
+
14464
+ // authentication authCookie required
14465
+
14466
+
14467
+
14468
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14469
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14470
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14471
+
14472
+ return {
14473
+ url: toPathString(localVarUrlObj),
14474
+ options: localVarRequestOptions,
14475
+ };
14476
+ },
14477
+ /**
14478
+ * Follow or unfollow an event on a group\'s calendar
14479
+ * @summary Follow a calendar event
14480
+ * @param {string} groupId Must be a valid group ID.
14481
+ * @param {string} calendarId Must be a valid calendar ID.
14482
+ * @param {FollowCalendarEventRequest} followCalendarEventRequest
14483
+ * @param {*} [options] Override http request option.
14484
+ * @throws {RequiredError}
14485
+ */
14486
+ followGroupCalendarEvent: async (groupId: string, calendarId: string, followCalendarEventRequest: FollowCalendarEventRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14487
+ // verify required parameter 'groupId' is not null or undefined
14488
+ assertParamExists('followGroupCalendarEvent', 'groupId', groupId)
14489
+ // verify required parameter 'calendarId' is not null or undefined
14490
+ assertParamExists('followGroupCalendarEvent', 'calendarId', calendarId)
14491
+ // verify required parameter 'followCalendarEventRequest' is not null or undefined
14492
+ assertParamExists('followGroupCalendarEvent', 'followCalendarEventRequest', followCalendarEventRequest)
14493
+ const localVarPath = `/calendar/{groupId}/{calendarId}/follow`
14494
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
14495
+ .replace(`{${"calendarId"}}`, encodeURIComponent(String(calendarId)));
14496
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14497
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14498
+ let baseOptions;
14499
+ if (configuration) {
14500
+ baseOptions = configuration.baseOptions;
14501
+ }
14502
+
14503
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14504
+ const localVarHeaderParameter = {} as any;
14505
+ const localVarQueryParameter = {} as any;
14506
+
14507
+ // authentication authCookie required
14508
+
14509
+
14510
+
14511
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14512
+
14513
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14514
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14515
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14516
+ localVarRequestOptions.data = serializeDataIfNeeded(followCalendarEventRequest, localVarRequestOptions, configuration)
14517
+
14518
+ return {
14519
+ url: toPathString(localVarUrlObj),
14520
+ options: localVarRequestOptions,
14521
+ };
14522
+ },
14523
+ /**
14524
+ * Get a list of a user\'s calendar events for the month in ?date
14525
+ * @summary List calendar events
14526
+ * @param {string} [date] The month to search in.
14527
+ * @param {number} [n] The number of objects to return.
14528
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
14529
+ * @param {*} [options] Override http request option.
14530
+ * @throws {RequiredError}
14531
+ */
14532
+ getCalendarEvents: async (date?: string, n?: number, offset?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14533
+ const localVarPath = `/calendar`;
14534
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14535
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14536
+ let baseOptions;
14537
+ if (configuration) {
14538
+ baseOptions = configuration.baseOptions;
14539
+ }
14540
+
14541
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14542
+ const localVarHeaderParameter = {} as any;
14543
+ const localVarQueryParameter = {} as any;
14544
+
14545
+ // authentication authCookie required
14546
+
14547
+ if (date !== undefined) {
14548
+ localVarQueryParameter['date'] = (date as any instanceof Date) ?
14549
+ (date as any).toISOString() :
14550
+ date;
14551
+ }
14552
+
14553
+ if (n !== undefined) {
14554
+ localVarQueryParameter['n'] = n;
14555
+ }
14556
+
14557
+ if (offset !== undefined) {
14558
+ localVarQueryParameter['offset'] = offset;
14559
+ }
14560
+
14561
+
14562
+
14563
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14565
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14566
+
14567
+ return {
14568
+ url: toPathString(localVarUrlObj),
14569
+ options: localVarRequestOptions,
14570
+ };
14571
+ },
14572
+ /**
14573
+ * Get a list of a featured calendar events for the month in ?date
14574
+ * @summary List featured calendar events
14575
+ * @param {string} [date] The month to search in.
14576
+ * @param {number} [n] The number of objects to return.
14577
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
14578
+ * @param {*} [options] Override http request option.
14579
+ * @throws {RequiredError}
14580
+ */
14581
+ getFeaturedCalendarEvents: async (date?: string, n?: number, offset?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14582
+ const localVarPath = `/calendar/featured`;
14583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14584
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14585
+ let baseOptions;
14586
+ if (configuration) {
14587
+ baseOptions = configuration.baseOptions;
14588
+ }
14589
+
14590
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14591
+ const localVarHeaderParameter = {} as any;
14592
+ const localVarQueryParameter = {} as any;
14593
+
14594
+ // authentication authCookie required
14595
+
14596
+ if (date !== undefined) {
14597
+ localVarQueryParameter['date'] = (date as any instanceof Date) ?
14598
+ (date as any).toISOString() :
14599
+ date;
14600
+ }
14601
+
14602
+ if (n !== undefined) {
14603
+ localVarQueryParameter['n'] = n;
14604
+ }
14605
+
14606
+ if (offset !== undefined) {
14607
+ localVarQueryParameter['offset'] = offset;
14608
+ }
14609
+
14610
+
14611
+
14612
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14613
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14614
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14615
+
14616
+ return {
14617
+ url: toPathString(localVarUrlObj),
14618
+ options: localVarRequestOptions,
14619
+ };
14620
+ },
14621
+ /**
14622
+ * Get a list of a followed calendar events for the month in ?date
14623
+ * @summary List followed calendar events
14624
+ * @param {string} [date] The month to search in.
14625
+ * @param {number} [n] The number of objects to return.
14626
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
14627
+ * @param {*} [options] Override http request option.
14628
+ * @throws {RequiredError}
14629
+ */
14630
+ getFollowedCalendarEvents: async (date?: string, n?: number, offset?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14631
+ const localVarPath = `/calendar/following`;
14632
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14633
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14634
+ let baseOptions;
14635
+ if (configuration) {
14636
+ baseOptions = configuration.baseOptions;
14637
+ }
14638
+
14639
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14640
+ const localVarHeaderParameter = {} as any;
14641
+ const localVarQueryParameter = {} as any;
14642
+
14643
+ // authentication authCookie required
14644
+
14645
+ if (date !== undefined) {
14646
+ localVarQueryParameter['date'] = (date as any instanceof Date) ?
14647
+ (date as any).toISOString() :
14648
+ date;
14649
+ }
14650
+
14651
+ if (n !== undefined) {
14652
+ localVarQueryParameter['n'] = n;
14653
+ }
14654
+
14655
+ if (offset !== undefined) {
14656
+ localVarQueryParameter['offset'] = offset;
14657
+ }
14658
+
14659
+
14660
+
14661
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14662
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14663
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14664
+
14665
+ return {
14666
+ url: toPathString(localVarUrlObj),
14667
+ options: localVarRequestOptions,
14668
+ };
14669
+ },
14670
+ /**
14671
+ * Get a group calendar event
14672
+ * @summary Get a calendar event
14673
+ * @param {string} groupId Must be a valid group ID.
14674
+ * @param {string} calendarId Must be a valid calendar ID.
14675
+ * @param {*} [options] Override http request option.
14676
+ * @throws {RequiredError}
14677
+ */
14678
+ getGroupCalendarEvent: async (groupId: string, calendarId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14679
+ // verify required parameter 'groupId' is not null or undefined
14680
+ assertParamExists('getGroupCalendarEvent', 'groupId', groupId)
14681
+ // verify required parameter 'calendarId' is not null or undefined
14682
+ assertParamExists('getGroupCalendarEvent', 'calendarId', calendarId)
14683
+ const localVarPath = `/calendar/{groupId}/{calendarId}`
14684
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
14685
+ .replace(`{${"calendarId"}}`, encodeURIComponent(String(calendarId)));
14686
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14687
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14688
+ let baseOptions;
14689
+ if (configuration) {
14690
+ baseOptions = configuration.baseOptions;
14691
+ }
14692
+
14693
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14694
+ const localVarHeaderParameter = {} as any;
14695
+ const localVarQueryParameter = {} as any;
14696
+
14697
+ // authentication authCookie required
14698
+
14699
+
14700
+
14701
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14702
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14703
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14704
+
14705
+ return {
14706
+ url: toPathString(localVarUrlObj),
14707
+ options: localVarRequestOptions,
14708
+ };
14709
+ },
14710
+ /**
14711
+ * Returns the specified calendar in iCalendar (ICS) format.
14712
+ * @summary Download calendar event as ICS
14713
+ * @param {string} groupId Must be a valid group ID.
14714
+ * @param {string} calendarId Must be a valid calendar ID.
14715
+ * @param {*} [options] Override http request option.
14716
+ * @throws {RequiredError}
14717
+ */
14718
+ getGroupCalendarEventICS: async (groupId: string, calendarId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14719
+ // verify required parameter 'groupId' is not null or undefined
14720
+ assertParamExists('getGroupCalendarEventICS', 'groupId', groupId)
14721
+ // verify required parameter 'calendarId' is not null or undefined
14722
+ assertParamExists('getGroupCalendarEventICS', 'calendarId', calendarId)
14723
+ const localVarPath = `/calendar/{groupId}/{calendarId}.ics`
14724
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
14725
+ .replace(`{${"calendarId"}}`, encodeURIComponent(String(calendarId)));
14726
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14727
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14728
+ let baseOptions;
14729
+ if (configuration) {
14730
+ baseOptions = configuration.baseOptions;
14731
+ }
14732
+
14733
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14734
+ const localVarHeaderParameter = {} as any;
14735
+ const localVarQueryParameter = {} as any;
14736
+
14737
+
14738
+
14739
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14740
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14741
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14742
+
14743
+ return {
14744
+ url: toPathString(localVarUrlObj),
14745
+ options: localVarRequestOptions,
14746
+ };
14747
+ },
14748
+ /**
14749
+ * Get a list of a group\'s calendar events
14750
+ * @summary List a group\'s calendar events
14751
+ * @param {string} groupId Must be a valid group ID.
14752
+ * @param {string} [date] The month to search in.
14753
+ * @param {number} [n] The number of objects to return.
14754
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
14755
+ * @param {*} [options] Override http request option.
14756
+ * @throws {RequiredError}
14757
+ */
14758
+ getGroupCalendarEvents: async (groupId: string, date?: string, n?: number, offset?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14759
+ // verify required parameter 'groupId' is not null or undefined
14760
+ assertParamExists('getGroupCalendarEvents', 'groupId', groupId)
14761
+ const localVarPath = `/calendar/{groupId}`
14762
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
14763
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14764
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14765
+ let baseOptions;
14766
+ if (configuration) {
14767
+ baseOptions = configuration.baseOptions;
14768
+ }
14769
+
14770
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14771
+ const localVarHeaderParameter = {} as any;
14772
+ const localVarQueryParameter = {} as any;
14773
+
14774
+ // authentication authCookie required
14775
+
14776
+ if (date !== undefined) {
14777
+ localVarQueryParameter['date'] = (date as any instanceof Date) ?
14778
+ (date as any).toISOString() :
14779
+ date;
14780
+ }
14781
+
14782
+ if (n !== undefined) {
14783
+ localVarQueryParameter['n'] = n;
14784
+ }
14785
+
14786
+ if (offset !== undefined) {
14787
+ localVarQueryParameter['offset'] = offset;
14788
+ }
14789
+
14790
+
14791
+
14792
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14793
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14794
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14795
+
14796
+ return {
14797
+ url: toPathString(localVarUrlObj),
14798
+ options: localVarRequestOptions,
14799
+ };
14800
+ },
14801
+ /**
14802
+ * Updates an event for a group on the calendar
14803
+ * @summary Update a calendar event
14804
+ * @param {string} groupId Must be a valid group ID.
14805
+ * @param {string} calendarId Must be a valid calendar ID.
14806
+ * @param {UpdateCalendarEventRequest} updateCalendarEventRequest
14807
+ * @param {*} [options] Override http request option.
14808
+ * @throws {RequiredError}
14809
+ */
14810
+ updateGroupCalendarEvent: async (groupId: string, calendarId: string, updateCalendarEventRequest: UpdateCalendarEventRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14811
+ // verify required parameter 'groupId' is not null or undefined
14812
+ assertParamExists('updateGroupCalendarEvent', 'groupId', groupId)
14813
+ // verify required parameter 'calendarId' is not null or undefined
14814
+ assertParamExists('updateGroupCalendarEvent', 'calendarId', calendarId)
14815
+ // verify required parameter 'updateCalendarEventRequest' is not null or undefined
14816
+ assertParamExists('updateGroupCalendarEvent', 'updateCalendarEventRequest', updateCalendarEventRequest)
14817
+ const localVarPath = `/calendar/{groupId}/{calendarId}/event`
14818
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
14819
+ .replace(`{${"calendarId"}}`, encodeURIComponent(String(calendarId)));
14820
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14821
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14822
+ let baseOptions;
14823
+ if (configuration) {
14824
+ baseOptions = configuration.baseOptions;
14825
+ }
14826
+
14827
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14828
+ const localVarHeaderParameter = {} as any;
14829
+ const localVarQueryParameter = {} as any;
14830
+
14831
+ // authentication authCookie required
14832
+
14833
+
14834
+
14835
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14836
+
14837
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14838
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14839
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14840
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCalendarEventRequest, localVarRequestOptions, configuration)
14841
+
14842
+ return {
14843
+ url: toPathString(localVarUrlObj),
14844
+ options: localVarRequestOptions,
14845
+ };
14846
+ },
14847
+ }
14848
+ };
14849
+
14850
+ /**
14851
+ * CalendarApi - functional programming interface
14852
+ * @export
14853
+ */
14854
+ export const CalendarApiFp = function(configuration?: Configuration) {
14855
+ const localVarAxiosParamCreator = CalendarApiAxiosParamCreator(configuration)
14856
+ return {
14857
+ /**
14858
+ * Creates an event for a group on the calendar
14859
+ * @summary Create a calendar event
14860
+ * @param {string} groupId Must be a valid group ID.
14861
+ * @param {CreateCalendarEventRequest} createCalendarEventRequest
14862
+ * @param {*} [options] Override http request option.
14863
+ * @throws {RequiredError}
14864
+ */
14865
+ async createGroupCalendarEvent(groupId: string, createCalendarEventRequest: CreateCalendarEventRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEvent>> {
14866
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createGroupCalendarEvent(groupId, createCalendarEventRequest, options);
14867
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14868
+ },
14869
+ /**
14870
+ * Delete a group calendar event
14871
+ * @summary Delete a calendar event
14872
+ * @param {string} groupId Must be a valid group ID.
14873
+ * @param {string} calendarId Must be a valid calendar ID.
14874
+ * @param {*} [options] Override http request option.
14875
+ * @throws {RequiredError}
14876
+ */
14877
+ async deleteGroupCalendarEvent(groupId: string, calendarId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Success>> {
14878
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGroupCalendarEvent(groupId, calendarId, options);
14879
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14880
+ },
14881
+ /**
14882
+ * Follow or unfollow an event on a group\'s calendar
14883
+ * @summary Follow a calendar event
14884
+ * @param {string} groupId Must be a valid group ID.
14885
+ * @param {string} calendarId Must be a valid calendar ID.
14886
+ * @param {FollowCalendarEventRequest} followCalendarEventRequest
14887
+ * @param {*} [options] Override http request option.
14888
+ * @throws {RequiredError}
14889
+ */
14890
+ async followGroupCalendarEvent(groupId: string, calendarId: string, followCalendarEventRequest: FollowCalendarEventRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEvent>> {
14891
+ const localVarAxiosArgs = await localVarAxiosParamCreator.followGroupCalendarEvent(groupId, calendarId, followCalendarEventRequest, options);
14892
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14893
+ },
14894
+ /**
14895
+ * Get a list of a user\'s calendar events for the month in ?date
14896
+ * @summary List calendar events
14897
+ * @param {string} [date] The month to search in.
14898
+ * @param {number} [n] The number of objects to return.
14899
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
14900
+ * @param {*} [options] Override http request option.
14901
+ * @throws {RequiredError}
14902
+ */
14903
+ async getCalendarEvents(date?: string, n?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedCalendarEventList>> {
14904
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCalendarEvents(date, n, offset, options);
14905
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14906
+ },
14907
+ /**
14908
+ * Get a list of a featured calendar events for the month in ?date
14909
+ * @summary List featured calendar events
14910
+ * @param {string} [date] The month to search in.
14911
+ * @param {number} [n] The number of objects to return.
14912
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
14913
+ * @param {*} [options] Override http request option.
14914
+ * @throws {RequiredError}
14915
+ */
14916
+ async getFeaturedCalendarEvents(date?: string, n?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedCalendarEventList>> {
14917
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeaturedCalendarEvents(date, n, offset, options);
14918
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14919
+ },
14920
+ /**
14921
+ * Get a list of a followed calendar events for the month in ?date
14922
+ * @summary List followed calendar events
14923
+ * @param {string} [date] The month to search in.
14924
+ * @param {number} [n] The number of objects to return.
14925
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
14926
+ * @param {*} [options] Override http request option.
14927
+ * @throws {RequiredError}
14928
+ */
14929
+ async getFollowedCalendarEvents(date?: string, n?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedCalendarEventList>> {
14930
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFollowedCalendarEvents(date, n, offset, options);
14931
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14932
+ },
14933
+ /**
14934
+ * Get a group calendar event
14935
+ * @summary Get a calendar event
14936
+ * @param {string} groupId Must be a valid group ID.
14937
+ * @param {string} calendarId Must be a valid calendar ID.
14938
+ * @param {*} [options] Override http request option.
14939
+ * @throws {RequiredError}
14940
+ */
14941
+ async getGroupCalendarEvent(groupId: string, calendarId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEvent>> {
14942
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupCalendarEvent(groupId, calendarId, options);
14943
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14944
+ },
14945
+ /**
14946
+ * Returns the specified calendar in iCalendar (ICS) format.
14947
+ * @summary Download calendar event as ICS
14948
+ * @param {string} groupId Must be a valid group ID.
14949
+ * @param {string} calendarId Must be a valid calendar ID.
14950
+ * @param {*} [options] Override http request option.
14951
+ * @throws {RequiredError}
14952
+ */
14953
+ async getGroupCalendarEventICS(groupId: string, calendarId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
14954
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupCalendarEventICS(groupId, calendarId, options);
14955
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14956
+ },
14957
+ /**
14958
+ * Get a list of a group\'s calendar events
14959
+ * @summary List a group\'s calendar events
14960
+ * @param {string} groupId Must be a valid group ID.
14961
+ * @param {string} [date] The month to search in.
14962
+ * @param {number} [n] The number of objects to return.
14963
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
14964
+ * @param {*} [options] Override http request option.
14965
+ * @throws {RequiredError}
14966
+ */
14967
+ async getGroupCalendarEvents(groupId: string, date?: string, n?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedCalendarEventList>> {
14968
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupCalendarEvents(groupId, date, n, offset, options);
14969
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14970
+ },
14971
+ /**
14972
+ * Updates an event for a group on the calendar
14973
+ * @summary Update a calendar event
14974
+ * @param {string} groupId Must be a valid group ID.
14975
+ * @param {string} calendarId Must be a valid calendar ID.
14976
+ * @param {UpdateCalendarEventRequest} updateCalendarEventRequest
14977
+ * @param {*} [options] Override http request option.
14978
+ * @throws {RequiredError}
14979
+ */
14980
+ async updateGroupCalendarEvent(groupId: string, calendarId: string, updateCalendarEventRequest: UpdateCalendarEventRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEvent>> {
14981
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateGroupCalendarEvent(groupId, calendarId, updateCalendarEventRequest, options);
14982
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14983
+ },
14984
+ }
14985
+ };
14986
+
14987
+ /**
14988
+ * CalendarApi - factory interface
14989
+ * @export
14990
+ */
14991
+ export const CalendarApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
14992
+ const localVarFp = CalendarApiFp(configuration)
14993
+ return {
14994
+ /**
14995
+ * Creates an event for a group on the calendar
14996
+ * @summary Create a calendar event
14997
+ * @param {string} groupId Must be a valid group ID.
14998
+ * @param {CreateCalendarEventRequest} createCalendarEventRequest
14999
+ * @param {*} [options] Override http request option.
15000
+ * @throws {RequiredError}
15001
+ */
15002
+ createGroupCalendarEvent(groupId: string, createCalendarEventRequest: CreateCalendarEventRequest, options?: any): AxiosPromise<CalendarEvent> {
15003
+ return localVarFp.createGroupCalendarEvent(groupId, createCalendarEventRequest, options).then((request) => request(axios, basePath));
15004
+ },
15005
+ /**
15006
+ * Delete a group calendar event
15007
+ * @summary Delete a calendar event
15008
+ * @param {string} groupId Must be a valid group ID.
15009
+ * @param {string} calendarId Must be a valid calendar ID.
15010
+ * @param {*} [options] Override http request option.
15011
+ * @throws {RequiredError}
15012
+ */
15013
+ deleteGroupCalendarEvent(groupId: string, calendarId: string, options?: any): AxiosPromise<Success> {
15014
+ return localVarFp.deleteGroupCalendarEvent(groupId, calendarId, options).then((request) => request(axios, basePath));
15015
+ },
15016
+ /**
15017
+ * Follow or unfollow an event on a group\'s calendar
15018
+ * @summary Follow a calendar event
15019
+ * @param {string} groupId Must be a valid group ID.
15020
+ * @param {string} calendarId Must be a valid calendar ID.
15021
+ * @param {FollowCalendarEventRequest} followCalendarEventRequest
15022
+ * @param {*} [options] Override http request option.
15023
+ * @throws {RequiredError}
15024
+ */
15025
+ followGroupCalendarEvent(groupId: string, calendarId: string, followCalendarEventRequest: FollowCalendarEventRequest, options?: any): AxiosPromise<CalendarEvent> {
15026
+ return localVarFp.followGroupCalendarEvent(groupId, calendarId, followCalendarEventRequest, options).then((request) => request(axios, basePath));
15027
+ },
15028
+ /**
15029
+ * Get a list of a user\'s calendar events for the month in ?date
15030
+ * @summary List calendar events
15031
+ * @param {string} [date] The month to search in.
15032
+ * @param {number} [n] The number of objects to return.
15033
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
15034
+ * @param {*} [options] Override http request option.
15035
+ * @throws {RequiredError}
15036
+ */
15037
+ getCalendarEvents(date?: string, n?: number, offset?: number, options?: any): AxiosPromise<PaginatedCalendarEventList> {
15038
+ return localVarFp.getCalendarEvents(date, n, offset, options).then((request) => request(axios, basePath));
15039
+ },
15040
+ /**
15041
+ * Get a list of a featured calendar events for the month in ?date
15042
+ * @summary List featured calendar events
15043
+ * @param {string} [date] The month to search in.
15044
+ * @param {number} [n] The number of objects to return.
15045
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
15046
+ * @param {*} [options] Override http request option.
15047
+ * @throws {RequiredError}
15048
+ */
15049
+ getFeaturedCalendarEvents(date?: string, n?: number, offset?: number, options?: any): AxiosPromise<PaginatedCalendarEventList> {
15050
+ return localVarFp.getFeaturedCalendarEvents(date, n, offset, options).then((request) => request(axios, basePath));
15051
+ },
15052
+ /**
15053
+ * Get a list of a followed calendar events for the month in ?date
15054
+ * @summary List followed calendar events
15055
+ * @param {string} [date] The month to search in.
15056
+ * @param {number} [n] The number of objects to return.
15057
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
15058
+ * @param {*} [options] Override http request option.
15059
+ * @throws {RequiredError}
15060
+ */
15061
+ getFollowedCalendarEvents(date?: string, n?: number, offset?: number, options?: any): AxiosPromise<PaginatedCalendarEventList> {
15062
+ return localVarFp.getFollowedCalendarEvents(date, n, offset, options).then((request) => request(axios, basePath));
15063
+ },
15064
+ /**
15065
+ * Get a group calendar event
15066
+ * @summary Get a calendar event
15067
+ * @param {string} groupId Must be a valid group ID.
15068
+ * @param {string} calendarId Must be a valid calendar ID.
15069
+ * @param {*} [options] Override http request option.
15070
+ * @throws {RequiredError}
15071
+ */
15072
+ getGroupCalendarEvent(groupId: string, calendarId: string, options?: any): AxiosPromise<CalendarEvent> {
15073
+ return localVarFp.getGroupCalendarEvent(groupId, calendarId, options).then((request) => request(axios, basePath));
15074
+ },
15075
+ /**
15076
+ * Returns the specified calendar in iCalendar (ICS) format.
15077
+ * @summary Download calendar event as ICS
15078
+ * @param {string} groupId Must be a valid group ID.
15079
+ * @param {string} calendarId Must be a valid calendar ID.
15080
+ * @param {*} [options] Override http request option.
15081
+ * @throws {RequiredError}
15082
+ */
15083
+ getGroupCalendarEventICS(groupId: string, calendarId: string, options?: any): AxiosPromise<File> {
15084
+ return localVarFp.getGroupCalendarEventICS(groupId, calendarId, options).then((request) => request(axios, basePath));
15085
+ },
15086
+ /**
15087
+ * Get a list of a group\'s calendar events
15088
+ * @summary List a group\'s calendar events
15089
+ * @param {string} groupId Must be a valid group ID.
15090
+ * @param {string} [date] The month to search in.
15091
+ * @param {number} [n] The number of objects to return.
15092
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
15093
+ * @param {*} [options] Override http request option.
15094
+ * @throws {RequiredError}
15095
+ */
15096
+ getGroupCalendarEvents(groupId: string, date?: string, n?: number, offset?: number, options?: any): AxiosPromise<PaginatedCalendarEventList> {
15097
+ return localVarFp.getGroupCalendarEvents(groupId, date, n, offset, options).then((request) => request(axios, basePath));
15098
+ },
15099
+ /**
15100
+ * Updates an event for a group on the calendar
15101
+ * @summary Update a calendar event
15102
+ * @param {string} groupId Must be a valid group ID.
15103
+ * @param {string} calendarId Must be a valid calendar ID.
15104
+ * @param {UpdateCalendarEventRequest} updateCalendarEventRequest
15105
+ * @param {*} [options] Override http request option.
15106
+ * @throws {RequiredError}
15107
+ */
15108
+ updateGroupCalendarEvent(groupId: string, calendarId: string, updateCalendarEventRequest: UpdateCalendarEventRequest, options?: any): AxiosPromise<CalendarEvent> {
15109
+ return localVarFp.updateGroupCalendarEvent(groupId, calendarId, updateCalendarEventRequest, options).then((request) => request(axios, basePath));
15110
+ },
15111
+ };
15112
+ };
15113
+
15114
+ /**
15115
+ * CalendarApi - object-oriented interface
15116
+ * @export
15117
+ * @class CalendarApi
15118
+ * @extends {BaseAPI}
15119
+ */
15120
+ export class CalendarApi extends BaseAPI {
15121
+ /**
15122
+ * Creates an event for a group on the calendar
15123
+ * @summary Create a calendar event
15124
+ * @param {string} groupId Must be a valid group ID.
15125
+ * @param {CreateCalendarEventRequest} createCalendarEventRequest
15126
+ * @param {*} [options] Override http request option.
15127
+ * @throws {RequiredError}
15128
+ * @memberof CalendarApi
15129
+ */
15130
+ public createGroupCalendarEvent(groupId: string, createCalendarEventRequest: CreateCalendarEventRequest, options?: AxiosRequestConfig) {
15131
+ return CalendarApiFp(this.configuration).createGroupCalendarEvent(groupId, createCalendarEventRequest, options).then((request) => request(this.axios, this.basePath));
15132
+ }
15133
+
15134
+ /**
15135
+ * Delete a group calendar event
15136
+ * @summary Delete a calendar event
15137
+ * @param {string} groupId Must be a valid group ID.
15138
+ * @param {string} calendarId Must be a valid calendar ID.
15139
+ * @param {*} [options] Override http request option.
15140
+ * @throws {RequiredError}
15141
+ * @memberof CalendarApi
15142
+ */
15143
+ public deleteGroupCalendarEvent(groupId: string, calendarId: string, options?: AxiosRequestConfig) {
15144
+ return CalendarApiFp(this.configuration).deleteGroupCalendarEvent(groupId, calendarId, options).then((request) => request(this.axios, this.basePath));
15145
+ }
15146
+
15147
+ /**
15148
+ * Follow or unfollow an event on a group\'s calendar
15149
+ * @summary Follow a calendar event
15150
+ * @param {string} groupId Must be a valid group ID.
15151
+ * @param {string} calendarId Must be a valid calendar ID.
15152
+ * @param {FollowCalendarEventRequest} followCalendarEventRequest
15153
+ * @param {*} [options] Override http request option.
15154
+ * @throws {RequiredError}
15155
+ * @memberof CalendarApi
15156
+ */
15157
+ public followGroupCalendarEvent(groupId: string, calendarId: string, followCalendarEventRequest: FollowCalendarEventRequest, options?: AxiosRequestConfig) {
15158
+ return CalendarApiFp(this.configuration).followGroupCalendarEvent(groupId, calendarId, followCalendarEventRequest, options).then((request) => request(this.axios, this.basePath));
15159
+ }
15160
+
15161
+ /**
15162
+ * Get a list of a user\'s calendar events for the month in ?date
15163
+ * @summary List calendar events
15164
+ * @param {string} [date] The month to search in.
15165
+ * @param {number} [n] The number of objects to return.
15166
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
15167
+ * @param {*} [options] Override http request option.
15168
+ * @throws {RequiredError}
15169
+ * @memberof CalendarApi
15170
+ */
15171
+ public getCalendarEvents(date?: string, n?: number, offset?: number, options?: AxiosRequestConfig) {
15172
+ return CalendarApiFp(this.configuration).getCalendarEvents(date, n, offset, options).then((request) => request(this.axios, this.basePath));
15173
+ }
15174
+
15175
+ /**
15176
+ * Get a list of a featured calendar events for the month in ?date
15177
+ * @summary List featured calendar events
15178
+ * @param {string} [date] The month to search in.
15179
+ * @param {number} [n] The number of objects to return.
15180
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
15181
+ * @param {*} [options] Override http request option.
15182
+ * @throws {RequiredError}
15183
+ * @memberof CalendarApi
15184
+ */
15185
+ public getFeaturedCalendarEvents(date?: string, n?: number, offset?: number, options?: AxiosRequestConfig) {
15186
+ return CalendarApiFp(this.configuration).getFeaturedCalendarEvents(date, n, offset, options).then((request) => request(this.axios, this.basePath));
15187
+ }
15188
+
15189
+ /**
15190
+ * Get a list of a followed calendar events for the month in ?date
15191
+ * @summary List followed calendar events
15192
+ * @param {string} [date] The month to search in.
15193
+ * @param {number} [n] The number of objects to return.
15194
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
15195
+ * @param {*} [options] Override http request option.
15196
+ * @throws {RequiredError}
15197
+ * @memberof CalendarApi
15198
+ */
15199
+ public getFollowedCalendarEvents(date?: string, n?: number, offset?: number, options?: AxiosRequestConfig) {
15200
+ return CalendarApiFp(this.configuration).getFollowedCalendarEvents(date, n, offset, options).then((request) => request(this.axios, this.basePath));
15201
+ }
15202
+
15203
+ /**
15204
+ * Get a group calendar event
15205
+ * @summary Get a calendar event
15206
+ * @param {string} groupId Must be a valid group ID.
15207
+ * @param {string} calendarId Must be a valid calendar ID.
15208
+ * @param {*} [options] Override http request option.
15209
+ * @throws {RequiredError}
15210
+ * @memberof CalendarApi
15211
+ */
15212
+ public getGroupCalendarEvent(groupId: string, calendarId: string, options?: AxiosRequestConfig) {
15213
+ return CalendarApiFp(this.configuration).getGroupCalendarEvent(groupId, calendarId, options).then((request) => request(this.axios, this.basePath));
15214
+ }
15215
+
15216
+ /**
15217
+ * Returns the specified calendar in iCalendar (ICS) format.
15218
+ * @summary Download calendar event as ICS
15219
+ * @param {string} groupId Must be a valid group ID.
15220
+ * @param {string} calendarId Must be a valid calendar ID.
15221
+ * @param {*} [options] Override http request option.
15222
+ * @throws {RequiredError}
15223
+ * @memberof CalendarApi
15224
+ */
15225
+ public getGroupCalendarEventICS(groupId: string, calendarId: string, options?: AxiosRequestConfig) {
15226
+ return CalendarApiFp(this.configuration).getGroupCalendarEventICS(groupId, calendarId, options).then((request) => request(this.axios, this.basePath));
15227
+ }
15228
+
15229
+ /**
15230
+ * Get a list of a group\'s calendar events
15231
+ * @summary List a group\'s calendar events
15232
+ * @param {string} groupId Must be a valid group ID.
15233
+ * @param {string} [date] The month to search in.
15234
+ * @param {number} [n] The number of objects to return.
15235
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
15236
+ * @param {*} [options] Override http request option.
15237
+ * @throws {RequiredError}
15238
+ * @memberof CalendarApi
15239
+ */
15240
+ public getGroupCalendarEvents(groupId: string, date?: string, n?: number, offset?: number, options?: AxiosRequestConfig) {
15241
+ return CalendarApiFp(this.configuration).getGroupCalendarEvents(groupId, date, n, offset, options).then((request) => request(this.axios, this.basePath));
15242
+ }
15243
+
15244
+ /**
15245
+ * Updates an event for a group on the calendar
15246
+ * @summary Update a calendar event
15247
+ * @param {string} groupId Must be a valid group ID.
15248
+ * @param {string} calendarId Must be a valid calendar ID.
15249
+ * @param {UpdateCalendarEventRequest} updateCalendarEventRequest
15250
+ * @param {*} [options] Override http request option.
15251
+ * @throws {RequiredError}
15252
+ * @memberof CalendarApi
15253
+ */
15254
+ public updateGroupCalendarEvent(groupId: string, calendarId: string, updateCalendarEventRequest: UpdateCalendarEventRequest, options?: AxiosRequestConfig) {
15255
+ return CalendarApiFp(this.configuration).updateGroupCalendarEvent(groupId, calendarId, updateCalendarEventRequest, options).then((request) => request(this.axios, this.basePath));
15256
+ }
15257
+ }
15258
+
15259
+
13919
15260
  /**
13920
15261
  * EconomyApi - axios parameter creator
13921
15262
  * @export