@wix/groups 1.0.86 → 1.0.87
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 +11 -12
- package/type-bundles/context.bundle.d.ts +456 -114
- package/type-bundles/index.bundle.d.ts +372 -60
|
@@ -910,41 +910,49 @@ interface GroupsQueryBuilder {
|
|
|
910
910
|
find: () => Promise<GroupsQueryResult>;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
-
interface HttpClient {
|
|
914
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
913
|
+
interface HttpClient$8 {
|
|
914
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$8<TResponse, TData>): Promise<HttpResponse$8<TResponse>>;
|
|
915
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
915
916
|
}
|
|
916
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
917
|
-
type HttpResponse<T = any> = {
|
|
917
|
+
type RequestOptionsFactory$8<TResponse = any, TData = any> = (context: any) => RequestOptions$8<TResponse, TData>;
|
|
918
|
+
type HttpResponse$8<T = any> = {
|
|
918
919
|
data: T;
|
|
919
920
|
status: number;
|
|
920
921
|
statusText: string;
|
|
921
922
|
headers: any;
|
|
922
923
|
request?: any;
|
|
923
924
|
};
|
|
924
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
925
|
+
type RequestOptions$8<_TResponse = any, Data = any> = {
|
|
925
926
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
926
927
|
url: string;
|
|
927
928
|
data?: Data;
|
|
928
929
|
params?: URLSearchParams;
|
|
929
|
-
} & APIMetadata;
|
|
930
|
-
type APIMetadata = {
|
|
930
|
+
} & APIMetadata$8;
|
|
931
|
+
type APIMetadata$8 = {
|
|
931
932
|
methodFqn?: string;
|
|
932
933
|
entityFqdn?: string;
|
|
933
934
|
packageName?: string;
|
|
934
935
|
};
|
|
935
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
936
|
+
type EventDefinition$7<Payload = unknown, Type extends string = string> = {
|
|
936
937
|
__type: 'event-definition';
|
|
937
938
|
type: Type;
|
|
938
939
|
isDomainEvent?: boolean;
|
|
939
|
-
transformations?: unknown;
|
|
940
|
+
transformations?: (envelope: unknown) => Payload;
|
|
940
941
|
__payload: Payload;
|
|
941
942
|
};
|
|
942
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
943
|
+
declare function EventDefinition$7<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$7<Payload, Type>;
|
|
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
|
+
}
|
|
943
951
|
|
|
944
952
|
declare const __metadata$8: {
|
|
945
953
|
PACKAGE_NAME: string;
|
|
946
954
|
};
|
|
947
|
-
declare function createGroup(httpClient: HttpClient): (group: Group$2, options?: CreateGroupOptions) => Promise<Group$2 & {
|
|
955
|
+
declare function createGroup(httpClient: HttpClient$8): (group: Group$2, options?: CreateGroupOptions) => Promise<Group$2 & {
|
|
948
956
|
privacyLevel: PrivacyStatus$2;
|
|
949
957
|
privacyStatus: PrivacyStatus$2;
|
|
950
958
|
coverImage?: {
|
|
@@ -967,7 +975,7 @@ declare function createGroup(httpClient: HttpClient): (group: Group$2, options?:
|
|
|
967
975
|
identityType: IdentityType$2;
|
|
968
976
|
} | undefined;
|
|
969
977
|
}>;
|
|
970
|
-
declare function updateGroup(httpClient: HttpClient): (_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions) => Promise<Group$2 & {
|
|
978
|
+
declare function updateGroup(httpClient: HttpClient$8): (_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions) => Promise<Group$2 & {
|
|
971
979
|
privacyLevel: PrivacyStatus$2;
|
|
972
980
|
privacyStatus: PrivacyStatus$2;
|
|
973
981
|
coverImage?: {
|
|
@@ -990,8 +998,8 @@ declare function updateGroup(httpClient: HttpClient): (_id: string | null, group
|
|
|
990
998
|
identityType: IdentityType$2;
|
|
991
999
|
} | undefined;
|
|
992
1000
|
}>;
|
|
993
|
-
declare function deleteGroup(httpClient: HttpClient): (groupId: string) => Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
|
|
994
|
-
declare function getGroup(httpClient: HttpClient): (groupId: string, options?: GetGroupOptions) => Promise<Group$2 & {
|
|
1001
|
+
declare function deleteGroup(httpClient: HttpClient$8): (groupId: string) => Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
|
|
1002
|
+
declare function getGroup(httpClient: HttpClient$8): (groupId: string, options?: GetGroupOptions) => Promise<Group$2 & {
|
|
995
1003
|
privacyLevel: PrivacyStatus$2;
|
|
996
1004
|
privacyStatus: PrivacyStatus$2;
|
|
997
1005
|
coverImage?: {
|
|
@@ -1014,14 +1022,14 @@ declare function getGroup(httpClient: HttpClient): (groupId: string, options?: G
|
|
|
1014
1022
|
identityType: IdentityType$2;
|
|
1015
1023
|
} | undefined;
|
|
1016
1024
|
}>;
|
|
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">;
|
|
1025
|
+
declare function getGroupBySlug(httpClient: HttpClient$8): (slug: string, options?: GetGroupBySlugOptions) => Promise<GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields>;
|
|
1026
|
+
declare function listGroups(httpClient: HttpClient$8): (options?: ListGroupsOptions) => Promise<ListGroupsResponse & ListGroupsResponseNonNullableFields>;
|
|
1027
|
+
declare function queryGroups(httpClient: HttpClient$8): (options?: QueryGroupsOptions) => GroupsQueryBuilder;
|
|
1028
|
+
declare const onGroupCreated: EventDefinition$7<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
|
|
1029
|
+
declare const onGroupUpdated: EventDefinition$7<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
|
|
1030
|
+
declare const onGroupCoverChanged: EventDefinition$7<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
|
|
1031
|
+
declare const onGroupDescriptionChanged: EventDefinition$7<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
|
|
1032
|
+
declare const onGroupDeleted: EventDefinition$7<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
|
|
1025
1033
|
|
|
1026
1034
|
type index_d$8_ContentType = ContentType;
|
|
1027
1035
|
declare const index_d$8_ContentType: typeof ContentType;
|
|
@@ -1675,17 +1683,56 @@ interface QueryMembershipsOptions {
|
|
|
1675
1683
|
query?: Query$4;
|
|
1676
1684
|
}
|
|
1677
1685
|
|
|
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
|
+
|
|
1678
1725
|
declare const __metadata$7: {
|
|
1679
1726
|
PACKAGE_NAME: string;
|
|
1680
1727
|
};
|
|
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">;
|
|
1728
|
+
declare function addGroupMembers(httpClient: HttpClient$7): (groupId: string, memberIds: string[], options?: AddGroupMembersOptions) => Promise<AddGroupMembersResponse & AddGroupMembersResponseNonNullableFields>;
|
|
1729
|
+
declare function removeGroupMembers(httpClient: HttpClient$7): (groupId: string, memberIds: string[], options?: RemoveGroupMembersOptions) => Promise<void>;
|
|
1730
|
+
declare function listGroupMembers(httpClient: HttpClient$7): (groupId: string, options?: ListGroupMembersOptions) => Promise<ListGroupMembersResponse & ListGroupMembersResponseNonNullableFields>;
|
|
1731
|
+
declare function queryGroupMembers(httpClient: HttpClient$7): (groupId: string) => MembersQueryBuilder;
|
|
1732
|
+
declare function listMemberships(httpClient: HttpClient$7): (memberId: string | null, options?: ListMembershipsOptions) => Promise<ListMembershipsResponse & ListMembershipsResponseNonNullableFields>;
|
|
1733
|
+
declare function queryMemberships(httpClient: HttpClient$7): (memberId: string | null, options?: QueryMembershipsOptions) => Promise<QueryMembershipsResponse & QueryMembershipsResponseNonNullableFields>;
|
|
1734
|
+
declare const onGroupMemberAdded: EventDefinition$6<GroupMemberAddedEnvelope, "wix.social_groups.v2.group_member_added">;
|
|
1735
|
+
declare const onGroupMemberRemoved: EventDefinition$6<GroupMemberRemovedEnvelope, "wix.social_groups.v2.group_member_removed">;
|
|
1689
1736
|
|
|
1690
1737
|
type index_d$7_AddGroupMembersOptions = AddGroupMembersOptions;
|
|
1691
1738
|
type index_d$7_AddGroupMembersRequest = AddGroupMembersRequest;
|
|
@@ -2496,16 +2543,55 @@ interface GroupRequestsQueryBuilder {
|
|
|
2496
2543
|
find: () => Promise<GroupRequestsQueryResult>;
|
|
2497
2544
|
}
|
|
2498
2545
|
|
|
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
|
+
|
|
2499
2585
|
declare const __metadata$6: {
|
|
2500
2586
|
PACKAGE_NAME: string;
|
|
2501
2587
|
};
|
|
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">;
|
|
2588
|
+
declare function approveGroupRequests(httpClient: HttpClient$6): (groupRequestIds: string[]) => Promise<ApproveGroupRequestsResponse & ApproveGroupRequestsResponseNonNullableFields>;
|
|
2589
|
+
declare function rejectGroupRequests(httpClient: HttpClient$6): (rejections: Rejection$3[]) => Promise<RejectGroupRequestsResponse & RejectGroupRequestsResponseNonNullableFields>;
|
|
2590
|
+
declare function listGroupRequests(httpClient: HttpClient$6): (options?: ListGroupRequestsOptions) => Promise<ListGroupRequestsResponse & ListGroupRequestsResponseNonNullableFields>;
|
|
2591
|
+
declare function queryGroupRequests(httpClient: HttpClient$6): (options?: QueryGroupRequestsOptions) => GroupRequestsQueryBuilder;
|
|
2592
|
+
declare const onGroupRequestCreated: EventDefinition$5<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
|
|
2593
|
+
declare const onGroupRequestApproved: EventDefinition$5<GroupRequestApprovedEnvelope, "wix.social_groups.v2.group_request_approved">;
|
|
2594
|
+
declare const onGroupRequestRejected: EventDefinition$5<GroupRequestRejectedEnvelope, "wix.social_groups.v2.group_request_rejected">;
|
|
2509
2595
|
|
|
2510
2596
|
type index_d$6_ApproveGroupRequestsRequest = ApproveGroupRequestsRequest;
|
|
2511
2597
|
type index_d$6_ApproveGroupRequestsResponse = ApproveGroupRequestsResponse;
|
|
@@ -2860,13 +2946,52 @@ interface UnassignRoleOptions {
|
|
|
2860
2946
|
siteMemberIds?: string[];
|
|
2861
2947
|
}
|
|
2862
2948
|
|
|
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
|
+
|
|
2863
2988
|
declare const __metadata$5: {
|
|
2864
2989
|
PACKAGE_NAME: string;
|
|
2865
2990
|
};
|
|
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">;
|
|
2991
|
+
declare function assignRole(httpClient: HttpClient$5): (groupId: string, memberIds: string[], role: GroupRole, options?: AssignRoleOptions) => Promise<AssignRoleResponse & AssignRoleResponseNonNullableFields>;
|
|
2992
|
+
declare function unassignRole(httpClient: HttpClient$5): (groupId: string, memberIds: string[], role: GroupRole, options?: UnassignRoleOptions) => Promise<UnassignRoleResponse & UnassignRoleResponseNonNullableFields>;
|
|
2993
|
+
declare const onGroupRoleAssigned: EventDefinition$4<GroupRoleAssignedEnvelope, "wix.social_groups.v2.group_role_assigned">;
|
|
2994
|
+
declare const onGroupRoleUnassigned: EventDefinition$4<GroupRoleUnassignedEnvelope, "wix.social_groups.v2.group_role_unassigned">;
|
|
2870
2995
|
|
|
2871
2996
|
type index_d$5_AssignRoleOptions = AssignRoleOptions;
|
|
2872
2997
|
type index_d$5_AssignRoleRequest = AssignRoleRequest;
|
|
@@ -3107,12 +3232,51 @@ interface CreateOrReplaceAllRulesOptions {
|
|
|
3107
3232
|
rules?: GroupRule[];
|
|
3108
3233
|
}
|
|
3109
3234
|
|
|
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
|
+
|
|
3110
3274
|
declare const __metadata$4: {
|
|
3111
3275
|
PACKAGE_NAME: string;
|
|
3112
3276
|
};
|
|
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">;
|
|
3277
|
+
declare function listRules(httpClient: HttpClient$4): (groupId: string) => Promise<ListRulesResponse & ListRulesResponseNonNullableFields>;
|
|
3278
|
+
declare function createOrReplaceAllRules(httpClient: HttpClient$4): (groupId: string, options?: CreateOrReplaceAllRulesOptions) => Promise<CreateOrReplaceAllRulesResponse & CreateOrReplaceAllRulesResponseNonNullableFields>;
|
|
3279
|
+
declare const onGroupRulesUpdated: EventDefinition$3<GroupRulesUpdatedEnvelope, "wix.social_groups.v2.group_rules_updated">;
|
|
3116
3280
|
|
|
3117
3281
|
type index_d$4_CreateOrReplaceAllRulesOptions = CreateOrReplaceAllRulesOptions;
|
|
3118
3282
|
type index_d$4_CreateOrReplaceAllRulesRequest = CreateOrReplaceAllRulesRequest;
|
|
@@ -3683,16 +3847,55 @@ interface JoinGroupRequestsQueryBuilder {
|
|
|
3683
3847
|
find: () => Promise<JoinGroupRequestsQueryResult>;
|
|
3684
3848
|
}
|
|
3685
3849
|
|
|
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
|
+
|
|
3686
3889
|
declare const __metadata$3: {
|
|
3687
3890
|
PACKAGE_NAME: string;
|
|
3688
3891
|
};
|
|
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">;
|
|
3892
|
+
declare function approveJoinGroupRequests(httpClient: HttpClient$3): (groupId: string, memberIds: string[], options?: ApproveJoinGroupRequestsOptions) => Promise<ApproveJoinGroupRequestsResponse & ApproveJoinGroupRequestsResponseNonNullableFields>;
|
|
3893
|
+
declare function rejectJoinGroupRequests(httpClient: HttpClient$3): (groupId: string, rejections: Rejection$2[]) => Promise<RejectJoinGroupRequestsResponse & RejectJoinGroupRequestsResponseNonNullableFields>;
|
|
3894
|
+
declare function listJoinGroupRequests(httpClient: HttpClient$3): (groupId: string, options?: ListJoinGroupRequestsOptions) => Promise<ListJoinGroupRequestsResponse & ListJoinGroupRequestsResponseNonNullableFields>;
|
|
3895
|
+
declare function queryJoinGroupRequests(httpClient: HttpClient$3): (groupId: string, options?: QueryJoinGroupRequestsOptions) => JoinGroupRequestsQueryBuilder;
|
|
3896
|
+
declare const onJoinGroupRequestCreated: EventDefinition$2<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
|
|
3897
|
+
declare const onJoinGroupRequestApproved: EventDefinition$2<JoinGroupRequestApprovedEnvelope, "wix.social_groups.v2.join_group_request_approved">;
|
|
3898
|
+
declare const onJoinGroupRequestRejected: EventDefinition$2<JoinGroupRequestRejectedEnvelope, "wix.social_groups.v2.join_group_request_rejected">;
|
|
3696
3899
|
|
|
3697
3900
|
type index_d$3_ApproveAllJoinGroupRequestsRequest = ApproveAllJoinGroupRequestsRequest;
|
|
3698
3901
|
type index_d$3_ApproveAllJoinGroupRequestsResponse = ApproveAllJoinGroupRequestsResponse;
|
|
@@ -3876,12 +4079,43 @@ interface ListAnswersOptions {
|
|
|
3876
4079
|
paging?: Paging$2;
|
|
3877
4080
|
}
|
|
3878
4081
|
|
|
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
|
+
|
|
3879
4113
|
declare const __metadata$2: {
|
|
3880
4114
|
PACKAGE_NAME: string;
|
|
3881
4115
|
};
|
|
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>;
|
|
4116
|
+
declare function listMembershipQuestions(httpClient: HttpClient$2): (groupId: string) => Promise<ListMembershipQuestionsResponse & ListMembershipQuestionsResponseNonNullableFields>;
|
|
4117
|
+
declare function createOrReplaceAllMembershipQuestions(httpClient: HttpClient$2): (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions) => Promise<CreateOrReplaceAllMembershipQuestionsResponse & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields>;
|
|
4118
|
+
declare function listAnswers(httpClient: HttpClient$2): (groupId: string, options?: ListAnswersOptions) => Promise<ListAnswersResponse & ListAnswersResponseNonNullableFields>;
|
|
3885
4119
|
|
|
3886
4120
|
type index_d$2_CreateOrReplaceAllMembershipQuestionsOptions = CreateOrReplaceAllMembershipQuestionsOptions;
|
|
3887
4121
|
type index_d$2_CreateOrReplaceAllMembershipQuestionsRequest = CreateOrReplaceAllMembershipQuestionsRequest;
|
|
@@ -4575,15 +4809,54 @@ interface QueryCreateRequestsOptions {
|
|
|
4575
4809
|
query?: Query$1;
|
|
4576
4810
|
}
|
|
4577
4811
|
|
|
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
|
+
|
|
4578
4851
|
declare const __metadata$1: {
|
|
4579
4852
|
PACKAGE_NAME: string;
|
|
4580
4853
|
};
|
|
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">;
|
|
4854
|
+
declare function approveCreateRequests(httpClient: HttpClient$1): (options?: ApproveCreateRequestsOptions) => Promise<ApproveCreateRequestsResponse & ApproveCreateRequestsResponseNonNullableFields>;
|
|
4855
|
+
declare function rejectCreateRequests(httpClient: HttpClient$1): (options?: RejectCreateRequestsOptions) => Promise<RejectCreateRequestsResponse & RejectCreateRequestsResponseNonNullableFields>;
|
|
4856
|
+
declare function listCreateRequests(httpClient: HttpClient$1): (options?: ListCreateRequestsOptions) => Promise<ListCreateRequestsResponse & ListCreateRequestsResponseNonNullableFields>;
|
|
4857
|
+
declare function queryCreateRequests(httpClient: HttpClient$1): (options?: QueryCreateRequestsOptions) => Promise<QueryCreateRequestsResponse & QueryCreateRequestsResponseNonNullableFields>;
|
|
4858
|
+
declare const onCreateRequestApproved: EventDefinition$1<CreateRequestApprovedEnvelope, "wix.social_groups.v3.create_request_approved">;
|
|
4859
|
+
declare const onCreateRequestRejected: EventDefinition$1<CreateRequestRejectedEnvelope, "wix.social_groups.v3.create_request_rejected">;
|
|
4587
4860
|
|
|
4588
4861
|
type index_d$1_AccessRestriction = AccessRestriction;
|
|
4589
4862
|
type index_d$1_AccessRestrictionDataOneOf = AccessRestrictionDataOneOf;
|
|
@@ -5032,6 +5305,45 @@ interface QueryJoinRequestsOptions {
|
|
|
5032
5305
|
query?: Query;
|
|
5033
5306
|
}
|
|
5034
5307
|
|
|
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
|
+
|
|
5035
5347
|
declare const __metadata: {
|
|
5036
5348
|
PACKAGE_NAME: string;
|
|
5037
5349
|
};
|