@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.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/calendar-v3-participation-participations.context.d.ts +25 -0
  11. package/build/cjs/src/calendar-v3-participation-participations.context.js +30 -0
  12. package/build/cjs/src/calendar-v3-participation-participations.context.js.map +1 -0
  13. package/build/cjs/src/calendar-v3-participation-participations.http.d.ts +29 -0
  14. package/build/cjs/src/calendar-v3-participation-participations.http.js +204 -0
  15. package/build/cjs/src/calendar-v3-participation-participations.http.js.map +1 -0
  16. package/build/cjs/src/calendar-v3-participation-participations.meta.d.ts +23 -0
  17. package/build/cjs/src/calendar-v3-participation-participations.meta.js +123 -0
  18. package/build/cjs/src/calendar-v3-participation-participations.meta.js.map +1 -0
  19. package/build/cjs/src/calendar-v3-participation-participations.public.d.ts +67 -0
  20. package/build/cjs/src/calendar-v3-participation-participations.public.js +73 -0
  21. package/build/cjs/src/calendar-v3-participation-participations.public.js.map +1 -0
  22. package/build/cjs/src/calendar-v3-participation-participations.types.d.ts +364 -0
  23. package/build/cjs/src/calendar-v3-participation-participations.types.js +19 -0
  24. package/build/cjs/src/calendar-v3-participation-participations.types.js.map +1 -0
  25. package/build/cjs/src/calendar-v3-participation-participations.universal.d.ts +674 -0
  26. package/build/cjs/src/calendar-v3-participation-participations.universal.js +291 -0
  27. package/build/cjs/src/calendar-v3-participation-participations.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/calendar-v3-participation-participations.context.d.ts +25 -0
  39. package/build/es/src/calendar-v3-participation-participations.context.js +25 -0
  40. package/build/es/src/calendar-v3-participation-participations.context.js.map +1 -0
  41. package/build/es/src/calendar-v3-participation-participations.http.d.ts +29 -0
  42. package/build/es/src/calendar-v3-participation-participations.http.js +196 -0
  43. package/build/es/src/calendar-v3-participation-participations.http.js.map +1 -0
  44. package/build/es/src/calendar-v3-participation-participations.meta.d.ts +23 -0
  45. package/build/es/src/calendar-v3-participation-participations.meta.js +92 -0
  46. package/build/es/src/calendar-v3-participation-participations.meta.js.map +1 -0
  47. package/build/es/src/calendar-v3-participation-participations.public.d.ts +67 -0
  48. package/build/es/src/calendar-v3-participation-participations.public.js +63 -0
  49. package/build/es/src/calendar-v3-participation-participations.public.js.map +1 -0
  50. package/build/es/src/calendar-v3-participation-participations.types.d.ts +364 -0
  51. package/build/es/src/calendar-v3-participation-participations.types.js +16 -0
  52. package/build/es/src/calendar-v3-participation-participations.types.js.map +1 -0
  53. package/build/es/src/calendar-v3-participation-participations.universal.d.ts +674 -0
  54. package/build/es/src/calendar-v3-participation-participations.universal.js +260 -0
  55. package/build/es/src/calendar-v3-participation-participations.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/calendar-v3-participation-participations.context.d.ts +25 -0
  66. package/build/internal/cjs/src/calendar-v3-participation-participations.context.js +30 -0
  67. package/build/internal/cjs/src/calendar-v3-participation-participations.context.js.map +1 -0
  68. package/build/internal/cjs/src/calendar-v3-participation-participations.http.d.ts +29 -0
  69. package/build/internal/cjs/src/calendar-v3-participation-participations.http.js +204 -0
  70. package/build/internal/cjs/src/calendar-v3-participation-participations.http.js.map +1 -0
  71. package/build/internal/cjs/src/calendar-v3-participation-participations.meta.d.ts +23 -0
  72. package/build/internal/cjs/src/calendar-v3-participation-participations.meta.js +123 -0
  73. package/build/internal/cjs/src/calendar-v3-participation-participations.meta.js.map +1 -0
  74. package/build/internal/cjs/src/calendar-v3-participation-participations.public.d.ts +67 -0
  75. package/build/internal/cjs/src/calendar-v3-participation-participations.public.js +73 -0
  76. package/build/internal/cjs/src/calendar-v3-participation-participations.public.js.map +1 -0
  77. package/build/internal/cjs/src/calendar-v3-participation-participations.types.d.ts +364 -0
  78. package/build/internal/cjs/src/calendar-v3-participation-participations.types.js +19 -0
  79. package/build/internal/cjs/src/calendar-v3-participation-participations.types.js.map +1 -0
  80. package/build/internal/cjs/src/calendar-v3-participation-participations.universal.d.ts +674 -0
  81. package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js +291 -0
  82. package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/calendar-v3-participation-participations.context.d.ts +25 -0
  93. package/build/internal/es/src/calendar-v3-participation-participations.context.js +25 -0
  94. package/build/internal/es/src/calendar-v3-participation-participations.context.js.map +1 -0
  95. package/build/internal/es/src/calendar-v3-participation-participations.http.d.ts +29 -0
  96. package/build/internal/es/src/calendar-v3-participation-participations.http.js +196 -0
  97. package/build/internal/es/src/calendar-v3-participation-participations.http.js.map +1 -0
  98. package/build/internal/es/src/calendar-v3-participation-participations.meta.d.ts +23 -0
  99. package/build/internal/es/src/calendar-v3-participation-participations.meta.js +92 -0
  100. package/build/internal/es/src/calendar-v3-participation-participations.meta.js.map +1 -0
  101. package/build/internal/es/src/calendar-v3-participation-participations.public.d.ts +67 -0
  102. package/build/internal/es/src/calendar-v3-participation-participations.public.js +63 -0
  103. package/build/internal/es/src/calendar-v3-participation-participations.public.js.map +1 -0
  104. package/build/internal/es/src/calendar-v3-participation-participations.types.d.ts +364 -0
  105. package/build/internal/es/src/calendar-v3-participation-participations.types.js +16 -0
  106. package/build/internal/es/src/calendar-v3-participation-participations.types.js.map +1 -0
  107. package/build/internal/es/src/calendar-v3-participation-participations.universal.d.ts +674 -0
  108. package/build/internal/es/src/calendar-v3-participation-participations.universal.js +260 -0
  109. package/build/internal/es/src/calendar-v3-participation-participations.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -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;KACF,CAAC;IAEF,OAAO,IA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AAY;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 & 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,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;IAU9B,MAAM,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AG,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, 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,73 @@
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 = exports.__metadata = void 0;
4
+ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
5
+ const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
6
+ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
7
+ const sdk_types_1 = require("@wix/sdk-types");
8
+ const calendar_v3_participation_participations_universal_js_1 = require("./calendar-v3-participation-participations.universal.js");
9
+ exports.__metadata = { PACKAGE_NAME: '@wix/calendar' };
10
+ function getParticipation(httpClient) {
11
+ return (participationId) => (0, calendar_v3_participation_participations_universal_js_1.getParticipation)(participationId,
12
+ // @ts-ignore
13
+ { httpClient });
14
+ }
15
+ exports.getParticipation = getParticipation;
16
+ function queryParticipations(httpClient) {
17
+ return () => (0, calendar_v3_participation_participations_universal_js_1.queryParticipations)(
18
+ // @ts-ignore
19
+ { httpClient });
20
+ }
21
+ exports.queryParticipations = queryParticipations;
22
+ function createParticipation(httpClient) {
23
+ return (participation, options) => (0, calendar_v3_participation_participations_universal_js_1.createParticipation)(participation, options,
24
+ // @ts-ignore
25
+ { httpClient });
26
+ }
27
+ exports.createParticipation = createParticipation;
28
+ function updateParticipation(httpClient) {
29
+ return (_id, participation) => (0, calendar_v3_participation_participations_universal_js_1.updateParticipation)(_id, participation,
30
+ // @ts-ignore
31
+ { httpClient });
32
+ }
33
+ exports.updateParticipation = updateParticipation;
34
+ function deleteParticipation(httpClient) {
35
+ return (participationId) => (0, calendar_v3_participation_participations_universal_js_1.deleteParticipation)(participationId,
36
+ // @ts-ignore
37
+ { httpClient });
38
+ }
39
+ exports.deleteParticipation = deleteParticipation;
40
+ exports.onParticipationCreated = (0, sdk_types_1.EventDefinition)('wix.calendar.v3.participation_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
41
+ {
42
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
43
+ paths: [
44
+ { path: 'entity.createdDate' },
45
+ { path: 'entity.updatedDate' },
46
+ { path: 'metadata.eventTime' },
47
+ ],
48
+ },
49
+ ])))();
50
+ exports.onParticipationDeleted = (0, sdk_types_1.EventDefinition)('wix.calendar.v3.participation_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
51
+ {
52
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
53
+ paths: [
54
+ { path: 'undefined.createdDate' },
55
+ { path: 'undefined.updatedDate' },
56
+ { path: 'metadata.eventTime' },
57
+ ],
58
+ },
59
+ ])))();
60
+ exports.onParticipationUpdated = (0, sdk_types_1.EventDefinition)('wix.calendar.v3.participation_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
61
+ {
62
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
63
+ paths: [
64
+ { path: 'entity.createdDate' },
65
+ { path: 'entity.updatedDate' },
66
+ { path: 'metadata.eventTime' },
67
+ ],
68
+ },
69
+ ])))();
70
+ var calendar_v3_participation_participations_universal_js_2 = require("./calendar-v3-participation-participations.universal.js");
71
+ Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return calendar_v3_participation_participations_universal_js_2.Status; } });
72
+ Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return calendar_v3_participation_participations_universal_js_2.WebhookIdentityType; } });
73
+ //# 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":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,mIAciE;AAEpD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,CAAC,eAA8B,EAAE,EAAE,CACxC,IAAA,wEAAyB,EACvB,eAAe;IACf,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,4CASC;AAaD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,2EAA4B;IAC1B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,kDAQC;AAyBD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,aAA4B,EAAE,OAAoC,EAAE,EAAE,CAC5E,IAAA,2EAA4B,EAC1B,aAAa,EACb,OAAO;IACP,aAAa;IACb,EAAE,U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