@wix/events 1.0.62 → 1.0.64

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 (29) hide show
  1. package/build/cjs/src/events-guests-v1-guest.public.d.ts +1 -1
  2. package/build/cjs/src/events-guests-v1-guest.types.d.ts +8 -0
  3. package/build/cjs/src/events-guests-v1-guest.universal.d.ts +31 -5
  4. package/build/cjs/src/events-guests-v1-guest.universal.js +3 -1
  5. package/build/cjs/src/events-guests-v1-guest.universal.js.map +1 -1
  6. package/build/cjs/src/events-v2-policy.http.d.ts +5 -6
  7. package/build/cjs/src/events-v2-policy.http.js +5 -6
  8. package/build/cjs/src/events-v2-policy.http.js.map +1 -1
  9. package/build/cjs/src/events-v2-policy.public.d.ts +1 -1
  10. package/build/cjs/src/events-v2-policy.public.js +1 -1
  11. package/build/cjs/src/events-v2-policy.public.js.map +1 -1
  12. package/build/cjs/src/events-v2-policy.universal.d.ts +52 -29
  13. package/build/cjs/src/events-v2-policy.universal.js +22 -15
  14. package/build/cjs/src/events-v2-policy.universal.js.map +1 -1
  15. package/build/es/src/events-guests-v1-guest.public.d.ts +1 -1
  16. package/build/es/src/events-guests-v1-guest.types.d.ts +8 -0
  17. package/build/es/src/events-guests-v1-guest.universal.d.ts +31 -5
  18. package/build/es/src/events-guests-v1-guest.universal.js +3 -1
  19. package/build/es/src/events-guests-v1-guest.universal.js.map +1 -1
  20. package/build/es/src/events-v2-policy.http.d.ts +5 -6
  21. package/build/es/src/events-v2-policy.http.js +5 -6
  22. package/build/es/src/events-v2-policy.http.js.map +1 -1
  23. package/build/es/src/events-v2-policy.public.d.ts +1 -1
  24. package/build/es/src/events-v2-policy.public.js +1 -1
  25. package/build/es/src/events-v2-policy.public.js.map +1 -1
  26. package/build/es/src/events-v2-policy.universal.d.ts +52 -29
  27. package/build/es/src/events-v2-policy.universal.js +22 -15
  28. package/build/es/src/events-v2-policy.universal.js.map +1 -1
  29. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
2
  export declare function queryEventGuests(httpClient: HttpClient): () => import("./events-guests-v1-guest.universal").GuestsQueryBuilder;
3
3
  export { SubdivisionType, AttendanceStatus, GuestType, SortOrder, NotifyActionType, RsvpStatus, OrderStatus, TaxType, FeeName, FeeType, OrderType, } from './events-guests-v1-guest.universal';
4
- export { EventGuest, TicketDetails, GuestDetails, FormResponse, InputValue, FormattedAddress, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, OnlineConferencingLogin, QueryEventGuestsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryEventGuestsResponse, PagingMetadataV2, Cursors, StreamEventGuestsRequest, TaskContext, Empty, NotifyGuestAction, SecondaryLanguagesRequest, SecondaryLanguagesResponse, RsvpCreated, Guest, CheckIn, RsvpUpdated, RsvpDeleted, OrderConfirmed, Ticket, Money, Invoice, Item, Discount, DiscountItem, DiscountItemDiscountOneOf, CouponDiscount, PaidPlanDiscount, PaidPlanDiscountDiscountOneOf, PercentDiscount, Tax, Fee, OrderUpdated, OrderDeleted, EventDeleted, Task, TaskKey, GuestsQueryResult, GuestsQueryBuilder, } from './events-guests-v1-guest.universal';
4
+ export { EventGuest, TicketDetails, GuestDetails, FormResponse, InputValue, FormattedAddress, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, OnlineConferencingLogin, QueryEventGuestsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryEventGuestsResponse, PagingMetadataV2, Cursors, StreamEventGuestsRequest, TaskContext, Empty, NotifyGuestAction, SecondaryLanguagesRequest, SecondaryLanguagesResponse, RsvpCreated, Guest, CheckIn, RsvpUpdated, RsvpDeleted, OrderConfirmed, Ticket, Money, Invoice, Item, Discount, DiscountItem, DiscountItemDiscountOneOf, CouponDiscount, PaidPlanDiscount, PaidPlanDiscountDiscountOneOf, PercentDiscount, Tax, Fee, OrderUpdated, OrderDeleted, EventDeleted, Task, TaskKey, DeleteTicketGuestRequest, GuestsQueryResult, GuestsQueryBuilder, } from './events-guests-v1-guest.universal';
@@ -691,3 +691,11 @@ export interface TaskKey {
691
691
  instanceId?: string;
692
692
  subjectId?: string | null;
693
693
  }
