@wix/events 1.0.62 → 1.0.63
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/events-v2-policy.http.d.ts +5 -6
- package/build/cjs/src/events-v2-policy.http.js +5 -6
- package/build/cjs/src/events-v2-policy.http.js.map +1 -1
- package/build/cjs/src/events-v2-policy.public.d.ts +1 -1
- package/build/cjs/src/events-v2-policy.public.js +1 -1
- package/build/cjs/src/events-v2-policy.public.js.map +1 -1
- package/build/cjs/src/events-v2-policy.universal.d.ts +52 -29
- package/build/cjs/src/events-v2-policy.universal.js +22 -15
- package/build/cjs/src/events-v2-policy.universal.js.map +1 -1
- package/build/es/src/events-v2-policy.http.d.ts +5 -6
- package/build/es/src/events-v2-policy.http.js +5 -6
- package/build/es/src/events-v2-policy.http.js.map +1 -1
- package/build/es/src/events-v2-policy.public.d.ts +1 -1
- package/build/es/src/events-v2-policy.public.js +1 -1
- package/build/es/src/events-v2-policy.public.js.map +1 -1
- package/build/es/src/events-v2-policy.universal.d.ts +52 -29
- package/build/es/src/events-v2-policy.universal.js +22 -15
- package/build/es/src/events-v2-policy.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
-
*
|
|
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 `
|
|
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
|
-
*
|
|
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 `
|
|
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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,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,
|
|
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,
|
|
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,CACL,QAAgB,EAChB,OAAe,EACf,OAAqC,EACrC,EAAE,CACF,IAAA,iDAA6B,EAC3B,QAAQ,EACR,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,oDAaC;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"}
|
|
@@ -11,22 +11,22 @@ export interface Policy {
|
|
|
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
|
|
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
|
|
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
|
|
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
|
-
/**
|
|
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
|
|
160
|
+
/** Move the given `policyId` before the specified policy. */
|
|
159
161
|
beforePolicyId?: string;
|
|
160
|
-
/** Move the given policyId after the
|
|
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
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
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 `
|
|
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
|
-
* @
|
|
559
|
-
* @requiredField
|
|
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,
|
|
587
|
+
export declare function reorderEventPolicies(policyId: string, eventId: string, options?: ReorderEventPoliciesOptions): Promise<ReorderEventPoliciesResponse>;
|
|
564
588
|
export interface ReorderEventPoliciesOptions {
|
|
565
|
-
/**
|
|
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
|
|
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.
|
|
@@ -124,6 +124,7 @@ const _updatePolicyResponse = {};
|
|
|
124
124
|
*
|
|
125
125
|
* 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.
|
|
126
126
|
* @public
|
|
127
|
+
* @documentationMaturity preview
|
|
127
128
|
* @requiredField policy
|
|
128
129
|
* @requiredField policy.body
|
|
129
130
|
* @requiredField policy.eventId
|
|
@@ -178,7 +179,6 @@ exports.createPolicy = createPolicy;
|
|
|
178
179
|
/**
|
|
179
180
|
* Updates a policy.
|
|
180
181
|
*
|
|
181
|
-
*
|
|
182
182
|
* <!--
|
|
183
183
|
* > 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.
|
|
184
184
|
* -->
|
|
@@ -187,6 +187,7 @@ exports.createPolicy = createPolicy;
|
|
|
187
187
|
*
|
|
188
188
|
* 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.
|
|
189
189
|
* @public
|
|
190
|
+
* @documentationMaturity preview
|
|
190
191
|
* @requiredField _id
|
|
191
192
|
* @requiredField policy
|
|
192
193
|
* @requiredField policy.body
|
|
@@ -254,6 +255,7 @@ exports.updatePolicy = updatePolicy;
|
|
|
254
255
|
*
|
|
255
256
|
* Deleted policies are not returned by the `getPolicy()` or `queryPolicies()` functions.
|
|
256
257
|
* @public
|
|
258
|
+
* @documentationMaturity preview
|
|
257
259
|
* @requiredField policyId
|
|
258
260
|
* @param options - Options for Delete Policy function.
|
|
259
261
|
* @param policyId - ID of the policy to delete.
|
|
@@ -303,14 +305,14 @@ function deletePolicy(policyId) {
|
|
|
303
305
|
}
|
|
304
306
|
exports.deletePolicy = deletePolicy;
|
|
305
307
|
/**
|
|
306
|
-
*
|
|
308
|
+
* Creates a query to retrieve a list of policies, given the provided paging and filter.
|
|
307
309
|
*
|
|
308
310
|
*
|
|
309
311
|
* 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.
|
|
310
312
|
*
|
|
311
|
-
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
|
313
|
+
* 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.
|
|
312
314
|
*
|
|
313
|
-
* You can refine the query by chaining `PoliciesQueryBuilder` functions onto the query. `PoliciesQueryBuilder` functions enable you to sort, filter and control the results that `
|
|
315
|
+
* 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.
|
|
314
316
|
*
|
|
315
317
|
* The query runs with the following `PoliciesQueryBuilder` defaults that you can override:
|
|
316
318
|
*
|
|
@@ -319,10 +321,10 @@ exports.deletePolicy = deletePolicy;
|
|
|
319
321
|
*
|
|
320
322
|
* 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.
|
|
321
323
|
*
|
|
322
|
-
* The following `PoliciesQueryBuilder` functions are supported for `queryPolicies()`.
|
|
323
|
-
*
|
|
324
324
|
* 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.
|
|
325
|
-
* @public
|
|
325
|
+
* @public
|
|
326
|
+
* @documentationMaturity preview
|
|
327
|
+
*/
|
|
326
328
|
function queryPolicies() {
|
|
327
329
|
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
328
330
|
const responseTransformation = {
|
|
@@ -377,7 +379,9 @@ function queryPolicies() {
|
|
|
377
379
|
exports.queryPolicies = queryPolicies;
|
|
378
380
|
/**
|
|
379
381
|
* Changes policy order in an event dashboard and agreement checkbox on the checkout form.
|
|
382
|
+
* 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.
|
|
380
383
|
*
|
|
384
|
+
* > **Note**: it is possible to use both `beforePolicyId` and `afterPolicyId` at the same time but only the last one defined will be executed.
|
|
381
385
|
*
|
|
382
386
|
* <!--
|
|
383
387
|
* > 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.
|
|
@@ -385,24 +389,25 @@ exports.queryPolicies = queryPolicies;
|
|
|
385
389
|
*
|
|
386
390
|
* The `reorderEventPolicies()` function returns a Promise that resolves to the newly-reordered policy.
|
|
387
391
|
* @param policyId - Event policy ID.
|
|
392
|
+
* @param eventId - Event ID.
|
|
388
393
|
* @public
|
|
389
|
-
* @
|
|
390
|
-
* @requiredField
|
|
394
|
+
* @documentationMaturity preview
|
|
395
|
+
* @requiredField eventId
|
|
391
396
|
* @requiredField policyId
|
|
392
397
|
* @param options - Options for Reorder Event Policies function.
|
|
393
398
|
*/
|
|
394
|
-
function reorderEventPolicies(policyId, options) {
|
|
399
|
+
function reorderEventPolicies(policyId, eventId, options) {
|
|
395
400
|
var _a, _b, _c;
|
|
396
401
|
return __awaiter(this, arguments, void 0, function* () {
|
|
397
402
|
const requestTransformation = {
|
|
398
403
|
policyId: '$[0]',
|
|
399
|
-
eventId: '$[1]
|
|
400
|
-
beforePolicyId: '$[
|
|
401
|
-
afterPolicyId: '$[
|
|
404
|
+
eventId: '$[1]',
|
|
405
|
+
beforePolicyId: '$[2].beforePolicyId',
|
|
406
|
+
afterPolicyId: '$[2].afterPolicyId',
|
|
402
407
|
};
|
|
403
408
|
const responseTransformation = '$';
|
|
404
409
|
// @ts-ignore
|
|
405
|
-
const { httpClient, sideEffects } = arguments[
|
|
410
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
406
411
|
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
407
412
|
rootSchema: _reorderEventPoliciesRequest,
|
|
408
413
|
depSchemas: {},
|
|
@@ -421,7 +426,7 @@ function reorderEventPolicies(policyId, options) {
|
|
|
421
426
|
},
|
|
422
427
|
customTransformation: responseTransformation,
|
|
423
428
|
});
|
|
424
|
-
const payload = toAmbassadorRequest([policyId, options]);
|
|
429
|
+
const payload = toAmbassadorRequest([policyId, eventId, options]);
|
|
425
430
|
const reqOpts = ambassadorWixEventsV2Policy.reorderEventPolicies(payload);
|
|
426
431
|
__log(`"ReorderEventPolicies" sending request with: ${__inspect(reqOpts)}`);
|
|
427
432
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
@@ -433,6 +438,7 @@ function reorderEventPolicies(policyId, options) {
|
|
|
433
438
|
catch (err) {
|
|
434
439
|
const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
|
|
435
440
|
'policyId',
|
|
441
|
+
'eventId',
|
|
436
442
|
'options',
|
|
437
443
|
]);
|
|
438
444
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
@@ -447,6 +453,7 @@ exports.reorderEventPolicies = reorderEventPolicies;
|
|
|
447
453
|
*
|
|
448
454
|
* The `getPolicy()` function returns a Promise that resolves to a policy whose ID matches the given ID.
|
|
449
455
|
* @public
|
|
456
|
+
* @documentationMaturity preview
|
|
450
457
|
* @requiredField policyId
|
|
451
458
|
* @param policyId - Policy ID.
|
|
452
459
|
* @returns The requested policy.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events-v2-policy.universal.js","sourceRoot":"","sources":["../../../src/events-v2-policy.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,qFAAuE;AACvE,aAAa;AACb,4FAA6E;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAA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,EAAE,CAAC,CAAC;QAEjE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,UAAU;aACX,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAlDD,8BAkDC"}
|
|
@@ -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
|
-
*
|
|
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 `
|
|
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.
|
|
@@ -88,7 +88,6 @@ export function createPolicy(payload) {
|
|
|
88
88
|
/**
|
|
89
89
|
* Updates a policy.
|
|
90
90
|
*
|
|
91
|
-
*
|
|
92
91
|
* <!--
|
|
93
92
|
* > 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.
|
|
94
93
|
* -->
|
|
@@ -150,14 +149,14 @@ export function deletePolicy(payload) {
|
|
|
150
149
|
return __deletePolicy;
|
|
151
150
|
}
|
|
152
151
|
/**
|
|
153
|
-
*
|
|
152
|
+
* Creates a query to retrieve a list of policies, given the provided paging and filter.
|
|
154
153
|
*
|
|
155
154
|
*
|
|
156
155
|
* 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.
|
|
157
156
|
*
|
|
158
|
-
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
|
157
|
+
* 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.
|
|
159
158
|
*
|
|
160
|
-
* You can refine the query by chaining `PoliciesQueryBuilder` functions onto the query. `PoliciesQueryBuilder` functions enable you to sort, filter and control the results that `
|
|
159
|
+
* 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.
|
|
161
160
|
*
|
|
162
161
|
* The query runs with the following `PoliciesQueryBuilder` defaults that you can override:
|
|
163
162
|
*
|
|
@@ -166,8 +165,6 @@ export function deletePolicy(payload) {
|
|
|
166
165
|
*
|
|
167
166
|
* 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.
|
|
168
167
|
*
|
|
169
|
-
* The following `PoliciesQueryBuilder` functions are supported for `queryPolicies()`.
|
|
170
|
-
*
|
|
171
168
|
* 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.
|
|
172
169
|
*/
|
|
173
170
|
export function queryPolicies(payload) {
|
|
@@ -192,7 +189,9 @@ export function queryPolicies(payload) {
|
|
|
192
189
|
}
|
|
193
190
|
/**
|
|
194
191
|
* Changes policy order in an event dashboard and agreement checkbox on the checkout form.
|
|
192
|
+
* 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.
|
|
195
193
|
*
|
|
194
|
+
* > **Note**: it is possible to use both `beforePolicyId` and `afterPolicyId` at the same time but only the last one defined will be executed.
|
|
196
195
|
*
|
|
197
196
|
* <!--
|
|
198
197
|
* > 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,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;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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AAM,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,iBAAiB,CAAC,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"}
|
|
@@ -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,
|
|
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';
|
|
@@ -20,7 +20,7 @@ export function queryPolicies(httpClient) {
|
|
|
20
20
|
{ httpClient });
|
|
21
21
|
}
|
|
22
22
|
export function reorderEventPolicies(httpClient) {
|
|
23
|
-
return (policyId, options) => universalReorderEventPolicies(policyId, options,
|
|
23
|
+
return (policyId, eventId, options) => universalReorderEventPolicies(policyId, eventId, options,
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
{ httpClient });
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events-v2-policy.public.js","sourceRoot":"","sources":["../../../src/events-v2-policy.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,IAAI,qBAAqB,EACrC,YAAY,IAAI,qBAAqB,EACrC,YAAY,IAAI,qBAAqB,EACrC,aAAa,IAAI,sBAAsB,EACvC,oBAAoB,IAAI,6BAA6B,EACrD,SAAS,IAAI,kBAAkB,GAIhC,MAAM,8BAA8B,CAAC;AAEtC,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,MAAc,EAAE,EAAE,CACxB,qBAAqB,CACnB,MAAM;IACN,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,GAAkB,EAAE,MAAoB,EAAE,EAAE,CAClD,qBAAqB,CACnB,GAAG,EACH,MAAM;IACN,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,QAAgB,EAAE,EAAE,CAC1B,qBAAqB,CACnB,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,GAAG,EAAE,CACV,sBAAsB;IACpB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,UAAsB;IACzD,OAAO,
|
|
1
|
+
{"version":3,"file":"events-v2-policy.public.js","sourceRoot":"","sources":["../../../src/events-v2-policy.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,IAAI,qBAAqB,EACrC,YAAY,IAAI,qBAAqB,EACrC,YAAY,IAAI,qBAAqB,EACrC,aAAa,IAAI,sBAAsB,EACvC,oBAAoB,IAAI,6BAA6B,EACrD,SAAS,IAAI,kBAAkB,GAIhC,MAAM,8BAA8B,CAAC;AAEtC,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,MAAc,EAAE,EAAE,CACxB,qBAAqB,CACnB,MAAM;IACN,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,GAAkB,EAAE,MAAoB,EAAE,EAAE,CAClD,qBAAqB,CACnB,GAAG,EACH,MAAM;IACN,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,QAAgB,EAAE,EAAE,CAC1B,qBAAqB,CACnB,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,GAAG,EAAE,CACV,sBAAsB;IACpB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,UAAsB;IACzD,OAAO,CACL,QAAgB,EAChB,OAAe,EACf,OAAqC,EACrC,EAAE,CACF,6BAA6B,CAC3B,QAAQ,EACR,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,UAAsB;IAC9C,OAAO,CAAC,QAAgB,EAAE,EAAE,CAC1B,kBAAkB,CAChB,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,SAAS,EACT,YAAY,EACZ,eAAe,EACf,MAAM,EACN,WAAW,GACZ,MAAM,8BAA8B,CAAC"}
|
|
@@ -11,22 +11,22 @@ export interface Policy {
|
|
|
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
|
|
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
|
|
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
|
|
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
|
-
/**
|
|
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
|
|
160
|
+
/** Move the given `policyId` before the specified policy. */
|
|
159
161
|
beforePolicyId?: string;
|
|
160
|
-
/** Move the given policyId after the
|
|
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
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
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 `
|
|
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
|
-
* @
|
|
559
|
-
* @requiredField
|
|
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,
|
|
587
|
+
export declare function reorderEventPolicies(policyId: string, eventId: string, options?: ReorderEventPoliciesOptions): Promise<ReorderEventPoliciesResponse>;
|
|
564
588
|
export interface ReorderEventPoliciesOptions {
|
|
565
|
-
/**
|
|
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
|
|
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.
|
|
@@ -102,6 +102,7 @@ const _updatePolicyResponse = {};
|
|
|
102
102
|
*
|
|
103
103
|
* 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.
|
|
104
104
|
* @public
|
|
105
|
+
* @documentationMaturity preview
|
|
105
106
|
* @requiredField policy
|
|
106
107
|
* @requiredField policy.body
|
|
107
108
|
* @requiredField policy.eventId
|
|
@@ -155,7 +156,6 @@ export function createPolicy(policy) {
|
|
|
155
156
|
/**
|
|
156
157
|
* Updates a policy.
|
|
157
158
|
*
|
|
158
|
-
*
|
|
159
159
|
* <!--
|
|
160
160
|
* > 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.
|
|
161
161
|
* -->
|
|
@@ -164,6 +164,7 @@ export function createPolicy(policy) {
|
|
|
164
164
|
*
|
|
165
165
|
* 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.
|
|
166
166
|
* @public
|
|
167
|
+
* @documentationMaturity preview
|
|
167
168
|
* @requiredField _id
|
|
168
169
|
* @requiredField policy
|
|
169
170
|
* @requiredField policy.body
|
|
@@ -230,6 +231,7 @@ export function updatePolicy(_id, policy) {
|
|
|
230
231
|
*
|
|
231
232
|
* Deleted policies are not returned by the `getPolicy()` or `queryPolicies()` functions.
|
|
232
233
|
* @public
|
|
234
|
+
* @documentationMaturity preview
|
|
233
235
|
* @requiredField policyId
|
|
234
236
|
* @param options - Options for Delete Policy function.
|
|
235
237
|
* @param policyId - ID of the policy to delete.
|
|
@@ -278,14 +280,14 @@ export function deletePolicy(policyId) {
|
|
|
278
280
|
});
|
|
279
281
|
}
|
|
280
282
|
/**
|
|
281
|
-
*
|
|
283
|
+
* Creates a query to retrieve a list of policies, given the provided paging and filter.
|
|
282
284
|
*
|
|
283
285
|
*
|
|
284
286
|
* 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.
|
|
285
287
|
*
|
|
286
|
-
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
|
288
|
+
* 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.
|
|
287
289
|
*
|
|
288
|
-
* You can refine the query by chaining `PoliciesQueryBuilder` functions onto the query. `PoliciesQueryBuilder` functions enable you to sort, filter and control the results that `
|
|
290
|
+
* 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.
|
|
289
291
|
*
|
|
290
292
|
* The query runs with the following `PoliciesQueryBuilder` defaults that you can override:
|
|
291
293
|
*
|
|
@@ -294,10 +296,10 @@ export function deletePolicy(policyId) {
|
|
|
294
296
|
*
|
|
295
297
|
* 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.
|
|
296
298
|
*
|
|
297
|
-
* The following `PoliciesQueryBuilder` functions are supported for `queryPolicies()`.
|
|
298
|
-
*
|
|
299
299
|
* 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.
|
|
300
|
-
* @public
|
|
300
|
+
* @public
|
|
301
|
+
* @documentationMaturity preview
|
|
302
|
+
*/
|
|
301
303
|
export function queryPolicies() {
|
|
302
304
|
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
303
305
|
const responseTransformation = {
|
|
@@ -351,7 +353,9 @@ export function queryPolicies() {
|
|
|
351
353
|
}
|
|
352
354
|
/**
|
|
353
355
|
* Changes policy order in an event dashboard and agreement checkbox on the checkout form.
|
|
356
|
+
* 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.
|
|
354
357
|
*
|
|
358
|
+
* > **Note**: it is possible to use both `beforePolicyId` and `afterPolicyId` at the same time but only the last one defined will be executed.
|
|
355
359
|
*
|
|
356
360
|
* <!--
|
|
357
361
|
* > 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.
|
|
@@ -359,24 +363,25 @@ export function queryPolicies() {
|
|
|
359
363
|
*
|
|
360
364
|
* The `reorderEventPolicies()` function returns a Promise that resolves to the newly-reordered policy.
|
|
361
365
|
* @param policyId - Event policy ID.
|
|
366
|
+
* @param eventId - Event ID.
|
|
362
367
|
* @public
|
|
363
|
-
* @
|
|
364
|
-
* @requiredField
|
|
368
|
+
* @documentationMaturity preview
|
|
369
|
+
* @requiredField eventId
|
|
365
370
|
* @requiredField policyId
|
|
366
371
|
* @param options - Options for Reorder Event Policies function.
|
|
367
372
|
*/
|
|
368
|
-
export function reorderEventPolicies(policyId, options) {
|
|
373
|
+
export function reorderEventPolicies(policyId, eventId, options) {
|
|
369
374
|
var _a, _b, _c;
|
|
370
375
|
return __awaiter(this, arguments, void 0, function* () {
|
|
371
376
|
const requestTransformation = {
|
|
372
377
|
policyId: '$[0]',
|
|
373
|
-
eventId: '$[1]
|
|
374
|
-
beforePolicyId: '$[
|
|
375
|
-
afterPolicyId: '$[
|
|
378
|
+
eventId: '$[1]',
|
|
379
|
+
beforePolicyId: '$[2].beforePolicyId',
|
|
380
|
+
afterPolicyId: '$[2].afterPolicyId',
|
|
376
381
|
};
|
|
377
382
|
const responseTransformation = '$';
|
|
378
383
|
// @ts-ignore
|
|
379
|
-
const { httpClient, sideEffects } = arguments[
|
|
384
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
380
385
|
const { toAmbassadorRequest } = serializer({
|
|
381
386
|
rootSchema: _reorderEventPoliciesRequest,
|
|
382
387
|
depSchemas: {},
|
|
@@ -395,7 +400,7 @@ export function reorderEventPolicies(policyId, options) {
|
|
|
395
400
|
},
|
|
396
401
|
customTransformation: responseTransformation,
|
|
397
402
|
});
|
|
398
|
-
const payload = toAmbassadorRequest([policyId, options]);
|
|
403
|
+
const payload = toAmbassadorRequest([policyId, eventId, options]);
|
|
399
404
|
const reqOpts = ambassadorWixEventsV2Policy.reorderEventPolicies(payload);
|
|
400
405
|
__log(`"ReorderEventPolicies" sending request with: ${__inspect(reqOpts)}`);
|
|
401
406
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
@@ -407,6 +412,7 @@ export function reorderEventPolicies(policyId, options) {
|
|
|
407
412
|
catch (err) {
|
|
408
413
|
const transformedError = transformError(err, requestTransformation, [
|
|
409
414
|
'policyId',
|
|
415
|
+
'eventId',
|
|
410
416
|
'options',
|
|
411
417
|
]);
|
|
412
418
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
@@ -420,6 +426,7 @@ export function reorderEventPolicies(policyId, options) {
|
|
|
420
426
|
*
|
|
421
427
|
* The `getPolicy()` function returns a Promise that resolves to a policy whose ID matches the given ID.
|
|
422
428
|
* @public
|
|
429
|
+
* @documentationMaturity preview
|
|
423
430
|
* @requiredField policyId
|
|
424
431
|
* @param policyId - Policy ID.
|
|
425
432
|
* @returns The requested policy.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events-v2-policy.universal.js","sourceRoot":"","sources":["../../../src/events-v2-policy.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,2BAA2B,MAAM,yBAAyB,CAAC;AACvE,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc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5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,UAAU;aACX,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
|
|
1
|
+
{"version":3,"file":"events-v2-policy.universal.js","sourceRoot":"","sources":["../../../src/events-v2-policy.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,2BAA2B,MAAM,yBAAyB,CAAC;AACvE,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,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,C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AAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,UAAU;aACX,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/events",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.63",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "59b197fcba4efc3da43ea319255573939a994ca6a1cbb7d6b0b1583c"
|
|
37
37
|
}
|