@wix/auto_sdk_calendar_participations 1.0.13 → 1.0.15
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/src/calendar-v3-participation-participations.universal.d.ts +2 -17
- package/build/cjs/src/calendar-v3-participation-participations.universal.js +3 -6
- package/build/cjs/src/calendar-v3-participation-participations.universal.js.map +1 -1
- package/build/es/src/calendar-v3-participation-participations.universal.d.ts +2 -17
- package/build/es/src/calendar-v3-participation-participations.universal.js +3 -6
- package/build/es/src/calendar-v3-participation-participations.universal.js.map +1 -1
- package/build/internal/cjs/src/calendar-v3-participation-participations.universal.d.ts +2 -17
- package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js +3 -6
- package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js.map +1 -1
- package/build/internal/es/src/calendar-v3-participation-participations.universal.d.ts +2 -17
- package/build/internal/es/src/calendar-v3-participation-participations.universal.js +3 -6
- package/build/internal/es/src/calendar-v3-participation-participations.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -467,7 +467,6 @@ export interface ParticipationCreatedEnvelope {
|
|
|
467
467
|
* @webhook
|
|
468
468
|
* @eventType wix.calendar.v3.participation_created
|
|
469
469
|
* @slug created
|
|
470
|
-
* @documentationMaturity preview
|
|
471
470
|
*/
|
|
472
471
|
export declare function onParticipationCreated(handler: (event: ParticipationCreatedEnvelope) => void | Promise<void>): void;
|
|
473
472
|
export interface ParticipationDeletedEnvelope {
|
|
@@ -485,7 +484,6 @@ export interface ParticipationDeletedEnvelope {
|
|
|
485
484
|
* @webhook
|
|
486
485
|
* @eventType wix.calendar.v3.participation_deleted
|
|
487
486
|
* @slug deleted
|
|
488
|
-
* @documentationMaturity preview
|
|
489
487
|
*/
|
|
490
488
|
export declare function onParticipationDeleted(handler: (event: ParticipationDeletedEnvelope) => void | Promise<void>): void;
|
|
491
489
|
export interface ParticipationUpdatedEnvelope {
|
|
@@ -504,7 +502,6 @@ export interface ParticipationUpdatedEnvelope {
|
|
|
504
502
|
* @webhook
|
|
505
503
|
* @eventType wix.calendar.v3.participation_updated
|
|
506
504
|
* @slug updated
|
|
507
|
-
* @documentationMaturity preview
|
|
508
505
|
*/
|
|
509
506
|
export declare function onParticipationUpdated(handler: (event: ParticipationUpdatedEnvelope) => void | Promise<void>): void;
|
|
510
507
|
type ParticipationNonNullablePaths = `status`;
|
|
@@ -512,7 +509,6 @@ type ParticipationNonNullablePaths = `status`;
|
|
|
512
509
|
* Retrieves a `participation` object.
|
|
513
510
|
* @param participationId - ID of the `participation` object to retrieve.
|
|
514
511
|
* @public
|
|
515
|
-
* @documentationMaturity preview
|
|
516
512
|
* @requiredField participationId
|
|
517
513
|
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
518
514
|
* @permissionScope Manage Calendars
|
|
@@ -545,7 +541,6 @@ export declare function getParticipation(participationId: string): Promise<NonNu
|
|
|
545
541
|
* 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`.
|
|
546
542
|
*
|
|
547
543
|
* @public
|
|
548
|
-
* @documentationMaturity preview
|
|
549
544
|
* @permissionScope Manage Calendars
|
|
550
545
|
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
551
546
|
* @permissionScope Manage Bookings
|
|
@@ -573,27 +568,19 @@ export interface ParticipationsQueryResult extends QueryCursorResult {
|
|
|
573
568
|
export interface ParticipationsQueryBuilder {
|
|
574
569
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
575
570
|
* @param value - Value to compare against.
|
|
576
|
-
* @documentationMaturity preview
|
|
577
571
|
*/
|
|
578
572
|
eq: (propertyName: 'scheduleId' | 'eventId' | 'externalId', value: any) => ParticipationsQueryBuilder;
|
|
579
|
-
/** @documentationMaturity preview */
|
|
580
573
|
in: (propertyName: 'scheduleId' | 'eventId' | '_id' | 'externalId', value: any) => ParticipationsQueryBuilder;
|
|
581
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
582
|
-
* @documentationMaturity preview
|
|
583
|
-
*/
|
|
574
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
584
575
|
limit: (limit: number) => ParticipationsQueryBuilder;
|
|
585
|
-
/** @param cursor - A pointer to specific record
|
|
586
|
-
* @documentationMaturity preview
|
|
587
|
-
*/
|
|
576
|
+
/** @param cursor - A pointer to specific record */
|
|
588
577
|
skipTo: (cursor: string) => ParticipationsQueryBuilder;
|
|
589
|
-
/** @documentationMaturity preview */
|
|
590
578
|
find: () => Promise<ParticipationsQueryResult>;
|
|
591
579
|
}
|
|
592
580
|
/**
|
|
593
581
|
* Creates a `participation` object for a schedule or event.
|
|
594
582
|
* @param participation - `participation` object to create.
|
|
595
583
|
* @public
|
|
596
|
-
* @documentationMaturity preview
|
|
597
584
|
* @requiredField participation
|
|
598
585
|
* @requiredField participation.participant
|
|
599
586
|
* @requiredField participation.participant.name
|
|
@@ -623,7 +610,6 @@ export interface CreateParticipationOptions {
|
|
|
623
610
|
* Updates a `participation` object.
|
|
624
611
|
* @param _id - Participation ID.
|
|
625
612
|
* @public
|
|
626
|
-
* @documentationMaturity preview
|
|
627
613
|
* @requiredField _id
|
|
628
614
|
* @requiredField participation
|
|
629
615
|
* @requiredField participation.revision
|
|
@@ -723,7 +709,6 @@ export interface UpdateParticipation {
|
|
|
723
709
|
* Deletes a `participation` object.
|
|
724
710
|
* @param participationId - ID of `participation` object to delete.
|
|
725
711
|
* @public
|
|
726
|
-
* @documentationMaturity preview
|
|
727
712
|
* @requiredField participationId
|
|
728
713
|
* @permissionId CALENDAR.PARTICIPATION_DELETE
|
|
729
714
|
* @permissionScope Manage Calendars
|
|
@@ -28,6 +28,8 @@ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
|
28
28
|
const query_builder_1 = require("@wix/sdk-runtime/query-builder");
|
|
29
29
|
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
30
30
|
const ambassadorWixCalendarV3Participation = __importStar(require("./calendar-v3-participation-participations.http.js"));
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
31
33
|
var Status;
|
|
32
34
|
(function (Status) {
|
|
33
35
|
/** 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). */
|
|
@@ -47,7 +49,6 @@ var WebhookIdentityType;
|
|
|
47
49
|
* Retrieves a `participation` object.
|
|
48
50
|
* @param participationId - ID of the `participation` object to retrieve.
|
|
49
51
|
* @public
|
|
50
|
-
* @documentationMaturity preview
|
|
51
52
|
* @requiredField participationId
|
|
52
53
|
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
53
54
|
* @permissionScope Manage Calendars
|
|
@@ -103,7 +104,6 @@ exports.getParticipation = getParticipation;
|
|
|
103
104
|
* 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`.
|
|
104
105
|
*
|
|
105
106
|
* @public
|
|
106
|
-
* @documentationMaturity preview
|
|
107
107
|
* @permissionScope Manage Calendars
|
|
108
108
|
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
109
109
|
* @permissionScope Manage Bookings
|
|
@@ -139,7 +139,7 @@ function queryParticipations() {
|
|
|
139
139
|
});
|
|
140
140
|
},
|
|
141
141
|
responseTransformer: ({ data, }) => {
|
|
142
|
-
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(data);
|
|
142
|
+
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(data, []));
|
|
143
143
|
return {
|
|
144
144
|
items: transformedData?.participations,
|
|
145
145
|
pagingMetadata: transformedData?.pagingMetadata,
|
|
@@ -162,7 +162,6 @@ exports.queryParticipations = queryParticipations;
|
|
|
162
162
|
* Creates a `participation` object for a schedule or event.
|
|
163
163
|
* @param participation - `participation` object to create.
|
|
164
164
|
* @public
|
|
165
|
-
* @documentationMaturity preview
|
|
166
165
|
* @requiredField participation
|
|
167
166
|
* @requiredField participation.participant
|
|
168
167
|
* @requiredField participation.participant.name
|
|
@@ -211,7 +210,6 @@ exports.createParticipation = createParticipation;
|
|
|
211
210
|
* Updates a `participation` object.
|
|
212
211
|
* @param _id - Participation ID.
|
|
213
212
|
* @public
|
|
214
|
-
* @documentationMaturity preview
|
|
215
213
|
* @requiredField _id
|
|
216
214
|
* @requiredField participation
|
|
217
215
|
* @requiredField participation.revision
|
|
@@ -254,7 +252,6 @@ exports.updateParticipation = updateParticipation;
|
|
|
254
252
|
* Deletes a `participation` object.
|
|
255
253
|
* @param participationId - ID of `participation` object to delete.
|
|
256
254
|
* @public
|
|
257
|
-
* @documentationMaturity preview
|
|
258
255
|
* @requiredField participationId
|
|
259
256
|
* @permissionId CALENDAR.PARTICIPATION_DELETE
|
|
260
257
|
* @permissionScope Manage Calendars
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-v3-participation-participations.universal.js","sourceRoot":"","sources":["../../../src/calendar-v3-participation-participations.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,yHAA2G;
|
|
1
|
+
{"version":3,"file":"calendar-v3-participation-participations.universal.js","sourceRoot":"","sources":["../../../src/calendar-v3-participation-participations.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,yHAA2G;AAC3G,aAAa;AACb,sFAAkF;AAyIlF,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,uLAAuL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mBAAmB,CACvC,eAAuB;IAEvB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,eAAe,EAAE,eAAe;KACjC,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,oCAAoC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAEpE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE;YACrD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,iBAAiB,CAAC,CACpB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAlCD,kDAkCC"}
|
|
@@ -467,7 +467,6 @@ export interface ParticipationCreatedEnvelope {
|
|
|
467
467
|
* @webhook
|
|
468
468
|
* @eventType wix.calendar.v3.participation_created
|
|
469
469
|
* @slug created
|
|
470
|
-
* @documentationMaturity preview
|
|
471
470
|
*/
|
|
472
471
|
export declare function onParticipationCreated(handler: (event: ParticipationCreatedEnvelope) => void | Promise<void>): void;
|
|
473
472
|
export interface ParticipationDeletedEnvelope {
|
|
@@ -485,7 +484,6 @@ export interface ParticipationDeletedEnvelope {
|
|
|
485
484
|
* @webhook
|
|
486
485
|
* @eventType wix.calendar.v3.participation_deleted
|
|
487
486
|
* @slug deleted
|
|
488
|
-
* @documentationMaturity preview
|
|
489
487
|
*/
|
|
490
488
|
export declare function onParticipationDeleted(handler: (event: ParticipationDeletedEnvelope) => void | Promise<void>): void;
|
|
491
489
|
export interface ParticipationUpdatedEnvelope {
|
|
@@ -504,7 +502,6 @@ export interface ParticipationUpdatedEnvelope {
|
|
|
504
502
|
* @webhook
|
|
505
503
|
* @eventType wix.calendar.v3.participation_updated
|
|
506
504
|
* @slug updated
|
|
507
|
-
* @documentationMaturity preview
|
|
508
505
|
*/
|
|
509
506
|
export declare function onParticipationUpdated(handler: (event: ParticipationUpdatedEnvelope) => void | Promise<void>): void;
|
|
510
507
|
type ParticipationNonNullablePaths = `status`;
|
|
@@ -512,7 +509,6 @@ type ParticipationNonNullablePaths = `status`;
|
|
|
512
509
|
* Retrieves a `participation` object.
|
|
513
510
|
* @param participationId - ID of the `participation` object to retrieve.
|
|
514
511
|
* @public
|
|
515
|
-
* @documentationMaturity preview
|
|
516
512
|
* @requiredField participationId
|
|
517
513
|
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
518
514
|
* @permissionScope Manage Calendars
|
|
@@ -545,7 +541,6 @@ export declare function getParticipation(participationId: string): Promise<NonNu
|
|
|
545
541
|
* 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`.
|
|
546
542
|
*
|
|
547
543
|
* @public
|
|
548
|
-
* @documentationMaturity preview
|
|
549
544
|
* @permissionScope Manage Calendars
|
|
550
545
|
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
551
546
|
* @permissionScope Manage Bookings
|
|
@@ -573,27 +568,19 @@ export interface ParticipationsQueryResult extends QueryCursorResult {
|
|
|
573
568
|
export interface ParticipationsQueryBuilder {
|
|
574
569
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
575
570
|
* @param value - Value to compare against.
|
|
576
|
-
* @documentationMaturity preview
|
|
577
571
|
*/
|
|
578
572
|
eq: (propertyName: 'scheduleId' | 'eventId' | 'externalId', value: any) => ParticipationsQueryBuilder;
|
|
579
|
-
/** @documentationMaturity preview */
|
|
580
573
|
in: (propertyName: 'scheduleId' | 'eventId' | '_id' | 'externalId', value: any) => ParticipationsQueryBuilder;
|
|
581
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
582
|
-
* @documentationMaturity preview
|
|
583
|
-
*/
|
|
574
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
584
575
|
limit: (limit: number) => ParticipationsQueryBuilder;
|
|
585
|
-
/** @param cursor - A pointer to specific record
|
|
586
|
-
* @documentationMaturity preview
|
|
587
|
-
*/
|
|
576
|
+
/** @param cursor - A pointer to specific record */
|
|
588
577
|
skipTo: (cursor: string) => ParticipationsQueryBuilder;
|
|
589
|
-
/** @documentationMaturity preview */
|
|
590
578
|
find: () => Promise<ParticipationsQueryResult>;
|
|
591
579
|
}
|
|
592
580
|
/**
|
|
593
581
|
* Creates a `participation` object for a schedule or event.
|
|
594
582
|
* @param participation - `participation` object to create.
|
|
595
583
|
* @public
|
|
596
|
-
* @documentationMaturity preview
|
|
597
584
|
* @requiredField participation
|
|
598
585
|
* @requiredField participation.participant
|
|
599
586
|
* @requiredField participation.participant.name
|
|
@@ -623,7 +610,6 @@ export interface CreateParticipationOptions {
|
|
|
623
610
|
* Updates a `participation` object.
|
|
624
611
|
* @param _id - Participation ID.
|
|
625
612
|
* @public
|
|
626
|
-
* @documentationMaturity preview
|
|
627
613
|
* @requiredField _id
|
|
628
614
|
* @requiredField participation
|
|
629
615
|
* @requiredField participation.revision
|
|
@@ -723,7 +709,6 @@ export interface UpdateParticipation {
|
|
|
723
709
|
* Deletes a `participation` object.
|
|
724
710
|
* @param participationId - ID of `participation` object to delete.
|
|
725
711
|
* @public
|
|
726
|
-
* @documentationMaturity preview
|
|
727
712
|
* @requiredField participationId
|
|
728
713
|
* @permissionId CALENDAR.PARTICIPATION_DELETE
|
|
729
714
|
* @permissionScope Manage Calendars
|
|
@@ -2,6 +2,8 @@ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-
|
|
|
2
2
|
import { queryBuilder } from '@wix/sdk-runtime/query-builder';
|
|
3
3
|
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
4
4
|
import * as ambassadorWixCalendarV3Participation from './calendar-v3-participation-participations.http.js';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
5
7
|
export var Status;
|
|
6
8
|
(function (Status) {
|
|
7
9
|
/** 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). */
|
|
@@ -21,7 +23,6 @@ export var WebhookIdentityType;
|
|
|
21
23
|
* Retrieves a `participation` object.
|
|
22
24
|
* @param participationId - ID of the `participation` object to retrieve.
|
|
23
25
|
* @public
|
|
24
|
-
* @documentationMaturity preview
|
|
25
26
|
* @requiredField participationId
|
|
26
27
|
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
27
28
|
* @permissionScope Manage Calendars
|
|
@@ -76,7 +77,6 @@ export async function getParticipation(participationId) {
|
|
|
76
77
|
* 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`.
|
|
77
78
|
*
|
|
78
79
|
* @public
|
|
79
|
-
* @documentationMaturity preview
|
|
80
80
|
* @permissionScope Manage Calendars
|
|
81
81
|
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
82
82
|
* @permissionScope Manage Bookings
|
|
@@ -112,7 +112,7 @@ export function queryParticipations() {
|
|
|
112
112
|
});
|
|
113
113
|
},
|
|
114
114
|
responseTransformer: ({ data, }) => {
|
|
115
|
-
const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
|
|
115
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, []));
|
|
116
116
|
return {
|
|
117
117
|
items: transformedData?.participations,
|
|
118
118
|
pagingMetadata: transformedData?.pagingMetadata,
|
|
@@ -134,7 +134,6 @@ export function queryParticipations() {
|
|
|
134
134
|
* Creates a `participation` object for a schedule or event.
|
|
135
135
|
* @param participation - `participation` object to create.
|
|
136
136
|
* @public
|
|
137
|
-
* @documentationMaturity preview
|
|
138
137
|
* @requiredField participation
|
|
139
138
|
* @requiredField participation.participant
|
|
140
139
|
* @requiredField participation.participant.name
|
|
@@ -182,7 +181,6 @@ export async function createParticipation(participation, options) {
|
|
|
182
181
|
* Updates a `participation` object.
|
|
183
182
|
* @param _id - Participation ID.
|
|
184
183
|
* @public
|
|
185
|
-
* @documentationMaturity preview
|
|
186
184
|
* @requiredField _id
|
|
187
185
|
* @requiredField participation
|
|
188
186
|
* @requiredField participation.revision
|
|
@@ -224,7 +222,6 @@ export async function updateParticipation(_id, participation) {
|
|
|
224
222
|
* Deletes a `participation` object.
|
|
225
223
|
* @param participationId - ID of `participation` object to delete.
|
|
226
224
|
* @public
|
|
227
|
-
* @documentationMaturity preview
|
|
228
225
|
* @requiredField participationId
|
|
229
226
|
* @permissionId CALENDAR.PARTICIPATION_DELETE
|
|
230
227
|
* @permissionScope Manage Calendars
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-v3-participation-participations.universal.js","sourceRoot":"","sources":["../../../src/calendar-v3-participation-participations.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"calendar-v3-participation-participations.universal.js","sourceRoot":"","sources":["../../../src/calendar-v3-participation-participations.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,oDAAoD,CAAC;AAC3G,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAyIlF,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;AAqSD,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;AAmHD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,eAAuB;IAEvB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,eAAe,EAAE,eAAe;KACjC,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,oCAAoC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAEjE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC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{
|
|
|
467
467
|
* @webhook
|
|
468
468
|
* @eventType wix.calendar.v3.participation_created
|
|
469
469
|
* @slug created
|
|
470
|
-
* @documentationMaturity preview
|
|
471
470
|
*/
|
|
472
471
|
export declare function onParticipationCreated(handler: (event: ParticipationCreatedEnvelope) => void | Promise<void>): void;
|
|
473
472
|
export interface ParticipationDeletedEnvelope {
|
|
@@ -485,7 +484,6 @@ export interface ParticipationDeletedEnvelope {
|
|
|
485
484
|
* @webhook
|
|
486
485
|
* @eventType wix.calendar.v3.participation_deleted
|
|
487
486
|
* @slug deleted
|
|
488
|
-
* @documentationMaturity preview
|
|
489
487
|
*/
|
|
490
488
|
export declare function onParticipationDeleted(handler: (event: ParticipationDeletedEnvelope) => void | Promise<void>): void;
|
|
491
489
|
export interface ParticipationUpdatedEnvelope {
|
|
@@ -504,7 +502,6 @@ export interface ParticipationUpdatedEnvelope {
|
|
|
504
502
|
* @webhook
|
|
505
503
|
* @eventType wix.calendar.v3.participation_updated
|
|
506
504
|
* @slug updated
|
|
507
|
-
* @documentationMaturity preview
|
|
508
505
|
*/
|
|
509
506
|
export declare function onParticipationUpdated(handler: (event: ParticipationUpdatedEnvelope) => void | Promise<void>): void;
|
|
510
507
|
type ParticipationNonNullablePaths = `status`;
|
|
@@ -512,7 +509,6 @@ type ParticipationNonNullablePaths = `status`;
|
|
|
512
509
|
* Retrieves a `participation` object.
|
|
513
510
|
* @param participationId - ID of the `participation` object to retrieve.
|
|
514
511
|
* @public
|
|
515
|
-
* @documentationMaturity preview
|
|
516
512
|
* @requiredField participationId
|
|
517
513
|
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
518
514
|
* @permissionScope Manage Calendars
|
|
@@ -545,7 +541,6 @@ export declare function getParticipation(participationId: string): Promise<NonNu
|
|
|
545
541
|
* 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`.
|
|
546
542
|
*
|
|
547
543
|
* @public
|
|
548
|
-
* @documentationMaturity preview
|
|
549
544
|
* @permissionScope Manage Calendars
|
|
550
545
|
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
551
546
|
* @permissionScope Manage Bookings
|
|
@@ -573,27 +568,19 @@ export interface ParticipationsQueryResult extends QueryCursorResult {
|
|
|
573
568
|
export interface ParticipationsQueryBuilder {
|
|
574
569
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
575
570
|
* @param value - Value to compare against.
|
|
576
|
-
* @documentationMaturity preview
|
|
577
571
|
*/
|
|
578
572
|
eq: (propertyName: 'scheduleId' | 'eventId' | 'externalId', value: any) => ParticipationsQueryBuilder;
|
|
579
|
-
/** @documentationMaturity preview */
|
|
580
573
|
in: (propertyName: 'scheduleId' | 'eventId' | '_id' | 'externalId', value: any) => ParticipationsQueryBuilder;
|
|
581
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
582
|
-
* @documentationMaturity preview
|
|
583
|
-
*/
|
|
574
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
584
575
|
limit: (limit: number) => ParticipationsQueryBuilder;
|
|
585
|
-
/** @param cursor - A pointer to specific record
|
|
586
|
-
* @documentationMaturity preview
|
|
587
|
-
*/
|
|
576
|
+
/** @param cursor - A pointer to specific record */
|
|
588
577
|
skipTo: (cursor: string) => ParticipationsQueryBuilder;
|
|
589
|
-
/** @documentationMaturity preview */
|
|
590
578
|
find: () => Promise<ParticipationsQueryResult>;
|
|
591
579
|
}
|
|
592
580
|
/**
|
|
593
581
|
* Creates a `participation` object for a schedule or event.
|
|
594
582
|
* @param participation - `participation` object to create.
|
|
595
583
|
* @public
|
|
596
|
-
* @documentationMaturity preview
|
|
597
584
|
* @requiredField participation
|
|
598
585
|
* @requiredField participation.participant
|
|
599
586
|
* @requiredField participation.participant.name
|
|
@@ -623,7 +610,6 @@ export interface CreateParticipationOptions {
|
|
|
623
610
|
* Updates a `participation` object.
|
|
624
611
|
* @param _id - Participation ID.
|
|
625
612
|
* @public
|
|
626
|
-
* @documentationMaturity preview
|
|
627
613
|
* @requiredField _id
|
|
628
614
|
* @requiredField participation
|
|
629
615
|
* @requiredField participation.revision
|
|
@@ -723,7 +709,6 @@ export interface UpdateParticipation {
|
|
|
723
709
|
* Deletes a `participation` object.
|
|
724
710
|
* @param participationId - ID of `participation` object to delete.
|
|
725
711
|
* @public
|
|
726
|
-
* @documentationMaturity preview
|
|
727
712
|
* @requiredField participationId
|
|
728
713
|
* @permissionId CALENDAR.PARTICIPATION_DELETE
|
|
729
714
|
* @permissionScope Manage Calendars
|
|
@@ -28,6 +28,8 @@ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
|
28
28
|
const query_builder_1 = require("@wix/sdk-runtime/query-builder");
|
|
29
29
|
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
30
30
|
const ambassadorWixCalendarV3Participation = __importStar(require("./calendar-v3-participation-participations.http.js"));
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
31
33
|
var Status;
|
|
32
34
|
(function (Status) {
|
|
33
35
|
/** 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). */
|
|
@@ -47,7 +49,6 @@ var WebhookIdentityType;
|
|
|
47
49
|
* Retrieves a `participation` object.
|
|
48
50
|
* @param participationId - ID of the `participation` object to retrieve.
|
|
49
51
|
* @public
|
|
50
|
-
* @documentationMaturity preview
|
|
51
52
|
* @requiredField participationId
|
|
52
53
|
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
53
54
|
* @permissionScope Manage Calendars
|
|
@@ -103,7 +104,6 @@ exports.getParticipation = getParticipation;
|
|
|
103
104
|
* 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`.
|
|
104
105
|
*
|
|
105
106
|
* @public
|
|
106
|
-
* @documentationMaturity preview
|
|
107
107
|
* @permissionScope Manage Calendars
|
|
108
108
|
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
109
109
|
* @permissionScope Manage Bookings
|
|
@@ -139,7 +139,7 @@ function queryParticipations() {
|
|
|
139
139
|
});
|
|
140
140
|
},
|
|
141
141
|
responseTransformer: ({ data, }) => {
|
|
142
|
-
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(data);
|
|
142
|
+
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(data, []));
|
|
143
143
|
return {
|
|
144
144
|
items: transformedData?.participations,
|
|
145
145
|
pagingMetadata: transformedData?.pagingMetadata,
|
|
@@ -162,7 +162,6 @@ exports.queryParticipations = queryParticipations;
|
|
|
162
162
|
* Creates a `participation` object for a schedule or event.
|
|
163
163
|
* @param participation - `participation` object to create.
|
|
164
164
|
* @public
|
|
165
|
-
* @documentationMaturity preview
|
|
166
165
|
* @requiredField participation
|
|
167
166
|
* @requiredField participation.participant
|
|
168
167
|
* @requiredField participation.participant.name
|
|
@@ -211,7 +210,6 @@ exports.createParticipation = createParticipation;
|
|
|
211
210
|
* Updates a `participation` object.
|
|
212
211
|
* @param _id - Participation ID.
|
|
213
212
|
* @public
|
|
214
|
-
* @documentationMaturity preview
|
|
215
213
|
* @requiredField _id
|
|
216
214
|
* @requiredField participation
|
|
217
215
|
* @requiredField participation.revision
|
|
@@ -254,7 +252,6 @@ exports.updateParticipation = updateParticipation;
|
|
|
254
252
|
* Deletes a `participation` object.
|
|
255
253
|
* @param participationId - ID of `participation` object to delete.
|
|
256
254
|
* @public
|
|
257
|
-
* @documentationMaturity preview
|
|
258
255
|
* @requiredField participationId
|
|
259
256
|
* @permissionId CALENDAR.PARTICIPATION_DELETE
|
|
260
257
|
* @permissionScope Manage Calendars
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-v3-participation-participations.universal.js","sourceRoot":"","sources":["../../../../src/calendar-v3-participation-participations.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,yHAA2G;
|
|
1
|
+
{"version":3,"file":"calendar-v3-participation-participations.universal.js","sourceRoot":"","sources":["../../../../src/calendar-v3-participation-participations.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,yHAA2G;AAC3G,aAAa;AACb,sFAAkF;AAyIlF,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,uLAAuL;IACvL,iCAAuB,CAAA;IACvB,8MAA8M;IAC9M,uDAA6C,CAAA;AAC/C,CAAC,EALW,MAAM,sBAAN,MAAM,QAKjB;AAqSD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAmHD;;;;;;;;;;;;;;;GAeG;AACI,KAAK,UAAU,gBAAgB,CACpC,eAAuB;IAEvB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,eAAe,EAAE,eAAe;KACjC,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,oCAAoC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAEjE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAA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B,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAlCD,kDAkCC"}
|
|
@@ -467,7 +467,6 @@ export interface ParticipationCreatedEnvelope {
|
|
|
467
467
|
* @webhook
|
|
468
468
|
* @eventType wix.calendar.v3.participation_created
|
|
469
469
|
* @slug created
|
|
470
|
-
* @documentationMaturity preview
|
|
471
470
|
*/
|
|
472
471
|
export declare function onParticipationCreated(handler: (event: ParticipationCreatedEnvelope) => void | Promise<void>): void;
|
|
473
472
|
export interface ParticipationDeletedEnvelope {
|
|
@@ -485,7 +484,6 @@ export interface ParticipationDeletedEnvelope {
|
|
|
485
484
|
* @webhook
|
|
486
485
|
* @eventType wix.calendar.v3.participation_deleted
|
|
487
486
|
* @slug deleted
|
|
488
|
-
* @documentationMaturity preview
|
|
489
487
|
*/
|
|
490
488
|
export declare function onParticipationDeleted(handler: (event: ParticipationDeletedEnvelope) => void | Promise<void>): void;
|
|
491
489
|
export interface ParticipationUpdatedEnvelope {
|
|
@@ -504,7 +502,6 @@ export interface ParticipationUpdatedEnvelope {
|
|
|
504
502
|
* @webhook
|
|
505
503
|
* @eventType wix.calendar.v3.participation_updated
|
|
506
504
|
* @slug updated
|
|
507
|
-
* @documentationMaturity preview
|
|
508
505
|
*/
|
|
509
506
|
export declare function onParticipationUpdated(handler: (event: ParticipationUpdatedEnvelope) => void | Promise<void>): void;
|
|
510
507
|
type ParticipationNonNullablePaths = `status`;
|
|
@@ -512,7 +509,6 @@ type ParticipationNonNullablePaths = `status`;
|
|
|
512
509
|
* Retrieves a `participation` object.
|
|
513
510
|
* @param participationId - ID of the `participation` object to retrieve.
|
|
514
511
|
* @public
|
|
515
|
-
* @documentationMaturity preview
|
|
516
512
|
* @requiredField participationId
|
|
517
513
|
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
518
514
|
* @permissionScope Manage Calendars
|
|
@@ -545,7 +541,6 @@ export declare function getParticipation(participationId: string): Promise<NonNu
|
|
|
545
541
|
* 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`.
|
|
546
542
|
*
|
|
547
543
|
* @public
|
|
548
|
-
* @documentationMaturity preview
|
|
549
544
|
* @permissionScope Manage Calendars
|
|
550
545
|
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
551
546
|
* @permissionScope Manage Bookings
|
|
@@ -573,27 +568,19 @@ export interface ParticipationsQueryResult extends QueryCursorResult {
|
|
|
573
568
|
export interface ParticipationsQueryBuilder {
|
|
574
569
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
575
570
|
* @param value - Value to compare against.
|
|
576
|
-
* @documentationMaturity preview
|
|
577
571
|
*/
|
|
578
572
|
eq: (propertyName: 'scheduleId' | 'eventId' | 'externalId', value: any) => ParticipationsQueryBuilder;
|
|
579
|
-
/** @documentationMaturity preview */
|
|
580
573
|
in: (propertyName: 'scheduleId' | 'eventId' | '_id' | 'externalId', value: any) => ParticipationsQueryBuilder;
|
|
581
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
582
|
-
* @documentationMaturity preview
|
|
583
|
-
*/
|
|
574
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
584
575
|
limit: (limit: number) => ParticipationsQueryBuilder;
|
|
585
|
-
/** @param cursor - A pointer to specific record
|
|
586
|
-
* @documentationMaturity preview
|
|
587
|
-
*/
|
|
576
|
+
/** @param cursor - A pointer to specific record */
|
|
588
577
|
skipTo: (cursor: string) => ParticipationsQueryBuilder;
|
|
589
|
-
/** @documentationMaturity preview */
|
|
590
578
|
find: () => Promise<ParticipationsQueryResult>;
|
|
591
579
|
}
|
|
592
580
|
/**
|
|
593
581
|
* Creates a `participation` object for a schedule or event.
|
|
594
582
|
* @param participation - `participation` object to create.
|
|
595
583
|
* @public
|
|
596
|
-
* @documentationMaturity preview
|
|
597
584
|
* @requiredField participation
|
|
598
585
|
* @requiredField participation.participant
|
|
599
586
|
* @requiredField participation.participant.name
|
|
@@ -623,7 +610,6 @@ export interface CreateParticipationOptions {
|
|
|
623
610
|
* Updates a `participation` object.
|
|
624
611
|
* @param _id - Participation ID.
|
|
625
612
|
* @public
|
|
626
|
-
* @documentationMaturity preview
|
|
627
613
|
* @requiredField _id
|
|
628
614
|
* @requiredField participation
|
|
629
615
|
* @requiredField participation.revision
|
|
@@ -723,7 +709,6 @@ export interface UpdateParticipation {
|
|
|
723
709
|
* Deletes a `participation` object.
|
|
724
710
|
* @param participationId - ID of `participation` object to delete.
|
|
725
711
|
* @public
|
|
726
|
-
* @documentationMaturity preview
|
|
727
712
|
* @requiredField participationId
|
|
728
713
|
* @permissionId CALENDAR.PARTICIPATION_DELETE
|
|
729
714
|
* @permissionScope Manage Calendars
|
|
@@ -2,6 +2,8 @@ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-
|
|
|
2
2
|
import { queryBuilder } from '@wix/sdk-runtime/query-builder';
|
|
3
3
|
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
4
4
|
import * as ambassadorWixCalendarV3Participation from './calendar-v3-participation-participations.http.js';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
5
7
|
export var Status;
|
|
6
8
|
(function (Status) {
|
|
7
9
|
/** 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). */
|
|
@@ -21,7 +23,6 @@ export var WebhookIdentityType;
|
|
|
21
23
|
* Retrieves a `participation` object.
|
|
22
24
|
* @param participationId - ID of the `participation` object to retrieve.
|
|
23
25
|
* @public
|
|
24
|
-
* @documentationMaturity preview
|
|
25
26
|
* @requiredField participationId
|
|
26
27
|
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
27
28
|
* @permissionScope Manage Calendars
|
|
@@ -76,7 +77,6 @@ export async function getParticipation(participationId) {
|
|
|
76
77
|
* 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`.
|
|
77
78
|
*
|
|
78
79
|
* @public
|
|
79
|
-
* @documentationMaturity preview
|
|
80
80
|
* @permissionScope Manage Calendars
|
|
81
81
|
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
82
82
|
* @permissionScope Manage Bookings
|
|
@@ -112,7 +112,7 @@ export function queryParticipations() {
|
|
|
112
112
|
});
|
|
113
113
|
},
|
|
114
114
|
responseTransformer: ({ data, }) => {
|
|
115
|
-
const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
|
|
115
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, []));
|
|
116
116
|
return {
|
|
117
117
|
items: transformedData?.participations,
|
|
118
118
|
pagingMetadata: transformedData?.pagingMetadata,
|
|
@@ -134,7 +134,6 @@ export function queryParticipations() {
|
|
|
134
134
|
* Creates a `participation` object for a schedule or event.
|
|
135
135
|
* @param participation - `participation` object to create.
|
|
136
136
|
* @public
|
|
137
|
-
* @documentationMaturity preview
|
|
138
137
|
* @requiredField participation
|
|
139
138
|
* @requiredField participation.participant
|
|
140
139
|
* @requiredField participation.participant.name
|
|
@@ -182,7 +181,6 @@ export async function createParticipation(participation, options) {
|
|
|
182
181
|
* Updates a `participation` object.
|
|
183
182
|
* @param _id - Participation ID.
|
|
184
183
|
* @public
|
|
185
|
-
* @documentationMaturity preview
|
|
186
184
|
* @requiredField _id
|
|
187
185
|
* @requiredField participation
|
|
188
186
|
* @requiredField participation.revision
|
|
@@ -224,7 +222,6 @@ export async function updateParticipation(_id, participation) {
|
|
|
224
222
|
* Deletes a `participation` object.
|
|
225
223
|
* @param participationId - ID of `participation` object to delete.
|
|
226
224
|
* @public
|
|
227
|
-
* @documentationMaturity preview
|
|
228
225
|
* @requiredField participationId
|
|
229
226
|
* @permissionId CALENDAR.PARTICIPATION_DELETE
|
|
230
227
|
* @permissionScope Manage Calendars
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-v3-participation-participations.universal.js","sourceRoot":"","sources":["../../../../src/calendar-v3-participation-participations.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"calendar-v3-participation-participations.universal.js","sourceRoot":"","sources":["../../../../src/calendar-v3-participation-participations.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,oDAAoD,CAAC;AAC3G,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAyIlF,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;AAqSD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4C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AC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE;YACrD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,iBAAiB,CAAC,CACpB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_calendar_participations",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.calendar.v3.participation"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "8b8c2a3d9c1e14ea5d5e6e334c4e719de949a9d651e8f1a540e5e9c8"
|
|
52
52
|
}
|