694
+ export interface DeleteTicketGuestRequest {
695
+ /** Guest id. */
696
+ eventId?: string;
697
+ /** Order number. */
698
+ orderNumber?: string;
699
+ /** Ticket number. */
700
+ ticketNumber?: string;
701
+ }
@@ -697,6 +697,14 @@ export interface TaskKey {
697
697
  instanceId?: string;
698
698
  subjectId?: string | null;
699
699
  }
700
+ export interface DeleteTicketGuestRequest {
701
+ /** Guest id. */
702
+ eventId?: string;
703
+ /** Order number. */
704
+ orderNumber?: string;
705
+ /** Ticket number. */
706
+ ticketNumber?: string;
707
+ }
700
708
  /**
701
709
  * Creates a query to retrieve a list of guests.
702
710
  *
@@ -715,7 +723,9 @@ export interface TaskKey {
715
723
  * The functions that are chained to `queryEventGuests()` are applied in the order they are called. For example, if you sort the `_createdDate` property in ascending order and then the `_updatedDate` property in descending order, the results are sorted by the created date and then, if there are multiple results with the same date, the items are sorted by the updated date.
716
724
  *
717
725
  * The table below shows which `GuestsQueryBuilder` functions are supported for `queryEventGuests()`. You can only use one filter function for each property. If a property is used in more than one filter, only the first filter will work.
718
- * @public */
726
+ * @public
727
+ * @documentationMaturity preview
728
+ */
719
729
  export declare function queryEventGuests(): GuestsQueryBuilder;
