@wix/groups 1.0.89 → 1.0.90
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 -11
- package/type-bundles/context.bundle.d.ts +113 -558
- package/type-bundles/index.bundle.d.ts +92 -482
- package/type-bundles/meta.bundle.d.ts +18 -156
|
@@ -194,7 +194,6 @@ interface GroupSettings$2 {
|
|
|
194
194
|
groupDetailsChangedPostEnabled?: boolean | null;
|
|
195
195
|
/** Whether all members can see the full member list. */
|
|
196
196
|
showMemberList?: boolean | null;
|
|
197
|
-
onboardingStepsSettings?: OnboardingStepSettings$2[];
|
|
198
197
|
}
|
|
199
198
|
interface Identity$2 {
|
|
200
199
|
/** Member ID of the group creator. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
|
|
@@ -459,6 +458,9 @@ interface DomainEventBodyOneOf$7 {
|
|
|
459
458
|
interface EntityCreatedEvent$7 {
|
|
460
459
|
entity?: string;
|
|
461
460
|
}
|
|
461
|
+
interface RestoreInfo$7 {
|
|
462
|
+
deletedDate?: Date;
|
|
463
|
+
}
|
|
462
464
|
interface EntityUpdatedEvent$7 {
|
|
463
465
|
/**
|
|
464
466
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -528,12 +530,6 @@ interface CreateGroupResponseNonNullableFields {
|
|
|
528
530
|
y: number;
|
|
529
531
|
};
|
|
530
532
|
};
|
|
531
|
-
settings?: {
|
|
532
|
-
onboardingStepsSettings: {
|
|
533
|
-
stepKey: StepKey$2;
|
|
534
|
-
visible: boolean;
|
|
535
|
-
}[];
|
|
536
|
-
};
|
|
537
533
|
createdBy?: {
|
|
538
534
|
identityType: IdentityType$2;
|
|
539
535
|
};
|
|
@@ -553,12 +549,6 @@ interface UpdateGroupResponseNonNullableFields {
|
|
|
553
549
|
y: number;
|
|
554
550
|
};
|
|
555
551
|
};
|
|
556
|
-
settings?: {
|
|
557
|
-
onboardingStepsSettings: {
|
|
558
|
-
stepKey: StepKey$2;
|
|
559
|
-
visible: boolean;
|
|
560
|
-
}[];
|
|
561
|
-
};
|
|
562
552
|
createdBy?: {
|
|
563
553
|
identityType: IdentityType$2;
|
|
564
554
|
};
|
|
@@ -578,12 +568,6 @@ interface DeleteGroupResponseNonNullableFields {
|
|
|
578
568
|
y: number;
|
|
579
569
|
};
|
|
580
570
|
};
|
|
581
|
-
settings?: {
|
|
582
|
-
onboardingStepsSettings: {
|
|
583
|
-
stepKey: StepKey$2;
|
|
584
|
-
visible: boolean;
|
|
585
|
-
}[];
|
|
586
|
-
};
|
|
587
571
|
createdBy?: {
|
|
588
572
|
identityType: IdentityType$2;
|
|
589
573
|
};
|
|
@@ -603,12 +587,6 @@ interface GetGroupResponseNonNullableFields {
|
|
|
603
587
|
y: number;
|
|
604
588
|
};
|
|
605
589
|
};
|
|
606
|
-
settings?: {
|
|
607
|
-
onboardingStepsSettings: {
|
|
608
|
-
stepKey: StepKey$2;
|
|
609
|
-
visible: boolean;
|
|
610
|
-
}[];
|
|
611
|
-
};
|
|
612
590
|
createdBy?: {
|
|
613
591
|
identityType: IdentityType$2;
|
|
614
592
|
};
|
|
@@ -628,12 +606,6 @@ interface GetGroupBySlugResponseNonNullableFields {
|
|
|
628
606
|
y: number;
|
|
629
607
|
};
|
|
630
608
|
};
|
|
631
|
-
settings?: {
|
|
632
|
-
onboardingStepsSettings: {
|
|
633
|
-
stepKey: StepKey$2;
|
|
634
|
-
visible: boolean;
|
|
635
|
-
}[];
|
|
636
|
-
};
|
|
637
609
|
createdBy?: {
|
|
638
610
|
identityType: IdentityType$2;
|
|
639
611
|
};
|
|
@@ -653,12 +625,6 @@ interface ListGroupsResponseNonNullableFields {
|
|
|
653
625
|
y: number;
|
|
654
626
|
};
|
|
655
627
|
};
|
|
656
|
-
settings?: {
|
|
657
|
-
onboardingStepsSettings: {
|
|
658
|
-
stepKey: StepKey$2;
|
|
659
|
-
visible: boolean;
|
|
660
|
-
}[];
|
|
661
|
-
};
|
|
662
628
|
createdBy?: {
|
|
663
629
|
identityType: IdentityType$2;
|
|
664
630
|
};
|
|
@@ -678,12 +644,6 @@ interface QueryGroupsResponseNonNullableFields {
|
|
|
678
644
|
y: number;
|
|
679
645
|
};
|
|
680
646
|
};
|
|
681
|
-
settings?: {
|
|
682
|
-
onboardingStepsSettings: {
|
|
683
|
-
stepKey: StepKey$2;
|
|
684
|
-
visible: boolean;
|
|
685
|
-
}[];
|
|
686
|
-
};
|
|
687
647
|
createdBy?: {
|
|
688
648
|
identityType: IdentityType$2;
|
|
689
649
|
};
|
|
@@ -910,37 +870,37 @@ interface GroupsQueryBuilder {
|
|
|
910
870
|
find: () => Promise<GroupsQueryResult>;
|
|
911
871
|
}
|
|
912
872
|
|
|
913
|
-
interface HttpClient
|
|
914
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
873
|
+
interface HttpClient {
|
|
874
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
915
875
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
916
876
|
}
|
|
917
|
-
type RequestOptionsFactory
|
|
918
|
-
type HttpResponse
|
|
877
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
878
|
+
type HttpResponse<T = any> = {
|
|
919
879
|
data: T;
|
|
920
880
|
status: number;
|
|
921
881
|
statusText: string;
|
|
922
882
|
headers: any;
|
|
923
883
|
request?: any;
|
|
924
884
|
};
|
|
925
|
-
type RequestOptions
|
|
885
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
926
886
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
927
887
|
url: string;
|
|
928
888
|
data?: Data;
|
|
929
889
|
params?: URLSearchParams;
|
|
930
|
-
} & APIMetadata
|
|
931
|
-
type APIMetadata
|
|
890
|
+
} & APIMetadata;
|
|
891
|
+
type APIMetadata = {
|
|
932
892
|
methodFqn?: string;
|
|
933
893
|
entityFqdn?: string;
|
|
934
894
|
packageName?: string;
|
|
935
895
|
};
|
|
936
|
-
type EventDefinition
|
|
896
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
937
897
|
__type: 'event-definition';
|
|
938
898
|
type: Type;
|
|
939
899
|
isDomainEvent?: boolean;
|
|
940
900
|
transformations?: (envelope: unknown) => Payload;
|
|
941
901
|
__payload: Payload;
|
|
942
902
|
};
|
|
943
|
-
declare function EventDefinition
|
|
903
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
944
904
|
|
|
945
905
|
declare global {
|
|
946
906
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -952,7 +912,7 @@ declare global {
|
|
|
952
912
|
declare const __metadata$8: {
|
|
953
913
|
PACKAGE_NAME: string;
|
|
954
914
|
};
|
|
955
|
-
declare function createGroup(httpClient: HttpClient
|
|
915
|
+
declare function createGroup(httpClient: HttpClient): (group: Group$2, options?: CreateGroupOptions) => Promise<Group$2 & {
|
|
956
916
|
privacyLevel: PrivacyStatus$2;
|
|
957
917
|
privacyStatus: PrivacyStatus$2;
|
|
958
918
|
coverImage?: {
|
|
@@ -965,17 +925,11 @@ declare function createGroup(httpClient: HttpClient$8): (group: Group$2, options
|
|
|
965
925
|
y: number;
|
|
966
926
|
} | undefined;
|
|
967
927
|
} | undefined;
|
|
968
|
-
settings?: {
|
|
969
|
-
onboardingStepsSettings: {
|
|
970
|
-
stepKey: StepKey$2;
|
|
971
|
-
visible: boolean;
|
|
972
|
-
}[];
|
|
973
|
-
} | undefined;
|
|
974
928
|
createdBy?: {
|
|
975
929
|
identityType: IdentityType$2;
|
|
976
930
|
} | undefined;
|
|
977
931
|
}>;
|
|
978
|
-
declare function updateGroup(httpClient: HttpClient
|
|
932
|
+
declare function updateGroup(httpClient: HttpClient): (_id: string | null, group: UpdateGroup, options?: UpdateGroupOptions) => Promise<Group$2 & {
|
|
979
933
|
privacyLevel: PrivacyStatus$2;
|
|
980
934
|
privacyStatus: PrivacyStatus$2;
|
|
981
935
|
coverImage?: {
|
|
@@ -988,18 +942,12 @@ declare function updateGroup(httpClient: HttpClient$8): (_id: string | null, gro
|
|
|
988
942
|
y: number;
|
|
989
943
|
} | undefined;
|
|
990
944
|
} | undefined;
|
|
991
|
-
settings?: {
|
|
992
|
-
onboardingStepsSettings: {
|
|
993
|
-
stepKey: StepKey$2;
|
|
994
|
-
visible: boolean;
|
|
995
|
-
}[];
|
|
996
|
-
} | undefined;
|
|
997
945
|
createdBy?: {
|
|
998
946
|
identityType: IdentityType$2;
|
|
999
947
|
} | undefined;
|
|
1000
948
|
}>;
|
|
1001
|
-
declare function deleteGroup(httpClient: HttpClient
|
|
1002
|
-
declare function getGroup(httpClient: HttpClient
|
|
949
|
+
declare function deleteGroup(httpClient: HttpClient): (groupId: string) => Promise<DeleteGroupResponse & DeleteGroupResponseNonNullableFields>;
|
|
950
|
+
declare function getGroup(httpClient: HttpClient): (groupId: string, options?: GetGroupOptions) => Promise<Group$2 & {
|
|
1003
951
|
privacyLevel: PrivacyStatus$2;
|
|
1004
952
|
privacyStatus: PrivacyStatus$2;
|
|
1005
953
|
coverImage?: {
|
|
@@ -1012,24 +960,18 @@ declare function getGroup(httpClient: HttpClient$8): (groupId: string, options?:
|
|
|
1012
960
|
y: number;
|
|
1013
961
|
} | undefined;
|
|
1014
962
|
} | undefined;
|
|
1015
|
-
settings?: {
|
|
1016
|
-
onboardingStepsSettings: {
|
|
1017
|
-
stepKey: StepKey$2;
|
|
1018
|
-
visible: boolean;
|
|
1019
|
-
}[];
|
|
1020
|
-
} | undefined;
|
|
1021
963
|
createdBy?: {
|
|
1022
964
|
identityType: IdentityType$2;
|
|
1023
965
|
} | undefined;
|
|
1024
966
|
}>;
|
|
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
|
|
967
|
+
declare function getGroupBySlug(httpClient: HttpClient): (slug: string, options?: GetGroupBySlugOptions) => Promise<GetGroupBySlugResponse & GetGroupBySlugResponseNonNullableFields>;
|
|
968
|
+
declare function listGroups(httpClient: HttpClient): (options?: ListGroupsOptions) => Promise<ListGroupsResponse & ListGroupsResponseNonNullableFields>;
|
|
969
|
+
declare function queryGroups(httpClient: HttpClient): (options?: QueryGroupsOptions) => GroupsQueryBuilder;
|
|
970
|
+
declare const onGroupCreated: EventDefinition<GroupCreatedEnvelope, "wix.social_groups.v2.group_created">;
|
|
971
|
+
declare const onGroupUpdated: EventDefinition<GroupUpdatedEnvelope, "wix.social_groups.v2.group_updated">;
|
|
972
|
+
declare const onGroupCoverChanged: EventDefinition<GroupCoverChangedEnvelope, "wix.social_groups.v2.group_group_cover_changed">;
|
|
973
|
+
declare const onGroupDescriptionChanged: EventDefinition<GroupDescriptionChangedEnvelope, "wix.social_groups.v2.group_group_description_changed">;
|
|
974
|
+
declare const onGroupDeleted: EventDefinition<GroupDeletedEnvelope, "wix.social_groups.v2.group_deleted">;
|
|
1033
975
|
|
|
1034
976
|
type index_d$8_ContentType = ContentType;
|
|
1035
977
|
declare const index_d$8_ContentType: typeof ContentType;
|
|
@@ -1096,7 +1038,7 @@ declare const index_d$8_onGroupUpdated: typeof onGroupUpdated;
|
|
|
1096
1038
|
declare const index_d$8_queryGroups: typeof queryGroups;
|
|
1097
1039
|
declare const index_d$8_updateGroup: typeof updateGroup;
|
|
1098
1040
|
declare namespace index_d$8 {
|
|
1099
|
-
export { type AccessRestriction$2 as AccessRestriction, type AccessRestrictionDataOneOf$2 as AccessRestrictionDataOneOf, type ActionEvent$7 as ActionEvent, AllowPolicy$2 as AllowPolicy, type BaseEventMetadata$7 as BaseEventMetadata, index_d$8_ContentType as ContentType, type CoverImage$2 as CoverImage, type index_d$8_CreateGroupOptions as CreateGroupOptions, type index_d$8_CreateGroupRequest as CreateGroupRequest, type index_d$8_CreateGroupResponse as CreateGroupResponse, type index_d$8_CreateGroupResponseNonNullableFields as CreateGroupResponseNonNullableFields, type index_d$8_DeleteGroupRequest as DeleteGroupRequest, type index_d$8_DeleteGroupResponse as DeleteGroupResponse, type index_d$8_DeleteGroupResponseNonNullableFields as DeleteGroupResponseNonNullableFields, type DomainEvent$7 as DomainEvent, type DomainEventBodyOneOf$7 as DomainEventBodyOneOf, type EntityCreatedEvent$7 as EntityCreatedEvent, type EntityDeletedEvent$7 as EntityDeletedEvent, type EntityUpdatedEvent$7 as EntityUpdatedEvent, type EventMetadata$7 as EventMetadata, type Events$2 as Events, type index_d$8_GetGroupBySlugOptions as GetGroupBySlugOptions, type index_d$8_GetGroupBySlugRequest as GetGroupBySlugRequest, type index_d$8_GetGroupBySlugResponse as GetGroupBySlugResponse, type index_d$8_GetGroupBySlugResponseNonNullableFields as GetGroupBySlugResponseNonNullableFields, type index_d$8_GetGroupMembersGroupIdsRequest as GetGroupMembersGroupIdsRequest, type index_d$8_GetGroupMembersGroupIdsResponse as GetGroupMembersGroupIdsResponse, type index_d$8_GetGroupOptions as GetGroupOptions, type index_d$8_GetGroupRequest as GetGroupRequest, type index_d$8_GetGroupResponse as GetGroupResponse, type index_d$8_GetGroupResponseNonNullableFields as GetGroupResponseNonNullableFields, type Group$2 as Group, type index_d$8_GroupCoverChanged as GroupCoverChanged, type index_d$8_GroupCoverChangedEnvelope as GroupCoverChangedEnvelope, type index_d$8_GroupCreatedEnvelope as GroupCreatedEnvelope, type index_d$8_GroupDeletedEnvelope as GroupDeletedEnvelope, type index_d$8_GroupDescriptionChanged as GroupDescriptionChanged, type index_d$8_GroupDescriptionChangedEnvelope as GroupDescriptionChangedEnvelope, type GroupDetails$2 as GroupDetails, type GroupDetailsPosition$2 as GroupDetailsPosition, type index_d$8_GroupIntegrationsData as GroupIntegrationsData, type index_d$8_GroupPermissions as GroupPermissions, type GroupSettings$2 as GroupSettings, type index_d$8_GroupUpdatedEnvelope as GroupUpdatedEnvelope, type index_d$8_GroupWithMsId as GroupWithMsId, type index_d$8_GroupsQueryBuilder as GroupsQueryBuilder, type index_d$8_GroupsQueryResult as GroupsQueryResult, type IdentificationData$7 as IdentificationData, type IdentificationDataIdOneOf$7 as IdentificationDataIdOneOf, type Identity$2 as Identity, IdentityType$2 as IdentityType, type Image$2 as Image, type index_d$8_ListGroupIntegrationsDataRequest as ListGroupIntegrationsDataRequest, type index_d$8_ListGroupIntegrationsDataResponse as ListGroupIntegrationsDataResponse, type index_d$8_ListGroupsByUserIdRequest as ListGroupsByUserIdRequest, type index_d$8_ListGroupsByUserIdResponse as ListGroupsByUserIdResponse, type index_d$8_ListGroupsOptions as ListGroupsOptions, type index_d$8_ListGroupsRequest as ListGroupsRequest, type index_d$8_ListGroupsResponse as ListGroupsResponse, type index_d$8_ListGroupsResponseNonNullableFields as ListGroupsResponseNonNullableFields, type Logo$2 as Logo, MembershipStatus$1 as MembershipStatus, type MessageEnvelope$7 as MessageEnvelope, type OnboardingStepSettings$2 as OnboardingStepSettings, type Paging$6 as Paging, type PagingMetadata$6 as PagingMetadata, type Position$2 as Position, PrivacyStatus$2 as PrivacyStatus, type Query$5 as Query, type index_d$8_QueryGroupsByMembershipRequest as QueryGroupsByMembershipRequest, type index_d$8_QueryGroupsByMembershipResponse as QueryGroupsByMembershipResponse, type index_d$8_QueryGroupsOptions as QueryGroupsOptions, type index_d$8_QueryGroupsRequest as QueryGroupsRequest, type index_d$8_QueryGroupsResponse as QueryGroupsResponse, type index_d$8_QueryGroupsResponseNonNullableFields as QueryGroupsResponseNonNullableFields, type index_d$8_QueryJoinedGroupsRequest as QueryJoinedGroupsRequest, type index_d$8_QueryJoinedGroupsResponse as QueryJoinedGroupsResponse, SortOrder$5 as SortOrder, type Sorting$5 as Sorting, StepKey$2 as StepKey, Type$2 as Type, type index_d$8_UpdateGroup as UpdateGroup, type index_d$8_UpdateGroupOptions as UpdateGroupOptions, type index_d$8_UpdateGroupRequest as UpdateGroupRequest, type index_d$8_UpdateGroupResponse as UpdateGroupResponse, type index_d$8_UpdateGroupResponseNonNullableFields as UpdateGroupResponseNonNullableFields, WebhookIdentityType$7 as WebhookIdentityType, __metadata$8 as __metadata, index_d$8_createGroup as createGroup, index_d$8_deleteGroup as deleteGroup, index_d$8_getGroup as getGroup, index_d$8_getGroupBySlug as getGroupBySlug, index_d$8_listGroups as listGroups, index_d$8_onGroupCoverChanged as onGroupCoverChanged, index_d$8_onGroupCreated as onGroupCreated, index_d$8_onGroupDeleted as onGroupDeleted, index_d$8_onGroupDescriptionChanged as onGroupDescriptionChanged, index_d$8_onGroupUpdated as onGroupUpdated, index_d$8_queryGroups as queryGroups, index_d$8_updateGroup as updateGroup };
|
|
1041
|
+
export { type AccessRestriction$2 as AccessRestriction, type AccessRestrictionDataOneOf$2 as AccessRestrictionDataOneOf, type ActionEvent$7 as ActionEvent, AllowPolicy$2 as AllowPolicy, type BaseEventMetadata$7 as BaseEventMetadata, index_d$8_ContentType as ContentType, type CoverImage$2 as CoverImage, type index_d$8_CreateGroupOptions as CreateGroupOptions, type index_d$8_CreateGroupRequest as CreateGroupRequest, type index_d$8_CreateGroupResponse as CreateGroupResponse, type index_d$8_CreateGroupResponseNonNullableFields as CreateGroupResponseNonNullableFields, type index_d$8_DeleteGroupRequest as DeleteGroupRequest, type index_d$8_DeleteGroupResponse as DeleteGroupResponse, type index_d$8_DeleteGroupResponseNonNullableFields as DeleteGroupResponseNonNullableFields, type DomainEvent$7 as DomainEvent, type DomainEventBodyOneOf$7 as DomainEventBodyOneOf, type EntityCreatedEvent$7 as EntityCreatedEvent, type EntityDeletedEvent$7 as EntityDeletedEvent, type EntityUpdatedEvent$7 as EntityUpdatedEvent, type EventMetadata$7 as EventMetadata, type Events$2 as Events, type index_d$8_GetGroupBySlugOptions as GetGroupBySlugOptions, type index_d$8_GetGroupBySlugRequest as GetGroupBySlugRequest, type index_d$8_GetGroupBySlugResponse as GetGroupBySlugResponse, type index_d$8_GetGroupBySlugResponseNonNullableFields as GetGroupBySlugResponseNonNullableFields, type index_d$8_GetGroupMembersGroupIdsRequest as GetGroupMembersGroupIdsRequest, type index_d$8_GetGroupMembersGroupIdsResponse as GetGroupMembersGroupIdsResponse, type index_d$8_GetGroupOptions as GetGroupOptions, type index_d$8_GetGroupRequest as GetGroupRequest, type index_d$8_GetGroupResponse as GetGroupResponse, type index_d$8_GetGroupResponseNonNullableFields as GetGroupResponseNonNullableFields, type Group$2 as Group, type index_d$8_GroupCoverChanged as GroupCoverChanged, type index_d$8_GroupCoverChangedEnvelope as GroupCoverChangedEnvelope, type index_d$8_GroupCreatedEnvelope as GroupCreatedEnvelope, type index_d$8_GroupDeletedEnvelope as GroupDeletedEnvelope, type index_d$8_GroupDescriptionChanged as GroupDescriptionChanged, type index_d$8_GroupDescriptionChangedEnvelope as GroupDescriptionChangedEnvelope, type GroupDetails$2 as GroupDetails, type GroupDetailsPosition$2 as GroupDetailsPosition, type index_d$8_GroupIntegrationsData as GroupIntegrationsData, type index_d$8_GroupPermissions as GroupPermissions, type GroupSettings$2 as GroupSettings, type index_d$8_GroupUpdatedEnvelope as GroupUpdatedEnvelope, type index_d$8_GroupWithMsId as GroupWithMsId, type index_d$8_GroupsQueryBuilder as GroupsQueryBuilder, type index_d$8_GroupsQueryResult as GroupsQueryResult, type IdentificationData$7 as IdentificationData, type IdentificationDataIdOneOf$7 as IdentificationDataIdOneOf, type Identity$2 as Identity, IdentityType$2 as IdentityType, type Image$2 as Image, type index_d$8_ListGroupIntegrationsDataRequest as ListGroupIntegrationsDataRequest, type index_d$8_ListGroupIntegrationsDataResponse as ListGroupIntegrationsDataResponse, type index_d$8_ListGroupsByUserIdRequest as ListGroupsByUserIdRequest, type index_d$8_ListGroupsByUserIdResponse as ListGroupsByUserIdResponse, type index_d$8_ListGroupsOptions as ListGroupsOptions, type index_d$8_ListGroupsRequest as ListGroupsRequest, type index_d$8_ListGroupsResponse as ListGroupsResponse, type index_d$8_ListGroupsResponseNonNullableFields as ListGroupsResponseNonNullableFields, type Logo$2 as Logo, MembershipStatus$1 as MembershipStatus, type MessageEnvelope$7 as MessageEnvelope, type OnboardingStepSettings$2 as OnboardingStepSettings, type Paging$6 as Paging, type PagingMetadata$6 as PagingMetadata, type Position$2 as Position, PrivacyStatus$2 as PrivacyStatus, type Query$5 as Query, type index_d$8_QueryGroupsByMembershipRequest as QueryGroupsByMembershipRequest, type index_d$8_QueryGroupsByMembershipResponse as QueryGroupsByMembershipResponse, type index_d$8_QueryGroupsOptions as QueryGroupsOptions, type index_d$8_QueryGroupsRequest as QueryGroupsRequest, type index_d$8_QueryGroupsResponse as QueryGroupsResponse, type index_d$8_QueryGroupsResponseNonNullableFields as QueryGroupsResponseNonNullableFields, type index_d$8_QueryJoinedGroupsRequest as QueryJoinedGroupsRequest, type index_d$8_QueryJoinedGroupsResponse as QueryJoinedGroupsResponse, type RestoreInfo$7 as RestoreInfo, SortOrder$5 as SortOrder, type Sorting$5 as Sorting, StepKey$2 as StepKey, Type$2 as Type, type index_d$8_UpdateGroup as UpdateGroup, type index_d$8_UpdateGroupOptions as UpdateGroupOptions, type index_d$8_UpdateGroupRequest as UpdateGroupRequest, type index_d$8_UpdateGroupResponse as UpdateGroupResponse, type index_d$8_UpdateGroupResponseNonNullableFields as UpdateGroupResponseNonNullableFields, WebhookIdentityType$7 as WebhookIdentityType, __metadata$8 as __metadata, index_d$8_createGroup as createGroup, index_d$8_deleteGroup as deleteGroup, index_d$8_getGroup as getGroup, index_d$8_getGroupBySlug as getGroupBySlug, index_d$8_listGroups as listGroups, index_d$8_onGroupCoverChanged as onGroupCoverChanged, index_d$8_onGroupCreated as onGroupCreated, index_d$8_onGroupDeleted as onGroupDeleted, index_d$8_onGroupDescriptionChanged as onGroupDescriptionChanged, index_d$8_onGroupUpdated as onGroupUpdated, index_d$8_queryGroups as queryGroups, index_d$8_updateGroup as updateGroup };
|
|
1100
1042
|
}
|
|
1101
1043
|
|
|
1102
1044
|
interface GroupMember$1 {
|
|
@@ -1451,6 +1393,9 @@ interface DomainEventBodyOneOf$6 {
|
|
|
1451
1393
|
interface EntityCreatedEvent$6 {
|
|
1452
1394
|
entity?: string;
|
|
1453
1395
|
}
|
|
1396
|
+
interface RestoreInfo$6 {
|
|
1397
|
+
deletedDate?: Date;
|
|
1398
|
+
}
|
|
1454
1399
|
interface EntityUpdatedEvent$6 {
|
|
1455
1400
|
/**
|
|
1456
1401
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -1683,56 +1628,17 @@ interface QueryMembershipsOptions {
|
|
|
1683
1628
|
query?: Query$4;
|
|
1684
1629
|
}
|
|
1685
1630
|
|
|
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
1631
|
declare const __metadata$7: {
|
|
1726
1632
|
PACKAGE_NAME: string;
|
|
1727
1633
|
};
|
|
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
|
|
1634
|
+
declare function addGroupMembers(httpClient: HttpClient): (groupId: string, memberIds: string[], options?: AddGroupMembersOptions) => Promise<AddGroupMembersResponse & AddGroupMembersResponseNonNullableFields>;
|
|
1635
|
+
declare function removeGroupMembers(httpClient: HttpClient): (groupId: string, memberIds: string[], options?: RemoveGroupMembersOptions) => Promise<void>;
|
|
1636
|
+
declare function listGroupMembers(httpClient: HttpClient): (groupId: string, options?: ListGroupMembersOptions) => Promise<ListGroupMembersResponse & ListGroupMembersResponseNonNullableFields>;
|
|
1637
|
+
declare function queryGroupMembers(httpClient: HttpClient): (groupId: string) => MembersQueryBuilder;
|
|
1638
|
+
declare function listMemberships(httpClient: HttpClient): (memberId: string | null, options?: ListMembershipsOptions) => Promise<ListMembershipsResponse & ListMembershipsResponseNonNullableFields>;
|
|
1639
|
+
declare function queryMemberships(httpClient: HttpClient): (memberId: string | null, options?: QueryMembershipsOptions) => Promise<QueryMembershipsResponse & QueryMembershipsResponseNonNullableFields>;
|
|
1640
|
+
declare const onGroupMemberAdded: EventDefinition<GroupMemberAddedEnvelope, "wix.social_groups.v2.group_member_added">;
|
|
1641
|
+
declare const onGroupMemberRemoved: EventDefinition<GroupMemberRemovedEnvelope, "wix.social_groups.v2.group_member_removed">;
|
|
1736
1642
|
|
|
1737
1643
|
type index_d$7_AddGroupMembersOptions = AddGroupMembersOptions;
|
|
1738
1644
|
type index_d$7_AddGroupMembersRequest = AddGroupMembersRequest;
|
|
@@ -1783,7 +1689,7 @@ declare const index_d$7_queryGroupMembers: typeof queryGroupMembers;
|
|
|
1783
1689
|
declare const index_d$7_queryMemberships: typeof queryMemberships;
|
|
1784
1690
|
declare const index_d$7_removeGroupMembers: typeof removeGroupMembers;
|
|
1785
1691
|
declare namespace index_d$7 {
|
|
1786
|
-
export { type ActionEvent$6 as ActionEvent, type index_d$7_AddGroupMembersOptions as AddGroupMembersOptions, type index_d$7_AddGroupMembersRequest as AddGroupMembersRequest, type index_d$7_AddGroupMembersResponse as AddGroupMembersResponse, type index_d$7_AddGroupMembersResponseNonNullableFields as AddGroupMembersResponseNonNullableFields, type BaseEventMetadata$6 as BaseEventMetadata, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type EventMetadata$6 as EventMetadata, type GroupMember$1 as GroupMember, type index_d$7_GroupMemberAddedEnvelope as GroupMemberAddedEnvelope, type index_d$7_GroupMemberRemovedEnvelope as GroupMemberRemovedEnvelope, type GroupRole$1 as GroupRole, type IdentificationData$6 as IdentificationData, type IdentificationDataIdOneOf$6 as IdentificationDataIdOneOf, index_d$7_JoinBy as JoinBy, type JoinRequest$1 as JoinRequest, type JoinRequestsApproved$1 as JoinRequestsApproved, type index_d$7_JoinResponse as JoinResponse, type index_d$7_LeaveRequest as LeaveRequest, type index_d$7_LeaveResponse as LeaveResponse, type index_d$7_ListGroupMembersOptions as ListGroupMembersOptions, type index_d$7_ListGroupMembersRequest as ListGroupMembersRequest, type index_d$7_ListGroupMembersResponse as ListGroupMembersResponse, type index_d$7_ListGroupMembersResponseNonNullableFields as ListGroupMembersResponseNonNullableFields, type index_d$7_ListMembershipsOptions as ListMembershipsOptions, type index_d$7_ListMembershipsRequest as ListMembershipsRequest, type index_d$7_ListMembershipsResponse as ListMembershipsResponse, type index_d$7_ListMembershipsResponseNonNullableFields as ListMembershipsResponseNonNullableFields, type index_d$7_MemberAdded as MemberAdded, type index_d$7_MemberJoined as MemberJoined, type MemberJoinedGroup$1 as MemberJoinedGroup, type index_d$7_MemberLeft as MemberLeft, type index_d$7_MemberRemoved as MemberRemoved, type MembersAddedToGroup$1 as MembersAddedToGroup, type MembersInvitedToGroup$1 as MembersInvitedToGroup, type index_d$7_MembersQueryBuilder as MembersQueryBuilder, type index_d$7_MembersQueryResult as MembersQueryResult, type index_d$7_Membership as Membership, type MembershipQuestionAnswer$3 as MembershipQuestionAnswer, index_d$7_MembershipStatus as MembershipStatus, type MessageEnvelope$6 as MessageEnvelope, type Paging$5 as Paging, type PagingMetadata$5 as PagingMetadata, type Query$4 as Query, type index_d$7_QueryGroupMembersRequest as QueryGroupMembersRequest, type index_d$7_QueryGroupMembersResponse as QueryGroupMembersResponse, type index_d$7_QueryGroupMembersResponseNonNullableFields as QueryGroupMembersResponseNonNullableFields, type index_d$7_QueryMembershipsOptions as QueryMembershipsOptions, type index_d$7_QueryMembershipsRequest as QueryMembershipsRequest, type index_d$7_QueryMembershipsResponse as QueryMembershipsResponse, type index_d$7_QueryMembershipsResponseNonNullableFields as QueryMembershipsResponseNonNullableFields, type index_d$7_QueryNonGroupMembersRequest as QueryNonGroupMembersRequest, type index_d$7_QueryNonGroupMembersResponse as QueryNonGroupMembersResponse, type index_d$7_RemoveGroupMembersOptions as RemoveGroupMembersOptions, type index_d$7_RemoveGroupMembersRequest as RemoveGroupMembersRequest, type index_d$7_RemoveGroupMembersResponse as RemoveGroupMembersResponse, Role$1 as Role, type SocialGroupsEvent$1 as SocialGroupsEvent, type SocialGroupsEventPayloadOneOf$1 as SocialGroupsEventPayloadOneOf, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, WebhookIdentityType$6 as WebhookIdentityType, __metadata$7 as __metadata, index_d$7_addGroupMembers as addGroupMembers, index_d$7_listGroupMembers as listGroupMembers, index_d$7_listMemberships as listMemberships, index_d$7_onGroupMemberAdded as onGroupMemberAdded, index_d$7_onGroupMemberRemoved as onGroupMemberRemoved, index_d$7_queryGroupMembers as queryGroupMembers, index_d$7_queryMemberships as queryMemberships, index_d$7_removeGroupMembers as removeGroupMembers };
|
|
1692
|
+
export { type ActionEvent$6 as ActionEvent, type index_d$7_AddGroupMembersOptions as AddGroupMembersOptions, type index_d$7_AddGroupMembersRequest as AddGroupMembersRequest, type index_d$7_AddGroupMembersResponse as AddGroupMembersResponse, type index_d$7_AddGroupMembersResponseNonNullableFields as AddGroupMembersResponseNonNullableFields, type BaseEventMetadata$6 as BaseEventMetadata, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type EventMetadata$6 as EventMetadata, type GroupMember$1 as GroupMember, type index_d$7_GroupMemberAddedEnvelope as GroupMemberAddedEnvelope, type index_d$7_GroupMemberRemovedEnvelope as GroupMemberRemovedEnvelope, type GroupRole$1 as GroupRole, type IdentificationData$6 as IdentificationData, type IdentificationDataIdOneOf$6 as IdentificationDataIdOneOf, index_d$7_JoinBy as JoinBy, type JoinRequest$1 as JoinRequest, type JoinRequestsApproved$1 as JoinRequestsApproved, type index_d$7_JoinResponse as JoinResponse, type index_d$7_LeaveRequest as LeaveRequest, type index_d$7_LeaveResponse as LeaveResponse, type index_d$7_ListGroupMembersOptions as ListGroupMembersOptions, type index_d$7_ListGroupMembersRequest as ListGroupMembersRequest, type index_d$7_ListGroupMembersResponse as ListGroupMembersResponse, type index_d$7_ListGroupMembersResponseNonNullableFields as ListGroupMembersResponseNonNullableFields, type index_d$7_ListMembershipsOptions as ListMembershipsOptions, type index_d$7_ListMembershipsRequest as ListMembershipsRequest, type index_d$7_ListMembershipsResponse as ListMembershipsResponse, type index_d$7_ListMembershipsResponseNonNullableFields as ListMembershipsResponseNonNullableFields, type index_d$7_MemberAdded as MemberAdded, type index_d$7_MemberJoined as MemberJoined, type MemberJoinedGroup$1 as MemberJoinedGroup, type index_d$7_MemberLeft as MemberLeft, type index_d$7_MemberRemoved as MemberRemoved, type MembersAddedToGroup$1 as MembersAddedToGroup, type MembersInvitedToGroup$1 as MembersInvitedToGroup, type index_d$7_MembersQueryBuilder as MembersQueryBuilder, type index_d$7_MembersQueryResult as MembersQueryResult, type index_d$7_Membership as Membership, type MembershipQuestionAnswer$3 as MembershipQuestionAnswer, index_d$7_MembershipStatus as MembershipStatus, type MessageEnvelope$6 as MessageEnvelope, type Paging$5 as Paging, type PagingMetadata$5 as PagingMetadata, type Query$4 as Query, type index_d$7_QueryGroupMembersRequest as QueryGroupMembersRequest, type index_d$7_QueryGroupMembersResponse as QueryGroupMembersResponse, type index_d$7_QueryGroupMembersResponseNonNullableFields as QueryGroupMembersResponseNonNullableFields, type index_d$7_QueryMembershipsOptions as QueryMembershipsOptions, type index_d$7_QueryMembershipsRequest as QueryMembershipsRequest, type index_d$7_QueryMembershipsResponse as QueryMembershipsResponse, type index_d$7_QueryMembershipsResponseNonNullableFields as QueryMembershipsResponseNonNullableFields, type index_d$7_QueryNonGroupMembersRequest as QueryNonGroupMembersRequest, type index_d$7_QueryNonGroupMembersResponse as QueryNonGroupMembersResponse, type index_d$7_RemoveGroupMembersOptions as RemoveGroupMembersOptions, type index_d$7_RemoveGroupMembersRequest as RemoveGroupMembersRequest, type index_d$7_RemoveGroupMembersResponse as RemoveGroupMembersResponse, type RestoreInfo$6 as RestoreInfo, Role$1 as Role, type SocialGroupsEvent$1 as SocialGroupsEvent, type SocialGroupsEventPayloadOneOf$1 as SocialGroupsEventPayloadOneOf, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, WebhookIdentityType$6 as WebhookIdentityType, __metadata$7 as __metadata, index_d$7_addGroupMembers as addGroupMembers, index_d$7_listGroupMembers as listGroupMembers, index_d$7_listMemberships as listMemberships, index_d$7_onGroupMemberAdded as onGroupMemberAdded, index_d$7_onGroupMemberRemoved as onGroupMemberRemoved, index_d$7_queryGroupMembers as queryGroupMembers, index_d$7_queryMemberships as queryMemberships, index_d$7_removeGroupMembers as removeGroupMembers };
|
|
1787
1693
|
}
|
|
1788
1694
|
|
|
1789
1695
|
/**
|
|
@@ -2034,7 +1940,6 @@ interface GroupSettings$1 {
|
|
|
2034
1940
|
* Default: `true`
|
|
2035
1941
|
*/
|
|
2036
1942
|
showMemberList?: boolean | null;
|
|
2037
|
-
onboardingStepsSettings?: OnboardingStepSettings$1[];
|
|
2038
1943
|
}
|
|
2039
1944
|
interface Identity$1 {
|
|
2040
1945
|
/** Member ID of the group creator. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
|
|
@@ -2258,6 +2163,9 @@ interface DomainEventBodyOneOf$5 {
|
|
|
2258
2163
|
interface EntityCreatedEvent$5 {
|
|
2259
2164
|
entity?: string;
|
|
2260
2165
|
}
|
|
2166
|
+
interface RestoreInfo$5 {
|
|
2167
|
+
deletedDate?: Date;
|
|
2168
|
+
}
|
|
2261
2169
|
interface EntityUpdatedEvent$5 {
|
|
2262
2170
|
/**
|
|
2263
2171
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -2328,12 +2236,6 @@ interface ApproveGroupRequestsResponseNonNullableFields {
|
|
|
2328
2236
|
y: number;
|
|
2329
2237
|
};
|
|
2330
2238
|
};
|
|
2331
|
-
settings?: {
|
|
2332
|
-
onboardingStepsSettings: {
|
|
2333
|
-
stepKey: StepKey$1;
|
|
2334
|
-
visible: boolean;
|
|
2335
|
-
}[];
|
|
2336
|
-
};
|
|
2337
2239
|
createdBy?: {
|
|
2338
2240
|
identityType: IdentityType$1;
|
|
2339
2241
|
};
|
|
@@ -2356,12 +2258,6 @@ interface RejectGroupRequestsResponseNonNullableFields {
|
|
|
2356
2258
|
y: number;
|
|
2357
2259
|
};
|
|
2358
2260
|
};
|
|
2359
|
-
settings?: {
|
|
2360
|
-
onboardingStepsSettings: {
|
|
2361
|
-
stepKey: StepKey$1;
|
|
2362
|
-
visible: boolean;
|
|
2363
|
-
}[];
|
|
2364
|
-
};
|
|
2365
2261
|
createdBy?: {
|
|
2366
2262
|
identityType: IdentityType$1;
|
|
2367
2263
|
};
|
|
@@ -2384,12 +2280,6 @@ interface ListGroupRequestsResponseNonNullableFields {
|
|
|
2384
2280
|
y: number;
|
|
2385
2281
|
};
|
|
2386
2282
|
};
|
|
2387
|
-
settings?: {
|
|
2388
|
-
onboardingStepsSettings: {
|
|
2389
|
-
stepKey: StepKey$1;
|
|
2390
|
-
visible: boolean;
|
|
2391
|
-
}[];
|
|
2392
|
-
};
|
|
2393
2283
|
createdBy?: {
|
|
2394
2284
|
identityType: IdentityType$1;
|
|
2395
2285
|
};
|
|
@@ -2412,12 +2302,6 @@ interface QueryGroupRequestsResponseNonNullableFields {
|
|
|
2412
2302
|
y: number;
|
|
2413
2303
|
};
|
|
2414
2304
|
};
|
|
2415
|
-
settings?: {
|
|
2416
|
-
onboardingStepsSettings: {
|
|
2417
|
-
stepKey: StepKey$1;
|
|
2418
|
-
visible: boolean;
|
|
2419
|
-
}[];
|
|
2420
|
-
};
|
|
2421
2305
|
createdBy?: {
|
|
2422
2306
|
identityType: IdentityType$1;
|
|
2423
2307
|
};
|
|
@@ -2543,55 +2427,16 @@ interface GroupRequestsQueryBuilder {
|
|
|
2543
2427
|
find: () => Promise<GroupRequestsQueryResult>;
|
|
2544
2428
|
}
|
|
2545
2429
|
|
|
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
2430
|
declare const __metadata$6: {
|
|
2586
2431
|
PACKAGE_NAME: string;
|
|
2587
2432
|
};
|
|
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
|
|
2433
|
+
declare function approveGroupRequests(httpClient: HttpClient): (groupRequestIds: string[]) => Promise<ApproveGroupRequestsResponse & ApproveGroupRequestsResponseNonNullableFields>;
|
|
2434
|
+
declare function rejectGroupRequests(httpClient: HttpClient): (rejections: Rejection$3[]) => Promise<RejectGroupRequestsResponse & RejectGroupRequestsResponseNonNullableFields>;
|
|
2435
|
+
declare function listGroupRequests(httpClient: HttpClient): (options?: ListGroupRequestsOptions) => Promise<ListGroupRequestsResponse & ListGroupRequestsResponseNonNullableFields>;
|
|
2436
|
+
declare function queryGroupRequests(httpClient: HttpClient): (options?: QueryGroupRequestsOptions) => GroupRequestsQueryBuilder;
|
|
2437
|
+
declare const onGroupRequestCreated: EventDefinition<GroupRequestCreatedEnvelope, "wix.social_groups.v2.group_request_created">;
|
|
2438
|
+
declare const onGroupRequestApproved: EventDefinition<GroupRequestApprovedEnvelope, "wix.social_groups.v2.group_request_approved">;
|
|
2439
|
+
declare const onGroupRequestRejected: EventDefinition<GroupRequestRejectedEnvelope, "wix.social_groups.v2.group_request_rejected">;
|
|
2595
2440
|
|
|
2596
2441
|
type index_d$6_ApproveGroupRequestsRequest = ApproveGroupRequestsRequest;
|
|
2597
2442
|
type index_d$6_ApproveGroupRequestsResponse = ApproveGroupRequestsResponse;
|
|
@@ -2627,7 +2472,7 @@ declare const index_d$6_onGroupRequestRejected: typeof onGroupRequestRejected;
|
|
|
2627
2472
|
declare const index_d$6_queryGroupRequests: typeof queryGroupRequests;
|
|
2628
2473
|
declare const index_d$6_rejectGroupRequests: typeof rejectGroupRequests;
|
|
2629
2474
|
declare namespace index_d$6 {
|
|
2630
|
-
export { type AccessRestriction$1 as AccessRestriction, type AccessRestrictionDataOneOf$1 as AccessRestrictionDataOneOf, type ActionEvent$5 as ActionEvent, AllowPolicy$1 as AllowPolicy, type index_d$6_ApproveGroupRequestsRequest as ApproveGroupRequestsRequest, type index_d$6_ApproveGroupRequestsResponse as ApproveGroupRequestsResponse, type index_d$6_ApproveGroupRequestsResponseNonNullableFields as ApproveGroupRequestsResponseNonNullableFields, type BaseEventMetadata$5 as BaseEventMetadata, type index_d$6_CancelGroupRequestRequest as CancelGroupRequestRequest, type index_d$6_CancelGroupRequestResponse as CancelGroupRequestResponse, type CoverImage$1 as CoverImage, type DomainEvent$5 as DomainEvent, type DomainEventBodyOneOf$5 as DomainEventBodyOneOf, type EntityCreatedEvent$5 as EntityCreatedEvent, type EntityDeletedEvent$5 as EntityDeletedEvent, type EntityUpdatedEvent$5 as EntityUpdatedEvent, type EventMetadata$5 as EventMetadata, type Events$1 as Events, type Group$1 as Group, type GroupDetails$1 as GroupDetails, type GroupDetailsPosition$1 as GroupDetailsPosition, type index_d$6_GroupRequest as GroupRequest, type index_d$6_GroupRequestApproved as GroupRequestApproved, type index_d$6_GroupRequestApprovedEnvelope as GroupRequestApprovedEnvelope, type index_d$6_GroupRequestCreatedEnvelope as GroupRequestCreatedEnvelope, type index_d$6_GroupRequestRejected as GroupRequestRejected, type index_d$6_GroupRequestRejectedEnvelope as GroupRequestRejectedEnvelope, type index_d$6_GroupRequestsQueryBuilder as GroupRequestsQueryBuilder, type index_d$6_GroupRequestsQueryResult as GroupRequestsQueryResult, type GroupSettings$1 as GroupSettings, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type Identity$1 as Identity, IdentityType$1 as IdentityType, type Image$1 as Image, ItemsToUpdate$3 as ItemsToUpdate, type index_d$6_ListGroupRequestsOptions as ListGroupRequestsOptions, type index_d$6_ListGroupRequestsRequest as ListGroupRequestsRequest, type index_d$6_ListGroupRequestsResponse as ListGroupRequestsResponse, type index_d$6_ListGroupRequestsResponseNonNullableFields as ListGroupRequestsResponseNonNullableFields, type Logo$1 as Logo, type MessageEnvelope$5 as MessageEnvelope, type OnboardingStepSettings$1 as OnboardingStepSettings, OwnershipFilter$3 as OwnershipFilter, type Paging$4 as Paging, type PagingMetadata$4 as PagingMetadata, type Position$1 as Position, PrivacyStatus$1 as PrivacyStatus, type Query$3 as Query, type index_d$6_QueryGroupRequestsOptions as QueryGroupRequestsOptions, type index_d$6_QueryGroupRequestsRequest as QueryGroupRequestsRequest, type index_d$6_QueryGroupRequestsResponse as QueryGroupRequestsResponse, type index_d$6_QueryGroupRequestsResponseNonNullableFields as QueryGroupRequestsResponseNonNullableFields, type index_d$6_RejectGroupRequestsRequest as RejectGroupRequestsRequest, type index_d$6_RejectGroupRequestsResponse as RejectGroupRequestsResponse, type index_d$6_RejectGroupRequestsResponseNonNullableFields as RejectGroupRequestsResponseNonNullableFields, type Rejection$3 as Rejection, type RequestDetails$3 as RequestDetails, RequestStatus$3 as RequestStatus, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, StepKey$1 as StepKey, type index_d$6_SubmitGroupRequestRequest as SubmitGroupRequestRequest, type index_d$6_SubmitGroupRequestResponse as SubmitGroupRequestResponse, Type$1 as Type, WebhookIdentityType$5 as WebhookIdentityType, __metadata$6 as __metadata, index_d$6_approveGroupRequests as approveGroupRequests, index_d$6_listGroupRequests as listGroupRequests, index_d$6_onGroupRequestApproved as onGroupRequestApproved, index_d$6_onGroupRequestCreated as onGroupRequestCreated, index_d$6_onGroupRequestRejected as onGroupRequestRejected, index_d$6_queryGroupRequests as queryGroupRequests, index_d$6_rejectGroupRequests as rejectGroupRequests };
|
|
2475
|
+
export { type AccessRestriction$1 as AccessRestriction, type AccessRestrictionDataOneOf$1 as AccessRestrictionDataOneOf, type ActionEvent$5 as ActionEvent, AllowPolicy$1 as AllowPolicy, type index_d$6_ApproveGroupRequestsRequest as ApproveGroupRequestsRequest, type index_d$6_ApproveGroupRequestsResponse as ApproveGroupRequestsResponse, type index_d$6_ApproveGroupRequestsResponseNonNullableFields as ApproveGroupRequestsResponseNonNullableFields, type BaseEventMetadata$5 as BaseEventMetadata, type index_d$6_CancelGroupRequestRequest as CancelGroupRequestRequest, type index_d$6_CancelGroupRequestResponse as CancelGroupRequestResponse, type CoverImage$1 as CoverImage, type DomainEvent$5 as DomainEvent, type DomainEventBodyOneOf$5 as DomainEventBodyOneOf, type EntityCreatedEvent$5 as EntityCreatedEvent, type EntityDeletedEvent$5 as EntityDeletedEvent, type EntityUpdatedEvent$5 as EntityUpdatedEvent, type EventMetadata$5 as EventMetadata, type Events$1 as Events, type Group$1 as Group, type GroupDetails$1 as GroupDetails, type GroupDetailsPosition$1 as GroupDetailsPosition, type index_d$6_GroupRequest as GroupRequest, type index_d$6_GroupRequestApproved as GroupRequestApproved, type index_d$6_GroupRequestApprovedEnvelope as GroupRequestApprovedEnvelope, type index_d$6_GroupRequestCreatedEnvelope as GroupRequestCreatedEnvelope, type index_d$6_GroupRequestRejected as GroupRequestRejected, type index_d$6_GroupRequestRejectedEnvelope as GroupRequestRejectedEnvelope, type index_d$6_GroupRequestsQueryBuilder as GroupRequestsQueryBuilder, type index_d$6_GroupRequestsQueryResult as GroupRequestsQueryResult, type GroupSettings$1 as GroupSettings, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type Identity$1 as Identity, IdentityType$1 as IdentityType, type Image$1 as Image, ItemsToUpdate$3 as ItemsToUpdate, type index_d$6_ListGroupRequestsOptions as ListGroupRequestsOptions, type index_d$6_ListGroupRequestsRequest as ListGroupRequestsRequest, type index_d$6_ListGroupRequestsResponse as ListGroupRequestsResponse, type index_d$6_ListGroupRequestsResponseNonNullableFields as ListGroupRequestsResponseNonNullableFields, type Logo$1 as Logo, type MessageEnvelope$5 as MessageEnvelope, type OnboardingStepSettings$1 as OnboardingStepSettings, OwnershipFilter$3 as OwnershipFilter, type Paging$4 as Paging, type PagingMetadata$4 as PagingMetadata, type Position$1 as Position, PrivacyStatus$1 as PrivacyStatus, type Query$3 as Query, type index_d$6_QueryGroupRequestsOptions as QueryGroupRequestsOptions, type index_d$6_QueryGroupRequestsRequest as QueryGroupRequestsRequest, type index_d$6_QueryGroupRequestsResponse as QueryGroupRequestsResponse, type index_d$6_QueryGroupRequestsResponseNonNullableFields as QueryGroupRequestsResponseNonNullableFields, type index_d$6_RejectGroupRequestsRequest as RejectGroupRequestsRequest, type index_d$6_RejectGroupRequestsResponse as RejectGroupRequestsResponse, type index_d$6_RejectGroupRequestsResponseNonNullableFields as RejectGroupRequestsResponseNonNullableFields, type Rejection$3 as Rejection, type RequestDetails$3 as RequestDetails, RequestStatus$3 as RequestStatus, type RestoreInfo$5 as RestoreInfo, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, StepKey$1 as StepKey, type index_d$6_SubmitGroupRequestRequest as SubmitGroupRequestRequest, type index_d$6_SubmitGroupRequestResponse as SubmitGroupRequestResponse, Type$1 as Type, WebhookIdentityType$5 as WebhookIdentityType, __metadata$6 as __metadata, index_d$6_approveGroupRequests as approveGroupRequests, index_d$6_listGroupRequests as listGroupRequests, index_d$6_onGroupRequestApproved as onGroupRequestApproved, index_d$6_onGroupRequestCreated as onGroupRequestCreated, index_d$6_onGroupRequestRejected as onGroupRequestRejected, index_d$6_queryGroupRequests as queryGroupRequests, index_d$6_rejectGroupRequests as rejectGroupRequests };
|
|
2631
2476
|
}
|
|
2632
2477
|
|
|
2633
2478
|
/**
|
|
@@ -2806,6 +2651,9 @@ interface DomainEventBodyOneOf$4 {
|
|
|
2806
2651
|
interface EntityCreatedEvent$4 {
|
|
2807
2652
|
entity?: string;
|
|
2808
2653
|
}
|
|
2654
|
+
interface RestoreInfo$4 {
|
|
2655
|
+
deletedDate?: Date;
|
|
2656
|
+
}
|
|
2809
2657
|
interface EntityUpdatedEvent$4 {
|
|
2810
2658
|
/**
|
|
2811
2659
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -2946,52 +2794,13 @@ interface UnassignRoleOptions {
|
|
|
2946
2794
|
siteMemberIds?: string[];
|
|
2947
2795
|
}
|
|
2948
2796
|
|
|
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
2797
|
declare const __metadata$5: {
|
|
2989
2798
|
PACKAGE_NAME: string;
|
|
2990
2799
|
};
|
|
2991
|
-
declare function assignRole(httpClient: HttpClient
|
|
2992
|
-
declare function unassignRole(httpClient: HttpClient
|
|
2993
|
-
declare const onGroupRoleAssigned: EventDefinition
|
|
2994
|
-
declare const onGroupRoleUnassigned: EventDefinition
|
|
2800
|
+
declare function assignRole(httpClient: HttpClient): (groupId: string, memberIds: string[], role: GroupRole, options?: AssignRoleOptions) => Promise<AssignRoleResponse & AssignRoleResponseNonNullableFields>;
|
|
2801
|
+
declare function unassignRole(httpClient: HttpClient): (groupId: string, memberIds: string[], role: GroupRole, options?: UnassignRoleOptions) => Promise<UnassignRoleResponse & UnassignRoleResponseNonNullableFields>;
|
|
2802
|
+
declare const onGroupRoleAssigned: EventDefinition<GroupRoleAssignedEnvelope, "wix.social_groups.v2.group_role_assigned">;
|
|
2803
|
+
declare const onGroupRoleUnassigned: EventDefinition<GroupRoleUnassignedEnvelope, "wix.social_groups.v2.group_role_unassigned">;
|
|
2995
2804
|
|
|
2996
2805
|
type index_d$5_AssignRoleOptions = AssignRoleOptions;
|
|
2997
2806
|
type index_d$5_AssignRoleRequest = AssignRoleRequest;
|
|
@@ -3014,7 +2823,7 @@ declare const index_d$5_onGroupRoleAssigned: typeof onGroupRoleAssigned;
|
|
|
3014
2823
|
declare const index_d$5_onGroupRoleUnassigned: typeof onGroupRoleUnassigned;
|
|
3015
2824
|
declare const index_d$5_unassignRole: typeof unassignRole;
|
|
3016
2825
|
declare namespace index_d$5 {
|
|
3017
|
-
export { type ActionEvent$4 as ActionEvent, type index_d$5_AssignRoleOptions as AssignRoleOptions, type index_d$5_AssignRoleRequest as AssignRoleRequest, type index_d$5_AssignRoleResponse as AssignRoleResponse, type index_d$5_AssignRoleResponseNonNullableFields as AssignRoleResponseNonNullableFields, type BaseEventMetadata$4 as BaseEventMetadata, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type index_d$5_GroupMember as GroupMember, type index_d$5_GroupRole as GroupRole, type index_d$5_GroupRoleAssignedEnvelope as GroupRoleAssignedEnvelope, type index_d$5_GroupRoleUnassignedEnvelope as GroupRoleUnassignedEnvelope, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, type MessageEnvelope$4 as MessageEnvelope, index_d$5_Role as Role, type index_d$5_RoleAssignedToGroupMember as RoleAssignedToGroupMember, type index_d$5_RoleUnassignedFromGroupMember as RoleUnassignedFromGroupMember, type index_d$5_UnassignRoleOptions as UnassignRoleOptions, type index_d$5_UnassignRoleRequest as UnassignRoleRequest, type index_d$5_UnassignRoleResponse as UnassignRoleResponse, type index_d$5_UnassignRoleResponseNonNullableFields as UnassignRoleResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, __metadata$5 as __metadata, index_d$5_assignRole as assignRole, index_d$5_onGroupRoleAssigned as onGroupRoleAssigned, index_d$5_onGroupRoleUnassigned as onGroupRoleUnassigned, index_d$5_unassignRole as unassignRole };
|
|
2826
|
+
export { type ActionEvent$4 as ActionEvent, type index_d$5_AssignRoleOptions as AssignRoleOptions, type index_d$5_AssignRoleRequest as AssignRoleRequest, type index_d$5_AssignRoleResponse as AssignRoleResponse, type index_d$5_AssignRoleResponseNonNullableFields as AssignRoleResponseNonNullableFields, type BaseEventMetadata$4 as BaseEventMetadata, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type index_d$5_GroupMember as GroupMember, type index_d$5_GroupRole as GroupRole, type index_d$5_GroupRoleAssignedEnvelope as GroupRoleAssignedEnvelope, type index_d$5_GroupRoleUnassignedEnvelope as GroupRoleUnassignedEnvelope, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, type MessageEnvelope$4 as MessageEnvelope, type RestoreInfo$4 as RestoreInfo, index_d$5_Role as Role, type index_d$5_RoleAssignedToGroupMember as RoleAssignedToGroupMember, type index_d$5_RoleUnassignedFromGroupMember as RoleUnassignedFromGroupMember, type index_d$5_UnassignRoleOptions as UnassignRoleOptions, type index_d$5_UnassignRoleRequest as UnassignRoleRequest, type index_d$5_UnassignRoleResponse as UnassignRoleResponse, type index_d$5_UnassignRoleResponseNonNullableFields as UnassignRoleResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, __metadata$5 as __metadata, index_d$5_assignRole as assignRole, index_d$5_onGroupRoleAssigned as onGroupRoleAssigned, index_d$5_onGroupRoleUnassigned as onGroupRoleUnassigned, index_d$5_unassignRole as unassignRole };
|
|
3018
2827
|
}
|
|
3019
2828
|
|
|
3020
2829
|
/**
|
|
@@ -3109,6 +2918,9 @@ interface DomainEventBodyOneOf$3 {
|
|
|
3109
2918
|
interface EntityCreatedEvent$3 {
|
|
3110
2919
|
entity?: string;
|
|
3111
2920
|
}
|
|
2921
|
+
interface RestoreInfo$3 {
|
|
2922
|
+
deletedDate?: Date;
|
|
2923
|
+
}
|
|
3112
2924
|
interface EntityUpdatedEvent$3 {
|
|
3113
2925
|
/**
|
|
3114
2926
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -3232,51 +3044,12 @@ interface CreateOrReplaceAllRulesOptions {
|
|
|
3232
3044
|
rules?: GroupRule[];
|
|
3233
3045
|
}
|
|
3234
3046
|
|
|
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
3047
|
declare const __metadata$4: {
|
|
3275
3048
|
PACKAGE_NAME: string;
|
|
3276
3049
|
};
|
|
3277
|
-
declare function listRules(httpClient: HttpClient
|
|
3278
|
-
declare function createOrReplaceAllRules(httpClient: HttpClient
|
|
3279
|
-
declare const onGroupRulesUpdated: EventDefinition
|
|
3050
|
+
declare function listRules(httpClient: HttpClient): (groupId: string) => Promise<ListRulesResponse & ListRulesResponseNonNullableFields>;
|
|
3051
|
+
declare function createOrReplaceAllRules(httpClient: HttpClient): (groupId: string, options?: CreateOrReplaceAllRulesOptions) => Promise<CreateOrReplaceAllRulesResponse & CreateOrReplaceAllRulesResponseNonNullableFields>;
|
|
3052
|
+
declare const onGroupRulesUpdated: EventDefinition<GroupRulesUpdatedEnvelope, "wix.social_groups.v2.group_rules_updated">;
|
|
3280
3053
|
|
|
3281
3054
|
type index_d$4_CreateOrReplaceAllRulesOptions = CreateOrReplaceAllRulesOptions;
|
|
3282
3055
|
type index_d$4_CreateOrReplaceAllRulesRequest = CreateOrReplaceAllRulesRequest;
|
|
@@ -3294,7 +3067,7 @@ declare const index_d$4_createOrReplaceAllRules: typeof createOrReplaceAllRules;
|
|
|
3294
3067
|
declare const index_d$4_listRules: typeof listRules;
|
|
3295
3068
|
declare const index_d$4_onGroupRulesUpdated: typeof onGroupRulesUpdated;
|
|
3296
3069
|
declare namespace index_d$4 {
|
|
3297
|
-
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_CreateOrReplaceAllRulesOptions as CreateOrReplaceAllRulesOptions, type index_d$4_CreateOrReplaceAllRulesRequest as CreateOrReplaceAllRulesRequest, type index_d$4_CreateOrReplaceAllRulesResponse as CreateOrReplaceAllRulesResponse, type index_d$4_CreateOrReplaceAllRulesResponseNonNullableFields as CreateOrReplaceAllRulesResponseNonNullableFields, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$4_Empty as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type index_d$4_GroupRule as GroupRule, type index_d$4_GroupRules as GroupRules, type index_d$4_GroupRulesUpdatedEnvelope as GroupRulesUpdatedEnvelope, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type index_d$4_ListRulesRequest as ListRulesRequest, type index_d$4_ListRulesResponse as ListRulesResponse, type index_d$4_ListRulesResponseNonNullableFields as ListRulesResponseNonNullableFields, type index_d$4_ListTemplatesResponse as ListTemplatesResponse, type MessageEnvelope$3 as MessageEnvelope, WebhookIdentityType$3 as WebhookIdentityType, __metadata$4 as __metadata, index_d$4_createOrReplaceAllRules as createOrReplaceAllRules, index_d$4_listRules as listRules, index_d$4_onGroupRulesUpdated as onGroupRulesUpdated };
|
|
3070
|
+
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_CreateOrReplaceAllRulesOptions as CreateOrReplaceAllRulesOptions, type index_d$4_CreateOrReplaceAllRulesRequest as CreateOrReplaceAllRulesRequest, type index_d$4_CreateOrReplaceAllRulesResponse as CreateOrReplaceAllRulesResponse, type index_d$4_CreateOrReplaceAllRulesResponseNonNullableFields as CreateOrReplaceAllRulesResponseNonNullableFields, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$4_Empty as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type index_d$4_GroupRule as GroupRule, type index_d$4_GroupRules as GroupRules, type index_d$4_GroupRulesUpdatedEnvelope as GroupRulesUpdatedEnvelope, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type index_d$4_ListRulesRequest as ListRulesRequest, type index_d$4_ListRulesResponse as ListRulesResponse, type index_d$4_ListRulesResponseNonNullableFields as ListRulesResponseNonNullableFields, type index_d$4_ListTemplatesResponse as ListTemplatesResponse, type MessageEnvelope$3 as MessageEnvelope, type RestoreInfo$3 as RestoreInfo, WebhookIdentityType$3 as WebhookIdentityType, __metadata$4 as __metadata, index_d$4_createOrReplaceAllRules as createOrReplaceAllRules, index_d$4_listRules as listRules, index_d$4_onGroupRulesUpdated as onGroupRulesUpdated };
|
|
3298
3071
|
}
|
|
3299
3072
|
|
|
3300
3073
|
/**
|
|
@@ -3655,6 +3428,9 @@ interface DomainEventBodyOneOf$2 {
|
|
|
3655
3428
|
interface EntityCreatedEvent$2 {
|
|
3656
3429
|
entity?: string;
|
|
3657
3430
|
}
|
|
3431
|
+
interface RestoreInfo$2 {
|
|
3432
|
+
deletedDate?: Date;
|
|
3433
|
+
}
|
|
3658
3434
|
interface EntityUpdatedEvent$2 {
|
|
3659
3435
|
/**
|
|
3660
3436
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -3847,55 +3623,16 @@ interface JoinGroupRequestsQueryBuilder {
|
|
|
3847
3623
|
find: () => Promise<JoinGroupRequestsQueryResult>;
|
|
3848
3624
|
}
|
|
3849
3625
|
|
|
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
3626
|
declare const __metadata$3: {
|
|
3890
3627
|
PACKAGE_NAME: string;
|
|
3891
3628
|
};
|
|
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
|
|
3629
|
+
declare function approveJoinGroupRequests(httpClient: HttpClient): (groupId: string, memberIds: string[], options?: ApproveJoinGroupRequestsOptions) => Promise<ApproveJoinGroupRequestsResponse & ApproveJoinGroupRequestsResponseNonNullableFields>;
|
|
3630
|
+
declare function rejectJoinGroupRequests(httpClient: HttpClient): (groupId: string, rejections: Rejection$2[]) => Promise<RejectJoinGroupRequestsResponse & RejectJoinGroupRequestsResponseNonNullableFields>;
|
|
3631
|
+
declare function listJoinGroupRequests(httpClient: HttpClient): (groupId: string, options?: ListJoinGroupRequestsOptions) => Promise<ListJoinGroupRequestsResponse & ListJoinGroupRequestsResponseNonNullableFields>;
|
|
3632
|
+
declare function queryJoinGroupRequests(httpClient: HttpClient): (groupId: string, options?: QueryJoinGroupRequestsOptions) => JoinGroupRequestsQueryBuilder;
|
|
3633
|
+
declare const onJoinGroupRequestCreated: EventDefinition<JoinGroupRequestCreatedEnvelope, "wix.social_groups.v2.join_group_request_created">;
|
|
3634
|
+
declare const onJoinGroupRequestApproved: EventDefinition<JoinGroupRequestApprovedEnvelope, "wix.social_groups.v2.join_group_request_approved">;
|
|
3635
|
+
declare const onJoinGroupRequestRejected: EventDefinition<JoinGroupRequestRejectedEnvelope, "wix.social_groups.v2.join_group_request_rejected">;
|
|
3899
3636
|
|
|
3900
3637
|
type index_d$3_ApproveAllJoinGroupRequestsRequest = ApproveAllJoinGroupRequestsRequest;
|
|
3901
3638
|
type index_d$3_ApproveAllJoinGroupRequestsResponse = ApproveAllJoinGroupRequestsResponse;
|
|
@@ -3955,7 +3692,7 @@ declare const index_d$3_onJoinGroupRequestRejected: typeof onJoinGroupRequestRej
|
|
|
3955
3692
|
declare const index_d$3_queryJoinGroupRequests: typeof queryJoinGroupRequests;
|
|
3956
3693
|
declare const index_d$3_rejectJoinGroupRequests: typeof rejectJoinGroupRequests;
|
|
3957
3694
|
declare namespace index_d$3 {
|
|
3958
|
-
export { type ActionEvent$2 as ActionEvent, type index_d$3_ApproveAllJoinGroupRequestsRequest as ApproveAllJoinGroupRequestsRequest, type index_d$3_ApproveAllJoinGroupRequestsResponse as ApproveAllJoinGroupRequestsResponse, type index_d$3_ApproveJoinGroupRequestsOptions as ApproveJoinGroupRequestsOptions, type index_d$3_ApproveJoinGroupRequestsRequest as ApproveJoinGroupRequestsRequest, type index_d$3_ApproveJoinGroupRequestsResponse as ApproveJoinGroupRequestsResponse, type index_d$3_ApproveJoinGroupRequestsResponseNonNullableFields as ApproveJoinGroupRequestsResponseNonNullableFields, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$3_CancelJoinGroupRequestRequest as CancelJoinGroupRequestRequest, type index_d$3_CancelJoinGroupRequestResponse as CancelJoinGroupRequestResponse, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type index_d$3_EventsViolationOptions as EventsViolationOptions, type index_d$3_GetJoinRequirementsRequest as GetJoinRequirementsRequest, type index_d$3_GetJoinRequirementsResponse as GetJoinRequirementsResponse, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, ItemsToUpdate$2 as ItemsToUpdate, type index_d$3_JoinGroupRequest as JoinGroupRequest, type index_d$3_JoinGroupRequestApproved as JoinGroupRequestApproved, type index_d$3_JoinGroupRequestApprovedEnvelope as JoinGroupRequestApprovedEnvelope, type index_d$3_JoinGroupRequestCancelled as JoinGroupRequestCancelled, type index_d$3_JoinGroupRequestCreatedEnvelope as JoinGroupRequestCreatedEnvelope, type index_d$3_JoinGroupRequestRejected as JoinGroupRequestRejected, type index_d$3_JoinGroupRequestRejectedEnvelope as JoinGroupRequestRejectedEnvelope, type index_d$3_JoinGroupRequestsQueryBuilder as JoinGroupRequestsQueryBuilder, type index_d$3_JoinGroupRequestsQueryResult as JoinGroupRequestsQueryResult, type index_d$3_JoinRequestsApproved as JoinRequestsApproved, type index_d$3_ListAllJoinGroupRequestsRequest as ListAllJoinGroupRequestsRequest, type index_d$3_ListAllJoinGroupRequestsResponse as ListAllJoinGroupRequestsResponse, type index_d$3_ListJoinGroupRequestsOptions as ListJoinGroupRequestsOptions, type index_d$3_ListJoinGroupRequestsRequest as ListJoinGroupRequestsRequest, type index_d$3_ListJoinGroupRequestsResponse as ListJoinGroupRequestsResponse, type index_d$3_ListJoinGroupRequestsResponseNonNullableFields as ListJoinGroupRequestsResponseNonNullableFields, type index_d$3_MemberJoinedGroup as MemberJoinedGroup, type index_d$3_MembersAddedToGroup as MembersAddedToGroup, type index_d$3_MembersInvitedToGroup as MembersInvitedToGroup, type MembershipQuestionAnswer$2 as MembershipQuestionAnswer, type index_d$3_MembershipQuestionViolationOptions as MembershipQuestionViolationOptions, type MessageEnvelope$2 as MessageEnvelope, OwnershipFilter$2 as OwnershipFilter, type Paging$3 as Paging, type PagingMetadata$3 as PagingMetadata, type index_d$3_PaidPlan as PaidPlan, type index_d$3_PricingPlanViolationOptions as PricingPlanViolationOptions, type Query$2 as Query, type index_d$3_QueryJoinGroupRequestsOptions as QueryJoinGroupRequestsOptions, type index_d$3_QueryJoinGroupRequestsRequest as QueryJoinGroupRequestsRequest, type index_d$3_QueryJoinGroupRequestsResponse as QueryJoinGroupRequestsResponse, type index_d$3_QueryJoinGroupRequestsResponseNonNullableFields as QueryJoinGroupRequestsResponseNonNullableFields, type index_d$3_RejectAllJoinGroupRequestsRequest as RejectAllJoinGroupRequestsRequest, type index_d$3_RejectAllJoinGroupRequestsResponse as RejectAllJoinGroupRequestsResponse, type index_d$3_RejectJoinGroupRequestsRequest as RejectJoinGroupRequestsRequest, type index_d$3_RejectJoinGroupRequestsResponse as RejectJoinGroupRequestsResponse, type index_d$3_RejectJoinGroupRequestsResponseNonNullableFields as RejectJoinGroupRequestsResponseNonNullableFields, type Rejection$2 as Rejection, type RequestDetails$2 as RequestDetails, RequestStatus$2 as RequestStatus, type index_d$3_SocialGroupsEvent as SocialGroupsEvent, type index_d$3_SocialGroupsEventPayloadOneOf as SocialGroupsEventPayloadOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type index_d$3_SubmitJoinGroupRequestRequest as SubmitJoinGroupRequestRequest, type index_d$3_SubmitJoinGroupRequestResponse as SubmitJoinGroupRequestResponse, type index_d$3_Violation as Violation, index_d$3_ViolationType as ViolationType, type index_d$3_ViolationViolationOptionsOneOf as ViolationViolationOptionsOneOf, WebhookIdentityType$2 as WebhookIdentityType, __metadata$3 as __metadata, index_d$3_approveJoinGroupRequests as approveJoinGroupRequests, index_d$3_listJoinGroupRequests as listJoinGroupRequests, index_d$3_onJoinGroupRequestApproved as onJoinGroupRequestApproved, index_d$3_onJoinGroupRequestCreated as onJoinGroupRequestCreated, index_d$3_onJoinGroupRequestRejected as onJoinGroupRequestRejected, index_d$3_queryJoinGroupRequests as queryJoinGroupRequests, index_d$3_rejectJoinGroupRequests as rejectJoinGroupRequests };
|
|
3695
|
+
export { type ActionEvent$2 as ActionEvent, type index_d$3_ApproveAllJoinGroupRequestsRequest as ApproveAllJoinGroupRequestsRequest, type index_d$3_ApproveAllJoinGroupRequestsResponse as ApproveAllJoinGroupRequestsResponse, type index_d$3_ApproveJoinGroupRequestsOptions as ApproveJoinGroupRequestsOptions, type index_d$3_ApproveJoinGroupRequestsRequest as ApproveJoinGroupRequestsRequest, type index_d$3_ApproveJoinGroupRequestsResponse as ApproveJoinGroupRequestsResponse, type index_d$3_ApproveJoinGroupRequestsResponseNonNullableFields as ApproveJoinGroupRequestsResponseNonNullableFields, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$3_CancelJoinGroupRequestRequest as CancelJoinGroupRequestRequest, type index_d$3_CancelJoinGroupRequestResponse as CancelJoinGroupRequestResponse, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type index_d$3_EventsViolationOptions as EventsViolationOptions, type index_d$3_GetJoinRequirementsRequest as GetJoinRequirementsRequest, type index_d$3_GetJoinRequirementsResponse as GetJoinRequirementsResponse, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, ItemsToUpdate$2 as ItemsToUpdate, type index_d$3_JoinGroupRequest as JoinGroupRequest, type index_d$3_JoinGroupRequestApproved as JoinGroupRequestApproved, type index_d$3_JoinGroupRequestApprovedEnvelope as JoinGroupRequestApprovedEnvelope, type index_d$3_JoinGroupRequestCancelled as JoinGroupRequestCancelled, type index_d$3_JoinGroupRequestCreatedEnvelope as JoinGroupRequestCreatedEnvelope, type index_d$3_JoinGroupRequestRejected as JoinGroupRequestRejected, type index_d$3_JoinGroupRequestRejectedEnvelope as JoinGroupRequestRejectedEnvelope, type index_d$3_JoinGroupRequestsQueryBuilder as JoinGroupRequestsQueryBuilder, type index_d$3_JoinGroupRequestsQueryResult as JoinGroupRequestsQueryResult, type index_d$3_JoinRequestsApproved as JoinRequestsApproved, type index_d$3_ListAllJoinGroupRequestsRequest as ListAllJoinGroupRequestsRequest, type index_d$3_ListAllJoinGroupRequestsResponse as ListAllJoinGroupRequestsResponse, type index_d$3_ListJoinGroupRequestsOptions as ListJoinGroupRequestsOptions, type index_d$3_ListJoinGroupRequestsRequest as ListJoinGroupRequestsRequest, type index_d$3_ListJoinGroupRequestsResponse as ListJoinGroupRequestsResponse, type index_d$3_ListJoinGroupRequestsResponseNonNullableFields as ListJoinGroupRequestsResponseNonNullableFields, type index_d$3_MemberJoinedGroup as MemberJoinedGroup, type index_d$3_MembersAddedToGroup as MembersAddedToGroup, type index_d$3_MembersInvitedToGroup as MembersInvitedToGroup, type MembershipQuestionAnswer$2 as MembershipQuestionAnswer, type index_d$3_MembershipQuestionViolationOptions as MembershipQuestionViolationOptions, type MessageEnvelope$2 as MessageEnvelope, OwnershipFilter$2 as OwnershipFilter, type Paging$3 as Paging, type PagingMetadata$3 as PagingMetadata, type index_d$3_PaidPlan as PaidPlan, type index_d$3_PricingPlanViolationOptions as PricingPlanViolationOptions, type Query$2 as Query, type index_d$3_QueryJoinGroupRequestsOptions as QueryJoinGroupRequestsOptions, type index_d$3_QueryJoinGroupRequestsRequest as QueryJoinGroupRequestsRequest, type index_d$3_QueryJoinGroupRequestsResponse as QueryJoinGroupRequestsResponse, type index_d$3_QueryJoinGroupRequestsResponseNonNullableFields as QueryJoinGroupRequestsResponseNonNullableFields, type index_d$3_RejectAllJoinGroupRequestsRequest as RejectAllJoinGroupRequestsRequest, type index_d$3_RejectAllJoinGroupRequestsResponse as RejectAllJoinGroupRequestsResponse, type index_d$3_RejectJoinGroupRequestsRequest as RejectJoinGroupRequestsRequest, type index_d$3_RejectJoinGroupRequestsResponse as RejectJoinGroupRequestsResponse, type index_d$3_RejectJoinGroupRequestsResponseNonNullableFields as RejectJoinGroupRequestsResponseNonNullableFields, type Rejection$2 as Rejection, type RequestDetails$2 as RequestDetails, RequestStatus$2 as RequestStatus, type RestoreInfo$2 as RestoreInfo, type index_d$3_SocialGroupsEvent as SocialGroupsEvent, type index_d$3_SocialGroupsEventPayloadOneOf as SocialGroupsEventPayloadOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type index_d$3_SubmitJoinGroupRequestRequest as SubmitJoinGroupRequestRequest, type index_d$3_SubmitJoinGroupRequestResponse as SubmitJoinGroupRequestResponse, type index_d$3_Violation as Violation, index_d$3_ViolationType as ViolationType, type index_d$3_ViolationViolationOptionsOneOf as ViolationViolationOptionsOneOf, WebhookIdentityType$2 as WebhookIdentityType, __metadata$3 as __metadata, index_d$3_approveJoinGroupRequests as approveJoinGroupRequests, index_d$3_listJoinGroupRequests as listJoinGroupRequests, index_d$3_onJoinGroupRequestApproved as onJoinGroupRequestApproved, index_d$3_onJoinGroupRequestCreated as onJoinGroupRequestCreated, index_d$3_onJoinGroupRequestRejected as onJoinGroupRequestRejected, index_d$3_queryJoinGroupRequests as queryJoinGroupRequests, index_d$3_rejectJoinGroupRequests as rejectJoinGroupRequests };
|
|
3959
3696
|
}
|
|
3960
3697
|
|
|
3961
3698
|
/**
|
|
@@ -4079,43 +3816,12 @@ interface ListAnswersOptions {
|
|
|
4079
3816
|
paging?: Paging$2;
|
|
4080
3817
|
}
|
|
4081
3818
|
|
|
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
3819
|
declare const __metadata$2: {
|
|
4114
3820
|
PACKAGE_NAME: string;
|
|
4115
3821
|
};
|
|
4116
|
-
declare function listMembershipQuestions(httpClient: HttpClient
|
|
4117
|
-
declare function createOrReplaceAllMembershipQuestions(httpClient: HttpClient
|
|
4118
|
-
declare function listAnswers(httpClient: HttpClient
|
|
3822
|
+
declare function listMembershipQuestions(httpClient: HttpClient): (groupId: string) => Promise<ListMembershipQuestionsResponse & ListMembershipQuestionsResponseNonNullableFields>;
|
|
3823
|
+
declare function createOrReplaceAllMembershipQuestions(httpClient: HttpClient): (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions) => Promise<CreateOrReplaceAllMembershipQuestionsResponse & CreateOrReplaceAllMembershipQuestionsResponseNonNullableFields>;
|
|
3824
|
+
declare function listAnswers(httpClient: HttpClient): (groupId: string, options?: ListAnswersOptions) => Promise<ListAnswersResponse & ListAnswersResponseNonNullableFields>;
|
|
4119
3825
|
|
|
4120
3826
|
type index_d$2_CreateOrReplaceAllMembershipQuestionsOptions = CreateOrReplaceAllMembershipQuestionsOptions;
|
|
4121
3827
|
type index_d$2_CreateOrReplaceAllMembershipQuestionsRequest = CreateOrReplaceAllMembershipQuestionsRequest;
|
|
@@ -4365,7 +4071,6 @@ interface GroupSettings {
|
|
|
4365
4071
|
groupDetailsChangedPostEnabled?: boolean | null;
|
|
4366
4072
|
/** Whether all members can see the full member list. */
|
|
4367
4073
|
showMemberList?: boolean | null;
|
|
4368
|
-
onboardingStepsSettings?: OnboardingStepSettings[];
|
|
4369
4074
|
}
|
|
4370
4075
|
interface Identity {
|
|
4371
4076
|
/** Member ID of the group creator. See [Members API](https://dev.wix.com/api/rest/members/members/about-wix-members) for more details. */
|
|
@@ -4570,6 +4275,9 @@ interface DomainEventBodyOneOf$1 {
|
|
|
4570
4275
|
interface EntityCreatedEvent$1 {
|
|
4571
4276
|
entity?: string;
|
|
4572
4277
|
}
|
|
4278
|
+
interface RestoreInfo$1 {
|
|
4279
|
+
deletedDate?: Date;
|
|
4280
|
+
}
|
|
4573
4281
|
interface EntityUpdatedEvent$1 {
|
|
4574
4282
|
/**
|
|
4575
4283
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -4640,12 +4348,6 @@ interface ApproveCreateRequestsResponseNonNullableFields {
|
|
|
4640
4348
|
y: number;
|
|
4641
4349
|
};
|
|
4642
4350
|
};
|
|
4643
|
-
settings?: {
|
|
4644
|
-
onboardingStepsSettings: {
|
|
4645
|
-
stepKey: StepKey;
|
|
4646
|
-
visible: boolean;
|
|
4647
|
-
}[];
|
|
4648
|
-
};
|
|
4649
4351
|
createdBy?: {
|
|
4650
4352
|
identityType: IdentityType;
|
|
4651
4353
|
};
|
|
@@ -4668,12 +4370,6 @@ interface RejectCreateRequestsResponseNonNullableFields {
|
|
|
4668
4370
|
y: number;
|
|
4669
4371
|
};
|
|
4670
4372
|
};
|
|
4671
|
-
settings?: {
|
|
4672
|
-
onboardingStepsSettings: {
|
|
4673
|
-
stepKey: StepKey;
|
|
4674
|
-
visible: boolean;
|
|
4675
|
-
}[];
|
|
4676
|
-
};
|
|
4677
4373
|
createdBy?: {
|
|
4678
4374
|
identityType: IdentityType;
|
|
4679
4375
|
};
|
|
@@ -4696,12 +4392,6 @@ interface ListCreateRequestsResponseNonNullableFields {
|
|
|
4696
4392
|
y: number;
|
|
4697
4393
|
};
|
|
4698
4394
|
};
|
|
4699
|
-
settings?: {
|
|
4700
|
-
onboardingStepsSettings: {
|
|
4701
|
-
stepKey: StepKey;
|
|
4702
|
-
visible: boolean;
|
|
4703
|
-
}[];
|
|
4704
|
-
};
|
|
4705
4395
|
createdBy?: {
|
|
4706
4396
|
identityType: IdentityType;
|
|
4707
4397
|
};
|
|
@@ -4724,12 +4414,6 @@ interface QueryCreateRequestsResponseNonNullableFields {
|
|
|
4724
4414
|
y: number;
|
|
4725
4415
|
};
|
|
4726
4416
|
};
|
|
4727
|
-
settings?: {
|
|
4728
|
-
onboardingStepsSettings: {
|
|
4729
|
-
stepKey: StepKey;
|
|
4730
|
-
visible: boolean;
|
|
4731
|
-
}[];
|
|
4732
|
-
};
|
|
4733
4417
|
createdBy?: {
|
|
4734
4418
|
identityType: IdentityType;
|
|
4735
4419
|
};
|
|
@@ -4809,54 +4493,15 @@ interface QueryCreateRequestsOptions {
|
|
|
4809
4493
|
query?: Query$1;
|
|
4810
4494
|
}
|
|
4811
4495
|
|
|
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
4496
|
declare const __metadata$1: {
|
|
4852
4497
|
PACKAGE_NAME: string;
|
|
4853
4498
|
};
|
|
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
|
|
4499
|
+
declare function approveCreateRequests(httpClient: HttpClient): (options?: ApproveCreateRequestsOptions) => Promise<ApproveCreateRequestsResponse & ApproveCreateRequestsResponseNonNullableFields>;
|
|
4500
|
+
declare function rejectCreateRequests(httpClient: HttpClient): (options?: RejectCreateRequestsOptions) => Promise<RejectCreateRequestsResponse & RejectCreateRequestsResponseNonNullableFields>;
|
|
4501
|
+
declare function listCreateRequests(httpClient: HttpClient): (options?: ListCreateRequestsOptions) => Promise<ListCreateRequestsResponse & ListCreateRequestsResponseNonNullableFields>;
|
|
4502
|
+
declare function queryCreateRequests(httpClient: HttpClient): (options?: QueryCreateRequestsOptions) => Promise<QueryCreateRequestsResponse & QueryCreateRequestsResponseNonNullableFields>;
|
|
4503
|
+
declare const onCreateRequestApproved: EventDefinition<CreateRequestApprovedEnvelope, "wix.social_groups.v3.create_request_approved">;
|
|
4504
|
+
declare const onCreateRequestRejected: EventDefinition<CreateRequestRejectedEnvelope, "wix.social_groups.v3.create_request_rejected">;
|
|
4860
4505
|
|
|
4861
4506
|
type index_d$1_AccessRestriction = AccessRestriction;
|
|
4862
4507
|
type index_d$1_AccessRestrictionDataOneOf = AccessRestrictionDataOneOf;
|
|
@@ -4913,7 +4558,7 @@ declare const index_d$1_onCreateRequestRejected: typeof onCreateRequestRejected;
|
|
|
4913
4558
|
declare const index_d$1_queryCreateRequests: typeof queryCreateRequests;
|
|
4914
4559
|
declare const index_d$1_rejectCreateRequests: typeof rejectCreateRequests;
|
|
4915
4560
|
declare namespace index_d$1 {
|
|
4916
|
-
export { type index_d$1_AccessRestriction as AccessRestriction, type index_d$1_AccessRestrictionDataOneOf as AccessRestrictionDataOneOf, type ActionEvent$1 as ActionEvent, index_d$1_AllowPolicy as AllowPolicy, type index_d$1_ApproveCreateRequestsOptions as ApproveCreateRequestsOptions, type index_d$1_ApproveCreateRequestsRequest as ApproveCreateRequestsRequest, type index_d$1_ApproveCreateRequestsResponse as ApproveCreateRequestsResponse, type index_d$1_ApproveCreateRequestsResponseNonNullableFields as ApproveCreateRequestsResponseNonNullableFields, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CancelCreateRequestRequest as CancelCreateRequestRequest, type index_d$1_CancelCreateRequestResponse as CancelCreateRequestResponse, type index_d$1_CoverImage as CoverImage, type index_d$1_CreateRequest as CreateRequest, type index_d$1_CreateRequestApproved as CreateRequestApproved, type index_d$1_CreateRequestApprovedEnvelope as CreateRequestApprovedEnvelope, type index_d$1_CreateRequestRejected as CreateRequestRejected, type index_d$1_CreateRequestRejectedEnvelope as CreateRequestRejectedEnvelope, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_Events as Events, type index_d$1_Group as Group, type index_d$1_GroupDetails as GroupDetails, type index_d$1_GroupDetailsPosition as GroupDetailsPosition, type index_d$1_GroupSettings as GroupSettings, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_Identity as Identity, index_d$1_IdentityType as IdentityType, type index_d$1_Image as Image, ItemsToUpdate$1 as ItemsToUpdate, type index_d$1_ListCreateRequestsOptions as ListCreateRequestsOptions, type index_d$1_ListCreateRequestsRequest as ListCreateRequestsRequest, type index_d$1_ListCreateRequestsResponse as ListCreateRequestsResponse, type index_d$1_ListCreateRequestsResponseNonNullableFields as ListCreateRequestsResponseNonNullableFields, type index_d$1_Logo as Logo, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_OnboardingStepSettings as OnboardingStepSettings, OwnershipFilter$1 as OwnershipFilter, type Paging$1 as Paging, type PagingMetadata$1 as PagingMetadata, type index_d$1_Position as Position, index_d$1_PrivacyStatus as PrivacyStatus, type Query$1 as Query, type index_d$1_QueryCreateRequestsOptions as QueryCreateRequestsOptions, type index_d$1_QueryCreateRequestsRequest as QueryCreateRequestsRequest, type index_d$1_QueryCreateRequestsResponse as QueryCreateRequestsResponse, type index_d$1_QueryCreateRequestsResponseNonNullableFields as QueryCreateRequestsResponseNonNullableFields, type index_d$1_RejectCreateRequestsOptions as RejectCreateRequestsOptions, type index_d$1_RejectCreateRequestsRequest as RejectCreateRequestsRequest, type index_d$1_RejectCreateRequestsResponse as RejectCreateRequestsResponse, type index_d$1_RejectCreateRequestsResponseNonNullableFields as RejectCreateRequestsResponseNonNullableFields, type Rejection$1 as Rejection, type RequestDetails$1 as RequestDetails, RequestStatus$1 as RequestStatus, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_StepKey as StepKey, type index_d$1_SubmitCreateRequestRequest as SubmitCreateRequestRequest, type index_d$1_SubmitCreateRequestResponse as SubmitCreateRequestResponse, index_d$1_Type as Type, WebhookIdentityType$1 as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_approveCreateRequests as approveCreateRequests, index_d$1_listCreateRequests as listCreateRequests, index_d$1_onCreateRequestApproved as onCreateRequestApproved, index_d$1_onCreateRequestRejected as onCreateRequestRejected, index_d$1_queryCreateRequests as queryCreateRequests, index_d$1_rejectCreateRequests as rejectCreateRequests };
|
|
4561
|
+
export { type index_d$1_AccessRestriction as AccessRestriction, type index_d$1_AccessRestrictionDataOneOf as AccessRestrictionDataOneOf, type ActionEvent$1 as ActionEvent, index_d$1_AllowPolicy as AllowPolicy, type index_d$1_ApproveCreateRequestsOptions as ApproveCreateRequestsOptions, type index_d$1_ApproveCreateRequestsRequest as ApproveCreateRequestsRequest, type index_d$1_ApproveCreateRequestsResponse as ApproveCreateRequestsResponse, type index_d$1_ApproveCreateRequestsResponseNonNullableFields as ApproveCreateRequestsResponseNonNullableFields, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CancelCreateRequestRequest as CancelCreateRequestRequest, type index_d$1_CancelCreateRequestResponse as CancelCreateRequestResponse, type index_d$1_CoverImage as CoverImage, type index_d$1_CreateRequest as CreateRequest, type index_d$1_CreateRequestApproved as CreateRequestApproved, type index_d$1_CreateRequestApprovedEnvelope as CreateRequestApprovedEnvelope, type index_d$1_CreateRequestRejected as CreateRequestRejected, type index_d$1_CreateRequestRejectedEnvelope as CreateRequestRejectedEnvelope, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_Events as Events, type index_d$1_Group as Group, type index_d$1_GroupDetails as GroupDetails, type index_d$1_GroupDetailsPosition as GroupDetailsPosition, type index_d$1_GroupSettings as GroupSettings, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_Identity as Identity, index_d$1_IdentityType as IdentityType, type index_d$1_Image as Image, ItemsToUpdate$1 as ItemsToUpdate, type index_d$1_ListCreateRequestsOptions as ListCreateRequestsOptions, type index_d$1_ListCreateRequestsRequest as ListCreateRequestsRequest, type index_d$1_ListCreateRequestsResponse as ListCreateRequestsResponse, type index_d$1_ListCreateRequestsResponseNonNullableFields as ListCreateRequestsResponseNonNullableFields, type index_d$1_Logo as Logo, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_OnboardingStepSettings as OnboardingStepSettings, OwnershipFilter$1 as OwnershipFilter, type Paging$1 as Paging, type PagingMetadata$1 as PagingMetadata, type index_d$1_Position as Position, index_d$1_PrivacyStatus as PrivacyStatus, type Query$1 as Query, type index_d$1_QueryCreateRequestsOptions as QueryCreateRequestsOptions, type index_d$1_QueryCreateRequestsRequest as QueryCreateRequestsRequest, type index_d$1_QueryCreateRequestsResponse as QueryCreateRequestsResponse, type index_d$1_QueryCreateRequestsResponseNonNullableFields as QueryCreateRequestsResponseNonNullableFields, type index_d$1_RejectCreateRequestsOptions as RejectCreateRequestsOptions, type index_d$1_RejectCreateRequestsRequest as RejectCreateRequestsRequest, type index_d$1_RejectCreateRequestsResponse as RejectCreateRequestsResponse, type index_d$1_RejectCreateRequestsResponseNonNullableFields as RejectCreateRequestsResponseNonNullableFields, type Rejection$1 as Rejection, type RequestDetails$1 as RequestDetails, RequestStatus$1 as RequestStatus, type RestoreInfo$1 as RestoreInfo, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_StepKey as StepKey, type index_d$1_SubmitCreateRequestRequest as SubmitCreateRequestRequest, type index_d$1_SubmitCreateRequestResponse as SubmitCreateRequestResponse, index_d$1_Type as Type, WebhookIdentityType$1 as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_approveCreateRequests as approveCreateRequests, index_d$1_listCreateRequests as listCreateRequests, index_d$1_onCreateRequestApproved as onCreateRequestApproved, index_d$1_onCreateRequestRejected as onCreateRequestRejected, index_d$1_queryCreateRequests as queryCreateRequests, index_d$1_rejectCreateRequests as rejectCreateRequests };
|
|
4917
4562
|
}
|
|
4918
4563
|
|
|
4919
4564
|
/**
|
|
@@ -5156,6 +4801,9 @@ interface DomainEventBodyOneOf {
|
|
|
5156
4801
|
interface EntityCreatedEvent {
|
|
5157
4802
|
entity?: string;
|
|
5158
4803
|
}
|
|
4804
|
+
interface RestoreInfo {
|
|
4805
|
+
deletedDate?: Date;
|
|
4806
|
+
}
|
|
5159
4807
|
interface EntityUpdatedEvent {
|
|
5160
4808
|
/**
|
|
5161
4809
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -5305,45 +4953,6 @@ interface QueryJoinRequestsOptions {
|
|
|
5305
4953
|
query?: Query;
|
|
5306
4954
|
}
|
|
5307
4955
|
|
|
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
4956
|
declare const __metadata: {
|
|
5348
4957
|
PACKAGE_NAME: string;
|
|
5349
4958
|
};
|
|
@@ -5401,6 +5010,7 @@ type index_d_Rejection = Rejection;
|
|
|
5401
5010
|
type index_d_RequestDetails = RequestDetails;
|
|
5402
5011
|
type index_d_RequestStatus = RequestStatus;
|
|
5403
5012
|
declare const index_d_RequestStatus: typeof RequestStatus;
|
|
5013
|
+
type index_d_RestoreInfo = RestoreInfo;
|
|
5404
5014
|
type index_d_SortOrder = SortOrder;
|
|
5405
5015
|
declare const index_d_SortOrder: typeof SortOrder;
|
|
5406
5016
|
type index_d_Sorting = Sorting;
|
|
@@ -5416,7 +5026,7 @@ declare const index_d_onJoinRequestRejected: typeof onJoinRequestRejected;
|
|
|
5416
5026
|
declare const index_d_queryJoinRequests: typeof queryJoinRequests;
|
|
5417
5027
|
declare const index_d_rejectJoinRequests: typeof rejectJoinRequests;
|
|
5418
5028
|
declare namespace index_d {
|
|
5419
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_ApproveJoinRequestsOptions as ApproveJoinRequestsOptions, type index_d_ApproveJoinRequestsRequest as ApproveJoinRequestsRequest, type index_d_ApproveJoinRequestsResponse as ApproveJoinRequestsResponse, type index_d_ApproveJoinRequestsResponseNonNullableFields as ApproveJoinRequestsResponseNonNullableFields, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CancelJoinRequestRequest as CancelJoinRequestRequest, type index_d_CancelJoinRequestResponse as CancelJoinRequestResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_ItemsToUpdate as ItemsToUpdate, type index_d_JoinRequest as JoinRequest, type index_d_JoinRequestApproved as JoinRequestApproved, type index_d_JoinRequestApprovedEnvelope as JoinRequestApprovedEnvelope, type index_d_JoinRequestCancelled as JoinRequestCancelled, type index_d_JoinRequestRejected as JoinRequestRejected, type index_d_JoinRequestRejectedEnvelope as JoinRequestRejectedEnvelope, type index_d_ListJoinRequestsOptions as ListJoinRequestsOptions, type index_d_ListJoinRequestsRequest as ListJoinRequestsRequest, type index_d_ListJoinRequestsResponse as ListJoinRequestsResponse, type index_d_ListJoinRequestsResponseNonNullableFields as ListJoinRequestsResponseNonNullableFields, type index_d_MembershipQuestionAnswer as MembershipQuestionAnswer, type index_d_MessageEnvelope as MessageEnvelope, index_d_OwnershipFilter as OwnershipFilter, type index_d_Paging as Paging, type index_d_PagingMetadata as PagingMetadata, type index_d_Query as Query, type index_d_QueryJoinRequestsOptions as QueryJoinRequestsOptions, type index_d_QueryJoinRequestsRequest as QueryJoinRequestsRequest, type index_d_QueryJoinRequestsResponse as QueryJoinRequestsResponse, type index_d_QueryJoinRequestsResponseNonNullableFields as QueryJoinRequestsResponseNonNullableFields, type index_d_RejectJoinRequestsOptions as RejectJoinRequestsOptions, type index_d_RejectJoinRequestsRequest as RejectJoinRequestsRequest, type index_d_RejectJoinRequestsResponse as RejectJoinRequestsResponse, type index_d_RejectJoinRequestsResponseNonNullableFields as RejectJoinRequestsResponseNonNullableFields, type index_d_Rejection as Rejection, type index_d_RequestDetails as RequestDetails, index_d_RequestStatus as RequestStatus, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_SubmitJoinRequestRequest as SubmitJoinRequestRequest, type index_d_SubmitJoinRequestResponse as SubmitJoinRequestResponse, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_approveJoinRequests as approveJoinRequests, index_d_listJoinRequests as listJoinRequests, index_d_onJoinRequestApproved as onJoinRequestApproved, index_d_onJoinRequestRejected as onJoinRequestRejected, index_d_queryJoinRequests as queryJoinRequests, index_d_rejectJoinRequests as rejectJoinRequests };
|
|
5029
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_ApproveJoinRequestsOptions as ApproveJoinRequestsOptions, type index_d_ApproveJoinRequestsRequest as ApproveJoinRequestsRequest, type index_d_ApproveJoinRequestsResponse as ApproveJoinRequestsResponse, type index_d_ApproveJoinRequestsResponseNonNullableFields as ApproveJoinRequestsResponseNonNullableFields, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CancelJoinRequestRequest as CancelJoinRequestRequest, type index_d_CancelJoinRequestResponse as CancelJoinRequestResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_ItemsToUpdate as ItemsToUpdate, type index_d_JoinRequest as JoinRequest, type index_d_JoinRequestApproved as JoinRequestApproved, type index_d_JoinRequestApprovedEnvelope as JoinRequestApprovedEnvelope, type index_d_JoinRequestCancelled as JoinRequestCancelled, type index_d_JoinRequestRejected as JoinRequestRejected, type index_d_JoinRequestRejectedEnvelope as JoinRequestRejectedEnvelope, type index_d_ListJoinRequestsOptions as ListJoinRequestsOptions, type index_d_ListJoinRequestsRequest as ListJoinRequestsRequest, type index_d_ListJoinRequestsResponse as ListJoinRequestsResponse, type index_d_ListJoinRequestsResponseNonNullableFields as ListJoinRequestsResponseNonNullableFields, type index_d_MembershipQuestionAnswer as MembershipQuestionAnswer, type index_d_MessageEnvelope as MessageEnvelope, index_d_OwnershipFilter as OwnershipFilter, type index_d_Paging as Paging, type index_d_PagingMetadata as PagingMetadata, type index_d_Query as Query, type index_d_QueryJoinRequestsOptions as QueryJoinRequestsOptions, type index_d_QueryJoinRequestsRequest as QueryJoinRequestsRequest, type index_d_QueryJoinRequestsResponse as QueryJoinRequestsResponse, type index_d_QueryJoinRequestsResponseNonNullableFields as QueryJoinRequestsResponseNonNullableFields, type index_d_RejectJoinRequestsOptions as RejectJoinRequestsOptions, type index_d_RejectJoinRequestsRequest as RejectJoinRequestsRequest, type index_d_RejectJoinRequestsResponse as RejectJoinRequestsResponse, type index_d_RejectJoinRequestsResponseNonNullableFields as RejectJoinRequestsResponseNonNullableFields, type index_d_Rejection as Rejection, type index_d_RequestDetails as RequestDetails, index_d_RequestStatus as RequestStatus, type index_d_RestoreInfo as RestoreInfo, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_SubmitJoinRequestRequest as SubmitJoinRequestRequest, type index_d_SubmitJoinRequestResponse as SubmitJoinRequestResponse, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_approveJoinRequests as approveJoinRequests, index_d_listJoinRequests as listJoinRequests, index_d_onJoinRequestApproved as onJoinRequestApproved, index_d_onJoinRequestRejected as onJoinRequestRejected, index_d_queryJoinRequests as queryJoinRequests, index_d_rejectJoinRequests as rejectJoinRequests };
|
|
5420
5030
|
}
|
|
5421
5031
|
|
|
5422
5032
|
export { index_d$1 as createRequests, index_d$6 as groupRequests, index_d$8 as groups, index_d$3 as joinGroupRequests, index_d as joinRequests, index_d$7 as members, index_d$2 as membershipQuestions, index_d$5 as roles, index_d$4 as rules };
|