@wix/auto_sdk_calendar_participations 1.0.24 → 1.0.25
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/meta.d.ts +160 -1
- package/build/cjs/meta.js +19 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/meta.d.mts +160 -1
- package/build/es/meta.mjs +17 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/meta.d.ts +160 -1
- package/build/internal/cjs/meta.js +19 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/meta.d.mts +160 -1
- package/build/internal/es/meta.mjs +17 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.d.ts
CHANGED
|
@@ -256,6 +256,165 @@ interface DeleteParticipationRequest {
|
|
|
256
256
|
}
|
|
257
257
|
interface DeleteParticipationResponse {
|
|
258
258
|
}
|
|
259
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
260
|
+
createdEvent?: EntityCreatedEvent;
|
|
261
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
262
|
+
deletedEvent?: EntityDeletedEvent;
|
|
263
|
+
actionEvent?: ActionEvent;
|
|
264
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
265
|
+
id?: string;
|
|
266
|
+
/**
|
|
267
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
268
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
269
|
+
*/
|
|
270
|
+
entityFqdn?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
273
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
274
|
+
*/
|
|
275
|
+
slug?: string;
|
|
276
|
+
/** ID of the entity associated with the event. */
|
|
277
|
+
entityId?: string;
|
|
278
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
279
|
+
eventTime?: Date | null;
|
|
280
|
+
/**
|
|
281
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
282
|
+
* (for example, GDPR).
|
|
283
|
+
*/
|
|
284
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
285
|
+
/** If present, indicates the action that triggered the event. */
|
|
286
|
+
originatedFrom?: string | null;
|
|
287
|
+
/**
|
|
288
|
+
* 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.
|
|
289
|
+
* 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.
|
|
290
|
+
*/
|
|
291
|
+
entityEventSequence?: string | null;
|
|
292
|
+
}
|
|
293
|
+
/** @oneof */
|
|
294
|
+
interface DomainEventBodyOneOf {
|
|
295
|
+
createdEvent?: EntityCreatedEvent;
|
|
296
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
297
|
+
deletedEvent?: EntityDeletedEvent;
|
|
298
|
+
actionEvent?: ActionEvent;
|
|
299
|
+
}
|
|
300
|
+
interface EntityCreatedEvent {
|
|
301
|
+
entityAsJson?: string;
|
|
302
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
303
|
+
restoreInfo?: RestoreInfo;
|
|
304
|
+
}
|
|
305
|
+
interface RestoreInfo {
|
|
306
|
+
deletedDate?: Date | null;
|
|
307
|
+
}
|
|
308
|
+
interface EntityUpdatedEvent {
|
|
309
|
+
/**
|
|
310
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
311
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
312
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
313
|
+
*/
|
|
314
|
+
currentEntityAsJson?: string;
|
|
315
|
+
}
|
|
316
|
+
interface EntityDeletedEvent {
|
|
317
|
+
/** Entity that was deleted. */
|
|
318
|
+
deletedEntityAsJson?: string | null;
|
|
319
|
+
}
|
|
320
|
+
interface ActionEvent {
|
|
321
|
+
bodyAsJson?: string;
|
|
322
|
+
}
|
|
323
|
+
interface Empty {
|
|
324
|
+
}
|
|
325
|
+
interface SumParticipationsPartySizeByScheduleIdRequest {
|
|
326
|
+
/**
|
|
327
|
+
* The schedule IDs.
|
|
328
|
+
* @format GUID
|
|
329
|
+
* @maxSize 100
|
|
330
|
+
*/
|
|
331
|
+
scheduleIds?: string[] | null;
|
|
332
|
+
}
|
|
333
|
+
interface SumParticipationsPartySizeByScheduleIdResponse {
|
|
334
|
+
/** The sum of party size by schedule ID. */
|
|
335
|
+
partySizeSumByScheduleId?: PartySizeSumByScheduleId[];
|
|
336
|
+
}
|
|
337
|
+
interface PartySizeSumByScheduleId {
|
|
338
|
+
/**
|
|
339
|
+
* The ID of the schedule.
|
|
340
|
+
* @format GUID
|
|
341
|
+
*/
|
|
342
|
+
scheduleId?: string | null;
|
|
343
|
+
/** The sum of the participations party size. */
|
|
344
|
+
partySizeSum?: number | null;
|
|
345
|
+
}
|
|
346
|
+
interface MessageEnvelope {
|
|
347
|
+
/**
|
|
348
|
+
* App instance ID.
|
|
349
|
+
* @format GUID
|
|
350
|
+
*/
|
|
351
|
+
instanceId?: string | null;
|
|
352
|
+
/**
|
|
353
|
+
* Event type.
|
|
354
|
+
* @maxLength 150
|
|
355
|
+
*/
|
|
356
|
+
eventType?: string;
|
|
357
|
+
/** The identification type and identity data. */
|
|
358
|
+
identity?: IdentificationData;
|
|
359
|
+
/** Stringify payload. */
|
|
360
|
+
data?: string;
|
|
361
|
+
}
|
|
362
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
363
|
+
/**
|
|
364
|
+
* ID of a site visitor that has not logged in to the site.
|
|
365
|
+
* @format GUID
|
|
366
|
+
*/
|
|
367
|
+
anonymousVisitorId?: string;
|
|
368
|
+
/**
|
|
369
|
+
* ID of a site visitor that has logged in to the site.
|
|
370
|
+
* @format GUID
|
|
371
|
+
*/
|
|
372
|
+
memberId?: string;
|
|
373
|
+
/**
|
|
374
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
375
|
+
* @format GUID
|
|
376
|
+
*/
|
|
377
|
+
wixUserId?: string;
|
|
378
|
+
/**
|
|
379
|
+
* ID of an app.
|
|
380
|
+
* @format GUID
|
|
381
|
+
*/
|
|
382
|
+
appId?: string;
|
|
383
|
+
/** @readonly */
|
|
384
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
385
|
+
}
|
|
386
|
+
/** @oneof */
|
|
387
|
+
interface IdentificationDataIdOneOf {
|
|
388
|
+
/**
|
|
389
|
+
* ID of a site visitor that has not logged in to the site.
|
|
390
|
+
* @format GUID
|
|
391
|
+
*/
|
|
392
|
+
anonymousVisitorId?: string;
|
|
393
|
+
/**
|
|
394
|
+
* ID of a site visitor that has logged in to the site.
|
|
395
|
+
* @format GUID
|
|
396
|
+
*/
|
|
397
|
+
memberId?: string;
|
|
398
|
+
/**
|
|
399
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
400
|
+
* @format GUID
|
|
401
|
+
*/
|
|
402
|
+
wixUserId?: string;
|
|
403
|
+
/**
|
|
404
|
+
* ID of an app.
|
|
405
|
+
* @format GUID
|
|
406
|
+
*/
|
|
407
|
+
appId?: string;
|
|
408
|
+
}
|
|
409
|
+
declare enum WebhookIdentityType {
|
|
410
|
+
UNKNOWN = "UNKNOWN",
|
|
411
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
412
|
+
MEMBER = "MEMBER",
|
|
413
|
+
WIX_USER = "WIX_USER",
|
|
414
|
+
APP = "APP"
|
|
415
|
+
}
|
|
416
|
+
/** @enumType */
|
|
417
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
259
418
|
|
|
260
419
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
261
420
|
getUrl: (context: any) => string;
|
|
@@ -279,4 +438,4 @@ declare function deleteParticipation(): __PublicMethodMetaInfo<'DELETE', {
|
|
|
279
438
|
participationId: string;
|
|
280
439
|
}, DeleteParticipationRequest$1, DeleteParticipationRequest, DeleteParticipationResponse$1, DeleteParticipationResponse>;
|
|
281
440
|
|
|
282
|
-
export { type __PublicMethodMetaInfo, createParticipation, deleteParticipation, getParticipation, queryParticipations, updateParticipation };
|
|
441
|
+
export { type ActionEvent as ActionEventOriginal, type CreateParticipationRequest as CreateParticipationRequestOriginal, type CreateParticipationResponse as CreateParticipationResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteParticipationRequest as DeleteParticipationRequestOriginal, type DeleteParticipationResponse as DeleteParticipationResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetParticipationRequest as GetParticipationRequestOriginal, type GetParticipationResponse as GetParticipationResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Participant as ParticipantOriginal, type Participation as ParticipationOriginal, type ParticipationParticipatedItemOneOf as ParticipationParticipatedItemOneOfOriginal, type PartySizeSumByScheduleId as PartySizeSumByScheduleIdOriginal, type QueryParticipationsRequest as QueryParticipationsRequestOriginal, type QueryParticipationsResponse as QueryParticipationsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SumParticipationsPartySizeByScheduleIdRequest as SumParticipationsPartySizeByScheduleIdRequestOriginal, type SumParticipationsPartySizeByScheduleIdResponse as SumParticipationsPartySizeByScheduleIdResponseOriginal, type UpdateParticipationRequest as UpdateParticipationRequestOriginal, type UpdateParticipationResponse as UpdateParticipationResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createParticipation, deleteParticipation, getParticipation, queryParticipations, updateParticipation };
|
package/build/cjs/meta.js
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
StatusOriginal: () => Status,
|
|
24
|
+
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
23
25
|
createParticipation: () => createParticipation2,
|
|
24
26
|
deleteParticipation: () => deleteParticipation2,
|
|
25
27
|
getParticipation: () => getParticipation2,
|
|
@@ -217,6 +219,21 @@ function deleteParticipation(payload) {
|
|
|
217
219
|
return __deleteParticipation;
|
|
218
220
|
}
|
|
219
221
|
|
|
222
|
+
// src/calendar-v3-participation-participations.types.ts
|
|
223
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
224
|
+
Status2["CONFIRMED"] = "CONFIRMED";
|
|
225
|
+
Status2["PENDING_CONFIRMATION"] = "PENDING_CONFIRMATION";
|
|
226
|
+
return Status2;
|
|
227
|
+
})(Status || {});
|
|
228
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
229
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
230
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
231
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
232
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
233
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
234
|
+
return WebhookIdentityType2;
|
|
235
|
+
})(WebhookIdentityType || {});
|
|
236
|
+
|
|
220
237
|
// src/calendar-v3-participation-participations.meta.ts
|
|
221
238
|
function getParticipation2() {
|
|
222
239
|
const payload = { participationId: ":participationId" };
|
|
@@ -310,6 +327,8 @@ function deleteParticipation2() {
|
|
|
310
327
|
}
|
|
311
328
|
// Annotate the CommonJS export names for ESM import in node:
|
|
312
329
|
0 && (module.exports = {
|
|
330
|
+
StatusOriginal,
|
|
331
|
+
WebhookIdentityTypeOriginal,
|
|
313
332
|
createParticipation,
|
|
314
333
|
deleteParticipation,
|
|
315
334
|
getParticipation,
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/calendar-v3-participation-participations.http.ts","../../src/calendar-v3-participation-participations.meta.ts"],"sourcesContent":["export * from './src/calendar-v3-participation-participations.meta.js';\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 * as ambassadorWixCalendarV3Participation from './calendar-v3-participation-participations.http.js';\nimport * as ambassadorWixCalendarV3ParticipationTypes from './calendar-v3-participation-participations.types.js';\nimport * as ambassadorWixCalendarV3ParticipationUniversalTypes from './calendar-v3-participation-participations.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getParticipation(): __PublicMethodMetaInfo<\n 'GET',\n { participationId: string },\n ambassadorWixCalendarV3ParticipationUniversalTypes.GetParticipationRequest,\n ambassadorWixCalendarV3ParticipationTypes.GetParticipationRequest,\n ambassadorWixCalendarV3ParticipationUniversalTypes.GetParticipationResponse,\n ambassadorWixCalendarV3ParticipationTypes.GetParticipationResponse\n> {\n const payload = { participationId: ':participationId' } as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Participation.getParticipation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/participations/{participationId}',\n pathParams: { participationId: 'participationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryParticipations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCalendarV3ParticipationUniversalTypes.QueryParticipationsRequest,\n ambassadorWixCalendarV3ParticipationTypes.QueryParticipationsRequest,\n ambassadorWixCalendarV3ParticipationUniversalTypes.QueryParticipationsResponse,\n ambassadorWixCalendarV3ParticipationTypes.QueryParticipationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Participation.queryParticipations(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/participations/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createParticipation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCalendarV3ParticipationUniversalTypes.CreateParticipationRequest,\n ambassadorWixCalendarV3ParticipationTypes.CreateParticipationRequest,\n ambassadorWixCalendarV3ParticipationUniversalTypes.CreateParticipationResponse,\n ambassadorWixCalendarV3ParticipationTypes.CreateParticipationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Participation.createParticipation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/participations',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateParticipation(): __PublicMethodMetaInfo<\n 'PATCH',\n { participationId: string },\n ambassadorWixCalendarV3ParticipationUniversalTypes.UpdateParticipationRequest,\n ambassadorWixCalendarV3ParticipationTypes.UpdateParticipationRequest,\n ambassadorWixCalendarV3ParticipationUniversalTypes.UpdateParticipationResponse,\n ambassadorWixCalendarV3ParticipationTypes.UpdateParticipationResponse\n> {\n const payload = { participation: { id: ':participationId' } } as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Participation.updateParticipation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v3/participations/{participation.id}',\n pathParams: { participationId: 'participationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteParticipation(): __PublicMethodMetaInfo<\n 'DELETE',\n { participationId: string },\n ambassadorWixCalendarV3ParticipationUniversalTypes.DeleteParticipationRequest,\n ambassadorWixCalendarV3ParticipationTypes.DeleteParticipationRequest,\n ambassadorWixCalendarV3ParticipationUniversalTypes.DeleteParticipationResponse,\n ambassadorWixCalendarV3ParticipationTypes.DeleteParticipationResponse\n> {\n const payload = { participationId: ':participationId' } as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Participation.deleteParticipation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v3/participations/{participationId}',\n pathParams: { participationId: 'participationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,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,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK,2DAA2D;AAAA,QAC9D,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,YAAQ,uCAAkB,OAAO;AAAA,MACjC,mBAAmB,CAACC,iBAClB,uCAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,4BAA4B;AAAA,YACpC,EAAE,MAAM,4BAA4B;AAAA,UACtC;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACL;AAEA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AAI,mBAAmB,EAAE;AAE5D,QAAM,oBACiC,oBAAoB,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,iBAAiB,kBAAkB;AAAA,IACjD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,EAAE,iBAAiB,mBAAmB;AAEtD,QAAM,oBACiC,oBAAoB,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,iBAAiB,kBAAkB;AAAA,IACjD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createParticipation","deleteParticipation","getParticipation","queryParticipations","updateParticipation","import_timestamp","import_rest_modules","payload","getParticipation","queryParticipations","createParticipation","updateParticipation","deleteParticipation"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/calendar-v3-participation-participations.http.ts","../../src/calendar-v3-participation-participations.types.ts","../../src/calendar-v3-participation-participations.meta.ts"],"sourcesContent":["export * from './src/calendar-v3-participation-participations.meta.js';\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","/**\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/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\n * ID of the parcipant.\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 entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: 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}\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","import * as ambassadorWixCalendarV3Participation from './calendar-v3-participation-participations.http.js';\nimport * as ambassadorWixCalendarV3ParticipationTypes from './calendar-v3-participation-participations.types.js';\nimport * as ambassadorWixCalendarV3ParticipationUniversalTypes from './calendar-v3-participation-participations.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getParticipation(): __PublicMethodMetaInfo<\n 'GET',\n { participationId: string },\n ambassadorWixCalendarV3ParticipationUniversalTypes.GetParticipationRequest,\n ambassadorWixCalendarV3ParticipationTypes.GetParticipationRequest,\n ambassadorWixCalendarV3ParticipationUniversalTypes.GetParticipationResponse,\n ambassadorWixCalendarV3ParticipationTypes.GetParticipationResponse\n> {\n const payload = { participationId: ':participationId' } as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Participation.getParticipation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/participations/{participationId}',\n pathParams: { participationId: 'participationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryParticipations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCalendarV3ParticipationUniversalTypes.QueryParticipationsRequest,\n ambassadorWixCalendarV3ParticipationTypes.QueryParticipationsRequest,\n ambassadorWixCalendarV3ParticipationUniversalTypes.QueryParticipationsResponse,\n ambassadorWixCalendarV3ParticipationTypes.QueryParticipationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Participation.queryParticipations(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/participations/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createParticipation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCalendarV3ParticipationUniversalTypes.CreateParticipationRequest,\n ambassadorWixCalendarV3ParticipationTypes.CreateParticipationRequest,\n ambassadorWixCalendarV3ParticipationUniversalTypes.CreateParticipationResponse,\n ambassadorWixCalendarV3ParticipationTypes.CreateParticipationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Participation.createParticipation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/participations',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateParticipation(): __PublicMethodMetaInfo<\n 'PATCH',\n { participationId: string },\n ambassadorWixCalendarV3ParticipationUniversalTypes.UpdateParticipationRequest,\n ambassadorWixCalendarV3ParticipationTypes.UpdateParticipationRequest,\n ambassadorWixCalendarV3ParticipationUniversalTypes.UpdateParticipationResponse,\n ambassadorWixCalendarV3ParticipationTypes.UpdateParticipationResponse\n> {\n const payload = { participation: { id: ':participationId' } } as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Participation.updateParticipation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v3/participations/{participation.id}',\n pathParams: { participationId: 'participationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteParticipation(): __PublicMethodMetaInfo<\n 'DELETE',\n { participationId: string },\n ambassadorWixCalendarV3ParticipationUniversalTypes.DeleteParticipationRequest,\n ambassadorWixCalendarV3ParticipationTypes.DeleteParticipationRequest,\n ambassadorWixCalendarV3ParticipationUniversalTypes.DeleteParticipationResponse,\n ambassadorWixCalendarV3ParticipationTypes.DeleteParticipationResponse\n> {\n const payload = { participationId: ':participationId' } as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Participation.deleteParticipation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v3/participations/{participationId}',\n pathParams: { participationId: 'participationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Participation as ParticipationOriginal,\n ParticipationParticipatedItemOneOf as ParticipationParticipatedItemOneOfOriginal,\n Participant as ParticipantOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n GetParticipationRequest as GetParticipationRequestOriginal,\n GetParticipationResponse as GetParticipationResponseOriginal,\n QueryParticipationsRequest as QueryParticipationsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryParticipationsResponse as QueryParticipationsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n CreateParticipationRequest as CreateParticipationRequestOriginal,\n CreateParticipationResponse as CreateParticipationResponseOriginal,\n UpdateParticipationRequest as UpdateParticipationRequestOriginal,\n UpdateParticipationResponse as UpdateParticipationResponseOriginal,\n DeleteParticipationRequest as DeleteParticipationRequestOriginal,\n DeleteParticipationResponse as DeleteParticipationResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n SumParticipationsPartySizeByScheduleIdRequest as SumParticipationsPartySizeByScheduleIdRequestOriginal,\n SumParticipationsPartySizeByScheduleIdResponse as SumParticipationsPartySizeByScheduleIdResponseOriginal,\n PartySizeSumByScheduleId as PartySizeSumByScheduleIdOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n} from './calendar-v3-participation-participations.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;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M;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,EAAE,eAAe,EAAE,IAAI,mBAAmB,EAAE;AAE5D,QAAM,oBACiC,oBAAoB,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,iBAAiB,kBAAkB;AAAA,IACjD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,EAAE,iBAAiB,mBAAmB;AAEtD,QAAM,oBACiC,oBAAoB,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,iBAAiB,kBAAkB;AAAA,IACjD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createParticipation","deleteParticipation","getParticipation","queryParticipations","updateParticipation","import_timestamp","import_rest_modules","payload","Status","WebhookIdentityType","getParticipation","queryParticipations","createParticipation","updateParticipation","deleteParticipation"]}
|
package/build/es/meta.d.mts
CHANGED
|
@@ -256,6 +256,165 @@ interface DeleteParticipationRequest {
|
|
|
256
256
|
}
|
|
257
257
|
interface DeleteParticipationResponse {
|
|
258
258
|
}
|
|
259
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
260
|
+
createdEvent?: EntityCreatedEvent;
|
|
261
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
262
|
+
deletedEvent?: EntityDeletedEvent;
|
|
263
|
+
actionEvent?: ActionEvent;
|
|
264
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
265
|
+
id?: string;
|
|
266
|
+
/**
|
|
267
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
268
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
269
|
+
*/
|
|
270
|
+
entityFqdn?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
273
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
274
|
+
*/
|
|
275
|
+
slug?: string;
|
|
276
|
+
/** ID of the entity associated with the event. */
|
|
277
|
+
entityId?: string;
|
|
278
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
279
|
+
eventTime?: Date | null;
|
|
280
|
+
/**
|
|
281
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
282
|
+
* (for example, GDPR).
|
|
283
|
+
*/
|
|
284
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
285
|
+
/** If present, indicates the action that triggered the event. */
|
|
286
|
+
originatedFrom?: string | null;
|
|
287
|
+
/**
|
|
288
|
+
* 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.
|
|
289
|
+
* 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.
|
|
290
|
+
*/
|
|
291
|
+
entityEventSequence?: string | null;
|
|
292
|
+
}
|
|
293
|
+
/** @oneof */
|
|
294
|
+
interface DomainEventBodyOneOf {
|
|
295
|
+
createdEvent?: EntityCreatedEvent;
|
|
296
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
297
|
+
deletedEvent?: EntityDeletedEvent;
|
|
298
|
+
actionEvent?: ActionEvent;
|
|
299
|
+
}
|
|
300
|
+
interface EntityCreatedEvent {
|
|
301
|
+
entityAsJson?: string;
|
|
302
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
303
|
+
restoreInfo?: RestoreInfo;
|
|
304
|
+
}
|
|
305
|
+
interface RestoreInfo {
|
|
306
|
+
deletedDate?: Date | null;
|
|
307
|
+
}
|
|
308
|
+
interface EntityUpdatedEvent {
|
|
309
|
+
/**
|
|
310
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
311
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
312
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
313
|
+
*/
|
|
314
|
+
currentEntityAsJson?: string;
|
|
315
|
+
}
|
|
316
|
+
interface EntityDeletedEvent {
|
|
317
|
+
/** Entity that was deleted. */
|
|
318
|
+
deletedEntityAsJson?: string | null;
|
|
319
|
+
}
|
|
320
|
+
interface ActionEvent {
|
|
321
|
+
bodyAsJson?: string;
|
|
322
|
+
}
|
|
323
|
+
interface Empty {
|
|
324
|
+
}
|
|
325
|
+
interface SumParticipationsPartySizeByScheduleIdRequest {
|
|
326
|
+
/**
|
|
327
|
+
* The schedule IDs.
|
|
328
|
+
* @format GUID
|
|
329
|
+
* @maxSize 100
|
|
330
|
+
*/
|
|
331
|
+
scheduleIds?: string[] | null;
|
|
332
|
+
}
|
|
333
|
+
interface SumParticipationsPartySizeByScheduleIdResponse {
|
|
334
|
+
/** The sum of party size by schedule ID. */
|
|
335
|
+
partySizeSumByScheduleId?: PartySizeSumByScheduleId[];
|
|
336
|
+
}
|
|
337
|
+
interface PartySizeSumByScheduleId {
|
|
338
|
+
/**
|
|
339
|
+
* The ID of the schedule.
|
|
340
|
+
* @format GUID
|
|
341
|
+
*/
|
|
342
|
+
scheduleId?: string | null;
|
|
343
|
+
/** The sum of the participations party size. */
|
|
344
|
+
partySizeSum?: number | null;
|
|
345
|
+
}
|
|
346
|
+
interface MessageEnvelope {
|
|
347
|
+
/**
|
|
348
|
+
* App instance ID.
|
|
349
|
+
* @format GUID
|
|
350
|
+
*/
|
|
351
|
+
instanceId?: string | null;
|
|
352
|
+
/**
|
|
353
|
+
* Event type.
|
|
354
|
+
* @maxLength 150
|
|
355
|
+
*/
|
|
356
|
+
eventType?: string;
|
|
357
|
+
/** The identification type and identity data. */
|
|
358
|
+
identity?: IdentificationData;
|
|
359
|
+
/** Stringify payload. */
|
|
360
|
+
data?: string;
|
|
361
|
+
}
|
|
362
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
363
|
+
/**
|
|
364
|
+
* ID of a site visitor that has not logged in to the site.
|
|
365
|
+
* @format GUID
|
|
366
|
+
*/
|
|
367
|
+
anonymousVisitorId?: string;
|
|
368
|
+
/**
|
|
369
|
+
* ID of a site visitor that has logged in to the site.
|
|
370
|
+
* @format GUID
|
|
371
|
+
*/
|
|
372
|
+
memberId?: string;
|
|
373
|
+
/**
|
|
374
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
375
|
+
* @format GUID
|
|
376
|
+
*/
|
|
377
|
+
wixUserId?: string;
|
|
378
|
+
/**
|
|
379
|
+
* ID of an app.
|
|
380
|
+
* @format GUID
|
|
381
|
+
*/
|
|
382
|
+
appId?: string;
|
|
383
|
+
/** @readonly */
|
|
384
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
385
|
+
}
|
|
386
|
+
/** @oneof */
|
|
387
|
+
interface IdentificationDataIdOneOf {
|
|
388
|
+
/**
|
|
389
|
+
* ID of a site visitor that has not logged in to the site.
|
|
390
|
+
* @format GUID
|
|
391
|
+
*/
|
|
392
|
+
anonymousVisitorId?: string;
|
|
393
|
+
/**
|
|
394
|
+
* ID of a site visitor that has logged in to the site.
|
|
395
|
+
* @format GUID
|
|
396
|
+
*/
|
|
397
|
+
memberId?: string;
|
|
398
|
+
/**
|
|
399
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
400
|
+
* @format GUID
|
|
401
|
+
*/
|
|
402
|
+
wixUserId?: string;
|
|
403
|
+
/**
|
|
404
|
+
* ID of an app.
|
|
405
|
+
* @format GUID
|
|
406
|
+
*/
|
|
407
|
+
appId?: string;
|
|
408
|
+
}
|
|
409
|
+
declare enum WebhookIdentityType {
|
|
410
|
+
UNKNOWN = "UNKNOWN",
|
|
411
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
412
|
+
MEMBER = "MEMBER",
|
|
413
|
+
WIX_USER = "WIX_USER",
|
|
414
|
+
APP = "APP"
|
|
415
|
+
}
|
|
416
|
+
/** @enumType */
|
|
417
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
259
418
|
|
|
260
419
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
261
420
|
getUrl: (context: any) => string;
|
|
@@ -279,4 +438,4 @@ declare function deleteParticipation(): __PublicMethodMetaInfo<'DELETE', {
|
|
|
279
438
|
participationId: string;
|
|
280
439
|
}, DeleteParticipationRequest$1, DeleteParticipationRequest, DeleteParticipationResponse$1, DeleteParticipationResponse>;
|
|
281
440
|
|
|
282
|
-
export { type __PublicMethodMetaInfo, createParticipation, deleteParticipation, getParticipation, queryParticipations, updateParticipation };
|
|
441
|
+
export { type ActionEvent as ActionEventOriginal, type CreateParticipationRequest as CreateParticipationRequestOriginal, type CreateParticipationResponse as CreateParticipationResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteParticipationRequest as DeleteParticipationRequestOriginal, type DeleteParticipationResponse as DeleteParticipationResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetParticipationRequest as GetParticipationRequestOriginal, type GetParticipationResponse as GetParticipationResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Participant as ParticipantOriginal, type Participation as ParticipationOriginal, type ParticipationParticipatedItemOneOf as ParticipationParticipatedItemOneOfOriginal, type PartySizeSumByScheduleId as PartySizeSumByScheduleIdOriginal, type QueryParticipationsRequest as QueryParticipationsRequestOriginal, type QueryParticipationsResponse as QueryParticipationsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SumParticipationsPartySizeByScheduleIdRequest as SumParticipationsPartySizeByScheduleIdRequestOriginal, type SumParticipationsPartySizeByScheduleIdResponse as SumParticipationsPartySizeByScheduleIdResponseOriginal, type UpdateParticipationRequest as UpdateParticipationRequestOriginal, type UpdateParticipationResponse as UpdateParticipationResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createParticipation, deleteParticipation, getParticipation, queryParticipations, updateParticipation };
|
package/build/es/meta.mjs
CHANGED
|
@@ -187,6 +187,21 @@ function deleteParticipation(payload) {
|
|
|
187
187
|
return __deleteParticipation;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
// src/calendar-v3-participation-participations.types.ts
|
|
191
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
192
|
+
Status2["CONFIRMED"] = "CONFIRMED";
|
|
193
|
+
Status2["PENDING_CONFIRMATION"] = "PENDING_CONFIRMATION";
|
|
194
|
+
return Status2;
|
|
195
|
+
})(Status || {});
|
|
196
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
197
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
198
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
199
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
200
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
201
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
202
|
+
return WebhookIdentityType2;
|
|
203
|
+
})(WebhookIdentityType || {});
|
|
204
|
+
|
|
190
205
|
// src/calendar-v3-participation-participations.meta.ts
|
|
191
206
|
function getParticipation2() {
|
|
192
207
|
const payload = { participationId: ":participationId" };
|
|
@@ -279,6 +294,8 @@ function deleteParticipation2() {
|
|
|
279
294
|
};
|
|
280
295
|
}
|
|
281
296
|
export {
|
|
297
|
+
Status as StatusOriginal,
|
|
298
|
+
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
282
299
|
createParticipation2 as createParticipation,
|
|
283
300
|
deleteParticipation2 as deleteParticipation,
|
|
284
301
|
getParticipation2 as getParticipation,
|