@wix/groups 1.0.87 → 1.0.88
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/package.json +12 -11
- package/type-bundles/context.bundle.d.ts +114 -456
- package/type-bundles/index.bundle.d.ts +60 -372
|
@@ -910,49 +910,41 @@ interface GroupsQueryBuilder {
|
|
|
910
910
|
find: () => Promise<GroupsQueryResult>;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
-
interface HttpClient
|
|
914
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
915
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
913
|
+
interface HttpClient {
|
|
914
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
916
915
|
}
|
|
917
|
-
type RequestOptionsFactory
|
|
918
|
-
type HttpResponse
|
|
916
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
917
|
+
type HttpResponse<T = any> = {
|
|
919
918
|
data: T;
|
|
920
919
|
status: number;
|
|
921
920
|
statusText: string;
|
|
922
921
|
headers: any;
|
|
923
922
|
request?: any;
|
|
924
923
|
};
|
|
925
|
-
type RequestOptions
|
|
924
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
926
925
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
927
926
|
url: string;
|
|
928
927
|
data?: Data;
|
|
929
928
|
params?: URLSearchParams;
|
|
930
|
-
} & APIMetadata
|
|
931
|
-
type APIMetadata
|
|
929
|
+
} & APIMetadata;
|
|
930
|
+
type APIMetadata = {
|
|
932
931
|
methodFqn?: string;
|
|
933
932
|
entityFqdn?: string;
|
|
934
933
|
packageName?: string;
|
|
935
934
|
};
|
|
936
|
-
type EventDefinition
|
|
935
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
937
936
|
__type: 'event-definition';
|
|
938
937
|
type: Type;
|
|
939
938
|
isDomainEvent?: boolean;
|
|
940
|
-
transformations?:
|
|
939
|
+
transformations?: unknown;
|
|
941
940
|
__payload: Payload;
|
|
942
941
|
};
|
|
943
|
-
declare function EventDefinition
|
|
944
|
-
|
|
945
|
-
declare global {
|
|
946
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
947
|
-
interface SymbolConstructor {
|
|
948
|
-
readonly observable: symbol;
|
|
949
|
-
}
|
|
950
|
-
}
|
|
942
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
951
943
|
|
|
952
944
|
declare const __metadata$8: {
|
|
953
945
|
PACKAGE_NAME: string;
|
|
954
946
|
};
|
|
955
|
-
declare function createGroup(httpClient: HttpClient
|
|
947
|
+
declare function createGroup(httpClient: HttpClient): (group: Group$2, options?: CreateGroupOptions) => Promise<Group$2 & {
|
|
956
948
|
privacyLevel: PrivacyStatus$2;
|
|
957
949
|
privacyStatus: PrivacyStatus$2;
|
|
958
950
|
coverImage?: {
|
|
@@ -975,7 +967,7 @@ declare function createGroup(httpClient: HttpClient$8): (group: Group$2, options
|
|
|
975
967
|
identityType: IdentityType$2;
|
|
976
968
|
} | undefined;
|
|
977
969
|
}>;
|
|
978
|
-
declare function updateGroup(httpClient: HttpClient
|
|
970
|
+
declare function updateGroup(httpClient: HttpClient): (_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions) => Promise<Group$2 & {
|
|
979
971
|
privacyLevel: PrivacyStatus$2;
|
|
980
972
|
privacyStatus: PrivacyStatus$2;
|
|
981
973
|
coverImage?: {
|
|
@@ -998,8 +990,8 @@ declare function updateGroup(httpClient: HttpClient$8): (_id: string | null, gro
|
|
|
998
990
|
identityType: IdentityType$2;
|
|
999
991
|
} | undefined;
|
|
1000
992
|
}>;
|
|
1001
|
-
declare function deleteGroup(httpClient: HttpClient
|
|
1002
|
-
declare function getGroup(httpClient: HttpClient
|
|
993
|
+
declare function deleteGroup(httpClient: HttpClient): (groupId: string) => Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
|
|
994
|
+
declare function getGroup(httpClient: HttpClient): (groupId: string, options?: GetGroupOptions) => Promise<Group$2 & {
|
|
1003
995
|
privacyLevel: PrivacyStatus$2;
|
|
1004
996
|
privacyStatus: PrivacyStatus$2;
|
|
1005
997
|
coverImage?: {
|
|
@@ -1022,14 +1014,14 @@ declare function getGroup(httpClient: HttpClient$8): (groupId: string, options?:
|
|
|
1022
1014
|
identityType: IdentityType$2;
|
|
1023
1015
|
} | undefined;
|
|
1024
1016
|
}>;
|
|
1025
|
-
declare function getGroupBySlug(httpClient: HttpClient
|
|
1026
|
-
declare function listGroups(httpClient: HttpClient
|
|
1027
|
-
declare function queryGroups(httpClient: HttpClient
|
|
1028
|
-
declare const onGroupCreated: EventDefinition
|
|
1029
|
-
declare const onGroupUpdated: EventDefinition
|
|
1030
|
-
declare const onGroupCoverChanged: EventDefinition
|
|
1031
|
-
declare const onGroupDescriptionChanged: EventDefinition
|
|
1032
|
-
declare const onGroupDeleted: EventDefinition
|
|
1017
|
+
declare function getGroupBySlug(httpClient: HttpClient): (slug: string, options?: GetGroupBySlugOptions) => Promise<GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields>;
|
|
1018
|
+
declare function listGroups(httpClient: HttpClient): (options?: ListGroupsOptions) => Promise<ListGroupsResponse & ListGroupsResponseNonNullableFields>;
|
|
1019
|
+
declare function queryGroups(httpClient: HttpClient): (options?: QueryGroupsOptions) => GroupsQueryBuilder;
|
|
1020
|
+
declare const onGroupCreated: EventDefinition<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
|
|
1021
|
+
declare const onGroupUpdated: EventDefinition<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
|
|
1022
|
+
declare const onGroupCoverChanged: EventDefinition<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
|
|
1023
|
+
declare const onGroupDescriptionChanged: EventDefinition<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
|
|
1024
|
+
declare const onGroupDeleted: EventDefinition<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
|
|
1033
1025
|
|
|
1034
1026
|
type index_d$8_ContentType = ContentType;
|
|
1035
1027
|
declare const index_d$8_ContentType: typeof ContentType;
|
|
@@ -1683,56 +1675,17 @@ interface QueryMembershipsOptions {
|
|
|
1683
1675
|
query?: Query$4;
|
|
1684
1676
|
}
|
|
1685
1677
|
|
|
1686
|
-
interface HttpClient$7 {
|
|
1687
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$7<TResponse, TData>): Promise<HttpResponse$7<TResponse>>;
|
|
1688
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1689
|
-
}
|
|
1690
|
-
type RequestOptionsFactory$7<TResponse = any, TData = any> = (context: any) => RequestOptions$7<TResponse, TData>;
|
|
1691
|
-
type HttpResponse$7<T = any> = {
|
|
1692
|
-
data: T;
|
|
1693
|
-
status: number;
|
|
1694
|
-
statusText: string;
|
|
1695
|
-
headers: any;
|
|
1696
|
-
request?: any;
|
|
1697
|
-
};
|
|
1698
|
-
type RequestOptions$7<_TResponse = any, Data = any> = {
|
|
1699
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1700
|
-
url: string;
|
|
1701
|
-
data?: Data;
|
|
1702
|
-
params?: URLSearchParams;
|
|
1703
|
-
} & APIMetadata$7;
|
|
1704
|
-
type APIMetadata$7 = {
|
|
1705
|
-
methodFqn?: string;
|
|
1706
|
-
entityFqdn?: string;
|
|
1707
|
-
packageName?: string;
|
|
1708
|
-
};
|
|
1709
|
-
type EventDefinition$6<Payload = unknown, Type extends string = string> = {
|
|
1710
|
-
__type: 'event-definition';
|
|
1711
|
-
type: Type;
|
|
1712
|
-
isDomainEvent?: boolean;
|
|
1713
|
-
transformations?: (envelope: unknown) => Payload;
|
|
1714
|
-
__payload: Payload;
|
|
1715
|
-
};
|
|
1716
|
-
declare function EventDefinition$6<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$6<Payload, Type>;
|
|
1717
|
-
|
|
1718
|
-
declare global {
|
|
1719
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1720
|
-
interface SymbolConstructor {
|
|
1721
|
-
readonly observable: symbol;
|
|
1722
|
-
}
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
1678
|
declare const __metadata$7: {
|
|
1726
1679
|
PACKAGE_NAME: string;
|
|
1727
1680
|
};
|
|
1728
|
-
declare function addGroupMembers(httpClient: HttpClient
|
|
1729
|
-
declare function removeGroupMembers(httpClient: HttpClient
|
|
1730
|
-
declare function listGroupMembers(httpClient: HttpClient
|
|
1731
|
-
declare function queryGroupMembers(httpClient: HttpClient
|
|
1732
|
-
declare function listMemberships(httpClient: HttpClient
|
|
1733
|
-
declare function queryMemberships(httpClient: HttpClient
|
|
1734
|
-
declare const onGroupMemberAdded: EventDefinition
|
|
1735
|
-
declare const onGroupMemberRemoved: EventDefinition
|
|
1681
|
+
declare function addGroupMembers(httpClient: HttpClient): (groupId: string, memberIds: string[], options?: AddGroupMembersOptions) => Promise<AddGroupMembersResponse & AddGroupMembersResponseNonNullableFields>;
|
|
1682
|
+
declare function removeGroupMembers(httpClient: HttpClient): (groupId: string, memberIds: string[], options?: RemoveGroupMembersOptions) => Promise<void>;
|
|
1683
|
+
declare function listGroupMembers(httpClient: HttpClient): (groupId: string, options?: ListGroupMembersOptions) => Promise<ListGroupMembersResponse & ListGroupMembersResponseNonNullableFields>;
|
|
1684
|
+
declare function queryGroupMembers(httpClient: HttpClient): (groupId: string) => MembersQueryBuilder;
|
|
1685
|
+
declare function listMemberships(httpClient: HttpClient): (memberId: string | null, options?: ListMembershipsOptions) => Promise<ListMembershipsResponse & ListMembershipsResponseNonNullableFields>;
|
|
1686
|
+
declare function queryMemberships(httpClient: HttpClient): (memberId: string | null, options?: QueryMembershipsOptions) => Promise<QueryMembershipsResponse & QueryMembershipsResponseNonNullableFields>;
|
|
1687
|
+
declare const onGroupMemberAdded: EventDefinition<GroupMemberAddedEnvelope, "wix.social_groups.v2.group_member_added">;
|
|
1688
|
+
declare const onGroupMemberRemoved: EventDefinition<GroupMemberRemovedEnvelope, "wix.social_groups.v2.group_member_removed">;
|
|
1736
1689
|
|
|
1737
1690
|
type index_d$7_AddGroupMembersOptions = AddGroupMembersOptions;
|
|
1738
1691
|
type index_d$7_AddGroupMembersRequest = AddGroupMembersRequest;
|
|
@@ -2543,55 +2496,16 @@ interface GroupRequestsQueryBuilder {
|
|
|
2543
2496
|
find: () => Promise<GroupRequestsQueryResult>;
|
|
2544
2497
|
}
|
|
2545
2498
|
|
|
2546
|
-
interface HttpClient$6 {
|
|
2547
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$6<TResponse, TData>): Promise<HttpResponse$6<TResponse>>;
|
|
2548
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2549
|
-
}
|
|
2550
|
-
type RequestOptionsFactory$6<TResponse = any, TData = any> = (context: any) => RequestOptions$6<TResponse, TData>;
|
|
2551
|
-
type HttpResponse$6<T = any> = {
|
|
2552
|
-
data: T;
|
|
2553
|
-
status: number;
|
|
2554
|
-
statusText: string;
|
|
2555
|
-
headers: any;
|
|
2556
|
-
request?: any;
|
|
2557
|
-
};
|
|
2558
|
-
type RequestOptions$6<_TResponse = any, Data = any> = {
|
|
2559
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2560
|
-
url: string;
|
|
2561
|
-
data?: Data;
|
|
2562
|
-
params?: URLSearchParams;
|
|
2563
|
-
} & APIMetadata$6;
|
|
2564
|
-
type APIMetadata$6 = {
|
|
2565
|
-
methodFqn?: string;
|
|
2566
|
-
entityFqdn?: string;
|
|
2567
|
-
packageName?: string;
|
|
2568
|
-
};
|
|
2569
|
-
type EventDefinition$5<Payload = unknown, Type extends string = string> = {
|
|
2570
|
-
__type: 'event-definition';
|
|
2571
|
-
type: Type;
|
|
2572
|
-
isDomainEvent?: boolean;
|
|
2573
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2574
|
-
__payload: Payload;
|
|
2575
|
-
};
|
|
2576
|
-
declare function EventDefinition$5<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$5<Payload, Type>;
|
|
2577
|
-
|
|
2578
|
-
declare global {
|
|
2579
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2580
|
-
interface SymbolConstructor {
|
|
2581
|
-
readonly observable: symbol;
|
|
2582
|
-
}
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
2499
|
declare const __metadata$6: {
|
|
2586
2500
|
PACKAGE_NAME: string;
|
|
2587
2501
|
};
|
|
2588
|
-
declare function approveGroupRequests(httpClient: HttpClient
|
|
2589
|
-
declare function rejectGroupRequests(httpClient: HttpClient
|
|
2590
|
-
declare function listGroupRequests(httpClient: HttpClient
|
|
2591
|
-
declare function queryGroupRequests(httpClient: HttpClient
|
|
2592
|
-
declare const onGroupRequestCreated: EventDefinition
|
|
2593
|
-
declare const onGroupRequestApproved: EventDefinition
|
|
2594
|
-
declare const onGroupRequestRejected: EventDefinition
|
|
2502
|
+
declare function approveGroupRequests(httpClient: HttpClient): (groupRequestIds: string[]) => Promise<ApproveGroupRequestsResponse & ApproveGroupRequestsResponseNonNullableFields>;
|
|
2503
|
+
declare function rejectGroupRequests(httpClient: HttpClient): (rejections: Rejection$3[]) => Promise<RejectGroupRequestsResponse & RejectGroupRequestsResponseNonNullableFields>;
|
|
2504
|
+
declare function listGroupRequests(httpClient: HttpClient): (options?: ListGroupRequestsOptions) => Promise<ListGroupRequestsResponse & ListGroupRequestsResponseNonNullableFields>;
|
|
2505
|
+
declare function queryGroupRequests(httpClient: HttpClient): (options?: QueryGroupRequestsOptions) => GroupRequestsQueryBuilder;
|
|
2506
|
+
declare const onGroupRequestCreated: EventDefinition<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
|
|
2507
|
+
declare const onGroupRequestApproved: EventDefinition<GroupRequestApprovedEnvelope, "wix.social_groups.v2.group_request_approved">;
|
|
2508
|
+
declare const onGroupRequestRejected: EventDefinition<GroupRequestRejectedEnvelope, "wix.social_groups.v2.group_request_rejected">;
|
|
2595
2509
|
|
|
2596
2510
|
type index_d$6_ApproveGroupRequestsRequest = ApproveGroupRequestsRequest;
|
|
2597
2511
|
type index_d$6_ApproveGroupRequestsResponse = ApproveGroupRequestsResponse;
|
|
@@ -2946,52 +2860,13 @@ interface UnassignRoleOptions {
|
|
|
2946
2860
|
siteMemberIds?: string[];
|
|
2947
2861
|
}
|
|
2948
2862
|
|
|
2949
|
-
interface HttpClient$5 {
|
|
2950
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
|
|
2951
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2952
|
-
}
|
|
2953
|
-
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
2954
|
-
type HttpResponse$5<T = any> = {
|
|
2955
|
-
data: T;
|
|
2956
|
-
status: number;
|
|
2957
|
-
statusText: string;
|
|
2958
|
-
headers: any;
|
|
2959
|
-
request?: any;
|
|
2960
|
-
};
|
|
2961
|
-
type RequestOptions$5<_TResponse = any, Data = any> = {
|
|
2962
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2963
|
-
url: string;
|
|
2964
|
-
data?: Data;
|
|
2965
|
-
params?: URLSearchParams;
|
|
2966
|
-
} & APIMetadata$5;
|
|
2967
|
-
type APIMetadata$5 = {
|
|
2968
|
-
methodFqn?: string;
|
|
2969
|
-
entityFqdn?: string;
|
|
2970
|
-
packageName?: string;
|
|
2971
|
-
};
|
|
2972
|
-
type EventDefinition$4<Payload = unknown, Type extends string = string> = {
|
|
2973
|
-
__type: 'event-definition';
|
|
2974
|
-
type: Type;
|
|
2975
|
-
isDomainEvent?: boolean;
|
|
2976
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2977
|
-
__payload: Payload;
|
|
2978
|
-
};
|
|
2979
|
-
declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
|
|
2980
|
-
|
|
2981
|
-
declare global {
|
|
2982
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2983
|
-
interface SymbolConstructor {
|
|
2984
|
-
readonly observable: symbol;
|
|
2985
|
-
}
|
|
2986
|
-
}
|
|
2987
|
-
|
|
2988
2863
|
declare const __metadata$5: {
|
|
2989
2864
|
PACKAGE_NAME: string;
|
|
2990
2865
|
};
|
|
2991
|
-
declare function assignRole(httpClient: HttpClient
|
|
2992
|
-
declare function unassignRole(httpClient: HttpClient
|
|
2993
|
-
declare const onGroupRoleAssigned: EventDefinition
|
|
2994
|
-
declare const onGroupRoleUnassigned: EventDefinition
|
|
2866
|
+
declare function assignRole(httpClient: HttpClient): (groupId: string, memberIds: string[], role: GroupRole, options?: AssignRoleOptions) => Promise<AssignRoleResponse & AssignRoleResponseNonNullableFields>;
|
|
2867
|
+
declare function unassignRole(httpClient: HttpClient): (groupId: string, memberIds: string[], role: GroupRole, options?: UnassignRoleOptions) => Promise<UnassignRoleResponse & UnassignRoleResponseNonNullableFields>;
|
|
2868
|
+
declare const onGroupRoleAssigned: EventDefinition<GroupRoleAssignedEnvelope, "wix.social_groups.v2.group_role_assigned">;
|
|
2869
|
+
declare const onGroupRoleUnassigned: EventDefinition<GroupRoleUnassignedEnvelope, "wix.social_groups.v2.group_role_unassigned">;
|
|
2995
2870
|
|
|
2996
2871
|
type index_d$5_AssignRoleOptions = AssignRoleOptions;
|
|
2997
2872
|
type index_d$5_AssignRoleRequest = AssignRoleRequest;
|
|
@@ -3232,51 +3107,12 @@ interface CreateOrReplaceAllRulesOptions {
|
|
|
3232
3107
|
rules?: GroupRule[];
|
|
3233
3108
|
}
|
|
3234
3109
|
|
|
3235
|
-
interface HttpClient$4 {
|
|
3236
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
3237
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3238
|
-
}
|
|
3239
|
-
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
3240
|
-
type HttpResponse$4<T = any> = {
|
|
3241
|
-
data: T;
|
|
3242
|
-
status: number;
|
|
3243
|
-
statusText: string;
|
|
3244
|
-
headers: any;
|
|
3245
|
-
request?: any;
|
|
3246
|
-
};
|
|
3247
|
-
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
3248
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3249
|
-
url: string;
|
|
3250
|
-
data?: Data;
|
|
3251
|
-
params?: URLSearchParams;
|
|
3252
|
-
} & APIMetadata$4;
|
|
3253
|
-
type APIMetadata$4 = {
|
|
3254
|
-
methodFqn?: string;
|
|
3255
|
-
entityFqdn?: string;
|
|
3256
|
-
packageName?: string;
|
|
3257
|
-
};
|
|
3258
|
-
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
3259
|
-
__type: 'event-definition';
|
|
3260
|
-
type: Type;
|
|
3261
|
-
isDomainEvent?: boolean;
|
|
3262
|
-
transformations?: (envelope: unknown) => Payload;
|
|
3263
|
-
__payload: Payload;
|
|
3264
|
-
};
|
|
3265
|
-
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
3266
|
-
|
|
3267
|
-
declare global {
|
|
3268
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3269
|
-
interface SymbolConstructor {
|
|
3270
|
-
readonly observable: symbol;
|
|
3271
|
-
}
|
|
3272
|
-
}
|
|
3273
|
-
|
|
3274
3110
|
declare const __metadata$4: {
|
|
3275
3111
|
PACKAGE_NAME: string;
|
|
3276
3112
|
};
|
|
3277
|
-
declare function listRules(httpClient: HttpClient
|
|
3278
|
-
declare function createOrReplaceAllRules(httpClient: HttpClient
|
|
3279
|
-
declare const onGroupRulesUpdated: EventDefinition
|
|
3113
|
+
declare function listRules(httpClient: HttpClient): (groupId: string) => Promise<ListRulesResponse & ListRulesResponseNonNullableFields>;
|
|
3114
|
+
declare function createOrReplaceAllRules(httpClient: HttpClient): (groupId: string, options?: CreateOrReplaceAllRulesOptions) => Promise<CreateOrReplaceAllRulesResponse & CreateOrReplaceAllRulesResponseNonNullableFields>;
|
|
3115
|
+
declare const onGroupRulesUpdated: EventDefinition<GroupRulesUpdatedEnvelope, "wix.social_groups.v2.group_rules_updated">;
|
|
3280
3116
|
|
|
3281
3117
|
type index_d$4_CreateOrReplaceAllRulesOptions = CreateOrReplaceAllRulesOptions;
|
|
3282
3118
|
type index_d$4_CreateOrReplaceAllRulesRequest = CreateOrReplaceAllRulesRequest;
|
|
@@ -3847,55 +3683,16 @@ interface JoinGroupRequestsQueryBuilder {
|
|
|
3847
3683
|
find: () => Promise<JoinGroupRequestsQueryResult>;
|
|
3848
3684
|
}
|
|
3849
3685
|
|
|
3850
|
-
interface HttpClient$3 {
|
|
3851
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
3852
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3853
|
-
}
|
|
3854
|
-
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
3855
|
-
type HttpResponse$3<T = any> = {
|
|
3856
|
-
data: T;
|
|
3857
|
-
status: number;
|
|
3858
|
-
statusText: string;
|
|
3859
|
-
headers: any;
|
|
3860
|
-
request?: any;
|
|
3861
|
-
};
|
|
3862
|
-
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
3863
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3864
|
-
url: string;
|
|
3865
|
-
data?: Data;
|
|
3866
|
-
params?: URLSearchParams;
|
|
3867
|
-
} & APIMetadata$3;
|
|
3868
|
-
type APIMetadata$3 = {
|
|
3869
|
-
methodFqn?: string;
|
|
3870
|
-
entityFqdn?: string;
|
|
3871
|
-
packageName?: string;
|
|
3872
|
-
};
|
|
3873
|
-
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
3874
|
-
__type: 'event-definition';
|
|
3875
|
-
type: Type;
|
|
3876
|
-
isDomainEvent?: boolean;
|
|
3877
|
-
transformations?: (envelope: unknown) => Payload;
|
|
3878
|
-
__payload: Payload;
|
|
3879
|
-
};
|
|
3880
|
-
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
3881
|
-
|
|
3882
|
-
declare global {
|
|
3883
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3884
|
-
interface SymbolConstructor {
|
|
3885
|
-
readonly observable: symbol;
|
|
3886
|
-
}
|
|
3887
|
-
}
|
|
3888
|
-
|
|
3889
3686
|
declare const __metadata$3: {
|
|
3890
3687
|
PACKAGE_NAME: string;
|
|
3891
3688
|
};
|
|
3892
|
-
declare function approveJoinGroupRequests(httpClient: HttpClient
|
|
3893
|
-
declare function rejectJoinGroupRequests(httpClient: HttpClient
|
|
3894
|
-
declare function listJoinGroupRequests(httpClient: HttpClient
|
|
3895
|
-
declare function queryJoinGroupRequests(httpClient: HttpClient
|
|
3896
|
-
declare const onJoinGroupRequestCreated: EventDefinition
|
|
3897
|
-
declare const onJoinGroupRequestApproved: EventDefinition
|
|
3898
|
-
declare const onJoinGroupRequestRejected: EventDefinition
|
|
3689
|
+
declare function approveJoinGroupRequests(httpClient: HttpClient): (groupId: string, memberIds: string[], options?: ApproveJoinGroupRequestsOptions) => Promise<ApproveJoinGroupRequestsResponse & ApproveJoinGroupRequestsResponseNonNullableFields>;
|
|
3690
|
+
declare function rejectJoinGroupRequests(httpClient: HttpClient): (groupId: string, rejections: Rejection$2[]) => Promise<RejectJoinGroupRequestsResponse & RejectJoinGroupRequestsResponseNonNullableFields>;
|
|
3691
|
+
declare function listJoinGroupRequests(httpClient: HttpClient): (groupId: string, options?: ListJoinGroupRequestsOptions) => Promise<ListJoinGroupRequestsResponse & ListJoinGroupRequestsResponseNonNullableFields>;
|
|
3692
|
+
declare function queryJoinGroupRequests(httpClient: HttpClient): (groupId: string, options?: QueryJoinGroupRequestsOptions) => JoinGroupRequestsQueryBuilder;
|
|
3693
|
+
declare const onJoinGroupRequestCreated: EventDefinition<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
|
|
3694
|
+
declare const onJoinGroupRequestApproved: EventDefinition<JoinGroupRequestApprovedEnvelope, "wix.social_groups.v2.join_group_request_approved">;
|
|
3695
|
+
declare const onJoinGroupRequestRejected: EventDefinition<JoinGroupRequestRejectedEnvelope, "wix.social_groups.v2.join_group_request_rejected">;
|
|
3899
3696
|
|
|
3900
3697
|
type index_d$3_ApproveAllJoinGroupRequestsRequest = ApproveAllJoinGroupRequestsRequest;
|
|
3901
3698
|
type index_d$3_ApproveAllJoinGroupRequestsResponse = ApproveAllJoinGroupRequestsResponse;
|
|
@@ -4079,43 +3876,12 @@ interface ListAnswersOptions {
|
|
|
4079
3876
|
paging?: Paging$2;
|
|
4080
3877
|
}
|
|
4081
3878
|
|
|
4082
|
-
interface HttpClient$2 {
|
|
4083
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
4084
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
4085
|
-
}
|
|
4086
|
-
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
4087
|
-
type HttpResponse$2<T = any> = {
|
|
4088
|
-
data: T;
|
|
4089
|
-
status: number;
|
|
4090
|
-
statusText: string;
|
|
4091
|
-
headers: any;
|
|
4092
|
-
request?: any;
|
|
4093
|
-
};
|
|
4094
|
-
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
4095
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4096
|
-
url: string;
|
|
4097
|
-
data?: Data;
|
|
4098
|
-
params?: URLSearchParams;
|
|
4099
|
-
} & APIMetadata$2;
|
|
4100
|
-
type APIMetadata$2 = {
|
|
4101
|
-
methodFqn?: string;
|
|
4102
|
-
entityFqdn?: string;
|
|
4103
|
-
packageName?: string;
|
|
4104
|
-
};
|
|
4105
|
-
|
|
4106
|
-
declare global {
|
|
4107
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4108
|
-
interface SymbolConstructor {
|
|
4109
|
-
readonly observable: symbol;
|
|
4110
|
-
}
|
|
4111
|
-
}
|
|
4112
|
-
|
|
4113
3879
|
declare const __metadata$2: {
|
|
4114
3880
|
PACKAGE_NAME: string;
|
|
4115
3881
|
};
|
|
4116
|
-
declare function listMembershipQuestions(httpClient: HttpClient
|
|
4117
|
-
declare function createOrReplaceAllMembershipQuestions(httpClient: HttpClient
|
|
4118
|
-
declare function listAnswers(httpClient: HttpClient
|
|
3882
|
+
declare function listMembershipQuestions(httpClient: HttpClient): (groupId: string) => Promise<ListMembershipQuestionsResponse & ListMembershipQuestionsResponseNonNullableFields>;
|
|
3883
|
+
declare function createOrReplaceAllMembershipQuestions(httpClient: HttpClient): (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions) => Promise<CreateOrReplaceAllMembershipQuestionsResponse & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields>;
|
|
3884
|
+
declare function listAnswers(httpClient: HttpClient): (groupId: string, options?: ListAnswersOptions) => Promise<ListAnswersResponse & ListAnswersResponseNonNullableFields>;
|
|
4119
3885
|
|
|
4120
3886
|
type index_d$2_CreateOrReplaceAllMembershipQuestionsOptions = CreateOrReplaceAllMembershipQuestionsOptions;
|
|
4121
3887
|
type index_d$2_CreateOrReplaceAllMembershipQuestionsRequest = CreateOrReplaceAllMembershipQuestionsRequest;
|
|
@@ -4809,54 +4575,15 @@ interface QueryCreateRequestsOptions {
|
|
|
4809
4575
|
query?: Query$1;
|
|
4810
4576
|
}
|
|
4811
4577
|
|
|
4812
|
-
interface HttpClient$1 {
|
|
4813
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
4814
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
4815
|
-
}
|
|
4816
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
4817
|
-
type HttpResponse$1<T = any> = {
|
|
4818
|
-
data: T;
|
|
4819
|
-
status: number;
|
|
4820
|
-
statusText: string;
|
|
4821
|
-
headers: any;
|
|
4822
|
-
request?: any;
|
|
4823
|
-
};
|
|
4824
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
4825
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4826
|
-
url: string;
|
|
4827
|
-
data?: Data;
|
|
4828
|
-
params?: URLSearchParams;
|
|
4829
|
-
} & APIMetadata$1;
|
|
4830
|
-
type APIMetadata$1 = {
|
|
4831
|
-
methodFqn?: string;
|
|
4832
|
-
entityFqdn?: string;
|
|
4833
|
-
packageName?: string;
|
|
4834
|
-
};
|
|
4835
|
-
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
4836
|
-
__type: 'event-definition';
|
|
4837
|
-
type: Type;
|
|
4838
|
-
isDomainEvent?: boolean;
|
|
4839
|
-
transformations?: (envelope: unknown) => Payload;
|
|
4840
|
-
__payload: Payload;
|
|
4841
|
-
};
|
|
4842
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
4843
|
-
|
|
4844
|
-
declare global {
|
|
4845
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4846
|
-
interface SymbolConstructor {
|
|
4847
|
-
readonly observable: symbol;
|
|
4848
|
-
}
|
|
4849
|
-
}
|
|
4850
|
-
|
|
4851
4578
|
declare const __metadata$1: {
|
|
4852
4579
|
PACKAGE_NAME: string;
|
|
4853
4580
|
};
|
|
4854
|
-
declare function approveCreateRequests(httpClient: HttpClient
|
|
4855
|
-
declare function rejectCreateRequests(httpClient: HttpClient
|
|
4856
|
-
declare function listCreateRequests(httpClient: HttpClient
|
|
4857
|
-
declare function queryCreateRequests(httpClient: HttpClient
|
|
4858
|
-
declare const onCreateRequestApproved: EventDefinition
|
|
4859
|
-
declare const onCreateRequestRejected: EventDefinition
|
|
4581
|
+
declare function approveCreateRequests(httpClient: HttpClient): (options?: ApproveCreateRequestsOptions) => Promise<ApproveCreateRequestsResponse & ApproveCreateRequestsResponseNonNullableFields>;
|
|
4582
|
+
declare function rejectCreateRequests(httpClient: HttpClient): (options?: RejectCreateRequestsOptions) => Promise<RejectCreateRequestsResponse & RejectCreateRequestsResponseNonNullableFields>;
|
|
4583
|
+
declare function listCreateRequests(httpClient: HttpClient): (options?: ListCreateRequestsOptions) => Promise<ListCreateRequestsResponse & ListCreateRequestsResponseNonNullableFields>;
|
|
4584
|
+
declare function queryCreateRequests(httpClient: HttpClient): (options?: QueryCreateRequestsOptions) => Promise<QueryCreateRequestsResponse & QueryCreateRequestsResponseNonNullableFields>;
|
|
4585
|
+
declare const onCreateRequestApproved: EventDefinition<CreateRequestApprovedEnvelope, "wix.social_groups.v3.create_request_approved">;
|
|
4586
|
+
declare const onCreateRequestRejected: EventDefinition<CreateRequestRejectedEnvelope, "wix.social_groups.v3.create_request_rejected">;
|
|
4860
4587
|
|
|
4861
4588
|
type index_d$1_AccessRestriction = AccessRestriction;
|
|
4862
4589
|
type index_d$1_AccessRestrictionDataOneOf = AccessRestrictionDataOneOf;
|
|
@@ -5305,45 +5032,6 @@ interface QueryJoinRequestsOptions {
|
|
|
5305
5032
|
query?: Query;
|
|
5306
5033
|
}
|
|
5307
5034
|
|
|
5308
|
-
interface HttpClient {
|
|
5309
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
5310
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
5311
|
-
}
|
|
5312
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
5313
|
-
type HttpResponse<T = any> = {
|
|
5314
|
-
data: T;
|
|
5315
|
-
status: number;
|
|
5316
|
-
statusText: string;
|
|
5317
|
-
headers: any;
|
|
5318
|
-
request?: any;
|
|
5319
|
-
};
|
|
5320
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
5321
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
5322
|
-
url: string;
|
|
5323
|
-
data?: Data;
|
|
5324
|
-
params?: URLSearchParams;
|
|
5325
|
-
} & APIMetadata;
|
|
5326
|
-
type APIMetadata = {
|
|
5327
|
-
methodFqn?: string;
|
|
5328
|
-
entityFqdn?: string;
|
|
5329
|
-
packageName?: string;
|
|
5330
|
-
};
|
|
5331
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
5332
|
-
__type: 'event-definition';
|
|
5333
|
-
type: Type;
|
|
5334
|
-
isDomainEvent?: boolean;
|
|
5335
|
-
transformations?: (envelope: unknown) => Payload;
|
|
5336
|
-
__payload: Payload;
|
|
5337
|
-
};
|
|
5338
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
5339
|
-
|
|
5340
|
-
declare global {
|
|
5341
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
5342
|
-
interface SymbolConstructor {
|
|
5343
|
-
readonly observable: symbol;
|
|
5344
|
-
}
|
|
5345
|
-
}
|
|
5346
|
-
|
|
5347
5035
|
declare const __metadata: {
|
|
5348
5036
|
PACKAGE_NAME: string;
|
|
5349
5037
|
};
|