@wix/auto_sdk_calendar_participations 1.0.46 → 1.0.48
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/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +42 -5
- package/build/cjs/index.typings.js +1 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +35 -4
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +42 -5
- package/build/es/index.typings.mjs +1 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +35 -4
- package/build/es/meta.mjs +1 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +1 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +42 -5
- package/build/internal/cjs/index.typings.js +1 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +35 -4
- package/build/internal/cjs/meta.js +1 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +1 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +42 -5
- package/build/internal/es/index.typings.mjs +1 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +35 -4
- package/build/internal/es/meta.mjs +1 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { Participation, CreateParticipationOptions, UpdateParticipation, ParticipationCreatedEnvelope, ParticipationDeletedEnvelope, ParticipationUpdatedEnvelope, ParticipationsQueryBuilder, ParticipationQuery, typedQueryParticipations } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, AccountInfoMetadata, ActionEvent, AggregationData, AggregationResults, AggregationResultsResultOneOf, AggregationResultsScalarDateResult, AggregationResultsScalarResult, AggregationType, AggregationTypeWithLiterals, BaseEventMetadata, CommonCursorPagingMetadata, CommonCursors, CommonQueryWithEntityContext, CreateParticipationRequest, CreateParticipationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, CursorSearch, CursorSearchPagingMethodOneOf, Cursors, DateHistogramResult, DateHistogramResults, DeleteParticipationRequest, DeleteParticipationResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetParticipationRequest, GetParticipationResponse, GroupByValueResults, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, Mode, ModeWithLiterals, NestedAggregationResults, NestedAggregationResultsResultOneOf, NestedResultValue, NestedResultValueResultOneOf, NestedResults, NestedValueAggregationResult, Participant, ParticipationParticipatedItemOneOf, ParticipationQuerySpec, ParticipationsQueryResult, PartySizeSumByScheduleId, QueryParticipationsRequest, QueryParticipationsResponse, RangeAggregationResult, RangeResult, RangeResults, RestoreInfo, Results, ScalarDateResult, ScalarResult, ScalarType, ScalarTypeWithLiterals, SearchDetails, SearchParticipationsRequest, SearchParticipationsResponse, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, SumParticipationsPartySizeByScheduleIdRequest, SumParticipationsPartySizeByScheduleIdResponse, UpdateParticipationRequest, UpdateParticipationResponse, ValueAggregationResult, ValueResult, ValueResults, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, AggregationData, AggregationResults, AggregationResultsResultOneOf, AggregationResultsScalarDateResult, AggregationResultsScalarResult, AggregationType, AggregationTypeWithLiterals, BaseEventMetadata, CommonCursorPagingMetadata, CommonCursors, CommonQueryWithEntityContext, CreateParticipationRequest, CreateParticipationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, CursorSearch, CursorSearchPagingMethodOneOf, Cursors, DateHistogramResult, DateHistogramResults, DeleteParticipationRequest, DeleteParticipationResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GeotileGridBucket, GeotileGridResults, GetParticipationRequest, GetParticipationResponse, GroupByValueResults, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, Mode, ModeWithLiterals, NestedAggregationResults, NestedAggregationResultsResultOneOf, NestedResultValue, NestedResultValueResultOneOf, NestedResults, NestedValueAggregationResult, Participant, ParticipationParticipatedItemOneOf, ParticipationQuerySpec, ParticipationsQueryResult, PartySizeSumByScheduleId, QueryParticipationsRequest, QueryParticipationsResponse, RangeAggregationResult, RangeResult, RangeResults, RestoreInfo, Results, ScalarDateResult, ScalarResult, ScalarType, ScalarTypeWithLiterals, SearchDetails, SearchParticipationsRequest, SearchParticipationsResponse, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, SumParticipationsPartySizeByScheduleIdRequest, SumParticipationsPartySizeByScheduleIdResponse, UpdateParticipationRequest, UpdateParticipationResponse, ValueAggregationResult, ValueResult, ValueResults, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getParticipation$1(httpClient: HttpClient): GetParticipationSignature;
|
|
6
6
|
interface GetParticipationSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -268,6 +268,7 @@ var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
|
268
268
|
AggregationType2["SCALAR"] = "SCALAR";
|
|
269
269
|
AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
270
270
|
AggregationType2["NESTED"] = "NESTED";
|
|
271
|
+
AggregationType2["GEOTILE_GRID"] = "GEOTILE_GRID";
|
|
271
272
|
return AggregationType2;
|
|
272
273
|
})(AggregationType || {});
|
|
273
274
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/calendar-v3-participation-participations.public.ts","../../src/calendar-v3-participation-participations.universal.ts","../../src/calendar-v3-participation-participations.http.ts","../../src/calendar-v3-participation-participations.context.ts"],"sourcesContent":["export * from './src/calendar-v3-participation-participations.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CreateParticipationOptions,\n Participation,\n ParticipationCreatedEnvelope,\n ParticipationDeletedEnvelope,\n ParticipationQuery,\n ParticipationUpdatedEnvelope,\n ParticipationsQueryBuilder,\n QueryParticipationsResponse,\n UpdateParticipation,\n createParticipation as universalCreateParticipation,\n deleteParticipation as universalDeleteParticipation,\n getParticipation as universalGetParticipation,\n queryParticipations as universalQueryParticipations,\n typedQueryParticipations as universalTypedQueryParticipations,\n updateParticipation as universalUpdateParticipation,\n} from './calendar-v3-participation-participations.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/calendar' };\n\nexport function getParticipation(\n httpClient: HttpClient\n): GetParticipationSignature {\n return (participationId: string) =>\n universalGetParticipation(\n participationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetParticipationSignature {\n /**\n * Retrieves a `participation` object.\n * @param - ID of the `participation` object to retrieve.\n * @returns Retrieved `participation` object.\n */\n (participationId: string): Promise<\n NonNullablePaths<Participation, `status`, 2>\n >;\n}\n\nexport function queryParticipations(\n httpClient: HttpClient\n): QueryParticipationsSignature {\n return () =>\n universalQueryParticipations(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryParticipationsSignature {\n /**\n * Creates a query to retrieve a list of participations.\n *\n * The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-builder/find) function.\n *\n * You can refine the query by chaining `ParticipationsQueryBuilder` functions onto the query. `ParticipationsQueryBuilder` functions enable you to sort, filter, and control the results that `queryParticipations()` returns.\n *\n * `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `createdDate` in ascending order.\n *\n * The functions that are chained to `queryParticipations()` are applied in the order they are called.\n *\n * The following `ParticipationsQueryBuilder` functions are supported for the `queryParticipations()` function. For a full description of the participations object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-result/items) property in `ParticipationsQueryResult`.\n *\n */\n (): ParticipationsQueryBuilder;\n}\n\nexport function typedQueryParticipations(\n httpClient: HttpClient\n): TypedQueryParticipationsSignature {\n return (query: ParticipationQuery) =>\n universalTypedQueryParticipations(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryParticipationsSignature {\n /** */\n (query: ParticipationQuery): Promise<\n NonNullablePaths<\n QueryParticipationsResponse,\n `participations` | `participations.${number}.status`,\n 4\n >\n >;\n}\n\nexport function createParticipation(\n httpClient: HttpClient\n): CreateParticipationSignature {\n return (\n participation: NonNullablePaths<\n Participation,\n `participant` | `participant.name` | `partySize`,\n 3\n >,\n options?: CreateParticipationOptions\n ) =>\n universalCreateParticipation(\n participation,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateParticipationSignature {\n /**\n * Creates a `participation` object for a schedule or event.\n * @param - `participation` object to create.\n * @returns Created `participation` object.\n */\n (\n participation: NonNullablePaths<\n Participation,\n `participant` | `participant.name` | `partySize`,\n 3\n >,\n options?: CreateParticipationOptions\n ): Promise<NonNullablePaths<Participation, `status`, 2>>;\n}\n\nexport function updateParticipation(\n httpClient: HttpClient\n): UpdateParticipationSignature {\n return (\n _id: string,\n participation: NonNullablePaths<UpdateParticipation, `revision`, 2>\n ) =>\n universalUpdateParticipation(\n _id,\n participation,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateParticipationSignature {\n /**\n * Updates a `participation` object.\n * @param - Participation ID.\n * @returns Updated `participation` object.\n */\n (\n _id: string,\n participation: NonNullablePaths<UpdateParticipation, `revision`, 2>\n ): Promise<NonNullablePaths<Participation, `status`, 2>>;\n}\n\nexport function deleteParticipation(\n httpClient: HttpClient\n): DeleteParticipationSignature {\n return (participationId: string) =>\n universalDeleteParticipation(\n participationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteParticipationSignature {\n /**\n * Deletes a `participation` object.\n * @param - ID of `participation` object to delete.\n */\n (participationId: string): Promise<void>;\n}\n\nexport const onParticipationCreated = EventDefinition(\n 'wix.calendar.v3.participation_created',\n true,\n (event: ParticipationCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ParticipationCreatedEnvelope>();\nexport const onParticipationDeleted = EventDefinition(\n 'wix.calendar.v3.participation_deleted',\n true,\n (event: ParticipationDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'undefined.createdDate' },\n { path: 'undefined.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ParticipationDeletedEnvelope>();\nexport const onParticipationUpdated = EventDefinition(\n 'wix.calendar.v3.participation_updated',\n true,\n (event: ParticipationUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n { path: 'modifiedFields.createdDate' },\n { path: 'modifiedFields.updatedDate' },\n ],\n },\n ])\n )\n)<ParticipationUpdatedEnvelope>();\n\nexport {\n AccountInfo,\n AccountInfoMetadata,\n ActionEvent,\n AggregationData,\n AggregationResults,\n AggregationResultsResultOneOf,\n AggregationResultsScalarDateResult,\n AggregationResultsScalarResult,\n AggregationType,\n BaseEventMetadata,\n CommonCursorPagingMetadata,\n CommonCursors,\n CreateParticipationOptions,\n CreateParticipationRequest,\n CreateParticipationResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CursorSearch,\n CursorSearchPagingMethodOneOf,\n Cursors,\n DateHistogramResult,\n DateHistogramResults,\n DeleteParticipationRequest,\n DeleteParticipationResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n GetParticipationRequest,\n GetParticipationResponse,\n GroupByValueResults,\n IdentificationData,\n IdentificationDataIdOneOf,\n MessageEnvelope,\n Mode,\n NestedAggregationResults,\n NestedAggregationResultsResultOneOf,\n NestedResultValue,\n NestedResultValueResultOneOf,\n NestedResults,\n NestedValueAggregationResult,\n Participant,\n Participation,\n ParticipationCreatedEnvelope,\n ParticipationDeletedEnvelope,\n ParticipationParticipatedItemOneOf,\n ParticipationQuerySpec,\n ParticipationUpdatedEnvelope,\n ParticipationsQueryBuilder,\n ParticipationsQueryResult,\n PartySizeSumByScheduleId,\n QueryParticipationsRequest,\n QueryParticipationsResponse,\n RangeAggregationResult,\n RangeResult,\n RangeResults,\n RestoreInfo,\n Results,\n ScalarDateResult,\n ScalarResult,\n ScalarType,\n SearchDetails,\n SearchParticipationsRequest,\n SearchParticipationsResponse,\n SortOrder,\n Sorting,\n Status,\n SumParticipationsPartySizeByScheduleIdRequest,\n SumParticipationsPartySizeByScheduleIdResponse,\n UpdateParticipation,\n UpdateParticipationRequest,\n UpdateParticipationResponse,\n ValueAggregationResult,\n ValueResult,\n ValueResults,\n WebhookIdentityType,\n utils,\n} from './calendar-v3-participation-participations.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixCalendarV3Participation from './calendar-v3-participation-participations.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\n/**\n * The `participation` object represents the relationship between a participant and\n * an [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * or [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).\n * It includes details about the participant, whether the participation status is confirmed or\n * pending, which app owns the relevant event or schedule, and allows for custom data extensions.\n */\nexport interface Participation extends ParticipationParticipatedItemOneOf {\n /**\n * ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\n * associated with the participation.\n * @format GUID\n * @immutable\n */\n scheduleId?: string | null;\n /**\n * ID of the [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * associated with the participation.\n * @minLength 36\n * @maxLength 250\n * @immutable\n */\n eventId?: string | null;\n /**\n * Participation ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * External ID.\n * @format GUID\n * @immutable\n */\n externalId?: string | null;\n /** Information about the participant. */\n participant?: Participant;\n /**\n * Party size of the group or `1` for individuals.\n *\n * Min: `1`\n * Max: `1000`\n * @min 1\n * @max 1000\n */\n partySize?: number | null;\n /**\n * Status of the party's participation in the event. Depending on your\n * implementation, confirmation may be handled by the business owner or the customer.\n *\n * Supported values:\n * + `CONFIRMED`: The party's participation is confirmed. For example, the business owner has confirmed a [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings).\n * + `PENDING_CONFIRMATION`: The party's participation is awaiting confirmation. For example, the business owner still needs to approve the [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings).\n *\n * Default: `CONFIRMED`\n */\n status?: StatusWithLiterals;\n /**\n * ID of the app that owns the participation `object`. Identical to `appId` of the\n * [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\n * that the related\n * [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * belongs to.\n * @format GUID\n * @readonly\n */\n appId?: string | null;\n /**\n * Revision number, which increments by 1 each time the participation is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the participation.\n * Ignored when creating a participation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date the participation was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date the participation was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Extensions enabling applications or users to save custom data related to the participation. */\n extendedFields?: ExtendedFields;\n}\n\n/** @oneof */\nexport interface ParticipationParticipatedItemOneOf {\n /**\n * ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\n * associated with the participation.\n * @format GUID\n * @immutable\n */\n scheduleId?: string | null;\n /**\n * ID of the [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * associated with the participation.\n * @minLength 36\n * @maxLength 250\n * @immutable\n */\n eventId?: string | null;\n}\n\nexport interface Participant {\n /**\n * Participant name.\n *\n * Min: 1 character\n * Max: 200 characters\n * @minLength 1\n * @maxLength 200\n */\n name?: string | null;\n /**\n * Participant's phone number.\n * @format PHONE\n */\n phone?: string | null;\n /**\n * Participant's email address.\n * @format EMAIL\n */\n email?: string | null;\n /**\n * [Contact](https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/introduction)\n * ID of the participant.\n * @format GUID\n */\n contactId?: string | null;\n}\n\nexport enum Status {\n /** The party's participation is confirmed. For example, the business owner has confirmed a [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings). */\n CONFIRMED = 'CONFIRMED',\n /** The party's participation is awaiting confirmation. For example, the business owner still needs to approve the [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings). */\n PENDING_CONFIRMATION = 'PENDING_CONFIRMATION',\n}\n\n/** @enumType */\nexport type StatusWithLiterals = Status | 'CONFIRMED' | 'PENDING_CONFIRMATION';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface GetParticipationRequest {\n /**\n * ID of the `participation` object to retrieve.\n * @format GUID\n */\n participationId: string | null;\n}\n\nexport interface GetParticipationResponse {\n /** Retrieved `participation` object. */\n participation?: Participation;\n}\n\nexport interface QueryParticipationsRequest {\n /** Query containing filters and paging. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * Number of participations to load.\n * @min 1\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface QueryParticipationsResponse {\n /** Retrieved `participation` objects matching the provided query. */\n participations?: Participation[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface SearchParticipationsRequest {\n /** Search criteria including filter, sort, aggregations, and free-text search. */\n search?: CursorSearch;\n}\n\nexport interface CursorSearch extends CursorSearchPagingMethodOneOf {\n /**\n * Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`,\n * `filter`, `sort`, or `search` can't be specified.\n */\n cursorPaging?: CursorPaging;\n /** Filter object for narrowing search results. */\n filter?: Record<string, any> | null;\n /**\n * Array of sort objects specifying result order.\n * @maxSize 10\n */\n sort?: Sorting[];\n /** Free text to match in searchable fields. */\n search?: SearchDetails;\n /**\n * Time zone in IANA tz database format or ISO 8601 UTC offset format for adjusting time fields in the specified filters. For example, `America/New_York`, `UTC`, or `+02:00`.\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\n/** @oneof */\nexport interface CursorSearchPagingMethodOneOf {\n /**\n * Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`,\n * `filter`, `sort`, or `search` can't be specified.\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface SearchDetails {\n /** Search mode. Defines the search logic for combining multiple terms in the `expression`. */\n mode?: ModeWithLiterals;\n /**\n * Search term or expression.\n * @maxLength 100\n */\n expression?: string | null;\n /**\n * Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path.\n * @maxLength 200\n * @maxSize 20\n */\n fields?: string[];\n /** Whether to enable the search function to use an algorithm to automatically find results that are close to the search expression, such as typos and declensions. */\n fuzzy?: boolean;\n}\n\nexport enum Mode {\n /** At least 1 of the search terms must be present. */\n OR = 'OR',\n /** All search terms must be present. */\n AND = 'AND',\n}\n\n/** @enumType */\nexport type ModeWithLiterals = Mode | 'OR' | 'AND';\n\nexport interface SearchParticipationsResponse {\n /** Retrieved `participation` objects matching the provided search. */\n participations?: Participation[];\n /** Cursor-based paging metadata. */\n pagingMetadata?: CommonCursorPagingMetadata;\n /** Aggregation results. */\n aggregationData?: AggregationData;\n}\n\nexport interface CommonCursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: CommonCursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface CommonCursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface AggregationData {\n /**\n * List of the aggregated data results.\n * @maxSize 10000\n */\n results?: AggregationResults[];\n}\n\nexport interface ValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 100\n */\n value?: string;\n /** Number of entities with this value. */\n count?: number;\n}\n\nexport interface RangeAggregationResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Total number of entities in this range. */\n count?: number;\n}\n\nexport enum ScalarType {\n /** Total number of distinct values. */\n COUNT_DISTINCT = 'COUNT_DISTINCT',\n /** Minimum value. */\n MIN = 'MIN',\n /** Maximum value. */\n MAX = 'MAX',\n}\n\n/** @enumType */\nexport type ScalarTypeWithLiterals =\n | ScalarType\n | 'COUNT_DISTINCT'\n | 'MIN'\n | 'MAX';\n\nexport interface NestedAggregationResults\n extends NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /**\n * Unique, caller-defined aggregation name, identifiable by the requested aggregation `name`.\n * @maxLength 100\n */\n name?: string;\n /** Aggregation type. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field which the data was aggregated by.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n}\n\nexport enum AggregationType {\n /** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */\n VALUE = 'VALUE',\n /** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */\n RANGE = 'RANGE',\n /** Calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n SCALAR = 'SCALAR',\n /** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */\n DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n /** Flattened list of aggregations, where each aggregation is nested within previous one. */\n NESTED = 'NESTED',\n}\n\n/** @enumType */\nexport type AggregationTypeWithLiterals =\n | AggregationType\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM'\n | 'NESTED';\n\nexport interface ValueResults {\n /**\n * List of value aggregations.\n * @maxSize 250\n */\n results?: ValueAggregationResult[];\n}\n\nexport interface RangeResults {\n /**\n * List of ranges returned in the same order as requested.\n * @maxSize 50\n */\n results?: RangeAggregationResult[];\n}\n\nexport interface AggregationResultsScalarResult {\n /** Type of scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface NestedValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Nested aggregations. */\n nestedResults?: NestedAggregationResults;\n}\n\nexport interface ValueResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Number of entities with this value. */\n count?: number | null;\n}\n\nexport interface RangeResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Number of entities in this range. */\n count?: number | null;\n}\n\nexport interface ScalarResult {\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface ScalarDateResult {\n /**\n * Date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.\n * @maxLength 100\n */\n value?: string;\n}\n\nexport interface NestedResultValue extends NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n /** Scalar date aggregation result. */\n scalarDate?: ScalarDateResult;\n}\n\n/** @oneof */\nexport interface NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n /** Scalar date aggregation result. */\n scalarDate?: ScalarDateResult;\n}\n\nexport interface Results {\n /** List of nested aggregations. */\n results?: Record<string, NestedResultValue>;\n}\n\nexport interface DateHistogramResult {\n /**\n * Date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.\n * @maxLength 100\n */\n value?: string;\n /** Number of entities in the bucket. */\n count?: number;\n}\n\nexport interface GroupByValueResults {\n /**\n * List of value aggregations.\n * @maxSize 1000\n */\n results?: NestedValueAggregationResult[];\n}\n\nexport interface DateHistogramResults {\n /**\n * List of date histogram aggregations.\n * @maxSize 200\n */\n results?: DateHistogramResult[];\n}\n\n/** Results of `NESTED` aggregation type in a flattened array, identifiable by the requested aggregation `name`. */\nexport interface NestedResults {\n /**\n * List of nested aggregations.\n * @maxSize 1000\n */\n results?: Results[];\n}\n\nexport interface AggregationResultsScalarDateResult {\n /** Type of scalar date aggregation. Possible values: `MIN`, `MAX`. */\n type?: ScalarTypeWithLiterals;\n /**\n * Date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.\n * @maxLength 100\n */\n value?: string;\n}\n\nexport interface AggregationResults extends AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n /** Date aggregation results. */\n scalarDate?: AggregationResultsScalarDateResult;\n /**\n * Aggregation name, returned in `aggregations.results.name`.\n * @maxLength 100\n */\n name?: string;\n /** Aggregation type. Must align with the corresponding aggregation field. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n /** Date aggregation results. */\n scalarDate?: AggregationResultsScalarDateResult;\n}\n\nexport interface CreateParticipationRequest {\n /** `participation` object to create. */\n participation: Participation;\n /**\n * Idempotency key guaranteeing that you don't create the same `participation`\n * object more than once.\n * @format GUID\n */\n idempotencyKey?: string | null;\n}\n\nexport interface CreateParticipationResponse {\n /** Created `participation` object. */\n participation?: Participation;\n}\n\nexport interface UpdateParticipationRequest {\n /** `participation` object to update. */\n participation: Participation;\n}\n\nexport interface UpdateParticipationResponse {\n /** Updated `participation` object. */\n participation?: Participation;\n}\n\nexport interface DeleteParticipationRequest {\n /**\n * ID of `participation` object to delete.\n * @format GUID\n */\n participationId: string | null;\n}\n\nexport interface DeleteParticipationResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface SumParticipationsPartySizeByScheduleIdRequest {\n /**\n * The schedule IDs.\n * @format GUID\n * @maxSize 100\n */\n scheduleIds?: string[] | null;\n}\n\nexport interface SumParticipationsPartySizeByScheduleIdResponse {\n /** The sum of party size by schedule ID. */\n partySizeSumByScheduleId?: PartySizeSumByScheduleId[];\n}\n\nexport interface PartySizeSumByScheduleId {\n /**\n * The ID of the schedule.\n * @format GUID\n */\n scheduleId?: string | null;\n /** The sum of the participations party size. */\n partySizeSum?: number | null;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface ParticipationCreatedEnvelope {\n entity: Participation;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a `participation` object is created.\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId CALENDAR.PARTICIPATION_READ\n * @webhook\n * @eventType wix.calendar.v3.participation_created\n * @slug created\n */\nexport declare function onParticipationCreated(\n handler: (event: ParticipationCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ParticipationDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a `participation` object is deleted.\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId CALENDAR.PARTICIPATION_READ\n * @webhook\n * @eventType wix.calendar.v3.participation_deleted\n * @slug deleted\n */\nexport declare function onParticipationDeleted(\n handler: (event: ParticipationDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ParticipationUpdatedEnvelope {\n entity: Participation;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when a `participation` object is updated.\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId CALENDAR.PARTICIPATION_READ\n * @webhook\n * @eventType wix.calendar.v3.participation_updated\n * @slug updated\n */\nexport declare function onParticipationUpdated(\n handler: (event: ParticipationUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a `participation` object.\n * @param participationId - ID of the `participation` object to retrieve.\n * @public\n * @requiredField participationId\n * @permissionId CALENDAR.PARTICIPATION_READ\n * @applicableIdentity APP\n * @returns Retrieved `participation` object.\n * @fqn wix.calendar.participations.v3.ParticipationsService.GetParticipation\n */\nexport async function getParticipation(\n participationId: string\n): Promise<NonNullablePaths<Participation, `status`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n participationId: participationId,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3Participation.getParticipation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.participation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { participationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['participationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Creates a query to retrieve a list of participations.\n *\n * The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-builder/find) function.\n *\n * You can refine the query by chaining `ParticipationsQueryBuilder` functions onto the query. `ParticipationsQueryBuilder` functions enable you to sort, filter, and control the results that `queryParticipations()` returns.\n *\n * `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `createdDate` in ascending order.\n *\n * The functions that are chained to `queryParticipations()` are applied in the order they are called.\n *\n * The following `ParticipationsQueryBuilder` functions are supported for the `queryParticipations()` function. For a full description of the participations object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-result/items) property in `ParticipationsQueryResult`.\n *\n * @public\n * @permissionId CALENDAR.PARTICIPATION_READ\n * @applicableIdentity APP\n * @fqn wix.calendar.participations.v3.ParticipationsService.QueryParticipations\n */\nexport function queryParticipations(): ParticipationsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Participation,\n 'CURSOR',\n QueryParticipationsRequest,\n QueryParticipationsResponse\n >({\n func: async (payload: QueryParticipationsRequest) => {\n const reqOpts =\n ambassadorWixCalendarV3Participation.queryParticipations(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryParticipationsRequest['query']) => {\n const args = [query, {}] as [QueryParticipationsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryParticipationsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.participations,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ParticipationsQueryResult extends QueryCursorResult {\n items: Participation[];\n query: ParticipationsQueryBuilder;\n next: () => Promise<ParticipationsQueryResult>;\n prev: () => Promise<ParticipationsQueryResult>;\n}\n\nexport interface ParticipationsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n eq: (\n propertyName: 'scheduleId' | 'eventId' | 'externalId',\n value: any\n ) => ParticipationsQueryBuilder;\n in: (\n propertyName: 'scheduleId' | 'eventId' | '_id' | 'externalId',\n value: any\n ) => ParticipationsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */\n limit: (limit: number) => ParticipationsQueryBuilder;\n /** @param cursor - A pointer to specific record */\n skipTo: (cursor: string) => ParticipationsQueryBuilder;\n find: () => Promise<ParticipationsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.calendar.participations.v3.ParticipationsService.QueryParticipations\n * @requiredField query\n */\nexport async function typedQueryParticipations(\n query: ParticipationQuery\n): Promise<\n NonNullablePaths<\n QueryParticipationsResponse,\n `participations` | `participations.${number}.status`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts =\n ambassadorWixCalendarV3Participation.queryParticipations(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ParticipationQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['_id'];\n operators: ['$in'];\n sort: 'NONE';\n },\n {\n fields: ['eventId', 'externalId', 'scheduleId'];\n operators: ['$eq', '$in'];\n sort: 'NONE';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n Participation,\n ParticipationQuerySpec\n>;\nexport type ParticipationQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Number of participations to load. \n @min: 1,\n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n You can get the relevant cursor token\n from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object in the following format:\n `\"filter\" : {\n \"fieldName1\": \"value1\",\n \"fieldName2\":{\"$operator\":\"value2\"}\n }`\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n};\n\nexport const utils = {\n query: {\n ...createQueryUtils<\n Participation,\n ParticipationQuerySpec,\n ParticipationQuery\n >(),\n },\n};\n\n/**\n * Creates a `participation` object for a schedule or event.\n * @param participation - `participation` object to create.\n * @public\n * @requiredField participation\n * @requiredField participation.participant\n * @requiredField participation.participant.name\n * @requiredField participation.participatedItem\n * @requiredField participation.partySize\n * @permissionId CALENDAR.PARTICIPATION_CREATE\n * @applicableIdentity APP\n * @returns Created `participation` object.\n * @fqn wix.calendar.participations.v3.ParticipationsService.CreateParticipation\n */\nexport async function createParticipation(\n participation: NonNullablePaths<\n Participation,\n `participant` | `participant.name` | `partySize`,\n 3\n >,\n options?: CreateParticipationOptions\n): Promise<NonNullablePaths<Participation, `status`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n participation: participation,\n idempotencyKey: options?.idempotencyKey,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3Participation.createParticipation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.participation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n participation: '$[0]',\n idempotencyKey: '$[1].idempotencyKey',\n },\n singleArgumentUnchanged: false,\n },\n ['participation', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateParticipationOptions {\n /**\n * Idempotency key guaranteeing that you don't create the same `participation`\n * object more than once.\n * @format GUID\n */\n idempotencyKey?: string | null;\n}\n\n/**\n * Updates a `participation` object.\n * @param _id - Participation ID.\n * @public\n * @requiredField _id\n * @requiredField participation\n * @requiredField participation.revision\n * @permissionId CALENDAR.PARTICIPATION_UPDATE\n * @applicableIdentity APP\n * @returns Updated `participation` object.\n * @fqn wix.calendar.participations.v3.ParticipationsService.UpdateParticipation\n */\nexport async function updateParticipation(\n _id: string,\n participation: NonNullablePaths<UpdateParticipation, `revision`, 2>\n): Promise<NonNullablePaths<Participation, `status`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n participation: { ...participation, id: _id },\n });\n\n const reqOpts =\n ambassadorWixCalendarV3Participation.updateParticipation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.participation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { participation: '$[1]' },\n explicitPathsToArguments: { 'participation.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'participation']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateParticipation {\n /**\n * ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\n * associated with the participation.\n * @format GUID\n * @immutable\n */\n scheduleId?: string | null;\n /**\n * ID of the [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * associated with the participation.\n * @minLength 36\n * @maxLength 250\n * @immutable\n */\n eventId?: string | null;\n /**\n * Participation ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * External ID.\n * @format GUID\n * @immutable\n */\n externalId?: string | null;\n /** Information about the participant. */\n participant?: Participant;\n /**\n * Party size of the group or `1` for individuals.\n *\n * Min: `1`\n * Max: `1000`\n * @min 1\n * @max 1000\n */\n partySize?: number | null;\n /**\n * Status of the party's participation in the event. Depending on your\n * implementation, confirmation may be handled by the business owner or the customer.\n *\n * Supported values:\n * + `CONFIRMED`: The party's participation is confirmed. For example, the business owner has confirmed a [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings).\n * + `PENDING_CONFIRMATION`: The party's participation is awaiting confirmation. For example, the business owner still needs to approve the [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings).\n *\n * Default: `CONFIRMED`\n */\n status?: StatusWithLiterals;\n /**\n * ID of the app that owns the participation `object`. Identical to `appId` of the\n * [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\n * that the related\n * [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * belongs to.\n * @format GUID\n * @readonly\n */\n appId?: string | null;\n /**\n * Revision number, which increments by 1 each time the participation is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the participation.\n * Ignored when creating a participation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date the participation was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date the participation was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Extensions enabling applications or users to save custom data related to the participation. */\n extendedFields?: ExtendedFields;\n}\n\n/**\n * Deletes a `participation` object.\n * @param participationId - ID of `participation` object to delete.\n * @public\n * @requiredField participationId\n * @permissionId CALENDAR.PARTICIPATION_DELETE\n * @applicableIdentity APP\n * @fqn wix.calendar.participations.v3.ParticipationsService.DeleteParticipation\n */\nexport async function deleteParticipation(\n participationId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n participationId: participationId,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3Participation.deleteParticipation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { participationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['participationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixCalendarParticipationsV3ParticipationsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/calendar/v3/participations',\n destPath: '/v3/participations',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/calendar/v3/participations',\n destPath: '/v3/participations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_calendar_participations';\n\n/** Retrieves a `participation` object. */\nexport function getParticipation(payload: object): RequestOptionsFactory<any> {\n function __getParticipation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.participation',\n method: 'GET' as any,\n methodFqn:\n 'wix.calendar.participations.v3.ParticipationsService.GetParticipation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({\n protoPath: '/v3/participations/{participationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'participation.createdDate' },\n { path: 'participation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getParticipation;\n}\n\n/**\n * Creates a query to retrieve a list of participations.\n *\n * The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-builder/find) function.\n *\n * You can refine the query by chaining `ParticipationsQueryBuilder` functions onto the query. `ParticipationsQueryBuilder` functions enable you to sort, filter, and control the results that `queryParticipations()` returns.\n *\n * `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `createdDate` in ascending order.\n *\n * The functions that are chained to `queryParticipations()` are applied in the order they are called.\n *\n * The following `ParticipationsQueryBuilder` functions are supported for the `queryParticipations()` function. For a full description of the participations object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-result/items) property in `ParticipationsQueryResult`.\n *\n */\nexport function queryParticipations(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryParticipations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.participation',\n method: 'POST' as any,\n methodFqn:\n 'wix.calendar.participations.v3.ParticipationsService.QueryParticipations',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({\n protoPath: '/v3/participations/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'participations.createdDate' },\n { path: 'participations.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryParticipations;\n}\n\n/** Creates a `participation` object for a schedule or event. */\nexport function createParticipation(\n payload: object\n): RequestOptionsFactory<any> {\n function __createParticipation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'participation.createdDate' },\n { path: 'participation.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.calendar.v3.participation',\n method: 'POST' as any,\n methodFqn:\n 'wix.calendar.participations.v3.ParticipationsService.CreateParticipation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({\n protoPath: '/v3/participations',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'participation.createdDate' },\n { path: 'participation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createParticipation;\n}\n\n/** Updates a `participation` object. */\nexport function updateParticipation(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateParticipation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldmask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'participation.createdDate' },\n { path: 'participation.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.calendar.v3.participation',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.calendar.participations.v3.ParticipationsService.UpdateParticipation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({\n protoPath: '/v3/participations/{participation.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'participation.createdDate' },\n { path: 'participation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateParticipation;\n}\n\n/** Deletes a `participation` object. */\nexport function deleteParticipation(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteParticipation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.participation',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.calendar.participations.v3.ParticipationsService.DeleteParticipation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({\n protoPath: '/v3/participations/{participationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteParticipation;\n}\n","import {\n getParticipation as publicGetParticipation,\n queryParticipations as publicQueryParticipations,\n typedQueryParticipations as publicTypedQueryParticipations,\n createParticipation as publicCreateParticipation,\n updateParticipation as publicUpdateParticipation,\n deleteParticipation as publicDeleteParticipation,\n} from './calendar-v3-participation-participations.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n ParticipationQuery,\n ParticipationsQueryBuilder,\n typedQueryParticipations as universalTypedQueryParticipations,\n} from './calendar-v3-participation-participations.universal.js';\nimport { onParticipationCreated as publicOnParticipationCreated } from './calendar-v3-participation-participations.public.js';\nimport { onParticipationDeleted as publicOnParticipationDeleted } from './calendar-v3-participation-participations.public.js';\nimport { onParticipationUpdated as publicOnParticipationUpdated } from './calendar-v3-participation-participations.public.js';\n\nfunction customQueryParticipations(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: () => publicQueryParticipations(httpClient)(),\n typedQueryFunction: (query: ParticipationQuery) =>\n publicTypedQueryParticipations(httpClient)(query),\n hasOptionsParameter: false,\n });\n\n function overloadedQuery(): ParticipationsQueryBuilder;\n function overloadedQuery(\n query: ParticipationQuery\n ): ReturnType<typeof universalTypedQueryParticipations>;\n function overloadedQuery(query?: ParticipationQuery): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const getParticipation: MaybeContext<\n BuildRESTFunction<typeof publicGetParticipation> &\n typeof publicGetParticipation\n> = /*#__PURE__*/ createRESTModule(publicGetParticipation);\nexport const createParticipation: MaybeContext<\n BuildRESTFunction<typeof publicCreateParticipation> &\n typeof publicCreateParticipation\n> = /*#__PURE__*/ createRESTModule(publicCreateParticipation);\nexport const updateParticipation: MaybeContext<\n BuildRESTFunction<typeof publicUpdateParticipation> &\n typeof publicUpdateParticipation\n> = /*#__PURE__*/ createRESTModule(publicUpdateParticipation);\nexport const deleteParticipation: MaybeContext<\n BuildRESTFunction<typeof publicDeleteParticipation> &\n typeof publicDeleteParticipation\n> = /*#__PURE__*/ createRESTModule(publicDeleteParticipation);\nexport const queryParticipations: MaybeContext<\n BuildRESTFunction<typeof customQueryParticipations> &\n typeof customQueryParticipations\n> = /*#__PURE__*/ createRESTModule(customQueryParticipations);\n/**\n * Triggered when a `participation` object is created.\n */\nexport const onParticipationCreated: BuildEventDefinition<\n typeof publicOnParticipationCreated\n> &\n typeof publicOnParticipationCreated = createEventModule(\n publicOnParticipationCreated\n);\n/**\n * Triggered when a `participation` object is deleted.\n */\nexport const onParticipationDeleted: BuildEventDefinition<\n typeof publicOnParticipationDeleted\n> &\n typeof publicOnParticipationDeleted = createEventModule(\n publicOnParticipationDeleted\n);\n/**\n * Triggered when a `participation` object is updated.\n */\nexport const onParticipationUpdated: BuildEventDefinition<\n typeof publicOnParticipationUpdated\n> &\n typeof publicOnParticipationUpdated = createEventModule(\n publicOnParticipationUpdated\n);\n\nexport {\n Status,\n SortOrder,\n Mode,\n ScalarType,\n AggregationType,\n WebhookIdentityType,\n} from './calendar-v3-participation-participations.universal.js';\nexport {\n Participation,\n ParticipationParticipatedItemOneOf,\n Participant,\n ExtendedFields,\n GetParticipationRequest,\n GetParticipationResponse,\n QueryParticipationsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CursorPaging,\n QueryParticipationsResponse,\n CursorPagingMetadata,\n Cursors,\n SearchParticipationsRequest,\n CursorSearch,\n CursorSearchPagingMethodOneOf,\n Sorting,\n SearchDetails,\n SearchParticipationsResponse,\n CommonCursorPagingMetadata,\n CommonCursors,\n AggregationData,\n ValueAggregationResult,\n RangeAggregationResult,\n NestedAggregationResults,\n NestedAggregationResultsResultOneOf,\n ValueResults,\n RangeResults,\n AggregationResultsScalarResult,\n NestedValueAggregationResult,\n ValueResult,\n RangeResult,\n ScalarResult,\n ScalarDateResult,\n NestedResultValue,\n NestedResultValueResultOneOf,\n Results,\n DateHistogramResult,\n GroupByValueResults,\n DateHistogramResults,\n NestedResults,\n AggregationResultsScalarDateResult,\n AggregationResults,\n AggregationResultsResultOneOf,\n CreateParticipationRequest,\n CreateParticipationResponse,\n UpdateParticipationRequest,\n UpdateParticipationResponse,\n DeleteParticipationRequest,\n DeleteParticipationResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n SumParticipationsPartySizeByScheduleIdRequest,\n SumParticipationsPartySizeByScheduleIdResponse,\n PartySizeSumByScheduleId,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n BaseEventMetadata,\n EventMetadata,\n AccountInfoMetadata,\n ParticipationCreatedEnvelope,\n ParticipationDeletedEnvelope,\n ParticipationUpdatedEnvelope,\n ParticipationsQueryResult,\n ParticipationsQueryBuilder,\n ParticipationQuerySpec,\n CreateParticipationOptions,\n UpdateParticipation,\n} from './calendar-v3-participation-participations.universal.js';\nexport { utils } from './calendar-v3-participation-participations.universal.js';\nexport {\n StatusWithLiterals,\n SortOrderWithLiterals,\n ModeWithLiterals,\n ScalarTypeWithLiterals,\n AggregationTypeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n CommonQueryWithEntityContext,\n ParticipationQuery,\n} from './calendar-v3-participation-participations.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACH9D,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,2DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QAC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0B,YAAwB;AACzD,QAAM,aAAS,sDAA0B;AAAA,IACvC,sBAAsB,MAAMC,qBAA0B,UAAU,EAAE;AAAA,IAClE,oBAAoB,CAAC,UACnBC,0BAA+B,UAAU,EAAE,KAAK;AAAA,IAClD,qBAAqB;AAAA,EACvB,CAAC;AAMD,WAAS,gBAAgB,OAAiC;AACxD,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAEO,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAML,uBAGK,2DAAiB,yBAAyB;AAIrD,IAAMM,8BAG2B;AAAA,EACtC;AACF;AAIO,IAAMC,8BAG2B;AAAA,EACtC;AACF;AAIO,IAAMC,8BAG2B;AAAA,EACtC;AACF;","names":["createParticipation","deleteParticipation","getParticipation","onParticipationCreated","onParticipationDeleted","onParticipationUpdated","queryParticipations","updateParticipation","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_transform_paths","Status","SortOrder","Mode","ScalarType","AggregationType","WebhookIdentityType","getParticipation","sdkTransformError","queryParticipations","createParticipation","updateParticipation","deleteParticipation","getParticipation","queryParticipations","typedQueryParticipations","createParticipation","updateParticipation","deleteParticipation","import_rest_modules","queryParticipations","typedQueryParticipations","getParticipation","createParticipation","updateParticipation","deleteParticipation","onParticipationCreated","onParticipationDeleted","onParticipationUpdated"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/calendar-v3-participation-participations.public.ts","../../src/calendar-v3-participation-participations.universal.ts","../../src/calendar-v3-participation-participations.http.ts","../../src/calendar-v3-participation-participations.context.ts"],"sourcesContent":["export * from './src/calendar-v3-participation-participations.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CreateParticipationOptions,\n Participation,\n ParticipationCreatedEnvelope,\n ParticipationDeletedEnvelope,\n ParticipationQuery,\n ParticipationUpdatedEnvelope,\n ParticipationsQueryBuilder,\n QueryParticipationsResponse,\n UpdateParticipation,\n createParticipation as universalCreateParticipation,\n deleteParticipation as universalDeleteParticipation,\n getParticipation as universalGetParticipation,\n queryParticipations as universalQueryParticipations,\n typedQueryParticipations as universalTypedQueryParticipations,\n updateParticipation as universalUpdateParticipation,\n} from './calendar-v3-participation-participations.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/calendar' };\n\nexport function getParticipation(\n httpClient: HttpClient\n): GetParticipationSignature {\n return (participationId: string) =>\n universalGetParticipation(\n participationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetParticipationSignature {\n /**\n * Retrieves a `participation` object.\n * @param - ID of the `participation` object to retrieve.\n * @returns Retrieved `participation` object.\n */\n (participationId: string): Promise<\n NonNullablePaths<Participation, `status`, 2>\n >;\n}\n\nexport function queryParticipations(\n httpClient: HttpClient\n): QueryParticipationsSignature {\n return () =>\n universalQueryParticipations(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryParticipationsSignature {\n /**\n * Creates a query to retrieve a list of participations.\n *\n * The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-builder/find) function.\n *\n * You can refine the query by chaining `ParticipationsQueryBuilder` functions onto the query. `ParticipationsQueryBuilder` functions enable you to sort, filter, and control the results that `queryParticipations()` returns.\n *\n * `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `createdDate` in ascending order.\n *\n * The functions that are chained to `queryParticipations()` are applied in the order they are called.\n *\n * The following `ParticipationsQueryBuilder` functions are supported for the `queryParticipations()` function. For a full description of the participations object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-result/items) property in `ParticipationsQueryResult`.\n *\n */\n (): ParticipationsQueryBuilder;\n}\n\nexport function typedQueryParticipations(\n httpClient: HttpClient\n): TypedQueryParticipationsSignature {\n return (query: ParticipationQuery) =>\n universalTypedQueryParticipations(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryParticipationsSignature {\n /** */\n (query: ParticipationQuery): Promise<\n NonNullablePaths<\n QueryParticipationsResponse,\n `participations` | `participations.${number}.status`,\n 4\n >\n >;\n}\n\nexport function createParticipation(\n httpClient: HttpClient\n): CreateParticipationSignature {\n return (\n participation: NonNullablePaths<\n Participation,\n `participant` | `participant.name` | `partySize`,\n 3\n >,\n options?: CreateParticipationOptions\n ) =>\n universalCreateParticipation(\n participation,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateParticipationSignature {\n /**\n * Creates a `participation` object for a schedule or event.\n * @param - `participation` object to create.\n * @returns Created `participation` object.\n */\n (\n participation: NonNullablePaths<\n Participation,\n `participant` | `participant.name` | `partySize`,\n 3\n >,\n options?: CreateParticipationOptions\n ): Promise<NonNullablePaths<Participation, `status`, 2>>;\n}\n\nexport function updateParticipation(\n httpClient: HttpClient\n): UpdateParticipationSignature {\n return (\n _id: string,\n participation: NonNullablePaths<UpdateParticipation, `revision`, 2>\n ) =>\n universalUpdateParticipation(\n _id,\n participation,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateParticipationSignature {\n /**\n * Updates a `participation` object.\n * @param - Participation ID.\n * @returns Updated `participation` object.\n */\n (\n _id: string,\n participation: NonNullablePaths<UpdateParticipation, `revision`, 2>\n ): Promise<NonNullablePaths<Participation, `status`, 2>>;\n}\n\nexport function deleteParticipation(\n httpClient: HttpClient\n): DeleteParticipationSignature {\n return (participationId: string) =>\n universalDeleteParticipation(\n participationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteParticipationSignature {\n /**\n * Deletes a `participation` object.\n * @param - ID of `participation` object to delete.\n */\n (participationId: string): Promise<void>;\n}\n\nexport const onParticipationCreated = EventDefinition(\n 'wix.calendar.v3.participation_created',\n true,\n (event: ParticipationCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ParticipationCreatedEnvelope>();\nexport const onParticipationDeleted = EventDefinition(\n 'wix.calendar.v3.participation_deleted',\n true,\n (event: ParticipationDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'undefined.createdDate' },\n { path: 'undefined.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ParticipationDeletedEnvelope>();\nexport const onParticipationUpdated = EventDefinition(\n 'wix.calendar.v3.participation_updated',\n true,\n (event: ParticipationUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n { path: 'modifiedFields.createdDate' },\n { path: 'modifiedFields.updatedDate' },\n ],\n },\n ])\n )\n)<ParticipationUpdatedEnvelope>();\n\nexport {\n AccountInfo,\n AccountInfoMetadata,\n ActionEvent,\n AddressLocation,\n AggregationData,\n AggregationResults,\n AggregationResultsResultOneOf,\n AggregationResultsScalarDateResult,\n AggregationResultsScalarResult,\n AggregationType,\n BaseEventMetadata,\n CommonCursorPagingMetadata,\n CommonCursors,\n CreateParticipationOptions,\n CreateParticipationRequest,\n CreateParticipationResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CursorSearch,\n CursorSearchPagingMethodOneOf,\n Cursors,\n DateHistogramResult,\n DateHistogramResults,\n DeleteParticipationRequest,\n DeleteParticipationResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n GeotileGridBucket,\n GeotileGridResults,\n GetParticipationRequest,\n GetParticipationResponse,\n GroupByValueResults,\n IdentificationData,\n IdentificationDataIdOneOf,\n MessageEnvelope,\n Mode,\n NestedAggregationResults,\n NestedAggregationResultsResultOneOf,\n NestedResultValue,\n NestedResultValueResultOneOf,\n NestedResults,\n NestedValueAggregationResult,\n Participant,\n Participation,\n ParticipationCreatedEnvelope,\n ParticipationDeletedEnvelope,\n ParticipationParticipatedItemOneOf,\n ParticipationQuerySpec,\n ParticipationUpdatedEnvelope,\n ParticipationsQueryBuilder,\n ParticipationsQueryResult,\n PartySizeSumByScheduleId,\n QueryParticipationsRequest,\n QueryParticipationsResponse,\n RangeAggregationResult,\n RangeResult,\n RangeResults,\n RestoreInfo,\n Results,\n ScalarDateResult,\n ScalarResult,\n ScalarType,\n SearchDetails,\n SearchParticipationsRequest,\n SearchParticipationsResponse,\n SortOrder,\n Sorting,\n Status,\n SumParticipationsPartySizeByScheduleIdRequest,\n SumParticipationsPartySizeByScheduleIdResponse,\n UpdateParticipation,\n UpdateParticipationRequest,\n UpdateParticipationResponse,\n ValueAggregationResult,\n ValueResult,\n ValueResults,\n WebhookIdentityType,\n utils,\n} from './calendar-v3-participation-participations.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixCalendarV3Participation from './calendar-v3-participation-participations.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\n/**\n * The `participation` object represents the relationship between a participant and\n * an [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * or [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).\n * It includes details about the participant, whether the participation status is confirmed or\n * pending, which app owns the relevant event or schedule, and allows for custom data extensions.\n */\nexport interface Participation extends ParticipationParticipatedItemOneOf {\n /**\n * ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\n * associated with the participation.\n * @format GUID\n * @immutable\n */\n scheduleId?: string | null;\n /**\n * ID of the [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * associated with the participation.\n * @minLength 36\n * @maxLength 250\n * @immutable\n */\n eventId?: string | null;\n /**\n * Participation ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * External ID.\n * @format GUID\n * @immutable\n */\n externalId?: string | null;\n /** Information about the participant. */\n participant?: Participant;\n /**\n * Party size of the group or `1` for individuals.\n *\n * Min: `1`\n * Max: `1000`\n * @min 1\n * @max 1000\n */\n partySize?: number | null;\n /**\n * Status of the party's participation in the event. Depending on your\n * implementation, confirmation may be handled by the business owner or the customer.\n *\n * Supported values:\n * + `CONFIRMED`: The party's participation is confirmed. For example, the business owner has confirmed a [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings).\n * + `PENDING_CONFIRMATION`: The party's participation is awaiting confirmation. For example, the business owner still needs to approve the [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings).\n *\n * Default: `CONFIRMED`\n */\n status?: StatusWithLiterals;\n /**\n * ID of the app that owns the participation `object`. Identical to `appId` of the\n * [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\n * that the related\n * [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * belongs to.\n * @format GUID\n * @readonly\n */\n appId?: string | null;\n /**\n * Revision number, which increments by 1 each time the participation is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the participation.\n * Ignored when creating a participation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date the participation was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date the participation was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Extensions enabling applications or users to save custom data related to the participation. */\n extendedFields?: ExtendedFields;\n}\n\n/** @oneof */\nexport interface ParticipationParticipatedItemOneOf {\n /**\n * ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\n * associated with the participation.\n * @format GUID\n * @immutable\n */\n scheduleId?: string | null;\n /**\n * ID of the [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * associated with the participation.\n * @minLength 36\n * @maxLength 250\n * @immutable\n */\n eventId?: string | null;\n}\n\nexport interface Participant {\n /**\n * Participant name.\n *\n * Min: 1 character\n * Max: 200 characters\n * @minLength 1\n * @maxLength 200\n */\n name?: string | null;\n /**\n * Participant's phone number.\n * @format PHONE\n */\n phone?: string | null;\n /**\n * Participant's email address.\n * @format EMAIL\n */\n email?: string | null;\n /**\n * [Contact](https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/introduction)\n * ID of the participant.\n * @format GUID\n */\n contactId?: string | null;\n}\n\nexport enum Status {\n /** The party's participation is confirmed. For example, the business owner has confirmed a [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings). */\n CONFIRMED = 'CONFIRMED',\n /** The party's participation is awaiting confirmation. For example, the business owner still needs to approve the [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings). */\n PENDING_CONFIRMATION = 'PENDING_CONFIRMATION',\n}\n\n/** @enumType */\nexport type StatusWithLiterals = Status | 'CONFIRMED' | 'PENDING_CONFIRMATION';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface GetParticipationRequest {\n /**\n * ID of the `participation` object to retrieve.\n * @format GUID\n */\n participationId: string | null;\n}\n\nexport interface GetParticipationResponse {\n /** Retrieved `participation` object. */\n participation?: Participation;\n}\n\nexport interface QueryParticipationsRequest {\n /** Query containing filters and paging. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * Number of participations to load.\n * @min 1\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface QueryParticipationsResponse {\n /** Retrieved `participation` objects matching the provided query. */\n participations?: Participation[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface SearchParticipationsRequest {\n /** Search criteria including filter, sort, aggregations, and free-text search. */\n search?: CursorSearch;\n}\n\nexport interface CursorSearch extends CursorSearchPagingMethodOneOf {\n /**\n * Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`,\n * `filter`, `sort`, or `search` can't be specified.\n */\n cursorPaging?: CursorPaging;\n /** Filter object for narrowing search results. */\n filter?: Record<string, any> | null;\n /**\n * Array of sort objects specifying result order.\n * @maxSize 10\n */\n sort?: Sorting[];\n /** Free text to match in searchable fields. */\n search?: SearchDetails;\n /**\n * Time zone in IANA tz database format or ISO 8601 UTC offset format for adjusting time fields in the specified filters. For example, `America/New_York`, `UTC`, or `+02:00`.\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\n/** @oneof */\nexport interface CursorSearchPagingMethodOneOf {\n /**\n * Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`,\n * `filter`, `sort`, or `search` can't be specified.\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface SearchDetails {\n /** Search mode. Defines the search logic for combining multiple terms in the `expression`. */\n mode?: ModeWithLiterals;\n /**\n * Search term or expression.\n * @maxLength 100\n */\n expression?: string | null;\n /**\n * Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path.\n * @maxLength 200\n * @maxSize 20\n */\n fields?: string[];\n /** Whether to enable the search function to use an algorithm to automatically find results that are close to the search expression, such as typos and declensions. */\n fuzzy?: boolean;\n}\n\nexport enum Mode {\n /** At least 1 of the search terms must be present. */\n OR = 'OR',\n /** All search terms must be present. */\n AND = 'AND',\n}\n\n/** @enumType */\nexport type ModeWithLiterals = Mode | 'OR' | 'AND';\n\nexport interface SearchParticipationsResponse {\n /** Retrieved `participation` objects matching the provided search. */\n participations?: Participation[];\n /** Cursor-based paging metadata. */\n pagingMetadata?: CommonCursorPagingMetadata;\n /** Aggregation results. */\n aggregationData?: AggregationData;\n}\n\nexport interface CommonCursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: CommonCursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface CommonCursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface AggregationData {\n /**\n * List of the aggregated data results.\n * @maxSize 10000\n */\n results?: AggregationResults[];\n}\n\nexport interface ValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 100\n */\n value?: string;\n /** Number of entities with this value. */\n count?: number;\n}\n\nexport interface RangeAggregationResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Total number of entities in this range. */\n count?: number;\n}\n\nexport enum ScalarType {\n /** Total number of distinct values. */\n COUNT_DISTINCT = 'COUNT_DISTINCT',\n /** Minimum value. */\n MIN = 'MIN',\n /** Maximum value. */\n MAX = 'MAX',\n}\n\n/** @enumType */\nexport type ScalarTypeWithLiterals =\n | ScalarType\n | 'COUNT_DISTINCT'\n | 'MIN'\n | 'MAX';\n\nexport interface NestedAggregationResults\n extends NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /**\n * Unique, caller-defined aggregation name, identifiable by the requested aggregation `name`.\n * @maxLength 100\n */\n name?: string;\n /** Aggregation type. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field which the data was aggregated by.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n}\n\nexport enum AggregationType {\n /** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */\n VALUE = 'VALUE',\n /** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */\n RANGE = 'RANGE',\n /** Calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n SCALAR = 'SCALAR',\n /** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */\n DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n /** Flattened list of aggregations, where each aggregation is nested within previous one. */\n NESTED = 'NESTED',\n /** Groups geo point values into buckets that represent map tiles at a given precision, for map clustering. */\n GEOTILE_GRID = 'GEOTILE_GRID',\n}\n\n/** @enumType */\nexport type AggregationTypeWithLiterals =\n | AggregationType\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM'\n | 'NESTED'\n | 'GEOTILE_GRID';\n\nexport interface ValueResults {\n /**\n * List of value aggregations.\n * @maxSize 250\n */\n results?: ValueAggregationResult[];\n}\n\nexport interface RangeResults {\n /**\n * List of ranges returned in the same order as requested.\n * @maxSize 50\n */\n results?: RangeAggregationResult[];\n}\n\nexport interface AggregationResultsScalarResult {\n /** Type of scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface NestedValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Nested aggregations. */\n nestedResults?: NestedAggregationResults;\n}\n\nexport interface ValueResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Number of entities with this value. */\n count?: number | null;\n}\n\nexport interface RangeResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Number of entities in this range. */\n count?: number | null;\n}\n\nexport interface ScalarResult {\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface ScalarDateResult {\n /**\n * Date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.\n * @maxLength 100\n */\n value?: string;\n}\n\nexport interface NestedResultValue extends NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n /** Scalar date aggregation result. */\n scalarDate?: ScalarDateResult;\n}\n\n/** @oneof */\nexport interface NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n /** Scalar date aggregation result. */\n scalarDate?: ScalarDateResult;\n}\n\nexport interface Results {\n /** List of nested aggregations. */\n results?: Record<string, NestedResultValue>;\n}\n\nexport interface DateHistogramResult {\n /**\n * Date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.\n * @maxLength 100\n */\n value?: string;\n /** Number of entities in the bucket. */\n count?: number;\n}\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface GeotileGridBucket {\n /**\n * Tile key in `zoom/x/y` format.\n * @maxLength 30\n */\n tileKey?: string;\n /** Number of entities whose geo point falls inside the tile. */\n count?: number;\n /** Centroid of the geo points in the tile. */\n centroid?: AddressLocation;\n}\n\nexport interface GroupByValueResults {\n /**\n * List of value aggregations.\n * @maxSize 1000\n */\n results?: NestedValueAggregationResult[];\n}\n\nexport interface DateHistogramResults {\n /**\n * List of date histogram aggregations.\n * @maxSize 200\n */\n results?: DateHistogramResult[];\n}\n\n/** Results of `NESTED` aggregation type in a flattened array, identifiable by the requested aggregation `name`. */\nexport interface NestedResults {\n /**\n * List of nested aggregations.\n * @maxSize 1000\n */\n results?: Results[];\n}\n\nexport interface AggregationResultsScalarDateResult {\n /** Type of scalar date aggregation. Possible values: `MIN`, `MAX`. */\n type?: ScalarTypeWithLiterals;\n /**\n * Date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.\n * @maxLength 100\n */\n value?: string;\n}\n\n/** Geotile grid aggregation results — one bucket per map tile at the requested precision. */\nexport interface GeotileGridResults {\n /**\n * List of tile buckets.\n * @maxSize 1000\n */\n results?: GeotileGridBucket[];\n}\n\nexport interface AggregationResults extends AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n /** Date aggregation results. */\n scalarDate?: AggregationResultsScalarDateResult;\n /** Geotile grid aggregation results. */\n geotileGrid?: GeotileGridResults;\n /**\n * Aggregation name, returned in `aggregations.results.name`.\n * @maxLength 100\n */\n name?: string;\n /** Aggregation type. Must align with the corresponding aggregation field. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n /** Date aggregation results. */\n scalarDate?: AggregationResultsScalarDateResult;\n /** Geotile grid aggregation results. */\n geotileGrid?: GeotileGridResults;\n}\n\nexport interface CreateParticipationRequest {\n /** `participation` object to create. */\n participation: Participation;\n /**\n * Idempotency key guaranteeing that you don't create the same `participation`\n * object more than once.\n * @format GUID\n */\n idempotencyKey?: string | null;\n}\n\nexport interface CreateParticipationResponse {\n /** Created `participation` object. */\n participation?: Participation;\n}\n\nexport interface UpdateParticipationRequest {\n /** `participation` object to update. */\n participation: Participation;\n}\n\nexport interface UpdateParticipationResponse {\n /** Updated `participation` object. */\n participation?: Participation;\n}\n\nexport interface DeleteParticipationRequest {\n /**\n * ID of `participation` object to delete.\n * @format GUID\n */\n participationId: string | null;\n}\n\nexport interface DeleteParticipationResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface SumParticipationsPartySizeByScheduleIdRequest {\n /**\n * The schedule IDs.\n * @format GUID\n * @maxSize 100\n */\n scheduleIds?: string[] | null;\n}\n\nexport interface SumParticipationsPartySizeByScheduleIdResponse {\n /** The sum of party size by schedule ID. */\n partySizeSumByScheduleId?: PartySizeSumByScheduleId[];\n}\n\nexport interface PartySizeSumByScheduleId {\n /**\n * The ID of the schedule.\n * @format GUID\n */\n scheduleId?: string | null;\n /** The sum of the participations party size. */\n partySizeSum?: number | null;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface ParticipationCreatedEnvelope {\n entity: Participation;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a `participation` object is created.\n * @permissionScope Manage_Wix_Rentals_App_Forms_submissions\n * @permissionScopeId SCOPE.RENTALS.MANAGE\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId CALENDAR.PARTICIPATION_READ\n * @webhook\n * @eventType wix.calendar.v3.participation_created\n * @slug created\n */\nexport declare function onParticipationCreated(\n handler: (event: ParticipationCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ParticipationDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a `participation` object is deleted.\n * @permissionScope Manage_Wix_Rentals_App_Forms_submissions\n * @permissionScopeId SCOPE.RENTALS.MANAGE\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId CALENDAR.PARTICIPATION_READ\n * @webhook\n * @eventType wix.calendar.v3.participation_deleted\n * @slug deleted\n */\nexport declare function onParticipationDeleted(\n handler: (event: ParticipationDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ParticipationUpdatedEnvelope {\n entity: Participation;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when a `participation` object is updated.\n * @permissionScope Manage_Wix_Rentals_App_Forms_submissions\n * @permissionScopeId SCOPE.RENTALS.MANAGE\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId CALENDAR.PARTICIPATION_READ\n * @webhook\n * @eventType wix.calendar.v3.participation_updated\n * @slug updated\n */\nexport declare function onParticipationUpdated(\n handler: (event: ParticipationUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a `participation` object.\n * @param participationId - ID of the `participation` object to retrieve.\n * @public\n * @requiredField participationId\n * @permissionId CALENDAR.PARTICIPATION_READ\n * @applicableIdentity APP\n * @returns Retrieved `participation` object.\n * @fqn wix.calendar.participations.v3.ParticipationsService.GetParticipation\n */\nexport async function getParticipation(\n participationId: string\n): Promise<NonNullablePaths<Participation, `status`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n participationId: participationId,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3Participation.getParticipation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.participation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { participationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['participationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Creates a query to retrieve a list of participations.\n *\n * The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-builder/find) function.\n *\n * You can refine the query by chaining `ParticipationsQueryBuilder` functions onto the query. `ParticipationsQueryBuilder` functions enable you to sort, filter, and control the results that `queryParticipations()` returns.\n *\n * `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `createdDate` in ascending order.\n *\n * The functions that are chained to `queryParticipations()` are applied in the order they are called.\n *\n * The following `ParticipationsQueryBuilder` functions are supported for the `queryParticipations()` function. For a full description of the participations object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-result/items) property in `ParticipationsQueryResult`.\n *\n * @public\n * @permissionId CALENDAR.PARTICIPATION_READ\n * @applicableIdentity APP\n * @fqn wix.calendar.participations.v3.ParticipationsService.QueryParticipations\n */\nexport function queryParticipations(): ParticipationsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Participation,\n 'CURSOR',\n QueryParticipationsRequest,\n QueryParticipationsResponse\n >({\n func: async (payload: QueryParticipationsRequest) => {\n const reqOpts =\n ambassadorWixCalendarV3Participation.queryParticipations(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryParticipationsRequest['query']) => {\n const args = [query, {}] as [QueryParticipationsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryParticipationsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.participations,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ParticipationsQueryResult extends QueryCursorResult {\n items: Participation[];\n query: ParticipationsQueryBuilder;\n next: () => Promise<ParticipationsQueryResult>;\n prev: () => Promise<ParticipationsQueryResult>;\n}\n\nexport interface ParticipationsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n eq: (\n propertyName: 'scheduleId' | 'eventId' | 'externalId',\n value: any\n ) => ParticipationsQueryBuilder;\n in: (\n propertyName: 'scheduleId' | 'eventId' | '_id' | 'externalId',\n value: any\n ) => ParticipationsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */\n limit: (limit: number) => ParticipationsQueryBuilder;\n /** @param cursor - A pointer to specific record */\n skipTo: (cursor: string) => ParticipationsQueryBuilder;\n find: () => Promise<ParticipationsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.calendar.participations.v3.ParticipationsService.QueryParticipations\n * @requiredField query\n */\nexport async function typedQueryParticipations(\n query: ParticipationQuery\n): Promise<\n NonNullablePaths<\n QueryParticipationsResponse,\n `participations` | `participations.${number}.status`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts =\n ambassadorWixCalendarV3Participation.queryParticipations(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ParticipationQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['_id'];\n operators: ['$in'];\n sort: 'NONE';\n },\n {\n fields: ['eventId', 'externalId', 'scheduleId'];\n operators: ['$eq', '$in'];\n sort: 'NONE';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n Participation,\n ParticipationQuerySpec\n>;\nexport type ParticipationQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Number of participations to load. \n @min: 1,\n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n You can get the relevant cursor token\n from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object in the following format:\n `\"filter\" : {\n \"fieldName1\": \"value1\",\n \"fieldName2\":{\"$operator\":\"value2\"}\n }`\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n};\n\nexport const utils = {\n query: {\n ...createQueryUtils<\n Participation,\n ParticipationQuerySpec,\n ParticipationQuery\n >(),\n },\n};\n\n/**\n * Creates a `participation` object for a schedule or event.\n * @param participation - `participation` object to create.\n * @public\n * @requiredField participation\n * @requiredField participation.participant\n * @requiredField participation.participant.name\n * @requiredField participation.participatedItem\n * @requiredField participation.partySize\n * @permissionId CALENDAR.PARTICIPATION_CREATE\n * @applicableIdentity APP\n * @returns Created `participation` object.\n * @fqn wix.calendar.participations.v3.ParticipationsService.CreateParticipation\n */\nexport async function createParticipation(\n participation: NonNullablePaths<\n Participation,\n `participant` | `participant.name` | `partySize`,\n 3\n >,\n options?: CreateParticipationOptions\n): Promise<NonNullablePaths<Participation, `status`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n participation: participation,\n idempotencyKey: options?.idempotencyKey,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3Participation.createParticipation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.participation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n participation: '$[0]',\n idempotencyKey: '$[1].idempotencyKey',\n },\n singleArgumentUnchanged: false,\n },\n ['participation', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateParticipationOptions {\n /**\n * Idempotency key guaranteeing that you don't create the same `participation`\n * object more than once.\n * @format GUID\n */\n idempotencyKey?: string | null;\n}\n\n/**\n * Updates a `participation` object.\n * @param _id - Participation ID.\n * @public\n * @requiredField _id\n * @requiredField participation\n * @requiredField participation.revision\n * @permissionId CALENDAR.PARTICIPATION_UPDATE\n * @applicableIdentity APP\n * @returns Updated `participation` object.\n * @fqn wix.calendar.participations.v3.ParticipationsService.UpdateParticipation\n */\nexport async function updateParticipation(\n _id: string,\n participation: NonNullablePaths<UpdateParticipation, `revision`, 2>\n): Promise<NonNullablePaths<Participation, `status`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n participation: { ...participation, id: _id },\n });\n\n const reqOpts =\n ambassadorWixCalendarV3Participation.updateParticipation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.participation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { participation: '$[1]' },\n explicitPathsToArguments: { 'participation.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'participation']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateParticipation {\n /**\n * ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\n * associated with the participation.\n * @format GUID\n * @immutable\n */\n scheduleId?: string | null;\n /**\n * ID of the [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * associated with the participation.\n * @minLength 36\n * @maxLength 250\n * @immutable\n */\n eventId?: string | null;\n /**\n * Participation ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * External ID.\n * @format GUID\n * @immutable\n */\n externalId?: string | null;\n /** Information about the participant. */\n participant?: Participant;\n /**\n * Party size of the group or `1` for individuals.\n *\n * Min: `1`\n * Max: `1000`\n * @min 1\n * @max 1000\n */\n partySize?: number | null;\n /**\n * Status of the party's participation in the event. Depending on your\n * implementation, confirmation may be handled by the business owner or the customer.\n *\n * Supported values:\n * + `CONFIRMED`: The party's participation is confirmed. For example, the business owner has confirmed a [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings).\n * + `PENDING_CONFIRMATION`: The party's participation is awaiting confirmation. For example, the business owner still needs to approve the [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings).\n *\n * Default: `CONFIRMED`\n */\n status?: StatusWithLiterals;\n /**\n * ID of the app that owns the participation `object`. Identical to `appId` of the\n * [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\n * that the related\n * [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * belongs to.\n * @format GUID\n * @readonly\n */\n appId?: string | null;\n /**\n * Revision number, which increments by 1 each time the participation is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the participation.\n * Ignored when creating a participation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date the participation was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date the participation was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Extensions enabling applications or users to save custom data related to the participation. */\n extendedFields?: ExtendedFields;\n}\n\n/**\n * Deletes a `participation` object.\n * @param participationId - ID of `participation` object to delete.\n * @public\n * @requiredField participationId\n * @permissionId CALENDAR.PARTICIPATION_DELETE\n * @applicableIdentity APP\n * @fqn wix.calendar.participations.v3.ParticipationsService.DeleteParticipation\n */\nexport async function deleteParticipation(\n participationId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n participationId: participationId,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3Participation.deleteParticipation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { participationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['participationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixCalendarParticipationsV3ParticipationsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/calendar/v3/participations',\n destPath: '/v3/participations',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/calendar/v3/participations',\n destPath: '/v3/participations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_calendar_participations';\n\n/** Retrieves a `participation` object. */\nexport function getParticipation(payload: object): RequestOptionsFactory<any> {\n function __getParticipation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.participation',\n method: 'GET' as any,\n methodFqn:\n 'wix.calendar.participations.v3.ParticipationsService.GetParticipation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({\n protoPath: '/v3/participations/{participationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'participation.createdDate' },\n { path: 'participation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getParticipation;\n}\n\n/**\n * Creates a query to retrieve a list of participations.\n *\n * The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-builder/find) function.\n *\n * You can refine the query by chaining `ParticipationsQueryBuilder` functions onto the query. `ParticipationsQueryBuilder` functions enable you to sort, filter, and control the results that `queryParticipations()` returns.\n *\n * `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `createdDate` in ascending order.\n *\n * The functions that are chained to `queryParticipations()` are applied in the order they are called.\n *\n * The following `ParticipationsQueryBuilder` functions are supported for the `queryParticipations()` function. For a full description of the participations object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-result/items) property in `ParticipationsQueryResult`.\n *\n */\nexport function queryParticipations(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryParticipations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.participation',\n method: 'POST' as any,\n methodFqn:\n 'wix.calendar.participations.v3.ParticipationsService.QueryParticipations',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({\n protoPath: '/v3/participations/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'participations.createdDate' },\n { path: 'participations.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryParticipations;\n}\n\n/** Creates a `participation` object for a schedule or event. */\nexport function createParticipation(\n payload: object\n): RequestOptionsFactory<any> {\n function __createParticipation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'participation.createdDate' },\n { path: 'participation.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.calendar.v3.participation',\n method: 'POST' as any,\n methodFqn:\n 'wix.calendar.participations.v3.ParticipationsService.CreateParticipation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({\n protoPath: '/v3/participations',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'participation.createdDate' },\n { path: 'participation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createParticipation;\n}\n\n/** Updates a `participation` object. */\nexport function updateParticipation(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateParticipation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldmask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'participation.createdDate' },\n { path: 'participation.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.calendar.v3.participation',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.calendar.participations.v3.ParticipationsService.UpdateParticipation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({\n protoPath: '/v3/participations/{participation.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'participation.createdDate' },\n { path: 'participation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateParticipation;\n}\n\n/** Deletes a `participation` object. */\nexport function deleteParticipation(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteParticipation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.participation',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.calendar.participations.v3.ParticipationsService.DeleteParticipation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({\n protoPath: '/v3/participations/{participationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteParticipation;\n}\n","import {\n getParticipation as publicGetParticipation,\n queryParticipations as publicQueryParticipations,\n typedQueryParticipations as publicTypedQueryParticipations,\n createParticipation as publicCreateParticipation,\n updateParticipation as publicUpdateParticipation,\n deleteParticipation as publicDeleteParticipation,\n} from './calendar-v3-participation-participations.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n ParticipationQuery,\n ParticipationsQueryBuilder,\n typedQueryParticipations as universalTypedQueryParticipations,\n} from './calendar-v3-participation-participations.universal.js';\nimport { onParticipationCreated as publicOnParticipationCreated } from './calendar-v3-participation-participations.public.js';\nimport { onParticipationDeleted as publicOnParticipationDeleted } from './calendar-v3-participation-participations.public.js';\nimport { onParticipationUpdated as publicOnParticipationUpdated } from './calendar-v3-participation-participations.public.js';\n\nfunction customQueryParticipations(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: () => publicQueryParticipations(httpClient)(),\n typedQueryFunction: (query: ParticipationQuery) =>\n publicTypedQueryParticipations(httpClient)(query),\n hasOptionsParameter: false,\n });\n\n function overloadedQuery(): ParticipationsQueryBuilder;\n function overloadedQuery(\n query: ParticipationQuery\n ): ReturnType<typeof universalTypedQueryParticipations>;\n function overloadedQuery(query?: ParticipationQuery): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const getParticipation: MaybeContext<\n BuildRESTFunction<typeof publicGetParticipation> &\n typeof publicGetParticipation\n> = /*#__PURE__*/ createRESTModule(publicGetParticipation);\nexport const createParticipation: MaybeContext<\n BuildRESTFunction<typeof publicCreateParticipation> &\n typeof publicCreateParticipation\n> = /*#__PURE__*/ createRESTModule(publicCreateParticipation);\nexport const updateParticipation: MaybeContext<\n BuildRESTFunction<typeof publicUpdateParticipation> &\n typeof publicUpdateParticipation\n> = /*#__PURE__*/ createRESTModule(publicUpdateParticipation);\nexport const deleteParticipation: MaybeContext<\n BuildRESTFunction<typeof publicDeleteParticipation> &\n typeof publicDeleteParticipation\n> = /*#__PURE__*/ createRESTModule(publicDeleteParticipation);\nexport const queryParticipations: MaybeContext<\n BuildRESTFunction<typeof customQueryParticipations> &\n typeof customQueryParticipations\n> = /*#__PURE__*/ createRESTModule(customQueryParticipations);\n/**\n * Triggered when a `participation` object is created.\n */\nexport const onParticipationCreated: BuildEventDefinition<\n typeof publicOnParticipationCreated\n> &\n typeof publicOnParticipationCreated = createEventModule(\n publicOnParticipationCreated\n);\n/**\n * Triggered when a `participation` object is deleted.\n */\nexport const onParticipationDeleted: BuildEventDefinition<\n typeof publicOnParticipationDeleted\n> &\n typeof publicOnParticipationDeleted = createEventModule(\n publicOnParticipationDeleted\n);\n/**\n * Triggered when a `participation` object is updated.\n */\nexport const onParticipationUpdated: BuildEventDefinition<\n typeof publicOnParticipationUpdated\n> &\n typeof publicOnParticipationUpdated = createEventModule(\n publicOnParticipationUpdated\n);\n\nexport {\n Status,\n SortOrder,\n Mode,\n ScalarType,\n AggregationType,\n WebhookIdentityType,\n} from './calendar-v3-participation-participations.universal.js';\nexport {\n Participation,\n ParticipationParticipatedItemOneOf,\n Participant,\n ExtendedFields,\n GetParticipationRequest,\n GetParticipationResponse,\n QueryParticipationsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CursorPaging,\n QueryParticipationsResponse,\n CursorPagingMetadata,\n Cursors,\n SearchParticipationsRequest,\n CursorSearch,\n CursorSearchPagingMethodOneOf,\n Sorting,\n SearchDetails,\n SearchParticipationsResponse,\n CommonCursorPagingMetadata,\n CommonCursors,\n AggregationData,\n ValueAggregationResult,\n RangeAggregationResult,\n NestedAggregationResults,\n NestedAggregationResultsResultOneOf,\n ValueResults,\n RangeResults,\n AggregationResultsScalarResult,\n NestedValueAggregationResult,\n ValueResult,\n RangeResult,\n ScalarResult,\n ScalarDateResult,\n NestedResultValue,\n NestedResultValueResultOneOf,\n Results,\n DateHistogramResult,\n AddressLocation,\n GeotileGridBucket,\n GroupByValueResults,\n DateHistogramResults,\n NestedResults,\n AggregationResultsScalarDateResult,\n GeotileGridResults,\n AggregationResults,\n AggregationResultsResultOneOf,\n CreateParticipationRequest,\n CreateParticipationResponse,\n UpdateParticipationRequest,\n UpdateParticipationResponse,\n DeleteParticipationRequest,\n DeleteParticipationResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n SumParticipationsPartySizeByScheduleIdRequest,\n SumParticipationsPartySizeByScheduleIdResponse,\n PartySizeSumByScheduleId,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n BaseEventMetadata,\n EventMetadata,\n AccountInfoMetadata,\n ParticipationCreatedEnvelope,\n ParticipationDeletedEnvelope,\n ParticipationUpdatedEnvelope,\n ParticipationsQueryResult,\n ParticipationsQueryBuilder,\n ParticipationQuerySpec,\n CreateParticipationOptions,\n UpdateParticipation,\n} from './calendar-v3-participation-participations.universal.js';\nexport { utils } from './calendar-v3-participation-participations.universal.js';\nexport {\n StatusWithLiterals,\n SortOrderWithLiterals,\n ModeWithLiterals,\n ScalarTypeWithLiterals,\n AggregationTypeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n CommonQueryWithEntityContext,\n ParticipationQuery,\n} from './calendar-v3-participation-participations.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACH9D,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD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E,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,6BAA6B;AAAA,UACrC,EAAE,MAAM,6BAA6B;AAAA,QACvC;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAgC;;;AGlOhC,IAAAC,uBAAiC;AACjC,sCAAkC;AAOlC,iCAA0C;AAU1C,SAAS,0BAA0B,YAAwB;AACzD,QAAM,aAAS,sDAA0B;AAAA,IACvC,sBAAsB,MAAMC,qBAA0B,UAAU,EAAE;AAAA,IAClE,oBAAoB,CAAC,UACnBC,0BAA+B,UAAU,EAAE,KAAK;AAAA,IAClD,qBAAqB;AAAA,EACvB,CAAC;AAMD,WAAS,gBAAgB,OAAiC;AACxD,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAEO,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAML,uBAGK,2DAAiB,yBAAyB;AAIrD,IAAMM,8BAG2B;AAAA,EACtC;AACF;AAIO,IAAMC,8BAG2B;AAAA,EACtC;AACF;AAIO,IAAMC,8BAG2B;AAAA,EACtC;AACF;","names":["createParticipation","deleteParticipation","getParticipation","onParticipationCreated","onParticipationDeleted","onParticipationUpdated","queryParticipations","updateParticipation","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_transform_paths","Status","SortOrder","Mode","ScalarType","AggregationType","WebhookIdentityType","getParticipation","sdkTransformError","queryParticipations","createParticipation","updateParticipation","deleteParticipation","getParticipation","queryParticipations","typedQueryParticipations","createParticipation","updateParticipation","deleteParticipation","import_rest_modules","queryParticipations","typedQueryParticipations","getParticipation","createParticipation","updateParticipation","deleteParticipation","onParticipationCreated","onParticipationDeleted","onParticipationUpdated"]}
|
|
@@ -404,10 +404,12 @@ declare enum AggregationType {
|
|
|
404
404
|
/** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */
|
|
405
405
|
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
406
406
|
/** Flattened list of aggregations, where each aggregation is nested within previous one. */
|
|
407
|
-
NESTED = "NESTED"
|
|
407
|
+
NESTED = "NESTED",
|
|
408
|
+
/** Groups geo point values into buckets that represent map tiles at a given precision, for map clustering. */
|
|
409
|
+
GEOTILE_GRID = "GEOTILE_GRID"
|
|
408
410
|
}
|
|
409
411
|
/** @enumType */
|
|
410
|
-
type AggregationTypeWithLiterals = AggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
|
|
412
|
+
type AggregationTypeWithLiterals = AggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED' | 'GEOTILE_GRID';
|
|
411
413
|
interface ValueResults {
|
|
412
414
|
/**
|
|
413
415
|
* List of value aggregations.
|
|
@@ -503,6 +505,23 @@ interface DateHistogramResult {
|
|
|
503
505
|
/** Number of entities in the bucket. */
|
|
504
506
|
count?: number;
|
|
505
507
|
}
|
|
508
|
+
interface AddressLocation {
|
|
509
|
+
/** Address latitude. */
|
|
510
|
+
latitude?: number | null;
|
|
511
|
+
/** Address longitude. */
|
|
512
|
+
longitude?: number | null;
|
|
513
|
+
}
|
|
514
|
+
interface GeotileGridBucket {
|
|
515
|
+
/**
|
|
516
|
+
* Tile key in `zoom/x/y` format.
|
|
517
|
+
* @maxLength 30
|
|
518
|
+
*/
|
|
519
|
+
tileKey?: string;
|
|
520
|
+
/** Number of entities whose geo point falls inside the tile. */
|
|
521
|
+
count?: number;
|
|
522
|
+
/** Centroid of the geo points in the tile. */
|
|
523
|
+
centroid?: AddressLocation;
|
|
524
|
+
}
|
|
506
525
|
interface GroupByValueResults {
|
|
507
526
|
/**
|
|
508
527
|
* List of value aggregations.
|
|
@@ -534,6 +553,14 @@ interface AggregationResultsScalarDateResult {
|
|
|
534
553
|
*/
|
|
535
554
|
value?: string;
|
|
536
555
|
}
|
|
556
|
+
/** Geotile grid aggregation results — one bucket per map tile at the requested precision. */
|
|
557
|
+
interface GeotileGridResults {
|
|
558
|
+
/**
|
|
559
|
+
* List of tile buckets.
|
|
560
|
+
* @maxSize 1000
|
|
561
|
+
*/
|
|
562
|
+
results?: GeotileGridBucket[];
|
|
563
|
+
}
|
|
537
564
|
interface AggregationResults extends AggregationResultsResultOneOf {
|
|
538
565
|
/** Value aggregation results. */
|
|
539
566
|
values?: ValueResults;
|
|
@@ -549,6 +576,8 @@ interface AggregationResults extends AggregationResultsResultOneOf {
|
|
|
549
576
|
nested?: NestedResults;
|
|
550
577
|
/** Date aggregation results. */
|
|
551
578
|
scalarDate?: AggregationResultsScalarDateResult;
|
|
579
|
+
/** Geotile grid aggregation results. */
|
|
580
|
+
geotileGrid?: GeotileGridResults;
|
|
552
581
|
/**
|
|
553
582
|
* Aggregation name, returned in `aggregations.results.name`.
|
|
554
583
|
* @maxLength 100
|
|
@@ -578,6 +607,8 @@ interface AggregationResultsResultOneOf {
|
|
|
578
607
|
nested?: NestedResults;
|
|
579
608
|
/** Date aggregation results. */
|
|
580
609
|
scalarDate?: AggregationResultsScalarDateResult;
|
|
610
|
+
/** Geotile grid aggregation results. */
|
|
611
|
+
geotileGrid?: GeotileGridResults;
|
|
581
612
|
}
|
|
582
613
|
interface CreateParticipationRequest {
|
|
583
614
|
/** `participation` object to create. */
|
|
@@ -639,7 +670,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
639
670
|
/** If present, indicates the action that triggered the event. */
|
|
640
671
|
originatedFrom?: string | null;
|
|
641
672
|
/**
|
|
642
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01
|
|
673
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
643
674
|
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
644
675
|
*/
|
|
645
676
|
entityEventSequence?: string | null;
|
|
@@ -827,7 +858,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
827
858
|
/** If present, indicates the action that triggered the event. */
|
|
828
859
|
originatedFrom?: string | null;
|
|
829
860
|
/**
|
|
830
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01
|
|
861
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
831
862
|
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
832
863
|
*/
|
|
833
864
|
entityEventSequence?: string | null;
|
|
@@ -847,6 +878,8 @@ interface ParticipationCreatedEnvelope {
|
|
|
847
878
|
}
|
|
848
879
|
/**
|
|
849
880
|
* Triggered when a `participation` object is created.
|
|
881
|
+
* @permissionScope Manage_Wix_Rentals_App_Forms_submissions
|
|
882
|
+
* @permissionScopeId SCOPE.RENTALS.MANAGE
|
|
850
883
|
* @permissionScope Manage Calendars
|
|
851
884
|
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
852
885
|
* @permissionScope Manage Bookings
|
|
@@ -864,6 +897,8 @@ interface ParticipationDeletedEnvelope {
|
|
|
864
897
|
}
|
|
865
898
|
/**
|
|
866
899
|
* Triggered when a `participation` object is deleted.
|
|
900
|
+
* @permissionScope Manage_Wix_Rentals_App_Forms_submissions
|
|
901
|
+
* @permissionScopeId SCOPE.RENTALS.MANAGE
|
|
867
902
|
* @permissionScope Manage Calendars
|
|
868
903
|
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
869
904
|
* @permissionScope Manage Bookings
|
|
@@ -884,6 +919,8 @@ interface ParticipationUpdatedEnvelope {
|
|
|
884
919
|
}
|
|
885
920
|
/**
|
|
886
921
|
* Triggered when a `participation` object is updated.
|
|
922
|
+
* @permissionScope Manage_Wix_Rentals_App_Forms_submissions
|
|
923
|
+
* @permissionScopeId SCOPE.RENTALS.MANAGE
|
|
887
924
|
* @permissionScope Manage Calendars
|
|
888
925
|
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
889
926
|
* @permissionScope Manage Bookings
|
|
@@ -1142,4 +1179,4 @@ interface UpdateParticipation {
|
|
|
1142
1179
|
*/
|
|
1143
1180
|
declare function deleteParticipation(participationId: string): Promise<void>;
|
|
1144
1181
|
|
|
1145
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AggregationData, type AggregationResults, type AggregationResultsResultOneOf, type AggregationResultsScalarDateResult, type AggregationResultsScalarResult, AggregationType, type AggregationTypeWithLiterals, type BaseEventMetadata, type CommonCursorPagingMetadata, type CommonCursors, type CommonQueryWithEntityContext, type CreateParticipationOptions, type CreateParticipationRequest, type CreateParticipationResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type CursorSearch, type CursorSearchPagingMethodOneOf, type Cursors, type DateHistogramResult, type DateHistogramResults, type DeleteParticipationRequest, type DeleteParticipationResponse, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GetParticipationRequest, type GetParticipationResponse, type GroupByValueResults, type IdentificationData, type IdentificationDataIdOneOf, type MessageEnvelope, Mode, type ModeWithLiterals, type NestedAggregationResults, type NestedAggregationResultsResultOneOf, type NestedResultValue, type NestedResultValueResultOneOf, type NestedResults, type NestedValueAggregationResult, type Participant, type Participation, type ParticipationCreatedEnvelope, type ParticipationDeletedEnvelope, type ParticipationParticipatedItemOneOf, type ParticipationQuery, type ParticipationQuerySpec, type ParticipationUpdatedEnvelope, type ParticipationsQueryBuilder, type ParticipationsQueryResult, type PartySizeSumByScheduleId, type QueryParticipationsRequest, type QueryParticipationsResponse, type RangeAggregationResult, type RangeResult, type RangeResults, type RestoreInfo, type Results, type ScalarDateResult, type ScalarResult, ScalarType, type ScalarTypeWithLiterals, type SearchDetails, type SearchParticipationsRequest, type SearchParticipationsResponse, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type SumParticipationsPartySizeByScheduleIdRequest, type SumParticipationsPartySizeByScheduleIdResponse, type UpdateParticipation, type UpdateParticipationRequest, type UpdateParticipationResponse, type ValueAggregationResult, type ValueResult, type ValueResults, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createParticipation, deleteParticipation, getParticipation, onParticipationCreated, onParticipationDeleted, onParticipationUpdated, queryParticipations, typedQueryParticipations, updateParticipation, utils };
|
|
1182
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type AggregationData, type AggregationResults, type AggregationResultsResultOneOf, type AggregationResultsScalarDateResult, type AggregationResultsScalarResult, AggregationType, type AggregationTypeWithLiterals, type BaseEventMetadata, type CommonCursorPagingMetadata, type CommonCursors, type CommonQueryWithEntityContext, type CreateParticipationOptions, type CreateParticipationRequest, type CreateParticipationResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type CursorSearch, type CursorSearchPagingMethodOneOf, type Cursors, type DateHistogramResult, type DateHistogramResults, type DeleteParticipationRequest, type DeleteParticipationResponse, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GeotileGridBucket, type GeotileGridResults, type GetParticipationRequest, type GetParticipationResponse, type GroupByValueResults, type IdentificationData, type IdentificationDataIdOneOf, type MessageEnvelope, Mode, type ModeWithLiterals, type NestedAggregationResults, type NestedAggregationResultsResultOneOf, type NestedResultValue, type NestedResultValueResultOneOf, type NestedResults, type NestedValueAggregationResult, type Participant, type Participation, type ParticipationCreatedEnvelope, type ParticipationDeletedEnvelope, type ParticipationParticipatedItemOneOf, type ParticipationQuery, type ParticipationQuerySpec, type ParticipationUpdatedEnvelope, type ParticipationsQueryBuilder, type ParticipationsQueryResult, type PartySizeSumByScheduleId, type QueryParticipationsRequest, type QueryParticipationsResponse, type RangeAggregationResult, type RangeResult, type RangeResults, type RestoreInfo, type Results, type ScalarDateResult, type ScalarResult, ScalarType, type ScalarTypeWithLiterals, type SearchDetails, type SearchParticipationsRequest, type SearchParticipationsResponse, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type SumParticipationsPartySizeByScheduleIdRequest, type SumParticipationsPartySizeByScheduleIdResponse, type UpdateParticipation, type UpdateParticipationRequest, type UpdateParticipationResponse, type ValueAggregationResult, type ValueResult, type ValueResults, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createParticipation, deleteParticipation, getParticipation, onParticipationCreated, onParticipationDeleted, onParticipationUpdated, queryParticipations, typedQueryParticipations, updateParticipation, utils };
|
|
@@ -260,6 +260,7 @@ var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
|
260
260
|
AggregationType2["SCALAR"] = "SCALAR";
|
|
261
261
|
AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
262
262
|
AggregationType2["NESTED"] = "NESTED";
|
|
263
|
+
AggregationType2["GEOTILE_GRID"] = "GEOTILE_GRID";
|
|
263
264
|
return AggregationType2;
|
|
264
265
|
})(AggregationType || {});
|
|
265
266
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|