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/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * VRChat API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.20.1
7
+ * The version of the OpenAPI document: 1.20.2
8
8
  * Contact: vrchatapi.lpv0t@aries.fyi
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -74,9 +74,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  }
75
75
  };
76
76
  Object.defineProperty(exports, "__esModule", { value: true });
77
- exports.FavoritesApiAxiosParamCreator = exports.EconomyApi = exports.EconomyApiFactory = exports.EconomyApiFp = exports.EconomyApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserStatus = exports.UserState = exports.TransactionStatus = exports.SubscriptionPeriod = exports.SortOption = exports.ReleaseStatus = exports.Region = exports.ProductType = exports.ProductListingType = exports.PlayerModerationType = exports.PerformanceRatings = exports.OrderOption = exports.NotificationType = exports.MIMEType = exports.LicenseType = exports.LicenseAction = exports.InviteMessageType = exports.InventoryItemType = exports.InstanceType = exports.InstanceRegion = exports.InfoPushDataClickableCommandEnum = exports.GroupUserVisibility = exports.GroupSearchSort = exports.GroupRoleTemplate = exports.GroupPrivacy = exports.GroupPostVisibility = exports.GroupPermissions = exports.GroupMemberStatus = exports.GroupJoinState = exports.GroupJoinRequestAction = exports.GroupAccessType = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.AgeVerificationStatus = void 0;
78
- exports.PropsApiFactory = exports.PropsApiFp = exports.PropsApiAxiosParamCreator = exports.PrintsApi = exports.PrintsApiFactory = exports.PrintsApiFp = exports.PrintsApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MiscellaneousApi = exports.MiscellaneousApiFactory = exports.MiscellaneousApiFp = exports.MiscellaneousApiAxiosParamCreator = exports.JamsApi = exports.JamsApiFactory = exports.JamsApiFp = exports.JamsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InventoryApi = exports.InventoryApiFactory = exports.InventoryApiFp = exports.InventoryApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = exports.FriendsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = exports.FavoritesApiFp = void 0;
79
- exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.PropsApi = void 0;
77
+ exports.CalendarApi = exports.CalendarApiFactory = exports.CalendarApiFp = exports.CalendarApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserStatus = exports.UserState = exports.TransactionStatus = exports.SubscriptionPeriod = exports.SortOption = exports.ReleaseStatus = exports.Region = exports.ProductType = exports.ProductListingType = exports.PlayerModerationType = exports.PerformanceRatings = exports.OrderOption = exports.NotificationType = exports.MIMEType = exports.LicenseType = exports.LicenseAction = exports.InviteMessageType = exports.InventoryItemType = exports.InstanceType = exports.InstanceRegion = exports.InfoPushDataClickableCommandEnum = exports.GroupUserVisibility = exports.GroupSearchSort = exports.GroupRoleTemplate = exports.GroupPrivacy = exports.GroupPostVisibility = exports.GroupPermissions = exports.GroupMemberStatus = exports.GroupJoinState = exports.GroupJoinRequestAction = exports.GroupAccessType = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.CreateCalendarEventRequestAccessTypeEnum = exports.AgeVerificationStatus = void 0;
78
+ exports.PrintsApiFp = exports.PrintsApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MiscellaneousApi = exports.MiscellaneousApiFactory = exports.MiscellaneousApiFp = exports.MiscellaneousApiAxiosParamCreator = exports.JamsApi = exports.JamsApiFactory = exports.JamsApiFp = exports.JamsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InventoryApi = exports.InventoryApiFactory = exports.InventoryApiFp = exports.InventoryApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = exports.FriendsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = exports.FavoritesApiFp = exports.FavoritesApiAxiosParamCreator = exports.EconomyApi = exports.EconomyApiFactory = exports.EconomyApiFp = exports.EconomyApiAxiosParamCreator = void 0;
79
+ exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.PropsApi = exports.PropsApiFactory = exports.PropsApiFp = exports.PropsApiAxiosParamCreator = exports.PrintsApi = exports.PrintsApiFactory = void 0;
80
80
  var axios_1 = require("axios");
81
81
  // Some imports not used depending on template conditions
82
82
  // @ts-ignore
@@ -98,6 +98,10 @@ exports.AgeVerificationStatus = {
98
98
  verified: 'verified',
99
99
  plus18: '18+'
100
100
  };
101
+ exports.CreateCalendarEventRequestAccessTypeEnum = {
102
+ Public: 'public',
103
+ Group: 'group'
104
+ };
101
105
  /**
102
106
  * \"none\" User is a normal user \"trusted\" Unknown \"internal\" Is a VRChat Developer \"moderator\" Is a VRChat Moderator Staff can hide their developerType at will.
103
107
  * @export
@@ -3130,6 +3134,939 @@ var AvatarsApi = /** @class */ (function (_super) {
3130
3134
  return AvatarsApi;
3131
3135
  }(base_1.BaseAPI));
3132
3136
  exports.AvatarsApi = AvatarsApi;
