@wix/auto_sdk_calendar_participations 1.0.9 → 1.0.11
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/{internal/meta.d.mts → cjs/src/calendar-v3-participation-participations.types.d.ts} +186 -47
- 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/{calendar-v3-participation-participations.universal-DKvqWfOR.d.mts → cjs/src/calendar-v3-participation-participations.universal.d.ts} +200 -46
- package/build/cjs/src/calendar-v3-participation-participations.universal.js +292 -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/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/{internal/meta.d.ts → es/src/calendar-v3-participation-participations.types.d.ts} +186 -47
- 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/{calendar-v3-participation-participations.universal-DKvqWfOR.d.ts → es/src/calendar-v3-participation-participations.universal.d.ts} +200 -46
- package/build/es/src/calendar-v3-participation-participations.universal.js +261 -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/{meta.d.mts → internal/cjs/src/calendar-v3-participation-participations.types.d.ts} +186 -47
- 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/{calendar-v3-participation-participations.universal-DKvqWfOR.d.mts → cjs/src/calendar-v3-participation-participations.universal.d.ts} +200 -46
- package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js +292 -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/{meta.d.ts → internal/es/src/calendar-v3-participation-participations.types.d.ts} +186 -47
- 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/{calendar-v3-participation-participations.universal-DKvqWfOR.d.ts → es/src/calendar-v3-participation-participations.universal.d.ts} +200 -46
- package/build/internal/es/src/calendar-v3-participation-participations.universal.js +261 -0
- package/build/internal/es/src/calendar-v3-participation-participations.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.d.mts +0 -83
- package/build/index.d.ts +0 -83
- package/build/index.js +0 -492
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -459
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -83
- package/build/internal/index.d.ts +0 -83
- package/build/internal/index.js +0 -492
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -459
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.js +0 -304
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -273
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.js +0 -304
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -273
- package/build/meta.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/calendar-v3-participation-participations.context.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/calendar-v3-participation-participations.context.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4FAA0E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/calendar-v3-participation-participations.universal.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/calendar-v3-participation-participations.universal.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.typings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8FAA4E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/calendar-v3-participation-participations.meta.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/calendar-v3-participation-participations.meta.js"), exports);
|
|
18
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yFAAuE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getParticipation as publicGetParticipation, queryParticipations as publicQueryParticipations, createParticipation as publicCreateParticipation, updateParticipation as publicUpdateParticipation, deleteParticipation as publicDeleteParticipation } from './calendar-v3-participation-participations.public.js';
|
|
2
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
|
+
import { onParticipationCreated as publicOnParticipationCreated } from './calendar-v3-participation-participations.public.js';
|
|
5
|
+
import { onParticipationDeleted as publicOnParticipationDeleted } from './calendar-v3-participation-participations.public.js';
|
|
6
|
+
import { onParticipationUpdated as publicOnParticipationUpdated } from './calendar-v3-participation-participations.public.js';
|
|
7
|
+
export declare const getParticipation: MaybeContext<BuildRESTFunction<typeof publicGetParticipation> & typeof publicGetParticipation>;
|
|
8
|
+
export declare const queryParticipations: MaybeContext<BuildRESTFunction<typeof publicQueryParticipations> & typeof publicQueryParticipations>;
|
|
9
|
+
export declare const createParticipation: MaybeContext<BuildRESTFunction<typeof publicCreateParticipation> & typeof publicCreateParticipation>;
|
|
10
|
+
export declare const updateParticipation: MaybeContext<BuildRESTFunction<typeof publicUpdateParticipation> & typeof publicUpdateParticipation>;
|
|
11
|
+
export declare const deleteParticipation: MaybeContext<BuildRESTFunction<typeof publicDeleteParticipation> & typeof publicDeleteParticipation>;
|
|
12
|
+
/**
|
|
13
|
+
* Triggered when a `participation` object is created.
|
|
14
|
+
*/
|
|
15
|
+
export declare const onParticipationCreated: ReturnType<typeof createEventModule<typeof publicOnParticipationCreated>>;
|
|
16
|
+
/**
|
|
17
|
+
* Triggered when a `participation` object is deleted.
|
|
18
|
+
*/
|
|
19
|
+
export declare const onParticipationDeleted: ReturnType<typeof createEventModule<typeof publicOnParticipationDeleted>>;
|
|
20
|
+
/**
|
|
21
|
+
* Triggered when a `participation` object is updated.
|
|
22
|
+
*/
|
|
23
|
+
export declare const onParticipationUpdated: ReturnType<typeof createEventModule<typeof publicOnParticipationUpdated>>;
|
|
24
|
+
export { Status, WebhookIdentityType, } from './calendar-v3-participation-participations.universal.js';
|
|
25
|
+
export { Participation, ParticipationParticipatedItemOneOf, Participant, ExtendedFields, GetParticipationRequest, GetParticipationResponse, QueryParticipationsRequest, CursorQuery, CursorQueryPagingMethodOneOf, CursorPaging, QueryParticipationsResponse, CursorPagingMetadata, Cursors, CreateParticipationRequest, CreateParticipationResponse, UpdateParticipationRequest, UpdateParticipationResponse, DeleteParticipationRequest, DeleteParticipationResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, SumParticipationsPartySizeByScheduleIdRequest, SumParticipationsPartySizeByScheduleIdResponse, PartySizeSumByScheduleId, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, ParticipationCreatedEnvelope, ParticipationDeletedEnvelope, ParticipationUpdatedEnvelope, ParticipationsQueryResult, ParticipationsQueryBuilder, CreateParticipationOptions, UpdateParticipation, } from './calendar-v3-participation-participations.universal.js';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.Status = exports.onParticipationUpdated = exports.onParticipationDeleted = exports.onParticipationCreated = exports.deleteParticipation = exports.updateParticipation = exports.createParticipation = exports.queryParticipations = exports.getParticipation = void 0;
|
|
4
|
+
const calendar_v3_participation_participations_public_js_1 = require("./calendar-v3-participation-participations.public.js");
|
|
5
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
7
|
+
const calendar_v3_participation_participations_public_js_2 = require("./calendar-v3-participation-participations.public.js");
|
|
8
|
+
const calendar_v3_participation_participations_public_js_3 = require("./calendar-v3-participation-participations.public.js");
|
|
9
|
+
const calendar_v3_participation_participations_public_js_4 = require("./calendar-v3-participation-participations.public.js");
|
|
10
|
+
exports.getParticipation = (0, rest_modules_1.createRESTModule)(calendar_v3_participation_participations_public_js_1.getParticipation);
|
|
11
|
+
exports.queryParticipations = (0, rest_modules_1.createRESTModule)(calendar_v3_participation_participations_public_js_1.queryParticipations);
|
|
12
|
+
exports.createParticipation = (0, rest_modules_1.createRESTModule)(calendar_v3_participation_participations_public_js_1.createParticipation);
|
|
13
|
+
exports.updateParticipation = (0, rest_modules_1.createRESTModule)(calendar_v3_participation_participations_public_js_1.updateParticipation);
|
|
14
|
+
exports.deleteParticipation = (0, rest_modules_1.createRESTModule)(calendar_v3_participation_participations_public_js_1.deleteParticipation);
|
|
15
|
+
/**
|
|
16
|
+
* Triggered when a `participation` object is created.
|
|
17
|
+
*/
|
|
18
|
+
exports.onParticipationCreated = (0, event_definition_modules_1.createEventModule)(calendar_v3_participation_participations_public_js_2.onParticipationCreated);
|
|
19
|
+
/**
|
|
20
|
+
* Triggered when a `participation` object is deleted.
|
|
21
|
+
*/
|
|
22
|
+
exports.onParticipationDeleted = (0, event_definition_modules_1.createEventModule)(calendar_v3_participation_participations_public_js_3.onParticipationDeleted);
|
|
23
|
+
/**
|
|
24
|
+
* Triggered when a `participation` object is updated.
|
|
25
|
+
*/
|
|
26
|
+
exports.onParticipationUpdated = (0, event_definition_modules_1.createEventModule)(calendar_v3_participation_participations_public_js_4.onParticipationUpdated);
|
|
27
|
+
var calendar_v3_participation_participations_universal_js_1 = require("./calendar-v3-participation-participations.universal.js");
|
|
28
|
+
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return calendar_v3_participation_participations_universal_js_1.Status; } });
|
|
29
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return calendar_v3_participation_participations_universal_js_1.WebhookIdentityType; } });
|
|
30
|
+
//# sourceMappingURL=calendar-v3-participation-participations.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-v3-participation-participations.context.js","sourceRoot":"","sources":["../../../src/calendar-v3-participation-participations.context.ts"],"names":[],"mappings":";;;AAAA,6HAM8D;AAC9D,gEAAiE;AACjE,wFAA8E;AAE9E,6HAA8H;AAC9H,6HAA8H;AAC9H,6HAA8H;AAEjH,QAAA,gBAAgB,GAGX,IAAA,+BAAgB,EAAC,qEAAsB,CAAC,CAAC;AAC9C,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,wEAAyB,CAAC,CAAC;AACjD,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,wEAAyB,CAAC,CAAC;AACjD,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,wEAAyB,CAAC,CAAC;AACjD,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,wEAAyB,CAAC,CAAC;AAC9D;;GAEG;AACU,QAAA,sBAAsB,GAE/B,IAAA,4CAAiB,EAAC,2EAA4B,CAAC,CAAC;AACpD;;GAEG;AACU,QAAA,sBAAsB,GAE/B,IAAA,4CAAiB,EAAC,2EAA4B,CAAC,CAAC;AACpD;;GAEG;AACU,QAAA,sBAAsB,GAE/B,IAAA,4CAAiB,EAAC,2EAA4B,CAAC,CAAC;AAEpD,iIAGiE;AAF/D,+IAAA,MAAM,OAAA;AACN,4JAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/** Retrieves a `participation` object. */
|
|
3
|
+
export declare function getParticipation(payload: object): RequestOptionsFactory<any>;
|
|
4
|
+
/**
|
|
5
|
+
* Creates a query to retrieve a list of participations.
|
|
6
|
+
*
|
|
7
|
+
* The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.
|
|
8
|
+
*
|
|
9
|
+
* 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.
|
|
10
|
+
*
|
|
11
|
+
* 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.
|
|
12
|
+
*
|
|
13
|
+
* `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:
|
|
14
|
+
*
|
|
15
|
+
* + `limit` is `50`.
|
|
16
|
+
* + Sorted by `createdDate` in ascending order.
|
|
17
|
+
*
|
|
18
|
+
* The functions that are chained to `queryParticipations()` are applied in the order they are called.
|
|
19
|
+
*
|
|
20
|
+
* 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`.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare function queryParticipations(payload: object): RequestOptionsFactory<any>;
|
|
24
|
+
/** Creates a `participation` object for a schedule or event. */
|
|
25
|
+
export declare function createParticipation(payload: object): RequestOptionsFactory<any>;
|
|
26
|
+
/** Updates a `participation` object. */
|
|
27
|
+
export declare function updateParticipation(payload: object): RequestOptionsFactory<any>;
|
|
28
|
+
/** Deletes a `participation` object. */
|
|
29
|
+
export declare function deleteParticipation(payload: object): RequestOptionsFactory<any>;
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteParticipation = exports.updateParticipation = exports.createParticipation = exports.queryParticipations = exports.getParticipation = void 0;
|
|
4
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
7
|
+
const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
|
|
8
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
9
|
+
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
10
|
+
function resolveWixCalendarParticipationsV3ParticipationsServiceUrl(opts) {
|
|
11
|
+
const domainToMappings = {
|
|
12
|
+
'manage._base_domain_': [
|
|
13
|
+
{
|
|
14
|
+
srcPath: '/_api/calendar/v3/participations',
|
|
15
|
+
destPath: '/v3/participations',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
'www.wixapis.com': [
|
|
19
|
+
{
|
|
20
|
+
srcPath: '/calendar/v3/participations',
|
|
21
|
+
destPath: '/v3/participations',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
};
|
|
25
|
+
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
26
|
+
}
|
|
27
|
+
const PACKAGE_NAME = '@wix/auto_sdk_calendar_participations';
|
|
28
|
+
/** Retrieves a `participation` object. */
|
|
29
|
+
function getParticipation(payload) {
|
|
30
|
+
function __getParticipation({ host }) {
|
|
31
|
+
const metadata = {
|
|
32
|
+
entityFqdn: 'wix.calendar.v3.participation',
|
|
33
|
+
method: 'GET',
|
|
34
|
+
methodFqn: 'wix.calendar.participations.v3.ParticipationsService.GetParticipation',
|
|
35
|
+
packageName: PACKAGE_NAME,
|
|
36
|
+
url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({
|
|
37
|
+
protoPath: '/v3/participations/{participationId}',
|
|
38
|
+
data: payload,
|
|
39
|
+
host,
|
|
40
|
+
}),
|
|
41
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
42
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
43
|
+
{
|
|
44
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
45
|
+
paths: [
|
|
46
|
+
{ path: 'participation.createdDate' },
|
|
47
|
+
{ path: 'participation.updatedDate' },
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
]),
|
|
51
|
+
};
|
|
52
|
+
return metadata;
|
|
53
|
+
}
|
|
54
|
+
return __getParticipation;
|
|
55
|
+
}
|
|
56
|
+
exports.getParticipation = getParticipation;
|
|
57
|
+
/**
|
|
58
|
+
* Creates a query to retrieve a list of participations.
|
|
59
|
+
*
|
|
60
|
+
* The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.
|
|
61
|
+
*
|
|
62
|
+
* 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.
|
|
63
|
+
*
|
|
64
|
+
* 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.
|
|
65
|
+
*
|
|
66
|
+
* `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:
|
|
67
|
+
*
|
|
68
|
+
* + `limit` is `50`.
|
|
69
|
+
* + Sorted by `createdDate` in ascending order.
|
|
70
|
+
*
|
|
71
|
+
* The functions that are chained to `queryParticipations()` are applied in the order they are called.
|
|
72
|
+
*
|
|
73
|
+
* 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`.
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
function queryParticipations(payload) {
|
|
77
|
+
function __queryParticipations({ host }) {
|
|
78
|
+
const metadata = {
|
|
79
|
+
entityFqdn: 'wix.calendar.v3.participation',
|
|
80
|
+
method: 'POST',
|
|
81
|
+
methodFqn: 'wix.calendar.participations.v3.ParticipationsService.QueryParticipations',
|
|
82
|
+
packageName: PACKAGE_NAME,
|
|
83
|
+
url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({
|
|
84
|
+
protoPath: '/v3/participations/query',
|
|
85
|
+
data: payload,
|
|
86
|
+
host,
|
|
87
|
+
}),
|
|
88
|
+
data: payload,
|
|
89
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
90
|
+
{
|
|
91
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
92
|
+
paths: [
|
|
93
|
+
{ path: 'participations.createdDate' },
|
|
94
|
+
{ path: 'participations.updatedDate' },
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
]),
|
|
98
|
+
};
|
|
99
|
+
return metadata;
|
|
100
|
+
}
|
|
101
|
+
return __queryParticipations;
|
|
102
|
+
}
|
|
103
|
+
exports.queryParticipations = queryParticipations;
|
|
104
|
+
/** Creates a `participation` object for a schedule or event. */
|
|
105
|
+
function createParticipation(payload) {
|
|
106
|
+
function __createParticipation({ host }) {
|
|
107
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
108
|
+
{
|
|
109
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
110
|
+
paths: [
|
|
111
|
+
{ path: 'participation.createdDate' },
|
|
112
|
+
{ path: 'participation.updatedDate' },
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
]);
|
|
116
|
+
const metadata = {
|
|
117
|
+
entityFqdn: 'wix.calendar.v3.participation',
|
|
118
|
+
method: 'POST',
|
|
119
|
+
methodFqn: 'wix.calendar.participations.v3.ParticipationsService.CreateParticipation',
|
|
120
|
+
packageName: PACKAGE_NAME,
|
|
121
|
+
url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({
|
|
122
|
+
protoPath: '/v3/participations',
|
|
123
|
+
data: serializedData,
|
|
124
|
+
host,
|
|
125
|
+
}),
|
|
126
|
+
data: serializedData,
|
|
127
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
128
|
+
{
|
|
129
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
130
|
+
paths: [
|
|
131
|
+
{ path: 'participation.createdDate' },
|
|
132
|
+
{ path: 'participation.updatedDate' },
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
]),
|
|
136
|
+
};
|
|
137
|
+
return metadata;
|
|
138
|
+
}
|
|
139
|
+
return __createParticipation;
|
|
140
|
+
}
|
|
141
|
+
exports.createParticipation = createParticipation;
|
|
142
|
+
/** Updates a `participation` object. */
|
|
143
|
+
function updateParticipation(payload) {
|
|
144
|
+
function __updateParticipation({ host }) {
|
|
145
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
146
|
+
{
|
|
147
|
+
transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
|
|
148
|
+
paths: [{ path: 'fieldmask' }],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
152
|
+
paths: [
|
|
153
|
+
{ path: 'participation.createdDate' },
|
|
154
|
+
{ path: 'participation.updatedDate' },
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
]);
|
|
158
|
+
const metadata = {
|
|
159
|
+
entityFqdn: 'wix.calendar.v3.participation',
|
|
160
|
+
method: 'PATCH',
|
|
161
|
+
methodFqn: 'wix.calendar.participations.v3.ParticipationsService.UpdateParticipation',
|
|
162
|
+
packageName: PACKAGE_NAME,
|
|
163
|
+
url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({
|
|
164
|
+
protoPath: '/v3/participations/{participation.id}',
|
|
165
|
+
data: serializedData,
|
|
166
|
+
host,
|
|
167
|
+
}),
|
|
168
|
+
data: serializedData,
|
|
169
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
170
|
+
{
|
|
171
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
172
|
+
paths: [
|
|
173
|
+
{ path: 'participation.createdDate' },
|
|
174
|
+
{ path: 'participation.updatedDate' },
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
]),
|
|
178
|
+
};
|
|
179
|
+
return metadata;
|
|
180
|
+
}
|
|
181
|
+
return __updateParticipation;
|
|
182
|
+
}
|
|
183
|
+
exports.updateParticipation = updateParticipation;
|
|
184
|
+
/** Deletes a `participation` object. */
|
|
185
|
+
function deleteParticipation(payload) {
|
|
186
|
+
function __deleteParticipation({ host }) {
|
|
187
|
+
const metadata = {
|
|
188
|
+
entityFqdn: 'wix.calendar.v3.participation',
|
|
189
|
+
method: 'DELETE',
|
|
190
|
+
methodFqn: 'wix.calendar.participations.v3.ParticipationsService.DeleteParticipation',
|
|
191
|
+
packageName: PACKAGE_NAME,
|
|
192
|
+
url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({
|
|
193
|
+
protoPath: '/v3/participations/{participationId}',
|
|
194
|
+
data: payload,
|
|
195
|
+
host,
|
|
196
|
+
}),
|
|
197
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
198
|
+
};
|
|
199
|
+
return metadata;
|
|
200
|
+
}
|
|
201
|
+
return __deleteParticipation;
|
|
202
|
+
}
|
|
203
|
+
exports.deleteParticipation = deleteParticipation;
|
|
204
|
+
//# sourceMappingURL=calendar-v3-participation-participations.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-v3-participation-participations.http.js","sourceRoot":"","sources":["../../../src/calendar-v3-participation-participations.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,0DAA0D,CACjE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,kCAAkC;gBAC3C,QAAQ,EAAE,oBAAoB;aAC/B;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,oBAAoB;aAC/B;SACF;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A0E;YAC5E,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,0DAA0D,CAAC;gBAC9D,SAAS,EAAE,sCAAsC;gBACjD,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,IAAA,gCAAiB,EAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,qBAAqB,CAAC;AAC/B,CAAC;AAtBD,kDAsBC"}
|
|
@@ -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, ambassadorWixCalendarV3ParticipationTypes.GetParticipationResponse>;
|
|
16
|
+
export declare function queryParticipations(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixCalendarV3ParticipationUniversalTypes.QueryParticipationsRequest, ambassadorWixCalendarV3ParticipationTypes.QueryParticipationsRequest, ambassadorWixCalendarV3ParticipationUniversalTypes.QueryParticipationsResponse, ambassadorWixCalendarV3ParticipationTypes.QueryParticipationsResponse>;
|
|
17
|
+
export declare function createParticipation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixCalendarV3ParticipationUniversalTypes.CreateParticipationRequest, ambassadorWixCalendarV3ParticipationTypes.CreateParticipationRequest, ambassadorWixCalendarV3ParticipationUniversalTypes.CreateParticipationResponse, ambassadorWixCalendarV3ParticipationTypes.CreateParticipationResponse>;
|
|
18
|
+
export declare function updateParticipation(): __PublicMethodMetaInfo<'PATCH', {
|
|
19
|
+
participationId: string;
|
|
20
|
+
}, ambassadorWixCalendarV3ParticipationUniversalTypes.UpdateParticipationRequest, ambassadorWixCalendarV3ParticipationTypes.UpdateParticipationRequest, ambassadorWixCalendarV3ParticipationUniversalTypes.UpdateParticipationResponse, ambassadorWixCalendarV3ParticipationTypes.UpdateParticipationResponse>;
|
|
21
|
+
export declare function deleteParticipation(): __PublicMethodMetaInfo<'DELETE', {
|
|
22
|
+
participationId: string;
|
|
23
|
+
}, ambassadorWixCalendarV3ParticipationUniversalTypes.DeleteParticipationRequest, ambassadorWixCalendarV3ParticipationTypes.DeleteParticipationRequest, ambassadorWixCalendarV3ParticipationUniversalTypes.DeleteParticipationResponse, ambassadorWixCalendarV3ParticipationTypes.DeleteParticipationResponse>;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.deleteParticipation = exports.updateParticipation = exports.createParticipation = exports.queryParticipations = exports.getParticipation = void 0;
|
|
27
|
+
const ambassadorWixCalendarV3Participation = __importStar(require("./calendar-v3-participation-participations.http.js"));
|
|
28
|
+
function getParticipation() {
|
|
29
|
+
const payload = { participationId: ':participationId' };
|
|
30
|
+
const getRequestOptions = ambassadorWixCalendarV3Participation.getParticipation(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'GET',
|
|
38
|
+
path: '/v3/participations/{participationId}',
|
|
39
|
+
pathParams: { participationId: 'participationId' },
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.getParticipation = getParticipation;
|
|
47
|
+
function queryParticipations() {
|
|
48
|
+
const payload = {};
|
|
49
|
+
const getRequestOptions = ambassadorWixCalendarV3Participation.queryParticipations(payload);
|
|
50
|
+
const getUrl = (context) => {
|
|
51
|
+
const { url } = getRequestOptions(context);
|
|
52
|
+
return url;
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
getUrl,
|
|
56
|
+
httpMethod: 'POST',
|
|
57
|
+
path: '/v3/participations/query',
|
|
58
|
+
pathParams: {},
|
|
59
|
+
__requestType: null,
|
|
60
|
+
__originalRequestType: null,
|
|
61
|
+
__responseType: null,
|
|
62
|
+
__originalResponseType: null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.queryParticipations = queryParticipations;
|
|
66
|
+
function createParticipation() {
|
|
67
|
+
const payload = {};
|
|
68
|
+
const getRequestOptions = ambassadorWixCalendarV3Participation.createParticipation(payload);
|
|
69
|
+
const getUrl = (context) => {
|
|
70
|
+
const { url } = getRequestOptions(context);
|
|
71
|
+
return url;
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
getUrl,
|
|
75
|
+
httpMethod: 'POST',
|
|
76
|
+
path: '/v3/participations',
|
|
77
|
+
pathParams: {},
|
|
78
|
+
__requestType: null,
|
|
79
|
+
__originalRequestType: null,
|
|
80
|
+
__responseType: null,
|
|
81
|
+
__originalResponseType: null,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
exports.createParticipation = createParticipation;
|
|
85
|
+
function updateParticipation() {
|
|
86
|
+
const payload = { participation: { id: ':participationId' } };
|
|
87
|
+
const getRequestOptions = ambassadorWixCalendarV3Participation.updateParticipation(payload);
|
|
88
|
+
const getUrl = (context) => {
|
|
89
|
+
const { url } = getRequestOptions(context);
|
|
90
|
+
return url;
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
getUrl,
|
|
94
|
+
httpMethod: 'PATCH',
|
|
95
|
+
path: '/v3/participations/{participation.id}',
|
|
96
|
+
pathParams: { participationId: 'participationId' },
|
|
97
|
+
__requestType: null,
|
|
98
|
+
__originalRequestType: null,
|
|
99
|
+
__responseType: null,
|
|
100
|
+
__originalResponseType: null,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
exports.updateParticipation = updateParticipation;
|
|
104
|
+
function deleteParticipation() {
|
|
105
|
+
const payload = { participationId: ':participationId' };
|
|
106
|
+
const getRequestOptions = ambassadorWixCalendarV3Participation.deleteParticipation(payload);
|
|
107
|
+
const getUrl = (context) => {
|
|
108
|
+
const { url } = getRequestOptions(context);
|
|
109
|
+
return url;
|
|
110
|
+
};
|
|
111
|
+
return {
|
|
112
|
+
getUrl,
|
|
113
|
+
httpMethod: 'DELETE',
|
|
114
|
+
path: '/v3/participations/{participationId}',
|
|
115
|
+
pathParams: { participationId: 'participationId' },
|
|
116
|
+
__requestType: null,
|
|
117
|
+
__originalRequestType: null,
|
|
118
|
+
__responseType: null,
|
|
119
|
+
__originalResponseType: null,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
exports.deleteParticipation = deleteParticipation;
|
|
123
|
+
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yHAA2G;AAsB3G,SAAgB,gBAAgB;IAQ9B,MAAM,OAAO,GAAG,EAAE,eAAe,EAAE,kBAAkB,EAAS,CAAC;IAE/D,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAEjE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,sCAAsC;QAC5C,UAAU,EAAE,EAAE,eAAe,EAAE,iBAAiB,EAAE;QAClD,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,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,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAEpE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,OAAO;QACnB,IAAI,EAAE,uCAAuC;QAC7C,UAAU,EAAE,EAAE,eAAe,EAAE,iBAAiB,EAAE;QAClD,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,kDA4BC;AAED,SAAgB,mBAAmB;IAQjC,MAAM,OAAO,GAAG,EAAE,eAAe,EAAE,kBAAkB,EAAS,CAAC;IAE/D,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAEpE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,QAAQ;QACpB,IAAI,EAAE,sCAAsC;QAC5C,UAAU,EAAE,EAAE,eAAe,EAAE,iBAAiB,EAAE;QAClD,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,kDA4BC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { CreateParticipationOptions, Participation, ParticipationCreatedEnvelope, ParticipationDeletedEnvelope, 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): Promise<Participation>;
|
|
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>;
|
|
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, participation: UpdateParticipation): Promise<Participation>;
|
|
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): 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, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteParticipationRequest, DeleteParticipationResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetParticipationRequest, GetParticipationResponse, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, Participant, Participation, ParticipationCreatedEnvelope, ParticipationDeletedEnvelope, ParticipationParticipatedItemOneOf, ParticipationUpdatedEnvelope, ParticipationsQueryBuilder, ParticipationsQueryResult, PartySizeSumByScheduleId, QueryParticipationsRequest, QueryParticipationsResponse, RestoreInfo, Status, SumParticipationsPartySizeByScheduleIdRequest, SumParticipationsPartySizeByScheduleIdResponse, UpdateParticipation, UpdateParticipationRequest, UpdateParticipationResponse, WebhookIdentityType, } from './calendar-v3-participation-participations.universal.js';
|