@wix/auto_sdk_calendar_participations 1.0.41 → 1.0.43
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 +74 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +592 -50
- package/build/cjs/index.typings.js +74 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +589 -1
- package/build/cjs/meta.js +74 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +65 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +592 -50
- package/build/es/index.typings.mjs +65 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +589 -1
- package/build/es/meta.mjs +65 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +74 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +592 -50
- package/build/internal/cjs/index.typings.js +74 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +589 -1
- package/build/internal/cjs/meta.js +74 -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 +65 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +592 -50
- package/build/internal/es/index.typings.mjs +65 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +589 -1
- package/build/internal/es/meta.mjs +65 -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, BaseEventMetadata, CommonQueryWithEntityContext, CreateParticipationRequest, CreateParticipationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteParticipationRequest, DeleteParticipationResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetParticipationRequest, GetParticipationResponse, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, Participant, ParticipationParticipatedItemOneOf, ParticipationQuerySpec, ParticipationsQueryResult, PartySizeSumByScheduleId, QueryParticipationsRequest, QueryParticipationsResponse, RestoreInfo, Status, StatusWithLiterals, SumParticipationsPartySizeByScheduleIdRequest, SumParticipationsPartySizeByScheduleIdResponse, UpdateParticipationRequest, UpdateParticipationResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, Aggregation, AggregationData, AggregationKindOneOf, AggregationResults, AggregationResultsResultOneOf, AggregationResultsScalarDateResult, AggregationResultsScalarResult, AggregationType, AggregationTypeWithLiterals, BaseEventMetadata, CommonCursorPaging, CommonCursorPagingMetadata, CommonCursors, CommonQueryWithEntityContext, CreateParticipationRequest, CreateParticipationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, CursorSearch, CursorSearchPagingMethodOneOf, Cursors, DateHistogramAggregation, DateHistogramResult, DateHistogramResults, DeleteParticipationRequest, DeleteParticipationResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetParticipationRequest, GetParticipationResponse, GroupByAggregation, GroupByAggregationKindOneOf, GroupByValueResults, IdentificationData, IdentificationDataIdOneOf, IncludeMissingValuesOptions, Interval, IntervalWithLiterals, MessageEnvelope, MissingValues, MissingValuesWithLiterals, Mode, ModeWithLiterals, NestedAggregation, NestedAggregationItem, NestedAggregationItemKindOneOf, NestedAggregationResults, NestedAggregationResultsResultOneOf, NestedAggregationType, NestedAggregationTypeWithLiterals, NestedResultValue, NestedResultValueResultOneOf, NestedResults, NestedValueAggregationResult, Participant, ParticipationParticipatedItemOneOf, ParticipationQuerySpec, ParticipationsQueryResult, PartySizeSumByScheduleId, QueryParticipationsRequest, QueryParticipationsResponse, RangeAggregation, RangeAggregationResult, RangeBucket, RangeResult, RangeResults, RestoreInfo, Results, ScalarAggregation, ScalarDateResult, ScalarResult, ScalarType, ScalarTypeWithLiterals, SearchDetails, SearchParticipationsRequest, SearchParticipationsResponse, SortDirection, SortDirectionWithLiterals, SortOrder, SortOrderWithLiterals, SortType, SortTypeWithLiterals, Sorting, Status, StatusWithLiterals, SumParticipationsPartySizeByScheduleIdRequest, SumParticipationsPartySizeByScheduleIdResponse, UpdateParticipationRequest, UpdateParticipationResponse, ValueAggregation, ValueAggregationOptionsOneOf, 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
|
@@ -20,6 +20,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
AggregationType: () => AggregationType,
|
|
24
|
+
Interval: () => Interval,
|
|
25
|
+
MissingValues: () => MissingValues,
|
|
26
|
+
Mode: () => Mode,
|
|
27
|
+
NestedAggregationType: () => NestedAggregationType,
|
|
28
|
+
ScalarType: () => ScalarType,
|
|
29
|
+
SortDirection: () => SortDirection,
|
|
30
|
+
SortOrder: () => SortOrder,
|
|
31
|
+
SortType: () => SortType,
|
|
23
32
|
Status: () => Status,
|
|
24
33
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
25
34
|
createParticipation: () => createParticipation4,
|
|
@@ -242,6 +251,62 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
242
251
|
Status2["PENDING_CONFIRMATION"] = "PENDING_CONFIRMATION";
|
|
243
252
|
return Status2;
|
|
244
253
|
})(Status || {});
|
|
254
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
255
|
+
SortOrder2["ASC"] = "ASC";
|
|
256
|
+
SortOrder2["DESC"] = "DESC";
|
|
257
|
+
return SortOrder2;
|
|
258
|
+
})(SortOrder || {});
|
|
259
|
+
var SortType = /* @__PURE__ */ ((SortType2) => {
|
|
260
|
+
SortType2["COUNT"] = "COUNT";
|
|
261
|
+
SortType2["VALUE"] = "VALUE";
|
|
262
|
+
return SortType2;
|
|
263
|
+
})(SortType || {});
|
|
264
|
+
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
|
|
265
|
+
SortDirection2["DESC"] = "DESC";
|
|
266
|
+
SortDirection2["ASC"] = "ASC";
|
|
267
|
+
return SortDirection2;
|
|
268
|
+
})(SortDirection || {});
|
|
269
|
+
var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
|
|
270
|
+
MissingValues2["EXCLUDE"] = "EXCLUDE";
|
|
271
|
+
MissingValues2["INCLUDE"] = "INCLUDE";
|
|
272
|
+
return MissingValues2;
|
|
273
|
+
})(MissingValues || {});
|
|
274
|
+
var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
|
|
275
|
+
ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
|
|
276
|
+
ScalarType2["MIN"] = "MIN";
|
|
277
|
+
ScalarType2["MAX"] = "MAX";
|
|
278
|
+
return ScalarType2;
|
|
279
|
+
})(ScalarType || {});
|
|
280
|
+
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
|
|
281
|
+
NestedAggregationType2["VALUE"] = "VALUE";
|
|
282
|
+
NestedAggregationType2["RANGE"] = "RANGE";
|
|
283
|
+
NestedAggregationType2["SCALAR"] = "SCALAR";
|
|
284
|
+
NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
285
|
+
return NestedAggregationType2;
|
|
286
|
+
})(NestedAggregationType || {});
|
|
287
|
+
var Interval = /* @__PURE__ */ ((Interval2) => {
|
|
288
|
+
Interval2["YEAR"] = "YEAR";
|
|
289
|
+
Interval2["MONTH"] = "MONTH";
|
|
290
|
+
Interval2["WEEK"] = "WEEK";
|
|
291
|
+
Interval2["DAY"] = "DAY";
|
|
292
|
+
Interval2["HOUR"] = "HOUR";
|
|
293
|
+
Interval2["MINUTE"] = "MINUTE";
|
|
294
|
+
Interval2["SECOND"] = "SECOND";
|
|
295
|
+
return Interval2;
|
|
296
|
+
})(Interval || {});
|
|
297
|
+
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
298
|
+
AggregationType2["VALUE"] = "VALUE";
|
|
299
|
+
AggregationType2["RANGE"] = "RANGE";
|
|
300
|
+
AggregationType2["SCALAR"] = "SCALAR";
|
|
301
|
+
AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
302
|
+
AggregationType2["NESTED"] = "NESTED";
|
|
303
|
+
return AggregationType2;
|
|
304
|
+
})(AggregationType || {});
|
|
305
|
+
var Mode = /* @__PURE__ */ ((Mode2) => {
|
|
306
|
+
Mode2["OR"] = "OR";
|
|
307
|
+
Mode2["AND"] = "AND";
|
|
308
|
+
return Mode2;
|
|
309
|
+
})(Mode || {});
|
|
245
310
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
246
311
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
247
312
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -553,6 +618,15 @@ var onParticipationUpdated2 = (0, import_event_definition_modules.createEventMod
|
|
|
553
618
|
);
|
|
554
619
|
// Annotate the CommonJS export names for ESM import in node:
|
|
555
620
|
0 && (module.exports = {
|
|
621
|
+
AggregationType,
|
|
622
|
+
Interval,
|
|
623
|
+
MissingValues,
|
|
624
|
+
Mode,
|
|
625
|
+
NestedAggregationType,
|
|
626
|
+
ScalarType,
|
|
627
|
+
SortDirection,
|
|
628
|
+
SortOrder,
|
|
629
|
+
SortType,
|
|
556
630
|
Status,
|
|
557
631
|
WebhookIdentityType,
|
|
558
632
|
createParticipation,
|
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 BaseEventMetadata,\n CreateParticipationOptions,\n CreateParticipationRequest,\n CreateParticipationResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\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 IdentificationData,\n IdentificationDataIdOneOf,\n MessageEnvelope,\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 RestoreInfo,\n Status,\n SumParticipationsPartySizeByScheduleIdRequest,\n SumParticipationsPartySizeByScheduleIdResponse,\n UpdateParticipation,\n UpdateParticipationRequest,\n UpdateParticipationResponse,\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 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:\n | 'scheduleId'\n | 'eventId'\n | 'externalId'\n | 'participant.contactId'\n | 'partySize'\n | 'status'\n | 'appId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => ParticipationsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n ne: (\n propertyName: 'partySize' | '_createdDate' | '_updatedDate',\n value: any\n ) => ParticipationsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n ge: (\n propertyName: 'partySize' | '_createdDate' | '_updatedDate',\n value: any\n ) => ParticipationsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n gt: (\n propertyName: 'partySize' | '_createdDate' | '_updatedDate',\n value: any\n ) => ParticipationsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n le: (\n propertyName: 'partySize' | '_createdDate' | '_updatedDate',\n value: any\n ) => ParticipationsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n lt: (\n propertyName: 'partySize' | '_createdDate' | '_updatedDate',\n value: any\n ) => ParticipationsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n */\n hasSome: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any[]\n ) => ParticipationsQueryBuilder;\n in: (\n propertyName:\n | 'scheduleId'\n | 'eventId'\n | '_id'\n | 'externalId'\n | 'participant.contactId'\n | 'status'\n | 'appId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => ParticipationsQueryBuilder;\n exists: (\n propertyName: '_createdDate' | '_updatedDate',\n value: boolean\n ) => ParticipationsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n ascending: (\n ...propertyNames: Array<'_createdDate' | '_updatedDate'>\n ) => ParticipationsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n descending: (\n ...propertyNames: Array<'_createdDate' | '_updatedDate'>\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: [\n 'appId',\n 'eventId',\n 'externalId',\n 'participant.contactId',\n 'scheduleId',\n 'status'\n ];\n operators: ['$eq', '$in'];\n sort: 'NONE';\n },\n {\n fields: ['partySize'];\n operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];\n sort: 'NONE';\n },\n {\n fields: ['_createdDate', '_updatedDate'];\n operators: '*';\n sort: 'BOTH';\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 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 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 WebhookIdentityTypeWithLiterals,\n CommonQueryWithEntityContext,\n ParticipationQuery,\n} from './calendar-v3-participation-participations.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;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,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,iBAAiB,SAA6C;AAC5E,WAAS,mBAAmB,EAAE,KAAK,GAAQ;AACzC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,Q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QACE,wCAAe,OAAO;AAAA,MACpB;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,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","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 Aggregation,\n AggregationData,\n AggregationKindOneOf,\n AggregationResults,\n AggregationResultsResultOneOf,\n AggregationResultsScalarDateResult,\n AggregationResultsScalarResult,\n AggregationType,\n BaseEventMetadata,\n CommonCursorPaging,\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 DateHistogramAggregation,\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 GroupByAggregation,\n GroupByAggregationKindOneOf,\n GroupByValueResults,\n IdentificationData,\n IdentificationDataIdOneOf,\n IncludeMissingValuesOptions,\n Interval,\n MessageEnvelope,\n MissingValues,\n Mode,\n NestedAggregation,\n NestedAggregationItem,\n NestedAggregationItemKindOneOf,\n NestedAggregationResults,\n NestedAggregationResultsResultOneOf,\n NestedAggregationType,\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 RangeAggregation,\n RangeAggregationResult,\n RangeBucket,\n RangeResult,\n RangeResults,\n RestoreInfo,\n Results,\n ScalarAggregation,\n ScalarDateResult,\n ScalarResult,\n ScalarType,\n SearchDetails,\n SearchParticipationsRequest,\n SearchParticipationsResponse,\n SortDirection,\n SortOrder,\n SortType,\n Sorting,\n Status,\n SumParticipationsPartySizeByScheduleIdRequest,\n SumParticipationsPartySizeByScheduleIdResponse,\n UpdateParticipation,\n UpdateParticipationRequest,\n UpdateParticipationResponse,\n ValueAggregation,\n ValueAggregationOptionsOneOf,\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 paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CommonCursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * List of sort objects.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n * @maxSize 10\n */\n sort?: Sorting[];\n /**\n * Logical groupings of data into facets, with summaries for each facet. For example, use aggregations to allow site visitors to narrow down their search results by selecting specific categories.\n * @maxSize 10\n */\n aggregations?: Aggregation[];\n /** Free text to match in searchable fields. */\n search?: SearchDetails;\n /**\n * Time zone to adjust date-time-based filters and aggregations, in ISO 8601 (including offsets) or IANA time zone database (including time zone IDs) format.\n * Applies to all relevant filters and aggregations, unless overridden by providing timestamps including time zone. For example, \"2023-12-20T10:52:34.795Z\".\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\n/** @oneof */\nexport interface CursorSearchPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CommonCursorPaging;\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 Aggregation extends AggregationKindOneOf {\n /** A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of products for each price listed in the store. */\n value?: ValueAggregation;\n /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */\n range?: RangeAggregation;\n /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n scalar?: ScalarAggregation;\n /** A date histogram 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.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */\n dateHistogram?: DateHistogramAggregation;\n /** A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy. For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`. */\n nested?: NestedAggregation;\n /**\n * Aggregation name, returned in `aggregations.results.name`.\n * @maxLength 100\n */\n name?: string | null;\n /** Type of aggregation to perform. 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 * Deprecated. Use `nested` instead.\n * @deprecated Deprecated. Use `nested` instead.\n * @replacedBy kind.nested\n * @targetRemovalDate 2024-03-30\n */\n groupBy?: GroupByAggregation;\n}\n\n/** @oneof */\nexport interface AggregationKindOneOf {\n /** A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of products for each price listed in the store. */\n value?: ValueAggregation;\n /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */\n range?: RangeAggregation;\n /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n scalar?: ScalarAggregation;\n /** A date histogram 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.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */\n dateHistogram?: DateHistogramAggregation;\n /** A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy. For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`. */\n nested?: NestedAggregation;\n}\n\nexport interface RangeBucket {\n /** Inclusive lower bound of the range. Required if `to` is not provided. */\n from?: number | null;\n /** Exclusive upper bound of the range. Required if `from` is not provided. */\n to?: number | null;\n}\n\nexport enum SortType {\n /** Number of matches in the results. */\n COUNT = 'COUNT',\n /** Alphabetically by the field value. */\n VALUE = 'VALUE',\n}\n\n/** @enumType */\nexport type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';\n\nexport enum SortDirection {\n /** Descending order. */\n DESC = 'DESC',\n /** Ascending order. */\n ASC = 'ASC',\n}\n\n/** @enumType */\nexport type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';\n\nexport enum MissingValues {\n /** Exclude missing values from the aggregation results. */\n EXCLUDE = 'EXCLUDE',\n /** Include missing values in the aggregation results. */\n INCLUDE = 'INCLUDE',\n}\n\n/** @enumType */\nexport type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';\n\nexport interface IncludeMissingValuesOptions {\n /**\n * Specify a custom name for the bucket containing the missing values. Defaults are `\"N/A\"` for strings, `0` for integers, and `false` for booleans.\n * @maxLength 20\n */\n addToBucket?: string;\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 ValueAggregation extends ValueAggregationOptionsOneOf {\n /** Options for including missing values in results. */\n includeOptions?: IncludeMissingValuesOptions;\n /** Sort type. */\n sortType?: SortTypeWithLiterals;\n /** Sort direction. */\n sortDirection?: SortDirectionWithLiterals;\n /**\n * Number of aggregation results to return.\n * Min: `1`\n * Max: `250`\n * Default: `10`\n */\n limit?: number | null;\n /**\n * Whether to include or exclude missing values in the aggregation results.\n * Default: `EXCLUDE`.\n */\n missingValues?: MissingValuesWithLiterals;\n}\n\n/** @oneof */\nexport interface ValueAggregationOptionsOneOf {\n /** Options for including missing values in results. */\n includeOptions?: IncludeMissingValuesOptions;\n}\n\nexport enum NestedAggregationType {\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}\n\n/** @enumType */\nexport type NestedAggregationTypeWithLiterals =\n | NestedAggregationType\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM';\n\nexport interface RangeAggregation {\n /**\n * List of range buckets. During aggregation each entity is placed in the first bucket its value falls into, based on the provided range bounds.\n * @maxSize 50\n */\n buckets?: RangeBucket[];\n}\n\nexport interface ScalarAggregation {\n /** Operator type for the scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n}\n\nexport interface DateHistogramAggregation {\n /** Interval for date histogram aggregation. */\n interval?: IntervalWithLiterals;\n}\n\nexport enum Interval {\n YEAR = 'YEAR',\n MONTH = 'MONTH',\n WEEK = 'WEEK',\n DAY = 'DAY',\n HOUR = 'HOUR',\n MINUTE = 'MINUTE',\n SECOND = 'SECOND',\n}\n\n/** @enumType */\nexport type IntervalWithLiterals =\n | Interval\n | 'YEAR'\n | 'MONTH'\n | 'WEEK'\n | 'DAY'\n | 'HOUR'\n | 'MINUTE'\n | 'SECOND';\n\nexport interface NestedAggregationItem extends NestedAggregationItemKindOneOf {\n /** A value aggregation calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of orders for each order status. */\n value?: ValueAggregation;\n /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */\n range?: RangeAggregation;\n /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n scalar?: ScalarAggregation;\n /** A date histogram 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.). For example, use a date histogram to determine how many reservations have been made at a restaurant each week. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */\n dateHistogram?: DateHistogramAggregation;\n /**\n * Unique, caller-defined aggregation name, returned in `aggregations.results`.\n * @maxLength 100\n */\n name?: string | null;\n /** Type of aggregation to perform. The matching aggregation field must be passed. */\n type?: NestedAggregationTypeWithLiterals;\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 NestedAggregationItemKindOneOf {\n /** A value aggregation calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of orders for each order status. */\n value?: ValueAggregation;\n /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */\n range?: RangeAggregation;\n /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n scalar?: ScalarAggregation;\n /** A date histogram 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.). For example, use a date histogram to determine how many reservations have been made at a restaurant each week. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */\n dateHistogram?: DateHistogramAggregation;\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\n/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */\nexport interface NestedAggregation {\n /**\n * Flattened list of aggregations, where each aggregation is nested within previous one.\n * @minSize 2\n * @maxSize 3\n */\n nestedAggregations?: NestedAggregationItem[];\n}\n\nexport interface GroupByAggregation extends GroupByAggregationKindOneOf {\n /** Value aggregation configuration. */\n value?: ValueAggregation;\n /**\n * Unique, caller-defined aggregation name, returned in `aggregations.results`.\n * @maxLength 100\n */\n name?: string | null;\n /**\n * Field to aggregate by.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface GroupByAggregationKindOneOf {\n /** Value aggregation configuration. */\n value?: ValueAggregation;\n}\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. For example, `order.address.streetName`.\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 one 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 CommonCursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\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 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 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 SortType,\n SortDirection,\n MissingValues,\n ScalarType,\n NestedAggregationType,\n Interval,\n AggregationType,\n Mode,\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 Aggregation,\n AggregationKindOneOf,\n RangeBucket,\n IncludeMissingValuesOptions,\n ValueAggregation,\n ValueAggregationOptionsOneOf,\n RangeAggregation,\n ScalarAggregation,\n DateHistogramAggregation,\n NestedAggregationItem,\n NestedAggregationItemKindOneOf,\n NestedAggregation,\n GroupByAggregation,\n GroupByAggregationKindOneOf,\n SearchDetails,\n CommonCursorPaging,\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 SortTypeWithLiterals,\n SortDirectionWithLiterals,\n MissingValuesWithLiterals,\n ScalarTypeWithLiterals,\n NestedAggregationTypeWithLiterals,\n IntervalWithLiterals,\n AggregationTypeWithLiterals,\n ModeWithLiterals,\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;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,EA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vC,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","SortType","SortDirection","MissingValues","ScalarType","NestedAggregationType","Interval","AggregationType","Mode","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"]}
|