3137
+ /**
3138
+ * CalendarApi - axios parameter creator
3139
+ * @export
3140
+ */
3141
+ var CalendarApiAxiosParamCreator = function (configuration) {
3142
+ var _this = this;
3143
+ return {
3144
+ /**
3145
+ * Creates an event for a group on the calendar
3146
+ * @summary Create a calendar event
3147
+ * @param {string} groupId Must be a valid group ID.
3148
+ * @param {CreateCalendarEventRequest} createCalendarEventRequest
3149
+ * @param {*} [options] Override http request option.
3150
+ * @throws {RequiredError}
3151
+ */
3152
+ createGroupCalendarEvent: function (groupId, createCalendarEventRequest, options) {
3153
+ if (options === void 0) { options = {}; }
3154
+ return __awaiter(_this, void 0, void 0, function () {
3155
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3156
+ return __generator(this, function (_a) {
3157
+ // verify required parameter 'groupId' is not null or undefined
3158
+ (0, common_1.assertParamExists)('createGroupCalendarEvent', 'groupId', groupId);
3159
+ // verify required parameter 'createCalendarEventRequest' is not null or undefined
3160
+ (0, common_1.assertParamExists)('createGroupCalendarEvent', 'createCalendarEventRequest', createCalendarEventRequest);
3161
+ localVarPath = "/calendar/{groupId}/event"
3162
+ .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
3163
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3164
+ if (configuration) {
3165
+ baseOptions = configuration.baseOptions;
3166
+ }
3167
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3168
+ localVarHeaderParameter = {};
3169
+ localVarQueryParameter = {};
3170
+ // authentication authCookie required
3171
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3172
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3173
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3174
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3175
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCalendarEventRequest, localVarRequestOptions, configuration);
3176
+ return [2 /*return*/, {
3177
+ url: (0, common_1.toPathString)(localVarUrlObj),
3178
+ options: localVarRequestOptions,
3179
+ }];
3180
+ });
3181
+ });
3182
+ },
3183
+ /**
3184
+ * Delete a group calendar event
3185
+ * @summary Delete a calendar event
3186
+ * @param {string} groupId Must be a valid group ID.
3187
+ * @param {string} calendarId Must be a valid calendar ID.
3188
+ * @param {*} [options] Override http request option.
3189
+ * @throws {RequiredError}
3190
+ */
3191
+ deleteGroupCalendarEvent: function (groupId, calendarId, options) {
3192
+ if (options === void 0) { options = {}; }
3193
+ return __awaiter(_this, void 0, void 0, function () {
3194
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3195
+ return __generator(this, function (_a) {
3196
+ // verify required parameter 'groupId' is not null or undefined
3197
+ (0, common_1.assertParamExists)('deleteGroupCalendarEvent', 'groupId', groupId);
3198
+ // verify required parameter 'calendarId' is not null or undefined
3199
+ (0, common_1.assertParamExists)('deleteGroupCalendarEvent', 'calendarId', calendarId);
3200
+ localVarPath = "/calendar/{groupId}/{calendarId}"
3201
+ .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)))
3202
+ .replace("{".concat("calendarId", "}"), encodeURIComponent(String(calendarId)));
3203
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3204
+ if (configuration) {
3205
+ baseOptions = configuration.baseOptions;
3206
+ }
3207
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
3208
+ localVarHeaderParameter = {};
3209
+ localVarQueryParameter = {};
3210
+ // authentication authCookie required
3211
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3212
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3213
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3214
+ return [2 /*return*/, {
3215
+ url: (0, common_1.toPathString)(localVarUrlObj),
3216
+ options: localVarRequestOptions,
3217
+ }];
3218
+ });
3219
+ });
3220
+ },
3221
+ /**
3222
+ * Follow or unfollow an event on a group\'s calendar
3223
+ * @summary Follow a calendar event
3224
+ * @param {string} groupId Must be a valid group ID.
3225
+ * @param {string} calendarId Must be a valid calendar ID.
3226
+ * @param {FollowCalendarEventRequest} followCalendarEventRequest
3227
+ * @param {*} [options] Override http request option.
3228
+ * @throws {RequiredError}
3229
+ */
3230
+ followGroupCalendarEvent: function (groupId, calendarId, followCalendarEventRequest, options) {
3231
+ if (options === void 0) { options = {}; }
3232
+ return __awaiter(_this, void 0, void 0, function () {
3233
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3234
+ return __generator(this, function (_a) {
3235
+ // verify required parameter 'groupId' is not null or undefined
3236
+ (0, common_1.assertParamExists)('followGroupCalendarEvent', 'groupId', groupId);
3237
+ // verify required parameter 'calendarId' is not null or undefined
3238
+ (0, common_1.assertParamExists)('followGroupCalendarEvent', 'calendarId', calendarId);
3239
+ // verify required parameter 'followCalendarEventRequest' is not null or undefined
3240
+ (0, common_1.assertParamExists)('followGroupCalendarEvent', 'followCalendarEventRequest', followCalendarEventRequest);
3241
+ localVarPath = "/calendar/{groupId}/{calendarId}/follow"
3242
+ .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)))
3243
+ .replace("{".concat("calendarId", "}"), encodeURIComponent(String(calendarId)));
3244
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3245
+ if (configuration) {
3246
+ baseOptions = configuration.baseOptions;
3247
+ }
3248
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3249
+ localVarHeaderParameter = {};
3250
+ localVarQueryParameter = {};
3251
+ // authentication authCookie required
3252
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3253
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3254
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3255
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3256
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(followCalendarEventRequest, localVarRequestOptions, configuration);
3257
+ return [2 /*return*/, {
3258
+ url: (0, common_1.toPathString)(localVarUrlObj),
3259
+ options: localVarRequestOptions,
3260
+ }];
3261
+ });
3262
+ });
3263
+ },
3264
+ /**
3265
+ * Get a list of a user\'s calendar events for the month in ?date
3266
+ * @summary List calendar events
3267
+ * @param {string} [date] The month to search in.
3268
+ * @param {number} [n] The number of objects to return.
3269
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3270
+ * @param {*} [options] Override http request option.
3271
+ * @throws {RequiredError}
3272
+ */
3273
+ getCalendarEvents: function (date, n, offset, options) {
3274
+ if (options === void 0) { options = {}; }
3275
+ return __awaiter(_this, void 0, void 0, function () {
3276
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3277
+ return __generator(this, function (_a) {
3278
+ localVarPath = "/calendar";
3279
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3280
+ if (configuration) {
3281
+ baseOptions = configuration.baseOptions;
3282
+ }
3283
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3284
+ localVarHeaderParameter = {};
3285
+ localVarQueryParameter = {};
3286
+ // authentication authCookie required
3287
+ if (date !== undefined) {
3288
+ localVarQueryParameter['date'] = (date instanceof Date) ?
3289
+ date.toISOString() :
3290
+ date;
3291
+ }
3292
+ if (n !== undefined) {
3293
+ localVarQueryParameter['n'] = n;
3294
+ }
3295
+ if (offset !== undefined) {
3296
+ localVarQueryParameter['offset'] = offset;
3297
+ }
3298
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3299
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3300
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3301
+ return [2 /*return*/, {
3302
+ url: (0, common_1.toPathString)(localVarUrlObj),
3303
+ options: localVarRequestOptions,
3304
+ }];
3305
+ });
3306
+ });
3307
+ },
3308
+ /**
3309
+ * Get a list of a featured calendar events for the month in ?date
3310
+ * @summary List featured calendar events
3311
+ * @param {string} [date] The month to search in.
3312
+ * @param {number} [n] The number of objects to return.
3313
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3314
+ * @param {*} [options] Override http request option.
3315
+ * @throws {RequiredError}
3316
+ */
3317
+ getFeaturedCalendarEvents: function (date, n, offset, options) {
3318
+ if (options === void 0) { options = {}; }
3319
+ return __awaiter(_this, void 0, void 0, function () {
3320
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3321
+ return __generator(this, function (_a) {
3322
+ localVarPath = "/calendar/featured";
3323
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3324
+ if (configuration) {
3325
+ baseOptions = configuration.baseOptions;
3326
+ }
3327
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3328
+ localVarHeaderParameter = {};
3329
+ localVarQueryParameter = {};
3330
+ // authentication authCookie required
3331
+ if (date !== undefined) {
3332
+ localVarQueryParameter['date'] = (date instanceof Date) ?
3333
+ date.toISOString() :
3334
+ date;
3335
+ }
3336
+ if (n !== undefined) {
3337
+ localVarQueryParameter['n'] = n;
3338
+ }
3339
+ if (offset !== undefined) {
3340
+ localVarQueryParameter['offset'] = offset;
3341
+ }
3342
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3343
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3344
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3345
+ return [2 /*return*/, {
3346
+ url: (0, common_1.toPathString)(localVarUrlObj),
3347
+ options: localVarRequestOptions,
3348
+ }];
3349
+ });
3350
+ });
3351
+ },
3352
+ /**
3353
+ * Get a list of a followed calendar events for the month in ?date
3354
+ * @summary List followed calendar events
3355
+ * @param {string} [date] The month to search in.
3356
+ * @param {number} [n] The number of objects to return.
3357
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3358
+ * @param {*} [options] Override http request option.
3359
+ * @throws {RequiredError}
3360
+ */
3361
+ getFollowedCalendarEvents: function (date, n, offset, options) {
3362
+ if (options === void 0) { options = {}; }
3363
+ return __awaiter(_this, void 0, void 0, function () {
3364
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3365
+ return __generator(this, function (_a) {
3366
+ localVarPath = "/calendar/following";
3367
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3368
+ if (configuration) {
3369
+ baseOptions = configuration.baseOptions;
3370
+ }
3371
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3372
+ localVarHeaderParameter = {};
3373
+ localVarQueryParameter = {};
3374
+ // authentication authCookie required
3375
+ if (date !== undefined) {
3376
+ localVarQueryParameter['date'] = (date instanceof Date) ?
3377
+ date.toISOString() :
3378
+ date;
3379
+ }
3380
+ if (n !== undefined) {
3381
+ localVarQueryParameter['n'] = n;
3382
+ }
3383
+ if (offset !== undefined) {
3384
+ localVarQueryParameter['offset'] = offset;
3385
+ }
3386
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3387
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3388
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3389
+ return [2 /*return*/, {
3390
+ url: (0, common_1.toPathString)(localVarUrlObj),
3391
+ options: localVarRequestOptions,
3392
+ }];
3393
+ });
3394
+ });
3395
+ },
3396
+ /**
3397
+ * Get a group calendar event
3398
+ * @summary Get a calendar event
3399
+ * @param {string} groupId Must be a valid group ID.
3400
+ * @param {string} calendarId Must be a valid calendar ID.
3401
+ * @param {*} [options] Override http request option.
3402
+ * @throws {RequiredError}
3403
+ */
3404
+ getGroupCalendarEvent: function (groupId, calendarId, options) {
3405
+ if (options === void 0) { options = {}; }
3406
+ return __awaiter(_this, void 0, void 0, function () {
3407
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3408
+ return __generator(this, function (_a) {
3409
+ // verify required parameter 'groupId' is not null or undefined
3410
+ (0, common_1.assertParamExists)('getGroupCalendarEvent', 'groupId', groupId);
3411
+ // verify required parameter 'calendarId' is not null or undefined
3412
+ (0, common_1.assertParamExists)('getGroupCalendarEvent', 'calendarId', calendarId);
3413
+ localVarPath = "/calendar/{groupId}/{calendarId}"
3414
+ .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)))
3415
+ .replace("{".concat("calendarId", "}"), encodeURIComponent(String(calendarId)));
3416
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3417
+ if (configuration) {
3418
+ baseOptions = configuration.baseOptions;
3419
+ }
3420
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3421
+ localVarHeaderParameter = {};
3422
+ localVarQueryParameter = {};
3423
+ // authentication authCookie required
3424
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3425
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3426
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3427
+ return [2 /*return*/, {
3428
+ url: (0, common_1.toPathString)(localVarUrlObj),
3429
+ options: localVarRequestOptions,
3430
+ }];
3431
+ });
3432
+ });
3433
+ },
3434
+ /**
3435
+ * Returns the specified calendar in iCalendar (ICS) format.
3436
+ * @summary Download calendar event as ICS
3437
+ * @param {string} groupId Must be a valid group ID.
3438
+ * @param {string} calendarId Must be a valid calendar ID.
3439
+ * @param {*} [options] Override http request option.
3440
+ * @throws {RequiredError}
3441
+ */
3442
+ getGroupCalendarEventICS: function (groupId, calendarId, options) {
3443
+ if (options === void 0) { options = {}; }
3444
+ return __awaiter(_this, void 0, void 0, function () {
3445
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3446
+ return __generator(this, function (_a) {
3447
+ // verify required parameter 'groupId' is not null or undefined
3448
+ (0, common_1.assertParamExists)('getGroupCalendarEventICS', 'groupId', groupId);
3449
+ // verify required parameter 'calendarId' is not null or undefined
3450
+ (0, common_1.assertParamExists)('getGroupCalendarEventICS', 'calendarId', calendarId);
3451
+ localVarPath = "/calendar/{groupId}/{calendarId}.ics"
3452
+ .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)))
3453
+ .replace("{".concat("calendarId", "}"), encodeURIComponent(String(calendarId)));
3454
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3455
+ if (configuration) {
3456
+ baseOptions = configuration.baseOptions;
3457
+ }
3458
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3459
+ localVarHeaderParameter = {};
3460
+ localVarQueryParameter = {};
3461
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3462
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3463
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3464
+ return [2 /*return*/, {
3465
+ url: (0, common_1.toPathString)(localVarUrlObj),
3466
+ options: localVarRequestOptions,
3467
+ }];
3468
+ });
3469
+ });
3470
+ },
3471
+ /**
3472
+ * Get a list of a group\'s calendar events
3473
+ * @summary List a group\'s calendar events
3474
+ * @param {string} groupId Must be a valid group ID.
3475
+ * @param {string} [date] The month to search in.
3476
+ * @param {number} [n] The number of objects to return.
3477
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3478
+ * @param {*} [options] Override http request option.
3479
+ * @throws {RequiredError}
3480
+ */
3481
+ getGroupCalendarEvents: function (groupId, date, n, offset, options) {
3482
+ if (options === void 0) { options = {}; }
3483
+ return __awaiter(_this, void 0, void 0, function () {
3484
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3485
+ return __generator(this, function (_a) {
3486
+ // verify required parameter 'groupId' is not null or undefined
3487
+ (0, common_1.assertParamExists)('getGroupCalendarEvents', 'groupId', groupId);
3488
+ localVarPath = "/calendar/{groupId}"
3489
+ .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
3490
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3491
+ if (configuration) {
3492
+ baseOptions = configuration.baseOptions;
3493
+ }
3494
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3495
+ localVarHeaderParameter = {};
3496
+ localVarQueryParameter = {};
3497
+ // authentication authCookie required
3498
+ if (date !== undefined) {
3499
+ localVarQueryParameter['date'] = (date instanceof Date) ?
3500
+ date.toISOString() :
3501
+ date;
3502
+ }
3503
+ if (n !== undefined) {
3504
+ localVarQueryParameter['n'] = n;
3505
+ }
3506
+ if (offset !== undefined) {
3507
+ localVarQueryParameter['offset'] = offset;
3508
+ }
3509
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3510
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3511
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3512
+ return [2 /*return*/, {
3513
+ url: (0, common_1.toPathString)(localVarUrlObj),
3514
+ options: localVarRequestOptions,
3515
+ }];
3516
+ });
3517
+ });
3518
+ },
3519
+ /**
3520
+ * Updates an event for a group on the calendar
3521
+ * @summary Update a calendar event
3522
+ * @param {string} groupId Must be a valid group ID.
3523
+ * @param {string} calendarId Must be a valid calendar ID.
3524
+ * @param {UpdateCalendarEventRequest} updateCalendarEventRequest
3525
+ * @param {*} [options] Override http request option.
3526
+ * @throws {RequiredError}
3527
+ */
3528
+ updateGroupCalendarEvent: function (groupId, calendarId, updateCalendarEventRequest, options) {
3529
+ if (options === void 0) { options = {}; }
3530
+ return __awaiter(_this, void 0, void 0, function () {
3531
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3532
+ return __generator(this, function (_a) {
3533
+ // verify required parameter 'groupId' is not null or undefined
3534
+ (0, common_1.assertParamExists)('updateGroupCalendarEvent', 'groupId', groupId);
3535
+ // verify required parameter 'calendarId' is not null or undefined
3536
+ (0, common_1.assertParamExists)('updateGroupCalendarEvent', 'calendarId', calendarId);
3537
+ // verify required parameter 'updateCalendarEventRequest' is not null or undefined
3538
+ (0, common_1.assertParamExists)('updateGroupCalendarEvent', 'updateCalendarEventRequest', updateCalendarEventRequest);
3539
+ localVarPath = "/calendar/{groupId}/{calendarId}/event"
3540
+ .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)))
3541
+ .replace("{".concat("calendarId", "}"), encodeURIComponent(String(calendarId)));
3542
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3543
+ if (configuration) {
3544
+ baseOptions = configuration.baseOptions;
3545
+ }
3546
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
3547
+ localVarHeaderParameter = {};
3548
+ localVarQueryParameter = {};
3549
+ // authentication authCookie required
3550
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3551
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3552
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3553
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3554
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCalendarEventRequest, localVarRequestOptions, configuration);
3555
+ return [2 /*return*/, {
3556
+ url: (0, common_1.toPathString)(localVarUrlObj),
3557
+ options: localVarRequestOptions,
3558
+ }];
3559
+ });
3560
+ });
3561
+ },
3562
+ };
3563
+ };
3564
+ exports.CalendarApiAxiosParamCreator = CalendarApiAxiosParamCreator;
3565
+ /**
3566
+ * CalendarApi - functional programming interface
3567
+ * @export
3568
+ */
3569
+ var CalendarApiFp = function (configuration) {
3570
+ var localVarAxiosParamCreator = (0, exports.CalendarApiAxiosParamCreator)(configuration);
3571
+ return {
3572
+ /**
3573
+ * Creates an event for a group on the calendar
3574
+ * @summary Create a calendar event
3575
+ * @param {string} groupId Must be a valid group ID.
3576
+ * @param {CreateCalendarEventRequest} createCalendarEventRequest
3577
+ * @param {*} [options] Override http request option.
3578
+ * @throws {RequiredError}
3579
+ */
3580
+ createGroupCalendarEvent: function (groupId, createCalendarEventRequest, options) {
3581
+ return __awaiter(this, void 0, void 0, function () {
3582
+ var localVarAxiosArgs;
3583
+ return __generator(this, function (_a) {
3584
+ switch (_a.label) {
3585
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createGroupCalendarEvent(groupId, createCalendarEventRequest, options)];
3586
+ case 1:
3587
+ localVarAxiosArgs = _a.sent();
3588
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3589
+ }
3590
+ });
3591
+ });
3592
+ },
3593
+ /**
3594
+ * Delete a group calendar event
3595
+ * @summary Delete a calendar event
3596
+ * @param {string} groupId Must be a valid group ID.
3597
+ * @param {string} calendarId Must be a valid calendar ID.
3598
+ * @param {*} [options] Override http request option.
3599
+ * @throws {RequiredError}
3600
+ */
3601
+ deleteGroupCalendarEvent: function (groupId, calendarId, options) {
3602
+ return __awaiter(this, void 0, void 0, function () {
3603
+ var localVarAxiosArgs;
3604
+ return __generator(this, function (_a) {
3605
+ switch (_a.label) {
3606
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteGroupCalendarEvent(groupId, calendarId, options)];
3607
+ case 1:
3608
+ localVarAxiosArgs = _a.sent();
3609
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3610
+ }
3611
+ });
3612
+ });
3613
+ },
3614
+ /**
3615
+ * Follow or unfollow an event on a group\'s calendar
3616
+ * @summary Follow a calendar event
3617
+ * @param {string} groupId Must be a valid group ID.
3618
+ * @param {string} calendarId Must be a valid calendar ID.
3619
+ * @param {FollowCalendarEventRequest} followCalendarEventRequest
3620
+ * @param {*} [options] Override http request option.
3621
+ * @throws {RequiredError}
3622
+ */
3623
+ followGroupCalendarEvent: function (groupId, calendarId, followCalendarEventRequest, options) {
3624
+ return __awaiter(this, void 0, void 0, function () {
3625
+ var localVarAxiosArgs;
3626
+ return __generator(this, function (_a) {
3627
+ switch (_a.label) {
3628
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.followGroupCalendarEvent(groupId, calendarId, followCalendarEventRequest, options)];
3629
+ case 1:
3630
+ localVarAxiosArgs = _a.sent();
3631
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3632
+ }
3633
+ });
3634
+ });
3635
+ },
3636
+ /**
3637
+ * Get a list of a user\'s calendar events for the month in ?date
3638
+ * @summary List calendar events
3639
+ * @param {string} [date] The month to search in.
3640
+ * @param {number} [n] The number of objects to return.
3641
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3642
+ * @param {*} [options] Override http request option.
3643
+ * @throws {RequiredError}
3644
+ */
3645
+ getCalendarEvents: function (date, n, offset, options) {
3646
+ return __awaiter(this, void 0, void 0, function () {
3647
+ var localVarAxiosArgs;
3648
+ return __generator(this, function (_a) {
3649
+ switch (_a.label) {
3650
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCalendarEvents(date, n, offset, options)];
3651
+ case 1:
3652
+ localVarAxiosArgs = _a.sent();
3653
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3654
+ }
3655
+ });
3656
+ });
3657
+ },
3658
+ /**
3659
+ * Get a list of a featured calendar events for the month in ?date
3660
+ * @summary List featured calendar events
3661
+ * @param {string} [date] The month to search in.
3662
+ * @param {number} [n] The number of objects to return.
3663
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3664
+ * @param {*} [options] Override http request option.
3665
+ * @throws {RequiredError}
3666
+ */
3667
+ getFeaturedCalendarEvents: function (date, n, offset, options) {
3668
+ return __awaiter(this, void 0, void 0, function () {
3669
+ var localVarAxiosArgs;
3670
+ return __generator(this, function (_a) {
3671
+ switch (_a.label) {
3672
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getFeaturedCalendarEvents(date, n, offset, options)];
3673
+ case 1:
3674
+ localVarAxiosArgs = _a.sent();
3675
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3676
+ }
3677
+ });
3678
+ });
3679
+ },
3680
+ /**
3681
+ * Get a list of a followed calendar events for the month in ?date
3682
+ * @summary List followed calendar events
3683
+ * @param {string} [date] The month to search in.
3684
+ * @param {number} [n] The number of objects to return.
3685
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3686
+ * @param {*} [options] Override http request option.
3687
+ * @throws {RequiredError}
3688
+ */
3689
+ getFollowedCalendarEvents: function (date, n, offset, options) {
3690
+ return __awaiter(this, void 0, void 0, function () {
3691
+ var localVarAxiosArgs;
3692
+ return __generator(this, function (_a) {
3693
+ switch (_a.label) {
3694
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getFollowedCalendarEvents(date, n, offset, options)];
3695
+ case 1:
3696
+ localVarAxiosArgs = _a.sent();
3697
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3698
+ }
3699
+ });
3700
+ });
3701
+ },
3702
+ /**
3703
+ * Get a group calendar event
3704
+ * @summary Get a calendar event
3705
+ * @param {string} groupId Must be a valid group ID.
3706
+ * @param {string} calendarId Must be a valid calendar ID.
3707
+ * @param {*} [options] Override http request option.
3708
+ * @throws {RequiredError}
3709
+ */
3710
+ getGroupCalendarEvent: function (groupId, calendarId, options) {
3711
+ return __awaiter(this, void 0, void 0, function () {
3712
+ var localVarAxiosArgs;
3713
+ return __generator(this, function (_a) {
3714
+ switch (_a.label) {
3715
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupCalendarEvent(groupId, calendarId, options)];
3716
+ case 1:
3717
+ localVarAxiosArgs = _a.sent();
3718
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3719
+ }
3720
+ });
3721
+ });
3722
+ },
3723
+ /**
3724
+ * Returns the specified calendar in iCalendar (ICS) format.
3725
+ * @summary Download calendar event as ICS
3726
+ * @param {string} groupId Must be a valid group ID.
3727
+ * @param {string} calendarId Must be a valid calendar ID.
3728
+ * @param {*} [options] Override http request option.
3729
+ * @throws {RequiredError}
3730
+ */
3731
+ getGroupCalendarEventICS: function (groupId, calendarId, options) {
3732
+ return __awaiter(this, void 0, void 0, function () {
3733
+ var localVarAxiosArgs;
3734
+ return __generator(this, function (_a) {
3735
+ switch (_a.label) {
3736
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupCalendarEventICS(groupId, calendarId, options)];
3737
+ case 1:
3738
+ localVarAxiosArgs = _a.sent();
3739
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3740
+ }
3741
+ });
3742
+ });
3743
+ },
3744
+ /**
3745
+ * Get a list of a group\'s calendar events
3746
+ * @summary List a group\'s calendar events
3747
+ * @param {string} groupId Must be a valid group ID.
3748
+ * @param {string} [date] The month to search in.
3749
+ * @param {number} [n] The number of objects to return.
3750
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3751
+ * @param {*} [options] Override http request option.
3752
+ * @throws {RequiredError}
3753
+ */
3754
+ getGroupCalendarEvents: function (groupId, date, n, offset, options) {
3755
+ return __awaiter(this, void 0, void 0, function () {
3756
+ var localVarAxiosArgs;
3757
+ return __generator(this, function (_a) {
3758
+ switch (_a.label) {
3759
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupCalendarEvents(groupId, date, n, offset, options)];
3760
+ case 1:
3761
+ localVarAxiosArgs = _a.sent();
3762
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3763
+ }
3764
+ });
3765
+ });
3766
+ },
3767
+ /**
3768
+ * Updates an event for a group on the calendar
3769
+ * @summary Update a calendar event
3770
+ * @param {string} groupId Must be a valid group ID.
3771
+ * @param {string} calendarId Must be a valid calendar ID.
3772
+ * @param {UpdateCalendarEventRequest} updateCalendarEventRequest
3773
+ * @param {*} [options] Override http request option.
3774
+ * @throws {RequiredError}
3775
+ */
3776
+ updateGroupCalendarEvent: function (groupId, calendarId, updateCalendarEventRequest, options) {
3777
+ return __awaiter(this, void 0, void 0, function () {
3778
+ var localVarAxiosArgs;
3779
+ return __generator(this, function (_a) {
3780
+ switch (_a.label) {
3781
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateGroupCalendarEvent(groupId, calendarId, updateCalendarEventRequest, options)];
3782
+ case 1:
3783
+ localVarAxiosArgs = _a.sent();
3784
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3785
+ }
3786
+ });
3787
+ });
3788
+ },
3789
+ };
3790
+ };
3791
+ exports.CalendarApiFp = CalendarApiFp;
3792
+ /**
3793
+ * CalendarApi - factory interface
3794
+ * @export
3795
+ */
3796
+ var CalendarApiFactory = function (configuration, basePath, axios) {
3797
+ var localVarFp = (0, exports.CalendarApiFp)(configuration);
3798
+ return {
3799
+ /**
3800
+ * Creates an event for a group on the calendar
3801
+ * @summary Create a calendar event
3802
+ * @param {string} groupId Must be a valid group ID.
3803
+ * @param {CreateCalendarEventRequest} createCalendarEventRequest
3804
+ * @param {*} [options] Override http request option.
3805
+ * @throws {RequiredError}
3806
+ */
3807
+ createGroupCalendarEvent: function (groupId, createCalendarEventRequest, options) {
3808
+ return localVarFp.createGroupCalendarEvent(groupId, createCalendarEventRequest, options).then(function (request) { return request(axios, basePath); });
3809
+ },
3810
+ /**
3811
+ * Delete a group calendar event
3812
+ * @summary Delete a calendar event
3813
+ * @param {string} groupId Must be a valid group ID.
3814
+ * @param {string} calendarId Must be a valid calendar ID.
3815
+ * @param {*} [options] Override http request option.
3816
+ * @throws {RequiredError}
3817
+ */
3818
+ deleteGroupCalendarEvent: function (groupId, calendarId, options) {
3819
+ return localVarFp.deleteGroupCalendarEvent(groupId, calendarId, options).then(function (request) { return request(axios, basePath); });
3820
+ },
3821
+ /**
3822
+ * Follow or unfollow an event on a group\'s calendar
3823
+ * @summary Follow a calendar event
3824
+ * @param {string} groupId Must be a valid group ID.
3825
+ * @param {string} calendarId Must be a valid calendar ID.
3826
+ * @param {FollowCalendarEventRequest} followCalendarEventRequest
3827
+ * @param {*} [options] Override http request option.
3828
+ * @throws {RequiredError}
3829
+ */
3830
+ followGroupCalendarEvent: function (groupId, calendarId, followCalendarEventRequest, options) {
3831
+ return localVarFp.followGroupCalendarEvent(groupId, calendarId, followCalendarEventRequest, options).then(function (request) { return request(axios, basePath); });
3832
+ },
3833
+ /**
3834
+ * Get a list of a user\'s calendar events for the month in ?date
3835
+ * @summary List calendar events
3836
+ * @param {string} [date] The month to search in.
3837
+ * @param {number} [n] The number of objects to return.
3838
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3839
+ * @param {*} [options] Override http request option.
3840
+ * @throws {RequiredError}
3841
+ */
3842
+ getCalendarEvents: function (date, n, offset, options) {
3843
+ return localVarFp.getCalendarEvents(date, n, offset, options).then(function (request) { return request(axios, basePath); });
3844
+ },
3845
+ /**
3846
+ * Get a list of a featured calendar events for the month in ?date
3847
+ * @summary List featured calendar events
3848
+ * @param {string} [date] The month to search in.
3849
+ * @param {number} [n] The number of objects to return.
3850
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3851
+ * @param {*} [options] Override http request option.
3852
+ * @throws {RequiredError}
3853
+ */
3854
+ getFeaturedCalendarEvents: function (date, n, offset, options) {
3855
+ return localVarFp.getFeaturedCalendarEvents(date, n, offset, options).then(function (request) { return request(axios, basePath); });
3856
+ },
3857
+ /**
3858
+ * Get a list of a followed calendar events for the month in ?date
3859
+ * @summary List followed calendar events
3860
+ * @param {string} [date] The month to search in.
3861
+ * @param {number} [n] The number of objects to return.
3862
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3863
+ * @param {*} [options] Override http request option.
3864
+ * @throws {RequiredError}
3865
+ */
3866
+ getFollowedCalendarEvents: function (date, n, offset, options) {
3867
+ return localVarFp.getFollowedCalendarEvents(date, n, offset, options).then(function (request) { return request(axios, basePath); });
3868
+ },
3869
+ /**
3870
+ * Get a group calendar event
3871
+ * @summary Get a calendar event
3872
+ * @param {string} groupId Must be a valid group ID.
3873
+ * @param {string} calendarId Must be a valid calendar ID.
3874
+ * @param {*} [options] Override http request option.
3875
+ * @throws {RequiredError}
3876
+ */
3877
+ getGroupCalendarEvent: function (groupId, calendarId, options) {
3878
+ return localVarFp.getGroupCalendarEvent(groupId, calendarId, options).then(function (request) { return request(axios, basePath); });
3879
+ },
3880
+ /**
3881
+ * Returns the specified calendar in iCalendar (ICS) format.
3882
+ * @summary Download calendar event as ICS
3883
+ * @param {string} groupId Must be a valid group ID.
3884
+ * @param {string} calendarId Must be a valid calendar ID.
3885
+ * @param {*} [options] Override http request option.
3886
+ * @throws {RequiredError}
3887
+ */
3888
+ getGroupCalendarEventICS: function (groupId, calendarId, options) {
3889
+ return localVarFp.getGroupCalendarEventICS(groupId, calendarId, options).then(function (request) { return request(axios, basePath); });
3890
+ },
3891
+ /**
3892
+ * Get a list of a group\'s calendar events
3893
+ * @summary List a group\'s calendar events
3894
+ * @param {string} groupId Must be a valid group ID.
3895
+ * @param {string} [date] The month to search in.
3896
+ * @param {number} [n] The number of objects to return.
3897
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3898
+ * @param {*} [options] Override http request option.
3899
+ * @throws {RequiredError}
3900
+ */
3901
+ getGroupCalendarEvents: function (groupId, date, n, offset, options) {
3902
+ return localVarFp.getGroupCalendarEvents(groupId, date, n, offset, options).then(function (request) { return request(axios, basePath); });
3903
+ },
3904
+ /**
3905
+ * Updates an event for a group on the calendar
3906
+ * @summary Update a calendar event
3907
+ * @param {string} groupId Must be a valid group ID.
3908
+ * @param {string} calendarId Must be a valid calendar ID.
3909
+ * @param {UpdateCalendarEventRequest} updateCalendarEventRequest
3910
+ * @param {*} [options] Override http request option.
3911
+ * @throws {RequiredError}
3912
+ */
3913
+ updateGroupCalendarEvent: function (groupId, calendarId, updateCalendarEventRequest, options) {
3914
+ return localVarFp.updateGroupCalendarEvent(groupId, calendarId, updateCalendarEventRequest, options).then(function (request) { return request(axios, basePath); });
3915
+ },
3916
+ };
3917
+ };
3918
+ exports.CalendarApiFactory = CalendarApiFactory;
3919
+ /**
3920
+ * CalendarApi - object-oriented interface
3921
+ * @export
3922
+ * @class CalendarApi
3923
+ * @extends {BaseAPI}
3924
+ */
3925
+ var CalendarApi = /** @class */ (function (_super) {
3926
+ __extends(CalendarApi, _super);
3927
+ function CalendarApi() {
3928
+ return _super !== null && _super.apply(this, arguments) || this;
3929
+ }
3930
+ /**
3931
+ * Creates an event for a group on the calendar
3932
+ * @summary Create a calendar event
3933
+ * @param {string} groupId Must be a valid group ID.
3934
+ * @param {CreateCalendarEventRequest} createCalendarEventRequest
3935
+ * @param {*} [options] Override http request option.
3936
+ * @throws {RequiredError}
3937
+ * @memberof CalendarApi
3938
+ */
3939
+ CalendarApi.prototype.createGroupCalendarEvent = function (groupId, createCalendarEventRequest, options) {
3940
+ var _this = this;
3941
+ return (0, exports.CalendarApiFp)(this.configuration).createGroupCalendarEvent(groupId, createCalendarEventRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3942
+ };
3943
+ /**
3944
+ * Delete a group calendar event
3945
+ * @summary Delete a calendar event
3946
+ * @param {string} groupId Must be a valid group ID.
3947
+ * @param {string} calendarId Must be a valid calendar ID.
3948
+ * @param {*} [options] Override http request option.
3949
+ * @throws {RequiredError}
3950
+ * @memberof CalendarApi
3951
+ */
3952
+ CalendarApi.prototype.deleteGroupCalendarEvent = function (groupId, calendarId, options) {
3953
+ var _this = this;
3954
+ return (0, exports.CalendarApiFp)(this.configuration).deleteGroupCalendarEvent(groupId, calendarId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3955
+ };
3956
+ /**
3957
+ * Follow or unfollow an event on a group\'s calendar
3958
+ * @summary Follow a calendar event
3959
+ * @param {string} groupId Must be a valid group ID.
3960
+ * @param {string} calendarId Must be a valid calendar ID.
3961
+ * @param {FollowCalendarEventRequest} followCalendarEventRequest
3962
+ * @param {*} [options] Override http request option.
3963
+ * @throws {RequiredError}
3964
+ * @memberof CalendarApi
3965
+ */
3966
+ CalendarApi.prototype.followGroupCalendarEvent = function (groupId, calendarId, followCalendarEventRequest, options) {
3967
+ var _this = this;
3968
+ return (0, exports.CalendarApiFp)(this.configuration).followGroupCalendarEvent(groupId, calendarId, followCalendarEventRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3969
+ };
3970
+ /**
3971
+ * Get a list of a user\'s calendar events for the month in ?date
3972
+ * @summary List calendar events
3973
+ * @param {string} [date] The month to search in.
3974
+ * @param {number} [n] The number of objects to return.
3975
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3976
+ * @param {*} [options] Override http request option.
3977
+ * @throws {RequiredError}
3978
+ * @memberof CalendarApi
3979
+ */
3980
+ CalendarApi.prototype.getCalendarEvents = function (date, n, offset, options) {
3981
+ var _this = this;
3982
+ return (0, exports.CalendarApiFp)(this.configuration).getCalendarEvents(date, n, offset, options).then(function (request) { return request(_this.axios, _this.basePath); });
3983
+ };
3984
+ /**
3985
+ * Get a list of a featured calendar events for the month in ?date
3986
+ * @summary List featured calendar events
3987
+ * @param {string} [date] The month to search in.
3988
+ * @param {number} [n] The number of objects to return.
3989
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
3990
+ * @param {*} [options] Override http request option.
3991
+ * @throws {RequiredError}
3992
+ * @memberof CalendarApi
3993
+ */
3994
+ CalendarApi.prototype.getFeaturedCalendarEvents = function (date, n, offset, options) {
3995
+ var _this = this;
3996
+ return (0, exports.CalendarApiFp)(this.configuration).getFeaturedCalendarEvents(date, n, offset, options).then(function (request) { return request(_this.axios, _this.basePath); });
3997
+ };
3998
+ /**
3999
+ * Get a list of a followed calendar events for the month in ?date
4000
+ * @summary List followed calendar events
4001
+ * @param {string} [date] The month to search in.
4002
+ * @param {number} [n] The number of objects to return.
4003
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
4004
+ * @param {*} [options] Override http request option.
4005
+ * @throws {RequiredError}
4006
+ * @memberof CalendarApi
4007
+ */
4008
+ CalendarApi.prototype.getFollowedCalendarEvents = function (date, n, offset, options) {
4009
+ var _this = this;
4010
+ return (0, exports.CalendarApiFp)(this.configuration).getFollowedCalendarEvents(date, n, offset, options).then(function (request) { return request(_this.axios, _this.basePath); });
4011
+ };
4012
+ /**
4013
+ * Get a group calendar event
4014
+ * @summary Get a calendar event
4015
+ * @param {string} groupId Must be a valid group ID.
4016
+ * @param {string} calendarId Must be a valid calendar ID.
4017
+ * @param {*} [options] Override http request option.
4018
+ * @throws {RequiredError}
4019
+ * @memberof CalendarApi
4020
+ */
4021
+ CalendarApi.prototype.getGroupCalendarEvent = function (groupId, calendarId, options) {
4022
+ var _this = this;
4023
+ return (0, exports.CalendarApiFp)(this.configuration).getGroupCalendarEvent(groupId, calendarId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4024
+ };
4025
+ /**
4026
+ * Returns the specified calendar in iCalendar (ICS) format.
4027
+ * @summary Download calendar event as ICS
4028
+ * @param {string} groupId Must be a valid group ID.
4029
+ * @param {string} calendarId Must be a valid calendar ID.
4030
+ * @param {*} [options] Override http request option.
4031
+ * @throws {RequiredError}
4032
+ * @memberof CalendarApi
4033
+ */
4034
+ CalendarApi.prototype.getGroupCalendarEventICS = function (groupId, calendarId, options) {
4035
+ var _this = this;
4036
+ return (0, exports.CalendarApiFp)(this.configuration).getGroupCalendarEventICS(groupId, calendarId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4037
+ };
4038
+ /**
4039
+ * Get a list of a group\'s calendar events
4040
+ * @summary List a group\'s calendar events
4041
+ * @param {string} groupId Must be a valid group ID.
4042
+ * @param {string} [date] The month to search in.
4043
+ * @param {number} [n] The number of objects to return.
4044
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
4045
+ * @param {*} [options] Override http request option.
4046
+ * @throws {RequiredError}
4047
+ * @memberof CalendarApi
4048
+ */
4049
+ CalendarApi.prototype.getGroupCalendarEvents = function (groupId, date, n, offset, options) {
4050
+ var _this = this;
4051
+ return (0, exports.CalendarApiFp)(this.configuration).getGroupCalendarEvents(groupId, date, n, offset, options).then(function (request) { return request(_this.axios, _this.basePath); });
4052
+ };
4053
+ /**
4054
+ * Updates an event for a group on the calendar
4055
+ * @summary Update a calendar event
4056
+ * @param {string} groupId Must be a valid group ID.
4057
+ * @param {string} calendarId Must be a valid calendar ID.
4058
+ * @param {UpdateCalendarEventRequest} updateCalendarEventRequest
4059
+ * @param {*} [options] Override http request option.
4060
+ * @throws {RequiredError}
4061
+ * @memberof CalendarApi
4062
+ */
4063
+ CalendarApi.prototype.updateGroupCalendarEvent = function (groupId, calendarId, updateCalendarEventRequest, options) {
4064
+ var _this = this;
4065
+ return (0, exports.CalendarApiFp)(this.configuration).updateGroupCalendarEvent(groupId, calendarId, updateCalendarEventRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
4066
+ };
4067
+ return CalendarApi;
4068
+ }(base_1.BaseAPI));
4069
+ exports.CalendarApi = CalendarApi;
3133
4070
  /**
3134
4071
  * EconomyApi - axios parameter creator
3135
4072
  * @export