720
730
  interface QueryCursorResult {
721
731
  cursors: Cursors;
@@ -733,34 +743,50 @@ export interface GuestsQueryResult extends QueryCursorResult {
733
743
  export interface GuestsQueryBuilder {
734
744
  /** @param propertyName - Property whose value is compared with `value`.
735
745
  * @param value - Value to compare against.
746
+ * @documentationMaturity preview
736
747
  */
737
748
  eq: (propertyName: '_id' | 'eventId' | 'rsvpId' | 'orderNumber' | 'ticketNumber' | 'contactId' | 'guestDetails.checkedIn' | 'attendanceStatus' | 'secondaryLanguageCode' | '_createdDate' | '_updatedDate' | 'attendanceStatusUpdatedDate' | 'memberId' | 'guestType', value: any) => GuestsQueryBuilder;
738
749
  /** @param propertyName - Property whose value is compared with `value`.
739
750
  * @param value - Value to compare against.
751
+ * @documentationMaturity preview
740
752
  */
741
753
  ne: (propertyName: '_id' | 'eventId' | 'rsvpId' | 'orderNumber' | 'ticketNumber' | 'contactId' | 'guestDetails.checkedIn' | 'attendanceStatus' | 'secondaryLanguageCode' | '_createdDate' | '_updatedDate' | 'attendanceStatusUpdatedDate' | 'memberId' | 'guestType', value: any) => GuestsQueryBuilder;
742
754
  /** @param propertyName - Property whose value is compared with `value`.
743
755
  * @param value - Value to compare against.
756
+ * @documentationMaturity preview
744
757
  */
745
758
  gt: (propertyName: '_createdDate' | '_updatedDate' | 'attendanceStatusUpdatedDate', value: any) => GuestsQueryBuilder;
746
759
  /** @param propertyName - Property whose value is compared with `value`.
747
760
  * @param value - Value to compare against.
761
+ * @documentationMaturity preview
748
762
  */
749
763
  le: (propertyName: '_createdDate' | '_updatedDate' | 'attendanceStatusUpdatedDate', value: any) => GuestsQueryBuilder;
750
764
  /** @param propertyName - Property whose value is compared with `value`.
751
765
  * @param value - Value to compare against.
766
+ * @documentationMaturity preview
752
767
  */
753
768
  lt: (propertyName: '_createdDate' | '_updatedDate' | 'attendanceStatusUpdatedDate', value: any) => GuestsQueryBuilder;
769
+ /** @documentationMaturity preview */
754
770
  in: (propertyName: '_id' | 'eventId' | 'rsvpId' | 'orderNumber' | 'ticketNumber' | 'contactId' | 'attendanceStatus' | 'secondaryLanguageCode' | '_createdDate' | '_updatedDate' | 'attendanceStatusUpdatedDate' | 'memberId' | 'guestType', value: any) => GuestsQueryBuilder;
771
+ /** @documentationMaturity preview */
755
772
  exists: (propertyName: '_id' | 'eventId' | 'rsvpId' | 'orderNumber' | 'ticketNumber' | 'tickets' | 'contactId' | 'guestDetails.checkedIn' | 'attendanceStatus' | 'secondaryLanguageCode' | '_createdDate' | '_updatedDate' | 'attendanceStatusUpdatedDate' | 'memberId' | 'guestType', value: boolean) => GuestsQueryBuilder;
756
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
773
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
774
+ * @documentationMaturity preview
775
+ */
757
776
  ascending: (...propertyNames: Array<'_createdDate' | '_updatedDate' | 'attendanceStatusUpdatedDate'>) => GuestsQueryBuilder;
758
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
777
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
778
+ * @documentationMaturity preview
779
+ */
759
780
  descending: (...propertyNames: Array<'_createdDate' | '_updatedDate' | 'attendanceStatusUpdatedDate'>) => GuestsQueryBuilder;
760
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
781
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
782
+ * @documentationMaturity preview
783
+ */
761
784
  limit: (limit: number) => GuestsQueryBuilder;
762
- /** @param cursor - A pointer to specific record */
785
+ /** @param cursor - A pointer to specific record
786
+ * @documentationMaturity preview
787
+ */
763
788
  skipTo: (cursor: string) => GuestsQueryBuilder;
789
+ /** @documentationMaturity preview */
764
790
  find: () => Promise<GuestsQueryResult>;
765
791
  }
766
792
  export {};
@@ -168,7 +168,9 @@ const _queryEventGuestsResponse = { guests: '_eventGuest' };
168
168
  * The functions that are chained to `queryEventGuests()` are applied in the order they are called. For example, if you sort the `_createdDate` property in ascending order and then the `_updatedDate` property in descending order, the results are sorted by the created date and then, if there are multiple results with the same date, the items are sorted by the updated date.
169
169
  *
170
170
  * The table below shows which `GuestsQueryBuilder` functions are supported for `queryEventGuests()`. You can only use one filter function for each property. If a property is used in more than one filter, only the first filter will work.
171
- * @public */
171
+ * @public
172
+ * @documentationMaturity preview
173
+ */
172
174
  function queryEventGuests() {
173
175
  const requestTransformation = { '*': '$[1]', query: '$[0]' };
174
176
  const responseTransformation = {
@@ -1 +1 @@
1
- {"version":3,"file":"events-guests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gB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,IAAA,4CAAqC,EAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AAhED,4CAgEC"}
1
+ {"version":3,"file":"events-guests-v1-guest.universal.js","sourceRoot":"","sources":["../../../src/events-guests-v1-guest.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,gGAAkF;AAClF,aAAa;AACb,4FAA6E;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAET,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA+H5B,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,YAAY;IACZ,8EAA2D,CAAA;IAC3D,aAAa;IACb,8EAA2D,CAAA;IAC3D,gBAAgB;IAChB,8EAA2D,CAAA;IAC3D,2BAA2B;IAC3B,8EAA2D,CAAA;IAC3D,mBAAmB;IACnB,8EAA2D,CAAA;IAC3D,8IAA8I;IAC9I,sCAAmB,CAAA;AACrB,CAAC,EAdW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAc1B;AAeD,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,qBAAqB;IACrB,mDAA+B,CAAA;IAC/B,iBAAiB;IACjB,2CAAuB,CAAA;IACvB,yBAAyB;IACzB,+CAA2B,CAAA;AAC7B,CAAC,EAPW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAO3B;AAED,IAAY,SA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EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,IAAA,4CAAqC,EAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AAhED,4CAgEC"}
@@ -16,7 +16,6 @@ export declare function createPolicy(payload: CreatePolicyRequest): RequestOptio
16
16
  /**
17
17
  * Updates a policy.
18
18
  *
19
- *
20
19
  * <!--
21
20
  * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
22
21
  * -->
@@ -40,14 +39,14 @@ export declare function updatePolicy(payload: UpdatePolicyRequest): RequestOptio
40
39
  */
41
40
  export declare function deletePolicy(payload: DeletePolicyRequest): RequestOptionsFactory<DeletePolicyResponse>;
42
41
  /**
43
- * Retrieves a list of policies, given the provided paging and filter.
42
+ * Creates a query to retrieve a list of policies, given the provided paging and filter.
44
43
  *
45
44
  *
46
45
  * The `queryPolicies()` function builds a query to retrieve a list of policies and returns a [PoliciesQueryBuilder](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder) object.
47
46
  *
48
- * The returned object contains the query definition which is typically used to run the query using the `find()` function.
47
+ * The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder/find) function.
49
48
  *
50
- * You can refine the query by chaining `PoliciesQueryBuilder` functions onto the query. `PoliciesQueryBuilder` functions enable you to sort, filter and control the results that `queryPolicies.find()` returns.
49
+ * You can refine the query by chaining `PoliciesQueryBuilder` functions onto the query. `PoliciesQueryBuilder` functions enable you to sort, filter and control the results that `PoliciesQueryBuilder.find()` returns.
51
50
  *
52
51
  * The query runs with the following `PoliciesQueryBuilder` defaults that you can override:
53
52
  *
@@ -56,14 +55,14 @@ export declare function deletePolicy(payload: DeletePolicyRequest): RequestOptio
56
55
  *
57
56
  * The functions that are chained to `queryPolicies()` are applied in the order they are called. For example, if you sort on the `_createdDate` property in ascending order and then on the id property in descending order, the results are sorted by the created date and then, if there are multiple results with the same date, the items are sorted by the id.
58
57
  *
59
- * The following `PoliciesQueryBuilder` functions are supported for `queryPolicies()`.
60
- *
61
58
  * The table below shows which `PoliciesQueryBuilder` functions are supported for `queryPoliciesGuests()`. You can only use one filter function for each property. If a property is used in more than one filter, only the first filter will work.
62
59
  */
63
60
  export declare function queryPolicies(payload: QueryPoliciesRequest): RequestOptionsFactory<QueryPoliciesResponse>;
64
61
  /**
65
62
  * Changes policy order in an event dashboard and agreement checkbox on the checkout form.
63
+ * For example, if we have 3 policies in the list, after using this function the 3rd policy will become the 1st, and other policies will move by 1 position. By default, the policies are arranged by the created date in descending order.
66
64
  *
65
+ * > **Note**: it is possible to use both `beforePolicyId` and `afterPolicyId` at the same time but only the last one defined will be executed.
67
66
  *
68
67
  * <!--
69
68
  * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
@@ -92,7 +92,6 @@ exports.createPolicy = createPolicy;
92
92
  /**
93
93
  * Updates a policy.
94
94
  *
95
- *
96
95
  * <!--
97
96
  * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
98
97
  * -->
@@ -156,14 +155,14 @@ function deletePolicy(payload) {
156
155
  }
157
156
  exports.deletePolicy = deletePolicy;
158
157
  /**
159
- * Retrieves a list of policies, given the provided paging and filter.
158
+ * Creates a query to retrieve a list of policies, given the provided paging and filter.
160
159
  *
161
160
  *
162
161
  * The `queryPolicies()` function builds a query to retrieve a list of policies and returns a [PoliciesQueryBuilder](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder) object.
163
162
  *
164
- * The returned object contains the query definition which is typically used to run the query using the `find()` function.
163
+ * The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder/find) function.
165
164
  *
166
- * You can refine the query by chaining `PoliciesQueryBuilder` functions onto the query. `PoliciesQueryBuilder` functions enable you to sort, filter and control the results that `queryPolicies.find()` returns.
165
+ * You can refine the query by chaining `PoliciesQueryBuilder` functions onto the query. `PoliciesQueryBuilder` functions enable you to sort, filter and control the results that `PoliciesQueryBuilder.find()` returns.
167
166
  *
168
167
  * The query runs with the following `PoliciesQueryBuilder` defaults that you can override:
169
168
  *
@@ -172,8 +171,6 @@ exports.deletePolicy = deletePolicy;
172
171
  *
173
172
  * The functions that are chained to `queryPolicies()` are applied in the order they are called. For example, if you sort on the `_createdDate` property in ascending order and then on the id property in descending order, the results are sorted by the created date and then, if there are multiple results with the same date, the items are sorted by the id.
174
173
  *
175
- * The following `PoliciesQueryBuilder` functions are supported for `queryPolicies()`.
176
- *
177
174
  * The table below shows which `PoliciesQueryBuilder` functions are supported for `queryPoliciesGuests()`. You can only use one filter function for each property. If a property is used in more than one filter, only the first filter will work.
178
175
  */
179
176
  function queryPolicies(payload) {
@@ -199,7 +196,9 @@ function queryPolicies(payload) {
199
196
  exports.queryPolicies = queryPolicies;
200
197
  /**
201
198
  * Changes policy order in an event dashboard and agreement checkbox on the checkout form.
199
+ * For example, if we have 3 policies in the list, after using this function the 3rd policy will become the 1st, and other policies will move by 1 position. By default, the policies are arranged by the created date in descending order.
202
200
  *
201
+ * > **Note**: it is possible to use both `beforePolicyId` and `afterPolicyId` at the same time but only the last one defined will be executed.
203
202
  *
204
203
  * <!--
205
204
  * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
@@ -1 +1 @@
1
- {"version":3,"file":"events-v2-policy.http.js","sourceRoot":"","sources":["../../../src/events-v2-policy.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAkBhD,MAAM,oBAAoB,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AACnD,MAAM,qBAAqB,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AACpD,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,kBAAkB,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AACjD,MAAM,OAAO,GAAG;IACd,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AACF,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,sBAAsB,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;AACvD,MAAM,4BAA4B,GAAG,EAAE,CAAC;AACxC,MAAM,6BAA6B,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;AAC9D,MAAM,oBAAoB,GAAG;IAC3B,IAAI,EAAE,2BAA2B;IACjC,MAAM,EAAE,SAAS;CAClB,CAAC;AACF,MAAM,qBAAqB,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAEpD,SAAS,qCAAqC,CAC5C,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;g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YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,sBAAsB,CAAC,OAAO,GAAG,OAAO,CAAC;IAEzC,OAAO,sBAAsB,CAAC;AAChC,CAAC;AA9BD,oDA8BC;AAED;;;;;GAKG;AACH,SAAgB,SAAS,CACvB,OAAyB;IAEzB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EACrD,iBAAiB,EACjB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EAAC,kBAAkB,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IAE1E,SAAS,WAAW,CAAC,EAAE,IAAI,EAAO;QAChC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,KAAY;YACpB,GAAG,EAAE,qCAAqC,CAAC;gBACzC,SAAS,EAAE,yBAAyB;gBACpC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,MAAM,EAAE,IAAA,iCAAiB,EAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC;IAE9B,OAAO,WAAW,CAAC;AACrB,CAAC;AA5BD,8BA4BC"}
@@ -4,7 +4,7 @@ export declare function createPolicy(httpClient: HttpClient): (policy: Policy) =
4
4
  export declare function updatePolicy(httpClient: HttpClient): (_id: string | null, policy: UpdatePolicy) => Promise<Policy>;
5
5
  export declare function deletePolicy(httpClient: HttpClient): (policyId: string) => Promise<void>;
6
6
  export declare function queryPolicies(httpClient: HttpClient): () => import("./events-v2-policy.universal").PoliciesQueryBuilder;
7
- export declare function reorderEventPolicies(httpClient: HttpClient): (policyId: string, options: ReorderEventPoliciesOptions) => Promise<import("./events-v2-policy.universal").ReorderEventPoliciesResponse>;
7
+ export declare function reorderEventPolicies(httpClient: HttpClient): (policyId: string, eventId: string, options?: ReorderEventPoliciesOptions | undefined) => Promise<import("./events-v2-policy.universal").ReorderEventPoliciesResponse>;
8
8
  export declare function getPolicy(httpClient: HttpClient): (policyId: string) => Promise<Policy>;
9
9
  export { SortOrder, LocationType, SubdivisionType, Status, EventStatus, } from './events-v2-policy.universal';
10
10
  export { Policy, CreatePolicyRequest, CreatePolicyResponse, UpdatePolicyRequest, UpdatePolicyResponse, UpdatePolicySortIndexRequest, UpdatePolicySortIndexResponse, DeletePolicyRequest, DeletePolicyResponse, QueryPoliciesRequest, CommonQueryV2, CommonQueryV2PagingMethodOneOf, CommonSorting, CommonPaging, CommonCursorPaging, QueryPoliciesResponse, CommonPagingMetadataV2, CommonCursors, ReorderEventPoliciesRequest, ReorderEventPoliciesRequestReferencePolicyOneOf, ReorderEventPoliciesResponse, GetPolicyRequest, GetPolicyResponse, EventCopied, Location, MapCoordinates, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, ScheduleConfig, Recurrences, Occurrence, Empty, UpdatePolicy, PoliciesQueryResult, PoliciesQueryBuilder, ReorderEventPoliciesOptions, } from './events-v2-policy.universal';
@@ -27,7 +27,7 @@ function queryPolicies(httpClient) {
27
27
  }
28
28
  exports.queryPolicies = queryPolicies;
29
29
  function reorderEventPolicies(httpClient) {
30
- return (policyId, options) => (0, events_v2_policy_universal_1.reorderEventPolicies)(policyId, options,
30
+ return (policyId, eventId, options) => (0, events_v2_policy_universal_1.reorderEventPolicies)(policyId, eventId, options,
31
31
  // @ts-ignore
32
32
  { httpClient });
33
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"events-v2-policy.public.js","sourceRoot":"","sources":["../../../src/events-v2-policy.public.ts"],"names":[],"mappings":";;;AACA,6EAUsC;AAEtC,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,MAAc,EAAE,EAAE,CACxB,IAAA,yCAAqB,EACnB,MAAM;IACN,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oCAOC;AAED,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,GAAkB,EAAE,MAAoB,EAAE,EAAE,CAClD,IAAA,yCAAqB,EACnB,GAAG,EACH,MAAM;IACN,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,oCAQC;AAED,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,QAAgB,EAAE,EAAE,CAC1B,IAAA,yCAAqB,EACnB,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oCAOC;AAED,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,GAAG,EAAE,CACV,IAAA,0CAAsB;IACpB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAND,sCAMC;AAED,SAAgB,oBAAoB,CAAC,UAAsB;IACzD,OAAO,CAAC,QAAgB,EAAE,OAAoC,EAAE,EAAE,CAChE,IAAA,iDAA6B,EAC3B,QAAQ,EACR,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,oDAQC;AAED,SAAgB,SAAS,CAAC,UAAsB;IAC9C,OAAO,CAAC,QAAgB,EAAE,EAAE,CAC1B,IAAA,sCAAkB,EAChB,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,8BAOC;AAED,2EAMsC;AALpC,uHAAA,SAAS,OAAA;AACT,0HAAA,YAAY,OAAA;AACZ,6HAAA,eAAe,OAAA;AACf,oHAAA,MAAM,OAAA;AACN,yHAAA,WAAW,OAAA"}
1
+ {"version":3,"file":"events-v2-policy.public.js","sourceRoot":"","sources":["../../../src/events-v2-policy.public.ts"],"names":[],"mappings":";;;AACA,6EAUsC;AAEt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11
11
  */
12
12
  _id?: string | null;
13
13
  /**
14
- * Revision number, which increments by 1 each time the policy is updated. To prevent conflicting changes, the existing revision must be used when updating a policy.
14
+ * Revision number, which increments by 1 each time the policy is updated. To prevent conflicting changes, the existing revision must be used when updating a policy. If you try to use the previous revision, you'll get an error.
15
15
  * @readonly
16
16
  */
17
17
  revision?: string | null;
18
18
  /**
19
- * Date and time when the policy was created in `yyyy-mm-ddThh:mm:sssZ` format.
19
+ * Date and time when the policy was created.
20
20
  * @readonly
21
21
  */
22
22
  _createdDate?: Date;
23
23
  /**
24
- * Date and time of the policy's latest update in `yyyy-mm-ddThh:mm:sssZ` format.
24
+ * Date and time of the policy's latest update in.
25
25
  * @readonly
26
26
  */
27
27
  _updatedDate?: Date;
28
28
  /**
29
- * Policy name.
29
+ * Policy name that is visible in the dashboard and checkout form.
30
30
  *
31
31
  * Min: 1 character
32
32
  *
@@ -34,14 +34,16 @@ export interface Policy {
34
34
  */
35
35
  name?: string;
36
36
  /**
37
- * Policy body. Here you can enter various terms and conditions.
37
+ * Policy body, usually containing various terms and conditions.
38
38
  *
39
39
  * Min: 1 character
40
40
  *
41
- * Max: 50000 characters
41
+ * Max: 50000 characters.
42
+ *
43
+ * **Note**: You can write text using various HTML tags such as `<p>`, `<b>`, `<ul>`, etc.
42
44
  */
43
45
  body?: string;
44
- /** Event ID to which the policy belongs. */
46
+ /** ID of the event to which the policy belongs. */
45
47
  eventId?: string;
46
48
  }
47
49
  export interface CreatePolicyRequest {
@@ -155,16 +157,16 @@ export interface ReorderEventPoliciesRequest extends ReorderEventPoliciesRequest
155
157
  eventId: string;
156
158
  /** Event policy ID. */
157
159
  policyId: string;
158
- /** Move the given policyId before the referenced policy. */
160
+ /** Move the given `policyId` before the specified policy. */
159
161
  beforePolicyId?: string;
160
- /** Move the given policyId after the referenced policy. */
162
+ /** Move the given `policyId` after the specified policy. */
161
163
  afterPolicyId?: string;
162
164
  }
163
165
  /** @oneof */
164
166
  export interface ReorderEventPoliciesRequestReferencePolicyOneOf {
165
167
  /** */
166
168
  beforePolicyId?: string;
167
- /** Move the given policyId after the referenced policy. */
169
+ /** Move the given `policyId` after the specified policy. */
168
170
  afterPolicyId?: string;
169
171
  }
170
172
  export interface ReorderEventPoliciesResponse {
@@ -380,6 +382,7 @@ export interface Empty {
380
382
  *
381
383
  * You can create up to 3 policies per event. If you try to create more than 3, you'll get the "Maximum number of policies for the event has been reached" error.
382
384
  * @public
385
+ * @documentationMaturity preview
383
386
  * @requiredField policy
384
387
  * @requiredField policy.body
385
388
  * @requiredField policy.eventId
@@ -391,7 +394,6 @@ export declare function createPolicy(policy: Policy): Promise<Policy>;
391
394
  /**
392
395
  * Updates a policy.
393
396
  *
394
- *
395
397
  * <!--
396
398
  * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
397
399
  * -->
@@ -400,6 +402,7 @@ export declare function createPolicy(policy: Policy): Promise<Policy>;
400
402
  *
401
403
  * Each time the policy is updated, `revision` increments by 1. The existing `revision` must be included when updating the policy. This ensures you're working with the latest policy and prevents unintended overwrites.
402
404
  * @public
405
+ * @documentationMaturity preview
403
406
  * @requiredField _id
404
407
  * @requiredField policy
405
408
  * @requiredField policy.body
@@ -448,7 +451,7 @@ export interface UpdatePolicy {
448
451
  * Max: 50000 characters
449
452
  */
450
453
  body?: string;
451
- /** Event ID to which the policy belongs. */
454
+ /** ID of the event to which the policy belongs. */
452
455
  eventId?: string;
453
456
  }
454
457
  /**
@@ -463,20 +466,21 @@ export interface UpdatePolicy {
463
466
  *
464
467
  * Deleted policies are not returned by the `getPolicy()` or `queryPolicies()` functions.
465
468
  * @public
469
+ * @documentationMaturity preview
466
470
  * @requiredField policyId
467
471
  * @param options - Options for Delete Policy function.
468
472
  * @param policyId - ID of the policy to delete.
469
473
  */
470
474
  export declare function deletePolicy(policyId: string): Promise<void>;
471
475
  /**
472
- * Retrieves a list of policies, given the provided paging and filter.
476
+ * Creates a query to retrieve a list of policies, given the provided paging and filter.
473
477
  *
474
478
  *
475
479
  * The `queryPolicies()` function builds a query to retrieve a list of policies and returns a [PoliciesQueryBuilder](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder) object.
476
480
  *
477
- * The returned object contains the query definition which is typically used to run the query using the `find()` function.
481
+ * The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder/find) function.
478
482
  *
479
- * You can refine the query by chaining `PoliciesQueryBuilder` functions onto the query. `PoliciesQueryBuilder` functions enable you to sort, filter and control the results that `queryPolicies.find()` returns.
483
+ * You can refine the query by chaining `PoliciesQueryBuilder` functions onto the query. `PoliciesQueryBuilder` functions enable you to sort, filter and control the results that `PoliciesQueryBuilder.find()` returns.
480
484
  *
481
485
  * The query runs with the following `PoliciesQueryBuilder` defaults that you can override:
482
486
  *
@@ -485,10 +489,10 @@ export declare function deletePolicy(policyId: string): Promise<void>;
485
489
  *
486
490
  * The functions that are chained to `queryPolicies()` are applied in the order they are called. For example, if you sort on the `_createdDate` property in ascending order and then on the id property in descending order, the results are sorted by the created date and then, if there are multiple results with the same date, the items are sorted by the id.
487
491
  *
488
- * The following `PoliciesQueryBuilder` functions are supported for `queryPolicies()`.
489
- *
490
492
  * The table below shows which `PoliciesQueryBuilder` functions are supported for `queryPoliciesGuests()`. You can only use one filter function for each property. If a property is used in more than one filter, only the first filter will work.
491
- * @public */
493
+ * @public
494
+ * @documentationMaturity preview
495
+ */
492
496
  export declare function queryPolicies(): PoliciesQueryBuilder;
493
497
  interface QueryCursorResult {
494
498
  cursors: Cursors;
@@ -510,43 +514,62 @@ export interface PoliciesQueryResult extends QueryCursorResult {
510
514
  export interface PoliciesQueryBuilder {
511
515
  /** @param propertyName - Property whose value is compared with `value`.
512
516
  * @param value - Value to compare against.
517
+ * @documentationMaturity preview
513
518
  */
514
519
  eq: (propertyName: '_id' | 'revision' | '_createdDate' | '_updatedDate' | 'name' | 'body' | 'eventId', value: any) => PoliciesQueryBuilder;
515
520
  /** @param propertyName - Property whose value is compared with `value`.
516
521
  * @param value - Value to compare against.
522
+ * @documentationMaturity preview
517
523
  */
518
524
  ne: (propertyName: '_id' | 'revision' | '_createdDate' | '_updatedDate' | 'name' | 'body' | 'eventId', value: any) => PoliciesQueryBuilder;
519
525
  /** @param propertyName - Property whose value is compared with `value`.
520
526
  * @param value - Value to compare against.
527
+ * @documentationMaturity preview
521
528
  */
522
529
  ge: (propertyName: 'revision', value: any) => PoliciesQueryBuilder;
523
530
  /** @param propertyName - Property whose value is compared with `value`.
524
531
  * @param value - Value to compare against.
532
+ * @documentationMaturity preview
525
533
  */
526
534
  gt: (propertyName: 'revision' | '_createdDate' | '_updatedDate', value: any) => PoliciesQueryBuilder;
527
535
  /** @param propertyName - Property whose value is compared with `value`.
528
536
  * @param value - Value to compare against.
537
+ * @documentationMaturity preview
529
538
  */
530
539
  le: (propertyName: 'revision' | '_createdDate' | '_updatedDate', value: any) => PoliciesQueryBuilder;
531
540
  /** @param propertyName - Property whose value is compared with `value`.
532
541
  * @param value - Value to compare against.
542
+ * @documentationMaturity preview
533
543
  */
534
544
  lt: (propertyName: 'revision' | '_createdDate' | '_updatedDate', value: any) => PoliciesQueryBuilder;
545
+ /** @documentationMaturity preview */
535
546
  in: (propertyName: '_id' | 'revision' | '_createdDate' | '_updatedDate' | 'name' | 'body' | 'eventId', value: any) => PoliciesQueryBuilder;
547
+ /** @documentationMaturity preview */
536
548
  exists: (propertyName: '_id' | 'revision' | '_createdDate' | '_updatedDate' | 'name' | 'body' | 'eventId', value: boolean) => PoliciesQueryBuilder;
537
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
549
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
550
+ * @documentationMaturity preview
551
+ */
538
552
  ascending: (...propertyNames: Array<'_id' | 'revision' | '_createdDate' | '_updatedDate' | 'name' | 'body' | 'eventId'>) => PoliciesQueryBuilder;
539
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
553
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
554
+ * @documentationMaturity preview
555
+ */
540
556
  descending: (...propertyNames: Array<'_id' | 'revision' | '_createdDate' | '_updatedDate' | 'name' | 'body' | 'eventId'>) => PoliciesQueryBuilder;
541
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
557
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
558
+ * @documentationMaturity preview
559
+ */
542
560
  limit: (limit: number) => PoliciesQueryBuilder;
543
- /** @param cursor - A pointer to specific record */
561
+ /** @param cursor - A pointer to specific record
562
+ * @documentationMaturity preview
563
+ */
544
564
  skipTo: (cursor: string) => PoliciesQueryBuilder;
565
+ /** @documentationMaturity preview */
545
566
  find: () => Promise<PoliciesQueryResult>;
546
567
  }
547
568
  /**
548
569
  * Changes policy order in an event dashboard and agreement checkbox on the checkout form.
570
+ * For example, if we have 3 policies in the list, after using this function the 3rd policy will become the 1st, and other policies will move by 1 position. By default, the policies are arranged by the created date in descending order.
549
571
  *
572
+ * > **Note**: it is possible to use both `beforePolicyId` and `afterPolicyId` at the same time but only the last one defined will be executed.
550
573
  *
551
574
  * <!--
552
575
  * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
@@ -554,19 +577,18 @@ export interface PoliciesQueryBuilder {
554
577
  *
555
578
  * The `reorderEventPolicies()` function returns a Promise that resolves to the newly-reordered policy.
556
579
  * @param policyId - Event policy ID.
580
+ * @param eventId - Event ID.
557
581
  * @public
558
- * @requiredField options
559
- * @requiredField options.eventId
582
+ * @documentationMaturity preview
583
+ * @requiredField eventId
560
584
  * @requiredField policyId
561
585
  * @param options - Options for Reorder Event Policies function.
562
586
  */
563
- export declare function reorderEventPolicies(policyId: string, options: ReorderEventPoliciesOptions): Promise<ReorderEventPoliciesResponse>;
587
+ export declare function reorderEventPolicies(policyId: string, eventId: string, options?: ReorderEventPoliciesOptions): Promise<ReorderEventPoliciesResponse>;
564
588
  export interface ReorderEventPoliciesOptions {
565
- /** Event ID. */
566
- eventId: string;
567
- /** Move the given policyId before the referenced policy. */
589
+ /** Move the given `policyId` before the specified policy. */
568
590
  beforePolicyId?: string;
569
- /** Move the given policyId after the referenced policy. */
591
+ /** Move the given `policyId` after the specified policy. */
570
592
  afterPolicyId?: string;
571
593
  }
572
594
  /**
@@ -575,6 +597,7 @@ export interface ReorderEventPoliciesOptions {
575
597
  *
576
598
  * The `getPolicy()` function returns a Promise that resolves to a policy whose ID matches the given ID.
577
599
  * @public
600
+ * @documentationMaturity preview
578
601
  * @requiredField policyId
579
602
  * @param policyId - Policy ID.
580
603
  * @returns The requested policy.