@wix/auto_sdk_calendar_participations 1.0.0
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 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/calendar-v3-participation-participations.context.d.ts +25 -0
- package/build/cjs/src/calendar-v3-participation-participations.context.js +30 -0
- package/build/cjs/src/calendar-v3-participation-participations.context.js.map +1 -0
- package/build/cjs/src/calendar-v3-participation-participations.http.d.ts +29 -0
- package/build/cjs/src/calendar-v3-participation-participations.http.js +204 -0
- package/build/cjs/src/calendar-v3-participation-participations.http.js.map +1 -0
- package/build/cjs/src/calendar-v3-participation-participations.meta.d.ts +23 -0
- package/build/cjs/src/calendar-v3-participation-participations.meta.js +123 -0
- package/build/cjs/src/calendar-v3-participation-participations.meta.js.map +1 -0
- package/build/cjs/src/calendar-v3-participation-participations.public.d.ts +67 -0
- package/build/cjs/src/calendar-v3-participation-participations.public.js +73 -0
- package/build/cjs/src/calendar-v3-participation-participations.public.js.map +1 -0
- package/build/cjs/src/calendar-v3-participation-participations.types.d.ts +364 -0
- package/build/cjs/src/calendar-v3-participation-participations.types.js +19 -0
- package/build/cjs/src/calendar-v3-participation-participations.types.js.map +1 -0
- package/build/cjs/src/calendar-v3-participation-participations.universal.d.ts +674 -0
- package/build/cjs/src/calendar-v3-participation-participations.universal.js +291 -0
- package/build/cjs/src/calendar-v3-participation-participations.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/calendar-v3-participation-participations.context.d.ts +25 -0
- package/build/es/src/calendar-v3-participation-participations.context.js +25 -0
- package/build/es/src/calendar-v3-participation-participations.context.js.map +1 -0
- package/build/es/src/calendar-v3-participation-participations.http.d.ts +29 -0
- package/build/es/src/calendar-v3-participation-participations.http.js +196 -0
- package/build/es/src/calendar-v3-participation-participations.http.js.map +1 -0
- package/build/es/src/calendar-v3-participation-participations.meta.d.ts +23 -0
- package/build/es/src/calendar-v3-participation-participations.meta.js +92 -0
- package/build/es/src/calendar-v3-participation-participations.meta.js.map +1 -0
- package/build/es/src/calendar-v3-participation-participations.public.d.ts +67 -0
- package/build/es/src/calendar-v3-participation-participations.public.js +63 -0
- package/build/es/src/calendar-v3-participation-participations.public.js.map +1 -0
- package/build/es/src/calendar-v3-participation-participations.types.d.ts +364 -0
- package/build/es/src/calendar-v3-participation-participations.types.js +16 -0
- package/build/es/src/calendar-v3-participation-participations.types.js.map +1 -0
- package/build/es/src/calendar-v3-participation-participations.universal.d.ts +674 -0
- package/build/es/src/calendar-v3-participation-participations.universal.js +260 -0
- package/build/es/src/calendar-v3-participation-participations.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.context.d.ts +25 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.context.js +30 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.context.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.http.d.ts +29 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.http.js +204 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.http.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.meta.d.ts +23 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.meta.js +123 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.meta.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.public.d.ts +67 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.public.js +73 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.public.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.types.d.ts +364 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.types.js +19 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.types.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.universal.d.ts +674 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js +291 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/calendar-v3-participation-participations.context.d.ts +25 -0
- package/build/internal/es/src/calendar-v3-participation-participations.context.js +25 -0
- package/build/internal/es/src/calendar-v3-participation-participations.context.js.map +1 -0
- package/build/internal/es/src/calendar-v3-participation-participations.http.d.ts +29 -0
- package/build/internal/es/src/calendar-v3-participation-participations.http.js +196 -0
- package/build/internal/es/src/calendar-v3-participation-participations.http.js.map +1 -0
- package/build/internal/es/src/calendar-v3-participation-participations.meta.d.ts +23 -0
- package/build/internal/es/src/calendar-v3-participation-participations.meta.js +92 -0
- package/build/internal/es/src/calendar-v3-participation-participations.meta.js.map +1 -0
- package/build/internal/es/src/calendar-v3-participation-participations.public.d.ts +67 -0
- package/build/internal/es/src/calendar-v3-participation-participations.public.js +63 -0
- package/build/internal/es/src/calendar-v3-participation-participations.public.js.map +1 -0
- package/build/internal/es/src/calendar-v3-participation-participations.types.d.ts +364 -0
- package/build/internal/es/src/calendar-v3-participation-participations.types.js +16 -0
- package/build/internal/es/src/calendar-v3-participation-participations.types.js.map +1 -0
- package/build/internal/es/src/calendar-v3-participation-participations.universal.d.ts +674 -0
- package/build/internal/es/src/calendar-v3-participation-participations.universal.js +260 -0
- package/build/internal/es/src/calendar-v3-participation-participations.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as ambassadorWixCalendarV3ParticipationTypes from './calendar-v3-participation-participations.types.js';
|
|
2
|
+
import * as ambassadorWixCalendarV3ParticipationUniversalTypes from './calendar-v3-participation-participations.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function getParticipation(): __PublicMethodMetaInfo<'GET', {
|
|
14
|
+
participationId: string;
|
|
15
|
+
}, ambassadorWixCalendarV3ParticipationUniversalTypes.GetParticipationRequest, ambassadorWixCalendarV3ParticipationTypes.GetParticipationRequest, ambassadorWixCalendarV3ParticipationUniversalTypes.GetParticipationResponse & ambassadorWixCalendarV3ParticipationUniversalTypes.GetParticipationResponseNonNullableFields, ambassadorWixCalendarV3ParticipationTypes.GetParticipationResponse & ambassadorWixCalendarV3ParticipationTypes.GetParticipationResponseNonNullableFields>;
|
|
16
|
+
export declare function queryParticipations(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixCalendarV3ParticipationUniversalTypes.QueryParticipationsRequest, ambassadorWixCalendarV3ParticipationTypes.QueryParticipationsRequest, ambassadorWixCalendarV3ParticipationUniversalTypes.QueryParticipationsResponse & ambassadorWixCalendarV3ParticipationUniversalTypes.QueryParticipationsResponseNonNullableFields, ambassadorWixCalendarV3ParticipationTypes.QueryParticipationsResponse & ambassadorWixCalendarV3ParticipationTypes.QueryParticipationsResponseNonNullableFields>;
|
|
17
|
+
export declare function createParticipation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixCalendarV3ParticipationUniversalTypes.CreateParticipationRequest, ambassadorWixCalendarV3ParticipationTypes.CreateParticipationRequest, ambassadorWixCalendarV3ParticipationUniversalTypes.CreateParticipationResponse & ambassadorWixCalendarV3ParticipationUniversalTypes.CreateParticipationResponseNonNullableFields, ambassadorWixCalendarV3ParticipationTypes.CreateParticipationResponse & ambassadorWixCalendarV3ParticipationTypes.CreateParticipationResponseNonNullableFields>;
|
|
18
|
+
export declare function updateParticipation(): __PublicMethodMetaInfo<'PATCH', {
|
|
19
|
+
participationId: string;
|
|
20
|
+
}, ambassadorWixCalendarV3ParticipationUniversalTypes.UpdateParticipationRequest, ambassadorWixCalendarV3ParticipationTypes.UpdateParticipationRequest, ambassadorWixCalendarV3ParticipationUniversalTypes.UpdateParticipationResponse & ambassadorWixCalendarV3ParticipationUniversalTypes.UpdateParticipationResponseNonNullableFields, ambassadorWixCalendarV3ParticipationTypes.UpdateParticipationResponse & ambassadorWixCalendarV3ParticipationTypes.UpdateParticipationResponseNonNullableFields>;
|
|
21
|
+
export declare function deleteParticipation(): __PublicMethodMetaInfo<'DELETE', {
|
|
22
|
+
participationId: string;
|
|
23
|
+
}, ambassadorWixCalendarV3ParticipationUniversalTypes.DeleteParticipationRequest, ambassadorWixCalendarV3ParticipationTypes.DeleteParticipationRequest, ambassadorWixCalendarV3ParticipationUniversalTypes.DeleteParticipationResponse, ambassadorWixCalendarV3ParticipationTypes.DeleteParticipationResponse>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import * as ambassadorWixCalendarV3Participation from './calendar-v3-participation-participations.http.js';
|
|
2
|
+
export function getParticipation() {
|
|
3
|
+
const payload = { participationId: ':participationId' };
|
|
4
|
+
const getRequestOptions = ambassadorWixCalendarV3Participation.getParticipation(payload);
|
|
5
|
+
const getUrl = (context) => {
|
|
6
|
+
const { url } = getRequestOptions(context);
|
|
7
|
+
return url;
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
getUrl,
|
|
11
|
+
httpMethod: 'GET',
|
|
12
|
+
path: '/v3/participations/{participationId}',
|
|
13
|
+
pathParams: { participationId: 'participationId' },
|
|
14
|
+
__requestType: null,
|
|
15
|
+
__originalRequestType: null,
|
|
16
|
+
__responseType: null,
|
|
17
|
+
__originalResponseType: null,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function queryParticipations() {
|
|
21
|
+
const payload = {};
|
|
22
|
+
const getRequestOptions = ambassadorWixCalendarV3Participation.queryParticipations(payload);
|
|
23
|
+
const getUrl = (context) => {
|
|
24
|
+
const { url } = getRequestOptions(context);
|
|
25
|
+
return url;
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
getUrl,
|
|
29
|
+
httpMethod: 'POST',
|
|
30
|
+
path: '/v3/participations/query',
|
|
31
|
+
pathParams: {},
|
|
32
|
+
__requestType: null,
|
|
33
|
+
__originalRequestType: null,
|
|
34
|
+
__responseType: null,
|
|
35
|
+
__originalResponseType: null,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function createParticipation() {
|
|
39
|
+
const payload = {};
|
|
40
|
+
const getRequestOptions = ambassadorWixCalendarV3Participation.createParticipation(payload);
|
|
41
|
+
const getUrl = (context) => {
|
|
42
|
+
const { url } = getRequestOptions(context);
|
|
43
|
+
return url;
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
getUrl,
|
|
47
|
+
httpMethod: 'POST',
|
|
48
|
+
path: '/v3/participations',
|
|
49
|
+
pathParams: {},
|
|
50
|
+
__requestType: null,
|
|
51
|
+
__originalRequestType: null,
|
|
52
|
+
__responseType: null,
|
|
53
|
+
__originalResponseType: null,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function updateParticipation() {
|
|
57
|
+
const payload = { participation: { id: ':participationId' } };
|
|
58
|
+
const getRequestOptions = ambassadorWixCalendarV3Participation.updateParticipation(payload);
|
|
59
|
+
const getUrl = (context) => {
|
|
60
|
+
const { url } = getRequestOptions(context);
|
|
61
|
+
return url;
|
|
62
|
+
};
|
|
63
|
+
return {
|
|
64
|
+
getUrl,
|
|
65
|
+
httpMethod: 'PATCH',
|
|
66
|
+
path: '/v3/participations/{participation.id}',
|
|
67
|
+
pathParams: { participationId: 'participationId' },
|
|
68
|
+
__requestType: null,
|
|
69
|
+
__originalRequestType: null,
|
|
70
|
+
__responseType: null,
|
|
71
|
+
__originalResponseType: null,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export function deleteParticipation() {
|
|
75
|
+
const payload = { participationId: ':participationId' };
|
|
76
|
+
const getRequestOptions = ambassadorWixCalendarV3Participation.deleteParticipation(payload);
|
|
77
|
+
const getUrl = (context) => {
|
|
78
|
+
const { url } = getRequestOptions(context);
|
|
79
|
+
return url;
|
|
80
|
+
};
|
|
81
|
+
return {
|
|
82
|
+
getUrl,
|
|
83
|
+
httpMethod: 'DELETE',
|
|
84
|
+
path: '/v3/participations/{participationId}',
|
|
85
|
+
pathParams: { participationId: 'participationId' },
|
|
86
|
+
__requestType: null,
|
|
87
|
+
__originalRequestType: null,
|
|
88
|
+
__responseType: null,
|
|
89
|
+
__originalResponseType: null,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=calendar-v3-participation-participations.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-v3-participation-participations.meta.js","sourceRoot":"","sources":["../../../../src/calendar-v3-participation-participations.meta.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { CreateParticipationOptions, Participation, ParticipationCreatedEnvelope, ParticipationDeletedEnvelope, ParticipationNonNullableFields, ParticipationUpdatedEnvelope, ParticipationsQueryBuilder, UpdateParticipation } from './calendar-v3-participation-participations.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function getParticipation(httpClient: HttpClient): GetParticipationSignature;
|
|
7
|
+
interface GetParticipationSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a `participation` object.
|
|
10
|
+
* @param - ID of the `participation` object to retrieve.
|
|
11
|
+
* @returns Retrieved `participation` object.
|
|
12
|
+
*/
|
|
13
|
+
(participationId: string | null): Promise<Participation & ParticipationNonNullableFields>;
|
|
14
|
+
}
|
|
15
|
+
export declare function queryParticipations(httpClient: HttpClient): QueryParticipationsSignature;
|
|
16
|
+
interface QueryParticipationsSignature {
|
|
17
|
+
/**
|
|
18
|
+
* Creates a query to retrieve a list of participations.
|
|
19
|
+
*
|
|
20
|
+
* The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.
|
|
21
|
+
*
|
|
22
|
+
* 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.
|
|
23
|
+
*
|
|
24
|
+
* 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.
|
|
25
|
+
*
|
|
26
|
+
* `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:
|
|
27
|
+
*
|
|
28
|
+
* + `limit` is `50`.
|
|
29
|
+
* + Sorted by `createdDate` in ascending order.
|
|
30
|
+
*
|
|
31
|
+
* The functions that are chained to `queryParticipations()` are applied in the order they are called.
|
|
32
|
+
*
|
|
33
|
+
* 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`.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
(): ParticipationsQueryBuilder;
|
|
37
|
+
}
|
|
38
|
+
export declare function createParticipation(httpClient: HttpClient): CreateParticipationSignature;
|
|
39
|
+
interface CreateParticipationSignature {
|
|
40
|
+
/**
|
|
41
|
+
* Creates a `participation` object for a schedule or event.
|
|
42
|
+
* @param - `participation` object to create.
|
|
43
|
+
* @returns Created `participation` object.
|
|
44
|
+
*/
|
|
45
|
+
(participation: Participation, options?: CreateParticipationOptions | undefined): Promise<Participation & ParticipationNonNullableFields>;
|
|
46
|
+
}
|
|
47
|
+
export declare function updateParticipation(httpClient: HttpClient): UpdateParticipationSignature;
|
|
48
|
+
interface UpdateParticipationSignature {
|
|
49
|
+
/**
|
|
50
|
+
* Updates a `participation` object.
|
|
51
|
+
* @param - Participation ID.
|
|
52
|
+
* @returns Updated `participation` object.
|
|
53
|
+
*/
|
|
54
|
+
(_id: string | null, participation: UpdateParticipation): Promise<Participation & ParticipationNonNullableFields>;
|
|
55
|
+
}
|
|
56
|
+
export declare function deleteParticipation(httpClient: HttpClient): DeleteParticipationSignature;
|
|
57
|
+
interface DeleteParticipationSignature {
|
|
58
|
+
/**
|
|
59
|
+
* Deletes a `participation` object.
|
|
60
|
+
* @param - ID of `participation` object to delete.
|
|
61
|
+
*/
|
|
62
|
+
(participationId: string | null): Promise<void>;
|
|
63
|
+
}
|
|
64
|
+
export declare const onParticipationCreated: EventDefinition<ParticipationCreatedEnvelope, "wix.calendar.v3.participation_created">;
|
|
65
|
+
export declare const onParticipationDeleted: EventDefinition<ParticipationDeletedEnvelope, "wix.calendar.v3.participation_deleted">;
|
|
66
|
+
export declare const onParticipationUpdated: EventDefinition<ParticipationUpdatedEnvelope, "wix.calendar.v3.participation_updated">;
|
|
67
|
+
export { ActionEvent, BaseEventMetadata, CreateParticipationOptions, CreateParticipationRequest, CreateParticipationResponse, CreateParticipationResponseNonNullableFields, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteParticipationRequest, DeleteParticipationResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetParticipationRequest, GetParticipationResponse, GetParticipationResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, Participant, Participation, ParticipationCreatedEnvelope, ParticipationDeletedEnvelope, ParticipationNonNullableFields, ParticipationParticipatedItemOneOf, ParticipationUpdatedEnvelope, ParticipationUpdatedWithMetadata, ParticipationsQueryBuilder, ParticipationsQueryResult, PartySizeSumByScheduleId, QueryParticipationsRequest, QueryParticipationsResponse, QueryParticipationsResponseNonNullableFields, RestoreInfo, Status, SumParticipationsPartySizeByScheduleIdRequest, SumParticipationsPartySizeByScheduleIdResponse, UpdateParticipation, UpdateParticipationRequest, UpdateParticipationResponse, UpdateParticipationResponseNonNullableFields, WebhookIdentityType, } from './calendar-v3-participation-participations.universal.js';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
2
|
+
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
3
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
4
|
+
import { EventDefinition } from '@wix/sdk-types';
|
|
5
|
+
import { createParticipation as universalCreateParticipation, deleteParticipation as universalDeleteParticipation, getParticipation as universalGetParticipation, queryParticipations as universalQueryParticipations, updateParticipation as universalUpdateParticipation, } from './calendar-v3-participation-participations.universal.js';
|
|
6
|
+
export const __metadata = { PACKAGE_NAME: '@wix/calendar' };
|
|
7
|
+
export function getParticipation(httpClient) {
|
|
8
|
+
return (participationId) => universalGetParticipation(participationId,
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
{ httpClient });
|
|
11
|
+
}
|
|
12
|
+
export function queryParticipations(httpClient) {
|
|
13
|
+
return () => universalQueryParticipations(
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
export function createParticipation(httpClient) {
|
|
18
|
+
return (participation, options) => universalCreateParticipation(participation, options,
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
{ httpClient });
|
|
21
|
+
}
|
|
22
|
+
export function updateParticipation(httpClient) {
|
|
23
|
+
return (_id, participation) => universalUpdateParticipation(_id, participation,
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
{ httpClient });
|
|
26
|
+
}
|
|
27
|
+
export function deleteParticipation(httpClient) {
|
|
28
|
+
return (participationId) => universalDeleteParticipation(participationId,
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
{ httpClient });
|
|
31
|
+
}
|
|
32
|
+
export const onParticipationCreated = EventDefinition('wix.calendar.v3.participation_created', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
33
|
+
{
|
|
34
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
35
|
+
paths: [
|
|
36
|
+
{ path: 'entity.createdDate' },
|
|
37
|
+
{ path: 'entity.updatedDate' },
|
|
38
|
+
{ path: 'metadata.eventTime' },
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
])))();
|
|
42
|
+
export const onParticipationDeleted = EventDefinition('wix.calendar.v3.participation_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
43
|
+
{
|
|
44
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
45
|
+
paths: [
|
|
46
|
+
{ path: 'undefined.createdDate' },
|
|
47
|
+
{ path: 'undefined.updatedDate' },
|
|
48
|
+
{ path: 'metadata.eventTime' },
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
])))();
|
|
52
|
+
export const onParticipationUpdated = EventDefinition('wix.calendar.v3.participation_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
53
|
+
{
|
|
54
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
55
|
+
paths: [
|
|
56
|
+
{ path: 'entity.createdDate' },
|
|
57
|
+
{ path: 'entity.updatedDate' },
|
|
58
|
+
{ path: 'metadata.eventTime' },
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
])))();
|
|
62
|
+
export { Status, WebhookIdentityType, } from './calendar-v3-participation-participations.universal.js';
|
|
63
|
+
//# sourceMappingURL=calendar-v3-participation-participations.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-v3-participation-participations.public.js","sourceRoot":"","sources":["../../../../src/calendar-v3-participation-participations.public.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `participation` object represents the relationship between a participant and
|
|
3
|
+
* an [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
|
|
4
|
+
* or [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).
|
|
5
|
+
* It includes details about the participant, whether the participation status is confirmed or
|
|
6
|
+
* pending, which app owns the relevant event or schedule, and allows for custom data extensions.
|
|
7
|
+
*/
|
|
8
|
+
export interface Participation extends ParticipationParticipatedItemOneOf {
|
|
9
|
+
/**
|
|
10
|
+
* ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
|
|
11
|
+
* associated with the participation.
|
|
12
|
+
*/
|
|
13
|
+
scheduleId?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
|
|
16
|
+
* associated with the participation.
|
|
17
|
+
*/
|
|
18
|
+
eventId?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Participation ID.
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
id?: string | null;
|
|
24
|
+
/** External ID. */
|
|
25
|
+
externalId?: string | null;
|
|
26
|
+
/** Information about the participant. */
|
|
27
|
+
participant?: Participant;
|
|
28
|
+
/**
|
|
29
|
+
* Party size of the group or `1` for individuals.
|
|
30
|
+
*
|
|
31
|
+
* Min: `1`
|
|
32
|
+
* Max: `1000`
|
|
33
|
+
*/
|
|
34
|
+
partySize?: number | null;
|
|
35
|
+
/**
|
|
36
|
+
* Status of the party's participation in the event. Depending on your
|
|
37
|
+
* implementation, confirmation may be handled by the business owner or the customer.
|
|
38
|
+
*
|
|
39
|
+
* Supported values:
|
|
40
|
+
* + `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).
|
|
41
|
+
* + `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).
|
|
42
|
+
*
|
|
43
|
+
* Default: `CONFIRMED`
|
|
44
|
+
*/
|
|
45
|
+
status?: Status;
|
|
46
|
+
/**
|
|
47
|
+
* ID of the app that owns the participation `object`. Identical to `appId` of the
|
|
48
|
+
* [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
|
|
49
|
+
* that the related
|
|
50
|
+
* [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
|
|
51
|
+
* belongs to.
|
|
52
|
+
* @readonly
|
|
53
|
+
*/
|
|
54
|
+
appId?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Revision number, which increments by 1 each time the participation is updated.
|
|
57
|
+
* To prevent conflicting changes, the current revision must be passed when updating the participation.
|
|
58
|
+
* Ignored when creating a participation.
|
|
59
|
+
* @readonly
|
|
60
|
+
*/
|
|
61
|
+
revision?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* Date the participation was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
64
|
+
* @readonly
|
|
65
|
+
*/
|
|
66
|
+
createdDate?: Date | null;
|
|
67
|
+
/**
|
|
68
|
+
* Date the participation was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
69
|
+
* @readonly
|
|
70
|
+
*/
|
|
71
|
+
updatedDate?: Date | null;
|
|
72
|
+
/** Extensions enabling applications or users to save custom data related to the participation. */
|
|
73
|
+
extendedFields?: ExtendedFields;
|
|
74
|
+
}
|
|
75
|
+
/** @oneof */
|
|
76
|
+
export interface ParticipationParticipatedItemOneOf {
|
|
77
|
+
/**
|
|
78
|
+
* ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
|
|
79
|
+
* associated with the participation.
|
|
80
|
+
*/
|
|
81
|
+
scheduleId?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* ID of the [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
|
|
84
|
+
* associated with the participation.
|
|
85
|
+
*/
|
|
86
|
+
eventId?: string | null;
|
|
87
|
+
}
|
|
88
|
+
export interface Participant {
|
|
89
|
+
/**
|
|
90
|
+
* Participant name.
|
|
91
|
+
*
|
|
92
|
+
* Min: 1 character
|
|
93
|
+
* Max: 200 characters
|
|
94
|
+
*/
|
|
95
|
+
name?: string | null;
|
|
96
|
+
/** Participant's phone number. */
|
|
97
|
+
phone?: string | null;
|
|
98
|
+
/** Participant's email address. */
|
|
99
|
+
email?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* [Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)
|
|
102
|
+
* ID of the parcipant.
|
|
103
|
+
*/
|
|
104
|
+
contactId?: string | null;
|
|
105
|
+
}
|
|
106
|
+
export declare enum Status {
|
|
107
|
+
/** 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). */
|
|
108
|
+
CONFIRMED = "CONFIRMED",
|
|
109
|
+
/** 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). */
|
|
110
|
+
PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
|
|
111
|
+
}
|
|
112
|
+
export interface ExtendedFields {
|
|
113
|
+
/**
|
|
114
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
115
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
116
|
+
*
|
|
117
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
118
|
+
*
|
|
119
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
120
|
+
*/
|
|
121
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
122
|
+
}
|
|
123
|
+
export interface GetParticipationRequest {
|
|
124
|
+
/** ID of the `participation` object to retrieve. */
|
|
125
|
+
participationId: string | null;
|
|
126
|
+
}
|
|
127
|
+
export interface GetParticipationResponse {
|
|
128
|
+
/** Retrieved `participation` object. */
|
|
129
|
+
participation?: Participation;
|
|
130
|
+
}
|
|
131
|
+
export interface QueryParticipationsRequest {
|
|
132
|
+
/** Query containing filters and paging. */
|
|
133
|
+
query?: CursorQuery;
|
|
134
|
+
}
|
|
135
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
136
|
+
/** 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`. */
|
|
137
|
+
cursorPaging?: CursorPaging;
|
|
138
|
+
/**
|
|
139
|
+
* Filter object in the following format:
|
|
140
|
+
* `"filter" : {
|
|
141
|
+
* "fieldName1": "value1",
|
|
142
|
+
* "fieldName2":{"$operator":"value2"}
|
|
143
|
+
* }`
|
|
144
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
145
|
+
*/
|
|
146
|
+
filter?: Record<string, any> | null;
|
|
147
|
+
}
|
|
148
|
+
/** @oneof */
|
|
149
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
150
|
+
/** 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`. */
|
|
151
|
+
cursorPaging?: CursorPaging;
|
|
152
|
+
}
|
|
153
|
+
export interface CursorPaging {
|
|
154
|
+
/** Number of participations to load. */
|
|
155
|
+
limit?: number | null;
|
|
156
|
+
/**
|
|
157
|
+
* Pointer to the next or previous page in the list of results.
|
|
158
|
+
*
|
|
159
|
+
* You can get the relevant cursor token
|
|
160
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
161
|
+
* Not relevant for the first request.
|
|
162
|
+
*/
|
|
163
|
+
cursor?: string | null;
|
|
164
|
+
}
|
|
165
|
+
export interface QueryParticipationsResponse {
|
|
166
|
+
/** Retrieved `participation` objects matching the provided query. */
|
|
167
|
+
participations?: Participation[];
|
|
168
|
+
/** Paging metadata. */
|
|
169
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
170
|
+
}
|
|
171
|
+
export interface CursorPagingMetadata {
|
|
172
|
+
/** Number of items returned in the response. */
|
|
173
|
+
count?: number | null;
|
|
174
|
+
/** Offset that was requested. */
|
|
175
|
+
cursors?: Cursors;
|
|
176
|
+
/**
|
|
177
|
+
* Indicates if there are more results after the current page.
|
|
178
|
+
* If `true`, another page of results can be retrieved.
|
|
179
|
+
* If `false`, this is the last page.
|
|
180
|
+
*/
|
|
181
|
+
hasNext?: boolean | null;
|
|
182
|
+
}
|
|
183
|
+
export interface Cursors {
|
|
184
|
+
/** Cursor pointing to next page in the list of results. */
|
|
185
|
+
next?: string | null;
|
|
186
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
187
|
+
prev?: string | null;
|
|
188
|
+
}
|
|
189
|
+
export interface CreateParticipationRequest {
|
|
190
|
+
/** `participation` object to create. */
|
|
191
|
+
participation: Participation;
|
|
192
|
+
/**
|
|
193
|
+
* Idempotency key guaranteeing that you don't create the same `participation`
|
|
194
|
+
* object more than once.
|
|
195
|
+
*/
|
|
196
|
+
idempotencyKey?: string | null;
|
|
197
|
+
}
|
|
198
|
+
export interface CreateParticipationResponse {
|
|
199
|
+
/** Created `participation` object. */
|
|
200
|
+
participation?: Participation;
|
|
201
|
+
}
|
|
202
|
+
export interface UpdateParticipationRequest {
|
|
203
|
+
/** `participation` object to update. */
|
|
204
|
+
participation: Participation;
|
|
205
|
+
}
|
|
206
|
+
export interface UpdateParticipationResponse {
|
|
207
|
+
/** Updated `participation` object. */
|
|
208
|
+
participation?: Participation;
|
|
209
|
+
}
|
|
210
|
+
/** Deprecated. Use the standard ParticipationUpdated event instead, which also includes the modified fields. */
|
|
211
|
+
export interface ParticipationUpdatedWithMetadata {
|
|
212
|
+
/** The updated participation. */
|
|
213
|
+
participation?: Participation;
|
|
214
|
+
}
|
|
215
|
+
export interface DeleteParticipationRequest {
|
|
216
|
+
/** ID of `participation` object to delete. */
|
|
217
|
+
participationId: string | null;
|
|
218
|
+
}
|
|
219
|
+
export interface DeleteParticipationResponse {
|
|
220
|
+
}
|
|
221
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
222
|
+
createdEvent?: EntityCreatedEvent;
|
|
223
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
224
|
+
deletedEvent?: EntityDeletedEvent;
|
|
225
|
+
actionEvent?: ActionEvent;
|
|
226
|
+
/**
|
|
227
|
+
* Unique event ID.
|
|
228
|
+
* Allows clients to ignore duplicate webhooks.
|
|
229
|
+
*/
|
|
230
|
+
id?: string;
|
|
231
|
+
/**
|
|
232
|
+
* Assumes actions are also always typed to an entity_type
|
|
233
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
234
|
+
*/
|
|
235
|
+
entityFqdn?: string;
|
|
236
|
+
/**
|
|
237
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
238
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
239
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
240
|
+
*/
|
|
241
|
+
slug?: string;
|
|
242
|
+
/** ID of the entity associated with the event. */
|
|
243
|
+
entityId?: string;
|
|
244
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
245
|
+
eventTime?: Date | null;
|
|
246
|
+
/**
|
|
247
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
248
|
+
* (for example, GDPR).
|
|
249
|
+
*/
|
|
250
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
251
|
+
/** If present, indicates the action that triggered the event. */
|
|
252
|
+
originatedFrom?: string | null;
|
|
253
|
+
/**
|
|
254
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
255
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
256
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
257
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
258
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
259
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
260
|
+
*/
|
|
261
|
+
entityEventSequence?: string | null;
|
|
262
|
+
}
|
|
263
|
+
/** @oneof */
|
|
264
|
+
export interface DomainEventBodyOneOf {
|
|
265
|
+
createdEvent?: EntityCreatedEvent;
|
|
266
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
267
|
+
deletedEvent?: EntityDeletedEvent;
|
|
268
|
+
actionEvent?: ActionEvent;
|
|
269
|
+
}
|
|
270
|
+
export interface EntityCreatedEvent {
|
|
271
|
+
entityAsJson?: string;
|
|
272
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
273
|
+
restoreInfo?: RestoreInfo;
|
|
274
|
+
}
|
|
275
|
+
export interface RestoreInfo {
|
|
276
|
+
deletedDate?: Date | null;
|
|
277
|
+
}
|
|
278
|
+
export interface EntityUpdatedEvent {
|
|
279
|
+
/**
|
|
280
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
281
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
282
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
283
|
+
*/
|
|
284
|
+
currentEntityAsJson?: string;
|
|
285
|
+
}
|
|
286
|
+
export interface EntityDeletedEvent {
|
|
287
|
+
/** Entity that was deleted */
|
|
288
|
+
deletedEntityAsJson?: string | null;
|
|
289
|
+
}
|
|
290
|
+
export interface ActionEvent {
|
|
291
|
+
bodyAsJson?: string;
|
|
292
|
+
}
|
|
293
|
+
export interface Empty {
|
|
294
|
+
}
|
|
295
|
+
export interface SumParticipationsPartySizeByScheduleIdRequest {
|
|
296
|
+
/** The schedule IDs. */
|
|
297
|
+
scheduleIds?: string[] | null;
|
|
298
|
+
}
|
|
299
|
+
export interface SumParticipationsPartySizeByScheduleIdResponse {
|
|
300
|
+
/** The sum of party size by schedule ID. */
|
|
301
|
+
partySizeSumByScheduleId?: PartySizeSumByScheduleId[];
|
|
302
|
+
}
|
|
303
|
+
export interface PartySizeSumByScheduleId {
|
|
304
|
+
/** The ID of the schedule. */
|
|
305
|
+
scheduleId?: string | null;
|
|
306
|
+
/** The sum of the participations party size. */
|
|
307
|
+
partySizeSum?: number | null;
|
|
308
|
+
}
|
|
309
|
+
export interface MessageEnvelope {
|
|
310
|
+
/** App instance ID. */
|
|
311
|
+
instanceId?: string | null;
|
|
312
|
+
/** Event type. */
|
|
313
|
+
eventType?: string;
|
|
314
|
+
/** The identification type and identity data. */
|
|
315
|
+
identity?: IdentificationData;
|
|
316
|
+
/** Stringify payload. */
|
|
317
|
+
data?: string;
|
|
318
|
+
}
|
|
319
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
320
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
321
|
+
anonymousVisitorId?: string;
|
|
322
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
323
|
+
memberId?: string;
|
|
324
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
325
|
+
wixUserId?: string;
|
|
326
|
+
/** ID of an app. */
|
|
327
|
+
appId?: string;
|
|
328
|
+
/** @readonly */
|
|
329
|
+
identityType?: WebhookIdentityType;
|
|
330
|
+
}
|
|
331
|
+
/** @oneof */
|
|
332
|
+
export interface IdentificationDataIdOneOf {
|
|
333
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
334
|
+
anonymousVisitorId?: string;
|
|
335
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
336
|
+
memberId?: string;
|
|
337
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
338
|
+
wixUserId?: string;
|
|
339
|
+
/** ID of an app. */
|
|
340
|
+
appId?: string;
|
|
341
|
+
}
|
|
342
|
+
export declare enum WebhookIdentityType {
|
|
343
|
+
UNKNOWN = "UNKNOWN",
|
|
344
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
345
|
+
MEMBER = "MEMBER",
|
|
346
|
+
WIX_USER = "WIX_USER",
|
|
347
|
+
APP = "APP"
|
|
348
|
+
}
|
|
349
|
+
interface ParticipationNonNullableFields {
|
|
350
|
+
status: Status;
|
|
351
|
+
}
|
|
352
|
+
export interface GetParticipationResponseNonNullableFields {
|
|
353
|
+
participation?: ParticipationNonNullableFields;
|
|
354
|
+
}
|
|
355
|
+
export interface QueryParticipationsResponseNonNullableFields {
|
|
356
|
+
participations: ParticipationNonNullableFields[];
|
|
357
|
+
}
|
|
358
|
+
export interface CreateParticipationResponseNonNullableFields {
|
|
359
|
+
participation?: ParticipationNonNullableFields;
|
|
360
|
+
}
|
|
361
|
+
export interface UpdateParticipationResponseNonNullableFields {
|
|
362
|
+
participation?: ParticipationNonNullableFields;
|
|
363
|
+
}
|
|
364
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export var Status;
|
|
2
|
+
(function (Status) {
|
|
3
|
+
/** 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). */
|
|
4
|
+
Status["CONFIRMED"] = "CONFIRMED";
|
|
5
|
+
/** 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). */
|
|
6
|
+
Status["PENDING_CONFIRMATION"] = "PENDING_CONFIRMATION";
|
|
7
|
+
})(Status || (Status = {}));
|
|
8
|
+
export var WebhookIdentityType;
|
|
9
|
+
(function (WebhookIdentityType) {
|
|
10
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
11
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
12
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
13
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
14
|
+
WebhookIdentityType["APP"] = "APP";
|
|
15
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
16
|
+
//# sourceMappingURL=calendar-v3-participation-participations.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-v3-participation-participations.types.js","sourceRoot":"","sources":["../../../../src/calendar-v3-participation-participations.types.ts"],"names":[],"mappings":"AA4GA,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,uLAAuL;IACvL,iCAAuB,CAAA;IACvB,8MAA8M;IAC9M,uDAA6C,CAAA;AAC/C,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB;AAqQD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|