@gravity-rail/sdk 0.34.0 → 0.34.1

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.
@@ -16497,7 +16497,10 @@ declare class CalendarsApi extends BaseApiClient {
16497
16497
  /** Update an attendee's details on a calendar event. */
16498
16498
  updateEventAttendee(wid: string, eventId: number, attendeeId: number, update: UpdateAttendeeRequest): Promise<void>;
16499
16499
  /** List all calendar event types in the workspace. */
16500
- getEventTypes(wid: string): Promise<PaginatedResponse<EventTypeResponse>>;
16500
+ getEventTypes(wid: string, options?: {
16501
+ page?: number;
16502
+ pageSize?: number;
16503
+ }): Promise<PaginatedResponse<EventTypeResponse>>;
16501
16504
  /** Get a single calendar event type by ID. */
16502
16505
  getEventType(wid: string, id: number): Promise<EventTypeResponse>;
16503
16506
  /** Create a new calendar event type. */
@@ -16497,7 +16497,10 @@ declare class CalendarsApi extends BaseApiClient {
16497
16497
  /** Update an attendee's details on a calendar event. */
16498
16498
  updateEventAttendee(wid: string, eventId: number, attendeeId: number, update: UpdateAttendeeRequest): Promise<void>;
16499
16499
  /** List all calendar event types in the workspace. */
16500
- getEventTypes(wid: string): Promise<PaginatedResponse<EventTypeResponse>>;
16500
+ getEventTypes(wid: string, options?: {
16501
+ page?: number;
16502
+ pageSize?: number;
16503
+ }): Promise<PaginatedResponse<EventTypeResponse>>;
16501
16504
  /** Get a single calendar event type by ID. */
16502
16505
  getEventType(wid: string, id: number): Promise<EventTypeResponse>;
16503
16506
  /** Create a new calendar event type. */
@@ -1139,8 +1139,14 @@ var CalendarsApi = class extends BaseApiClient {
1139
1139
  });
1140
1140
  }
1141
1141
  /** List all calendar event types in the workspace. */
1142
- async getEventTypes(wid) {
1143
- return this.fetch(`w/${wid}/calendar-event-types`);
1142
+ async getEventTypes(wid, options) {
1143
+ const params = new URLSearchParams();
1144
+ if (options?.page !== void 0) params.set("page", String(options.page));
1145
+ if (options?.pageSize !== void 0) params.set("pageSize", String(options.pageSize));
1146
+ const query = params.size ? `?${params}` : "";
1147
+ return this.fetch(
1148
+ `w/${wid}/calendar-event-types${query}`
1149
+ );
1144
1150
  }
1145
1151
  /** Get a single calendar event type by ID. */
1146
1152
  async getEventType(wid, id) {
@@ -15620,4 +15626,4 @@ export {
15620
15626
  SCOPE_PRESETS,
15621
15627
  getRevisionState
15622
15628
  };
15623
- //# sourceMappingURL=chunk-ON7HBHJA.js.map
15629
+ //# sourceMappingURL=chunk-F3DHHYCJ.js.map