@wix/auto_sdk_online-programs_preview-members 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +111 -0
- package/build/cjs/index.js +897 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +22 -0
- package/build/cjs/index.typings.js +718 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1043 -0
- package/build/cjs/meta.js +594 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/online-programs-participants-v3-preview-member-preview-members.universal-gcbjl_JH.d.ts +1573 -0
- package/build/es/index.d.mts +111 -0
- package/build/es/index.mjs +851 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +22 -0
- package/build/es/index.typings.mjs +675 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1043 -0
- package/build/es/meta.mjs +550 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/online-programs-participants-v3-preview-member-preview-members.universal-gcbjl_JH.d.mts +1573 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +111 -0
- package/build/internal/cjs/index.typings.d.ts +22 -0
- package/build/internal/cjs/meta.d.ts +1101 -0
- package/build/internal/cjs/online-programs-participants-v3-preview-member-preview-members.universal-D4xd8zau.d.ts +1589 -0
- package/build/internal/es/index.d.mts +111 -0
- package/build/internal/es/index.typings.d.mts +22 -0
- package/build/internal/es/meta.d.mts +1101 -0
- package/build/internal/es/online-programs-participants-v3-preview-member-preview-members.universal-D4xd8zau.d.mts +1589 -0
- package/meta/package.json +3 -0
- package/package.json +51 -3
- package/README.md +0 -3
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { P as PreviewMember, C as CreatePreviewMemberApplicationErrors, G as GetCurrentPreviewMemberResponse, a as PreviewMemberSearch, S as SearchPreviewMembersResponse, B as BulkUpdatePreviewMemberTagsOptions, b as BulkUpdatePreviewMemberTagsResponse, c as BulkUpdatePreviewMemberTagsApplicationErrors, d as BulkUpdatePreviewMemberTagsByFilterOptions, e as BulkUpdatePreviewMemberTagsByFilterResponse, f as BulkUpdatePreviewMemberTagsByFilterApplicationErrors, g as PreviewMemberCreatedEnvelope, h as PreviewMemberDeletedEnvelope, i as PreviewMemberTagsModifiedEnvelope, j as PreviewMemberUpdatedEnvelope, k as PreviewMembersQueryBuilder, l as PreviewMemberQuery, t as typedQueryPreviewMembers } from './online-programs-participants-v3-preview-member-preview-members.universal-gcbjl_JH.js';
|
|
3
|
+
export { aL as AccountInfo, aO as AccountInfoMetadata, y as ActionEvent, a2 as Aggregation, af as AggregationData, a3 as AggregationKindOneOf, ay as AggregationResults, az as AggregationResultsResultOneOf, am as AggregationResultsScalarResult, A as AggregationType, a_ as AggregationTypeWithLiterals, aE as ApplicationError, aM as BaseEventMetadata, aG as BulkActionMetadata, aH as BulkUpdatePreviewMemberTagsByFilterRequest, aC as BulkUpdatePreviewMemberTagsRequest, aF as BulkUpdatePreviewMemberTagsResult, b1 as CommonQueryWithEntityContext, b2 as CommonSearchWithEntityContext, F as CreatePreviewMemberRequest, H as CreatePreviewMemberResponse, X as CursorPaging, Z as CursorPagingMetadata, O as CursorQuery, U as CursorQueryPagingMethodOneOf, a0 as CursorSearch, a1 as CursorSearchPagingMethodOneOf, _ as Cursors, aa as DateHistogramAggregation, au as DateHistogramResult, aw as DateHistogramResults, aA as DeletePreviewMemberRequest, aB as DeletePreviewMemberResponse, D as DomainEvent, v as DomainEventBodyOneOf, z as Empty, E as EntityCreatedEvent, x as EntityDeletedEvent, w as EntityUpdatedEvent, aN as EventMetadata, L as GetCurrentPreviewMemberRequest, J as GetPreviewMemberRequest, K as GetPreviewMemberResponse, av as GroupByValueResults, aJ as IdentificationData, aK as IdentificationDataIdOneOf, a5 as IncludeMissingValuesOptions, I as Interval, aZ as IntervalWithLiterals, aD as ItemMetadata, r as Member, aI as MessageEnvelope, M as MissingValues, aW as MissingValuesWithLiterals, q as Mode, a$ as ModeWithLiterals, ad as NestedAggregation, ab as NestedAggregationItem, ac as NestedAggregationItemKindOneOf, ai as NestedAggregationResults, aj as NestedAggregationResultsResultOneOf, N as NestedAggregationType, aY as NestedAggregationTypeWithLiterals, ar as NestedResultValue, as as NestedResultValueResultOneOf, ax as NestedResults, an as NestedValueAggregationResult, aQ as PreviewMemberQuerySpec, aR as PreviewMemberSearchSpec, u as PreviewMemberTagsModified, aP as PreviewMembersQueryResult, Q as QueryPreviewMembersRequest, Y as QueryPreviewMembersResponse, a8 as RangeAggregation, ah as RangeAggregationResult, a4 as RangeBucket, ap as RangeResult, al as RangeResults, R as RestoreInfo, at as Results, a9 as ScalarAggregation, aq as ScalarResult, p as ScalarType, aX as ScalarTypeWithLiterals, ae as SearchDetails, $ as SearchPreviewMembersRequest, o as SortDirection, aV as SortDirectionWithLiterals, m as SortOrder, aT as SortOrderWithLiterals, n as SortType, aU as SortTypeWithLiterals, V as Sorting, s as TagList, T as Tags, a6 as ValueAggregation, a7 as ValueAggregationOptionsOneOf, ag as ValueAggregationResult, ao as ValueResult, ak as ValueResults, W as WebhookIdentityType, b0 as WebhookIdentityTypeWithLiterals, aS as utils } from './online-programs-participants-v3-preview-member-preview-members.universal-gcbjl_JH.js';
|
|
4
|
+
|
|
5
|
+
declare function createPreviewMember$1(httpClient: HttpClient): CreatePreviewMemberSignature;
|
|
6
|
+
interface CreatePreviewMemberSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a preview relationship for a site member after current eligibility checks.
|
|
9
|
+
* Omit preview_member.member_id to use the authenticated site member. Users and apps without a site-member identity must provide preview_member.member_id.
|
|
10
|
+
* Providing preview_member.member_id requires the additional create_preview_member_on_behalf permission, checked manually in addition to the create permission.
|
|
11
|
+
* An explicitly supplied preview_member.member_id without that permission returns PERMISSION_DENIED; it is never replaced with the caller's identity.
|
|
12
|
+
* The caller must be authorized for the site and Program. The target must belong to the site and satisfy current preview eligibility,
|
|
13
|
+
* including enrollment, suspension and Secret-program invitation checks. Creating on behalf does not bypass these checks.
|
|
14
|
+
* Duplicate relationships return ALREADY_EXISTS. Creation does not imply that the member personally entered preview.
|
|
15
|
+
* @param - Preview relationship to create. Specify program_id and, for authorized creation on behalf, member_id.
|
|
16
|
+
* @returns Stored preview relationship.
|
|
17
|
+
*/
|
|
18
|
+
(previewMember: NonNullablePaths<PreviewMember, `programId`, 0>): Promise<NonNullablePaths<PreviewMember, `programId` | `tags.privateTags.tagIds`, 2> & {
|
|
19
|
+
__applicationErrorsType?: CreatePreviewMemberApplicationErrors;
|
|
20
|
+
}>;
|
|
21
|
+
}
|
|
22
|
+
declare function getPreviewMember$1(httpClient: HttpClient): GetPreviewMemberSignature;
|
|
23
|
+
interface GetPreviewMemberSignature {
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves a stored relationship within authorized Program scope or the authenticated member's own records. Foreign ownership returns NOT_FOUND.
|
|
26
|
+
* @param - Preview relationship ID.
|
|
27
|
+
* @returns Stored preview relationship.
|
|
28
|
+
*/
|
|
29
|
+
(previewMemberId: string): Promise<NonNullablePaths<PreviewMember, `programId` | `tags.privateTags.tagIds`, 2>>;
|
|
30
|
+
}
|
|
31
|
+
declare function getCurrentPreviewMember$1(httpClient: HttpClient): GetCurrentPreviewMemberSignature;
|
|
32
|
+
interface GetCurrentPreviewMemberSignature {
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves the signed-in site member's preview relationship with a program.
|
|
35
|
+
* Only site members can call this method. It returns a stored relationship even when
|
|
36
|
+
* preview is disabled. If no relationship exists, it returns `NOT_FOUND`.
|
|
37
|
+
* @param - Program ID.
|
|
38
|
+
*/
|
|
39
|
+
(programId: string): Promise<NonNullablePaths<GetCurrentPreviewMemberResponse, `previewMember.programId` | `previewMember.tags.privateTags.tagIds`, 3>>;
|
|
40
|
+
}
|
|
41
|
+
declare function searchPreviewMembers$1(httpClient: HttpClient): SearchPreviewMembersSignature;
|
|
42
|
+
interface SearchPreviewMembersSignature {
|
|
43
|
+
/**
|
|
44
|
+
* Searches relationships and member details for permitted site managers and apps. Site members cannot call this method.
|
|
45
|
+
* Instructors can search only their first 100 distinct assigned programs. Recent changes
|
|
46
|
+
* can take time to appear in search results.
|
|
47
|
+
* Program content access is checked separately.
|
|
48
|
+
* @param - Requested filters, sorting and cursor page. Authorization constraints are applied separately.
|
|
49
|
+
*/
|
|
50
|
+
(search: PreviewMemberSearch): Promise<NonNullablePaths<SearchPreviewMembersResponse, `previewMembers` | `previewMembers.${number}.programId` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`, 4>>;
|
|
51
|
+
}
|
|
52
|
+
declare function deletePreviewMember$1(httpClient: HttpClient): DeletePreviewMemberSignature;
|
|
53
|
+
interface DeletePreviewMemberSignature {
|
|
54
|
+
/**
|
|
55
|
+
* Deletes a preview relationship within the caller's authorized program scope.
|
|
56
|
+
* Callers need the management permission. Site member identities cannot call this method.
|
|
57
|
+
* If the relationship is missing or already deleted, this method returns `NOT_FOUND`.
|
|
58
|
+
* An eligible member can start preview again after removal.
|
|
59
|
+
* @param - Preview relationship ID.
|
|
60
|
+
*/
|
|
61
|
+
(previewMemberId: string): Promise<void>;
|
|
62
|
+
}
|
|
63
|
+
declare function bulkUpdatePreviewMemberTags$1(httpClient: HttpClient): BulkUpdatePreviewMemberTagsSignature;
|
|
64
|
+
interface BulkUpdatePreviewMemberTagsSignature {
|
|
65
|
+
/**
|
|
66
|
+
* Adds or removes tags on preview members by ID.
|
|
67
|
+
* @param - IDs of the preview members to update tags for.
|
|
68
|
+
*/
|
|
69
|
+
(previewMemberIds: string[], options?: BulkUpdatePreviewMemberTagsOptions): Promise<NonNullablePaths<BulkUpdatePreviewMemberTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4> & {
|
|
70
|
+
__applicationErrorsType?: BulkUpdatePreviewMemberTagsApplicationErrors;
|
|
71
|
+
}>;
|
|
72
|
+
}
|
|
73
|
+
declare function bulkUpdatePreviewMemberTagsByFilter$1(httpClient: HttpClient): BulkUpdatePreviewMemberTagsByFilterSignature;
|
|
74
|
+
interface BulkUpdatePreviewMemberTagsByFilterSignature {
|
|
75
|
+
/**
|
|
76
|
+
* Asynchronously adds or removes tags on preview members matching a filter.
|
|
77
|
+
* @param - Filter object.
|
|
78
|
+
*
|
|
79
|
+
* See [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) for more information.
|
|
80
|
+
*/
|
|
81
|
+
(filter: Record<string, any>, options?: BulkUpdatePreviewMemberTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdatePreviewMemberTagsByFilterResponse, `jobId`, 0> & {
|
|
82
|
+
__applicationErrorsType?: BulkUpdatePreviewMemberTagsByFilterApplicationErrors;
|
|
83
|
+
}>;
|
|
84
|
+
}
|
|
85
|
+
declare const onPreviewMemberCreated$1: EventDefinition<PreviewMemberCreatedEnvelope, "wix.online_programs.participants.v3.preview_member_created">;
|
|
86
|
+
declare const onPreviewMemberDeleted$1: EventDefinition<PreviewMemberDeletedEnvelope, "wix.online_programs.participants.v3.preview_member_deleted">;
|
|
87
|
+
declare const onPreviewMemberTagsModified$1: EventDefinition<PreviewMemberTagsModifiedEnvelope, "wix.online_programs.participants.v3.preview_member_tags_modified">;
|
|
88
|
+
declare const onPreviewMemberUpdated$1: EventDefinition<PreviewMemberUpdatedEnvelope, "wix.online_programs.participants.v3.preview_member_updated">;
|
|
89
|
+
|
|
90
|
+
declare function customQueryPreviewMembers(httpClient: HttpClient): {
|
|
91
|
+
(): PreviewMembersQueryBuilder;
|
|
92
|
+
(query: PreviewMemberQuery): ReturnType<typeof typedQueryPreviewMembers>;
|
|
93
|
+
};
|
|
94
|
+
declare const createPreviewMember: MaybeContext<BuildRESTFunction<typeof createPreviewMember$1> & typeof createPreviewMember$1>;
|
|
95
|
+
declare const getPreviewMember: MaybeContext<BuildRESTFunction<typeof getPreviewMember$1> & typeof getPreviewMember$1>;
|
|
96
|
+
declare const getCurrentPreviewMember: MaybeContext<BuildRESTFunction<typeof getCurrentPreviewMember$1> & typeof getCurrentPreviewMember$1>;
|
|
97
|
+
declare const searchPreviewMembers: MaybeContext<BuildRESTFunction<typeof searchPreviewMembers$1> & typeof searchPreviewMembers$1>;
|
|
98
|
+
declare const deletePreviewMember: MaybeContext<BuildRESTFunction<typeof deletePreviewMember$1> & typeof deletePreviewMember$1>;
|
|
99
|
+
declare const bulkUpdatePreviewMemberTags: MaybeContext<BuildRESTFunction<typeof bulkUpdatePreviewMemberTags$1> & typeof bulkUpdatePreviewMemberTags$1>;
|
|
100
|
+
declare const bulkUpdatePreviewMemberTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdatePreviewMemberTagsByFilter$1> & typeof bulkUpdatePreviewMemberTagsByFilter$1>;
|
|
101
|
+
declare const queryPreviewMembers: MaybeContext<BuildRESTFunction<typeof customQueryPreviewMembers> & typeof customQueryPreviewMembers>;
|
|
102
|
+
/** */
|
|
103
|
+
declare const onPreviewMemberCreated: BuildEventDefinition<typeof onPreviewMemberCreated$1> & typeof onPreviewMemberCreated$1;
|
|
104
|
+
/** */
|
|
105
|
+
declare const onPreviewMemberDeleted: BuildEventDefinition<typeof onPreviewMemberDeleted$1> & typeof onPreviewMemberDeleted$1;
|
|
106
|
+
/** */
|
|
107
|
+
declare const onPreviewMemberTagsModified: BuildEventDefinition<typeof onPreviewMemberTagsModified$1> & typeof onPreviewMemberTagsModified$1;
|
|
108
|
+
/** */
|
|
109
|
+
declare const onPreviewMemberUpdated: BuildEventDefinition<typeof onPreviewMemberUpdated$1> & typeof onPreviewMemberUpdated$1;
|
|
110
|
+
|
|
111
|
+
export { BulkUpdatePreviewMemberTagsApplicationErrors, BulkUpdatePreviewMemberTagsByFilterApplicationErrors, BulkUpdatePreviewMemberTagsByFilterOptions, BulkUpdatePreviewMemberTagsByFilterResponse, BulkUpdatePreviewMemberTagsOptions, BulkUpdatePreviewMemberTagsResponse, CreatePreviewMemberApplicationErrors, GetCurrentPreviewMemberResponse, PreviewMember, PreviewMemberCreatedEnvelope, PreviewMemberDeletedEnvelope, PreviewMemberQuery, PreviewMemberSearch, PreviewMemberTagsModifiedEnvelope, PreviewMemberUpdatedEnvelope, PreviewMembersQueryBuilder, SearchPreviewMembersResponse, bulkUpdatePreviewMemberTags, bulkUpdatePreviewMemberTagsByFilter, createPreviewMember, deletePreviewMember, getCurrentPreviewMember, getPreviewMember, onPreviewMemberCreated, onPreviewMemberDeleted, onPreviewMemberTagsModified, onPreviewMemberUpdated, queryPreviewMembers, searchPreviewMembers };
|